{headingTxt}
@@ -66,7 +66,7 @@ export function EmptyState({
{descriptionTxt}
diff --git a/libs/pxweb2-ui/src/lib/components/EmptyState/Illustrations.tsx b/packages/pxweb2-ui/src/lib/components/EmptyState/Illustrations.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/EmptyState/Illustrations.tsx
rename to packages/pxweb2-ui/src/lib/components/EmptyState/Illustrations.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Icon/Icon.module.scss b/packages/pxweb2-ui/src/lib/components/Icon/Icon.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Icon/Icon.module.scss
rename to packages/pxweb2-ui/src/lib/components/Icon/Icon.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Icon/Icon.spec.tsx b/packages/pxweb2-ui/src/lib/components/Icon/Icon.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Icon/Icon.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Icon/Icon.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Icon/Icon.stories.tsx b/packages/pxweb2-ui/src/lib/components/Icon/Icon.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Icon/Icon.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Icon/Icon.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Icon/Icon.tsx b/packages/pxweb2-ui/src/lib/components/Icon/Icon.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Icon/Icon.tsx
rename to packages/pxweb2-ui/src/lib/components/Icon/Icon.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Icon/Icons.tsx b/packages/pxweb2-ui/src/lib/components/Icon/Icons.tsx
similarity index 99%
rename from libs/pxweb2-ui/src/lib/components/Icon/Icons.tsx
rename to packages/pxweb2-ui/src/lib/components/Icon/Icons.tsx
index f9d853d5..f62bff86 100644
--- a/libs/pxweb2-ui/src/lib/components/Icon/Icons.tsx
+++ b/packages/pxweb2-ui/src/lib/components/Icon/Icons.tsx
@@ -1,8 +1,12 @@
+
+import React from "react";
+
/**
* IMPORTANT:
* When adding a new icon, remove fill="#xxxxx" and stroke="#xxxxx" to make the icon use the same color as the css color property (font color). Any specified fill or stroke will override the css color property.
*/
+
export const Controls =
;
export const ControlsFilled = <>
>;
export const ControlsVertical =
;
diff --git a/libs/pxweb2-ui/src/lib/components/Link/Link.module.scss b/packages/pxweb2-ui/src/lib/components/Link/Link.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Link/Link.module.scss
rename to packages/pxweb2-ui/src/lib/components/Link/Link.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Link/Link.spec.tsx b/packages/pxweb2-ui/src/lib/components/Link/Link.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Link/Link.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Link/Link.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Link/Link.stories.tsx b/packages/pxweb2-ui/src/lib/components/Link/Link.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Link/Link.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Link/Link.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Link/Link.tsx b/packages/pxweb2-ui/src/lib/components/Link/Link.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Link/Link.tsx
rename to packages/pxweb2-ui/src/lib/components/Link/Link.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Modal/Modal.module.scss b/packages/pxweb2-ui/src/lib/components/Modal/Modal.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Modal/Modal.module.scss
rename to packages/pxweb2-ui/src/lib/components/Modal/Modal.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Modal/Modal.spec.tsx b/packages/pxweb2-ui/src/lib/components/Modal/Modal.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Modal/Modal.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Modal/Modal.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Modal/Modal.stories.tsx b/packages/pxweb2-ui/src/lib/components/Modal/Modal.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Modal/Modal.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Modal/Modal.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Modal/Modal.tsx b/packages/pxweb2-ui/src/lib/components/Modal/Modal.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Modal/Modal.tsx
rename to packages/pxweb2-ui/src/lib/components/Modal/Modal.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Radio/Radio.module.scss b/packages/pxweb2-ui/src/lib/components/Radio/Radio.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Radio/Radio.module.scss
rename to packages/pxweb2-ui/src/lib/components/Radio/Radio.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Radio/Radio.spec.tsx b/packages/pxweb2-ui/src/lib/components/Radio/Radio.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Radio/Radio.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Radio/Radio.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Radio/Radio.stories.tsx b/packages/pxweb2-ui/src/lib/components/Radio/Radio.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Radio/Radio.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Radio/Radio.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Radio/Radio.tsx b/packages/pxweb2-ui/src/lib/components/Radio/Radio.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Radio/Radio.tsx
rename to packages/pxweb2-ui/src/lib/components/Radio/Radio.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Search/Search.module.scss b/packages/pxweb2-ui/src/lib/components/Search/Search.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Search/Search.module.scss
rename to packages/pxweb2-ui/src/lib/components/Search/Search.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Search/Search.spec.tsx b/packages/pxweb2-ui/src/lib/components/Search/Search.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Search/Search.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Search/Search.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Search/Search.stories.tsx b/packages/pxweb2-ui/src/lib/components/Search/Search.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Search/Search.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Search/Search.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Search/Search.tsx b/packages/pxweb2-ui/src/lib/components/Search/Search.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Search/Search.tsx
rename to packages/pxweb2-ui/src/lib/components/Search/Search.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Select/Select.module.scss b/packages/pxweb2-ui/src/lib/components/Select/Select.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Select/Select.module.scss
rename to packages/pxweb2-ui/src/lib/components/Select/Select.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Select/Select.spec.tsx b/packages/pxweb2-ui/src/lib/components/Select/Select.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Select/Select.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Select/Select.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Select/Select.stories.tsx b/packages/pxweb2-ui/src/lib/components/Select/Select.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Select/Select.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Select/Select.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Select/Select.tsx b/packages/pxweb2-ui/src/lib/components/Select/Select.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Select/Select.tsx
rename to packages/pxweb2-ui/src/lib/components/Select/Select.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Skeleton/Skeleton.module.scss b/packages/pxweb2-ui/src/lib/components/Skeleton/Skeleton.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Skeleton/Skeleton.module.scss
rename to packages/pxweb2-ui/src/lib/components/Skeleton/Skeleton.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Skeleton/Skeleton.stories.tsx b/packages/pxweb2-ui/src/lib/components/Skeleton/Skeleton.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Skeleton/Skeleton.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Skeleton/Skeleton.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Skeleton/Skeleton.tsx b/packages/pxweb2-ui/src/lib/components/Skeleton/Skeleton.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Skeleton/Skeleton.tsx
rename to packages/pxweb2-ui/src/lib/components/Skeleton/Skeleton.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Spinner/Spinner.module.scss b/packages/pxweb2-ui/src/lib/components/Spinner/Spinner.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Spinner/Spinner.module.scss
rename to packages/pxweb2-ui/src/lib/components/Spinner/Spinner.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Spinner/Spinner.spec.tsx b/packages/pxweb2-ui/src/lib/components/Spinner/Spinner.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Spinner/Spinner.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Spinner/Spinner.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Spinner/Spinner.stories.tsx b/packages/pxweb2-ui/src/lib/components/Spinner/Spinner.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Spinner/Spinner.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Spinner/Spinner.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Spinner/Spinner.tsx b/packages/pxweb2-ui/src/lib/components/Spinner/Spinner.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Spinner/Spinner.tsx
rename to packages/pxweb2-ui/src/lib/components/Spinner/Spinner.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Table/Table.module.scss b/packages/pxweb2-ui/src/lib/components/Table/Table.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Table/Table.module.scss
rename to packages/pxweb2-ui/src/lib/components/Table/Table.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Table/Table.spec.tsx b/packages/pxweb2-ui/src/lib/components/Table/Table.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Table/Table.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Table/Table.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Table/Table.stories.tsx b/packages/pxweb2-ui/src/lib/components/Table/Table.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Table/Table.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Table/Table.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Table/Table.tsx b/packages/pxweb2-ui/src/lib/components/Table/Table.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Table/Table.tsx
rename to packages/pxweb2-ui/src/lib/components/Table/Table.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Table/columnRowMeta.ts b/packages/pxweb2-ui/src/lib/components/Table/columnRowMeta.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Table/columnRowMeta.ts
rename to packages/pxweb2-ui/src/lib/components/Table/columnRowMeta.ts
diff --git a/libs/pxweb2-ui/src/lib/components/Table/cubeHelper.ts b/packages/pxweb2-ui/src/lib/components/Table/cubeHelper.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Table/cubeHelper.ts
rename to packages/pxweb2-ui/src/lib/components/Table/cubeHelper.ts
diff --git a/libs/pxweb2-ui/src/lib/components/Table/testData.ts b/packages/pxweb2-ui/src/lib/components/Table/testData.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Table/testData.ts
rename to packages/pxweb2-ui/src/lib/components/Table/testData.ts
diff --git a/libs/pxweb2-ui/src/lib/components/Tabs/Tab.tsx b/packages/pxweb2-ui/src/lib/components/Tabs/Tab.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tabs/Tab.tsx
rename to packages/pxweb2-ui/src/lib/components/Tabs/Tab.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Tabs/TabPanel.tsx b/packages/pxweb2-ui/src/lib/components/Tabs/TabPanel.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tabs/TabPanel.tsx
rename to packages/pxweb2-ui/src/lib/components/Tabs/TabPanel.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Tabs/Tabs.module.scss b/packages/pxweb2-ui/src/lib/components/Tabs/Tabs.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tabs/Tabs.module.scss
rename to packages/pxweb2-ui/src/lib/components/Tabs/Tabs.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Tabs/Tabs.spec.tsx b/packages/pxweb2-ui/src/lib/components/Tabs/Tabs.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tabs/Tabs.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Tabs/Tabs.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Tabs/Tabs.stories.tsx b/packages/pxweb2-ui/src/lib/components/Tabs/Tabs.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tabs/Tabs.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Tabs/Tabs.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Tabs/Tabs.tsx b/packages/pxweb2-ui/src/lib/components/Tabs/Tabs.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tabs/Tabs.tsx
rename to packages/pxweb2-ui/src/lib/components/Tabs/Tabs.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Tabs/TabsProvider.tsx b/packages/pxweb2-ui/src/lib/components/Tabs/TabsProvider.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tabs/TabsProvider.tsx
rename to packages/pxweb2-ui/src/lib/components/Tabs/TabsProvider.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Tabs/copyright_notice.txt b/packages/pxweb2-ui/src/lib/components/Tabs/copyright_notice.txt
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tabs/copyright_notice.txt
rename to packages/pxweb2-ui/src/lib/components/Tabs/copyright_notice.txt
diff --git a/libs/pxweb2-ui/src/lib/components/Tag/Tag.module.scss b/packages/pxweb2-ui/src/lib/components/Tag/Tag.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tag/Tag.module.scss
rename to packages/pxweb2-ui/src/lib/components/Tag/Tag.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Tag/Tag.spec.tsx b/packages/pxweb2-ui/src/lib/components/Tag/Tag.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tag/Tag.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Tag/Tag.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Tag/Tag.stories.tsx b/packages/pxweb2-ui/src/lib/components/Tag/Tag.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tag/Tag.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Tag/Tag.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Tag/Tag.tsx b/packages/pxweb2-ui/src/lib/components/Tag/Tag.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Tag/Tag.tsx
rename to packages/pxweb2-ui/src/lib/components/Tag/Tag.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.module.scss b/packages/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.module.scss
rename to packages/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.spec.tsx b/packages/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.tsx b/packages/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/BodyLong/BodyLong.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/BodyLong/bodyLong.stories.tsx b/packages/pxweb2-ui/src/lib/components/Typography/BodyLong/bodyLong.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/BodyLong/bodyLong.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/BodyLong/bodyLong.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.module.scss b/packages/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.module.scss
rename to packages/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.spec.tsx b/packages/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.stories.tsx b/packages/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.tsx b/packages/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/BodyShort/BodyShort.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.module.scss b/packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.module.scss
rename to packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.spec.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.stories.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.tsx
similarity index 76%
rename from libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.tsx
index 48305541..ddb4386c 100644
--- a/libs/pxweb2-ui/src/lib/components/Typography/Heading/Heading.tsx
+++ b/packages/pxweb2-ui/src/lib/components/Typography/Heading/Heading.tsx
@@ -31,14 +31,16 @@ export function Heading({
return (
{children}
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.module.scss b/packages/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.module.scss
rename to packages/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.spec.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.stories.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Ingress/Ingress.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Label/Label.module.scss b/packages/pxweb2-ui/src/lib/components/Typography/Label/Label.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Label/Label.module.scss
rename to packages/pxweb2-ui/src/lib/components/Typography/Label/Label.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Label/Label.spec.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Label/Label.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Label/Label.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Label/Label.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Label/Label.stories.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Label/Label.stories.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Label/Label.stories.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Label/Label.stories.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/Typography/Label/Label.tsx b/packages/pxweb2-ui/src/lib/components/Typography/Label/Label.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/Typography/Label/Label.tsx
rename to packages/pxweb2-ui/src/lib/components/Typography/Label/Label.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBox.module.scss b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBox.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBox.module.scss
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBox.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBox.spec.tsx b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBox.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBox.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBox.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBox.tsx b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBox.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBox.tsx
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBox.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.module.scss b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.module.scss
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.spec.tsx b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.tsx b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.tsx
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxContent/VariableBoxContent.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.module.scss b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.module.scss
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.spec.tsx b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.tsx b/packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.tsx
rename to packages/pxweb2-ui/src/lib/components/VariableBox/VariableBoxHeader/VariableBoxHeader.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/VariableList/VariableList.module.scss b/packages/pxweb2-ui/src/lib/components/VariableList/VariableList.module.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableList/VariableList.module.scss
rename to packages/pxweb2-ui/src/lib/components/VariableList/VariableList.module.scss
diff --git a/libs/pxweb2-ui/src/lib/components/VariableList/VariableList.spec.tsx b/packages/pxweb2-ui/src/lib/components/VariableList/VariableList.spec.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableList/VariableList.spec.tsx
rename to packages/pxweb2-ui/src/lib/components/VariableList/VariableList.spec.tsx
diff --git a/libs/pxweb2-ui/src/lib/components/VariableList/VariableList.tsx b/packages/pxweb2-ui/src/lib/components/VariableList/VariableList.tsx
similarity index 100%
rename from libs/pxweb2-ui/src/lib/components/VariableList/VariableList.tsx
rename to packages/pxweb2-ui/src/lib/components/VariableList/VariableList.tsx
diff --git a/apps/pxweb2/public/fonts/LICENSE.txt b/packages/pxweb2-ui/src/lib/fonts/LICENSE.txt
similarity index 100%
rename from apps/pxweb2/public/fonts/LICENSE.txt
rename to packages/pxweb2-ui/src/lib/fonts/LICENSE.txt
diff --git a/apps/pxweb2/public/fonts/PxWeb-font-400.ttf b/packages/pxweb2-ui/src/lib/fonts/PxWeb-font-400.ttf
similarity index 100%
rename from apps/pxweb2/public/fonts/PxWeb-font-400.ttf
rename to packages/pxweb2-ui/src/lib/fonts/PxWeb-font-400.ttf
diff --git a/apps/pxweb2/public/fonts/PxWeb-font-500.ttf b/packages/pxweb2-ui/src/lib/fonts/PxWeb-font-500.ttf
similarity index 100%
rename from apps/pxweb2/public/fonts/PxWeb-font-500.ttf
rename to packages/pxweb2-ui/src/lib/fonts/PxWeb-font-500.ttf
diff --git a/apps/pxweb2/public/fonts/PxWeb-font-700.ttf b/packages/pxweb2-ui/src/lib/fonts/PxWeb-font-700.ttf
similarity index 100%
rename from apps/pxweb2/public/fonts/PxWeb-font-700.ttf
rename to packages/pxweb2-ui/src/lib/fonts/PxWeb-font-700.ttf
diff --git a/libs/pxweb2-ui/src/lib/global.scss b/packages/pxweb2-ui/src/lib/global.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/global.scss
rename to packages/pxweb2-ui/src/lib/global.scss
diff --git a/apps/pxweb2/src/assets/.gitkeep b/packages/pxweb2-ui/src/lib/shared-types/.gitkeep
similarity index 100%
rename from apps/pxweb2/src/assets/.gitkeep
rename to packages/pxweb2-ui/src/lib/shared-types/.gitkeep
diff --git a/libs/pxweb2-ui/src/lib/shared-types/codelist.ts b/packages/pxweb2-ui/src/lib/shared-types/codelist.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/codelist.ts
rename to packages/pxweb2-ui/src/lib/shared-types/codelist.ts
diff --git a/libs/pxweb2-ui/src/lib/shared-types/codelistType.ts b/packages/pxweb2-ui/src/lib/shared-types/codelistType.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/codelistType.ts
rename to packages/pxweb2-ui/src/lib/shared-types/codelistType.ts
diff --git a/libs/pxweb2-ui/src/lib/shared-types/note.ts b/packages/pxweb2-ui/src/lib/shared-types/note.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/note.ts
rename to packages/pxweb2-ui/src/lib/shared-types/note.ts
diff --git a/libs/pxweb2-ui/src/lib/shared-types/pxTable.ts b/packages/pxweb2-ui/src/lib/shared-types/pxTable.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/pxTable.ts
rename to packages/pxweb2-ui/src/lib/shared-types/pxTable.ts
diff --git a/libs/pxweb2-ui/src/lib/shared-types/pxTableData.ts b/packages/pxweb2-ui/src/lib/shared-types/pxTableData.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/pxTableData.ts
rename to packages/pxweb2-ui/src/lib/shared-types/pxTableData.ts
diff --git a/libs/pxweb2-ui/src/lib/shared-types/pxTableMetadata.ts b/packages/pxweb2-ui/src/lib/shared-types/pxTableMetadata.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/pxTableMetadata.ts
rename to packages/pxweb2-ui/src/lib/shared-types/pxTableMetadata.ts
diff --git a/libs/pxweb2-ui/src/lib/shared-types/value.ts b/packages/pxweb2-ui/src/lib/shared-types/value.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/value.ts
rename to packages/pxweb2-ui/src/lib/shared-types/value.ts
diff --git a/libs/pxweb2-ui/src/lib/shared-types/variable.ts b/packages/pxweb2-ui/src/lib/shared-types/variable.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/variable.ts
rename to packages/pxweb2-ui/src/lib/shared-types/variable.ts
diff --git a/libs/pxweb2-ui/src/lib/shared-types/vartypeEnum.ts b/packages/pxweb2-ui/src/lib/shared-types/vartypeEnum.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/shared-types/vartypeEnum.ts
rename to packages/pxweb2-ui/src/lib/shared-types/vartypeEnum.ts
diff --git a/libs/pxweb2-ui/src/lib/text-styles.scss b/packages/pxweb2-ui/src/lib/text-styles.scss
similarity index 100%
rename from libs/pxweb2-ui/src/lib/text-styles.scss
rename to packages/pxweb2-ui/src/lib/text-styles.scss
diff --git a/libs/pxweb2-ui/src/lib/util/util.ts b/packages/pxweb2-ui/src/lib/util/util.ts
similarity index 100%
rename from libs/pxweb2-ui/src/lib/util/util.ts
rename to packages/pxweb2-ui/src/lib/util/util.ts
diff --git a/packages/pxweb2-ui/src/stories/Button.jsx b/packages/pxweb2-ui/src/stories/Button.jsx
new file mode 100644
index 00000000..5b36a634
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/Button.jsx
@@ -0,0 +1,40 @@
+import React from 'react';
+
+import PropTypes from 'prop-types';
+
+import './button.css';
+
+/** Primary UI component for user interaction */
+export const Button = ({ primary, backgroundColor, size, label, ...props }) => {
+ const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
+ return (
+
+ {label}
+
+ );
+};
+
+Button.propTypes = {
+ /** Is this the principal call to action on the page? */
+ primary: PropTypes.bool,
+ /** What background color to use */
+ backgroundColor: PropTypes.string,
+ /** How large should the button be? */
+ size: PropTypes.oneOf(['small', 'medium', 'large']),
+ /** Button contents */
+ label: PropTypes.string.isRequired,
+ /** Optional click handler */
+ onClick: PropTypes.func,
+};
+
+Button.defaultProps = {
+ backgroundColor: null,
+ primary: false,
+ size: 'medium',
+ onClick: undefined,
+};
diff --git a/packages/pxweb2-ui/src/stories/Button.stories.js b/packages/pxweb2-ui/src/stories/Button.stories.js
new file mode 100644
index 00000000..045d9c47
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/Button.stories.js
@@ -0,0 +1,49 @@
+import { fn } from '@storybook/test';
+
+import { Button } from './Button';
+
+// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
+export default {
+ title: 'Example/Button',
+ component: Button,
+ parameters: {
+ // Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
+ layout: 'centered',
+ },
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
+ tags: ['autodocs'],
+ // More on argTypes: https://storybook.js.org/docs/api/argtypes
+ argTypes: {
+ backgroundColor: { control: 'color' },
+ },
+ // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
+ args: { onClick: fn() },
+};
+
+// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
+export const Primary = {
+ args: {
+ primary: true,
+ label: 'Button',
+ },
+};
+
+export const Secondary = {
+ args: {
+ label: 'Button',
+ },
+};
+
+export const Large = {
+ args: {
+ size: 'large',
+ label: 'Button',
+ },
+};
+
+export const Small = {
+ args: {
+ size: 'small',
+ label: 'Button',
+ },
+};
diff --git a/packages/pxweb2-ui/src/stories/Configure.mdx b/packages/pxweb2-ui/src/stories/Configure.mdx
new file mode 100644
index 00000000..6a537304
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/Configure.mdx
@@ -0,0 +1,364 @@
+import { Meta } from "@storybook/blocks";
+
+import Github from "./assets/github.svg";
+import Discord from "./assets/discord.svg";
+import Youtube from "./assets/youtube.svg";
+import Tutorials from "./assets/tutorials.svg";
+import Styling from "./assets/styling.png";
+import Context from "./assets/context.png";
+import Assets from "./assets/assets.png";
+import Docs from "./assets/docs.png";
+import Share from "./assets/share.png";
+import FigmaPlugin from "./assets/figma-plugin.png";
+import Testing from "./assets/testing.png";
+import Accessibility from "./assets/accessibility.png";
+import Theming from "./assets/theming.png";
+import AddonLibrary from "./assets/addon-library.png";
+
+export const RightArrow = () =>
+
+
+
+
+
+
+
+ # Configure your project
+
+ Because Storybook works separately from your app, you'll need to configure it for your specific stack and setup. Below, explore guides for configuring Storybook with popular frameworks and tools. If you get stuck, learn how you can ask for help from our community.
+
+
+
+
+
Add styling and CSS
+
Like with web applications, there are many ways to include CSS within Storybook. Learn more about setting up styling within Storybook.
+
Learn more
+
+
+
+
Provide context and mocking
+
Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.
+
Learn more
+
+
+
+
+
Load assets and resources
+
To link static files (like fonts) to your projects and stories, use the
+ `staticDirs` configuration option to specify folders to load when
+ starting Storybook.
+
Learn more
+
+
+
+
+
+
+ # Do more with Storybook
+
+ Now that you know the basics, let's explore other parts of Storybook that will improve your experience. This list is just to get you started. You can customise Storybook in many ways to fit your needs.
+
+
+
+
+
+
+
Autodocs
+
Auto-generate living,
+ interactive reference documentation from your components and stories.
+
Learn more
+
+
+
+
Publish to Chromatic
+
Publish your Storybook to review and collaborate with your entire team.
+
Learn more
+
+
+
+
Figma Plugin
+
Embed your stories into Figma to cross-reference the design and live
+ implementation in one place.
+
Learn more
+
+
+
+
Testing
+
Use stories to test a component in all its variations, no matter how
+ complex.
+
Learn more
+
+
+
+
Accessibility
+
Automatically test your components for a11y issues as you develop.
+
Learn more
+
+
+
+
Theming
+
Theme Storybook's UI to personalize it to your project.
+
Learn more
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Join our contributors building the future of UI development.
+
+
Star on GitHub
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/pxweb2-ui/src/stories/Header.jsx b/packages/pxweb2-ui/src/stories/Header.jsx
new file mode 100644
index 00000000..38aa4d89
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/Header.jsx
@@ -0,0 +1,60 @@
+import React from 'react';
+
+import PropTypes from 'prop-types';
+
+import { Button } from './Button';
+import './header.css';
+
+export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => (
+
+);
+
+Header.propTypes = {
+ user: PropTypes.shape({
+ name: PropTypes.string.isRequired,
+ }),
+ onLogin: PropTypes.func.isRequired,
+ onLogout: PropTypes.func.isRequired,
+ onCreateAccount: PropTypes.func.isRequired,
+};
+
+Header.defaultProps = {
+ user: null,
+};
diff --git a/packages/pxweb2-ui/src/stories/Header.stories.js b/packages/pxweb2-ui/src/stories/Header.stories.js
new file mode 100644
index 00000000..7cb7da7c
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/Header.stories.js
@@ -0,0 +1,29 @@
+import { fn } from '@storybook/test';
+
+import { Header } from './Header';
+
+export default {
+ title: 'Example/Header',
+ component: Header,
+ // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
+ tags: ['autodocs'],
+ parameters: {
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
+ layout: 'fullscreen',
+ },
+ args: {
+ onLogin: fn(),
+ onLogout: fn(),
+ onCreateAccount: fn(),
+ },
+};
+
+export const LoggedIn = {
+ args: {
+ user: {
+ name: 'Jane Doe',
+ },
+ },
+};
+
+export const LoggedOut = {};
diff --git a/packages/pxweb2-ui/src/stories/Page.jsx b/packages/pxweb2-ui/src/stories/Page.jsx
new file mode 100644
index 00000000..c4214011
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/Page.jsx
@@ -0,0 +1,69 @@
+import React from 'react';
+
+import { Header } from './Header';
+import './page.css';
+
+export const Page = () => {
+ const [user, setUser] = React.useState();
+
+ return (
+
+ setUser({ name: 'Jane Doe' })}
+ onLogout={() => setUser(undefined)}
+ onCreateAccount={() => setUser({ name: 'Jane Doe' })}
+ />
+
+
+ Pages in Storybook
+
+ We recommend building UIs with a{' '}
+
+ component-driven
+ {' '}
+ process starting with atomic components and ending with pages.
+
+
+ Render pages with mock data. This makes it easy to build and review page states without
+ needing to navigate to them in your app. Here are some handy patterns for managing page
+ data in Storybook:
+
+
+
+ Use a higher-level connected component. Storybook helps you compose such data from the
+ "args" of child component stories
+
+
+ Assemble data in the page component from your services. You can mock these services out
+ using Storybook.
+
+
+
+ Get a guided tutorial on component-driven development at{' '}
+
+ Storybook tutorials
+
+ . Read more in the{' '}
+
+ docs
+
+ .
+
+
+
Tip Adjust the width of the canvas with the{' '}
+
+
+
+
+
+ Viewports addon in the toolbar
+
+
+
+ );
+};
diff --git a/packages/pxweb2-ui/src/stories/Page.stories.js b/packages/pxweb2-ui/src/stories/Page.stories.js
new file mode 100644
index 00000000..383fd1ab
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/Page.stories.js
@@ -0,0 +1,28 @@
+import { expect, userEvent, within } from '@storybook/test';
+
+import { Page } from './Page';
+
+export default {
+ title: 'Example/Page',
+ component: Page,
+ parameters: {
+ // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
+ layout: 'fullscreen',
+ },
+};
+
+export const LoggedOut = {};
+
+// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing
+export const LoggedIn = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+ const loginButton = canvas.getByRole('button', { name: /Log in/i });
+ await expect(loginButton).toBeInTheDocument();
+ await userEvent.click(loginButton);
+ await expect(loginButton).not.toBeInTheDocument();
+
+ const logoutButton = canvas.getByRole('button', { name: /Log out/i });
+ await expect(logoutButton).toBeInTheDocument();
+ },
+};
diff --git a/packages/pxweb2-ui/src/stories/assets/accessibility.png b/packages/pxweb2-ui/src/stories/assets/accessibility.png
new file mode 100644
index 00000000..6ffe6fea
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/accessibility.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/accessibility.svg b/packages/pxweb2-ui/src/stories/assets/accessibility.svg
new file mode 100644
index 00000000..107e93f8
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/assets/accessibility.svg
@@ -0,0 +1 @@
+Accessibility
\ No newline at end of file
diff --git a/packages/pxweb2-ui/src/stories/assets/addon-library.png b/packages/pxweb2-ui/src/stories/assets/addon-library.png
new file mode 100644
index 00000000..95deb38a
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/addon-library.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/assets.png b/packages/pxweb2-ui/src/stories/assets/assets.png
new file mode 100644
index 00000000..cfba6817
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/assets.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/avif-test-image.avif b/packages/pxweb2-ui/src/stories/assets/avif-test-image.avif
new file mode 100644
index 00000000..530709bc
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/avif-test-image.avif differ
diff --git a/packages/pxweb2-ui/src/stories/assets/context.png b/packages/pxweb2-ui/src/stories/assets/context.png
new file mode 100644
index 00000000..e5cd249a
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/context.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/discord.svg b/packages/pxweb2-ui/src/stories/assets/discord.svg
new file mode 100644
index 00000000..d638958b
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/assets/discord.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/pxweb2-ui/src/stories/assets/docs.png b/packages/pxweb2-ui/src/stories/assets/docs.png
new file mode 100644
index 00000000..a749629d
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/docs.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/figma-plugin.png b/packages/pxweb2-ui/src/stories/assets/figma-plugin.png
new file mode 100644
index 00000000..8f79b08c
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/figma-plugin.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/github.svg b/packages/pxweb2-ui/src/stories/assets/github.svg
new file mode 100644
index 00000000..dc513528
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/assets/github.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/pxweb2-ui/src/stories/assets/share.png b/packages/pxweb2-ui/src/stories/assets/share.png
new file mode 100644
index 00000000..8097a370
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/share.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/styling.png b/packages/pxweb2-ui/src/stories/assets/styling.png
new file mode 100644
index 00000000..d341e826
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/styling.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/testing.png b/packages/pxweb2-ui/src/stories/assets/testing.png
new file mode 100644
index 00000000..d4ac39a0
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/testing.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/theming.png b/packages/pxweb2-ui/src/stories/assets/theming.png
new file mode 100644
index 00000000..1535eb9b
Binary files /dev/null and b/packages/pxweb2-ui/src/stories/assets/theming.png differ
diff --git a/packages/pxweb2-ui/src/stories/assets/tutorials.svg b/packages/pxweb2-ui/src/stories/assets/tutorials.svg
new file mode 100644
index 00000000..b492a9c6
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/assets/tutorials.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/pxweb2-ui/src/stories/assets/youtube.svg b/packages/pxweb2-ui/src/stories/assets/youtube.svg
new file mode 100644
index 00000000..a7515d7e
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/assets/youtube.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/pxweb2-ui/src/stories/button.css b/packages/pxweb2-ui/src/stories/button.css
new file mode 100644
index 00000000..94d674b7
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/button.css
@@ -0,0 +1,30 @@
+.storybook-button {
+ display: inline-block;
+ cursor: pointer;
+ border: 0;
+ border-radius: 3em;
+ font-weight: 700;
+ line-height: 1;
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+}
+.storybook-button--primary {
+ background-color: #1ea7fd;
+ color: white;
+}
+.storybook-button--secondary {
+ box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
+ background-color: transparent;
+ color: #333;
+}
+.storybook-button--small {
+ padding: 10px 16px;
+ font-size: 12px;
+}
+.storybook-button--medium {
+ padding: 11px 20px;
+ font-size: 14px;
+}
+.storybook-button--large {
+ padding: 12px 24px;
+ font-size: 16px;
+}
diff --git a/packages/pxweb2-ui/src/stories/header.css b/packages/pxweb2-ui/src/stories/header.css
new file mode 100644
index 00000000..5efd46c2
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/header.css
@@ -0,0 +1,32 @@
+.storybook-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+ padding: 15px 20px;
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+}
+
+.storybook-header svg {
+ display: inline-block;
+ vertical-align: top;
+}
+
+.storybook-header h1 {
+ display: inline-block;
+ vertical-align: top;
+ margin: 6px 0 6px 10px;
+ font-weight: 700;
+ font-size: 20px;
+ line-height: 1;
+}
+
+.storybook-header button + button {
+ margin-left: 10px;
+}
+
+.storybook-header .welcome {
+ margin-right: 10px;
+ color: #333;
+ font-size: 14px;
+}
diff --git a/packages/pxweb2-ui/src/stories/page.css b/packages/pxweb2-ui/src/stories/page.css
new file mode 100644
index 00000000..87f7ecb1
--- /dev/null
+++ b/packages/pxweb2-ui/src/stories/page.css
@@ -0,0 +1,69 @@
+.storybook-page {
+ margin: 0 auto;
+ padding: 48px 20px;
+ max-width: 600px;
+ color: #333;
+ font-size: 14px;
+ line-height: 24px;
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+}
+
+.storybook-page h2 {
+ display: inline-block;
+ vertical-align: top;
+ margin: 0 0 4px;
+ font-weight: 700;
+ font-size: 32px;
+ line-height: 1;
+}
+
+.storybook-page p {
+ margin: 1em 0;
+}
+
+.storybook-page a {
+ color: #1ea7fd;
+ text-decoration: none;
+}
+
+.storybook-page ul {
+ margin: 1em 0;
+ padding-left: 30px;
+}
+
+.storybook-page li {
+ margin-bottom: 8px;
+}
+
+.storybook-page .tip {
+ display: inline-block;
+ vertical-align: top;
+ margin-right: 10px;
+ border-radius: 1em;
+ background: #e7fdd8;
+ padding: 4px 12px;
+ color: #66bf3c;
+ font-weight: 700;
+ font-size: 11px;
+ line-height: 12px;
+}
+
+.storybook-page .tip-wrapper {
+ margin-top: 40px;
+ margin-bottom: 40px;
+ font-size: 13px;
+ line-height: 20px;
+}
+
+.storybook-page .tip-wrapper svg {
+ display: inline-block;
+ vertical-align: top;
+ margin-top: 3px;
+ margin-right: 4px;
+ width: 12px;
+ height: 12px;
+}
+
+.storybook-page .tip-wrapper svg path {
+ fill: #1ea7fd;
+}
diff --git a/libs/pxweb2-ui/style-dictionary/README.md b/packages/pxweb2-ui/style-dictionary/README.md
similarity index 100%
rename from libs/pxweb2-ui/style-dictionary/README.md
rename to packages/pxweb2-ui/style-dictionary/README.md
diff --git a/libs/pxweb2-ui/style-dictionary/build.js b/packages/pxweb2-ui/style-dictionary/build.mjs
similarity index 69%
rename from libs/pxweb2-ui/style-dictionary/build.js
rename to packages/pxweb2-ui/style-dictionary/build.mjs
index 69e0c657..6392474a 100644
--- a/libs/pxweb2-ui/style-dictionary/build.js
+++ b/packages/pxweb2-ui/style-dictionary/build.mjs
@@ -2,40 +2,39 @@ import StyleDictionary from 'style-dictionary';
async function buildDictionary(config) {
console.log(`Building styles from: ${config.source.join(', ')}`);
-
+
const sd = new StyleDictionary(config);
-
+
await sd.hasInitialized;
-
+
sd.buildAllPlatforms();
}
const configs = [
{
source: [
- './libs/pxweb2-ui/style-dictionary/src/default_theme.json',
- './libs/pxweb2-ui/style-dictionary/src/custom_theme.json',
+ './style-dictionary/src/default_theme.json',
+ './style-dictionary/src/custom_theme.json',
],
platforms: {
css: {
prefix: 'px-',
transformGroup: 'css',
- buildPath: './libs/pxweb2-ui/style-dictionary/dist/css/',
+ buildPath: './style-dictionary/dist/css/',
files: [
{
destination: 'variables.css',
format: 'css/variables',
},
{
- destination:
- '../../../../../apps/pxweb2/public/theme/variables.css',
+ destination: '../pxweb2/public/theme/variables.css',
format: 'css/variables',
},
],
},
ts: {
transformGroup: 'js',
- buildPath: './libs/pxweb2-ui/style-dictionary/dist/js/',
+ buildPath: './style-dictionary/dist/js/',
files: [
{
destination: 'css-variables.js',
@@ -44,20 +43,20 @@ const configs = [
{
destination: 'css-variables.d.ts',
format: 'typescript/es6-declarations',
- }
+ },
],
},
},
},
{
source: [
- './libs/pxweb2-ui/style-dictionary/src/global-tokens/spacing.json',
- './libs/pxweb2-ui/style-dictionary/src/global-tokens/breakpoints.json',
+ './style-dictionary/src/global-tokens/spacing.json',
+ './style-dictionary/src/global-tokens/breakpoints.json',
],
platforms: {
scss: {
transformGroup: 'scss',
- buildPath: './libs/pxweb2-ui/style-dictionary/dist/scss/',
+ buildPath: './style-dictionary/dist/scss/',
files: [
{
destination: 'fixed-variables.scss',
@@ -67,7 +66,7 @@ const configs = [
},
ts: {
transformGroup: 'js',
- buildPath: './libs/pxweb2-ui/style-dictionary/dist/js/',
+ buildPath: './style-dictionary/dist/js/',
files: [
{
destination: 'fixed-variables.js',
@@ -76,7 +75,7 @@ const configs = [
{
destination: 'fixed-variables.d.ts',
format: 'typescript/es6-declarations',
- }
+ },
],
},
},
diff --git a/libs/pxweb2-ui/style-dictionary/src/default_theme.json b/packages/pxweb2-ui/style-dictionary/src/default_theme.json
similarity index 100%
rename from libs/pxweb2-ui/style-dictionary/src/default_theme.json
rename to packages/pxweb2-ui/style-dictionary/src/default_theme.json
diff --git a/libs/pxweb2-ui/style-dictionary/src/global-tokens/breakpoints.json b/packages/pxweb2-ui/style-dictionary/src/global-tokens/breakpoints.json
similarity index 100%
rename from libs/pxweb2-ui/style-dictionary/src/global-tokens/breakpoints.json
rename to packages/pxweb2-ui/style-dictionary/src/global-tokens/breakpoints.json
diff --git a/libs/pxweb2-ui/style-dictionary/src/global-tokens/spacing.json b/packages/pxweb2-ui/style-dictionary/src/global-tokens/spacing.json
similarity index 100%
rename from libs/pxweb2-ui/style-dictionary/src/global-tokens/spacing.json
rename to packages/pxweb2-ui/style-dictionary/src/global-tokens/spacing.json
diff --git a/libs/pxweb2-ui/tsconfig.json b/packages/pxweb2-ui/tsconfig.json
similarity index 100%
rename from libs/pxweb2-ui/tsconfig.json
rename to packages/pxweb2-ui/tsconfig.json
diff --git a/libs/pxweb2-ui/tsconfig.lib.json b/packages/pxweb2-ui/tsconfig.lib.json
similarity index 93%
rename from libs/pxweb2-ui/tsconfig.lib.json
rename to packages/pxweb2-ui/tsconfig.lib.json
index f513fb5e..b4ded3e2 100644
--- a/libs/pxweb2-ui/tsconfig.lib.json
+++ b/packages/pxweb2-ui/tsconfig.lib.json
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
- "outDir": "../../dist/out-tsc",
+ "outDir": "./dist/out-tsc",
"types": [
"node",
"@nx/react/typings/cssmodule.d.ts",
diff --git a/libs/pxweb2-ui/tsconfig.spec.json b/packages/pxweb2-ui/tsconfig.spec.json
similarity index 92%
rename from libs/pxweb2-ui/tsconfig.spec.json
rename to packages/pxweb2-ui/tsconfig.spec.json
index 3c002c21..ca6df87e 100644
--- a/libs/pxweb2-ui/tsconfig.spec.json
+++ b/packages/pxweb2-ui/tsconfig.spec.json
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
- "outDir": "../../dist/out-tsc",
+ "outDir": "./dist/out-tsc",
"types": [
"vitest/globals",
"vitest/importMeta",
diff --git a/libs/pxweb2-ui/tsconfig.storybook.json b/packages/pxweb2-ui/tsconfig.storybook.json
similarity index 100%
rename from libs/pxweb2-ui/tsconfig.storybook.json
rename to packages/pxweb2-ui/tsconfig.storybook.json
diff --git a/libs/pxweb2-ui/vite.config.ts b/packages/pxweb2-ui/vite.config.ts
similarity index 74%
rename from libs/pxweb2-ui/vite.config.ts
rename to packages/pxweb2-ui/vite.config.ts
index 6bf59b1a..c7fabf3a 100644
--- a/libs/pxweb2-ui/vite.config.ts
+++ b/packages/pxweb2-ui/vite.config.ts
@@ -3,7 +3,6 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import dts from 'vite-plugin-dts';
import * as path from 'path';
-import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
export default defineConfig({
root: __dirname,
@@ -11,23 +10,14 @@ export default defineConfig({
plugins: [
react(),
- nxViteTsPaths(),
dts({
entryRoot: 'src',
- tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'),
- skipDiagnostics: true,
+ tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
}),
],
- // Uncomment this if you are using workers.
- // worker: {
- // plugins: [ nxViteTsPaths() ],
- // },
-
- // Configuration for building your library.
- // See: https://vitejs.dev/guide/build.html#library-mode
build: {
- outDir: '../../dist/libs/pxweb2-ui',
+ outDir: './dist/',
reportCompressedSize: true,
commonjsOptions: {
transformMixedEsModules: true,
diff --git a/libs/pxweb2-ui/.eslintrc.json b/packages/pxweb2/.eslintrc.json
similarity index 81%
rename from libs/pxweb2-ui/.eslintrc.json
rename to packages/pxweb2/.eslintrc.json
index a39ac5d0..18427e52 100644
--- a/libs/pxweb2-ui/.eslintrc.json
+++ b/packages/pxweb2/.eslintrc.json
@@ -1,5 +1,5 @@
{
- "extends": ["plugin:@nx/react", "../../.eslintrc.json"],
+ "extends": ["plugin:react", "../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
diff --git a/apps/pxweb2/index.html b/packages/pxweb2/index.html
similarity index 100%
rename from apps/pxweb2/index.html
rename to packages/pxweb2/index.html
diff --git a/packages/pxweb2/package.json b/packages/pxweb2/package.json
new file mode 100644
index 00000000..1e1bef7b
--- /dev/null
+++ b/packages/pxweb2/package.json
@@ -0,0 +1,28 @@
+{
+ "name": "pxweb2",
+ "version": "1.0.0",
+ "description": "",
+ "private": true,
+ "author": "",
+ "license": "MIT",
+ "main": "index.js",
+ "dependencies": {
+ "@emotion/is-prop-valid": "^1.3.1",
+ "@pxweb2/pxweb2-ui": "*",
+ "i18next-http-backend": "^3.0.1",
+ "react-router-dom": "^7.0.1"
+ },
+ "scripts": {
+ "start": "vite",
+ "build": "vite build",
+ "lint": "eslint",
+ "test": "vitest run",
+ "test:watch": "vitest"
+ },
+ "devDependencies": {
+ "@testing-library/react": "^16.0.1",
+ "husky": "^9.1.7",
+ "jsdom": "^25.0.1",
+ "vitest": "^2.1.6"
+ }
+}
diff --git a/apps/pxweb2/public/config/config.js b/packages/pxweb2/public/config/config.js
similarity index 100%
rename from apps/pxweb2/public/config/config.js
rename to packages/pxweb2/public/config/config.js
diff --git a/apps/pxweb2/public/favicon.ico b/packages/pxweb2/public/favicon.ico
similarity index 100%
rename from apps/pxweb2/public/favicon.ico
rename to packages/pxweb2/public/favicon.ico
diff --git a/libs/pxweb2-ui/src/lib/fonts/LICENSE.txt b/packages/pxweb2/public/fonts/LICENSE.txt
similarity index 100%
rename from libs/pxweb2-ui/src/lib/fonts/LICENSE.txt
rename to packages/pxweb2/public/fonts/LICENSE.txt
diff --git a/libs/pxweb2-ui/src/lib/fonts/PxWeb-font-400.ttf b/packages/pxweb2/public/fonts/PxWeb-font-400.ttf
similarity index 100%
rename from libs/pxweb2-ui/src/lib/fonts/PxWeb-font-400.ttf
rename to packages/pxweb2/public/fonts/PxWeb-font-400.ttf
diff --git a/libs/pxweb2-ui/src/lib/fonts/PxWeb-font-500.ttf b/packages/pxweb2/public/fonts/PxWeb-font-500.ttf
similarity index 100%
rename from libs/pxweb2-ui/src/lib/fonts/PxWeb-font-500.ttf
rename to packages/pxweb2/public/fonts/PxWeb-font-500.ttf
diff --git a/libs/pxweb2-ui/src/lib/fonts/PxWeb-font-700.ttf b/packages/pxweb2/public/fonts/PxWeb-font-700.ttf
similarity index 100%
rename from libs/pxweb2-ui/src/lib/fonts/PxWeb-font-700.ttf
rename to packages/pxweb2/public/fonts/PxWeb-font-700.ttf
diff --git a/apps/pxweb2/public/images/scb-logo.svg b/packages/pxweb2/public/images/scb-logo.svg
similarity index 100%
rename from apps/pxweb2/public/images/scb-logo.svg
rename to packages/pxweb2/public/images/scb-logo.svg
diff --git a/apps/pxweb2/public/images/ssb-logo.svg b/packages/pxweb2/public/images/ssb-logo.svg
similarity index 100%
rename from apps/pxweb2/public/images/ssb-logo.svg
rename to packages/pxweb2/public/images/ssb-logo.svg
diff --git a/apps/pxweb2/public/locales/ar/translation.json b/packages/pxweb2/public/locales/ar/translation.json
similarity index 100%
rename from apps/pxweb2/public/locales/ar/translation.json
rename to packages/pxweb2/public/locales/ar/translation.json
diff --git a/apps/pxweb2/public/locales/en/translation.json b/packages/pxweb2/public/locales/en/translation.json
similarity index 100%
rename from apps/pxweb2/public/locales/en/translation.json
rename to packages/pxweb2/public/locales/en/translation.json
diff --git a/apps/pxweb2/public/locales/no/translation.json b/packages/pxweb2/public/locales/no/translation.json
similarity index 100%
rename from apps/pxweb2/public/locales/no/translation.json
rename to packages/pxweb2/public/locales/no/translation.json
diff --git a/apps/pxweb2/public/locales/sv/translation.json b/packages/pxweb2/public/locales/sv/translation.json
similarity index 100%
rename from apps/pxweb2/public/locales/sv/translation.json
rename to packages/pxweb2/public/locales/sv/translation.json
diff --git a/apps/pxweb2/public/theme/variables.css b/packages/pxweb2/public/theme/variables.css
similarity index 100%
rename from apps/pxweb2/public/theme/variables.css
rename to packages/pxweb2/public/theme/variables.css
diff --git a/apps/pxweb2/src/@types/i18next.d.ts b/packages/pxweb2/src/@types/i18next.d.ts
similarity index 100%
rename from apps/pxweb2/src/@types/i18next.d.ts
rename to packages/pxweb2/src/@types/i18next.d.ts
diff --git a/apps/pxweb2/src/@types/resources.d.ts b/packages/pxweb2/src/@types/resources.d.ts
similarity index 100%
rename from apps/pxweb2/src/@types/resources.d.ts
rename to packages/pxweb2/src/@types/resources.d.ts
diff --git a/apps/pxweb2/src/app/app.module.scss b/packages/pxweb2/src/app/app.module.scss
similarity index 100%
rename from apps/pxweb2/src/app/app.module.scss
rename to packages/pxweb2/src/app/app.module.scss
diff --git a/apps/pxweb2/src/app/app.spec.jsx b/packages/pxweb2/src/app/app.spec.jsx
similarity index 100%
rename from apps/pxweb2/src/app/app.spec.jsx
rename to packages/pxweb2/src/app/app.spec.jsx
diff --git a/apps/pxweb2/src/app/app.tsx b/packages/pxweb2/src/app/app.tsx
similarity index 100%
rename from apps/pxweb2/src/app/app.tsx
rename to packages/pxweb2/src/app/app.tsx
diff --git a/apps/pxweb2/src/app/components/Content/Content.module.scss b/packages/pxweb2/src/app/components/Content/Content.module.scss
similarity index 100%
rename from apps/pxweb2/src/app/components/Content/Content.module.scss
rename to packages/pxweb2/src/app/components/Content/Content.module.scss
diff --git a/apps/pxweb2/src/app/components/Content/Content.tsx b/packages/pxweb2/src/app/components/Content/Content.tsx
similarity index 100%
rename from apps/pxweb2/src/app/components/Content/Content.tsx
rename to packages/pxweb2/src/app/components/Content/Content.tsx
diff --git a/apps/pxweb2/src/app/components/ContentTop/ContentTop.module.scss b/packages/pxweb2/src/app/components/ContentTop/ContentTop.module.scss
similarity index 100%
rename from apps/pxweb2/src/app/components/ContentTop/ContentTop.module.scss
rename to packages/pxweb2/src/app/components/ContentTop/ContentTop.module.scss
diff --git a/apps/pxweb2/src/app/components/ContentTop/ContentTop.spec.tsx b/packages/pxweb2/src/app/components/ContentTop/ContentTop.spec.tsx
similarity index 100%
rename from apps/pxweb2/src/app/components/ContentTop/ContentTop.spec.tsx
rename to packages/pxweb2/src/app/components/ContentTop/ContentTop.spec.tsx
diff --git a/apps/pxweb2/src/app/components/ContentTop/ContentTop.tsx b/packages/pxweb2/src/app/components/ContentTop/ContentTop.tsx
similarity index 100%
rename from apps/pxweb2/src/app/components/ContentTop/ContentTop.tsx
rename to packages/pxweb2/src/app/components/ContentTop/ContentTop.tsx
diff --git a/apps/pxweb2/src/app/components/Footer/Footer.module.scss b/packages/pxweb2/src/app/components/Footer/Footer.module.scss
similarity index 100%
rename from apps/pxweb2/src/app/components/Footer/Footer.module.scss
rename to packages/pxweb2/src/app/components/Footer/Footer.module.scss
diff --git a/apps/pxweb2/src/app/components/Footer/Footer.tsx b/packages/pxweb2/src/app/components/Footer/Footer.tsx
similarity index 100%
rename from apps/pxweb2/src/app/components/Footer/Footer.tsx
rename to packages/pxweb2/src/app/components/Footer/Footer.tsx
diff --git a/apps/pxweb2/src/app/components/Header/Header.module.scss b/packages/pxweb2/src/app/components/Header/Header.module.scss
similarity index 100%
rename from apps/pxweb2/src/app/components/Header/Header.module.scss
rename to packages/pxweb2/src/app/components/Header/Header.module.scss
diff --git a/apps/pxweb2/src/app/components/Header/Header.tsx b/packages/pxweb2/src/app/components/Header/Header.tsx
similarity index 98%
rename from apps/pxweb2/src/app/components/Header/Header.tsx
rename to packages/pxweb2/src/app/components/Header/Header.tsx
index 4c1cc347..9b66cf07 100644
--- a/apps/pxweb2/src/app/components/Header/Header.tsx
+++ b/packages/pxweb2/src/app/components/Header/Header.tsx
@@ -23,7 +23,7 @@ export const Header: React.FC = () => {
>
{language.languageName}
- )
+ ),
)}