@pallas-ui/style-context 0.1.0 → 0.1.1
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/index.js +26 -22
- package/dist/index.mjs +26 -22
- package/package.json +4 -4
- package/styled-system/css/conditions.mjs +1 -1
- package/styled-system/css/css.mjs +1 -1
- package/styled-system/css/sva.mjs +9 -4
- package/styled-system/helpers.mjs +12 -20
- package/styled-system/jsx/create-style-context.d.ts +54 -0
- package/styled-system/jsx/create-style-context.mjs +118 -0
- package/styled-system/jsx/factory.mjs +14 -5
- package/styled-system/jsx/index.d.ts +1 -0
- package/styled-system/jsx/index.mjs +1 -0
- package/styled-system/jsx/is-valid-prop.mjs +2 -2
- package/styled-system/patterns/aspect-ratio.d.ts +0 -1
- package/styled-system/patterns/bleed.d.ts +0 -1
- package/styled-system/patterns/box.d.ts +0 -1
- package/styled-system/patterns/center.d.ts +0 -1
- package/styled-system/patterns/circle.d.ts +0 -1
- package/styled-system/patterns/container.d.ts +0 -1
- package/styled-system/patterns/cq.d.ts +0 -1
- package/styled-system/patterns/divider.d.ts +0 -1
- package/styled-system/patterns/flex.d.ts +0 -1
- package/styled-system/patterns/float.d.ts +0 -1
- package/styled-system/patterns/grid-item.d.ts +0 -1
- package/styled-system/patterns/grid.d.ts +0 -1
- package/styled-system/patterns/grid.mjs +1 -1
- package/styled-system/patterns/hstack.d.ts +0 -1
- package/styled-system/patterns/hstack.mjs +1 -1
- package/styled-system/patterns/link-overlay.d.ts +0 -1
- package/styled-system/patterns/spacer.d.ts +0 -1
- package/styled-system/patterns/spacer.mjs +6 -2
- package/styled-system/patterns/square.d.ts +0 -1
- package/styled-system/patterns/stack.d.ts +0 -1
- package/styled-system/patterns/stack.mjs +1 -1
- package/styled-system/patterns/visually-hidden.d.ts +0 -1
- package/styled-system/patterns/vstack.d.ts +0 -1
- package/styled-system/patterns/vstack.mjs +1 -1
- package/styled-system/patterns/wrap.d.ts +0 -1
- package/styled-system/patterns/wrap.mjs +1 -1
- package/styled-system/tokens/index.mjs +43 -7
- package/styled-system/tokens/tokens.d.ts +5 -5
- package/styled-system/types/composition.d.ts +86 -23
- package/styled-system/types/conditions.d.ts +49 -13
- package/styled-system/types/csstype.d.ts +6405 -5133
- package/styled-system/types/jsx.d.ts +27 -10
- package/styled-system/types/pattern.d.ts +4 -4
- package/styled-system/types/prop-type.d.ts +11 -1
- package/styled-system/types/style-props.d.ts +2851 -2230
- package/styled-system/types/system-types.d.ts +44 -2
|
@@ -3,7 +3,7 @@ import { css } from '../css/index.mjs';
|
|
|
3
3
|
|
|
4
4
|
const wrapConfig = {
|
|
5
5
|
transform(props) {
|
|
6
|
-
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "
|
|
6
|
+
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "8px", align, justify, ...rest } = props;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexWrap: "wrap",
|
|
@@ -263,6 +263,10 @@ const tokens = {
|
|
|
263
263
|
"value": "8rem",
|
|
264
264
|
"variable": "var(--font-sizes-9xl)"
|
|
265
265
|
},
|
|
266
|
+
"shadows.2xs": {
|
|
267
|
+
"value": "0 1px rgb(0 0 0 / 0.05)",
|
|
268
|
+
"variable": "var(--shadows-2xs)"
|
|
269
|
+
},
|
|
266
270
|
"shadows.xs": {
|
|
267
271
|
"value": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
268
272
|
"variable": "var(--shadows-xs)"
|
|
@@ -287,9 +291,17 @@ const tokens = {
|
|
|
287
291
|
"value": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
288
292
|
"variable": "var(--shadows-2xl)"
|
|
289
293
|
},
|
|
290
|
-
"shadows.
|
|
291
|
-
"value": "inset 0
|
|
292
|
-
"variable": "var(--shadows-
|
|
294
|
+
"shadows.inset-2xs": {
|
|
295
|
+
"value": "inset 0 1px rgb(0 0 0 / 0.05)",
|
|
296
|
+
"variable": "var(--shadows-inset-2xs)"
|
|
297
|
+
},
|
|
298
|
+
"shadows.inset-xs": {
|
|
299
|
+
"value": "inset 0 1px 1px rgb(0 0 0 / 0.05)",
|
|
300
|
+
"variable": "var(--shadows-inset-xs)"
|
|
301
|
+
},
|
|
302
|
+
"shadows.inset-sm": {
|
|
303
|
+
"value": "inset 0 2px 4px rgb(0 0 0 / 0.05)",
|
|
304
|
+
"variable": "var(--shadows-inset-sm)"
|
|
293
305
|
},
|
|
294
306
|
"colors.current": {
|
|
295
307
|
"value": "currentColor",
|
|
@@ -1275,13 +1287,13 @@ const tokens = {
|
|
|
1275
1287
|
"value": "#020617",
|
|
1276
1288
|
"variable": "var(--colors-slate-950)"
|
|
1277
1289
|
},
|
|
1278
|
-
"blurs.
|
|
1290
|
+
"blurs.xs": {
|
|
1279
1291
|
"value": "4px",
|
|
1280
|
-
"variable": "var(--blurs-
|
|
1292
|
+
"variable": "var(--blurs-xs)"
|
|
1281
1293
|
},
|
|
1282
|
-
"blurs.
|
|
1294
|
+
"blurs.sm": {
|
|
1283
1295
|
"value": "8px",
|
|
1284
|
-
"variable": "var(--blurs-
|
|
1296
|
+
"variable": "var(--blurs-sm)"
|
|
1285
1297
|
},
|
|
1286
1298
|
"blurs.md": {
|
|
1287
1299
|
"value": "12px",
|
|
@@ -1439,6 +1451,14 @@ const tokens = {
|
|
|
1439
1451
|
"value": "0.875rem",
|
|
1440
1452
|
"variable": "var(--spacing-3\\.5)"
|
|
1441
1453
|
},
|
|
1454
|
+
"spacing.4.5": {
|
|
1455
|
+
"value": "1.125rem",
|
|
1456
|
+
"variable": "var(--spacing-4\\.5)"
|
|
1457
|
+
},
|
|
1458
|
+
"spacing.5.5": {
|
|
1459
|
+
"value": "1.375rem",
|
|
1460
|
+
"variable": "var(--spacing-5\\.5)"
|
|
1461
|
+
},
|
|
1442
1462
|
"sizes.0": {
|
|
1443
1463
|
"value": "0rem",
|
|
1444
1464
|
"variable": "var(--sizes-0)"
|
|
@@ -1575,6 +1595,14 @@ const tokens = {
|
|
|
1575
1595
|
"value": "0.875rem",
|
|
1576
1596
|
"variable": "var(--sizes-3\\.5)"
|
|
1577
1597
|
},
|
|
1598
|
+
"sizes.4.5": {
|
|
1599
|
+
"value": "1.125rem",
|
|
1600
|
+
"variable": "var(--sizes-4\\.5)"
|
|
1601
|
+
},
|
|
1602
|
+
"sizes.5.5": {
|
|
1603
|
+
"value": "1.375rem",
|
|
1604
|
+
"variable": "var(--sizes-5\\.5)"
|
|
1605
|
+
},
|
|
1578
1606
|
"sizes.xs": {
|
|
1579
1607
|
"value": "20rem",
|
|
1580
1608
|
"variable": "var(--sizes-xs)"
|
|
@@ -1831,6 +1859,14 @@ const tokens = {
|
|
|
1831
1859
|
"value": "calc(var(--spacing-3\\.5) * -1)",
|
|
1832
1860
|
"variable": "var(--spacing-3\\.5)"
|
|
1833
1861
|
},
|
|
1862
|
+
"spacing.-4.5": {
|
|
1863
|
+
"value": "calc(var(--spacing-4\\.5) * -1)",
|
|
1864
|
+
"variable": "var(--spacing-4\\.5)"
|
|
1865
|
+
},
|
|
1866
|
+
"spacing.-5.5": {
|
|
1867
|
+
"value": "calc(var(--spacing-5\\.5) * -1)",
|
|
1868
|
+
"variable": "var(--spacing-5\\.5)"
|
|
1869
|
+
},
|
|
1834
1870
|
"colors.colorPalette": {
|
|
1835
1871
|
"value": "var(--colors-color-palette)",
|
|
1836
1872
|
"variable": "var(--colors-color-palette)"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export type Token =
|
|
2
|
+
export type Token = `aspectRatios.${AspectRatioToken}` | `borders.${BorderToken}` | `easings.${EasingToken}` | `durations.${DurationToken}` | `radii.${RadiusToken}` | `fontWeights.${FontWeightToken}` | `lineHeights.${LineHeightToken}` | `fonts.${FontToken}` | `letterSpacings.${LetterSpacingToken}` | `fontSizes.${FontSizeToken}` | `shadows.${ShadowToken}` | `colors.${ColorToken}` | `blurs.${BlurToken}` | `spacing.${SpacingToken}` | `sizes.${SizeToken}` | `animations.${AnimationToken}` | `breakpoints.${BreakpointToken}`
|
|
3
3
|
|
|
4
4
|
export type ColorPalette = "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "violet" | "indigo" | "blue" | "sky" | "cyan" | "teal" | "emerald" | "green" | "lime" | "yellow" | "amber" | "orange" | "red" | "neutral" | "stone" | "zinc" | "gray" | "slate"
|
|
5
5
|
|
|
@@ -23,15 +23,15 @@ export type LetterSpacingToken = "tighter" | "tight" | "normal" | "wide" | "wide
|
|
|
23
23
|
|
|
24
24
|
export type FontSizeToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl"
|
|
25
25
|
|
|
26
|
-
export type ShadowToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "
|
|
26
|
+
export type ShadowToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "inset-2xs" | "inset-xs" | "inset-sm"
|
|
27
27
|
|
|
28
28
|
export type ColorToken = "current" | "black" | "white" | "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" | "gray.50" | "gray.100" | "gray.200" | "gray.300" | "gray.400" | "gray.500" | "gray.600" | "gray.700" | "gray.800" | "gray.900" | "gray.950" | "slate.50" | "slate.100" | "slate.200" | "slate.300" | "slate.400" | "slate.500" | "slate.600" | "slate.700" | "slate.800" | "slate.900" | "slate.950" | "colorPalette" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950"
|
|
29
29
|
|
|
30
|
-
export type BlurToken = "
|
|
30
|
+
export type BlurToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"
|
|
31
31
|
|
|
32
|
-
export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-0.5" | "-1.5" | "-2.5" | "-3.5"
|
|
32
|
+
export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-0.5" | "-1.5" | "-2.5" | "-3.5" | "-4.5" | "-5.5"
|
|
33
33
|
|
|
34
|
-
export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "prose" | "full" | "min" | "max" | "fit" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl" | "breakpoint-2xl"
|
|
34
|
+
export type SizeToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "prose" | "full" | "min" | "max" | "fit" | "breakpoint-sm" | "breakpoint-md" | "breakpoint-lg" | "breakpoint-xl" | "breakpoint-2xl"
|
|
35
35
|
|
|
36
36
|
export type AnimationToken = "spin" | "ping" | "pulse" | "bounce"
|
|
37
37
|
|
|
@@ -15,6 +15,8 @@ interface Recursive<T> {
|
|
|
15
15
|
* -----------------------------------------------------------------------------*/
|
|
16
16
|
|
|
17
17
|
type TextStyleProperty =
|
|
18
|
+
| 'color'
|
|
19
|
+
| 'direction'
|
|
18
20
|
| 'font'
|
|
19
21
|
| 'fontFamily'
|
|
20
22
|
| 'fontFeatureSettings'
|
|
@@ -35,6 +37,7 @@ type TextStyleProperty =
|
|
|
35
37
|
| 'fontVariantPosition'
|
|
36
38
|
| 'fontVariationSettings'
|
|
37
39
|
| 'fontWeight'
|
|
40
|
+
| 'hangingPunctuation'
|
|
38
41
|
| 'hypens'
|
|
39
42
|
| 'hyphenateCharacter'
|
|
40
43
|
| 'hyphenateLimitChars'
|
|
@@ -43,11 +46,20 @@ type TextStyleProperty =
|
|
|
43
46
|
| 'lineHeight'
|
|
44
47
|
| 'quotes'
|
|
45
48
|
| 'overflowWrap'
|
|
49
|
+
| 'tabSize'
|
|
50
|
+
| 'textAlign'
|
|
51
|
+
| 'textAlignLast'
|
|
52
|
+
| 'textBox'
|
|
53
|
+
| 'textBoxEdge'
|
|
54
|
+
| 'textBoxTrim'
|
|
46
55
|
| 'textCombineUpright'
|
|
47
56
|
| 'textDecoration'
|
|
48
57
|
| 'textDecorationColor'
|
|
49
58
|
| 'textDecorationLine'
|
|
59
|
+
| 'textDecorationSkip'
|
|
60
|
+
| 'textDecorationSkipBox'
|
|
50
61
|
| 'textDecorationSkipInk'
|
|
62
|
+
| 'textDecorationSkipInset'
|
|
51
63
|
| 'textDecorationStyle'
|
|
52
64
|
| 'textDecorationThickness'
|
|
53
65
|
| 'textEmphasis'
|
|
@@ -60,16 +72,21 @@ type TextStyleProperty =
|
|
|
60
72
|
| 'textOverflow'
|
|
61
73
|
| 'textRendering'
|
|
62
74
|
| 'textShadow'
|
|
75
|
+
| 'textStroke'
|
|
76
|
+
| 'textStrokeColor'
|
|
77
|
+
| 'textStrokeWidth'
|
|
63
78
|
| 'textTransform'
|
|
64
79
|
| 'textUnderlineOffset'
|
|
65
80
|
| 'textUnderlinePosition'
|
|
66
81
|
| 'textWrap'
|
|
67
82
|
| 'textWrapMode'
|
|
68
83
|
| 'textWrapStyle'
|
|
84
|
+
| 'unicodeBidi'
|
|
69
85
|
| 'verticalAlign'
|
|
70
86
|
| 'whiteSpace'
|
|
71
87
|
| 'wordBreak'
|
|
72
88
|
| 'wordSpacing'
|
|
89
|
+
| 'writingMode'
|
|
73
90
|
|
|
74
91
|
export type TextStyle = CompositionStyleObject<TextStyleProperty>
|
|
75
92
|
|
|
@@ -79,17 +96,11 @@ export type TextStyles = Recursive<Token<TextStyle>>
|
|
|
79
96
|
* Layer styles
|
|
80
97
|
* -----------------------------------------------------------------------------*/
|
|
81
98
|
|
|
82
|
-
type
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
| 'Inline'
|
|
88
|
-
| 'Block'
|
|
89
|
-
| 'InlineStart'
|
|
90
|
-
| 'InlineEnd'
|
|
91
|
-
| 'BlockStart'
|
|
92
|
-
| 'BlockEnd'
|
|
99
|
+
type LogicalPlacement = 'Inline' | 'Block' | 'InlineStart' | 'InlineEnd' | 'BlockStart' | 'BlockEnd'
|
|
100
|
+
|
|
101
|
+
type PhysicalPlacement = 'Top' | 'Right' | 'Bottom' | 'Left'
|
|
102
|
+
|
|
103
|
+
type Placement = PhysicalPlacement | LogicalPlacement
|
|
93
104
|
|
|
94
105
|
type Radius =
|
|
95
106
|
| `Top${'Right' | 'Left'}`
|
|
@@ -98,20 +109,80 @@ type Radius =
|
|
|
98
109
|
| `End${'Start' | 'End'}`
|
|
99
110
|
|
|
100
111
|
type LayerStyleProperty =
|
|
112
|
+
| 'aspectRatio'
|
|
101
113
|
| 'background'
|
|
102
114
|
| 'backgroundColor'
|
|
103
115
|
| 'backgroundImage'
|
|
104
|
-
| 'borderRadius'
|
|
105
116
|
| 'border'
|
|
106
|
-
| 'borderWidth'
|
|
107
117
|
| 'borderColor'
|
|
118
|
+
| 'borderImage'
|
|
119
|
+
| 'borderImageOutset'
|
|
120
|
+
| 'borderImageRepeat'
|
|
121
|
+
| 'borderImageSlice'
|
|
122
|
+
| 'borderImageSource'
|
|
123
|
+
| 'borderImageWidth'
|
|
124
|
+
| 'borderRadius'
|
|
108
125
|
| 'borderStyle'
|
|
126
|
+
| 'borderWidth'
|
|
127
|
+
| `border${Placement}`
|
|
128
|
+
| `border${Placement}Color`
|
|
129
|
+
| `border${Placement}Style`
|
|
130
|
+
| `border${Placement}Width`
|
|
131
|
+
| 'borderRadius'
|
|
132
|
+
| `border${Radius}Radius`
|
|
109
133
|
| 'boxShadow'
|
|
134
|
+
| 'boxShadowColor'
|
|
135
|
+
| 'clipPath'
|
|
136
|
+
| 'color'
|
|
137
|
+
| 'contain'
|
|
138
|
+
| 'content'
|
|
139
|
+
| 'contentVisibility'
|
|
140
|
+
| 'cursor'
|
|
141
|
+
| 'display'
|
|
110
142
|
| 'filter'
|
|
111
143
|
| 'backdropFilter'
|
|
112
|
-
| '
|
|
113
|
-
| '
|
|
144
|
+
| 'height'
|
|
145
|
+
| 'width'
|
|
146
|
+
| 'minHeight'
|
|
147
|
+
| 'minWidth'
|
|
148
|
+
| 'maxHeight'
|
|
149
|
+
| 'maxWidth'
|
|
150
|
+
| `margin${Placement}`
|
|
151
|
+
| 'inset'
|
|
152
|
+
| `inset${LogicalPlacement}`
|
|
153
|
+
| Lowercase<PhysicalPlacement>
|
|
154
|
+
| 'isolation'
|
|
155
|
+
| 'mask'
|
|
156
|
+
| 'maskClip'
|
|
157
|
+
| 'maskComposite'
|
|
158
|
+
| 'maskImage'
|
|
159
|
+
| 'maskMode'
|
|
160
|
+
| 'maskOrigin'
|
|
161
|
+
| 'maskPosition'
|
|
162
|
+
| 'maskRepeat'
|
|
163
|
+
| 'maskSize'
|
|
164
|
+
| 'mixBlendMode'
|
|
165
|
+
| 'objectFit'
|
|
166
|
+
| 'objectPosition'
|
|
114
167
|
| 'opacity'
|
|
168
|
+
| 'outline'
|
|
169
|
+
| 'outlineColor'
|
|
170
|
+
| 'outlineOffset'
|
|
171
|
+
| 'outlineStyle'
|
|
172
|
+
| 'outlineWidth'
|
|
173
|
+
| 'overflow'
|
|
174
|
+
| 'overflowX'
|
|
175
|
+
| 'overflowY'
|
|
176
|
+
| 'padding'
|
|
177
|
+
| `padding${Placement}`
|
|
178
|
+
| 'pointerEvents'
|
|
179
|
+
| 'position'
|
|
180
|
+
| 'resize'
|
|
181
|
+
| 'transform'
|
|
182
|
+
| 'transition'
|
|
183
|
+
| 'visibility'
|
|
184
|
+
| 'willChange'
|
|
185
|
+
| 'zIndex'
|
|
115
186
|
| 'backgroundBlendMode'
|
|
116
187
|
| 'backgroundAttachment'
|
|
117
188
|
| 'backgroundClip'
|
|
@@ -119,14 +190,6 @@ type LayerStyleProperty =
|
|
|
119
190
|
| 'backgroundPosition'
|
|
120
191
|
| 'backgroundRepeat'
|
|
121
192
|
| 'backgroundSize'
|
|
122
|
-
| `border${Placement}`
|
|
123
|
-
| `border${Placement}Width`
|
|
124
|
-
| 'borderRadius'
|
|
125
|
-
| `border${Radius}Radius`
|
|
126
|
-
| `border${Placement}Color`
|
|
127
|
-
| `border${Placement}Style`
|
|
128
|
-
| 'padding'
|
|
129
|
-
| `padding${Placement}`
|
|
130
193
|
|
|
131
194
|
export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
|
|
132
195
|
|
|
@@ -10,7 +10,7 @@ export interface Conditions {
|
|
|
10
10
|
"_focusWithin": string
|
|
11
11
|
/** `&:is(:focus-visible, [data-focus-visible])` */
|
|
12
12
|
"_focusVisible": string
|
|
13
|
-
/** `&:is(:disabled, [disabled], [data-disabled])` */
|
|
13
|
+
/** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
|
|
14
14
|
"_disabled": string
|
|
15
15
|
/** `&:is(:active, [data-active])` */
|
|
16
16
|
"_active": string
|
|
@@ -18,7 +18,7 @@ export interface Conditions {
|
|
|
18
18
|
"_visited": string
|
|
19
19
|
/** `&:target` */
|
|
20
20
|
"_target": string
|
|
21
|
-
/** `&:is(:read-only, [data-read-only])` */
|
|
21
|
+
/** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
|
|
22
22
|
"_readOnly": string
|
|
23
23
|
/** `&:read-write` */
|
|
24
24
|
"_readWrite": string
|
|
@@ -32,6 +32,12 @@ export interface Conditions {
|
|
|
32
32
|
"_expanded": string
|
|
33
33
|
/** `&[data-highlighted]` */
|
|
34
34
|
"_highlighted": string
|
|
35
|
+
/** `&[data-complete]` */
|
|
36
|
+
"_complete": string
|
|
37
|
+
/** `&[data-incomplete]` */
|
|
38
|
+
"_incomplete": string
|
|
39
|
+
/** `&[data-dragging]` */
|
|
40
|
+
"_dragging": string
|
|
35
41
|
/** `&::before` */
|
|
36
42
|
"_before": string
|
|
37
43
|
/** `&::after` */
|
|
@@ -40,7 +46,7 @@ export interface Conditions {
|
|
|
40
46
|
"_firstLetter": string
|
|
41
47
|
/** `&::first-line` */
|
|
42
48
|
"_firstLine": string
|
|
43
|
-
/** `&::marker` */
|
|
49
|
+
/** `&::marker, &::-webkit-details-marker` */
|
|
44
50
|
"_marker": string
|
|
45
51
|
/** `&::selection` */
|
|
46
52
|
"_selection": string
|
|
@@ -74,7 +80,7 @@ export interface Conditions {
|
|
|
74
80
|
"_peerFocusWithin": string
|
|
75
81
|
/** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
|
|
76
82
|
"_peerFocusVisible": string
|
|
77
|
-
/** `.peer:is(:disabled, [disabled], [data-disabled]) ~ &` */
|
|
83
|
+
/** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
|
|
78
84
|
"_peerDisabled": string
|
|
79
85
|
/** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
80
86
|
"_peerChecked": string
|
|
@@ -94,13 +100,13 @@ export interface Conditions {
|
|
|
94
100
|
"_groupFocusWithin": string
|
|
95
101
|
/** `.group:is(:focus-visible, [data-focus-visible]) &` */
|
|
96
102
|
"_groupFocusVisible": string
|
|
97
|
-
/** `.group:is(:disabled, [disabled], [data-disabled]) &` */
|
|
103
|
+
/** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
|
|
98
104
|
"_groupDisabled": string
|
|
99
105
|
/** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
|
|
100
106
|
"_groupChecked": string
|
|
101
107
|
/** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
|
|
102
108
|
"_groupExpanded": string
|
|
103
|
-
/** `.group:invalid &` */
|
|
109
|
+
/** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
|
|
104
110
|
"_groupInvalid": string
|
|
105
111
|
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
106
112
|
"_indeterminate": string
|
|
@@ -108,13 +114,13 @@ export interface Conditions {
|
|
|
108
114
|
"_required": string
|
|
109
115
|
/** `&:is(:valid, [data-valid])` */
|
|
110
116
|
"_valid": string
|
|
111
|
-
/** `&:is(:invalid, [data-invalid])` */
|
|
117
|
+
/** `&:is(:invalid, [data-invalid], [aria-invalid=true])` */
|
|
112
118
|
"_invalid": string
|
|
113
119
|
/** `&:autofill` */
|
|
114
120
|
"_autofill": string
|
|
115
|
-
/** `&:in-range` */
|
|
121
|
+
/** `&:is(:in-range, [data-in-range])` */
|
|
116
122
|
"_inRange": string
|
|
117
|
-
/** `&:out-of-range` */
|
|
123
|
+
/** `&:is(:out-of-range, [data-outside-range])` */
|
|
118
124
|
"_outOfRange": string
|
|
119
125
|
/** `&::placeholder, &[data-placeholder]` */
|
|
120
126
|
"_placeholder": string
|
|
@@ -124,22 +130,46 @@ export interface Conditions {
|
|
|
124
130
|
"_pressed": string
|
|
125
131
|
/** `&:is([aria-selected=true], [data-selected])` */
|
|
126
132
|
"_selected": string
|
|
133
|
+
/** `&:is([aria-grabbed=true], [data-grabbed])` */
|
|
134
|
+
"_grabbed": string
|
|
135
|
+
/** `&[data-state=under-value]` */
|
|
136
|
+
"_underValue": string
|
|
137
|
+
/** `&[data-state=over-value]` */
|
|
138
|
+
"_overValue": string
|
|
139
|
+
/** `&[data-state=at-value]` */
|
|
140
|
+
"_atValue": string
|
|
127
141
|
/** `&:default` */
|
|
128
142
|
"_default": string
|
|
129
143
|
/** `&:optional` */
|
|
130
144
|
"_optional": string
|
|
131
|
-
/** `&:is([open], [data-open], [data-state="open"])` */
|
|
145
|
+
/** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
|
|
132
146
|
"_open": string
|
|
133
147
|
/** `&:is([closed], [data-closed], [data-state="closed"])` */
|
|
134
148
|
"_closed": string
|
|
135
|
-
/** `&:fullscreen` */
|
|
149
|
+
/** `&:is(:fullscreen, [data-fullscreen])` */
|
|
136
150
|
"_fullscreen": string
|
|
137
151
|
/** `&:is([data-loading], [aria-busy=true])` */
|
|
138
152
|
"_loading": string
|
|
153
|
+
/** `&:is([hidden], [data-hidden])` */
|
|
154
|
+
"_hidden": string
|
|
155
|
+
/** `&:is([aria-current=true], [data-current])` */
|
|
156
|
+
"_current": string
|
|
139
157
|
/** `&[aria-current=page]` */
|
|
140
158
|
"_currentPage": string
|
|
141
159
|
/** `&[aria-current=step]` */
|
|
142
160
|
"_currentStep": string
|
|
161
|
+
/** `&[data-today]` */
|
|
162
|
+
"_today": string
|
|
163
|
+
/** `&[data-unavailable]` */
|
|
164
|
+
"_unavailable": string
|
|
165
|
+
/** `&[data-range-start]` */
|
|
166
|
+
"_rangeStart": string
|
|
167
|
+
/** `&[data-range-end]` */
|
|
168
|
+
"_rangeEnd": string
|
|
169
|
+
/** `&[data-now]` */
|
|
170
|
+
"_now": string
|
|
171
|
+
/** `&[data-topmost]` */
|
|
172
|
+
"_topmost": string
|
|
143
173
|
/** `@media (prefers-reduced-motion: reduce)` */
|
|
144
174
|
"_motionReduce": string
|
|
145
175
|
/** `@media (prefers-reduced-motion: no-preference)` */
|
|
@@ -164,9 +194,9 @@ export interface Conditions {
|
|
|
164
194
|
"_lessContrast": string
|
|
165
195
|
/** `@media (prefers-contrast: more)` */
|
|
166
196
|
"_moreContrast": string
|
|
167
|
-
/**
|
|
197
|
+
/** `:where([dir=ltr], :dir(ltr)) &` */
|
|
168
198
|
"_ltr": string
|
|
169
|
-
/**
|
|
199
|
+
/** `:where([dir=rtl], :dir(rtl)) &` */
|
|
170
200
|
"_rtl": string
|
|
171
201
|
/** `&::-webkit-scrollbar` */
|
|
172
202
|
"_scrollbar": string
|
|
@@ -178,8 +208,14 @@ export interface Conditions {
|
|
|
178
208
|
"_horizontal": string
|
|
179
209
|
/** `&[data-orientation=vertical]` */
|
|
180
210
|
"_vertical": string
|
|
211
|
+
/** `& :where(svg)` */
|
|
212
|
+
"_icon": string
|
|
181
213
|
/** `@starting-style` */
|
|
182
214
|
"_starting": string
|
|
215
|
+
/** `@media (scripting: none)` */
|
|
216
|
+
"_noscript": string
|
|
217
|
+
/** `@media (inverted-colors: inverted)` */
|
|
218
|
+
"_invertedColors": string
|
|
183
219
|
/** `@media screen and (min-width: 40rem)` */
|
|
184
220
|
"sm": string
|
|
185
221
|
/** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
|