@mekari/pixel3-styled-system 0.0.1 → 0.0.3
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/CHANGELOG.md +12 -0
- package/jsx/aspect-ratio.d.ts +2 -2
- package/jsx/aspect-ratio.mjs +9 -7
- package/jsx/bleed.d.ts +2 -2
- package/jsx/bleed.mjs +10 -8
- package/jsx/box.d.ts +2 -2
- package/jsx/box.mjs +9 -7
- package/jsx/center.d.ts +2 -2
- package/jsx/center.mjs +9 -7
- package/jsx/circle.d.ts +2 -2
- package/jsx/circle.mjs +9 -7
- package/jsx/container.d.ts +2 -2
- package/jsx/container.mjs +9 -7
- package/jsx/divider.d.ts +2 -2
- package/jsx/divider.mjs +10 -8
- package/jsx/factory.d.ts +2 -2
- package/jsx/factory.mjs +9 -9
- package/jsx/flex.d.ts +2 -2
- package/jsx/flex.mjs +10 -8
- package/jsx/float.d.ts +2 -2
- package/jsx/float.mjs +10 -8
- package/jsx/grid-item.d.ts +2 -2
- package/jsx/grid-item.mjs +10 -8
- package/jsx/grid.d.ts +2 -2
- package/jsx/grid.mjs +10 -8
- package/jsx/hstack.d.ts +2 -2
- package/jsx/hstack.mjs +10 -8
- package/jsx/index.d.ts +1 -1
- package/jsx/link-box.d.ts +2 -2
- package/jsx/link-box.mjs +9 -7
- package/jsx/link-overlay.d.ts +2 -2
- package/jsx/link-overlay.mjs +9 -7
- package/jsx/spacer.d.ts +2 -2
- package/jsx/spacer.mjs +9 -7
- package/jsx/square.d.ts +2 -2
- package/jsx/square.mjs +9 -7
- package/jsx/stack.d.ts +2 -2
- package/jsx/stack.mjs +10 -8
- package/jsx/visually-hidden.d.ts +2 -2
- package/jsx/visually-hidden.mjs +9 -7
- package/jsx/vstack.d.ts +2 -2
- package/jsx/vstack.mjs +10 -8
- package/jsx/wrap.d.ts +2 -2
- package/jsx/wrap.mjs +10 -8
- package/package.json +1 -1
- package/recipes/banner-close-button-recipe.d.ts +27 -0
- package/recipes/banner-close-button-recipe.mjs +22 -0
- package/recipes/banner-description-recipe.d.ts +27 -0
- package/recipes/banner-description-recipe.mjs +22 -0
- package/recipes/banner-icon-recipe.d.ts +27 -0
- package/recipes/banner-icon-recipe.mjs +34 -0
- package/recipes/banner-icon-slot-recipe.d.ts +27 -0
- package/recipes/banner-icon-slot-recipe.mjs +34 -0
- package/recipes/banner-link-recipe.d.ts +27 -0
- package/recipes/banner-link-recipe.mjs +22 -0
- package/recipes/banner-recipe.d.ts +27 -0
- package/recipes/banner-recipe.mjs +31 -0
- package/recipes/banner-slot-recipe.d.ts +27 -0
- package/recipes/banner-slot-recipe.mjs +45 -0
- package/recipes/banner-title-recipe.d.ts +27 -0
- package/recipes/banner-title-recipe.mjs +22 -0
- package/recipes/dropzone-recipe.d.ts +27 -0
- package/recipes/dropzone-recipe.mjs +34 -0
- package/recipes/dropzone-slot-recipe.d.ts +27 -0
- package/recipes/dropzone-slot-recipe.mjs +70 -0
- package/recipes/index.d.ts +11 -1
- package/recipes/index.mjs +11 -1
- package/recipes/modal-slot-recipe.d.ts +27 -0
- package/recipes/modal-slot-recipe.mjs +75 -0
- package/recipes/tag-slot-recipe.mjs +9 -1
- package/recipes/upload-list-slot-recipe.d.ts +27 -0
- package/recipes/upload-list-slot-recipe.mjs +38 -0
- package/recipes/upload-slot-recipe.d.ts +27 -0
- package/recipes/upload-slot-recipe.mjs +34 -0
- package/tokens/index.css +16 -0
- package/tokens/index.mjs +108 -8
- package/tokens/tokens.d.ts +4 -4
- package/types/jsx.d.ts +9 -9
- package/types/prop-type.d.ts +1 -1
- package/types/static-css.d.ts +23 -17
package/tokens/index.mjs
CHANGED
|
@@ -75,6 +75,86 @@ const tokens = {
|
|
|
75
75
|
"value": "#448AFF",
|
|
76
76
|
"variable": "var(--mp-colors-brand-university)"
|
|
77
77
|
},
|
|
78
|
+
"colors.whiteAlpha.50": {
|
|
79
|
+
"value": "rgba(255, 255, 255, 0.04)",
|
|
80
|
+
"variable": "var(--mp-colors-white-alpha-50)"
|
|
81
|
+
},
|
|
82
|
+
"colors.whiteAlpha.100": {
|
|
83
|
+
"value": "rgba(255, 255, 255, 0.06)",
|
|
84
|
+
"variable": "var(--mp-colors-white-alpha-100)"
|
|
85
|
+
},
|
|
86
|
+
"colors.whiteAlpha.200": {
|
|
87
|
+
"value": "rgba(255, 255, 255, 0.08)",
|
|
88
|
+
"variable": "var(--mp-colors-white-alpha-200)"
|
|
89
|
+
},
|
|
90
|
+
"colors.whiteAlpha.300": {
|
|
91
|
+
"value": "rgba(255, 255, 255, 0.16)",
|
|
92
|
+
"variable": "var(--mp-colors-white-alpha-300)"
|
|
93
|
+
},
|
|
94
|
+
"colors.whiteAlpha.400": {
|
|
95
|
+
"value": "rgba(255, 255, 255, 0.24)",
|
|
96
|
+
"variable": "var(--mp-colors-white-alpha-400)"
|
|
97
|
+
},
|
|
98
|
+
"colors.whiteAlpha.500": {
|
|
99
|
+
"value": "rgba(255, 255, 255, 0.36)",
|
|
100
|
+
"variable": "var(--mp-colors-white-alpha-500)"
|
|
101
|
+
},
|
|
102
|
+
"colors.whiteAlpha.600": {
|
|
103
|
+
"value": "rgba(255, 255, 255, 0.48)",
|
|
104
|
+
"variable": "var(--mp-colors-white-alpha-600)"
|
|
105
|
+
},
|
|
106
|
+
"colors.whiteAlpha.700": {
|
|
107
|
+
"value": "rgba(255, 255, 255, 0.64)",
|
|
108
|
+
"variable": "var(--mp-colors-white-alpha-700)"
|
|
109
|
+
},
|
|
110
|
+
"colors.whiteAlpha.800": {
|
|
111
|
+
"value": "rgba(255, 255, 255, 0.80)",
|
|
112
|
+
"variable": "var(--mp-colors-white-alpha-800)"
|
|
113
|
+
},
|
|
114
|
+
"colors.whiteAlpha.900": {
|
|
115
|
+
"value": "rgba(255, 255, 255, 0.92)",
|
|
116
|
+
"variable": "var(--mp-colors-white-alpha-900)"
|
|
117
|
+
},
|
|
118
|
+
"colors.blackAplpha.50": {
|
|
119
|
+
"value": "rgba(0, 0, 0, 0.04)",
|
|
120
|
+
"variable": "var(--mp-colors-black-aplpha-50)"
|
|
121
|
+
},
|
|
122
|
+
"colors.blackAplpha.100": {
|
|
123
|
+
"value": "rgba(0, 0, 0, 0.06)",
|
|
124
|
+
"variable": "var(--mp-colors-black-aplpha-100)"
|
|
125
|
+
},
|
|
126
|
+
"colors.blackAplpha.200": {
|
|
127
|
+
"value": "rgba(0, 0, 0, 0.08)",
|
|
128
|
+
"variable": "var(--mp-colors-black-aplpha-200)"
|
|
129
|
+
},
|
|
130
|
+
"colors.blackAplpha.300": {
|
|
131
|
+
"value": "rgba(0, 0, 0, 0.16)",
|
|
132
|
+
"variable": "var(--mp-colors-black-aplpha-300)"
|
|
133
|
+
},
|
|
134
|
+
"colors.blackAplpha.400": {
|
|
135
|
+
"value": "rgba(0, 0, 0, 0.24)",
|
|
136
|
+
"variable": "var(--mp-colors-black-aplpha-400)"
|
|
137
|
+
},
|
|
138
|
+
"colors.blackAplpha.500": {
|
|
139
|
+
"value": "rgba(0, 0, 0, 0.36)",
|
|
140
|
+
"variable": "var(--mp-colors-black-aplpha-500)"
|
|
141
|
+
},
|
|
142
|
+
"colors.blackAplpha.600": {
|
|
143
|
+
"value": "rgba(0, 0, 0, 0.48)",
|
|
144
|
+
"variable": "var(--mp-colors-black-aplpha-600)"
|
|
145
|
+
},
|
|
146
|
+
"colors.blackAplpha.700": {
|
|
147
|
+
"value": "rgba(0, 0, 0, 0.64)",
|
|
148
|
+
"variable": "var(--mp-colors-black-aplpha-700)"
|
|
149
|
+
},
|
|
150
|
+
"colors.blackAplpha.800": {
|
|
151
|
+
"value": "rgba(0, 0, 0, 0.80)",
|
|
152
|
+
"variable": "var(--mp-colors-black-aplpha-800)"
|
|
153
|
+
},
|
|
154
|
+
"colors.blackAplpha.900": {
|
|
155
|
+
"value": "rgba(0, 0, 0, 0.92)",
|
|
156
|
+
"variable": "var(--mp-colors-black-aplpha-900)"
|
|
157
|
+
},
|
|
78
158
|
"colors.gray.25": {
|
|
79
159
|
"value": "#F8F9FB",
|
|
80
160
|
"variable": "var(--mp-colors-gray-25)"
|
|
@@ -567,6 +647,10 @@ const tokens = {
|
|
|
567
647
|
"value": "100%",
|
|
568
648
|
"variable": "var(--mp-sizes-full)"
|
|
569
649
|
},
|
|
650
|
+
"sizes.sm": {
|
|
651
|
+
"value": "24rem",
|
|
652
|
+
"variable": "var(--mp-sizes-sm)"
|
|
653
|
+
},
|
|
570
654
|
"sizes.breakpoint-sm": {
|
|
571
655
|
"value": "22.5em",
|
|
572
656
|
"variable": "var(--mp-sizes-breakpoint-sm)"
|
|
@@ -811,10 +895,6 @@ const tokens = {
|
|
|
811
895
|
"value": "var(--mp-colors-color-palette-university)",
|
|
812
896
|
"variable": "var(--mp-colors-color-palette-university)"
|
|
813
897
|
},
|
|
814
|
-
"colors.colorPalette.25": {
|
|
815
|
-
"value": "var(--mp-colors-color-palette-25)",
|
|
816
|
-
"variable": "var(--mp-colors-color-palette-25)"
|
|
817
|
-
},
|
|
818
898
|
"colors.colorPalette.50": {
|
|
819
899
|
"value": "var(--mp-colors-color-palette-50)",
|
|
820
900
|
"variable": "var(--mp-colors-color-palette-50)"
|
|
@@ -823,21 +903,41 @@ const tokens = {
|
|
|
823
903
|
"value": "var(--mp-colors-color-palette-100)",
|
|
824
904
|
"variable": "var(--mp-colors-color-palette-100)"
|
|
825
905
|
},
|
|
906
|
+
"colors.colorPalette.200": {
|
|
907
|
+
"value": "var(--mp-colors-color-palette-200)",
|
|
908
|
+
"variable": "var(--mp-colors-color-palette-200)"
|
|
909
|
+
},
|
|
910
|
+
"colors.colorPalette.300": {
|
|
911
|
+
"value": "var(--mp-colors-color-palette-300)",
|
|
912
|
+
"variable": "var(--mp-colors-color-palette-300)"
|
|
913
|
+
},
|
|
826
914
|
"colors.colorPalette.400": {
|
|
827
915
|
"value": "var(--mp-colors-color-palette-400)",
|
|
828
916
|
"variable": "var(--mp-colors-color-palette-400)"
|
|
829
917
|
},
|
|
830
|
-
"colors.colorPalette.600": {
|
|
831
|
-
"value": "var(--mp-colors-color-palette-600)",
|
|
832
|
-
"variable": "var(--mp-colors-color-palette-600)"
|
|
833
|
-
},
|
|
834
918
|
"colors.colorPalette.500": {
|
|
835
919
|
"value": "var(--mp-colors-color-palette-500)",
|
|
836
920
|
"variable": "var(--mp-colors-color-palette-500)"
|
|
837
921
|
},
|
|
922
|
+
"colors.colorPalette.600": {
|
|
923
|
+
"value": "var(--mp-colors-color-palette-600)",
|
|
924
|
+
"variable": "var(--mp-colors-color-palette-600)"
|
|
925
|
+
},
|
|
838
926
|
"colors.colorPalette.700": {
|
|
839
927
|
"value": "var(--mp-colors-color-palette-700)",
|
|
840
928
|
"variable": "var(--mp-colors-color-palette-700)"
|
|
929
|
+
},
|
|
930
|
+
"colors.colorPalette.800": {
|
|
931
|
+
"value": "var(--mp-colors-color-palette-800)",
|
|
932
|
+
"variable": "var(--mp-colors-color-palette-800)"
|
|
933
|
+
},
|
|
934
|
+
"colors.colorPalette.900": {
|
|
935
|
+
"value": "var(--mp-colors-color-palette-900)",
|
|
936
|
+
"variable": "var(--mp-colors-color-palette-900)"
|
|
937
|
+
},
|
|
938
|
+
"colors.colorPalette.25": {
|
|
939
|
+
"value": "var(--mp-colors-color-palette-25)",
|
|
940
|
+
"variable": "var(--mp-colors-color-palette-25)"
|
|
841
941
|
}
|
|
842
942
|
}
|
|
843
943
|
|
package/tokens/tokens.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export type Token = "borders.none" | "borders.sm" | "borders.md" | "borders.lg" | "colors.currentcolor" | "colors.dark" | "colors.white" | "colors.background" | "colors.overlay" | "colors.brand.capital" | "colors.brand.esign" | "colors.brand.expense" | "colors.brand.flex" | "colors.brand.jurnal" | "colors.brand.klikpajak" | "colors.brand.mekari" | "colors.brand.qontak" | "colors.brand.talenta" | "colors.brand.university" | "colors.gray.25" | "colors.gray.50" | "colors.gray.100" | "colors.gray.400" | "colors.gray.600" | "colors.blue.50" | "colors.blue.100" | "colors.blue.400" | "colors.blue.500" | "colors.blue.700" | "colors.red.50" | "colors.red.400" | "colors.red.500" | "colors.red.700" | "colors.green.50" | "colors.green.400" | "colors.green.500" | "colors.green.700" | "colors.orange.50" | "colors.orange.400" | "colors.orange.500" | "colors.orange.700" | "colors.sky.100" | "colors.sky.400" | "colors.teal.100" | "colors.teal.400" | "colors.violet.100" | "colors.violet.400" | "colors.amber.100" | "colors.amber.400" | "colors.rose.100" | "colors.rose.400" | "colors.stone.100" | "colors.stone.400" | "colors.lime.100" | "colors.lime.400" | "colors.pink.100" | "colors.pink.400" | "colors.apricot.100" | "colors.apricot.400" | "colors.aqua.100" | "colors.aqua.400" | "colors.leaf.100" | "colors.leaf.400" | "colors.fuchsia.100" | "colors.fuchsia.400" | "colors.ice.50" | "colors.ice.100" | "colors.ash.100" | "durations.slow" | "durations.normal" | "durations.fast" | "fonts.body" | "fonts.mono" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontWeights.regular" | "fontWeights.semiBold" | "fontWeights.bold" | "lineHeights.xs" | "lineHeights.sm" | "lineHeights.md" | "lineHeights.lg" | "lineHeights.xl" | "lineHeights.2xl" | "lineHeights.3xl" | "letterSpacings.tighter" | "letterSpacings.tight" | "letterSpacings.normal" | "letterSpacings.wide" | "letterSpacings.wider" | "letterSpacings.widest" | "opacity.0" | "opacity.40" | "opacity.60" | "opacity.100" | "radii.none" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.xl" | "radii.full" | "shadows.xs" | "shadows.sm" | "shadows.md" | "shadows.lg" | "shadows.focus" | "shadows.xl" | "shadows.2xl" | "shadows.outline" | "shadows.outline-tab" | "shadows.outer" | "shadows.inner" | "shadows.none" | "sizes.0" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.16" | "sizes.20" | "sizes.22" | "sizes.56" | "sizes.65" | "sizes.0.25" | "sizes.0.5" | "sizes.2.5" | "sizes.7.5" | "sizes.9.5" | "sizes.full" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.8" | "spacing.12" | "spacing.16" | "spacing.20" | "spacing.24" | "spacing.32" | "spacing.40" | "spacing.64" | "spacing.0.5" | "spacing.1.5" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.sticky" | "zIndex.overlay" | "zIndex.modal" | "zIndex.popover" | "zIndex.tooltip" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "spacing.-0" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-8" | "spacing.-12" | "spacing.-16" | "spacing.-20" | "spacing.-24" | "spacing.-32" | "spacing.-40" | "spacing.-64" | "spacing.-0.5" | "spacing.-1.5" | "colors.colorPalette" | "colors.colorPalette.capital" | "colors.colorPalette.esign" | "colors.colorPalette.expense" | "colors.colorPalette.flex" | "colors.colorPalette.jurnal" | "colors.colorPalette.klikpajak" | "colors.colorPalette.mekari" | "colors.colorPalette.qontak" | "colors.colorPalette.talenta" | "colors.colorPalette.university" | "colors.colorPalette.
|
|
2
|
+
export type Token = "borders.none" | "borders.sm" | "borders.md" | "borders.lg" | "colors.currentcolor" | "colors.dark" | "colors.white" | "colors.background" | "colors.overlay" | "colors.brand.capital" | "colors.brand.esign" | "colors.brand.expense" | "colors.brand.flex" | "colors.brand.jurnal" | "colors.brand.klikpajak" | "colors.brand.mekari" | "colors.brand.qontak" | "colors.brand.talenta" | "colors.brand.university" | "colors.whiteAlpha.50" | "colors.whiteAlpha.100" | "colors.whiteAlpha.200" | "colors.whiteAlpha.300" | "colors.whiteAlpha.400" | "colors.whiteAlpha.500" | "colors.whiteAlpha.600" | "colors.whiteAlpha.700" | "colors.whiteAlpha.800" | "colors.whiteAlpha.900" | "colors.blackAplpha.50" | "colors.blackAplpha.100" | "colors.blackAplpha.200" | "colors.blackAplpha.300" | "colors.blackAplpha.400" | "colors.blackAplpha.500" | "colors.blackAplpha.600" | "colors.blackAplpha.700" | "colors.blackAplpha.800" | "colors.blackAplpha.900" | "colors.gray.25" | "colors.gray.50" | "colors.gray.100" | "colors.gray.400" | "colors.gray.600" | "colors.blue.50" | "colors.blue.100" | "colors.blue.400" | "colors.blue.500" | "colors.blue.700" | "colors.red.50" | "colors.red.400" | "colors.red.500" | "colors.red.700" | "colors.green.50" | "colors.green.400" | "colors.green.500" | "colors.green.700" | "colors.orange.50" | "colors.orange.400" | "colors.orange.500" | "colors.orange.700" | "colors.sky.100" | "colors.sky.400" | "colors.teal.100" | "colors.teal.400" | "colors.violet.100" | "colors.violet.400" | "colors.amber.100" | "colors.amber.400" | "colors.rose.100" | "colors.rose.400" | "colors.stone.100" | "colors.stone.400" | "colors.lime.100" | "colors.lime.400" | "colors.pink.100" | "colors.pink.400" | "colors.apricot.100" | "colors.apricot.400" | "colors.aqua.100" | "colors.aqua.400" | "colors.leaf.100" | "colors.leaf.400" | "colors.fuchsia.100" | "colors.fuchsia.400" | "colors.ice.50" | "colors.ice.100" | "colors.ash.100" | "durations.slow" | "durations.normal" | "durations.fast" | "fonts.body" | "fonts.mono" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontWeights.regular" | "fontWeights.semiBold" | "fontWeights.bold" | "lineHeights.xs" | "lineHeights.sm" | "lineHeights.md" | "lineHeights.lg" | "lineHeights.xl" | "lineHeights.2xl" | "lineHeights.3xl" | "letterSpacings.tighter" | "letterSpacings.tight" | "letterSpacings.normal" | "letterSpacings.wide" | "letterSpacings.wider" | "letterSpacings.widest" | "opacity.0" | "opacity.40" | "opacity.60" | "opacity.100" | "radii.none" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.xl" | "radii.full" | "shadows.xs" | "shadows.sm" | "shadows.md" | "shadows.lg" | "shadows.focus" | "shadows.xl" | "shadows.2xl" | "shadows.outline" | "shadows.outline-tab" | "shadows.outer" | "shadows.inner" | "shadows.none" | "sizes.0" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.16" | "sizes.20" | "sizes.22" | "sizes.56" | "sizes.65" | "sizes.0.25" | "sizes.0.5" | "sizes.2.5" | "sizes.7.5" | "sizes.9.5" | "sizes.full" | "sizes.sm" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.8" | "spacing.12" | "spacing.16" | "spacing.20" | "spacing.24" | "spacing.32" | "spacing.40" | "spacing.64" | "spacing.0.5" | "spacing.1.5" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.sticky" | "zIndex.overlay" | "zIndex.modal" | "zIndex.popover" | "zIndex.tooltip" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "spacing.-0" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-8" | "spacing.-12" | "spacing.-16" | "spacing.-20" | "spacing.-24" | "spacing.-32" | "spacing.-40" | "spacing.-64" | "spacing.-0.5" | "spacing.-1.5" | "colors.colorPalette" | "colors.colorPalette.capital" | "colors.colorPalette.esign" | "colors.colorPalette.expense" | "colors.colorPalette.flex" | "colors.colorPalette.jurnal" | "colors.colorPalette.klikpajak" | "colors.colorPalette.mekari" | "colors.colorPalette.qontak" | "colors.colorPalette.talenta" | "colors.colorPalette.university" | "colors.colorPalette.50" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette.25"
|
|
3
3
|
|
|
4
|
-
export type ColorPalette = "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand" | "gray" | "blue" | "red" | "green" | "orange" | "sky" | "teal" | "violet" | "amber" | "rose" | "stone" | "lime" | "pink" | "apricot" | "aqua" | "leaf" | "fuchsia" | "ice" | "ash"
|
|
4
|
+
export type ColorPalette = "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand" | "whiteAlpha" | "blackAplpha" | "gray" | "blue" | "red" | "green" | "orange" | "sky" | "teal" | "violet" | "amber" | "rose" | "stone" | "lime" | "pink" | "apricot" | "aqua" | "leaf" | "fuchsia" | "ice" | "ash"
|
|
5
5
|
|
|
6
6
|
export type BorderToken = "none" | "sm" | "md" | "lg"
|
|
7
7
|
|
|
8
|
-
export type ColorToken = "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand.capital" | "brand.esign" | "brand.expense" | "brand.flex" | "brand.jurnal" | "brand.klikpajak" | "brand.mekari" | "brand.qontak" | "brand.talenta" | "brand.university" | "gray.25" | "gray.50" | "gray.100" | "gray.400" | "gray.600" | "blue.50" | "blue.100" | "blue.400" | "blue.500" | "blue.700" | "red.50" | "red.400" | "red.500" | "red.700" | "green.50" | "green.400" | "green.500" | "green.700" | "orange.50" | "orange.400" | "orange.500" | "orange.700" | "sky.100" | "sky.400" | "teal.100" | "teal.400" | "violet.100" | "violet.400" | "amber.100" | "amber.400" | "rose.100" | "rose.400" | "stone.100" | "stone.400" | "lime.100" | "lime.400" | "pink.100" | "pink.400" | "apricot.100" | "apricot.400" | "aqua.100" | "aqua.400" | "leaf.100" | "leaf.400" | "fuchsia.100" | "fuchsia.400" | "ice.50" | "ice.100" | "ash.100" | "colorPalette" | "colorPalette.capital" | "colorPalette.esign" | "colorPalette.expense" | "colorPalette.flex" | "colorPalette.jurnal" | "colorPalette.klikpajak" | "colorPalette.mekari" | "colorPalette.qontak" | "colorPalette.talenta" | "colorPalette.university" | "colorPalette.
|
|
8
|
+
export type ColorToken = "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand.capital" | "brand.esign" | "brand.expense" | "brand.flex" | "brand.jurnal" | "brand.klikpajak" | "brand.mekari" | "brand.qontak" | "brand.talenta" | "brand.university" | "whiteAlpha.50" | "whiteAlpha.100" | "whiteAlpha.200" | "whiteAlpha.300" | "whiteAlpha.400" | "whiteAlpha.500" | "whiteAlpha.600" | "whiteAlpha.700" | "whiteAlpha.800" | "whiteAlpha.900" | "blackAplpha.50" | "blackAplpha.100" | "blackAplpha.200" | "blackAplpha.300" | "blackAplpha.400" | "blackAplpha.500" | "blackAplpha.600" | "blackAplpha.700" | "blackAplpha.800" | "blackAplpha.900" | "gray.25" | "gray.50" | "gray.100" | "gray.400" | "gray.600" | "blue.50" | "blue.100" | "blue.400" | "blue.500" | "blue.700" | "red.50" | "red.400" | "red.500" | "red.700" | "green.50" | "green.400" | "green.500" | "green.700" | "orange.50" | "orange.400" | "orange.500" | "orange.700" | "sky.100" | "sky.400" | "teal.100" | "teal.400" | "violet.100" | "violet.400" | "amber.100" | "amber.400" | "rose.100" | "rose.400" | "stone.100" | "stone.400" | "lime.100" | "lime.400" | "pink.100" | "pink.400" | "apricot.100" | "apricot.400" | "aqua.100" | "aqua.400" | "leaf.100" | "leaf.400" | "fuchsia.100" | "fuchsia.400" | "ice.50" | "ice.100" | "ash.100" | "colorPalette" | "colorPalette.capital" | "colorPalette.esign" | "colorPalette.expense" | "colorPalette.flex" | "colorPalette.jurnal" | "colorPalette.klikpajak" | "colorPalette.mekari" | "colorPalette.qontak" | "colorPalette.talenta" | "colorPalette.university" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.25"
|
|
9
9
|
|
|
10
10
|
export type DurationToken = "slow" | "normal" | "fast"
|
|
11
11
|
|
|
@@ -25,7 +25,7 @@ export type RadiusToken = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "full"
|
|
|
25
25
|
|
|
26
26
|
export type ShadowToken = "xs" | "sm" | "md" | "lg" | "focus" | "xl" | "2xl" | "outline" | "outline-tab" | "outer" | "inner" | "none"
|
|
27
27
|
|
|
28
|
-
export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "16" | "20" | "22" | "56" | "65" | "0.25" | "0.5" | "2.5" | "7.5" | "9.5" | "full" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl"
|
|
28
|
+
export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "16" | "20" | "22" | "56" | "65" | "0.25" | "0.5" | "2.5" | "7.5" | "9.5" | "full" | "sm" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl"
|
|
29
29
|
|
|
30
30
|
export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | "16" | "20" | "24" | "32" | "40" | "64" | "0.5" | "1.5" | "-0" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-8" | "-12" | "-16" | "-20" | "-24" | "-32" | "-40" | "-64" | "-0.5" | "-1.5"
|
|
31
31
|
|
package/types/jsx.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export type ComponentProps<T extends ElementType> = T extends IntrinsicElement
|
|
|
14
14
|
? Props
|
|
15
15
|
: never
|
|
16
16
|
|
|
17
|
-
export interface
|
|
17
|
+
export interface PixelComponent<T extends ElementType, P extends Dict = {}> extends FunctionalComponent<
|
|
18
18
|
JsxHTMLProps<ComponentProps<T>, Assign<JsxStyleProps, P>>
|
|
19
19
|
> {}
|
|
20
20
|
|
|
@@ -30,12 +30,12 @@ export interface JsxFactoryOptions<TProps extends Dict> {
|
|
|
30
30
|
|
|
31
31
|
export type JsxRecipeProps<T extends ElementType, P extends RecipeFn> = JsxHTMLProps<ComponentProps<T>, Assign<JsxStyleProps, P['__type']>>;
|
|
32
32
|
|
|
33
|
-
export type JsxElement<T extends ElementType, P> = T extends
|
|
34
|
-
?
|
|
35
|
-
:
|
|
33
|
+
export type JsxElement<T extends ElementType, P> = T extends PixelComponent<infer A, infer B>
|
|
34
|
+
? PixelComponent<A, Pretty<DistributiveUnion<P, B>>>
|
|
35
|
+
: PixelComponent<T, P>
|
|
36
36
|
|
|
37
37
|
export interface JsxFactory {
|
|
38
|
-
<T extends ElementType>(component: T):
|
|
38
|
+
<T extends ElementType>(component: T): PixelComponent<T, {}>
|
|
39
39
|
<T extends ElementType, P extends RecipeVariantRecord>(component: T, recipe: RecipeDefinition<P>, options?: JsxFactoryOptions<JsxRecipeProps<T, RecipeSelection<P>>>): JsxElement<
|
|
40
40
|
T,
|
|
41
41
|
RecipeSelection<P>
|
|
@@ -44,11 +44,11 @@ export interface JsxFactory {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export type JsxElements = {
|
|
47
|
-
[K in IntrinsicElement]:
|
|
47
|
+
[K in IntrinsicElement]: PixelComponent<K, {}>
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export type
|
|
50
|
+
export type Pixel = JsxFactory & JsxElements
|
|
51
51
|
|
|
52
|
-
export type
|
|
52
|
+
export type HTMLPixelProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
|
|
53
53
|
|
|
54
|
-
export type
|
|
54
|
+
export type PixelVariantProps<T extends PixelComponent<any, any>> = T extends PixelComponent<any, infer Props> ? Props : never
|
package/types/prop-type.d.ts
CHANGED
|
@@ -209,7 +209,7 @@ interface PropertyValueTypes {
|
|
|
209
209
|
strokeWidth: Tokens["borderWidths"];
|
|
210
210
|
srOnly: boolean;
|
|
211
211
|
debug: boolean;
|
|
212
|
-
colorPalette: "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand" | "gray" | "blue" | "red" | "green" | "orange" | "sky" | "teal" | "violet" | "amber" | "rose" | "stone" | "lime" | "pink" | "apricot" | "aqua" | "leaf" | "fuchsia" | "ice" | "ash";
|
|
212
|
+
colorPalette: "currentcolor" | "dark" | "white" | "background" | "overlay" | "brand" | "whiteAlpha" | "blackAplpha" | "gray" | "blue" | "red" | "green" | "orange" | "sky" | "teal" | "violet" | "amber" | "rose" | "stone" | "lime" | "pink" | "apricot" | "aqua" | "leaf" | "fuchsia" | "ice" | "ash";
|
|
213
213
|
textStyle: "overline" | "body.sm" | "body.md" | "label.sm" | "label.md" | "h3" | "h2" | "h1";
|
|
214
214
|
}
|
|
215
215
|
|
package/types/static-css.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
interface
|
|
2
|
+
interface WithConditions {
|
|
3
3
|
/**
|
|
4
|
-
* The css
|
|
5
|
-
* @example ['margin', 'padding']
|
|
6
|
-
*/
|
|
7
|
-
properties: {
|
|
8
|
-
[property: string]: string[]
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The css conditions to generate utilities for.
|
|
4
|
+
* The css conditions to generate for the rule.
|
|
12
5
|
* @example ['hover', 'focus']
|
|
13
6
|
*/
|
|
14
7
|
conditions?: string[]
|
|
8
|
+
responsive?: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface CssRule extends WithConditions {
|
|
15
12
|
/**
|
|
16
|
-
*
|
|
13
|
+
* The css properties to generate utilities for.
|
|
14
|
+
* @example ['margin', 'padding']
|
|
17
15
|
*/
|
|
18
|
-
|
|
16
|
+
properties: {
|
|
17
|
+
[property: string]: Array<string | number>
|
|
18
|
+
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
interface RecipeRuleVariants {
|
|
22
|
+
[variant: string]: boolean | string[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type RecipeRule = '*' | (RecipeRuleVariants & WithConditions)
|
|
26
|
+
export type PatternRule = '*' | CssRule
|
|
27
27
|
|
|
28
28
|
export interface StaticCssOptions {
|
|
29
29
|
/**
|
|
@@ -36,4 +36,10 @@ export interface StaticCssOptions {
|
|
|
36
36
|
recipes?: {
|
|
37
37
|
[recipe: string]: RecipeRule[]
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* The css patterns to generate.
|
|
41
|
+
*/
|
|
42
|
+
patterns?: {
|
|
43
|
+
[pattern: string]: PatternRule[]
|
|
44
|
+
}
|
|
39
45
|
}
|