thread-ui 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/layouts/column-layout/column-layout.types.d.ts +1 -1
- package/dist/components/layouts/column-layout/column-layout.types.d.ts.map +1 -1
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.d.ts.map +1 -1
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.js +1 -0
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.js.map +1 -1
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.types.d.ts +1 -1
- package/dist/components/layouts/column-layout/column-skeleton/column-skeleton.types.d.ts.map +1 -1
- package/dist/components/layouts/footer/footer.d.ts.map +1 -1
- package/dist/components/layouts/footer/footer.js +16 -6
- package/dist/components/layouts/footer/footer.js.map +1 -1
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +1 -0
- package/dist/components/navigation/index.js.map +1 -1
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/nav-drop-down-item.d.ts.map +1 -1
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/nav-drop-down-item.js +1 -4
- package/dist/components/navigation/nav-menu/items/nav-drop-down-item/nav-drop-down-item.js.map +1 -1
- package/dist/components/navigation/side-nav/index.d.ts +4 -0
- package/dist/components/navigation/side-nav/index.d.ts.map +1 -0
- package/dist/components/navigation/side-nav/index.js +2 -0
- package/dist/components/navigation/side-nav/index.js.map +1 -0
- package/dist/components/navigation/side-nav/side-nav-item/index.d.ts +3 -0
- package/dist/components/navigation/side-nav/side-nav-item/index.d.ts.map +1 -0
- package/dist/components/navigation/side-nav/side-nav-item/index.js +2 -0
- package/dist/components/navigation/side-nav/side-nav-item/index.js.map +1 -0
- package/dist/components/navigation/side-nav/side-nav-item/side-nav-item.d.ts +3 -0
- package/dist/components/navigation/side-nav/side-nav-item/side-nav-item.d.ts.map +1 -0
- package/dist/components/navigation/side-nav/side-nav-item/side-nav-item.js +54 -0
- package/dist/components/navigation/side-nav/side-nav-item/side-nav-item.js.map +1 -0
- package/dist/components/navigation/side-nav/side-nav-item/side-nav-item.types.d.ts +9 -0
- package/dist/components/navigation/side-nav/side-nav-item/side-nav-item.types.d.ts.map +1 -0
- package/dist/components/navigation/side-nav/side-nav-item/side-nav-item.types.js +2 -0
- package/dist/components/navigation/side-nav/side-nav-item/side-nav-item.types.js.map +1 -0
- package/dist/components/navigation/side-nav/side-nav.d.ts +7 -0
- package/dist/components/navigation/side-nav/side-nav.d.ts.map +1 -0
- package/dist/components/navigation/side-nav/side-nav.js +27 -0
- package/dist/components/navigation/side-nav/side-nav.js.map +1 -0
- package/dist/components/navigation/side-nav/side-nav.types.d.ts +9 -0
- package/dist/components/navigation/side-nav/side-nav.types.d.ts.map +1 -0
- package/dist/components/navigation/side-nav/side-nav.types.js +2 -0
- package/dist/components/navigation/side-nav/side-nav.types.js.map +1 -0
- package/dist/components/typography/index.d.ts +1 -0
- package/dist/components/typography/index.d.ts.map +1 -1
- package/dist/components/typography/index.js +1 -0
- package/dist/components/typography/index.js.map +1 -1
- package/dist/components/typography/page-header/index.d.ts +3 -0
- package/dist/components/typography/page-header/index.d.ts.map +1 -0
- package/dist/components/typography/page-header/index.js +2 -0
- package/dist/components/typography/page-header/index.js.map +1 -0
- package/dist/components/typography/page-header/page-header.d.ts +3 -0
- package/dist/components/typography/page-header/page-header.d.ts.map +1 -0
- package/dist/components/typography/page-header/page-header.js +22 -0
- package/dist/components/typography/page-header/page-header.js.map +1 -0
- package/dist/components/typography/page-header/page-header.types.d.ts +6 -0
- package/dist/components/typography/page-header/page-header.types.d.ts.map +1 -0
- package/dist/components/typography/page-header/page-header.types.js +2 -0
- package/dist/components/typography/page-header/page-header.types.js.map +1 -0
- package/dist/components/ui/divider/divider.d.ts.map +1 -1
- package/dist/components/ui/divider/divider.js +1 -2
- package/dist/components/ui/divider/divider.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/styled-system/patterns/container.mjs +8 -1
- package/dist/styled-system/tokens/index.mjs +8 -0
- package/dist/styled-system/tokens/tokens.d.ts +1 -1
- package/dist/styles/panda.css +127 -35
- package/dist/styles/thread.css +5 -0
- package/dist/theme/thread-theme.d.ts.map +1 -1
- package/dist/theme/thread-theme.js +2 -0
- package/dist/theme/thread-theme.js.map +1 -1
- package/dist/types/theme/theme.types.d.ts +1 -0
- package/dist/types/theme/theme.types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/use-pathname/index.d.ts +2 -0
- package/dist/utils/use-pathname/index.d.ts.map +1 -0
- package/dist/utils/use-pathname/index.js +2 -0
- package/dist/utils/use-pathname/index.js.map +1 -0
- package/dist/utils/use-pathname/use-pathname.d.ts +2 -0
- package/dist/utils/use-pathname/use-pathname.d.ts.map +1 -0
- package/dist/utils/use-pathname/use-pathname.js +16 -0
- package/dist/utils/use-pathname/use-pathname.js.map +1 -0
- package/package.json +2 -2
- package/dist/client/theme/theme.types.d.ts +0 -48
- package/dist/client/theme/theme.types.d.ts.map +0 -1
- package/dist/client/theme/theme.types.js +0 -2
- package/dist/client/theme/theme.types.js.map +0 -1
|
@@ -31,7 +31,7 @@ export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9
|
|
|
31
31
|
|
|
32
32
|
export type AnimationToken = "spin" | "ping" | "pulse" | "bounce"
|
|
33
33
|
|
|
34
|
-
export type ColorToken = "current" | "transparent" | "rose.50" | "rose.100" | "rose.200" | "rose.300" | "rose.400" | "rose.500" | "rose.600" | "rose.700" | "rose.800" | "rose.900" | "rose.950" | "pink.50" | "pink.100" | "pink.200" | "pink.300" | "pink.400" | "pink.500" | "pink.600" | "pink.700" | "pink.800" | "pink.900" | "pink.950" | "fuchsia.50" | "fuchsia.100" | "fuchsia.200" | "fuchsia.300" | "fuchsia.400" | "fuchsia.500" | "fuchsia.600" | "fuchsia.700" | "fuchsia.800" | "fuchsia.900" | "fuchsia.950" | "purple.50" | "purple.100" | "purple.200" | "purple.300" | "purple.400" | "purple.500" | "purple.600" | "purple.700" | "purple.800" | "purple.900" | "purple.950" | "violet.50" | "violet.100" | "violet.200" | "violet.300" | "violet.400" | "violet.500" | "violet.600" | "violet.700" | "violet.800" | "violet.900" | "violet.950" | "indigo.50" | "indigo.100" | "indigo.200" | "indigo.300" | "indigo.400" | "indigo.500" | "indigo.600" | "indigo.700" | "indigo.800" | "indigo.900" | "indigo.950" | "blue.50" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "blue.950" | "sky.50" | "sky.100" | "sky.200" | "sky.300" | "sky.400" | "sky.500" | "sky.600" | "sky.700" | "sky.800" | "sky.900" | "sky.950" | "cyan.50" | "cyan.100" | "cyan.200" | "cyan.300" | "cyan.400" | "cyan.500" | "cyan.600" | "cyan.700" | "cyan.800" | "cyan.900" | "cyan.950" | "teal.50" | "teal.100" | "teal.200" | "teal.300" | "teal.400" | "teal.500" | "teal.600" | "teal.700" | "teal.800" | "teal.900" | "teal.950" | "emerald.50" | "emerald.100" | "emerald.200" | "emerald.300" | "emerald.400" | "emerald.500" | "emerald.600" | "emerald.700" | "emerald.800" | "emerald.900" | "emerald.950" | "green.50" | "green.100" | "green.200" | "green.300" | "green.400" | "green.500" | "green.600" | "green.700" | "green.800" | "green.900" | "green.950" | "lime.50" | "lime.100" | "lime.200" | "lime.300" | "lime.400" | "lime.500" | "lime.600" | "lime.700" | "lime.800" | "lime.900" | "lime.950" | "yellow.50" | "yellow.100" | "yellow.200" | "yellow.300" | "yellow.400" | "yellow.500" | "yellow.600" | "yellow.700" | "yellow.800" | "yellow.900" | "yellow.950" | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | "amber.950" | "orange.50" | "orange.100" | "orange.200" | "orange.300" | "orange.400" | "orange.500" | "orange.600" | "orange.700" | "orange.800" | "orange.900" | "orange.950" | "red.50" | "red.100" | "red.200" | "red.300" | "red.400" | "red.500" | "red.600" | "red.700" | "red.800" | "red.900" | "red.950" | "neutral.50" | "neutral.100" | "neutral.200" | "neutral.300" | "neutral.400" | "neutral.500" | "neutral.600" | "neutral.700" | "neutral.800" | "neutral.900" | "neutral.950" | "stone.50" | "stone.100" | "stone.200" | "stone.300" | "stone.400" | "stone.500" | "stone.600" | "stone.700" | "stone.800" | "stone.900" | "stone.950" | "zinc.50" | "zinc.100" | "zinc.200" | "zinc.300" | "zinc.400" | "zinc.500" | "zinc.600" | "zinc.700" | "zinc.800" | "zinc.900" | "zinc.950" | "slate.50" | "slate.100" | "slate.200" | "slate.300" | "slate.400" | "slate.500" | "slate.600" | "slate.700" | "slate.800" | "slate.900" | "slate.950" | "primary.light" | "primary.main" | "primary.dark" | "secondary.light" | "secondary.main" | "secondary.dark" | "tertiary.light" | "tertiary.main" | "tertiary.dark" | "white" | "black" | "gray.50" | "gray.100" | "gray.200" | "gray.300" | "gray.400" | "gray.500" | "gray.600" | "gray.700" | "gray.800" | "gray.900" | "gray.950" | "gray.light" | "gray.main" | "gray.dark" | "success.light" | "success.main" | "success.dark" | "warning.light" | "warning.main" | "warning.dark" | "error.light" | "error.main" | "error.dark" | "info.light" | "info.main" | "info.dark" | "background" | "surface" | "elevated" | "structure" | "text.standard" | "text.secondary" | "text.disabled" | "text.accent" | "colorPalette" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950" | "colorPalette.light" | "colorPalette.main" | "colorPalette.dark" | "colorPalette.standard" | "colorPalette.secondary" | "colorPalette.disabled" | "colorPalette.accent"
|
|
34
|
+
export type ColorToken = "current" | "transparent" | "rose.50" | "rose.100" | "rose.200" | "rose.300" | "rose.400" | "rose.500" | "rose.600" | "rose.700" | "rose.800" | "rose.900" | "rose.950" | "pink.50" | "pink.100" | "pink.200" | "pink.300" | "pink.400" | "pink.500" | "pink.600" | "pink.700" | "pink.800" | "pink.900" | "pink.950" | "fuchsia.50" | "fuchsia.100" | "fuchsia.200" | "fuchsia.300" | "fuchsia.400" | "fuchsia.500" | "fuchsia.600" | "fuchsia.700" | "fuchsia.800" | "fuchsia.900" | "fuchsia.950" | "purple.50" | "purple.100" | "purple.200" | "purple.300" | "purple.400" | "purple.500" | "purple.600" | "purple.700" | "purple.800" | "purple.900" | "purple.950" | "violet.50" | "violet.100" | "violet.200" | "violet.300" | "violet.400" | "violet.500" | "violet.600" | "violet.700" | "violet.800" | "violet.900" | "violet.950" | "indigo.50" | "indigo.100" | "indigo.200" | "indigo.300" | "indigo.400" | "indigo.500" | "indigo.600" | "indigo.700" | "indigo.800" | "indigo.900" | "indigo.950" | "blue.50" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "blue.950" | "sky.50" | "sky.100" | "sky.200" | "sky.300" | "sky.400" | "sky.500" | "sky.600" | "sky.700" | "sky.800" | "sky.900" | "sky.950" | "cyan.50" | "cyan.100" | "cyan.200" | "cyan.300" | "cyan.400" | "cyan.500" | "cyan.600" | "cyan.700" | "cyan.800" | "cyan.900" | "cyan.950" | "teal.50" | "teal.100" | "teal.200" | "teal.300" | "teal.400" | "teal.500" | "teal.600" | "teal.700" | "teal.800" | "teal.900" | "teal.950" | "emerald.50" | "emerald.100" | "emerald.200" | "emerald.300" | "emerald.400" | "emerald.500" | "emerald.600" | "emerald.700" | "emerald.800" | "emerald.900" | "emerald.950" | "green.50" | "green.100" | "green.200" | "green.300" | "green.400" | "green.500" | "green.600" | "green.700" | "green.800" | "green.900" | "green.950" | "lime.50" | "lime.100" | "lime.200" | "lime.300" | "lime.400" | "lime.500" | "lime.600" | "lime.700" | "lime.800" | "lime.900" | "lime.950" | "yellow.50" | "yellow.100" | "yellow.200" | "yellow.300" | "yellow.400" | "yellow.500" | "yellow.600" | "yellow.700" | "yellow.800" | "yellow.900" | "yellow.950" | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | "amber.950" | "orange.50" | "orange.100" | "orange.200" | "orange.300" | "orange.400" | "orange.500" | "orange.600" | "orange.700" | "orange.800" | "orange.900" | "orange.950" | "red.50" | "red.100" | "red.200" | "red.300" | "red.400" | "red.500" | "red.600" | "red.700" | "red.800" | "red.900" | "red.950" | "neutral.50" | "neutral.100" | "neutral.200" | "neutral.300" | "neutral.400" | "neutral.500" | "neutral.600" | "neutral.700" | "neutral.800" | "neutral.900" | "neutral.950" | "stone.50" | "stone.100" | "stone.200" | "stone.300" | "stone.400" | "stone.500" | "stone.600" | "stone.700" | "stone.800" | "stone.900" | "stone.950" | "zinc.50" | "zinc.100" | "zinc.200" | "zinc.300" | "zinc.400" | "zinc.500" | "zinc.600" | "zinc.700" | "zinc.800" | "zinc.900" | "zinc.950" | "slate.50" | "slate.100" | "slate.200" | "slate.300" | "slate.400" | "slate.500" | "slate.600" | "slate.700" | "slate.800" | "slate.900" | "slate.950" | "primary.light" | "primary.main" | "primary.dark" | "secondary.light" | "secondary.main" | "secondary.dark" | "tertiary.light" | "tertiary.main" | "tertiary.dark" | "white" | "black" | "gray.50" | "gray.100" | "gray.200" | "gray.300" | "gray.400" | "gray.500" | "gray.600" | "gray.700" | "gray.800" | "gray.900" | "gray.950" | "gray.light" | "gray.main" | "gray.dark" | "success.light" | "success.main" | "success.dark" | "warning.light" | "warning.main" | "warning.dark" | "error.light" | "error.main" | "error.dark" | "info.light" | "info.main" | "info.dark" | "background" | "surface" | "elevated" | "structure" | "text.standard" | "text.secondary" | "text.disabled" | "text.accent" | "text.inverted" | "colorPalette" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950" | "colorPalette.light" | "colorPalette.main" | "colorPalette.dark" | "colorPalette.standard" | "colorPalette.secondary" | "colorPalette.disabled" | "colorPalette.accent" | "colorPalette.inverted"
|
|
35
35
|
|
|
36
36
|
export type RadiusToken = "xs" | "xl" | "2xl" | "3xl" | "4xl" | "full" | "sm" | "md" | "lg"
|
|
37
37
|
|
package/dist/styles/panda.css
CHANGED
|
@@ -674,6 +674,7 @@
|
|
|
674
674
|
--thread-ui-colors-text-secondary: var(--thread-text-secondary);
|
|
675
675
|
--thread-ui-colors-text-disabled: var(--thread-text-disabled);
|
|
676
676
|
--thread-ui-colors-text-accent: var(--thread-text-accent);
|
|
677
|
+
--thread-ui-colors-text-inverted: var(--thread-text-inverted);
|
|
677
678
|
}
|
|
678
679
|
|
|
679
680
|
.dark {
|
|
@@ -684,7 +685,8 @@
|
|
|
684
685
|
--thread-ui-colors-text-standard: var(--thread-text-standard-dark-mode);
|
|
685
686
|
--thread-ui-colors-text-secondary: var(--thread-text-secondary-dark-mode);
|
|
686
687
|
--thread-ui-colors-text-disabled: var(--thread-text-disabled-dark-mode);
|
|
687
|
-
--thread-ui-colors-text-accent: var(--thread-text-accent-dark-mode)
|
|
688
|
+
--thread-ui-colors-text-accent: var(--thread-text-accent-dark-mode);
|
|
689
|
+
--thread-ui-colors-text-inverted: var(--thread-text-inverted-dark-mode)
|
|
688
690
|
}
|
|
689
691
|
|
|
690
692
|
@keyframes spin {
|
|
@@ -800,8 +802,20 @@
|
|
|
800
802
|
overflow: hidden;
|
|
801
803
|
}
|
|
802
804
|
|
|
803
|
-
.thread-ui-
|
|
804
|
-
|
|
805
|
+
.thread-ui-mx_auto {
|
|
806
|
+
margin-inline: auto;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
.thread-ui-py_40px {
|
|
810
|
+
padding-block: 40px;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
.thread-ui-gap_12px {
|
|
814
|
+
gap: 12px;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.thread-ui-py_16px {
|
|
818
|
+
padding-block: 16px;
|
|
805
819
|
}
|
|
806
820
|
|
|
807
821
|
.thread-ui-bdr_50\% {
|
|
@@ -816,10 +830,6 @@
|
|
|
816
830
|
margin-inline: var(--thread-ui-spacing-0);
|
|
817
831
|
}
|
|
818
832
|
|
|
819
|
-
.thread-ui-gap_12px {
|
|
820
|
-
gap: 12px;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
833
|
.thread-ui-bdr_md {
|
|
824
834
|
border-radius: var(--thread-ui-radii-md);
|
|
825
835
|
}
|
|
@@ -848,6 +858,18 @@
|
|
|
848
858
|
border-radius: var(--thread-ui-radii-sm);
|
|
849
859
|
}
|
|
850
860
|
|
|
861
|
+
.thread-ui-gap_16px {
|
|
862
|
+
gap: 16px;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.thread-ui-py_8px {
|
|
866
|
+
padding-block: 8px;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.thread-ui-my_20px {
|
|
870
|
+
margin-block: 20px;
|
|
871
|
+
}
|
|
872
|
+
|
|
851
873
|
.thread-ui-my_16px {
|
|
852
874
|
margin-block: 16px;
|
|
853
875
|
}
|
|
@@ -856,6 +878,30 @@
|
|
|
856
878
|
gap: 3rem;
|
|
857
879
|
}
|
|
858
880
|
|
|
881
|
+
.thread-ui-gap_8px {
|
|
882
|
+
gap: 8px;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
.thread-ui-px_16px {
|
|
886
|
+
padding-inline: 16px;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.thread-ui-my_4px {
|
|
890
|
+
margin-block: 4px;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.thread-ui-bd-c_background {
|
|
894
|
+
border-color: var(--thread-ui-colors-background);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
.thread-ui-bdr_20px {
|
|
898
|
+
border-radius: 20px;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
.thread-ui-bd-c_primary\.main {
|
|
902
|
+
border-color: var(--thread-ui-colors-primary-main);
|
|
903
|
+
}
|
|
904
|
+
|
|
859
905
|
.thread-ui-bdr_0\.375rem {
|
|
860
906
|
border-radius: 0.375rem;
|
|
861
907
|
}
|
|
@@ -868,6 +914,10 @@
|
|
|
868
914
|
transition: all 150ms ease-in-out;
|
|
869
915
|
}
|
|
870
916
|
|
|
917
|
+
.thread-ui-gap_4px {
|
|
918
|
+
gap: 4px;
|
|
919
|
+
}
|
|
920
|
+
|
|
871
921
|
.thread-ui-bd-w_1px {
|
|
872
922
|
border-width: 1px;
|
|
873
923
|
}
|
|
@@ -896,6 +946,10 @@
|
|
|
896
946
|
background-color: var(--thread-ui-colors-black);
|
|
897
947
|
}
|
|
898
948
|
|
|
949
|
+
.thread-ui-c_text\.standard {
|
|
950
|
+
color: var(--thread-ui-colors-text-standard);
|
|
951
|
+
}
|
|
952
|
+
|
|
899
953
|
.thread-ui-column-count_2 {
|
|
900
954
|
column-count: 2;
|
|
901
955
|
}
|
|
@@ -956,10 +1010,6 @@
|
|
|
956
1010
|
line-height: 1.25rem;
|
|
957
1011
|
}
|
|
958
1012
|
|
|
959
|
-
.thread-ui-c_text\.standard {
|
|
960
|
-
color: var(--thread-ui-colors-text-standard);
|
|
961
|
-
}
|
|
962
|
-
|
|
963
1013
|
.thread-ui-pos_sticky {
|
|
964
1014
|
position: sticky;
|
|
965
1015
|
}
|
|
@@ -1073,6 +1123,22 @@
|
|
|
1073
1123
|
display: grid;
|
|
1074
1124
|
}
|
|
1075
1125
|
|
|
1126
|
+
.thread-ui-c_text\.inverted {
|
|
1127
|
+
color: var(--thread-ui-colors-text-inverted);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
.thread-ui-bg-c_primary\.main {
|
|
1131
|
+
background-color: var(--thread-ui-colors-primary-main);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
.thread-ui-d_none {
|
|
1135
|
+
display: none;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
.thread-ui-c_inherit {
|
|
1139
|
+
color: inherit;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1076
1142
|
.thread-ui-li-t_none {
|
|
1077
1143
|
list-style-type: none;
|
|
1078
1144
|
}
|
|
@@ -1093,18 +1159,6 @@
|
|
|
1093
1159
|
transform: translateX(-50%);
|
|
1094
1160
|
}
|
|
1095
1161
|
|
|
1096
|
-
.thread-ui-d_none {
|
|
1097
|
-
display: none;
|
|
1098
|
-
}
|
|
1099
|
-
|
|
1100
|
-
.thread-ui-bx-sh_0_4px_8px {
|
|
1101
|
-
box-shadow: 0 4px 8px;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
.thread-ui-bx-sh-c_gray\.200 {
|
|
1105
|
-
--shadow-color: var(--thread-ui-colors-gray-200);
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
1162
|
.thread-ui-z_10 {
|
|
1109
1163
|
z-index: 10;
|
|
1110
1164
|
}
|
|
@@ -1153,6 +1207,18 @@
|
|
|
1153
1207
|
max-width: 1400px;
|
|
1154
1208
|
}
|
|
1155
1209
|
|
|
1210
|
+
.thread-ui-max-w_1280px {
|
|
1211
|
+
max-width: 1280px;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
.thread-ui-mt_8px {
|
|
1215
|
+
margin-top: 8px;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.thread-ui-mt_36px {
|
|
1219
|
+
margin-top: 36px;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1156
1222
|
.thread-ui-w_48px {
|
|
1157
1223
|
width: 48px;
|
|
1158
1224
|
}
|
|
@@ -1161,10 +1227,6 @@
|
|
|
1161
1227
|
height: 48px;
|
|
1162
1228
|
}
|
|
1163
1229
|
|
|
1164
|
-
.thread-ui-mt_8px {
|
|
1165
|
-
margin-top: 8px;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
1230
|
.thread-ui-h_100\% {
|
|
1169
1231
|
height: 100%;
|
|
1170
1232
|
}
|
|
@@ -1289,6 +1351,14 @@
|
|
|
1289
1351
|
width: 24px;
|
|
1290
1352
|
}
|
|
1291
1353
|
|
|
1354
|
+
.thread-ui-w_16px {
|
|
1355
|
+
width: 16px;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
.thread-ui-mr_32px {
|
|
1359
|
+
margin-right: 32px;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1292
1362
|
.thread-ui-h_0\.5px {
|
|
1293
1363
|
height: 0.5px;
|
|
1294
1364
|
}
|
|
@@ -1329,14 +1399,6 @@
|
|
|
1329
1399
|
background-color: var(--thread-ui-colors-surface);
|
|
1330
1400
|
}
|
|
1331
1401
|
|
|
1332
|
-
.dark .dark\:thread-ui-bx-sh_0_4px_8px {
|
|
1333
|
-
box-shadow: 0 4px 8px;
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
.dark .dark\:thread-ui-bx-sh-c_black {
|
|
1337
|
-
--shadow-color: var(--thread-ui-colors-black);
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
1402
|
.hover\:thread-ui-bd-c_primary\.main:is(:hover, [data-hover]) {
|
|
1341
1403
|
border-color: var(--thread-ui-colors-primary-main);
|
|
1342
1404
|
}
|
|
@@ -1417,6 +1479,18 @@
|
|
|
1417
1479
|
background-color: var(--thread-ui-colors-black);
|
|
1418
1480
|
}
|
|
1419
1481
|
|
|
1482
|
+
.hover\:thread-ui-c_primary\.main:is(:hover, [data-hover]) {
|
|
1483
|
+
color: var(--thread-ui-colors-primary-main);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.hover\:thread-ui-bg-c_primary\.light:is(:hover, [data-hover]) {
|
|
1487
|
+
background-color: var(--thread-ui-colors-primary-light);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
.hover\:thread-ui-c_text\.inverted:is(:hover, [data-hover]) {
|
|
1491
|
+
color: var(--thread-ui-colors-text-inverted);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1420
1494
|
.hover\:thread-ui-bg-c_elevated:is(:hover, [data-hover]) {
|
|
1421
1495
|
background-color: var(--thread-ui-colors-elevated);
|
|
1422
1496
|
}
|
|
@@ -1436,6 +1510,9 @@
|
|
|
1436
1510
|
}
|
|
1437
1511
|
.md\:thread-ui-mx_auto {
|
|
1438
1512
|
margin-inline: auto;
|
|
1513
|
+
}
|
|
1514
|
+
.md\:thread-ui-px_8px {
|
|
1515
|
+
padding-inline: 8px;
|
|
1439
1516
|
}
|
|
1440
1517
|
.md\:thread-ui-column-count_3 {
|
|
1441
1518
|
column-count: 3;
|
|
@@ -1476,6 +1553,9 @@
|
|
|
1476
1553
|
}
|
|
1477
1554
|
.md\:thread-ui-pr_48px {
|
|
1478
1555
|
padding-right: 48px;
|
|
1556
|
+
}
|
|
1557
|
+
.md\:thread-ui-w_50\% {
|
|
1558
|
+
width: 50%;
|
|
1479
1559
|
}
|
|
1480
1560
|
}
|
|
1481
1561
|
|
|
@@ -1530,6 +1610,9 @@
|
|
|
1530
1610
|
}
|
|
1531
1611
|
.lg\:thread-ui-d_none {
|
|
1532
1612
|
display: none;
|
|
1613
|
+
}
|
|
1614
|
+
.lg\:thread-ui-grid-tc_repeat\(2\,_minmax\(0\,_1fr\)\) {
|
|
1615
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1533
1616
|
}
|
|
1534
1617
|
.lg\:thread-ui-grid-tc_repeat\(3\,_minmax\(0\,_1fr\)\) {
|
|
1535
1618
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
@@ -1584,6 +1667,15 @@
|
|
|
1584
1667
|
}
|
|
1585
1668
|
.lg\:thread-ui-w_100\% {
|
|
1586
1669
|
width: 100%;
|
|
1670
|
+
}
|
|
1671
|
+
.lg\:thread-ui-w_175px {
|
|
1672
|
+
width: 175px;
|
|
1673
|
+
}
|
|
1674
|
+
.lg\:thread-ui-w_95\% {
|
|
1675
|
+
width: 95%;
|
|
1676
|
+
}
|
|
1677
|
+
.lg\:thread-ui-w_75\%\% {
|
|
1678
|
+
width: 75%%;
|
|
1587
1679
|
}
|
|
1588
1680
|
.lg\:thread-ui-h_2\.5rem {
|
|
1589
1681
|
height: 2.5rem;
|
package/dist/styles/thread.css
CHANGED
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
--thread-text-secondary-light-mode: #4b5563;
|
|
77
77
|
--thread-text-disabled-light-mode: #9ca3af;
|
|
78
78
|
--thread-text-accent-light-mode: var(--thread-primary-main);
|
|
79
|
+
--thread-text-inverted-light-mode: var(--thread-text-standard-dark-mode);
|
|
79
80
|
|
|
80
81
|
/* Dark Mode Colors */
|
|
81
82
|
/* Surfaces */
|
|
@@ -89,6 +90,7 @@
|
|
|
89
90
|
--thread-text-secondary-dark-mode: #4b5563;
|
|
90
91
|
--thread-text-disabled-dark-mode: #6b7280;
|
|
91
92
|
--thread-text-accent-dark-mode: var(--thread-primary-main);
|
|
93
|
+
--thread-text-inverted-dark-mode: var(--thread-text-standard-light-mode);
|
|
92
94
|
|
|
93
95
|
/* Apply Light Mode Colors */
|
|
94
96
|
/* Surfaces */
|
|
@@ -102,6 +104,7 @@
|
|
|
102
104
|
--thread-text-secondary: var(--thread-text-secondary-light-mode);
|
|
103
105
|
--thread-text-disabled: var(--thread-text-disabled-light-mode);
|
|
104
106
|
--thread-text-accent: var(--thread-text-accent-light-mode);
|
|
107
|
+
--thread-text-inverted: var(--thread-text-inverted-light-mode);
|
|
105
108
|
}
|
|
106
109
|
|
|
107
110
|
:root[data-theme='dark'] {
|
|
@@ -117,6 +120,7 @@
|
|
|
117
120
|
--thread-text-secondary: var(--thread-text-secondary-dark-mode);
|
|
118
121
|
--thread-text-disabled: var(--thread-text-disabled-dark-mode);
|
|
119
122
|
--thread-text-accent: var(--thread-text-accent-dark-mode);
|
|
123
|
+
--thread-text-inverted: var(--thread-text-inverted-dark-mode);
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
@media (prefers-color-scheme: dark) {
|
|
@@ -133,5 +137,6 @@
|
|
|
133
137
|
--thread-text-secondary: var(--thread-text-secondary-dark-mode);
|
|
134
138
|
--thread-text-disabled: var(--thread-text-disabled-dark-mode);
|
|
135
139
|
--thread-text-accent: var(--thread-text-accent-dark-mode);
|
|
140
|
+
--thread-text-inverted: var(--thread-text-inverted-dark-mode);
|
|
136
141
|
}
|
|
137
142
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-theme.d.ts","sourceRoot":"","sources":["../../src/theme/thread-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"thread-theme.d.ts","sourceRoot":"","sources":["../../src/theme/thread-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,WAAW,EAAE,KA2EzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAa/B,CAAC"}
|
|
@@ -55,6 +55,7 @@ export const ThreadTheme = {
|
|
|
55
55
|
secondary: 'var(--thread-text-secondary)',
|
|
56
56
|
disabled: 'var(--thread-text-disabled)',
|
|
57
57
|
accent: 'var(--thread-text-accent)',
|
|
58
|
+
inverted: 'var(--thread-text-inverted)',
|
|
58
59
|
},
|
|
59
60
|
// Sizing/Structure
|
|
60
61
|
borderRadius: {
|
|
@@ -79,6 +80,7 @@ export const DarkModeVariables = {
|
|
|
79
80
|
secondary: 'var(--thread-text-secondary-dark-mode)',
|
|
80
81
|
disabled: 'var(--thread-text-disabled-dark-mode)',
|
|
81
82
|
accent: 'var(--thread-text-accent-dark-mode)',
|
|
83
|
+
inverted: 'var(--thread-text-inverted-dark-mode)',
|
|
82
84
|
},
|
|
83
85
|
};
|
|
84
86
|
//# sourceMappingURL=thread-theme.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-theme.js","sourceRoot":"","sources":["../../src/theme/thread-theme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAU;IACjC,gBAAgB;IAChB,OAAO,EAAE;QACR,KAAK,EAAE,6BAA6B;QACpC,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,4BAA4B;KAClC;IACD,SAAS,EAAE;QACV,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,8BAA8B;KACpC;IACD,QAAQ,EAAE;QACT,KAAK,EAAE,8BAA8B;QACrC,IAAI,EAAE,6BAA6B;QACnC,IAAI,EAAE,6BAA6B;KACnC;IAED,iBAAiB;IACjB,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE;QACL,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,yBAAyB;QAC/B,IAAI,EAAE,yBAAyB;KAC/B;IAED,gBAAgB;IAChB,OAAO,EAAE;QACR,KAAK,EAAE,6BAA6B;QACpC,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,4BAA4B;KAClC;IACD,OAAO,EAAE;QACR,KAAK,EAAE,6BAA6B;QACpC,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,4BAA4B;KAClC;IACD,KAAK,EAAE;QACN,KAAK,EAAE,2BAA2B;QAClC,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,0BAA0B;KAChC;IACD,IAAI,EAAE;QACL,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,yBAAyB;QAC/B,IAAI,EAAE,yBAAyB;KAC/B;IAED,iBAAiB;IACjB,UAAU,EAAE,0BAA0B;IACtC,OAAO,EAAE,uBAAuB;IAChC,QAAQ,EAAE,wBAAwB;IAClC,SAAS,EAAE,yBAAyB;IAEpC,cAAc;IACd,IAAI,EAAE;QACL,QAAQ,EAAE,6BAA6B;QACvC,SAAS,EAAE,8BAA8B;QACzC,QAAQ,EAAE,6BAA6B;QACvC,MAAM,EAAE,2BAA2B;
|
|
1
|
+
{"version":3,"file":"thread-theme.js","sourceRoot":"","sources":["../../src/theme/thread-theme.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAU;IACjC,gBAAgB;IAChB,OAAO,EAAE;QACR,KAAK,EAAE,6BAA6B;QACpC,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,4BAA4B;KAClC;IACD,SAAS,EAAE;QACV,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,8BAA8B;KACpC;IACD,QAAQ,EAAE;QACT,KAAK,EAAE,8BAA8B;QACrC,IAAI,EAAE,6BAA6B;QACnC,IAAI,EAAE,6BAA6B;KACnC;IAED,iBAAiB;IACjB,KAAK,EAAE,qBAAqB;IAC5B,KAAK,EAAE,qBAAqB;IAC5B,IAAI,EAAE;QACL,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,yBAAyB;QAC/B,IAAI,EAAE,yBAAyB;KAC/B;IAED,gBAAgB;IAChB,OAAO,EAAE;QACR,KAAK,EAAE,6BAA6B;QACpC,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,4BAA4B;KAClC;IACD,OAAO,EAAE;QACR,KAAK,EAAE,6BAA6B;QACpC,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,4BAA4B;KAClC;IACD,KAAK,EAAE;QACN,KAAK,EAAE,2BAA2B;QAClC,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,0BAA0B;KAChC;IACD,IAAI,EAAE;QACL,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE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,MAAM,CAAC;IAGlB,IAAI,EAAE,UAAU,CAAC;IAGjB,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAE5B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAGlB,IAAI,EAAE,UAAU,CAAC;CACjB,CAAC;AAEF,KAAK,eAAe,GAAG,KAAK,GAAG;IAC9B,QAAQ,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,gBAAgB,CAAC"}
|
package/dist/utils/index.js
CHANGED
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/use-pathname/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/use-pathname/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pathname.d.ts","sourceRoot":"","sources":["../../../src/utils/use-pathname/use-pathname.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,cAgBvB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
export const usePathname = () => {
|
|
4
|
+
const [pathname, setPathname] = useState(''); // Safe initial state
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
// Set initial pathname after mount
|
|
7
|
+
setPathname(window.location.pathname);
|
|
8
|
+
const handleLocationChange = () => {
|
|
9
|
+
setPathname(window.location.pathname);
|
|
10
|
+
};
|
|
11
|
+
window.addEventListener('popstate', handleLocationChange);
|
|
12
|
+
return () => window.removeEventListener('popstate', handleLocationChange);
|
|
13
|
+
}, []);
|
|
14
|
+
return pathname;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=use-pathname.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pathname.js","sourceRoot":"","sources":["../../../src/utils/use-pathname/use-pathname.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AACb,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC/B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAqB;IAEnE,SAAS,CAAC,GAAG,EAAE;QACd,mCAAmC;QACnC,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAEtC,MAAM,oBAAoB,GAAG,GAAG,EAAE;YACjC,WAAW,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACvC,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC;QAC1D,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC;IAC3E,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thread-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "UI Library for React Applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -109,6 +109,6 @@
|
|
|
109
109
|
},
|
|
110
110
|
"dependencies": {
|
|
111
111
|
"@emotion/css": "^11.13.5",
|
|
112
|
-
"@phosphor-icons/react": "^2.1.
|
|
112
|
+
"@phosphor-icons/react": "^2.1.10"
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { DeepPartial } from '../../types';
|
|
2
|
-
type ColorShades = {
|
|
3
|
-
light: string;
|
|
4
|
-
main: string;
|
|
5
|
-
dark: string;
|
|
6
|
-
};
|
|
7
|
-
export type TextColors = {
|
|
8
|
-
primary: string;
|
|
9
|
-
secondary: string;
|
|
10
|
-
disabled: string;
|
|
11
|
-
};
|
|
12
|
-
export type UtilitySizes = {
|
|
13
|
-
sm: string;
|
|
14
|
-
md: string;
|
|
15
|
-
lg: string;
|
|
16
|
-
};
|
|
17
|
-
export type Theme = {
|
|
18
|
-
primary: ColorShades;
|
|
19
|
-
secondary: ColorShades;
|
|
20
|
-
tertiary: ColorShades;
|
|
21
|
-
white: string;
|
|
22
|
-
black: string;
|
|
23
|
-
gray: ColorShades;
|
|
24
|
-
success: ColorShades;
|
|
25
|
-
warning: ColorShades;
|
|
26
|
-
error: ColorShades;
|
|
27
|
-
info: ColorShades;
|
|
28
|
-
background: string;
|
|
29
|
-
surface: string;
|
|
30
|
-
elevated: string;
|
|
31
|
-
structure: string;
|
|
32
|
-
text: TextColors;
|
|
33
|
-
borderRadius: UtilitySizes;
|
|
34
|
-
borderSize: UtilitySizes;
|
|
35
|
-
};
|
|
36
|
-
export type DarkModeColors = {
|
|
37
|
-
background: string;
|
|
38
|
-
surface: string;
|
|
39
|
-
elevated: string;
|
|
40
|
-
structure: string;
|
|
41
|
-
text: TextColors;
|
|
42
|
-
};
|
|
43
|
-
export type ThemeConfigBase = Theme & {
|
|
44
|
-
darkMode: DarkModeColors;
|
|
45
|
-
};
|
|
46
|
-
export type ThemeConfig = DeepPartial<ThemeConfigBase>;
|
|
47
|
-
export {};
|
|
48
|
-
//# sourceMappingURL=theme.types.d.ts.map
|
|
@@ -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