daleui 0.0.2 → 0.0.5
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/README.md +43 -0
- package/dist/check-DEVerfH5.js +72 -0
- package/dist/components/Box/Box.d.ts +34 -0
- package/dist/components/Box/Box.js +34 -0
- package/dist/components/Button/Button.d.ts +37 -0
- package/dist/components/Button/Button.js +367 -0
- package/dist/components/Card/Card.d.ts +68 -0
- package/dist/components/Card/Card.js +132 -0
- package/dist/components/Checkbox/Checkbox.d.ts +34 -0
- package/dist/components/Checkbox/Checkbox.js +657 -0
- package/dist/components/Flex/Flex.d.ts +361 -0
- package/dist/components/Flex/Flex.js +65 -0
- package/dist/components/HStack/HStack.d.ts +23 -0
- package/dist/components/HStack/HStack.js +35 -0
- package/dist/components/Heading/Heading.d.ts +33 -0
- package/dist/components/Heading/Heading.js +67 -0
- package/dist/components/Icon/Icon.d.ts +20 -0
- package/dist/components/Icon/Icon.js +325 -0
- package/dist/components/Label/Label.d.ts +35 -0
- package/dist/components/Label/Label.js +74 -0
- package/dist/components/Link/Link.d.ts +33 -0
- package/dist/components/Link/Link.js +176 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +17 -0
- package/dist/components/PasswordInput/PasswordInput.js +151 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +82 -0
- package/dist/components/RadioGroup/RadioGroup.js +713 -0
- package/dist/components/Select/Select.d.ts +39 -0
- package/dist/components/Select/Select.js +222 -0
- package/dist/components/Tag/Tag.d.ts +26 -0
- package/dist/components/Tag/Tag.js +189 -0
- package/dist/components/Text/Text.d.ts +22 -0
- package/dist/components/Text/Text.js +115 -0
- package/dist/components/TextInput/TextInput.d.ts +21 -0
- package/dist/components/TextInput/TextInput.js +106 -0
- package/dist/components/VStack/VStack.d.ts +23 -0
- package/dist/components/VStack/VStack.js +35 -0
- package/dist/css-QiVVeZaw.js +212 -0
- package/dist/cva-BrKodHDH.js +57 -0
- package/dist/cx-DN21T1EH.js +9 -0
- package/dist/hstack-cCrHxysi.js +43 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +37 -0
- package/dist/tokens/colors.d.ts +4 -0
- package/dist/tokens/iconography.d.ts +45 -0
- package/dist/tokens/spacing.d.ts +42 -0
- package/dist/tokens/typography.d.ts +312 -0
- package/dist/use-locale-context-DYXE7B4r.js +775 -0
- package/package.json +62 -39
- package/styled-system/css/conditions.mjs +36 -0
- package/styled-system/css/css.d.ts +22 -0
- package/styled-system/css/css.mjs +45 -0
- package/styled-system/css/cva.d.ts +6 -0
- package/styled-system/css/cva.mjs +87 -0
- package/styled-system/css/cx.d.ts +5 -0
- package/styled-system/css/cx.mjs +15 -0
- package/styled-system/css/index.d.ts +5 -0
- package/styled-system/css/index.mjs +4 -0
- package/styled-system/css/sva.d.ts +4 -0
- package/styled-system/css/sva.mjs +46 -0
- package/styled-system/helpers.mjs +316 -0
- package/styled-system/patterns/aspect-ratio.d.ts +20 -0
- package/styled-system/patterns/aspect-ratio.mjs +38 -0
- package/styled-system/patterns/bleed.d.ts +21 -0
- package/styled-system/patterns/bleed.mjs +24 -0
- package/styled-system/patterns/box.d.ts +20 -0
- package/styled-system/patterns/box.mjs +15 -0
- package/styled-system/patterns/center.d.ts +20 -0
- package/styled-system/patterns/center.mjs +21 -0
- package/styled-system/patterns/circle.d.ts +20 -0
- package/styled-system/patterns/circle.mjs +25 -0
- package/styled-system/patterns/container.d.ts +20 -0
- package/styled-system/patterns/container.mjs +21 -0
- package/styled-system/patterns/cq.d.ts +21 -0
- package/styled-system/patterns/cq.mjs +21 -0
- package/styled-system/patterns/divider.d.ts +22 -0
- package/styled-system/patterns/divider.mjs +25 -0
- package/styled-system/patterns/flex.d.ts +26 -0
- package/styled-system/patterns/flex.mjs +26 -0
- package/styled-system/patterns/float.d.ts +23 -0
- package/styled-system/patterns/float.mjs +52 -0
- package/styled-system/patterns/grid-item.d.ts +25 -0
- package/styled-system/patterns/grid-item.mjs +25 -0
- package/styled-system/patterns/grid.d.ts +24 -0
- package/styled-system/patterns/grid.mjs +27 -0
- package/styled-system/patterns/hstack.d.ts +21 -0
- package/styled-system/patterns/hstack.mjs +24 -0
- package/styled-system/patterns/index.d.ts +21 -0
- package/styled-system/patterns/index.mjs +20 -0
- package/styled-system/patterns/link-overlay.d.ts +20 -0
- package/styled-system/patterns/link-overlay.mjs +24 -0
- package/styled-system/patterns/spacer.d.ts +20 -0
- package/styled-system/patterns/spacer.mjs +21 -0
- package/styled-system/patterns/square.d.ts +20 -0
- package/styled-system/patterns/square.mjs +24 -0
- package/styled-system/patterns/stack.d.ts +23 -0
- package/styled-system/patterns/stack.mjs +24 -0
- package/styled-system/patterns/visually-hidden.d.ts +20 -0
- package/styled-system/patterns/visually-hidden.mjs +18 -0
- package/styled-system/patterns/vstack.d.ts +21 -0
- package/styled-system/patterns/vstack.mjs +24 -0
- package/styled-system/patterns/wrap.d.ts +24 -0
- package/styled-system/patterns/wrap.mjs +25 -0
- package/styled-system/tokens/index.d.ts +9 -0
- package/styled-system/tokens/index.mjs +3176 -0
- package/styled-system/tokens/tokens.d.ts +63 -0
- package/styled-system/types/composition.d.ts +224 -0
- package/styled-system/types/conditions.d.ts +310 -0
- package/styled-system/types/csstype.d.ts +21298 -0
- package/styled-system/types/global.d.ts +20 -0
- package/styled-system/types/index.d.ts +7 -0
- package/styled-system/types/parts.d.ts +8 -0
- package/styled-system/types/pattern.d.ts +78 -0
- package/styled-system/types/prop-type.d.ts +265 -0
- package/styled-system/types/recipe.d.ts +181 -0
- package/styled-system/types/selectors.d.ts +59 -0
- package/styled-system/types/static-css.d.ts +56 -0
- package/styled-system/types/style-props.d.ts +7504 -0
- package/styled-system/types/system-types.d.ts +269 -0
- package/.github/CODEOWNERS +0 -1
- package/.github/FUNDING.yml +0 -1
- package/.github/workflows/automation.yml +0 -13
- package/.github/workflows/chromatic.yml +0 -19
- package/.github/workflows/deployment.yml +0 -32
- package/.github/workflows/integration.yml +0 -15
- package/.github/workflows/storybook-tests.yml +0 -17
- package/.storybook/main.ts +0 -18
- package/.storybook/preview.ts +0 -29
- package/.storybook/test-runner.ts +0 -33
- package/bun.lock +0 -2099
- package/chromatic.config.json +0 -5
- package/eslint.config.js +0 -28
- package/index.html +0 -13
- package/panda.config.ts +0 -61
- package/postcss.config.cjs +0 -5
- package/public/logo.svg +0 -9
- package/src/App.tsx +0 -67
- package/src/assets/Discord.svg +0 -1
- package/src/assets/GitHub.svg +0 -1
- package/src/assets/LinkedIn.svg +0 -1
- package/src/assets/Medium.svg +0 -1
- package/src/assets/YouTube.svg +0 -1
- package/src/components/Button/Button.stories.tsx +0 -115
- package/src/components/Button/Button.test.tsx +0 -108
- package/src/components/Button/Button.tsx +0 -245
- package/src/components/Button/index.tsx +0 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -129
- package/src/components/Checkbox/Checkbox.test.tsx +0 -169
- package/src/components/Checkbox/Checkbox.tsx +0 -190
- package/src/components/Heading/Heading.stories.tsx +0 -72
- package/src/components/Heading/Heading.test.tsx +0 -55
- package/src/components/Heading/Heading.tsx +0 -73
- package/src/components/Heading/index.tsx +0 -1
- package/src/components/Icon/Icon.stories.tsx +0 -106
- package/src/components/Icon/Icon.test.tsx +0 -44
- package/src/components/Icon/Icon.tsx +0 -116
- package/src/components/Icon/index.tsx +0 -1
- package/src/components/Text/Text.stories.tsx +0 -65
- package/src/components/Text/Text.test.tsx +0 -54
- package/src/components/Text/Text.tsx +0 -93
- package/src/components/Text/index.tsx +0 -1
- package/src/index.css +0 -2
- package/src/main.tsx +0 -10
- package/src/setupTests.tsx +0 -5
- package/src/styles/globalCss.ts +0 -43
- package/src/tokens/colors.mdx +0 -100
- package/src/tokens/colors.ts +0 -288
- package/src/tokens/iconography.mdx +0 -15
- package/src/tokens/iconography.tsx +0 -54
- package/src/tokens/typography.mdx +0 -38
- package/src/tokens/typography.ts +0 -132
- package/src/vite-env.d.ts +0 -2
- package/tsconfig.app.json +0 -25
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -22
- package/vite.config.ts +0 -16
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
export type Token = `aspectRatios.${AspectRatioToken}` | `easings.${EasingToken}` | `durations.${DurationToken}` | `shadows.${ShadowToken}` | `blurs.${BlurToken}` | `sizes.${SizeToken}` | `animations.${AnimationToken}` | `borders.${BorderToken}` | `borderWidths.${BorderWidthToken}` | `colors.${ColorToken}` | `fonts.${FontToken}` | `fontWeights.${FontWeightToken}` | `fontSizes.${FontSizeToken}` | `letterSpacings.${LetterSpacingToken}` | `lineHeights.${LineHeightToken}` | `radii.${RadiusToken}` | `spacing.${SpacingToken}` | `breakpoints.${BreakpointToken}`
|
|
3
|
+
|
|
4
|
+
export type ColorPalette = "current" | "black" | "white" | "transparent" | "rose" | "pink" | "fuchsia" | "purple" | "indigo" | "sky" | "cyan" | "emerald" | "lime" | "yellow" | "orange" | "neutral" | "stone" | "zinc" | "gray" | "base" | "slate" | "darkSlate" | "sage" | "darkSage" | "violet" | "darkViolet" | "teal" | "darkTeal" | "red" | "darkRed" | "amber" | "darkAmber" | "blue" | "darkBlue" | "green" | "darkGreen" | "appBg" | "fgSolid" | "bg" | "bg.brand" | "bg.neutral" | "bg.danger" | "border" | "border.brand" | "border.neutral" | "bgSolid" | "bgSolid.brand" | "bgSolid.neutral" | "bgSolid.danger" | "bgSolid.success" | "bgSolid.warning" | "bgSolid.info" | "fg" | "fg.brand" | "fg.neutral"
|
|
5
|
+
|
|
6
|
+
export type AspectRatioToken = "square" | "landscape" | "portrait" | "wide" | "ultrawide" | "golden"
|
|
7
|
+
|
|
8
|
+
export type EasingToken = "default" | "linear" | "in" | "out" | "in-out"
|
|
9
|
+
|
|
10
|
+
export type DurationToken = "fastest" | "faster" | "fast" | "normal" | "slow" | "slower" | "slowest"
|
|
11
|
+
|
|
12
|
+
export type ShadowToken = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "inset-2xs" | "inset-xs" | "inset-sm"
|
|
13
|
+
|
|
14
|
+
export type BlurToken = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl"
|
|
15
|
+
|
|
16
|
+
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"
|
|
17
|
+
|
|
18
|
+
export type AnimationToken = "spin" | "ping" | "pulse" | "bounce"
|
|
19
|
+
|
|
20
|
+
export type BorderToken = "none" | "neutral" | "brand" | "danger" | "success" | "warning" | "info"
|
|
21
|
+
|
|
22
|
+
export type BorderWidthToken = "sm" | "md" | "lg"
|
|
23
|
+
|
|
24
|
+
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" | "indigo.50" | "indigo.100" | "indigo.200" | "indigo.300" | "indigo.400" | "indigo.500" | "indigo.600" | "indigo.700" | "indigo.800" | "indigo.900" | "indigo.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" | "emerald.50" | "emerald.100" | "emerald.200" | "emerald.300" | "emerald.400" | "emerald.500" | "emerald.600" | "emerald.700" | "emerald.800" | "emerald.900" | "emerald.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" | "orange.50" | "orange.100" | "orange.200" | "orange.300" | "orange.400" | "orange.500" | "orange.600" | "orange.700" | "orange.800" | "orange.900" | "orange.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" | "base.white" | "base.black" | "slate.1" | "slate.2" | "slate.3" | "slate.4" | "slate.5" | "slate.6" | "slate.7" | "slate.8" | "slate.9" | "slate.10" | "slate.11" | "slate.12" | "slate.50" | "slate.100" | "slate.200" | "slate.300" | "slate.400" | "slate.500" | "slate.600" | "slate.700" | "slate.800" | "slate.900" | "slate.950" | "darkSlate.1" | "darkSlate.2" | "darkSlate.3" | "darkSlate.4" | "darkSlate.5" | "darkSlate.6" | "darkSlate.7" | "darkSlate.8" | "darkSlate.9" | "darkSlate.10" | "darkSlate.11" | "darkSlate.12" | "sage.1" | "sage.2" | "sage.3" | "sage.4" | "sage.5" | "sage.6" | "sage.7" | "sage.8" | "sage.9" | "sage.10" | "sage.11" | "sage.12" | "darkSage.1" | "darkSage.2" | "darkSage.3" | "darkSage.4" | "darkSage.5" | "darkSage.6" | "darkSage.7" | "darkSage.8" | "darkSage.9" | "darkSage.10" | "darkSage.11" | "darkSage.12" | "violet.1" | "violet.2" | "violet.3" | "violet.4" | "violet.5" | "violet.6" | "violet.7" | "violet.8" | "violet.9" | "violet.10" | "violet.11" | "violet.12" | "violet.50" | "violet.100" | "violet.200" | "violet.300" | "violet.400" | "violet.500" | "violet.600" | "violet.700" | "violet.800" | "violet.900" | "violet.950" | "darkViolet.1" | "darkViolet.2" | "darkViolet.3" | "darkViolet.4" | "darkViolet.5" | "darkViolet.6" | "darkViolet.7" | "darkViolet.8" | "darkViolet.9" | "darkViolet.10" | "darkViolet.11" | "darkViolet.12" | "teal.1" | "teal.2" | "teal.3" | "teal.4" | "teal.5" | "teal.6" | "teal.7" | "teal.8" | "teal.9" | "teal.10" | "teal.11" | "teal.12" | "teal.50" | "teal.100" | "teal.200" | "teal.300" | "teal.400" | "teal.500" | "teal.600" | "teal.700" | "teal.800" | "teal.900" | "teal.950" | "darkTeal.1" | "darkTeal.2" | "darkTeal.3" | "darkTeal.4" | "darkTeal.5" | "darkTeal.6" | "darkTeal.7" | "darkTeal.8" | "darkTeal.9" | "darkTeal.10" | "darkTeal.11" | "darkTeal.12" | "red.1" | "red.2" | "red.3" | "red.4" | "red.5" | "red.6" | "red.7" | "red.8" | "red.9" | "red.10" | "red.11" | "red.12" | "red.50" | "red.100" | "red.200" | "red.300" | "red.400" | "red.500" | "red.600" | "red.700" | "red.800" | "red.900" | "red.950" | "darkRed.1" | "darkRed.2" | "darkRed.3" | "darkRed.4" | "darkRed.5" | "darkRed.6" | "darkRed.7" | "darkRed.8" | "darkRed.9" | "darkRed.10" | "darkRed.11" | "darkRed.12" | "amber.1" | "amber.2" | "amber.3" | "amber.4" | "amber.5" | "amber.6" | "amber.7" | "amber.8" | "amber.9" | "amber.10" | "amber.11" | "amber.12" | "amber.50" | "amber.100" | "amber.200" | "amber.300" | "amber.400" | "amber.500" | "amber.600" | "amber.700" | "amber.800" | "amber.900" | "amber.950" | "darkAmber.1" | "darkAmber.2" | "darkAmber.3" | "darkAmber.4" | "darkAmber.5" | "darkAmber.6" | "darkAmber.7" | "darkAmber.8" | "darkAmber.9" | "darkAmber.10" | "darkAmber.11" | "darkAmber.12" | "blue.1" | "blue.2" | "blue.3" | "blue.4" | "blue.5" | "blue.6" | "blue.7" | "blue.8" | "blue.9" | "blue.10" | "blue.11" | "blue.12" | "blue.50" | "blue.100" | "blue.200" | "blue.300" | "blue.400" | "blue.500" | "blue.600" | "blue.700" | "blue.800" | "blue.900" | "blue.950" | "darkBlue.1" | "darkBlue.2" | "darkBlue.3" | "darkBlue.4" | "darkBlue.5" | "darkBlue.6" | "darkBlue.7" | "darkBlue.8" | "darkBlue.9" | "darkBlue.10" | "darkBlue.11" | "darkBlue.12" | "green.1" | "green.2" | "green.3" | "green.4" | "green.5" | "green.6" | "green.7" | "green.8" | "green.9" | "green.10" | "green.11" | "green.12" | "green.50" | "green.100" | "green.200" | "green.300" | "green.400" | "green.500" | "green.600" | "green.700" | "green.800" | "green.900" | "green.950" | "darkGreen.1" | "darkGreen.2" | "darkGreen.3" | "darkGreen.4" | "darkGreen.5" | "darkGreen.6" | "darkGreen.7" | "darkGreen.8" | "darkGreen.9" | "darkGreen.10" | "darkGreen.11" | "darkGreen.12" | "appBg" | "fgSolid.neutral" | "fgSolid.brand" | "fgSolid.success" | "fgSolid.warning" | "fgSolid.danger" | "fgSolid.info" | "bg.brand" | "bg.brand.hover" | "bg.brand.active" | "bg.neutral" | "bg.neutral.hover" | "bg.neutral.active" | "bg.neutral.disabled" | "bg.danger" | "bg.danger.hover" | "bg.danger.active" | "bg.success" | "bg.warning" | "bg.info" | "border.brand" | "border.brand.active" | "border.brand.focus" | "border.neutral" | "border.neutral.hover" | "border.neutral.active" | "border.neutral.disabled" | "border.neutral.focus" | "border.success" | "border.warning" | "border.danger" | "border.info" | "bgSolid.brand" | "bgSolid.brand.hover" | "bgSolid.brand.active" | "bgSolid.neutral" | "bgSolid.neutral.hover" | "bgSolid.neutral.active" | "bgSolid.neutral.disabled" | "bgSolid.danger" | "bgSolid.danger.hover" | "bgSolid.danger.active" | "bgSolid.success" | "bgSolid.success.hover" | "bgSolid.success.active" | "bgSolid.warning" | "bgSolid.warning.hover" | "bgSolid.warning.active" | "bgSolid.info" | "bgSolid.info.hover" | "bgSolid.info.active" | "fg.brand" | "fg.brand.hover" | "fg.brand.active" | "fg.brand.visited" | "fg.neutral" | "fg.neutral.hover" | "fg.neutral.active" | "fg.neutral.placeholder" | "fg.neutral.disabled" | "fg.success" | "fg.warning" | "fg.danger" | "fg.info" | "colorPalette" | "colorPalette.50" | "colorPalette.100" | "colorPalette.200" | "colorPalette.300" | "colorPalette.400" | "colorPalette.500" | "colorPalette.600" | "colorPalette.700" | "colorPalette.800" | "colorPalette.900" | "colorPalette.950" | "colorPalette.white" | "colorPalette.black" | "colorPalette.1" | "colorPalette.2" | "colorPalette.3" | "colorPalette.4" | "colorPalette.5" | "colorPalette.6" | "colorPalette.7" | "colorPalette.8" | "colorPalette.9" | "colorPalette.10" | "colorPalette.11" | "colorPalette.12" | "colorPalette.neutral" | "colorPalette.brand" | "colorPalette.success" | "colorPalette.warning" | "colorPalette.danger" | "colorPalette.info" | "colorPalette.brand.hover" | "colorPalette.hover" | "colorPalette.brand.active" | "colorPalette.active" | "colorPalette.neutral.hover" | "colorPalette.neutral.active" | "colorPalette.neutral.disabled" | "colorPalette.disabled" | "colorPalette.danger.hover" | "colorPalette.danger.active" | "colorPalette.brand.focus" | "colorPalette.focus" | "colorPalette.neutral.focus" | "colorPalette.success.hover" | "colorPalette.success.active" | "colorPalette.warning.hover" | "colorPalette.warning.active" | "colorPalette.info.hover" | "colorPalette.info.active" | "colorPalette.brand.visited" | "colorPalette.visited" | "colorPalette.neutral.placeholder" | "colorPalette.placeholder"
|
|
25
|
+
|
|
26
|
+
export type FontToken = "serif" | "sans" | "mono"
|
|
27
|
+
|
|
28
|
+
export type FontWeightToken = "thin" | "extralight" | "light" | "extrabold" | "black" | "normal" | "medium" | "semibold" | "bold"
|
|
29
|
+
|
|
30
|
+
export type FontSizeToken = "2xs" | "6xl" | "7xl" | "8xl" | "9xl" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl"
|
|
31
|
+
|
|
32
|
+
export type LetterSpacingToken = "tighter" | "normal" | "wide" | "wider" | "widest" | "tight" | "balanced"
|
|
33
|
+
|
|
34
|
+
export type LineHeightToken = "none" | "snug" | "normal" | "relaxed" | "loose" | "tight" | "balanced"
|
|
35
|
+
|
|
36
|
+
export type RadiusToken = "xl" | "2xl" | "3xl" | "4xl" | "xs" | "sm" | "md" | "lg" | "full"
|
|
37
|
+
|
|
38
|
+
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"
|
|
39
|
+
|
|
40
|
+
export type BreakpointToken = "sm" | "md" | "lg" | "xl" | "2xl"
|
|
41
|
+
|
|
42
|
+
export type Tokens = {
|
|
43
|
+
aspectRatios: AspectRatioToken
|
|
44
|
+
easings: EasingToken
|
|
45
|
+
durations: DurationToken
|
|
46
|
+
shadows: ShadowToken
|
|
47
|
+
blurs: BlurToken
|
|
48
|
+
sizes: SizeToken
|
|
49
|
+
animations: AnimationToken
|
|
50
|
+
borders: BorderToken
|
|
51
|
+
borderWidths: BorderWidthToken
|
|
52
|
+
colors: ColorToken
|
|
53
|
+
fonts: FontToken
|
|
54
|
+
fontWeights: FontWeightToken
|
|
55
|
+
fontSizes: FontSizeToken
|
|
56
|
+
letterSpacings: LetterSpacingToken
|
|
57
|
+
lineHeights: LineHeightToken
|
|
58
|
+
radii: RadiusToken
|
|
59
|
+
spacing: SpacingToken
|
|
60
|
+
breakpoints: BreakpointToken
|
|
61
|
+
} & { [token: string]: never }
|
|
62
|
+
|
|
63
|
+
export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "cursor" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets"
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { CompositionStyleObject } from './system-types';
|
|
3
|
+
|
|
4
|
+
interface Token<T> {
|
|
5
|
+
value: T
|
|
6
|
+
description?: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface Recursive<T> {
|
|
10
|
+
[key: string]: Recursive<T> | T
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* -----------------------------------------------------------------------------
|
|
14
|
+
* Text styles
|
|
15
|
+
* -----------------------------------------------------------------------------*/
|
|
16
|
+
|
|
17
|
+
type TextStyleProperty =
|
|
18
|
+
| 'color'
|
|
19
|
+
| 'direction'
|
|
20
|
+
| 'font'
|
|
21
|
+
| 'fontFamily'
|
|
22
|
+
| 'fontFeatureSettings'
|
|
23
|
+
| 'fontKerning'
|
|
24
|
+
| 'fontLanguageOverride'
|
|
25
|
+
| 'fontOpticalSizing'
|
|
26
|
+
| 'fontPalette'
|
|
27
|
+
| 'fontSize'
|
|
28
|
+
| 'fontSizeAdjust'
|
|
29
|
+
| 'fontStretch'
|
|
30
|
+
| 'fontStyle'
|
|
31
|
+
| 'fontSynthesis'
|
|
32
|
+
| 'fontVariant'
|
|
33
|
+
| 'fontVariantAlternates'
|
|
34
|
+
| 'fontVariantCaps'
|
|
35
|
+
| 'fontVariantLigatures'
|
|
36
|
+
| 'fontVariantNumeric'
|
|
37
|
+
| 'fontVariantPosition'
|
|
38
|
+
| 'fontVariationSettings'
|
|
39
|
+
| 'fontWeight'
|
|
40
|
+
| 'hangingPunctuation'
|
|
41
|
+
| 'hypens'
|
|
42
|
+
| 'hyphenateCharacter'
|
|
43
|
+
| 'hyphenateLimitChars'
|
|
44
|
+
| 'letterSpacing'
|
|
45
|
+
| 'lineBreak'
|
|
46
|
+
| 'lineHeight'
|
|
47
|
+
| 'quotes'
|
|
48
|
+
| 'overflowWrap'
|
|
49
|
+
| 'tabSize'
|
|
50
|
+
| 'textAlign'
|
|
51
|
+
| 'textAlignLast'
|
|
52
|
+
| 'textCombineUpright'
|
|
53
|
+
| 'textDecoration'
|
|
54
|
+
| 'textDecorationColor'
|
|
55
|
+
| 'textDecorationLine'
|
|
56
|
+
| 'textDecorationSkip'
|
|
57
|
+
| 'textDecorationSkipBox'
|
|
58
|
+
| 'textDecorationSkipInk'
|
|
59
|
+
| 'textDecorationSkipInset'
|
|
60
|
+
| 'textDecorationStyle'
|
|
61
|
+
| 'textDecorationThickness'
|
|
62
|
+
| 'textEmphasis'
|
|
63
|
+
| 'textEmphasisColor'
|
|
64
|
+
| 'textEmphasisPosition'
|
|
65
|
+
| 'textEmphasisStyle'
|
|
66
|
+
| 'textIndent'
|
|
67
|
+
| 'textJustify'
|
|
68
|
+
| 'textOrientation'
|
|
69
|
+
| 'textOverflow'
|
|
70
|
+
| 'textRendering'
|
|
71
|
+
| 'textShadow'
|
|
72
|
+
| 'textStroke'
|
|
73
|
+
| 'textStrokeColor'
|
|
74
|
+
| 'textStrokeWidth'
|
|
75
|
+
| 'textTransform'
|
|
76
|
+
| 'textUnderlineOffset'
|
|
77
|
+
| 'textUnderlinePosition'
|
|
78
|
+
| 'textWrap'
|
|
79
|
+
| 'textWrapMode'
|
|
80
|
+
| 'textWrapStyle'
|
|
81
|
+
| 'unicodeBidi'
|
|
82
|
+
| 'verticalAlign'
|
|
83
|
+
| 'whiteSpace'
|
|
84
|
+
| 'wordBreak'
|
|
85
|
+
| 'wordSpacing'
|
|
86
|
+
| 'writingMode'
|
|
87
|
+
|
|
88
|
+
export type TextStyle = CompositionStyleObject<TextStyleProperty>
|
|
89
|
+
|
|
90
|
+
export type TextStyles = Recursive<Token<TextStyle>>
|
|
91
|
+
|
|
92
|
+
/* -----------------------------------------------------------------------------
|
|
93
|
+
* Layer styles
|
|
94
|
+
* -----------------------------------------------------------------------------*/
|
|
95
|
+
|
|
96
|
+
type LogicalPlacement = 'Inline' | 'Block' | 'InlineStart' | 'InlineEnd' | 'BlockStart' | 'BlockEnd'
|
|
97
|
+
|
|
98
|
+
type PhysicalPlacement = 'Top' | 'Right' | 'Bottom' | 'Left'
|
|
99
|
+
|
|
100
|
+
type Placement = PhysicalPlacement | LogicalPlacement
|
|
101
|
+
|
|
102
|
+
type Radius =
|
|
103
|
+
| `Top${'Right' | 'Left'}`
|
|
104
|
+
| `Bottom${'Right' | 'Left'}`
|
|
105
|
+
| `Start${'Start' | 'End'}`
|
|
106
|
+
| `End${'Start' | 'End'}`
|
|
107
|
+
|
|
108
|
+
type LayerStyleProperty =
|
|
109
|
+
| 'aspectRatio'
|
|
110
|
+
| 'background'
|
|
111
|
+
| 'backgroundColor'
|
|
112
|
+
| 'backgroundImage'
|
|
113
|
+
| 'border'
|
|
114
|
+
| 'borderColor'
|
|
115
|
+
| 'borderImage'
|
|
116
|
+
| 'borderImageOutset'
|
|
117
|
+
| 'borderImageRepeat'
|
|
118
|
+
| 'borderImageSlice'
|
|
119
|
+
| 'borderImageSource'
|
|
120
|
+
| 'borderImageWidth'
|
|
121
|
+
| 'borderRadius'
|
|
122
|
+
| 'borderStyle'
|
|
123
|
+
| 'borderWidth'
|
|
124
|
+
| `border${Placement}`
|
|
125
|
+
| `border${Placement}Color`
|
|
126
|
+
| `border${Placement}Style`
|
|
127
|
+
| `border${Placement}Width`
|
|
128
|
+
| 'borderRadius'
|
|
129
|
+
| `border${Radius}Radius`
|
|
130
|
+
| 'boxShadow'
|
|
131
|
+
| 'boxShadowColor'
|
|
132
|
+
| 'clipPath'
|
|
133
|
+
| 'color'
|
|
134
|
+
| 'contain'
|
|
135
|
+
| 'content'
|
|
136
|
+
| 'contentVisibility'
|
|
137
|
+
| 'cursor'
|
|
138
|
+
| 'display'
|
|
139
|
+
| 'filter'
|
|
140
|
+
| 'backdropFilter'
|
|
141
|
+
| 'height'
|
|
142
|
+
| 'width'
|
|
143
|
+
| 'minHeight'
|
|
144
|
+
| 'minWidth'
|
|
145
|
+
| 'maxHeight'
|
|
146
|
+
| 'maxWidth'
|
|
147
|
+
| `margin${Placement}`
|
|
148
|
+
| 'inset'
|
|
149
|
+
| `inset${LogicalPlacement}`
|
|
150
|
+
| Lowercase<PhysicalPlacement>
|
|
151
|
+
| 'isolation'
|
|
152
|
+
| 'mask'
|
|
153
|
+
| 'maskClip'
|
|
154
|
+
| 'maskComposite'
|
|
155
|
+
| 'maskImage'
|
|
156
|
+
| 'maskMode'
|
|
157
|
+
| 'maskOrigin'
|
|
158
|
+
| 'maskPosition'
|
|
159
|
+
| 'maskRepeat'
|
|
160
|
+
| 'maskSize'
|
|
161
|
+
| 'mixBlendMode'
|
|
162
|
+
| 'objectFit'
|
|
163
|
+
| 'objectPosition'
|
|
164
|
+
| 'opacity'
|
|
165
|
+
| 'outline'
|
|
166
|
+
| 'outlineColor'
|
|
167
|
+
| 'outlineOffset'
|
|
168
|
+
| 'outlineStyle'
|
|
169
|
+
| 'outlineWidth'
|
|
170
|
+
| 'overflow'
|
|
171
|
+
| 'overflowX'
|
|
172
|
+
| 'overflowY'
|
|
173
|
+
| 'padding'
|
|
174
|
+
| `padding${Placement}`
|
|
175
|
+
| 'pointerEvents'
|
|
176
|
+
| 'position'
|
|
177
|
+
| 'resize'
|
|
178
|
+
| 'transform'
|
|
179
|
+
| 'transition'
|
|
180
|
+
| 'visibility'
|
|
181
|
+
| 'willChange'
|
|
182
|
+
| 'zIndex'
|
|
183
|
+
| 'backgroundBlendMode'
|
|
184
|
+
| 'backgroundAttachment'
|
|
185
|
+
| 'backgroundClip'
|
|
186
|
+
| 'backgroundOrigin'
|
|
187
|
+
| 'backgroundPosition'
|
|
188
|
+
| 'backgroundRepeat'
|
|
189
|
+
| 'backgroundSize'
|
|
190
|
+
|
|
191
|
+
export type LayerStyle = CompositionStyleObject<LayerStyleProperty>
|
|
192
|
+
|
|
193
|
+
export type LayerStyles = Recursive<Token<LayerStyle>>
|
|
194
|
+
|
|
195
|
+
/* -----------------------------------------------------------------------------
|
|
196
|
+
* Motion styles
|
|
197
|
+
* -----------------------------------------------------------------------------*/
|
|
198
|
+
|
|
199
|
+
type AnimationStyleProperty =
|
|
200
|
+
| 'animation'
|
|
201
|
+
| 'animationComposition'
|
|
202
|
+
| 'animationDelay'
|
|
203
|
+
| 'animationDirection'
|
|
204
|
+
| 'animationDuration'
|
|
205
|
+
| 'animationFillMode'
|
|
206
|
+
| 'animationIterationCount'
|
|
207
|
+
| 'animationName'
|
|
208
|
+
| 'animationPlayState'
|
|
209
|
+
| 'animationTimingFunction'
|
|
210
|
+
| 'animationRange'
|
|
211
|
+
| 'animationRangeStart'
|
|
212
|
+
| 'animationRangeEnd'
|
|
213
|
+
| 'animationTimeline'
|
|
214
|
+
| 'transformOrigin'
|
|
215
|
+
|
|
216
|
+
export type AnimationStyle = CompositionStyleObject<AnimationStyleProperty>
|
|
217
|
+
|
|
218
|
+
export type AnimationStyles = Recursive<Token<AnimationStyle>>
|
|
219
|
+
|
|
220
|
+
export interface CompositionStyles {
|
|
221
|
+
textStyles: TextStyles
|
|
222
|
+
layerStyles: LayerStyles
|
|
223
|
+
animationStyles: AnimationStyles
|
|
224
|
+
}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { AnySelector, Selectors } from './selectors';
|
|
3
|
+
|
|
4
|
+
export interface Conditions {
|
|
5
|
+
/** `&:is(:hover, [data-hover])` */
|
|
6
|
+
"_hover": string
|
|
7
|
+
/** `&:is(:focus, [data-focus])` */
|
|
8
|
+
"_focus": string
|
|
9
|
+
/** `&:focus-within` */
|
|
10
|
+
"_focusWithin": string
|
|
11
|
+
/** `&:is(:focus-visible, [data-focus-visible])` */
|
|
12
|
+
"_focusVisible": string
|
|
13
|
+
/** `&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])` */
|
|
14
|
+
"_disabled": string
|
|
15
|
+
/** `&:is(:active, [data-active])` */
|
|
16
|
+
"_active": string
|
|
17
|
+
/** `&:visited` */
|
|
18
|
+
"_visited": string
|
|
19
|
+
/** `&:target` */
|
|
20
|
+
"_target": string
|
|
21
|
+
/** `&:is(:read-only, [data-read-only], [aria-readonly=true])` */
|
|
22
|
+
"_readOnly": string
|
|
23
|
+
/** `&:read-write` */
|
|
24
|
+
"_readWrite": string
|
|
25
|
+
/** `&:is(:empty, [data-empty])` */
|
|
26
|
+
"_empty": string
|
|
27
|
+
/** `&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])` */
|
|
28
|
+
"_checked": string
|
|
29
|
+
/** `&:enabled` */
|
|
30
|
+
"_enabled": string
|
|
31
|
+
/** `&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])` */
|
|
32
|
+
"_expanded": string
|
|
33
|
+
/** `&[data-highlighted]` */
|
|
34
|
+
"_highlighted": string
|
|
35
|
+
/** `&[data-complete]` */
|
|
36
|
+
"_complete": string
|
|
37
|
+
/** `&[data-incomplete]` */
|
|
38
|
+
"_incomplete": string
|
|
39
|
+
/** `&[data-dragging]` */
|
|
40
|
+
"_dragging": string
|
|
41
|
+
/** `&::before` */
|
|
42
|
+
"_before": string
|
|
43
|
+
/** `&::after` */
|
|
44
|
+
"_after": string
|
|
45
|
+
/** `&::first-letter` */
|
|
46
|
+
"_firstLetter": string
|
|
47
|
+
/** `&::first-line` */
|
|
48
|
+
"_firstLine": string
|
|
49
|
+
/** `&::marker, &::-webkit-details-marker` */
|
|
50
|
+
"_marker": string
|
|
51
|
+
/** `&::selection` */
|
|
52
|
+
"_selection": string
|
|
53
|
+
/** `&::file-selector-button` */
|
|
54
|
+
"_file": string
|
|
55
|
+
/** `&::backdrop` */
|
|
56
|
+
"_backdrop": string
|
|
57
|
+
/** `&:first-child` */
|
|
58
|
+
"_first": string
|
|
59
|
+
/** `&:last-child` */
|
|
60
|
+
"_last": string
|
|
61
|
+
/** `&:only-child` */
|
|
62
|
+
"_only": string
|
|
63
|
+
/** `&:nth-child(even)` */
|
|
64
|
+
"_even": string
|
|
65
|
+
/** `&:nth-child(odd)` */
|
|
66
|
+
"_odd": string
|
|
67
|
+
/** `&:first-of-type` */
|
|
68
|
+
"_firstOfType": string
|
|
69
|
+
/** `&:last-of-type` */
|
|
70
|
+
"_lastOfType": string
|
|
71
|
+
/** `&:only-of-type` */
|
|
72
|
+
"_onlyOfType": string
|
|
73
|
+
/** `.peer:is(:focus, [data-focus]) ~ &` */
|
|
74
|
+
"_peerFocus": string
|
|
75
|
+
/** `.peer:is(:hover, [data-hover]) ~ &` */
|
|
76
|
+
"_peerHover": string
|
|
77
|
+
/** `.peer:is(:active, [data-active]) ~ &` */
|
|
78
|
+
"_peerActive": string
|
|
79
|
+
/** `.peer:focus-within ~ &` */
|
|
80
|
+
"_peerFocusWithin": string
|
|
81
|
+
/** `.peer:is(:focus-visible, [data-focus-visible]) ~ &` */
|
|
82
|
+
"_peerFocusVisible": string
|
|
83
|
+
/** `.peer:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) ~ &` */
|
|
84
|
+
"_peerDisabled": string
|
|
85
|
+
/** `.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &` */
|
|
86
|
+
"_peerChecked": string
|
|
87
|
+
/** `.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &` */
|
|
88
|
+
"_peerInvalid": string
|
|
89
|
+
/** `.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &` */
|
|
90
|
+
"_peerExpanded": string
|
|
91
|
+
/** `.peer:placeholder-shown ~ &` */
|
|
92
|
+
"_peerPlaceholderShown": string
|
|
93
|
+
/** `.group:is(:focus, [data-focus]) &` */
|
|
94
|
+
"_groupFocus": string
|
|
95
|
+
/** `.group:is(:hover, [data-hover]) &` */
|
|
96
|
+
"_groupHover": string
|
|
97
|
+
/** `.group:is(:active, [data-active]) &` */
|
|
98
|
+
"_groupActive": string
|
|
99
|
+
/** `.group:focus-within &` */
|
|
100
|
+
"_groupFocusWithin": string
|
|
101
|
+
/** `.group:is(:focus-visible, [data-focus-visible]) &` */
|
|
102
|
+
"_groupFocusVisible": string
|
|
103
|
+
/** `.group:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) &` */
|
|
104
|
+
"_groupDisabled": string
|
|
105
|
+
/** `.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &` */
|
|
106
|
+
"_groupChecked": string
|
|
107
|
+
/** `.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &` */
|
|
108
|
+
"_groupExpanded": string
|
|
109
|
+
/** `.group:is(:invalid, [data-invalid], [aria-invalid=true]) &` */
|
|
110
|
+
"_groupInvalid": string
|
|
111
|
+
/** `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])` */
|
|
112
|
+
"_indeterminate": string
|
|
113
|
+
/** `&:is(:required, [data-required], [aria-required=true])` */
|
|
114
|
+
"_required": string
|
|
115
|
+
/** `&:is(:valid, [data-valid])` */
|
|
116
|
+
"_valid": string
|
|
117
|
+
/** `&:is(:invalid, [data-invalid], [aria-invalid=true])` */
|
|
118
|
+
"_invalid": string
|
|
119
|
+
/** `&:autofill` */
|
|
120
|
+
"_autofill": string
|
|
121
|
+
/** `&:is(:in-range, [data-in-range])` */
|
|
122
|
+
"_inRange": string
|
|
123
|
+
/** `&:is(:out-of-range, [data-outside-range])` */
|
|
124
|
+
"_outOfRange": string
|
|
125
|
+
/** `&::placeholder, &[data-placeholder]` */
|
|
126
|
+
"_placeholder": string
|
|
127
|
+
/** `&:is(:placeholder-shown, [data-placeholder-shown])` */
|
|
128
|
+
"_placeholderShown": string
|
|
129
|
+
/** `&:is([aria-pressed=true], [data-pressed])` */
|
|
130
|
+
"_pressed": string
|
|
131
|
+
/** `&:is([aria-selected=true], [data-selected])` */
|
|
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
|
|
141
|
+
/** `&:default` */
|
|
142
|
+
"_default": string
|
|
143
|
+
/** `&:optional` */
|
|
144
|
+
"_optional": string
|
|
145
|
+
/** `&:is([open], [data-open], [data-state="open"], :popover-open)` */
|
|
146
|
+
"_open": string
|
|
147
|
+
/** `&:is([closed], [data-closed], [data-state="closed"])` */
|
|
148
|
+
"_closed": string
|
|
149
|
+
/** `&:is(:fullscreen, [data-fullscreen])` */
|
|
150
|
+
"_fullscreen": string
|
|
151
|
+
/** `&:is([data-loading], [aria-busy=true])` */
|
|
152
|
+
"_loading": string
|
|
153
|
+
/** `&:is([hidden], [data-hidden])` */
|
|
154
|
+
"_hidden": string
|
|
155
|
+
/** `&:is([aria-current=true], [data-current])` */
|
|
156
|
+
"_current": string
|
|
157
|
+
/** `&[aria-current=page]` */
|
|
158
|
+
"_currentPage": string
|
|
159
|
+
/** `&[aria-current=step]` */
|
|
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
|
|
173
|
+
/** `@media (prefers-reduced-motion: reduce)` */
|
|
174
|
+
"_motionReduce": string
|
|
175
|
+
/** `@media (prefers-reduced-motion: no-preference)` */
|
|
176
|
+
"_motionSafe": string
|
|
177
|
+
/** `@media print` */
|
|
178
|
+
"_print": string
|
|
179
|
+
/** `@media (orientation: landscape)` */
|
|
180
|
+
"_landscape": string
|
|
181
|
+
/** `@media (orientation: portrait)` */
|
|
182
|
+
"_portrait": string
|
|
183
|
+
/** `.dark &` */
|
|
184
|
+
"_dark": string
|
|
185
|
+
/** `.light &` */
|
|
186
|
+
"_light": string
|
|
187
|
+
/** `@media (prefers-color-scheme: dark)` */
|
|
188
|
+
"_osDark": string
|
|
189
|
+
/** `@media (prefers-color-scheme: light)` */
|
|
190
|
+
"_osLight": string
|
|
191
|
+
/** `@media (forced-colors: active)` */
|
|
192
|
+
"_highContrast": string
|
|
193
|
+
/** `@media (prefers-contrast: less)` */
|
|
194
|
+
"_lessContrast": string
|
|
195
|
+
/** `@media (prefers-contrast: more)` */
|
|
196
|
+
"_moreContrast": string
|
|
197
|
+
/** `:where([dir=ltr], :dir(ltr)) &` */
|
|
198
|
+
"_ltr": string
|
|
199
|
+
/** `:where([dir=rtl], :dir(rtl)) &` */
|
|
200
|
+
"_rtl": string
|
|
201
|
+
/** `&::-webkit-scrollbar` */
|
|
202
|
+
"_scrollbar": string
|
|
203
|
+
/** `&::-webkit-scrollbar-thumb` */
|
|
204
|
+
"_scrollbarThumb": string
|
|
205
|
+
/** `&::-webkit-scrollbar-track` */
|
|
206
|
+
"_scrollbarTrack": string
|
|
207
|
+
/** `&[data-orientation=horizontal]` */
|
|
208
|
+
"_horizontal": string
|
|
209
|
+
/** `&[data-orientation=vertical]` */
|
|
210
|
+
"_vertical": string
|
|
211
|
+
/** `& :where(svg)` */
|
|
212
|
+
"_icon": string
|
|
213
|
+
/** `@starting-style` */
|
|
214
|
+
"_starting": string
|
|
215
|
+
/** `@media (scripting: none)` */
|
|
216
|
+
"_noscript": string
|
|
217
|
+
/** `@media (inverted-colors: inverted)` */
|
|
218
|
+
"_invertedColors": string
|
|
219
|
+
/** `@media screen and (min-width: 40rem)` */
|
|
220
|
+
"sm": string
|
|
221
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
|
|
222
|
+
"smOnly": string
|
|
223
|
+
/** `@media screen and (max-width: 39.9975rem)` */
|
|
224
|
+
"smDown": string
|
|
225
|
+
/** `@media screen and (min-width: 48rem)` */
|
|
226
|
+
"md": string
|
|
227
|
+
/** `@media screen and (min-width: 48rem) and (max-width: 63.9975rem)` */
|
|
228
|
+
"mdOnly": string
|
|
229
|
+
/** `@media screen and (max-width: 47.9975rem)` */
|
|
230
|
+
"mdDown": string
|
|
231
|
+
/** `@media screen and (min-width: 64rem)` */
|
|
232
|
+
"lg": string
|
|
233
|
+
/** `@media screen and (min-width: 64rem) and (max-width: 79.9975rem)` */
|
|
234
|
+
"lgOnly": string
|
|
235
|
+
/** `@media screen and (max-width: 63.9975rem)` */
|
|
236
|
+
"lgDown": string
|
|
237
|
+
/** `@media screen and (min-width: 80rem)` */
|
|
238
|
+
"xl": string
|
|
239
|
+
/** `@media screen and (min-width: 80rem) and (max-width: 95.9975rem)` */
|
|
240
|
+
"xlOnly": string
|
|
241
|
+
/** `@media screen and (max-width: 79.9975rem)` */
|
|
242
|
+
"xlDown": string
|
|
243
|
+
/** `@media screen and (min-width: 96rem)` */
|
|
244
|
+
"2xl": string
|
|
245
|
+
/** `@media screen and (min-width: 96rem)` */
|
|
246
|
+
"2xlOnly": string
|
|
247
|
+
/** `@media screen and (max-width: 95.9975rem)` */
|
|
248
|
+
"2xlDown": string
|
|
249
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 47.9975rem)` */
|
|
250
|
+
"smToMd": string
|
|
251
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 63.9975rem)` */
|
|
252
|
+
"smToLg": string
|
|
253
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 79.9975rem)` */
|
|
254
|
+
"smToXl": string
|
|
255
|
+
/** `@media screen and (min-width: 40rem) and (max-width: 95.9975rem)` */
|
|
256
|
+
"smTo2xl": string
|
|
257
|
+
/** `@media screen and (min-width: 48rem) and (max-width: 63.9975rem)` */
|
|
258
|
+
"mdToLg": string
|
|
259
|
+
/** `@media screen and (min-width: 48rem) and (max-width: 79.9975rem)` */
|
|
260
|
+
"mdToXl": string
|
|
261
|
+
/** `@media screen and (min-width: 48rem) and (max-width: 95.9975rem)` */
|
|
262
|
+
"mdTo2xl": string
|
|
263
|
+
/** `@media screen and (min-width: 64rem) and (max-width: 79.9975rem)` */
|
|
264
|
+
"lgToXl": string
|
|
265
|
+
/** `@media screen and (min-width: 64rem) and (max-width: 95.9975rem)` */
|
|
266
|
+
"lgTo2xl": string
|
|
267
|
+
/** `@media screen and (min-width: 80rem) and (max-width: 95.9975rem)` */
|
|
268
|
+
"xlTo2xl": string
|
|
269
|
+
/** `@container (min-width: 20rem)` */
|
|
270
|
+
"@/xs": string
|
|
271
|
+
/** `@container (min-width: 24rem)` */
|
|
272
|
+
"@/sm": string
|
|
273
|
+
/** `@container (min-width: 28rem)` */
|
|
274
|
+
"@/md": string
|
|
275
|
+
/** `@container (min-width: 32rem)` */
|
|
276
|
+
"@/lg": string
|
|
277
|
+
/** `@container (min-width: 36rem)` */
|
|
278
|
+
"@/xl": string
|
|
279
|
+
/** `@container (min-width: 42rem)` */
|
|
280
|
+
"@/2xl": string
|
|
281
|
+
/** `@container (min-width: 48rem)` */
|
|
282
|
+
"@/3xl": string
|
|
283
|
+
/** `@container (min-width: 56rem)` */
|
|
284
|
+
"@/4xl": string
|
|
285
|
+
/** `@container (min-width: 64rem)` */
|
|
286
|
+
"@/5xl": string
|
|
287
|
+
/** `@container (min-width: 72rem)` */
|
|
288
|
+
"@/6xl": string
|
|
289
|
+
/** `@container (min-width: 80rem)` */
|
|
290
|
+
"@/7xl": string
|
|
291
|
+
/** `@container (min-width: 90rem)` */
|
|
292
|
+
"@/8xl": string
|
|
293
|
+
/** The base (=no conditions) styles to apply */
|
|
294
|
+
"base": string
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export type ConditionalValue<V> =
|
|
298
|
+
| V
|
|
299
|
+
| Array<V | null>
|
|
300
|
+
| {
|
|
301
|
+
[K in keyof Conditions]?: ConditionalValue<V>
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type Nested<P> = P & {
|
|
305
|
+
[K in Selectors]?: Nested<P>
|
|
306
|
+
} & {
|
|
307
|
+
[K in AnySelector]?: Nested<P>
|
|
308
|
+
} & {
|
|
309
|
+
[K in keyof Conditions]?: Nested<P>
|
|
310
|
+
}
|