@sanity/ui 3.0.0-static.0 → 3.0.0-static.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/_chunks-cjs/buildCommand.js +1387 -681
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/cli.js +4 -2
- package/dist/cli.js.map +1 -1
- package/dist/css.d.mts +131 -12
- package/dist/css.d.ts +131 -12
- package/dist/css.esm.js +1450 -791
- package/dist/css.esm.js.map +1 -1
- package/dist/css.js +1449 -790
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +1450 -791
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +84 -76
- package/dist/index.d.ts +84 -76
- package/dist/index.esm.js +2734 -3146
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2733 -3145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2734 -3146
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-theme.css +1 -1
- package/dist/system.css +1590 -1158
- package/dist/theme.esm.js +1565 -452
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +1599 -484
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1565 -452
- package/dist/theme.mjs.map +1 -1
- package/package.json +22 -22
- package/src/core/__workshop__/constants.ts +14 -5
- package/src/core/__workshop__/fontsPlugin.tsx +1 -1
- package/src/core/_compat/index.ts +2 -0
- package/src/core/{styles → _compat/styles}/box/boxStyle.ts +1 -1
- package/src/core/{styles → _compat/styles}/box/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/card/_cardColorStyle.ts +2 -2
- package/src/core/{styles → _compat/styles}/flex/flexItemStyle.ts +1 -1
- package/src/core/{styles → _compat/styles}/font/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/grid/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/helpers.ts +1 -1
- package/src/core/{styles → _compat/styles}/input/textInputStyle.ts +2 -2
- package/src/core/{styles → _compat/styles}/radius/types.ts +1 -1
- package/src/core/{styles → _compat/styles}/shadow/shadowStyle.ts +1 -1
- package/src/core/components/autocomplete/__workshop__/custom.tsx +5 -4
- package/src/core/components/autocomplete/__workshop__/example.tsx +3 -2
- package/src/core/components/autocomplete/autocomplete.tsx +5 -5
- package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
- package/src/core/components/dialog/__workshop__/props.tsx +2 -0
- package/src/core/components/dialog/dialog.tsx +1 -5
- package/src/core/components/hotkeys/hotkeys.tsx +1 -1
- package/src/core/components/menu/menu.tsx +8 -10
- package/src/core/components/menu/menuDivider.tsx +16 -0
- package/src/core/components/menu/menuGroup.tsx +2 -8
- package/src/core/components/menu/menuItem.tsx +1 -1
- package/src/core/components/skeleton/skeleton.tsx +14 -20
- package/src/core/components/skeleton/textSkeleton.tsx +72 -48
- package/src/core/components/tab/tab.tsx +0 -1
- package/src/core/components/tab/tabList.tsx +4 -21
- package/src/core/components/tab/tabPanel.tsx +1 -0
- package/src/core/components/toast/toast.tsx +27 -14
- package/src/core/components/toast/toastProvider.tsx +4 -13
- package/src/core/components/tree/tree.tsx +1 -2
- package/src/core/components/tree/treeGroup.tsx +4 -1
- package/src/core/components/tree/treeItem.tsx +11 -15
- package/src/core/hooks/useArrayProp.ts +1 -1
- package/src/core/index.ts +0 -1
- package/src/core/lib/styled/members.ts +2 -2
- package/src/core/primitives/avatar/avatar.tsx +0 -21
- package/src/core/primitives/avatar/avatarCounter.tsx +1 -1
- package/src/core/primitives/avatar/avatarStack.tsx +1 -1
- package/src/core/primitives/avatar/styles.ts +2 -2
- package/src/core/primitives/box/box.tsx +4 -1
- package/src/core/primitives/button/__workshop__/props.tsx +2 -1
- package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
- package/src/core/primitives/button/__workshop__/stacked.tsx +2 -1
- package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
- package/src/core/primitives/button/styles.ts +3 -3
- package/src/core/primitives/card/__workshop__/props.tsx +2 -2
- package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
- package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
- package/src/core/primitives/card/card.tsx +7 -10
- package/src/core/primitives/code/code.tsx +2 -4
- package/src/core/primitives/container/styles.ts +1 -1
- package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
- package/src/core/primitives/flex/flex.tsx +1 -13
- package/src/core/primitives/grid/grid.tsx +5 -19
- package/src/core/primitives/heading/heading.tsx +8 -25
- package/src/core/primitives/heading/styles.ts +1 -1
- package/src/core/primitives/inline/inline.tsx +3 -12
- package/src/core/primitives/inline/styles.ts +1 -1
- package/src/core/primitives/label/label.tsx +4 -9
- package/src/core/primitives/label/styles.ts +1 -1
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +2 -1
- package/src/core/primitives/popover/popover.tsx +1 -1
- package/src/core/primitives/popover/popoverCard.tsx +1 -1
- package/src/core/primitives/radio/radio.tsx +1 -1
- package/src/core/primitives/radio/styles.ts +2 -2
- package/src/core/primitives/select/select.tsx +1 -1
- package/src/core/primitives/select/styles.ts +3 -3
- package/src/core/primitives/spinner/__workshop__/Props.tsx +2 -1
- package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +16 -0
- package/src/core/primitives/spinner/spinner.tsx +2 -2
- package/src/core/primitives/stack/styles.ts +1 -1
- package/src/core/primitives/switch/styles.ts +2 -2
- package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
- package/src/core/primitives/text/styles.ts +1 -1
- package/src/core/primitives/text/text.tsx +1 -4
- package/src/core/primitives/textArea/__workshop__/plain.tsx +2 -2
- package/src/core/primitives/textArea/textArea.tsx +3 -3
- package/src/core/primitives/textInput/__workshop__/plain.tsx +3 -2
- package/src/core/primitives/textInput/textInput.tsx +16 -83
- package/src/core/primitives/tooltip/tooltipCard.tsx +5 -5
- package/src/core/primitives/types.ts +1 -0
- package/src/core/theme/__workshop__/build/Root.tsx +1 -1
- package/src/core/theme/__workshop__/build/story.tsx +2 -4
- package/src/core/theme/themeProvider.tsx +1 -1
- package/src/core/types/box.ts +22 -16
- package/src/core/types/grid.ts +17 -12
- package/src/core/types/text.ts +7 -4
- package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
- package/src/core/utils/layer/layer.tsx +2 -2
- package/src/core/utils/virtualList/virtualList.tsx +1 -1
- package/src/css/compile/{comileRules.ts → compileRules.ts} +2 -5
- package/src/css/compile/compileSystem.ts +1 -1
- package/src/css/compile/compileTheme.ts +4 -1
- package/src/css/components/breadcrumbs/rules.ts +18 -0
- package/src/css/components/menu/index.ts +1 -0
- package/src/css/components/menu/menu.ts +5 -0
- package/src/css/components/menu/rules.ts +10 -0
- package/src/css/components/skeleton/index.ts +2 -0
- package/src/css/components/skeleton/rules.ts +106 -0
- package/src/css/components/skeleton/skeleton.ts +31 -0
- package/src/css/components/skeleton/types.ts +24 -0
- package/src/css/components/toast/rules.ts +68 -0
- package/src/css/components/tree/rules.ts +115 -0
- package/src/css/index.ts +4 -0
- package/src/css/primitives/box/box.ts +5 -1
- package/src/css/primitives/box/types.ts +7 -8
- package/src/css/primitives/card/rules.ts +161 -13
- package/src/css/primitives/checkbox/__styles.ts +115 -113
- package/src/css/primitives/selectable/__style.ts +117 -115
- package/src/css/primitives/spinner/rules.ts +5 -7
- package/src/css/primitives/spinner/spinner.ts +4 -0
- package/src/css/primitives/textInput/index.ts +1 -0
- package/src/css/primitives/textInput/rules.ts +159 -64
- package/src/css/primitives/textInput/textInput.ts +11 -3
- package/src/css/primitives/textInput/types.ts +8 -0
- package/src/css/rules.ts +16 -38
- package/src/css/styles/font/font.ts +7 -2
- package/src/css/styles/font/rules.ts +23 -0
- package/src/css/styles/font/types.ts +6 -0
- package/src/css/styles/gap/rules.ts +6 -6
- package/src/css/styles/grid/grid.ts +13 -0
- package/src/css/styles/grid/index.ts +2 -0
- package/src/css/styles/grid/rules.ts +112 -1
- package/src/css/styles/grid/types.ts +29 -0
- package/src/css/styles/margin/rules.ts +58 -54
- package/src/css/styles/outline/rules.ts +7 -0
- package/src/css/styles/overflow/index.ts +2 -0
- package/src/css/styles/overflow/overflow.ts +11 -0
- package/src/css/styles/overflow/types.ts +11 -0
- package/src/css/styles/padding/rules.ts +50 -48
- package/src/css/types.ts +36 -1
- package/src/css/varNames.ts +1 -1
- package/src/css/vars.ts +86 -0
- package/dist/_chunks-cjs/getTheme_v2.js +0 -316
- package/dist/_chunks-cjs/getTheme_v2.js.map +0 -1
- package/dist/_chunks-es/getTheme_v2.mjs +0 -317
- package/dist/_chunks-es/getTheme_v2.mjs.map +0 -1
- package/dist/_legacy/getTheme_v2.esm.js +0 -317
- package/dist/_legacy/getTheme_v2.esm.js.map +0 -1
- package/src/core/components/autocomplete/autocomplete.styles.tsx +0 -38
- package/src/core/components/breadcrumbs/breadcrumbs.styles.ts +0 -17
- package/src/core/components/menu/menuDivider.ts +0 -13
- package/src/core/components/skeleton/styles.ts +0 -50
- package/src/core/components/toast/styles.ts +0 -61
- package/src/core/components/tree/style.ts +0 -104
- package/src/core/primitives/card/styles.ts +0 -146
- /package/src/core/{styles → _compat/styles}/border/borderStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/border/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/border/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/box/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/card/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/flex/flexStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/flex/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/flex/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/focusRing/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/codeFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/headingFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/labelFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/responsiveFont.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/textAlignStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/font/textFontStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/gridItemStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/gridStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/grid/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/input/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/input/responsiveInputPaddingStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/internal.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/marginStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/marginsStyle.test.ts +0 -0
- /package/src/core/{styles → _compat/styles}/margin/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/paddingStyle.test.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/paddingStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/padding/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/radius/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/radius/radiusStyle.ts +0 -0
- /package/src/core/{styles → _compat/styles}/shadow/index.ts +0 -0
- /package/src/core/{styles → _compat/styles}/shadow/types.ts +0 -0
- /package/src/core/{styles → _compat/styles}/types.ts +0 -0
- /package/src/core/{_compat.ts → _compat/types.ts} +0 -0
package/dist/css.js
CHANGED
|
@@ -67,31 +67,133 @@ const breadcrumbsRules = {
|
|
|
67
67
|
"dialog-footer": {
|
|
68
68
|
zIndex: 3
|
|
69
69
|
}
|
|
70
|
+
}, menuRules = {
|
|
71
|
+
"menu-divider": {
|
|
72
|
+
height: "1px",
|
|
73
|
+
border: 0,
|
|
74
|
+
backgroundColor: "var(--card-border-color)",
|
|
75
|
+
margin: 0
|
|
76
|
+
}
|
|
70
77
|
};
|
|
71
78
|
function responsiveRules(className, props) {
|
|
72
79
|
return {
|
|
73
80
|
[className]: props,
|
|
74
81
|
[`_1:${className}`]: {
|
|
75
|
-
"@media": {
|
|
82
|
+
"@media": {
|
|
83
|
+
"screen and (min-width: 360px)": props
|
|
84
|
+
}
|
|
76
85
|
},
|
|
77
86
|
[`_2:${className}`]: {
|
|
78
|
-
"@media": {
|
|
87
|
+
"@media": {
|
|
88
|
+
"screen and (min-width: 600px)": props
|
|
89
|
+
}
|
|
79
90
|
},
|
|
80
91
|
[`_3:${className}`]: {
|
|
81
|
-
"@media": {
|
|
92
|
+
"@media": {
|
|
93
|
+
"screen and (min-width: 900px)": props
|
|
94
|
+
}
|
|
82
95
|
},
|
|
83
96
|
[`_4:${className}`]: {
|
|
84
|
-
"@media": {
|
|
97
|
+
"@media": {
|
|
98
|
+
"screen and (min-width: 1200px)": props
|
|
99
|
+
}
|
|
85
100
|
},
|
|
86
101
|
[`_5:${className}`]: {
|
|
87
|
-
"@media": {
|
|
102
|
+
"@media": {
|
|
103
|
+
"screen and (min-width: 1800px)": props
|
|
104
|
+
}
|
|
88
105
|
},
|
|
89
106
|
[`_6:${className}`]: {
|
|
90
|
-
"@media": {
|
|
107
|
+
"@media": {
|
|
108
|
+
"screen and (min-width: 2400px)": props
|
|
109
|
+
}
|
|
91
110
|
}
|
|
92
111
|
};
|
|
93
112
|
}
|
|
94
|
-
const
|
|
113
|
+
const skeletonRules = {
|
|
114
|
+
skeleton: {
|
|
115
|
+
backgroundColor: "var(--card-skeleton-from-color)",
|
|
116
|
+
backgroundPosition: "100%",
|
|
117
|
+
backgroundSize: "200% 100%",
|
|
118
|
+
backgroundAttachment: "fixed",
|
|
119
|
+
opacity: 0,
|
|
120
|
+
transition: "opacity 200ms ease-in",
|
|
121
|
+
"@keyframes": {
|
|
122
|
+
"skeleton-pulse": {
|
|
123
|
+
"0%": {
|
|
124
|
+
backgroundPosition: "100%"
|
|
125
|
+
},
|
|
126
|
+
"100%": {
|
|
127
|
+
backgroundPosition: "-100%"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"@nest": {
|
|
132
|
+
"&[data-animated]": {
|
|
133
|
+
backgroundImage: `linear-gradient(
|
|
134
|
+
to right,
|
|
135
|
+
var(--card-skeleton-from-color),
|
|
136
|
+
var(--card-skeleton-to-color),
|
|
137
|
+
var(--card-skeleton-from-color),
|
|
138
|
+
var(--card-skeleton-from-color),
|
|
139
|
+
var(--card-skeleton-from-color)
|
|
140
|
+
)`,
|
|
141
|
+
animationName: "skeleton-pulse",
|
|
142
|
+
animationTimingFunction: "ease-in-out",
|
|
143
|
+
animationIterationCount: "infinite",
|
|
144
|
+
animationDuration: "2000ms"
|
|
145
|
+
},
|
|
146
|
+
"&[data-visible]": {
|
|
147
|
+
opacity: 1
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"@media": {
|
|
151
|
+
"screen and (prefers-reduced-motion: no-preference)": {
|
|
152
|
+
backgroundColor: "var(--card-skeleton-from-color)"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"font-skeleton": {
|
|
157
|
+
height: "calc(var(--font-skeleton-line-height) - var(--font-skeleton-ascender-height) - var(--font-skeleton-descender-height))"
|
|
158
|
+
},
|
|
159
|
+
// ...responsiveRules('text-skeleton-0', {
|
|
160
|
+
// '--font-skeleton-line-height': 'var(--font-text-0-line-height)',
|
|
161
|
+
// '--font-skeleton-ascender-height': 'var(--font-text-0-ascender-height)',
|
|
162
|
+
// '--font-skeleton-descender-height': 'var(--font-text-0-descender-height)',
|
|
163
|
+
// }),
|
|
164
|
+
...theme.FONT_CODE_SIZE.reduce((acc, size) => ({
|
|
165
|
+
...acc,
|
|
166
|
+
...responsiveRules(`code-skeleton-${size}`, {
|
|
167
|
+
"--font-skeleton-line-height": `var(--font-code-${size}-line-height)`,
|
|
168
|
+
"--font-skeleton-ascender-height": `var(--font-code-${size}-ascender-height)`,
|
|
169
|
+
"--font-skeleton-descender-height": `var(--font-code-${size}-descender-height)`
|
|
170
|
+
})
|
|
171
|
+
}), {}),
|
|
172
|
+
...theme.FONT_HEADING_SIZE.reduce((acc, size) => ({
|
|
173
|
+
...acc,
|
|
174
|
+
...responsiveRules(`heading-skeleton-${size}`, {
|
|
175
|
+
"--font-skeleton-line-height": `var(--font-heading-${size}-line-height)`,
|
|
176
|
+
"--font-skeleton-ascender-height": `var(--font-heading-${size}-ascender-height)`,
|
|
177
|
+
"--font-skeleton-descender-height": `var(--font-heading-${size}-descender-height)`
|
|
178
|
+
})
|
|
179
|
+
}), {}),
|
|
180
|
+
...theme.FONT_LABEL_SIZE.reduce((acc, size) => ({
|
|
181
|
+
...acc,
|
|
182
|
+
...responsiveRules(`label-skeleton-${size}`, {
|
|
183
|
+
"--font-skeleton-line-height": `var(--font-label-${size}-line-height)`,
|
|
184
|
+
"--font-skeleton-ascender-height": `var(--font-label-${size}-ascender-height)`,
|
|
185
|
+
"--font-skeleton-descender-height": `var(--font-label-${size}-descender-height)`
|
|
186
|
+
})
|
|
187
|
+
}), {}),
|
|
188
|
+
...theme.FONT_TEXT_SIZE.reduce((acc, size) => ({
|
|
189
|
+
...acc,
|
|
190
|
+
...responsiveRules(`text-skeleton-${size}`, {
|
|
191
|
+
"--font-skeleton-line-height": `var(--font-text-${size}-line-height)`,
|
|
192
|
+
"--font-skeleton-ascender-height": `var(--font-text-${size}-ascender-height)`,
|
|
193
|
+
"--font-skeleton-descender-height": `var(--font-text-${size}-descender-height)`
|
|
194
|
+
})
|
|
195
|
+
}), {})
|
|
196
|
+
}, avatarRules = {
|
|
95
197
|
avatar: {
|
|
96
198
|
backgroundColor: "var(--avatar-bg-color)",
|
|
97
199
|
position: "relative",
|
|
@@ -251,20 +353,56 @@ const avatarRules = {
|
|
|
251
353
|
}, varNames = {
|
|
252
354
|
color: {
|
|
253
355
|
dark: {
|
|
254
|
-
transparent: buildColorCardVarNames({
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
356
|
+
transparent: buildColorCardVarNames({
|
|
357
|
+
scheme: "dark",
|
|
358
|
+
tone: "transparent"
|
|
359
|
+
}),
|
|
360
|
+
default: buildColorCardVarNames({
|
|
361
|
+
scheme: "dark",
|
|
362
|
+
tone: "default"
|
|
363
|
+
}),
|
|
364
|
+
primary: buildColorCardVarNames({
|
|
365
|
+
scheme: "dark",
|
|
366
|
+
tone: "primary"
|
|
367
|
+
}),
|
|
368
|
+
positive: buildColorCardVarNames({
|
|
369
|
+
scheme: "dark",
|
|
370
|
+
tone: "positive"
|
|
371
|
+
}),
|
|
372
|
+
caution: buildColorCardVarNames({
|
|
373
|
+
scheme: "dark",
|
|
374
|
+
tone: "caution"
|
|
375
|
+
}),
|
|
376
|
+
critical: buildColorCardVarNames({
|
|
377
|
+
scheme: "dark",
|
|
378
|
+
tone: "critical"
|
|
379
|
+
})
|
|
260
380
|
},
|
|
261
381
|
light: {
|
|
262
|
-
transparent: buildColorCardVarNames({
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
382
|
+
transparent: buildColorCardVarNames({
|
|
383
|
+
scheme: "light",
|
|
384
|
+
tone: "transparent"
|
|
385
|
+
}),
|
|
386
|
+
default: buildColorCardVarNames({
|
|
387
|
+
scheme: "light",
|
|
388
|
+
tone: "default"
|
|
389
|
+
}),
|
|
390
|
+
primary: buildColorCardVarNames({
|
|
391
|
+
scheme: "light",
|
|
392
|
+
tone: "primary"
|
|
393
|
+
}),
|
|
394
|
+
positive: buildColorCardVarNames({
|
|
395
|
+
scheme: "light",
|
|
396
|
+
tone: "positive"
|
|
397
|
+
}),
|
|
398
|
+
caution: buildColorCardVarNames({
|
|
399
|
+
scheme: "light",
|
|
400
|
+
tone: "caution"
|
|
401
|
+
}),
|
|
402
|
+
critical: buildColorCardVarNames({
|
|
403
|
+
scheme: "light",
|
|
404
|
+
tone: "critical"
|
|
405
|
+
})
|
|
268
406
|
},
|
|
269
407
|
//
|
|
270
408
|
accent: {
|
|
@@ -419,12 +557,13 @@ const avatarRules = {
|
|
|
419
557
|
width: "--avatar-focus-ring-width"
|
|
420
558
|
}
|
|
421
559
|
},
|
|
422
|
-
space: Object.fromEntries(
|
|
423
|
-
theme.SPACE.map((space) => [space, `--space-${space}`])
|
|
424
|
-
)
|
|
560
|
+
space: Object.fromEntries(theme.SPACE.map((space) => [space, `--space-${String(space).replace(".", "_")}`]))
|
|
425
561
|
};
|
|
426
562
|
function buildColorCardVarNames(props) {
|
|
427
|
-
const {
|
|
563
|
+
const {
|
|
564
|
+
scheme,
|
|
565
|
+
tone
|
|
566
|
+
} = props, prefix = `--color-${scheme}-${tone}`;
|
|
428
567
|
return {
|
|
429
568
|
accent: {
|
|
430
569
|
fg: `${prefix}-accent-fg`
|
|
@@ -511,16 +650,56 @@ function buildColorCardVarNames(props) {
|
|
|
511
650
|
icon: `${prefix}-icon`,
|
|
512
651
|
input: {
|
|
513
652
|
default: {
|
|
514
|
-
enabled: buildColorInputStateVarNames({
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
653
|
+
enabled: buildColorInputStateVarNames({
|
|
654
|
+
mode: "default",
|
|
655
|
+
scheme,
|
|
656
|
+
state: "enabled",
|
|
657
|
+
tone
|
|
658
|
+
}),
|
|
659
|
+
hovered: buildColorInputStateVarNames({
|
|
660
|
+
mode: "default",
|
|
661
|
+
scheme,
|
|
662
|
+
state: "hovered",
|
|
663
|
+
tone
|
|
664
|
+
}),
|
|
665
|
+
readOnly: buildColorInputStateVarNames({
|
|
666
|
+
mode: "default",
|
|
667
|
+
scheme,
|
|
668
|
+
state: "readOnly",
|
|
669
|
+
tone
|
|
670
|
+
}),
|
|
671
|
+
disabled: buildColorInputStateVarNames({
|
|
672
|
+
mode: "default",
|
|
673
|
+
scheme,
|
|
674
|
+
state: "disabled",
|
|
675
|
+
tone
|
|
676
|
+
})
|
|
518
677
|
},
|
|
519
678
|
invalid: {
|
|
520
|
-
enabled: buildColorInputStateVarNames({
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
679
|
+
enabled: buildColorInputStateVarNames({
|
|
680
|
+
mode: "invalid",
|
|
681
|
+
scheme,
|
|
682
|
+
state: "enabled",
|
|
683
|
+
tone
|
|
684
|
+
}),
|
|
685
|
+
hovered: buildColorInputStateVarNames({
|
|
686
|
+
mode: "invalid",
|
|
687
|
+
scheme,
|
|
688
|
+
state: "hovered",
|
|
689
|
+
tone
|
|
690
|
+
}),
|
|
691
|
+
readOnly: buildColorInputStateVarNames({
|
|
692
|
+
mode: "invalid",
|
|
693
|
+
scheme,
|
|
694
|
+
state: "readOnly",
|
|
695
|
+
tone
|
|
696
|
+
}),
|
|
697
|
+
disabled: buildColorInputStateVarNames({
|
|
698
|
+
mode: "invalid",
|
|
699
|
+
scheme,
|
|
700
|
+
state: "disabled",
|
|
701
|
+
tone
|
|
702
|
+
})
|
|
524
703
|
}
|
|
525
704
|
},
|
|
526
705
|
kbd: {
|
|
@@ -586,7 +765,12 @@ function buildColorCardVarNames(props) {
|
|
|
586
765
|
};
|
|
587
766
|
}
|
|
588
767
|
function buildColorInputStateVarNames(props) {
|
|
589
|
-
const {
|
|
768
|
+
const {
|
|
769
|
+
mode,
|
|
770
|
+
scheme,
|
|
771
|
+
state,
|
|
772
|
+
tone
|
|
773
|
+
} = props, prefix = `--color-${scheme}-${tone}-input-${mode}-${state}`;
|
|
590
774
|
return {
|
|
591
775
|
bg: `${prefix}-bg`,
|
|
592
776
|
border: `${prefix}-border`,
|
|
@@ -601,11 +785,17 @@ const vars = {
|
|
|
601
785
|
color: {
|
|
602
786
|
dark: theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
|
|
603
787
|
...acc,
|
|
604
|
-
[tone]: buildColorCardVars({
|
|
788
|
+
[tone]: buildColorCardVars({
|
|
789
|
+
scheme: "dark",
|
|
790
|
+
tone
|
|
791
|
+
})
|
|
605
792
|
}), {}),
|
|
606
793
|
light: theme.THEME_COLOR_CARD_TONES.reduce((acc, tone) => ({
|
|
607
794
|
...acc,
|
|
608
|
-
[tone]: buildColorCardVars({
|
|
795
|
+
[tone]: buildColorCardVars({
|
|
796
|
+
scheme: "light",
|
|
797
|
+
tone
|
|
798
|
+
})
|
|
609
799
|
}), {}),
|
|
610
800
|
accent: {
|
|
611
801
|
fg: "var(--color-accent-fg)"
|
|
@@ -722,12 +912,71 @@ const vars = {
|
|
|
722
912
|
variable: "var(--color-syntax-variable)"
|
|
723
913
|
}
|
|
724
914
|
},
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
915
|
+
font: {
|
|
916
|
+
code: {
|
|
917
|
+
family: "var(--font-code-family)",
|
|
918
|
+
sizes: theme.FONT_CODE_SIZE.reduce((acc, size) => ({
|
|
919
|
+
...acc,
|
|
920
|
+
[size]: {
|
|
921
|
+
fontSize: `var(--font-code-${size}-size)`,
|
|
922
|
+
ascenderHeight: `var(--font-code-${size}-ascender-height)`,
|
|
923
|
+
descenderHeight: `var(--font-code-${size}-descender-height)`,
|
|
924
|
+
lineHeight: `var(--font-code-${size}-line-height)`,
|
|
925
|
+
letterSpacing: `var(--font-code-${size}-letter-spacing)`,
|
|
926
|
+
iconSize: `var(--font-code-${size}-icon-size)`
|
|
927
|
+
}
|
|
928
|
+
}), {})
|
|
929
|
+
},
|
|
930
|
+
heading: {
|
|
931
|
+
family: "var(--font-heading-family)",
|
|
932
|
+
sizes: theme.FONT_HEADING_SIZE.reduce((acc, size) => ({
|
|
933
|
+
...acc,
|
|
934
|
+
[size]: {
|
|
935
|
+
fontSize: `var(--font-code-${size}-size)`,
|
|
936
|
+
ascenderHeight: `var(--font-code-${size}-ascender-height)`,
|
|
937
|
+
descenderHeight: `var(--font-code-${size}-descender-height)`,
|
|
938
|
+
lineHeight: `var(--font-code-${size}-line-height)`,
|
|
939
|
+
letterSpacing: `var(--font-code-${size}-letter-spacing)`,
|
|
940
|
+
iconSize: `var(--font-code-${size}-icon-size)`
|
|
941
|
+
}
|
|
942
|
+
}), {})
|
|
943
|
+
},
|
|
944
|
+
label: {
|
|
945
|
+
family: "var(--font-label-family)",
|
|
946
|
+
sizes: theme.FONT_CODE_SIZE.reduce((acc, size) => ({
|
|
947
|
+
...acc,
|
|
948
|
+
[size]: {
|
|
949
|
+
fontSize: `var(--font-code-${size}-size)`,
|
|
950
|
+
ascenderHeight: `var(--font-code-${size}-ascender-height)`,
|
|
951
|
+
descenderHeight: `var(--font-code-${size}-descender-height)`,
|
|
952
|
+
lineHeight: `var(--font-code-${size}-line-height)`,
|
|
953
|
+
letterSpacing: `var(--font-code-${size}-letter-spacing)`,
|
|
954
|
+
iconSize: `var(--font-code-${size}-icon-size)`
|
|
955
|
+
}
|
|
956
|
+
}), {})
|
|
957
|
+
},
|
|
958
|
+
text: {
|
|
959
|
+
family: "var(--font-text-family)",
|
|
960
|
+
sizes: theme.FONT_TEXT_SIZE.reduce((acc, size) => ({
|
|
961
|
+
...acc,
|
|
962
|
+
[size]: {
|
|
963
|
+
fontSize: `var(--font-code-${size}-size)`,
|
|
964
|
+
ascenderHeight: `var(--font-code-${size}-ascender-height)`,
|
|
965
|
+
descenderHeight: `var(--font-code-${size}-descender-height)`,
|
|
966
|
+
lineHeight: `var(--font-code-${size}-line-height)`,
|
|
967
|
+
letterSpacing: `var(--font-code-${size}-letter-spacing)`,
|
|
968
|
+
iconSize: `var(--font-code-${size}-icon-size)`
|
|
969
|
+
}
|
|
970
|
+
}), {})
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
space: Object.fromEntries(theme.SPACE.map((space) => [space, `var(${varNames.space[space]})`]))
|
|
728
974
|
};
|
|
729
975
|
function buildColorCardVars(props) {
|
|
730
|
-
const {
|
|
976
|
+
const {
|
|
977
|
+
scheme,
|
|
978
|
+
tone
|
|
979
|
+
} = props, prefix = `--color-${scheme}-${tone}`;
|
|
731
980
|
return {
|
|
732
981
|
accent: {
|
|
733
982
|
fg: `var(${prefix}-accent-fg)`
|
|
@@ -768,7 +1017,12 @@ function buildColorCardVars(props) {
|
|
|
768
1017
|
[mode]: {
|
|
769
1018
|
...theme.THEME_COLOR_INPUT_STATES.reduce((acc2, state) => ({
|
|
770
1019
|
...acc2,
|
|
771
|
-
[state]: buildColorInputStateVars({
|
|
1020
|
+
[state]: buildColorInputStateVars({
|
|
1021
|
+
mode,
|
|
1022
|
+
scheme,
|
|
1023
|
+
state,
|
|
1024
|
+
tone
|
|
1025
|
+
})
|
|
772
1026
|
}), {})
|
|
773
1027
|
}
|
|
774
1028
|
}), {})
|
|
@@ -836,7 +1090,12 @@ function buildColorCardVars(props) {
|
|
|
836
1090
|
};
|
|
837
1091
|
}
|
|
838
1092
|
function buildColorInputStateVars(props) {
|
|
839
|
-
const {
|
|
1093
|
+
const {
|
|
1094
|
+
mode,
|
|
1095
|
+
scheme,
|
|
1096
|
+
state,
|
|
1097
|
+
tone
|
|
1098
|
+
} = props, prefix = `--color-${scheme}-${tone}-input-${mode}-${state}`;
|
|
840
1099
|
return {
|
|
841
1100
|
bg: `var(${prefix}-bg)`,
|
|
842
1101
|
border: `var(${prefix}-border)`,
|
|
@@ -853,18 +1112,15 @@ const badgeRules = {
|
|
|
853
1112
|
color: vars.color.badge.fg,
|
|
854
1113
|
verticalAlign: "top"
|
|
855
1114
|
},
|
|
856
|
-
...theme.THEME_COLOR_STATE_TONES.reduce(
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
[
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
}),
|
|
866
|
-
{}
|
|
867
|
-
)
|
|
1115
|
+
...theme.THEME_COLOR_STATE_TONES.reduce((acc, tone) => ({
|
|
1116
|
+
...acc,
|
|
1117
|
+
[`badge-${tone}`]: {
|
|
1118
|
+
[varNames.color.badge.bg]: vars.color.badge[tone].bg,
|
|
1119
|
+
[varNames.color.badge.dot]: vars.color.badge[tone].dot,
|
|
1120
|
+
[varNames.color.badge.fg]: vars.color.badge[tone].fg,
|
|
1121
|
+
[varNames.color.badge.icon]: vars.color.badge[tone].icon
|
|
1122
|
+
}
|
|
1123
|
+
}), {})
|
|
868
1124
|
}, boxRules = {
|
|
869
1125
|
box: {
|
|
870
1126
|
minWidth: 0,
|
|
@@ -969,20 +1225,17 @@ const badgeRules = {
|
|
|
969
1225
|
"--card-shadow-ambient-color": "var(--color-shadow-ambient)",
|
|
970
1226
|
"--card-skeleton-from-color": "var(--color-skeleton-from)",
|
|
971
1227
|
"--card-skeleton-to-color": "var(--color-skeleton-to)",
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
'--card-bg-image': checkered
|
|
978
|
-
? `repeating-conic-gradient(${color.bg} 0% 25%, ${color.muted.bg} 0% 50%)`
|
|
979
|
-
: undefined,
|
|
980
|
-
|
|
981
|
-
'--card-bg2-color': color.muted.bg,
|
|
982
|
-
'--card-link-color': color.link.fg,
|
|
983
|
-
'--card-hairline-soft-color': color.border,
|
|
984
|
-
'--card-hairline-hard-color': color.border, */
|
|
1228
|
+
"--card-bg2-color": "var(--color-muted-bg)",
|
|
1229
|
+
"--card-link-color": "var(--color-link-fg)",
|
|
1230
|
+
"--card-hairline-soft-color": "var(--color-border)",
|
|
1231
|
+
"--card-hairline-hard-color": "var(--color-border)",
|
|
985
1232
|
"@nest": {
|
|
1233
|
+
"&[data-checkered]": {
|
|
1234
|
+
"--card-bg-image": "repeating-conic-gradient(var(--color-bg) 0% 25%, var(--color-muted-bg) 0% 50%)",
|
|
1235
|
+
backgroundSize: "var(--space-3) var(--space-3)",
|
|
1236
|
+
backgroundPosition: "50% 50%",
|
|
1237
|
+
backgroundImage: "var(--card-bg-image)"
|
|
1238
|
+
},
|
|
986
1239
|
'&[data-as="button"]': {
|
|
987
1240
|
WebkitFontSmoothing: "inherit",
|
|
988
1241
|
appearance: "none",
|
|
@@ -1363,7 +1616,9 @@ const badgeRules = {
|
|
|
1363
1616
|
}
|
|
1364
1617
|
}
|
|
1365
1618
|
}, spinnerRules = {
|
|
1366
|
-
spinner: {
|
|
1619
|
+
spinner: {},
|
|
1620
|
+
"animated-spinner-icon": {
|
|
1621
|
+
animation: "spinner-rotate 500ms linear infinite",
|
|
1367
1622
|
"@keyframes": {
|
|
1368
1623
|
"spinner-rotate": {
|
|
1369
1624
|
from: {
|
|
@@ -1373,11 +1628,6 @@ const badgeRules = {
|
|
|
1373
1628
|
transform: "rotate(360deg)"
|
|
1374
1629
|
}
|
|
1375
1630
|
}
|
|
1376
|
-
},
|
|
1377
|
-
"@nest": {
|
|
1378
|
-
"& > span > svg": {
|
|
1379
|
-
animation: "spinner-rotate 500ms linear infinite"
|
|
1380
|
-
}
|
|
1381
1631
|
}
|
|
1382
1632
|
}
|
|
1383
1633
|
}, switchRules = {
|
|
@@ -1569,68 +1819,89 @@ const badgeRules = {
|
|
|
1569
1819
|
//
|
|
1570
1820
|
}, textInputRules = {
|
|
1571
1821
|
"text-input": {
|
|
1572
|
-
|
|
1822
|
+
"--font-family": vars.font.text.family
|
|
1573
1823
|
},
|
|
1574
|
-
|
|
1824
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
1825
|
+
...acc,
|
|
1826
|
+
...responsiveRules(`text-input-p-${space}`.replace(".", "_"), {
|
|
1827
|
+
"--padding-top": `calc(${vars.space[space]} - var(--font-ascender-height))`,
|
|
1828
|
+
"--padding-right": vars.space[space],
|
|
1829
|
+
"--padding-bottom": `calc(${vars.space[space]} - var(--font-descender-height))`,
|
|
1830
|
+
"--padding-left": vars.space[space]
|
|
1831
|
+
})
|
|
1832
|
+
}), {}),
|
|
1833
|
+
...theme.FONT_TEXT_SIZE.reduce((acc, size) => ({
|
|
1834
|
+
...acc,
|
|
1835
|
+
...responsiveRules(`text-input-${size}`, {
|
|
1836
|
+
"--font-size": vars.font.text.sizes[size].fontSize,
|
|
1837
|
+
"--font-line-height": vars.font.text.sizes[size].lineHeight,
|
|
1838
|
+
"--font-letter-spacing": vars.font.text.sizes[size].letterSpacing,
|
|
1839
|
+
"--font-ascender-height": vars.font.text.sizes[size].ascenderHeight,
|
|
1840
|
+
"--font-descender-height": vars.font.text.sizes[size].descenderHeight
|
|
1841
|
+
})
|
|
1842
|
+
}), {}),
|
|
1843
|
+
"text-input-element": {
|
|
1844
|
+
appearance: "none",
|
|
1845
|
+
background: "none",
|
|
1846
|
+
border: 0,
|
|
1847
|
+
borderRadius: 0,
|
|
1848
|
+
outline: "none",
|
|
1849
|
+
width: "100%",
|
|
1850
|
+
boxSizing: "border-box",
|
|
1851
|
+
fontFamily: "var(--font-family)",
|
|
1852
|
+
fontSize: "var(--font-size)",
|
|
1853
|
+
fontWeight: "var(--font-weight)",
|
|
1854
|
+
lineHeight: "var(--font-line-height)",
|
|
1855
|
+
letterSpacing: "var(--font-letter-spacing)",
|
|
1856
|
+
margin: 0,
|
|
1857
|
+
position: "relative",
|
|
1858
|
+
zIndex: 1,
|
|
1859
|
+
display: "block",
|
|
1860
|
+
color: "var(--input-fg-color)",
|
|
1861
|
+
paddingTop: "var(--padding-top)",
|
|
1862
|
+
paddingRight: "var(--padding-right)",
|
|
1863
|
+
paddingBottom: "var(--padding-bottom)",
|
|
1864
|
+
paddingLeft: "var(--padding-left)",
|
|
1865
|
+
"--input-fg-color": "var(--color-input-default-enabled-fg)",
|
|
1575
1866
|
"@nest": {
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
position: "relative",
|
|
1590
|
-
zIndex: 1,
|
|
1591
|
-
display: "block",
|
|
1592
|
-
color: "var(--input-fg-color)",
|
|
1593
|
-
"@nest": {
|
|
1594
|
-
// NOTE: This is a hack to disable Chrome’s autofill styles
|
|
1595
|
-
"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active": {
|
|
1596
|
-
WebkitTextFillColor: "var(--input-fg-color) !important",
|
|
1597
|
-
transition: "background-color 5000s",
|
|
1598
|
-
transitionDelay: "86400s"
|
|
1599
|
-
// 24h
|
|
1600
|
-
}
|
|
1601
|
-
// /* &:is(textarea) */
|
|
1602
|
-
// &[data-as='textarea'] {
|
|
1603
|
-
// resize: none;
|
|
1604
|
-
// }
|
|
1605
|
-
// &::placeholder {
|
|
1606
|
-
// color: var(--input-placeholder-color);
|
|
1607
|
-
// }
|
|
1608
|
-
// &[data-scheme='${$scheme}'][data-tone='${$tone}'] {
|
|
1609
|
-
// /* --input-fg-color: ${color.input.default.enabled.fg}; */
|
|
1610
|
-
// /* --input-placeholder-color: ${color.input.default.enabled.placeholder}; */
|
|
1611
|
-
// /* enabled */
|
|
1612
|
-
// &:not(:invalid):not(:disabled):not(:read-only) {
|
|
1613
|
-
// /* --input-fg-color: ${color.input.default.enabled.fg}; */
|
|
1614
|
-
// /* --input-placeholder-color: ${color.input.default.enabled.placeholder}; */
|
|
1615
|
-
// }
|
|
1616
|
-
// /* disabled */
|
|
1617
|
-
// &:not(:invalid):disabled {
|
|
1618
|
-
// /* --input-fg-color: ${color.input.default.disabled.fg}; */
|
|
1619
|
-
// /* --input-placeholder-color: ${color.input.default.disabled.placeholder}; */
|
|
1620
|
-
// }
|
|
1621
|
-
// /* invalid */
|
|
1622
|
-
// &:invalid {
|
|
1623
|
-
// /* --input-fg-color: ${color.input.invalid.enabled.fg}; */
|
|
1624
|
-
// /* --input-placeholder-color: ${color.input.invalid.enabled.placeholder}; */
|
|
1625
|
-
// }
|
|
1626
|
-
// /* readOnly */
|
|
1627
|
-
// &:read-only {
|
|
1628
|
-
// /* --input-fg-color: ${color.input.default.readOnly.fg}; */
|
|
1629
|
-
// /* --input-placeholder-color: ${color.input.default.readOnly.placeholder}; */
|
|
1630
|
-
// }
|
|
1631
|
-
// }
|
|
1632
|
-
}
|
|
1867
|
+
// NOTE: This is a hack to disable Chrome’s autofill styles
|
|
1868
|
+
"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active": {
|
|
1869
|
+
WebkitTextFillColor: "var(--input-fg-color) !important",
|
|
1870
|
+
transition: "background-color 5000s",
|
|
1871
|
+
transitionDelay: "86400s"
|
|
1872
|
+
// 24h
|
|
1873
|
+
},
|
|
1874
|
+
/* &:is(textarea) */
|
|
1875
|
+
// '&[data-as="textarea"]': {
|
|
1876
|
+
// resize: 'none',
|
|
1877
|
+
// },
|
|
1878
|
+
"&::placeholder": {
|
|
1879
|
+
color: "var(--input-placeholder-color)"
|
|
1633
1880
|
}
|
|
1881
|
+
// &[data-scheme='${$scheme}'][data-tone='${$tone}'] {
|
|
1882
|
+
// /* --input-fg-color: ${color.input.default.enabled.fg}; */
|
|
1883
|
+
// /* --input-placeholder-color: ${color.input.default.enabled.placeholder}; */
|
|
1884
|
+
// /* enabled */
|
|
1885
|
+
// &:not(:invalid):not(:disabled):not(:read-only) {
|
|
1886
|
+
// /* --input-fg-color: ${color.input.default.enabled.fg}; */
|
|
1887
|
+
// /* --input-placeholder-color: ${color.input.default.enabled.placeholder}; */
|
|
1888
|
+
// }
|
|
1889
|
+
// /* disabled */
|
|
1890
|
+
// &:not(:invalid):disabled {
|
|
1891
|
+
// /* --input-fg-color: ${color.input.default.disabled.fg}; */
|
|
1892
|
+
// /* --input-placeholder-color: ${color.input.default.disabled.placeholder}; */
|
|
1893
|
+
// }
|
|
1894
|
+
// /* invalid */
|
|
1895
|
+
// &:invalid {
|
|
1896
|
+
// /* --input-fg-color: ${color.input.invalid.enabled.fg}; */
|
|
1897
|
+
// /* --input-placeholder-color: ${color.input.invalid.enabled.placeholder}; */
|
|
1898
|
+
// }
|
|
1899
|
+
// /* readOnly */
|
|
1900
|
+
// &:read-only {
|
|
1901
|
+
// /* --input-fg-color: ${color.input.default.readOnly.fg}; */
|
|
1902
|
+
// /* --input-placeholder-color: ${color.input.default.readOnly.placeholder}; */
|
|
1903
|
+
// }
|
|
1904
|
+
// }
|
|
1634
1905
|
}
|
|
1635
1906
|
},
|
|
1636
1907
|
"text-input-prefix": {
|
|
@@ -1644,8 +1915,8 @@ const badgeRules = {
|
|
|
1644
1915
|
}
|
|
1645
1916
|
},
|
|
1646
1917
|
"text-input-suffix": {
|
|
1647
|
-
|
|
1648
|
-
|
|
1918
|
+
borderTopLeftRadius: 0,
|
|
1919
|
+
borderBottomLeftRadius: 0,
|
|
1649
1920
|
"@nest": {
|
|
1650
1921
|
"& > span": {
|
|
1651
1922
|
display: "block",
|
|
@@ -1654,7 +1925,7 @@ const badgeRules = {
|
|
|
1654
1925
|
}
|
|
1655
1926
|
},
|
|
1656
1927
|
"text-input-presentation": {
|
|
1657
|
-
"--input-box-shadow": "
|
|
1928
|
+
"--input-box-shadow": "inset 0 0 0 1px var(--input-border-color)",
|
|
1658
1929
|
position: "absolute",
|
|
1659
1930
|
top: 0,
|
|
1660
1931
|
left: 0,
|
|
@@ -1663,8 +1934,9 @@ const badgeRules = {
|
|
|
1663
1934
|
display: "block",
|
|
1664
1935
|
pointerEvents: "none",
|
|
1665
1936
|
zIndex: 0,
|
|
1666
|
-
backgroundColor: "var(--
|
|
1667
|
-
boxShadow: "var(--input-box-shadow)"
|
|
1937
|
+
backgroundColor: "var(--input-bg-color)",
|
|
1938
|
+
boxShadow: "var(--input-box-shadow)",
|
|
1939
|
+
"--input-border-color": "var(--color-input-default-enabled-border)"
|
|
1668
1940
|
// border-top-left-radius: ${$hasPrefix ? 0 : undefined};
|
|
1669
1941
|
// border-bottom-left-radius: ${$hasPrefix ? 0 : undefined};
|
|
1670
1942
|
// border-top-right-radius: ${$hasSuffix ? 0 : undefined};
|
|
@@ -1766,42 +2038,114 @@ const badgeRules = {
|
|
|
1766
2038
|
}, tokenRules = {
|
|
1767
2039
|
token: {
|
|
1768
2040
|
"@nest": {
|
|
1769
|
-
"&.atrule": {
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
"&.
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
"&.
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
"&.
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
"&.
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
"&.
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
"&.
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
"&.
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
"&.
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
"&.
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
"&.
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
"&.
|
|
1803
|
-
|
|
1804
|
-
|
|
2041
|
+
"&.atrule": {
|
|
2042
|
+
color: vars.color.syntax.atrule
|
|
2043
|
+
},
|
|
2044
|
+
"&.attr-name": {
|
|
2045
|
+
color: vars.color.syntax.attrName
|
|
2046
|
+
},
|
|
2047
|
+
"&.attr-value": {
|
|
2048
|
+
color: vars.color.syntax.attrValue
|
|
2049
|
+
},
|
|
2050
|
+
"&.attribute": {
|
|
2051
|
+
color: vars.color.syntax.attribute
|
|
2052
|
+
},
|
|
2053
|
+
"&.boolean": {
|
|
2054
|
+
color: vars.color.syntax.boolean
|
|
2055
|
+
},
|
|
2056
|
+
"&.builtin": {
|
|
2057
|
+
color: vars.color.syntax.builtin
|
|
2058
|
+
},
|
|
2059
|
+
"&.cdata": {
|
|
2060
|
+
color: vars.color.syntax.cdata
|
|
2061
|
+
},
|
|
2062
|
+
"&.char": {
|
|
2063
|
+
color: vars.color.syntax.char
|
|
2064
|
+
},
|
|
2065
|
+
"&.class": {
|
|
2066
|
+
color: vars.color.syntax.class
|
|
2067
|
+
},
|
|
2068
|
+
"&.class-name": {
|
|
2069
|
+
color: vars.color.syntax.className
|
|
2070
|
+
},
|
|
2071
|
+
"&.comment": {
|
|
2072
|
+
color: vars.color.syntax.comment
|
|
2073
|
+
},
|
|
2074
|
+
"&.constant": {
|
|
2075
|
+
color: vars.color.syntax.constant
|
|
2076
|
+
},
|
|
2077
|
+
"&.deleted": {
|
|
2078
|
+
color: vars.color.syntax.deleted
|
|
2079
|
+
},
|
|
2080
|
+
"&.doctype": {
|
|
2081
|
+
color: vars.color.syntax.doctype
|
|
2082
|
+
},
|
|
2083
|
+
"&.entity": {
|
|
2084
|
+
color: vars.color.syntax.entity
|
|
2085
|
+
},
|
|
2086
|
+
"&.function": {
|
|
2087
|
+
color: vars.color.syntax.function
|
|
2088
|
+
},
|
|
2089
|
+
"&.hexcode": {
|
|
2090
|
+
color: vars.color.syntax.hexcode
|
|
2091
|
+
},
|
|
2092
|
+
"&.id": {
|
|
2093
|
+
color: vars.color.syntax.id
|
|
2094
|
+
},
|
|
2095
|
+
"&.important": {
|
|
2096
|
+
color: vars.color.syntax.important
|
|
2097
|
+
},
|
|
2098
|
+
"&.inserted": {
|
|
2099
|
+
color: vars.color.syntax.inserted
|
|
2100
|
+
},
|
|
2101
|
+
"&.keyword": {
|
|
2102
|
+
color: vars.color.syntax.keyword
|
|
2103
|
+
},
|
|
2104
|
+
"&.number": {
|
|
2105
|
+
color: vars.color.syntax.number
|
|
2106
|
+
},
|
|
2107
|
+
"&.operator": {
|
|
2108
|
+
color: vars.color.syntax.operator
|
|
2109
|
+
},
|
|
2110
|
+
"&.prolog": {
|
|
2111
|
+
color: vars.color.syntax.prolog
|
|
2112
|
+
},
|
|
2113
|
+
"&.property": {
|
|
2114
|
+
color: vars.color.syntax.property
|
|
2115
|
+
},
|
|
2116
|
+
"&.pseudo-class": {
|
|
2117
|
+
color: vars.color.syntax.pseudoClass
|
|
2118
|
+
},
|
|
2119
|
+
"&.pseudo-element": {
|
|
2120
|
+
color: vars.color.syntax.pseudoElement
|
|
2121
|
+
},
|
|
2122
|
+
"&.punctuation": {
|
|
2123
|
+
color: vars.color.syntax.punctuation
|
|
2124
|
+
},
|
|
2125
|
+
"&.regex": {
|
|
2126
|
+
color: vars.color.syntax.regex
|
|
2127
|
+
},
|
|
2128
|
+
"&.selector": {
|
|
2129
|
+
color: vars.color.syntax.selector
|
|
2130
|
+
},
|
|
2131
|
+
"&.string": {
|
|
2132
|
+
color: vars.color.syntax.string
|
|
2133
|
+
},
|
|
2134
|
+
"&.symbol": {
|
|
2135
|
+
color: vars.color.syntax.symbol
|
|
2136
|
+
},
|
|
2137
|
+
"&.tag": {
|
|
2138
|
+
color: vars.color.syntax.tag
|
|
2139
|
+
},
|
|
2140
|
+
"&.unit": {
|
|
2141
|
+
color: vars.color.syntax.unit
|
|
2142
|
+
},
|
|
2143
|
+
"&.url": {
|
|
2144
|
+
color: vars.color.syntax.url
|
|
2145
|
+
},
|
|
2146
|
+
"&.variable": {
|
|
2147
|
+
color: vars.color.syntax.variable
|
|
2148
|
+
}
|
|
1805
2149
|
}
|
|
1806
2150
|
}
|
|
1807
2151
|
}, tooltipRules = {
|
|
@@ -1887,32 +2231,76 @@ const badgeRules = {
|
|
|
1887
2231
|
})
|
|
1888
2232
|
}, flexRules = {
|
|
1889
2233
|
// direction
|
|
1890
|
-
...responsiveRules("row", {
|
|
1891
|
-
|
|
2234
|
+
...responsiveRules("row", {
|
|
2235
|
+
flexDirection: "row"
|
|
2236
|
+
}),
|
|
2237
|
+
...responsiveRules("column", {
|
|
2238
|
+
flexDirection: "column"
|
|
2239
|
+
}),
|
|
1892
2240
|
// align
|
|
1893
|
-
...responsiveRules("align-flex-start", {
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
...responsiveRules("align-
|
|
1897
|
-
|
|
2241
|
+
...responsiveRules("align-flex-start", {
|
|
2242
|
+
alignItems: "flex-start"
|
|
2243
|
+
}),
|
|
2244
|
+
...responsiveRules("align-flex-end", {
|
|
2245
|
+
alignItems: "end"
|
|
2246
|
+
}),
|
|
2247
|
+
...responsiveRules("align-center", {
|
|
2248
|
+
alignItems: "center"
|
|
2249
|
+
}),
|
|
2250
|
+
...responsiveRules("align-stretch", {
|
|
2251
|
+
alignItems: "stretch"
|
|
2252
|
+
}),
|
|
2253
|
+
...responsiveRules("align-baseline", {
|
|
2254
|
+
alignItems: "baseline"
|
|
2255
|
+
}),
|
|
1898
2256
|
// justify
|
|
1899
|
-
...responsiveRules("justify-flex-start", {
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
...responsiveRules("justify-
|
|
1903
|
-
|
|
1904
|
-
|
|
2257
|
+
...responsiveRules("justify-flex-start", {
|
|
2258
|
+
justifyContent: "flex-start"
|
|
2259
|
+
}),
|
|
2260
|
+
...responsiveRules("justify-flex-end", {
|
|
2261
|
+
justifyContent: "flex-end"
|
|
2262
|
+
}),
|
|
2263
|
+
...responsiveRules("justify-center", {
|
|
2264
|
+
justifyContent: "center"
|
|
2265
|
+
}),
|
|
2266
|
+
...responsiveRules("justify-between", {
|
|
2267
|
+
justifyContent: "space-between"
|
|
2268
|
+
}),
|
|
2269
|
+
...responsiveRules("justify-around", {
|
|
2270
|
+
justifyContent: "space-around"
|
|
2271
|
+
}),
|
|
2272
|
+
...responsiveRules("justify-evenly", {
|
|
2273
|
+
justifyContent: "space-evenly"
|
|
2274
|
+
}),
|
|
1905
2275
|
// wrap
|
|
1906
|
-
...responsiveRules("wrap-nowrap", {
|
|
1907
|
-
|
|
1908
|
-
|
|
2276
|
+
...responsiveRules("wrap-nowrap", {
|
|
2277
|
+
flexWrap: "nowrap"
|
|
2278
|
+
}),
|
|
2279
|
+
...responsiveRules("wrap-wrap", {
|
|
2280
|
+
flexWrap: "wrap"
|
|
2281
|
+
}),
|
|
2282
|
+
...responsiveRules("wrap-reverse", {
|
|
2283
|
+
flexWrap: "wrap-reverse"
|
|
2284
|
+
})
|
|
1909
2285
|
}, flexItemRules = {
|
|
1910
|
-
...responsiveRules("flex-none", {
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
...responsiveRules("flex-
|
|
1914
|
-
|
|
1915
|
-
|
|
2286
|
+
...responsiveRules("flex-none", {
|
|
2287
|
+
flex: "none"
|
|
2288
|
+
}),
|
|
2289
|
+
...responsiveRules("flex-1", {
|
|
2290
|
+
flex: 1
|
|
2291
|
+
}),
|
|
2292
|
+
...responsiveRules("flex-2", {
|
|
2293
|
+
flex: 2
|
|
2294
|
+
}),
|
|
2295
|
+
...responsiveRules("flex-3", {
|
|
2296
|
+
flex: 3
|
|
2297
|
+
}),
|
|
2298
|
+
...responsiveRules("flex-4", {
|
|
2299
|
+
flex: 4
|
|
2300
|
+
}),
|
|
2301
|
+
...responsiveRules("flex-5", {
|
|
2302
|
+
flex: 5
|
|
2303
|
+
})
|
|
1916
2304
|
}, fontRules = {
|
|
1917
2305
|
font: {
|
|
1918
2306
|
position: "relative",
|
|
@@ -1968,172 +2356,451 @@ const badgeRules = {
|
|
|
1968
2356
|
},
|
|
1969
2357
|
"font-bold": {
|
|
1970
2358
|
"--font-weight": "var(--font-weight-bold)"
|
|
1971
|
-
}
|
|
2359
|
+
},
|
|
2360
|
+
// align
|
|
2361
|
+
...responsiveRules("text-align-initial", {
|
|
2362
|
+
textAlign: "initial"
|
|
2363
|
+
}),
|
|
2364
|
+
...responsiveRules("text-align-left", {
|
|
2365
|
+
textAlign: "left"
|
|
2366
|
+
}),
|
|
2367
|
+
...responsiveRules("text-align-center", {
|
|
2368
|
+
textAlign: "center"
|
|
2369
|
+
}),
|
|
2370
|
+
...responsiveRules("text-align-right", {
|
|
2371
|
+
textAlign: "right"
|
|
2372
|
+
}),
|
|
2373
|
+
...responsiveRules("text-align-justify", {
|
|
2374
|
+
textAlign: "justify"
|
|
2375
|
+
})
|
|
1972
2376
|
}, gapRules = {
|
|
1973
2377
|
...theme.SPACE.reduce((acc, space) => ({
|
|
1974
2378
|
...acc,
|
|
1975
|
-
...responsiveRules(`g-${space}
|
|
1976
|
-
gap:
|
|
2379
|
+
...responsiveRules(`g-${space}`.replace(".", "_"), {
|
|
2380
|
+
gap: vars.space[space]
|
|
1977
2381
|
})
|
|
1978
2382
|
}), {}),
|
|
1979
2383
|
...theme.SPACE.reduce((acc, space) => ({
|
|
1980
2384
|
...acc,
|
|
1981
|
-
...responsiveRules(`gx-${space}
|
|
1982
|
-
columnGap:
|
|
2385
|
+
...responsiveRules(`gx-${space}`.replace(".", "_"), {
|
|
2386
|
+
columnGap: vars.space[space]
|
|
1983
2387
|
})
|
|
1984
2388
|
}), {}),
|
|
1985
2389
|
...theme.SPACE.reduce((acc, space) => ({
|
|
1986
2390
|
...acc,
|
|
1987
|
-
...responsiveRules(`gy-${space}
|
|
1988
|
-
rowGap:
|
|
2391
|
+
...responsiveRules(`gy-${space}`.replace(".", "_"), {
|
|
2392
|
+
rowGap: vars.space[space]
|
|
1989
2393
|
})
|
|
1990
2394
|
}), {})
|
|
1991
2395
|
}, gridRules = {
|
|
1992
2396
|
// autoCols
|
|
1993
|
-
...responsiveRules("auto-cols-auto", {
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
...responsiveRules("auto-cols-
|
|
2397
|
+
...responsiveRules("auto-cols-auto", {
|
|
2398
|
+
gridAutoColumns: "auto"
|
|
2399
|
+
}),
|
|
2400
|
+
...responsiveRules("auto-cols-min", {
|
|
2401
|
+
gridAutoColumns: "min"
|
|
2402
|
+
}),
|
|
2403
|
+
...responsiveRules("auto-cols-max", {
|
|
2404
|
+
gridAutoColumns: "max"
|
|
2405
|
+
}),
|
|
2406
|
+
...responsiveRules("auto-cols-fr", {
|
|
2407
|
+
gridAutoColumns: "fr"
|
|
2408
|
+
}),
|
|
1997
2409
|
// autoFlow
|
|
1998
|
-
...responsiveRules("auto-flow-row", {
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
...responsiveRules("auto-flow-column
|
|
2410
|
+
...responsiveRules("auto-flow-row", {
|
|
2411
|
+
gridAutoFlow: "row"
|
|
2412
|
+
}),
|
|
2413
|
+
...responsiveRules("auto-flow-column", {
|
|
2414
|
+
gridAutoFlow: "column"
|
|
2415
|
+
}),
|
|
2416
|
+
...responsiveRules("auto-flow-row-dense", {
|
|
2417
|
+
gridAutoFlow: "row dense"
|
|
2418
|
+
}),
|
|
2419
|
+
...responsiveRules("auto-flow-column-dense", {
|
|
2420
|
+
gridAutoFlow: "column dense"
|
|
2421
|
+
}),
|
|
2002
2422
|
// autoRows
|
|
2003
|
-
...responsiveRules("auto-rows-auto", {
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2423
|
+
...responsiveRules("auto-rows-auto", {
|
|
2424
|
+
gridAutoRows: "auto"
|
|
2425
|
+
}),
|
|
2426
|
+
...responsiveRules("auto-rows-min", {
|
|
2427
|
+
gridAutoRows: "min-content"
|
|
2428
|
+
}),
|
|
2429
|
+
...responsiveRules("auto-rows-max", {
|
|
2430
|
+
gridAutoRows: "max-content"
|
|
2431
|
+
}),
|
|
2432
|
+
...responsiveRules("auto-rows-fr", {
|
|
2433
|
+
gridAutoRows: "minmax(0, 1fr)"
|
|
2434
|
+
}),
|
|
2007
2435
|
// columns
|
|
2008
|
-
...responsiveRules("columns-1", {
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
...responsiveRules("columns-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
...responsiveRules("columns-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
...responsiveRules("columns-
|
|
2018
|
-
|
|
2436
|
+
...responsiveRules("columns-1", {
|
|
2437
|
+
gridTemplateColumns: "repeat(1, 1fr)"
|
|
2438
|
+
}),
|
|
2439
|
+
...responsiveRules("columns-2", {
|
|
2440
|
+
gridTemplateColumns: "repeat(2, 1fr)"
|
|
2441
|
+
}),
|
|
2442
|
+
...responsiveRules("columns-3", {
|
|
2443
|
+
gridTemplateColumns: "repeat(3, 1fr)"
|
|
2444
|
+
}),
|
|
2445
|
+
...responsiveRules("columns-4", {
|
|
2446
|
+
gridTemplateColumns: "repeat(4, 1fr)"
|
|
2447
|
+
}),
|
|
2448
|
+
...responsiveRules("columns-5", {
|
|
2449
|
+
gridTemplateColumns: "repeat(5, 1fr)"
|
|
2450
|
+
}),
|
|
2451
|
+
...responsiveRules("columns-6", {
|
|
2452
|
+
gridTemplateColumns: "repeat(6, 1fr)"
|
|
2453
|
+
}),
|
|
2454
|
+
...responsiveRules("columns-7", {
|
|
2455
|
+
gridTemplateColumns: "repeat(7, 1fr)"
|
|
2456
|
+
}),
|
|
2457
|
+
...responsiveRules("columns-8", {
|
|
2458
|
+
gridTemplateColumns: "repeat(8, 1fr)"
|
|
2459
|
+
}),
|
|
2460
|
+
...responsiveRules("columns-9", {
|
|
2461
|
+
gridTemplateColumns: "repeat(9, 1fr)"
|
|
2462
|
+
}),
|
|
2463
|
+
...responsiveRules("columns-10", {
|
|
2464
|
+
gridTemplateColumns: "repeat(10, 1fr)"
|
|
2465
|
+
}),
|
|
2466
|
+
...responsiveRules("columns-12", {
|
|
2467
|
+
gridTemplateColumns: "repeat(12, 1fr)"
|
|
2468
|
+
}),
|
|
2469
|
+
// rows
|
|
2470
|
+
...responsiveRules("rows-1", {
|
|
2471
|
+
gridTemplateRows: "repeat(1, 1fr)"
|
|
2472
|
+
}),
|
|
2473
|
+
...responsiveRules("rows-2", {
|
|
2474
|
+
gridTemplateRows: "repeat(2, 1fr)"
|
|
2475
|
+
}),
|
|
2476
|
+
...responsiveRules("rows-3", {
|
|
2477
|
+
gridTemplateRows: "repeat(3, 1fr)"
|
|
2478
|
+
}),
|
|
2479
|
+
...responsiveRules("rows-4", {
|
|
2480
|
+
gridTemplateRows: "repeat(4, 1fr)"
|
|
2481
|
+
}),
|
|
2482
|
+
...responsiveRules("rows-5", {
|
|
2483
|
+
gridTemplateRows: "repeat(5, 1fr)"
|
|
2484
|
+
}),
|
|
2485
|
+
...responsiveRules("rows-6", {
|
|
2486
|
+
gridTemplateRows: "repeat(6, 1fr)"
|
|
2487
|
+
}),
|
|
2488
|
+
...responsiveRules("rows-7", {
|
|
2489
|
+
gridTemplateRows: "repeat(7, 1fr)"
|
|
2490
|
+
}),
|
|
2491
|
+
...responsiveRules("rows-8", {
|
|
2492
|
+
gridTemplateRows: "repeat(8, 1fr)"
|
|
2493
|
+
}),
|
|
2494
|
+
...responsiveRules("rows-9", {
|
|
2495
|
+
gridTemplateRows: "repeat(9, 1fr)"
|
|
2496
|
+
}),
|
|
2497
|
+
...responsiveRules("rows-10", {
|
|
2498
|
+
gridTemplateRows: "repeat(10, 1fr)"
|
|
2499
|
+
}),
|
|
2500
|
+
...responsiveRules("rows-12", {
|
|
2501
|
+
gridTemplateRows: "repeat(12, 1fr)"
|
|
2502
|
+
})
|
|
2019
2503
|
}, gridItemRules = {
|
|
2020
2504
|
// column
|
|
2021
|
-
...responsiveRules("col-auto", {
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
...responsiveRules("col-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
...responsiveRules("col-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
...responsiveRules("col-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
...responsiveRules("col-
|
|
2034
|
-
|
|
2505
|
+
...responsiveRules("col-auto", {
|
|
2506
|
+
gridColumn: "span 1 / span 1"
|
|
2507
|
+
}),
|
|
2508
|
+
...responsiveRules("col-full", {
|
|
2509
|
+
gridColumn: "1 / -1"
|
|
2510
|
+
}),
|
|
2511
|
+
...responsiveRules("col-1", {
|
|
2512
|
+
gridColumn: "span 1 / span 1"
|
|
2513
|
+
}),
|
|
2514
|
+
...responsiveRules("col-2", {
|
|
2515
|
+
gridColumn: "span 2 / span 2"
|
|
2516
|
+
}),
|
|
2517
|
+
...responsiveRules("col-3", {
|
|
2518
|
+
gridColumn: "span 3 / span 3"
|
|
2519
|
+
}),
|
|
2520
|
+
...responsiveRules("col-4", {
|
|
2521
|
+
gridColumn: "span 4 / span 4"
|
|
2522
|
+
}),
|
|
2523
|
+
...responsiveRules("col-5", {
|
|
2524
|
+
gridColumn: "span 5 / span 5"
|
|
2525
|
+
}),
|
|
2526
|
+
...responsiveRules("col-6", {
|
|
2527
|
+
gridColumn: "span 6 / span 6"
|
|
2528
|
+
}),
|
|
2529
|
+
...responsiveRules("col-7", {
|
|
2530
|
+
gridColumn: "span 7 / span 7"
|
|
2531
|
+
}),
|
|
2532
|
+
...responsiveRules("col-8", {
|
|
2533
|
+
gridColumn: "span 8 / span 8"
|
|
2534
|
+
}),
|
|
2535
|
+
...responsiveRules("col-9", {
|
|
2536
|
+
gridColumn: "span 9 / span 9"
|
|
2537
|
+
}),
|
|
2538
|
+
...responsiveRules("col-10", {
|
|
2539
|
+
gridColumn: "span 10 / span 10"
|
|
2540
|
+
}),
|
|
2541
|
+
...responsiveRules("col-11", {
|
|
2542
|
+
gridColumn: "span 11 / span 11"
|
|
2543
|
+
}),
|
|
2544
|
+
...responsiveRules("col-12", {
|
|
2545
|
+
gridColumn: "span 12 / span 12"
|
|
2546
|
+
}),
|
|
2035
2547
|
// columnStart
|
|
2036
|
-
...responsiveRules("col-start-auto", {
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
...responsiveRules("col-start-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
...responsiveRules("col-start-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
...responsiveRules("col-start-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
...responsiveRules("col-start-
|
|
2548
|
+
...responsiveRules("col-start-auto", {
|
|
2549
|
+
gridColumnStart: "auto"
|
|
2550
|
+
}),
|
|
2551
|
+
...responsiveRules("col-start-1", {
|
|
2552
|
+
gridColumnStart: "1"
|
|
2553
|
+
}),
|
|
2554
|
+
...responsiveRules("col-start-2", {
|
|
2555
|
+
gridColumnStart: "2"
|
|
2556
|
+
}),
|
|
2557
|
+
...responsiveRules("col-start-3", {
|
|
2558
|
+
gridColumnStart: "3"
|
|
2559
|
+
}),
|
|
2560
|
+
...responsiveRules("col-start-4", {
|
|
2561
|
+
gridColumnStart: "4"
|
|
2562
|
+
}),
|
|
2563
|
+
...responsiveRules("col-start-5", {
|
|
2564
|
+
gridColumnStart: "5"
|
|
2565
|
+
}),
|
|
2566
|
+
...responsiveRules("col-start-6", {
|
|
2567
|
+
gridColumnStart: "6"
|
|
2568
|
+
}),
|
|
2569
|
+
...responsiveRules("col-start-7", {
|
|
2570
|
+
gridColumnStart: "7"
|
|
2571
|
+
}),
|
|
2572
|
+
...responsiveRules("col-start-8", {
|
|
2573
|
+
gridColumnStart: "8"
|
|
2574
|
+
}),
|
|
2575
|
+
...responsiveRules("col-start-9", {
|
|
2576
|
+
gridColumnStart: "9"
|
|
2577
|
+
}),
|
|
2578
|
+
...responsiveRules("col-start-10", {
|
|
2579
|
+
gridColumnStart: "10"
|
|
2580
|
+
}),
|
|
2581
|
+
...responsiveRules("col-start-11", {
|
|
2582
|
+
gridColumnStart: "11"
|
|
2583
|
+
}),
|
|
2584
|
+
...responsiveRules("col-start-12", {
|
|
2585
|
+
gridColumnStart: "12"
|
|
2586
|
+
}),
|
|
2049
2587
|
// columnEnd
|
|
2050
|
-
...responsiveRules("col-end-auto", {
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
...responsiveRules("col-end-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
...responsiveRules("col-end-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
...responsiveRules("col-end-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
...responsiveRules("col-end-
|
|
2588
|
+
...responsiveRules("col-end-auto", {
|
|
2589
|
+
gridColumnEnd: "auto"
|
|
2590
|
+
}),
|
|
2591
|
+
...responsiveRules("col-end-1", {
|
|
2592
|
+
gridColumnEnd: "1"
|
|
2593
|
+
}),
|
|
2594
|
+
...responsiveRules("col-end-2", {
|
|
2595
|
+
gridColumnEnd: "2"
|
|
2596
|
+
}),
|
|
2597
|
+
...responsiveRules("col-end-3", {
|
|
2598
|
+
gridColumnEnd: "3"
|
|
2599
|
+
}),
|
|
2600
|
+
...responsiveRules("col-end-4", {
|
|
2601
|
+
gridColumnEnd: "4"
|
|
2602
|
+
}),
|
|
2603
|
+
...responsiveRules("col-end-5", {
|
|
2604
|
+
gridColumnEnd: "5"
|
|
2605
|
+
}),
|
|
2606
|
+
...responsiveRules("col-end-6", {
|
|
2607
|
+
gridColumnEnd: "6"
|
|
2608
|
+
}),
|
|
2609
|
+
...responsiveRules("col-end-7", {
|
|
2610
|
+
gridColumnEnd: "7"
|
|
2611
|
+
}),
|
|
2612
|
+
...responsiveRules("col-end-8", {
|
|
2613
|
+
gridColumnEnd: "8"
|
|
2614
|
+
}),
|
|
2615
|
+
...responsiveRules("col-end-9", {
|
|
2616
|
+
gridColumnEnd: "9"
|
|
2617
|
+
}),
|
|
2618
|
+
...responsiveRules("col-end-10", {
|
|
2619
|
+
gridColumnEnd: "10"
|
|
2620
|
+
}),
|
|
2621
|
+
...responsiveRules("col-end-11", {
|
|
2622
|
+
gridColumnEnd: "11"
|
|
2623
|
+
}),
|
|
2624
|
+
...responsiveRules("col-end-12", {
|
|
2625
|
+
gridColumnEnd: "12"
|
|
2626
|
+
}),
|
|
2063
2627
|
// row
|
|
2064
|
-
...responsiveRules("row-auto", {
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
...responsiveRules("row-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
...responsiveRules("row-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
...responsiveRules("row-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
...responsiveRules("row-
|
|
2077
|
-
|
|
2628
|
+
...responsiveRules("row-auto", {
|
|
2629
|
+
gridRow: "span 1 / span 1"
|
|
2630
|
+
}),
|
|
2631
|
+
...responsiveRules("row-full", {
|
|
2632
|
+
gridRow: "1 / -1"
|
|
2633
|
+
}),
|
|
2634
|
+
...responsiveRules("row-1", {
|
|
2635
|
+
gridRow: "span 1 / span 1"
|
|
2636
|
+
}),
|
|
2637
|
+
...responsiveRules("row-2", {
|
|
2638
|
+
gridRow: "span 2 / span 2"
|
|
2639
|
+
}),
|
|
2640
|
+
...responsiveRules("row-3", {
|
|
2641
|
+
gridRow: "span 3 / span 3"
|
|
2642
|
+
}),
|
|
2643
|
+
...responsiveRules("row-4", {
|
|
2644
|
+
gridRow: "span 4 / span 4"
|
|
2645
|
+
}),
|
|
2646
|
+
...responsiveRules("row-5", {
|
|
2647
|
+
gridRow: "span 5 / span 5"
|
|
2648
|
+
}),
|
|
2649
|
+
...responsiveRules("row-6", {
|
|
2650
|
+
gridRow: "span 6 / span 6"
|
|
2651
|
+
}),
|
|
2652
|
+
...responsiveRules("row-7", {
|
|
2653
|
+
gridRow: "span 7 / span 7"
|
|
2654
|
+
}),
|
|
2655
|
+
...responsiveRules("row-8", {
|
|
2656
|
+
gridRow: "span 8 / span 8"
|
|
2657
|
+
}),
|
|
2658
|
+
...responsiveRules("row-9", {
|
|
2659
|
+
gridRow: "span 9 / span 9"
|
|
2660
|
+
}),
|
|
2661
|
+
...responsiveRules("row-10", {
|
|
2662
|
+
gridRow: "span 10 / span 10"
|
|
2663
|
+
}),
|
|
2664
|
+
...responsiveRules("row-11", {
|
|
2665
|
+
gridRow: "span 11 / span 11"
|
|
2666
|
+
}),
|
|
2667
|
+
...responsiveRules("row-12", {
|
|
2668
|
+
gridRow: "span 12 / span 12"
|
|
2669
|
+
}),
|
|
2078
2670
|
// rowStart
|
|
2079
|
-
...responsiveRules("row-start-auto", {
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
...responsiveRules("row-start-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
...responsiveRules("row-start-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
...responsiveRules("row-start-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
...responsiveRules("row-start-
|
|
2671
|
+
...responsiveRules("row-start-auto", {
|
|
2672
|
+
gridRowStart: "auto"
|
|
2673
|
+
}),
|
|
2674
|
+
...responsiveRules("row-start-1", {
|
|
2675
|
+
gridRowStart: "1"
|
|
2676
|
+
}),
|
|
2677
|
+
...responsiveRules("row-start-2", {
|
|
2678
|
+
gridRowStart: "2"
|
|
2679
|
+
}),
|
|
2680
|
+
...responsiveRules("row-start-3", {
|
|
2681
|
+
gridRowStart: "3"
|
|
2682
|
+
}),
|
|
2683
|
+
...responsiveRules("row-start-4", {
|
|
2684
|
+
gridRowStart: "4"
|
|
2685
|
+
}),
|
|
2686
|
+
...responsiveRules("row-start-5", {
|
|
2687
|
+
gridRowStart: "5"
|
|
2688
|
+
}),
|
|
2689
|
+
...responsiveRules("row-start-6", {
|
|
2690
|
+
gridRowStart: "6"
|
|
2691
|
+
}),
|
|
2692
|
+
...responsiveRules("row-start-7", {
|
|
2693
|
+
gridRowStart: "7"
|
|
2694
|
+
}),
|
|
2695
|
+
...responsiveRules("row-start-8", {
|
|
2696
|
+
gridRowStart: "8"
|
|
2697
|
+
}),
|
|
2698
|
+
...responsiveRules("row-start-9", {
|
|
2699
|
+
gridRowStart: "9"
|
|
2700
|
+
}),
|
|
2701
|
+
...responsiveRules("row-start-10", {
|
|
2702
|
+
gridRowStart: "10"
|
|
2703
|
+
}),
|
|
2704
|
+
...responsiveRules("row-start-11", {
|
|
2705
|
+
gridRowStart: "11"
|
|
2706
|
+
}),
|
|
2707
|
+
...responsiveRules("row-start-12", {
|
|
2708
|
+
gridRowStart: "12"
|
|
2709
|
+
}),
|
|
2092
2710
|
// rowEnd
|
|
2093
|
-
...responsiveRules("row-end-auto", {
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
...responsiveRules("row-end-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
...responsiveRules("row-end-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
...responsiveRules("row-end-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
...responsiveRules("row-end-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
...responsiveRules("
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
...responsiveRules(
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
...responsiveRules(
|
|
2115
|
-
|
|
2116
|
-
|
|
2711
|
+
...responsiveRules("row-end-auto", {
|
|
2712
|
+
gridRowEnd: "auto"
|
|
2713
|
+
}),
|
|
2714
|
+
...responsiveRules("row-end-1", {
|
|
2715
|
+
gridRowEnd: "1"
|
|
2716
|
+
}),
|
|
2717
|
+
...responsiveRules("row-end-2", {
|
|
2718
|
+
gridRowEnd: "2"
|
|
2719
|
+
}),
|
|
2720
|
+
...responsiveRules("row-end-3", {
|
|
2721
|
+
gridRowEnd: "3"
|
|
2722
|
+
}),
|
|
2723
|
+
...responsiveRules("row-end-4", {
|
|
2724
|
+
gridRowEnd: "4"
|
|
2725
|
+
}),
|
|
2726
|
+
...responsiveRules("row-end-5", {
|
|
2727
|
+
gridRowEnd: "5"
|
|
2728
|
+
}),
|
|
2729
|
+
...responsiveRules("row-end-6", {
|
|
2730
|
+
gridRowEnd: "6"
|
|
2731
|
+
}),
|
|
2732
|
+
...responsiveRules("row-end-7", {
|
|
2733
|
+
gridRowEnd: "7"
|
|
2734
|
+
}),
|
|
2735
|
+
...responsiveRules("row-end-8", {
|
|
2736
|
+
gridRowEnd: "8"
|
|
2737
|
+
}),
|
|
2738
|
+
...responsiveRules("row-end-9", {
|
|
2739
|
+
gridRowEnd: "9"
|
|
2740
|
+
}),
|
|
2741
|
+
...responsiveRules("row-end-10", {
|
|
2742
|
+
gridRowEnd: "10"
|
|
2743
|
+
}),
|
|
2744
|
+
...responsiveRules("row-end-11", {
|
|
2745
|
+
gridRowEnd: "11"
|
|
2746
|
+
}),
|
|
2747
|
+
...responsiveRules("row-end-12", {
|
|
2748
|
+
gridRowEnd: "12"
|
|
2117
2749
|
})
|
|
2118
|
-
}
|
|
2119
|
-
...
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2750
|
+
}, heightRules = {
|
|
2751
|
+
...responsiveRules("h-fill", {
|
|
2752
|
+
height: "100%"
|
|
2753
|
+
}),
|
|
2754
|
+
...responsiveRules("h-stretch", {
|
|
2755
|
+
height: "stretch"
|
|
2123
2756
|
})
|
|
2124
|
-
}
|
|
2125
|
-
|
|
2126
|
-
...
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
})
|
|
2131
|
-
|
|
2132
|
-
...
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2757
|
+
}, marginRules = {
|
|
2758
|
+
// NOTE: order matters
|
|
2759
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2760
|
+
...acc,
|
|
2761
|
+
...responsiveRules(`m-${space}`.replace(".", "_"), {
|
|
2762
|
+
margin: vars.space[space]
|
|
2763
|
+
})
|
|
2764
|
+
}), {}),
|
|
2765
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2766
|
+
...acc,
|
|
2767
|
+
...responsiveRules(`mx-${space}`.replace(".", "_"), {
|
|
2768
|
+
marginLeft: vars.space[space],
|
|
2769
|
+
marginRight: vars.space[space]
|
|
2770
|
+
})
|
|
2771
|
+
}), {}),
|
|
2772
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2773
|
+
...acc,
|
|
2774
|
+
...responsiveRules(`my-${space}`.replace(".", "_"), {
|
|
2775
|
+
marginTop: vars.space[space],
|
|
2776
|
+
marginBottom: vars.space[space]
|
|
2777
|
+
})
|
|
2778
|
+
}), {}),
|
|
2779
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2780
|
+
...acc,
|
|
2781
|
+
...responsiveRules(`mt-${space}`.replace(".", "_"), {
|
|
2782
|
+
marginTop: vars.space[space]
|
|
2783
|
+
})
|
|
2784
|
+
}), {}),
|
|
2785
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2786
|
+
...acc,
|
|
2787
|
+
...responsiveRules(`mr-${space}`.replace(".", "_"), {
|
|
2788
|
+
marginRight: vars.space[space]
|
|
2789
|
+
})
|
|
2790
|
+
}), {}),
|
|
2791
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2792
|
+
...acc,
|
|
2793
|
+
...responsiveRules(`mb-${space}`.replace(".", "_"), {
|
|
2794
|
+
marginBottom: vars.space[space]
|
|
2795
|
+
})
|
|
2796
|
+
}), {}),
|
|
2797
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2798
|
+
...acc,
|
|
2799
|
+
...responsiveRules(`ml-${space}`.replace(".", "_"), {
|
|
2800
|
+
marginLeft: vars.space[space]
|
|
2801
|
+
})
|
|
2802
|
+
}), {})
|
|
2803
|
+
}, maxWidthRules = {
|
|
2137
2804
|
...responsiveRules("max-w-0", {
|
|
2138
2805
|
maxWidth: "var(--container-0)"
|
|
2139
2806
|
}),
|
|
@@ -2158,39 +2825,69 @@ const badgeRules = {
|
|
|
2158
2825
|
...responsiveRules("max-w-fill", {
|
|
2159
2826
|
maxWidth: "100%"
|
|
2160
2827
|
})
|
|
2828
|
+
}, outlineRules = {
|
|
2829
|
+
"outline-none": {
|
|
2830
|
+
outline: "none"
|
|
2831
|
+
}
|
|
2161
2832
|
}, overflowRules = {
|
|
2162
|
-
...responsiveRules("overflow-visible", {
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
...responsiveRules("overflow-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
...responsiveRules(
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
...responsiveRules(
|
|
2172
|
-
|
|
2173
|
-
paddingRight: vars.space[space]
|
|
2174
|
-
})
|
|
2175
|
-
}), {}), paddingYRules = theme.SPACE.reduce((acc, space) => ({
|
|
2176
|
-
...acc,
|
|
2177
|
-
...responsiveRules(`py-${space}`, {
|
|
2178
|
-
paddingTop: vars.space[space],
|
|
2179
|
-
paddingBottom: vars.space[space]
|
|
2833
|
+
...responsiveRules("overflow-visible", {
|
|
2834
|
+
overflow: "visible"
|
|
2835
|
+
}),
|
|
2836
|
+
...responsiveRules("overflow-hidden", {
|
|
2837
|
+
overflow: "hidden"
|
|
2838
|
+
}),
|
|
2839
|
+
...responsiveRules("overflow-scroll", {
|
|
2840
|
+
overflow: "scroll"
|
|
2841
|
+
}),
|
|
2842
|
+
...responsiveRules("overflow-auto", {
|
|
2843
|
+
overflow: "auto"
|
|
2180
2844
|
})
|
|
2181
|
-
}
|
|
2182
|
-
...acc,
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
}), {}),
|
|
2188
|
-
...acc,
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
})
|
|
2845
|
+
}, paddingRules = {
|
|
2846
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2847
|
+
...acc,
|
|
2848
|
+
...responsiveRules(`p-${space}`.replace(".", "_"), {
|
|
2849
|
+
padding: vars.space[space]
|
|
2850
|
+
})
|
|
2851
|
+
}), {}),
|
|
2852
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2853
|
+
...acc,
|
|
2854
|
+
...responsiveRules(`px-${space}`.replace(".", "_"), {
|
|
2855
|
+
paddingLeft: vars.space[space],
|
|
2856
|
+
paddingRight: vars.space[space]
|
|
2857
|
+
})
|
|
2858
|
+
}), {}),
|
|
2859
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2860
|
+
...acc,
|
|
2861
|
+
...responsiveRules(`py-${space}`.replace(".", "_"), {
|
|
2862
|
+
paddingTop: vars.space[space],
|
|
2863
|
+
paddingBottom: vars.space[space]
|
|
2864
|
+
})
|
|
2865
|
+
}), {}),
|
|
2866
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2867
|
+
...acc,
|
|
2868
|
+
...responsiveRules(`pt-${space}`.replace(".", "_"), {
|
|
2869
|
+
paddingTop: vars.space[space]
|
|
2870
|
+
})
|
|
2871
|
+
}), {}),
|
|
2872
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2873
|
+
...acc,
|
|
2874
|
+
...responsiveRules(`pr-${space}`.replace(".", "_"), {
|
|
2875
|
+
paddingRight: vars.space[space]
|
|
2876
|
+
})
|
|
2877
|
+
}), {}),
|
|
2878
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2879
|
+
...acc,
|
|
2880
|
+
...responsiveRules(`pb-${space}`.replace(".", "_"), {
|
|
2881
|
+
paddingBottom: vars.space[space]
|
|
2882
|
+
})
|
|
2883
|
+
}), {}),
|
|
2884
|
+
...theme.SPACE.reduce((acc, space) => ({
|
|
2885
|
+
...acc,
|
|
2886
|
+
...responsiveRules(`pl-${space}`.replace(".", "_"), {
|
|
2887
|
+
paddingLeft: vars.space[space]
|
|
2888
|
+
})
|
|
2889
|
+
}), {})
|
|
2890
|
+
}, pointerEventsRules = {
|
|
2194
2891
|
"pointer-events-none": {
|
|
2195
2892
|
pointerEvents: "none"
|
|
2196
2893
|
},
|
|
@@ -2220,89 +2917,69 @@ const badgeRules = {
|
|
|
2220
2917
|
bottom: 0
|
|
2221
2918
|
})
|
|
2222
2919
|
}, radiusRules = {
|
|
2223
|
-
...responsiveRules("r-0", {
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
...responsiveRules("r-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
...responsiveRules("r-
|
|
2230
|
-
|
|
2920
|
+
...responsiveRules("r-0", {
|
|
2921
|
+
borderRadius: "var(--radius-0)"
|
|
2922
|
+
}),
|
|
2923
|
+
...responsiveRules("r-1", {
|
|
2924
|
+
borderRadius: "var(--radius-1)"
|
|
2925
|
+
}),
|
|
2926
|
+
...responsiveRules("r-2", {
|
|
2927
|
+
borderRadius: "var(--radius-2)"
|
|
2928
|
+
}),
|
|
2929
|
+
...responsiveRules("r-3", {
|
|
2930
|
+
borderRadius: "var(--radius-3)"
|
|
2931
|
+
}),
|
|
2932
|
+
...responsiveRules("r-4", {
|
|
2933
|
+
borderRadius: "var(--radius-4)"
|
|
2934
|
+
}),
|
|
2935
|
+
...responsiveRules("r-5", {
|
|
2936
|
+
borderRadius: "var(--radius-5)"
|
|
2937
|
+
}),
|
|
2938
|
+
...responsiveRules("r-6", {
|
|
2939
|
+
borderRadius: "var(--radius-6)"
|
|
2940
|
+
}),
|
|
2941
|
+
...responsiveRules("r-round", {
|
|
2942
|
+
borderRadius: "9999px"
|
|
2943
|
+
})
|
|
2231
2944
|
}, shadowRules = {
|
|
2232
2945
|
...responsiveRules("shadow-0", {
|
|
2233
2946
|
boxShadow: "none"
|
|
2234
2947
|
}),
|
|
2235
2948
|
...responsiveRules("shadow-1", {
|
|
2236
|
-
boxShadow: [
|
|
2237
|
-
"var(--card-shadow-outline) var(--color-shadow-outline)",
|
|
2238
|
-
"var(--shadow-1-umbra) var(--color-shadow-umbra)",
|
|
2239
|
-
"var(--shadow-1-penumbra) var(--color-shadow-penumbra)",
|
|
2240
|
-
"var(--shadow-1-ambient) var(--color-shadow-ambient)"
|
|
2241
|
-
].join(", ")
|
|
2949
|
+
boxShadow: ["var(--card-shadow-outline) var(--color-shadow-outline)", "var(--shadow-1-umbra) var(--color-shadow-umbra)", "var(--shadow-1-penumbra) var(--color-shadow-penumbra)", "var(--shadow-1-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
2242
2950
|
}),
|
|
2243
2951
|
...responsiveRules("shadow-2", {
|
|
2244
|
-
boxShadow: [
|
|
2245
|
-
"var(--card-shadow-outline) var(--color-shadow-outline)",
|
|
2246
|
-
"var(--shadow-2-umbra) var(--color-shadow-umbra)",
|
|
2247
|
-
"var(--shadow-2-penumbra) var(--color-shadow-penumbra)",
|
|
2248
|
-
"var(--shadow-2-ambient) var(--color-shadow-ambient)"
|
|
2249
|
-
].join(", ")
|
|
2952
|
+
boxShadow: ["var(--card-shadow-outline) var(--color-shadow-outline)", "var(--shadow-2-umbra) var(--color-shadow-umbra)", "var(--shadow-2-penumbra) var(--color-shadow-penumbra)", "var(--shadow-2-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
2250
2953
|
}),
|
|
2251
2954
|
...responsiveRules("shadow-3", {
|
|
2252
|
-
boxShadow: [
|
|
2253
|
-
"var(--card-shadow-outline) var(--color-shadow-outline)",
|
|
2254
|
-
"var(--shadow-3-umbra) var(--color-shadow-umbra)",
|
|
2255
|
-
"var(--shadow-3-penumbra) var(--color-shadow-penumbra)",
|
|
2256
|
-
"var(--shadow-3-ambient) var(--color-shadow-ambient)"
|
|
2257
|
-
].join(", ")
|
|
2955
|
+
boxShadow: ["var(--card-shadow-outline) var(--color-shadow-outline)", "var(--shadow-3-umbra) var(--color-shadow-umbra)", "var(--shadow-3-penumbra) var(--color-shadow-penumbra)", "var(--shadow-3-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
2258
2956
|
}),
|
|
2259
2957
|
...responsiveRules("shadow-4", {
|
|
2260
|
-
boxShadow: [
|
|
2261
|
-
"var(--card-shadow-outline) var(--color-shadow-outline)",
|
|
2262
|
-
"var(--shadow-4-umbra) var(--color-shadow-umbra)",
|
|
2263
|
-
"var(--shadow-4-penumbra) var(--color-shadow-penumbra)",
|
|
2264
|
-
"var(--shadow-4-ambient) var(--color-shadow-ambient)"
|
|
2265
|
-
].join(", ")
|
|
2958
|
+
boxShadow: ["var(--card-shadow-outline) var(--color-shadow-outline)", "var(--shadow-4-umbra) var(--color-shadow-umbra)", "var(--shadow-4-penumbra) var(--color-shadow-penumbra)", "var(--shadow-4-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
2266
2959
|
}),
|
|
2267
2960
|
...responsiveRules("shadow-5", {
|
|
2268
|
-
boxShadow: [
|
|
2269
|
-
"var(--card-shadow-outline) var(--color-shadow-outline)",
|
|
2270
|
-
"var(--shadow-5-umbra) var(--color-shadow-umbra)",
|
|
2271
|
-
"var(--shadow-5-penumbra) var(--color-shadow-penumbra)",
|
|
2272
|
-
"var(--shadow-5-ambient) var(--color-shadow-ambient)"
|
|
2273
|
-
].join(", ")
|
|
2961
|
+
boxShadow: ["var(--card-shadow-outline) var(--color-shadow-outline)", "var(--shadow-5-umbra) var(--color-shadow-umbra)", "var(--shadow-5-penumbra) var(--color-shadow-penumbra)", "var(--shadow-5-ambient) var(--color-shadow-ambient)"].join(", ")
|
|
2274
2962
|
})
|
|
2275
2963
|
}, widthRules = {
|
|
2276
2964
|
"w-fill": {
|
|
2277
2965
|
width: ["-moz-available", "-webkit-fill-available", "stretch"]
|
|
2278
2966
|
}
|
|
2279
2967
|
}, rules = {
|
|
2280
|
-
//
|
|
2968
|
+
// styles
|
|
2969
|
+
...borderRules,
|
|
2281
2970
|
...displayRules,
|
|
2282
|
-
...flexRules,
|
|
2283
2971
|
...flexItemRules,
|
|
2284
|
-
...
|
|
2285
|
-
...borderRules,
|
|
2286
|
-
...paddingRules,
|
|
2287
|
-
...paddingXRules,
|
|
2288
|
-
...paddingYRules,
|
|
2289
|
-
...paddingTopRules,
|
|
2290
|
-
...paddingRightRules,
|
|
2291
|
-
...paddingBottomRules,
|
|
2292
|
-
...paddingLeftRules,
|
|
2293
|
-
...pointerEventsRules,
|
|
2294
|
-
...marginRules,
|
|
2295
|
-
...marginXRules,
|
|
2296
|
-
...marginYRules,
|
|
2297
|
-
...marginTopRules,
|
|
2298
|
-
...marginRightRules,
|
|
2299
|
-
...marginBottomRules,
|
|
2300
|
-
...marginLeftRules,
|
|
2972
|
+
...flexRules,
|
|
2301
2973
|
...fontRules,
|
|
2302
2974
|
...gapRules,
|
|
2975
|
+
...gridItemRules,
|
|
2303
2976
|
...gridRules,
|
|
2304
2977
|
...heightRules,
|
|
2978
|
+
...marginRules,
|
|
2979
|
+
...outlineRules,
|
|
2305
2980
|
...overflowRules,
|
|
2981
|
+
...paddingRules,
|
|
2982
|
+
...pointerEventsRules,
|
|
2306
2983
|
...positionRules,
|
|
2307
2984
|
...radiusRules,
|
|
2308
2985
|
...shadowRules,
|
|
@@ -2326,14 +3003,16 @@ const badgeRules = {
|
|
|
2326
3003
|
...selectableRules,
|
|
2327
3004
|
...spinnerRules,
|
|
2328
3005
|
...switchRules,
|
|
2329
|
-
...textRules,
|
|
2330
3006
|
...textAreaRules,
|
|
2331
3007
|
...textInputRules,
|
|
3008
|
+
...textRules,
|
|
2332
3009
|
...tokenRules,
|
|
2333
3010
|
...tooltipRules,
|
|
2334
3011
|
// components
|
|
2335
3012
|
...breadcrumbsRules,
|
|
2336
|
-
...dialogRules
|
|
3013
|
+
...dialogRules,
|
|
3014
|
+
...menuRules,
|
|
3015
|
+
...skeletonRules
|
|
2337
3016
|
};
|
|
2338
3017
|
function compileRule(selector, props) {
|
|
2339
3018
|
return compileProperties(selector, props) + compileNestedRules(selector, props["@nest"]);
|
|
@@ -2386,12 +3065,11 @@ function compileRules(rules2) {
|
|
|
2386
3065
|
let keyframesCss = `@keyframes ${name} {
|
|
2387
3066
|
`;
|
|
2388
3067
|
for (const [key, props] of Object.entries(value))
|
|
2389
|
-
keyframesCss += ` ${key}
|
|
2390
|
-
`, keyframesCss += compileRule("", props).replace(/\n/g, `
|
|
3068
|
+
keyframesCss += ` ${key}`, keyframesCss += compileRule("", props).replace(/\n/g, `
|
|
2391
3069
|
`) + `
|
|
2392
|
-
`, keyframesCss += ` }
|
|
2393
3070
|
`;
|
|
2394
|
-
keyframesCss += `
|
|
3071
|
+
keyframesCss += `
|
|
3072
|
+
}
|
|
2395
3073
|
`, css += keyframesCss;
|
|
2396
3074
|
}
|
|
2397
3075
|
for (const [query, queryRules] of Object.entries(mediaQueries))
|
|
@@ -2427,263 +3105,287 @@ function countThemeEntries(obj) {
|
|
|
2427
3105
|
function compileTheme(theme2) {
|
|
2428
3106
|
for (const [key, val] of Object.entries(theme2.color.light.default))
|
|
2429
3107
|
(isRecord(val) || isArray(val)) && console.log(key, countThemeEntries(val));
|
|
2430
|
-
return [
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
3108
|
+
return [compileRule(":root", {
|
|
3109
|
+
[varNames.avatar.focusRing.offset]: px(theme2.avatar.focusRing.offset),
|
|
3110
|
+
[varNames.avatar.focusRing.width]: px(theme2.avatar.focusRing.width),
|
|
3111
|
+
// [varNames.avatar.size[0].distance]: px(theme.avatar.size[0].distance),
|
|
3112
|
+
// [varNames.avatar.size[0].size]: px(theme.avatar.size[0].size),
|
|
3113
|
+
"--avatar-0-distance": px(theme2.avatar.sizes[0].distance),
|
|
3114
|
+
"--avatar-0-size": px(theme2.avatar.sizes[0].size),
|
|
3115
|
+
"--avatar-1-distance": px(theme2.avatar.sizes[1].distance),
|
|
3116
|
+
"--avatar-1-size": px(theme2.avatar.sizes[1].size),
|
|
3117
|
+
"--avatar-2-distance": px(theme2.avatar.sizes[2].distance),
|
|
3118
|
+
"--avatar-2-size": px(theme2.avatar.sizes[2].size),
|
|
3119
|
+
"--avatar-3-distance": px(theme2.avatar.sizes[3].distance),
|
|
3120
|
+
"--avatar-3-size": px(theme2.avatar.sizes[3].size),
|
|
3121
|
+
"--button-border-width": px(theme2.button.border.width),
|
|
3122
|
+
"--button-focus-ring-offset": px(theme2.button.focusRing.offset),
|
|
3123
|
+
"--button-focus-ring-width": px(theme2.button.focusRing.width),
|
|
3124
|
+
"--button-text-weight": `${theme2.button.textWeight}`,
|
|
3125
|
+
"--card-border-width": px(theme2.card.border.width),
|
|
3126
|
+
"--card-focus-ring-offset": px(theme2.card.focusRing.offset),
|
|
3127
|
+
"--card-focus-ring-width": px(theme2.card.focusRing.width),
|
|
3128
|
+
"--card-shadow-outline": `0 0 0 ${px(theme2.card.shadow.outline)}`,
|
|
3129
|
+
"--font-code-family": theme2.font.code.family,
|
|
3130
|
+
"--font-code-weight-regular": `${theme2.font.code.weights.regular}`,
|
|
3131
|
+
"--font-code-weight-medium": `${theme2.font.code.weights.medium}`,
|
|
3132
|
+
"--font-code-weight-semibold": `${theme2.font.code.weights.semibold}`,
|
|
3133
|
+
"--font-code-weight-bold": `${theme2.font.code.weights.bold}`,
|
|
3134
|
+
"--font-code-0-size": rem(theme2.font.code.sizes[0].fontSize),
|
|
3135
|
+
"--font-code-0-line-height": rem(theme2.font.code.sizes[0].lineHeight),
|
|
3136
|
+
"--font-code-0-ascender-height": px(theme2.font.code.sizes[0].ascenderHeight),
|
|
3137
|
+
"--font-code-0-descender-height": px(theme2.font.code.sizes[0].descenderHeight),
|
|
3138
|
+
"--font-code-0-letter-spacing": px(theme2.font.code.sizes[0].letterSpacing),
|
|
3139
|
+
"--font-code-0-icon-size": px(theme2.font.code.sizes[0].iconSize),
|
|
3140
|
+
"--font-code-1-size": rem(theme2.font.code.sizes[1].fontSize),
|
|
3141
|
+
"--font-code-1-line-height": px(theme2.font.code.sizes[1].lineHeight),
|
|
3142
|
+
"--font-code-1-ascender-height": px(theme2.font.code.sizes[1].ascenderHeight),
|
|
3143
|
+
"--font-code-1-descender-height": px(theme2.font.code.sizes[1].descenderHeight),
|
|
3144
|
+
"--font-code-1-letter-spacing": px(theme2.font.code.sizes[1].letterSpacing),
|
|
3145
|
+
"--font-code-1-icon-size": px(theme2.font.code.sizes[1].iconSize),
|
|
3146
|
+
"--font-code-2-size": rem(theme2.font.code.sizes[2].fontSize),
|
|
3147
|
+
"--font-code-2-line-height": rem(theme2.font.code.sizes[2].lineHeight),
|
|
3148
|
+
"--font-code-2-ascender-height": px(theme2.font.code.sizes[2].ascenderHeight),
|
|
3149
|
+
"--font-code-2-descender-height": px(theme2.font.code.sizes[2].descenderHeight),
|
|
3150
|
+
"--font-code-2-letter-spacing": px(theme2.font.code.sizes[2].letterSpacing),
|
|
3151
|
+
"--font-code-2-icon-size": px(theme2.font.code.sizes[2].iconSize),
|
|
3152
|
+
"--font-code-3-size": rem(theme2.font.code.sizes[3].fontSize),
|
|
3153
|
+
"--font-code-3-line-height": rem(theme2.font.code.sizes[3].lineHeight),
|
|
3154
|
+
"--font-code-3-ascender-height": px(theme2.font.code.sizes[3].ascenderHeight),
|
|
3155
|
+
"--font-code-3-descender-height": px(theme2.font.code.sizes[3].descenderHeight),
|
|
3156
|
+
"--font-code-3-letter-spacing": px(theme2.font.code.sizes[3].letterSpacing),
|
|
3157
|
+
"--font-code-3-icon-size": px(theme2.font.code.sizes[3].iconSize),
|
|
3158
|
+
"--font-code-4-size": rem(theme2.font.code.sizes[4].fontSize),
|
|
3159
|
+
"--font-code-4-line-height": rem(theme2.font.code.sizes[4].lineHeight),
|
|
3160
|
+
"--font-code-4-ascender-height": px(theme2.font.code.sizes[4].ascenderHeight),
|
|
3161
|
+
"--font-code-4-descender-height": px(theme2.font.code.sizes[4].descenderHeight),
|
|
3162
|
+
"--font-code-4-letter-spacing": px(theme2.font.code.sizes[4].letterSpacing),
|
|
3163
|
+
"--font-code-4-icon-size": px(theme2.font.code.sizes[4].iconSize),
|
|
3164
|
+
"--font-heading-family": theme2.font.heading.family,
|
|
3165
|
+
"--font-heading-weight-regular": `${theme2.font.heading.weights.regular}`,
|
|
3166
|
+
"--font-heading-weight-medium": `${theme2.font.heading.weights.medium}`,
|
|
3167
|
+
"--font-heading-weight-semibold": `${theme2.font.heading.weights.semibold}`,
|
|
3168
|
+
"--font-heading-weight-bold": `${theme2.font.heading.weights.bold}`,
|
|
3169
|
+
"--font-heading-0-size": rem(theme2.font.heading.sizes[0].fontSize),
|
|
3170
|
+
"--font-heading-0-line-height": rem(theme2.font.heading.sizes[0].lineHeight),
|
|
3171
|
+
"--font-heading-0-ascender-height": px(theme2.font.heading.sizes[0].ascenderHeight),
|
|
3172
|
+
"--font-heading-0-descender-height": px(theme2.font.heading.sizes[0].descenderHeight),
|
|
3173
|
+
"--font-heading-0-letter-spacing": px(theme2.font.heading.sizes[0].letterSpacing),
|
|
3174
|
+
"--font-heading-0-icon-size": px(theme2.font.heading.sizes[0].iconSize),
|
|
3175
|
+
"--font-heading-1-size": rem(theme2.font.heading.sizes[1].fontSize),
|
|
3176
|
+
"--font-heading-1-line-height": rem(theme2.font.heading.sizes[1].lineHeight),
|
|
3177
|
+
"--font-heading-1-ascender-height": px(theme2.font.heading.sizes[1].ascenderHeight),
|
|
3178
|
+
"--font-heading-1-descender-height": px(theme2.font.heading.sizes[1].descenderHeight),
|
|
3179
|
+
"--font-heading-1-letter-spacing": px(theme2.font.heading.sizes[1].letterSpacing),
|
|
3180
|
+
"--font-heading-1-icon-size": px(theme2.font.heading.sizes[1].iconSize),
|
|
3181
|
+
"--font-heading-2-size": rem(theme2.font.heading.sizes[2].fontSize),
|
|
3182
|
+
"--font-heading-2-line-height": rem(theme2.font.heading.sizes[2].lineHeight),
|
|
3183
|
+
"--font-heading-2-ascender-height": px(theme2.font.heading.sizes[2].ascenderHeight),
|
|
3184
|
+
"--font-heading-2-descender-height": px(theme2.font.heading.sizes[2].descenderHeight),
|
|
3185
|
+
"--font-heading-2-letter-spacing": px(theme2.font.heading.sizes[2].letterSpacing),
|
|
3186
|
+
"--font-heading-2-icon-size": px(theme2.font.heading.sizes[2].iconSize),
|
|
3187
|
+
"--font-heading-3-size": rem(theme2.font.heading.sizes[3].fontSize),
|
|
3188
|
+
"--font-heading-3-line-height": rem(theme2.font.heading.sizes[3].lineHeight),
|
|
3189
|
+
"--font-heading-3-ascender-height": px(theme2.font.heading.sizes[3].ascenderHeight),
|
|
3190
|
+
"--font-heading-3-descender-height": px(theme2.font.heading.sizes[3].descenderHeight),
|
|
3191
|
+
"--font-heading-3-letter-spacing": px(theme2.font.heading.sizes[3].letterSpacing),
|
|
3192
|
+
"--font-heading-3-icon-size": px(theme2.font.heading.sizes[3].iconSize),
|
|
3193
|
+
"--font-heading-4-size": rem(theme2.font.heading.sizes[4].fontSize),
|
|
3194
|
+
"--font-heading-4-line-height": rem(theme2.font.heading.sizes[4].lineHeight),
|
|
3195
|
+
"--font-heading-4-ascender-height": px(theme2.font.heading.sizes[4].ascenderHeight),
|
|
3196
|
+
"--font-heading-4-descender-height": px(theme2.font.heading.sizes[4].descenderHeight),
|
|
3197
|
+
"--font-heading-4-letter-spacing": px(theme2.font.heading.sizes[4].letterSpacing),
|
|
3198
|
+
"--font-heading-4-icon-size": px(theme2.font.heading.sizes[4].iconSize),
|
|
3199
|
+
"--font-heading-5-size": rem(theme2.font.heading.sizes[5].fontSize),
|
|
3200
|
+
"--font-heading-5-line-height": rem(theme2.font.heading.sizes[5].lineHeight),
|
|
3201
|
+
"--font-heading-5-ascender-height": px(theme2.font.heading.sizes[5].ascenderHeight),
|
|
3202
|
+
"--font-heading-5-descender-height": px(theme2.font.heading.sizes[5].descenderHeight),
|
|
3203
|
+
"--font-heading-5-letter-spacing": px(theme2.font.heading.sizes[5].letterSpacing),
|
|
3204
|
+
"--font-heading-5-icon-size": px(theme2.font.heading.sizes[5].iconSize),
|
|
3205
|
+
"--font-label-family": theme2.font.label.family,
|
|
3206
|
+
"--font-label-weight-regular": `${theme2.font.label.weights.regular}`,
|
|
3207
|
+
"--font-label-weight-medium": `${theme2.font.label.weights.medium}`,
|
|
3208
|
+
"--font-label-weight-semibold": `${theme2.font.label.weights.semibold}`,
|
|
3209
|
+
"--font-label-weight-bold": `${theme2.font.label.weights.bold}`,
|
|
3210
|
+
"--font-label-0-size": rem(theme2.font.label.sizes[0].fontSize),
|
|
3211
|
+
"--font-label-0-line-height": rem(theme2.font.label.sizes[0].lineHeight),
|
|
3212
|
+
"--font-label-0-ascender-height": px(theme2.font.label.sizes[0].ascenderHeight),
|
|
3213
|
+
"--font-label-0-descender-height": px(theme2.font.label.sizes[0].descenderHeight),
|
|
3214
|
+
"--font-label-0-letter-spacing": px(theme2.font.label.sizes[0].letterSpacing),
|
|
3215
|
+
"--font-label-0-icon-size": px(theme2.font.label.sizes[0].iconSize),
|
|
3216
|
+
"--font-label-1-size": rem(theme2.font.label.sizes[1].fontSize),
|
|
3217
|
+
"--font-label-1-line-height": rem(theme2.font.label.sizes[1].lineHeight),
|
|
3218
|
+
"--font-label-1-ascender-height": px(theme2.font.label.sizes[1].ascenderHeight),
|
|
3219
|
+
"--font-label-1-descender-height": px(theme2.font.label.sizes[1].descenderHeight),
|
|
3220
|
+
"--font-label-1-letter-spacing": px(theme2.font.label.sizes[1].letterSpacing),
|
|
3221
|
+
"--font-label-1-icon-size": px(theme2.font.label.sizes[1].iconSize),
|
|
3222
|
+
"--font-label-2-size": rem(theme2.font.label.sizes[2].fontSize),
|
|
3223
|
+
"--font-label-2-line-height": rem(theme2.font.label.sizes[2].lineHeight),
|
|
3224
|
+
"--font-label-2-ascender-height": px(theme2.font.label.sizes[2].ascenderHeight),
|
|
3225
|
+
"--font-label-2-descender-height": px(theme2.font.label.sizes[2].descenderHeight),
|
|
3226
|
+
"--font-label-2-letter-spacing": px(theme2.font.label.sizes[2].letterSpacing),
|
|
3227
|
+
"--font-label-2-icon-size": px(theme2.font.label.sizes[2].iconSize),
|
|
3228
|
+
"--font-label-3-size": rem(theme2.font.label.sizes[3].fontSize),
|
|
3229
|
+
"--font-label-3-line-height": rem(theme2.font.label.sizes[3].lineHeight),
|
|
3230
|
+
"--font-label-3-ascender-height": px(theme2.font.label.sizes[3].ascenderHeight),
|
|
3231
|
+
"--font-label-3-descender-height": px(theme2.font.label.sizes[3].descenderHeight),
|
|
3232
|
+
"--font-label-3-letter-spacing": px(theme2.font.label.sizes[3].letterSpacing),
|
|
3233
|
+
"--font-label-3-icon-size": px(theme2.font.label.sizes[3].iconSize),
|
|
3234
|
+
"--font-label-4-size": rem(theme2.font.label.sizes[4].fontSize),
|
|
3235
|
+
"--font-label-4-line-height": rem(theme2.font.label.sizes[4].lineHeight),
|
|
3236
|
+
"--font-label-4-ascender-height": px(theme2.font.label.sizes[4].ascenderHeight),
|
|
3237
|
+
"--font-label-4-descender-height": px(theme2.font.label.sizes[4].descenderHeight),
|
|
3238
|
+
"--font-label-4-letter-spacing": px(theme2.font.label.sizes[4].letterSpacing),
|
|
3239
|
+
"--font-label-4-icon-size": px(theme2.font.label.sizes[4].iconSize),
|
|
3240
|
+
"--font-label-5-size": rem(theme2.font.label.sizes[5].fontSize),
|
|
3241
|
+
"--font-label-5-line-height": rem(theme2.font.label.sizes[5].lineHeight),
|
|
3242
|
+
"--font-label-5-ascender-height": px(theme2.font.label.sizes[5].ascenderHeight),
|
|
3243
|
+
"--font-label-5-descender-height": px(theme2.font.label.sizes[5].descenderHeight),
|
|
3244
|
+
"--font-label-5-letter-spacing": px(theme2.font.label.sizes[5].letterSpacing),
|
|
3245
|
+
"--font-label-5-icon-size": px(theme2.font.label.sizes[5].iconSize),
|
|
3246
|
+
"--font-text-family": theme2.font.text.family,
|
|
3247
|
+
"--font-text-weight-regular": `${theme2.font.text.weights.regular}`,
|
|
3248
|
+
"--font-text-weight-medium": `${theme2.font.text.weights.medium}`,
|
|
3249
|
+
"--font-text-weight-semibold": `${theme2.font.text.weights.semibold}`,
|
|
3250
|
+
"--font-text-weight-bold": `${theme2.font.text.weights.bold}`,
|
|
3251
|
+
"--font-text-0-size": rem(theme2.font.text.sizes[0].fontSize),
|
|
3252
|
+
"--font-text-0-line-height": rem(theme2.font.text.sizes[0].lineHeight),
|
|
3253
|
+
"--font-text-0-ascender-height": px(theme2.font.text.sizes[0].ascenderHeight),
|
|
3254
|
+
"--font-text-0-descender-height": px(theme2.font.text.sizes[0].descenderHeight),
|
|
3255
|
+
"--font-text-0-letter-spacing": px(theme2.font.text.sizes[0].letterSpacing),
|
|
3256
|
+
"--font-text-0-icon-size": px(theme2.font.text.sizes[0].iconSize),
|
|
3257
|
+
"--font-text-1-size": rem(theme2.font.text.sizes[1].fontSize),
|
|
3258
|
+
"--font-text-1-line-height": rem(theme2.font.text.sizes[1].lineHeight),
|
|
3259
|
+
"--font-text-1-ascender-height": px(theme2.font.text.sizes[1].ascenderHeight),
|
|
3260
|
+
"--font-text-1-descender-height": px(theme2.font.text.sizes[1].descenderHeight),
|
|
3261
|
+
"--font-text-1-letter-spacing": px(theme2.font.text.sizes[1].letterSpacing),
|
|
3262
|
+
"--font-text-1-icon-size": px(theme2.font.text.sizes[1].iconSize),
|
|
3263
|
+
"--font-text-2-size": rem(theme2.font.text.sizes[2].fontSize),
|
|
3264
|
+
"--font-text-2-line-height": rem(theme2.font.text.sizes[2].lineHeight),
|
|
3265
|
+
"--font-text-2-ascender-height": px(theme2.font.text.sizes[2].ascenderHeight),
|
|
3266
|
+
"--font-text-2-descender-height": px(theme2.font.text.sizes[2].descenderHeight),
|
|
3267
|
+
"--font-text-2-letter-spacing": px(theme2.font.text.sizes[2].letterSpacing),
|
|
3268
|
+
"--font-text-2-icon-size": px(theme2.font.text.sizes[2].iconSize),
|
|
3269
|
+
"--font-text-3-size": rem(theme2.font.text.sizes[3].fontSize),
|
|
3270
|
+
"--font-text-3-line-height": rem(theme2.font.text.sizes[3].lineHeight),
|
|
3271
|
+
"--font-text-3-ascender-height": px(theme2.font.text.sizes[3].ascenderHeight),
|
|
3272
|
+
"--font-text-3-descender-height": px(theme2.font.text.sizes[3].descenderHeight),
|
|
3273
|
+
"--font-text-3-letter-spacing": px(theme2.font.text.sizes[3].letterSpacing),
|
|
3274
|
+
"--font-text-3-icon-size": px(theme2.font.text.sizes[3].iconSize),
|
|
3275
|
+
"--font-text-4-size": rem(theme2.font.text.sizes[4].fontSize),
|
|
3276
|
+
"--font-text-4-line-height": rem(theme2.font.text.sizes[4].lineHeight),
|
|
3277
|
+
"--font-text-4-ascender-height": px(theme2.font.text.sizes[4].ascenderHeight),
|
|
3278
|
+
"--font-text-4-descender-height": px(theme2.font.text.sizes[4].descenderHeight),
|
|
3279
|
+
"--font-text-4-letter-spacing": px(theme2.font.text.sizes[4].letterSpacing),
|
|
3280
|
+
"--font-text-4-icon-size": px(theme2.font.text.sizes[4].iconSize),
|
|
3281
|
+
"--input-border-width": px(theme2.input.border.width),
|
|
3282
|
+
"--input-checkbox-focus-ring-offset": px(theme2.input.checkbox.focusRing.offset),
|
|
3283
|
+
"--input-checkbox-focus-ring-width": px(theme2.input.checkbox.focusRing.width),
|
|
3284
|
+
"--input-checkbox-size": px(theme2.input.checkbox.size),
|
|
3285
|
+
"--input-radio-focus-ring-offset": px(theme2.input.radio.focusRing.offset),
|
|
3286
|
+
"--input-radio-focus-ring-width": px(theme2.input.radio.focusRing.width),
|
|
3287
|
+
"--input-radio-mark-size": px(theme2.input.radio.markSize),
|
|
3288
|
+
"--input-radio-size": px(theme2.input.radio.size),
|
|
3289
|
+
"--input-select-focus-ring-offset": px(theme2.input.select.focusRing.offset),
|
|
3290
|
+
"--input-select-focus-ring-width": px(theme2.input.select.focusRing.width),
|
|
3291
|
+
"--input-switch-focus-ring-offset": px(theme2.input.switch.focusRing.offset),
|
|
3292
|
+
"--input-switch-focus-ring-width": px(theme2.input.switch.focusRing.width),
|
|
3293
|
+
"--input-switch-width": px(theme2.input.switch.width),
|
|
3294
|
+
"--input-switch-height": px(theme2.input.switch.height),
|
|
3295
|
+
"--input-switch-padding": px(theme2.input.switch.padding),
|
|
3296
|
+
"--input-switch-transition-duration-ms": px(theme2.input.switch.transitionDurationMs),
|
|
3297
|
+
"--input-switch-transition-timing-function": theme2.input.switch.transitionTimingFunction,
|
|
3298
|
+
"--input-text-focus-ring-offset": px(theme2.input.text.focusRing.offset),
|
|
3299
|
+
"--input-text-focus-ring-width": px(theme2.input.text.focusRing.width),
|
|
3300
|
+
"--container-0": px(theme2.container[0]),
|
|
3301
|
+
"--container-1": px(theme2.container[1]),
|
|
3302
|
+
"--container-2": px(theme2.container[2]),
|
|
3303
|
+
"--container-3": px(theme2.container[3]),
|
|
3304
|
+
"--container-4": px(theme2.container[4]),
|
|
3305
|
+
"--container-5": px(theme2.container[5]),
|
|
3306
|
+
"--radius-0": px(theme2.radius[0]),
|
|
3307
|
+
"--radius-1": px(theme2.radius[1]),
|
|
3308
|
+
"--radius-2": px(theme2.radius[2]),
|
|
3309
|
+
"--radius-3": px(theme2.radius[3]),
|
|
3310
|
+
"--radius-4": px(theme2.radius[4]),
|
|
3311
|
+
"--radius-5": px(theme2.radius[5]),
|
|
3312
|
+
"--radius-6": px(theme2.radius[6]),
|
|
3313
|
+
[varNames.space[0]]: rem(theme2.space[0]),
|
|
3314
|
+
[varNames.space[0.5]]: `calc(${rem(theme2.space[1])} / 2)`,
|
|
3315
|
+
[varNames.space[1]]: rem(theme2.space[1]),
|
|
3316
|
+
[varNames.space[2]]: rem(theme2.space[2]),
|
|
3317
|
+
[varNames.space[3]]: rem(theme2.space[3]),
|
|
3318
|
+
[varNames.space[4]]: rem(theme2.space[4]),
|
|
3319
|
+
[varNames.space[5]]: rem(theme2.space[5]),
|
|
3320
|
+
[varNames.space[6]]: rem(theme2.space[6]),
|
|
3321
|
+
[varNames.space[7]]: rem(theme2.space[7]),
|
|
3322
|
+
[varNames.space[8]]: rem(theme2.space[8]),
|
|
3323
|
+
[varNames.space[9]]: rem(theme2.space[9]),
|
|
3324
|
+
"--shadow-0-umbra": toBoxShadow(theme2.shadow[0]?.umbra),
|
|
3325
|
+
//`${theme.shadow[0]?.umbra || 'none'}`,
|
|
3326
|
+
"--shadow-0-penumbra": toBoxShadow(theme2.shadow[0]?.penumbra),
|
|
3327
|
+
"--shadow-0-ambient": toBoxShadow(theme2.shadow[0]?.ambient),
|
|
3328
|
+
"--shadow-1-umbra": toBoxShadow(theme2.shadow[1]?.umbra),
|
|
3329
|
+
"--shadow-1-penumbra": toBoxShadow(theme2.shadow[1]?.penumbra),
|
|
3330
|
+
"--shadow-1-ambient": toBoxShadow(theme2.shadow[1]?.ambient),
|
|
3331
|
+
"--shadow-2-umbra": toBoxShadow(theme2.shadow[2]?.umbra),
|
|
3332
|
+
"--shadow-2-penumbra": toBoxShadow(theme2.shadow[2]?.penumbra),
|
|
3333
|
+
"--shadow-2-ambient": toBoxShadow(theme2.shadow[2]?.ambient),
|
|
3334
|
+
"--shadow-3-umbra": toBoxShadow(theme2.shadow[3]?.umbra),
|
|
3335
|
+
"--shadow-3-penumbra": toBoxShadow(theme2.shadow[3]?.penumbra),
|
|
3336
|
+
"--shadow-3-ambient": toBoxShadow(theme2.shadow[3]?.ambient),
|
|
3337
|
+
"--shadow-4-umbra": toBoxShadow(theme2.shadow[4]?.umbra),
|
|
3338
|
+
"--shadow-4-penumbra": toBoxShadow(theme2.shadow[4]?.penumbra),
|
|
3339
|
+
"--shadow-4-ambient": toBoxShadow(theme2.shadow[4]?.ambient),
|
|
3340
|
+
"--shadow-5-umbra": toBoxShadow(theme2.shadow[5]?.umbra),
|
|
3341
|
+
"--shadow-5-penumbra": toBoxShadow(theme2.shadow[5]?.penumbra),
|
|
3342
|
+
"--shadow-5-ambient": toBoxShadow(theme2.shadow[5]?.ambient),
|
|
3343
|
+
...Object.fromEntries(getThemeEntries(theme2.color, ["color"]))
|
|
3344
|
+
}), compileCardCss({
|
|
3345
|
+
scheme: "dark",
|
|
3346
|
+
tone: "transparent"
|
|
3347
|
+
}), compileCardCss({
|
|
3348
|
+
scheme: "dark",
|
|
3349
|
+
tone: "default"
|
|
3350
|
+
}), compileCardCss({
|
|
3351
|
+
scheme: "dark",
|
|
3352
|
+
tone: "primary"
|
|
3353
|
+
}), compileCardCss({
|
|
3354
|
+
scheme: "dark",
|
|
3355
|
+
tone: "positive"
|
|
3356
|
+
}), compileCardCss({
|
|
3357
|
+
scheme: "dark",
|
|
3358
|
+
tone: "caution"
|
|
3359
|
+
}), compileCardCss({
|
|
3360
|
+
scheme: "dark",
|
|
3361
|
+
tone: "critical"
|
|
3362
|
+
}), compileCardCss({
|
|
3363
|
+
scheme: "light",
|
|
3364
|
+
tone: "transparent"
|
|
3365
|
+
}), compileCardCss({
|
|
3366
|
+
scheme: "light",
|
|
3367
|
+
tone: "default"
|
|
3368
|
+
}), compileCardCss({
|
|
3369
|
+
scheme: "light",
|
|
3370
|
+
tone: "primary"
|
|
3371
|
+
}), compileCardCss({
|
|
3372
|
+
scheme: "light",
|
|
3373
|
+
tone: "positive"
|
|
3374
|
+
}), compileCardCss({
|
|
3375
|
+
scheme: "light",
|
|
3376
|
+
tone: "caution"
|
|
3377
|
+
}), compileCardCss({
|
|
3378
|
+
scheme: "light",
|
|
3379
|
+
tone: "critical"
|
|
3380
|
+
})].join(`
|
|
2682
3381
|
|
|
2683
3382
|
`);
|
|
2684
3383
|
}
|
|
2685
3384
|
function compileCardCss(props) {
|
|
2686
|
-
const {
|
|
3385
|
+
const {
|
|
3386
|
+
scheme,
|
|
3387
|
+
tone
|
|
3388
|
+
} = props, cardVars = vars.color[scheme][tone];
|
|
2687
3389
|
return compileRule(`.card[data-scheme="${scheme}"][data-tone="${tone}"]`, {
|
|
2688
3390
|
"--color-accent-fg": cardVars.accent.fg,
|
|
2689
3391
|
...theme.THEME_COLOR_AVATAR_COLORS.reduce((acc, color) => ({
|
|
@@ -2844,8 +3546,8 @@ function dialogContent() {
|
|
|
2844
3546
|
function dialogFooter() {
|
|
2845
3547
|
return composeClassNames("dialog-footer");
|
|
2846
3548
|
}
|
|
2847
|
-
function
|
|
2848
|
-
return composeClassNames("
|
|
3549
|
+
function menuDivider() {
|
|
3550
|
+
return composeClassNames("menu-divider");
|
|
2849
3551
|
}
|
|
2850
3552
|
function _resp(prefix, prop) {
|
|
2851
3553
|
if (prop !== void 0)
|
|
@@ -2854,13 +3556,29 @@ function _resp(prefix, prop) {
|
|
|
2854
3556
|
return index === 0 ? `${className}` : `_${index}:${className}`;
|
|
2855
3557
|
}).join(" ") : (typeof prop == "boolean" ? [prefix] : [prefix, prop]).filter((s) => s === 0 || !!s).join("-").replace(/\./g, "_");
|
|
2856
3558
|
}
|
|
3559
|
+
function radius(props) {
|
|
3560
|
+
return composeClassNames(_resp("r", props.radius));
|
|
3561
|
+
}
|
|
3562
|
+
function skeleton(props) {
|
|
3563
|
+
return composeClassNames("skeleton", radius(props));
|
|
3564
|
+
}
|
|
3565
|
+
function codeSkeleton(props) {
|
|
3566
|
+
return composeClassNames("font-skeleton", _resp("code-skeleton", props.size));
|
|
3567
|
+
}
|
|
3568
|
+
function headingSkeleton(props) {
|
|
3569
|
+
return composeClassNames("font-skeleton", _resp("heading-skeleton", props.size));
|
|
3570
|
+
}
|
|
3571
|
+
function labelSkeleton(props) {
|
|
3572
|
+
return composeClassNames("font-skeleton", _resp("label-skeleton", props.size));
|
|
3573
|
+
}
|
|
3574
|
+
function textSkeleton(props) {
|
|
3575
|
+
return composeClassNames("font-skeleton", _resp("text-skeleton", props.size));
|
|
3576
|
+
}
|
|
3577
|
+
function treeItem() {
|
|
3578
|
+
return composeClassNames("tree-item");
|
|
3579
|
+
}
|
|
2857
3580
|
function avatar(props) {
|
|
2858
|
-
return composeClassNames(
|
|
2859
|
-
"avatar",
|
|
2860
|
-
`avatar-${props.color}`,
|
|
2861
|
-
`avatar-arrow-${props.arrowPosition}`,
|
|
2862
|
-
_resp("avatar", props.size)
|
|
2863
|
-
);
|
|
3581
|
+
return composeClassNames("avatar", `avatar-${props.color}`, `avatar-arrow-${props.arrowPosition}`, _resp("avatar", props.size));
|
|
2864
3582
|
}
|
|
2865
3583
|
function avatarArrow() {
|
|
2866
3584
|
return composeClassNames("avatar-arrow");
|
|
@@ -2877,9 +3595,6 @@ function avatarStroke() {
|
|
|
2877
3595
|
function avatarImage() {
|
|
2878
3596
|
return composeClassNames("avatar-image");
|
|
2879
3597
|
}
|
|
2880
|
-
function radius(props) {
|
|
2881
|
-
return composeClassNames(_resp("r", props.radius));
|
|
2882
|
-
}
|
|
2883
3598
|
function badge(props) {
|
|
2884
3599
|
return composeClassNames("badge", props.tone && `badge-${props.tone}`, radius(props));
|
|
2885
3600
|
}
|
|
@@ -2894,12 +3609,7 @@ const prefixes$2 = {
|
|
|
2894
3609
|
// `flex-wrap`
|
|
2895
3610
|
};
|
|
2896
3611
|
function flex(props) {
|
|
2897
|
-
return composeClassNames(
|
|
2898
|
-
_resp(prefixes$2.align, props.align),
|
|
2899
|
-
_resp(prefixes$2.direction, props.direction),
|
|
2900
|
-
_resp(prefixes$2.justify, props.justify),
|
|
2901
|
-
_resp(prefixes$2.wrap, props.wrap)
|
|
2902
|
-
);
|
|
3612
|
+
return composeClassNames(_resp(prefixes$2.align, props.align), _resp(prefixes$2.direction, props.direction), _resp(prefixes$2.justify, props.justify), _resp(prefixes$2.wrap, props.wrap));
|
|
2903
3613
|
}
|
|
2904
3614
|
function flexItem(props) {
|
|
2905
3615
|
return composeClassNames(_resp("flex", props.flex));
|
|
@@ -2907,40 +3617,23 @@ function flexItem(props) {
|
|
|
2907
3617
|
function gap(props) {
|
|
2908
3618
|
return composeClassNames(_resp("g", props.gap), _resp("gx", props.gapX), _resp("gy", props.gapY));
|
|
2909
3619
|
}
|
|
3620
|
+
function grid(props) {
|
|
3621
|
+
return composeClassNames(_resp("auto-cols", props.autoCols), _resp("auto-rows", props.autoRows), _resp("auto-flow", props.autoFlow), _resp("columns", props.columns), _resp("rows", props.rows));
|
|
3622
|
+
}
|
|
2910
3623
|
function gridItem(props) {
|
|
2911
|
-
return composeClassNames(
|
|
2912
|
-
_resp("col", props.column),
|
|
2913
|
-
_resp("col-start", props.columnStart),
|
|
2914
|
-
_resp("col-end", props.columnEnd),
|
|
2915
|
-
_resp("row", props.row),
|
|
2916
|
-
_resp("row-start", props.rowStart),
|
|
2917
|
-
_resp("row-end", props.rowEnd)
|
|
2918
|
-
);
|
|
3624
|
+
return composeClassNames(_resp("col", props.column), _resp("col-start", props.columnStart), _resp("col-end", props.columnEnd), _resp("row", props.row), _resp("row-start", props.rowStart), _resp("row-end", props.rowEnd));
|
|
2919
3625
|
}
|
|
2920
3626
|
function margin(props) {
|
|
2921
|
-
return composeClassNames(
|
|
2922
|
-
_resp("m", props.margin),
|
|
2923
|
-
_resp("mx", props.marginX),
|
|
2924
|
-
_resp("my", props.marginY),
|
|
2925
|
-
_resp("mt", props.marginTop),
|
|
2926
|
-
_resp("mr", props.marginRight),
|
|
2927
|
-
_resp("mb", props.marginBottom),
|
|
2928
|
-
_resp("ml", props.marginLeft)
|
|
2929
|
-
);
|
|
3627
|
+
return composeClassNames(_resp("m", props.margin), _resp("mx", props.marginX), _resp("my", props.marginY), _resp("mt", props.marginTop), _resp("mr", props.marginRight), _resp("mb", props.marginBottom), _resp("ml", props.marginLeft));
|
|
2930
3628
|
}
|
|
2931
3629
|
function maxWidth(props) {
|
|
2932
3630
|
return _resp("max-w", props.maxWidth) ?? "";
|
|
2933
3631
|
}
|
|
3632
|
+
function overflow(props) {
|
|
3633
|
+
return composeClassNames(_resp("overflow", props.overflow), _resp("overflow-x", props.overflowX), _resp("overflow-y", props.overflowY));
|
|
3634
|
+
}
|
|
2934
3635
|
function padding(props) {
|
|
2935
|
-
return composeClassNames(
|
|
2936
|
-
_resp("p", props.padding),
|
|
2937
|
-
_resp("px", props.paddingX),
|
|
2938
|
-
_resp("py", props.paddingY),
|
|
2939
|
-
_resp("pt", props.paddingTop),
|
|
2940
|
-
_resp("pr", props.paddingRight),
|
|
2941
|
-
_resp("pb", props.paddingBottom),
|
|
2942
|
-
_resp("pl", props.paddingLeft)
|
|
2943
|
-
);
|
|
3636
|
+
return composeClassNames(_resp("p", props.padding), _resp("px", props.paddingX), _resp("py", props.paddingY), _resp("pt", props.paddingTop), _resp("pr", props.paddingRight), _resp("pb", props.paddingBottom), _resp("pl", props.paddingLeft));
|
|
2944
3637
|
}
|
|
2945
3638
|
function pointerEvents(props) {
|
|
2946
3639
|
return composeClassNames(props.pointerEvents && `pointer-events-${props.pointerEvents}`);
|
|
@@ -2952,33 +3645,14 @@ function width(props) {
|
|
|
2952
3645
|
return _resp("w", props.width) ?? "";
|
|
2953
3646
|
}
|
|
2954
3647
|
function box(props) {
|
|
2955
|
-
return composeClassNames(
|
|
2956
|
-
"box",
|
|
2957
|
-
_resp(void 0, props.display),
|
|
2958
|
-
_resp("h", props.height),
|
|
2959
|
-
_resp("overflow", props.overflow),
|
|
2960
|
-
_resp("box", props.sizing),
|
|
2961
|
-
flex(props),
|
|
2962
|
-
flexItem(props),
|
|
2963
|
-
gridItem(props),
|
|
2964
|
-
gap(props),
|
|
2965
|
-
margin(props),
|
|
2966
|
-
maxWidth(props),
|
|
2967
|
-
padding(props),
|
|
2968
|
-
pointerEvents(props),
|
|
2969
|
-
position(props),
|
|
2970
|
-
width(props)
|
|
2971
|
-
);
|
|
3648
|
+
return composeClassNames("box", _resp(void 0, props.display), _resp("h", props.height), _resp("box", props.sizing), flex(props), flexItem(props), grid(props), gridItem(props), gap(props), margin(props), maxWidth(props), props.outline && `outline-${props.outline}`, overflow(props), padding(props), pointerEvents(props), position(props), width(props));
|
|
2972
3649
|
}
|
|
2973
3650
|
function button(props) {
|
|
2974
|
-
const {
|
|
2975
|
-
|
|
2976
|
-
"
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
radius(props),
|
|
2980
|
-
width(props)
|
|
2981
|
-
);
|
|
3651
|
+
const {
|
|
3652
|
+
mode = "default",
|
|
3653
|
+
tone = "default"
|
|
3654
|
+
} = props;
|
|
3655
|
+
return composeClassNames("button", `button-mode-${mode}`, `button-tone-${tone}`, radius(props), width(props));
|
|
2982
3656
|
}
|
|
2983
3657
|
function buttonLoadingBox() {
|
|
2984
3658
|
return "button-loading-box";
|
|
@@ -2991,23 +3665,10 @@ const prefixes$1 = {
|
|
|
2991
3665
|
borderLeft: "border-l"
|
|
2992
3666
|
};
|
|
2993
3667
|
function border(props) {
|
|
2994
|
-
return composeClassNames(
|
|
2995
|
-
_resp(prefixes$1.border, props.border),
|
|
2996
|
-
_resp(prefixes$1.borderTop, props.borderTop),
|
|
2997
|
-
_resp(prefixes$1.borderRight, props.borderRight),
|
|
2998
|
-
_resp(prefixes$1.borderBottom, props.borderBottom),
|
|
2999
|
-
_resp(prefixes$1.borderLeft, props.borderLeft)
|
|
3000
|
-
);
|
|
3668
|
+
return composeClassNames(_resp(prefixes$1.border, props.border), _resp(prefixes$1.borderTop, props.borderTop), _resp(prefixes$1.borderRight, props.borderRight), _resp(prefixes$1.borderBottom, props.borderBottom), _resp(prefixes$1.borderLeft, props.borderLeft));
|
|
3001
3669
|
}
|
|
3002
3670
|
function card(props) {
|
|
3003
|
-
return composeClassNames(
|
|
3004
|
-
"card",
|
|
3005
|
-
props.checkered && "card-checkered",
|
|
3006
|
-
box(props),
|
|
3007
|
-
border(props),
|
|
3008
|
-
radius(props),
|
|
3009
|
-
props.shadow === void 0 ? void 0 : `shadow-${props.shadow}`
|
|
3010
|
-
);
|
|
3671
|
+
return composeClassNames("card", props.checkered && "card-checkered", box(props), border(props), radius(props), props.shadow === void 0 ? void 0 : `shadow-${props.shadow}`);
|
|
3011
3672
|
}
|
|
3012
3673
|
function checkbox() {
|
|
3013
3674
|
return composeClassNames("checkbox");
|
|
@@ -3016,39 +3677,28 @@ function checkboxInput() {
|
|
|
3016
3677
|
return composeClassNames("checkbox-input");
|
|
3017
3678
|
}
|
|
3018
3679
|
const prefixes = {
|
|
3680
|
+
align: "text-align",
|
|
3019
3681
|
weight: "font"
|
|
3020
3682
|
};
|
|
3021
3683
|
function font(props) {
|
|
3022
|
-
return composeClassNames("font", _resp(prefixes.
|
|
3684
|
+
return composeClassNames("font", props.weight && `${prefixes.weight}-${props.weight}`, _resp(prefixes.align, props.align));
|
|
3023
3685
|
}
|
|
3024
3686
|
function code(props) {
|
|
3025
3687
|
return composeClassNames("code", "block", font(props), _resp("code", props.size));
|
|
3026
3688
|
}
|
|
3027
3689
|
function container(props) {
|
|
3028
|
-
return composeClassNames("container", maxWidth({
|
|
3690
|
+
return composeClassNames("container", maxWidth({
|
|
3691
|
+
maxWidth: props.width
|
|
3692
|
+
}));
|
|
3029
3693
|
}
|
|
3030
3694
|
function heading(props) {
|
|
3031
|
-
return composeClassNames(
|
|
3032
|
-
"heading",
|
|
3033
|
-
"block",
|
|
3034
|
-
font(props),
|
|
3035
|
-
props.accent && "heading-accent",
|
|
3036
|
-
props.muted && "heading-muted",
|
|
3037
|
-
_resp("heading", props.size)
|
|
3038
|
-
);
|
|
3695
|
+
return composeClassNames("heading", "block", font(props), props.accent && "heading-accent", props.muted && "heading-muted", _resp("heading", props.size));
|
|
3039
3696
|
}
|
|
3040
3697
|
function kbd(props) {
|
|
3041
3698
|
return composeClassNames("kbd", radius(props));
|
|
3042
3699
|
}
|
|
3043
3700
|
function label(props) {
|
|
3044
|
-
return composeClassNames(
|
|
3045
|
-
"label",
|
|
3046
|
-
"block",
|
|
3047
|
-
font(props),
|
|
3048
|
-
props.accent && "label-accent",
|
|
3049
|
-
props.muted && "label-muted",
|
|
3050
|
-
_resp("label", props.size)
|
|
3051
|
-
);
|
|
3701
|
+
return composeClassNames("label", "block", font(props), props.accent && "label-accent", props.muted && "label-muted", _resp("label", props.size));
|
|
3052
3702
|
}
|
|
3053
3703
|
function popover() {
|
|
3054
3704
|
return composeClassNames("popover");
|
|
@@ -3060,30 +3710,31 @@ function select() {
|
|
|
3060
3710
|
return composeClassNames("select");
|
|
3061
3711
|
}
|
|
3062
3712
|
function selectable(props) {
|
|
3063
|
-
const {
|
|
3713
|
+
const {
|
|
3714
|
+
tone = "default"
|
|
3715
|
+
} = props;
|
|
3064
3716
|
return composeClassNames("selectable", `selectable-tone-${tone}`, radius(props));
|
|
3065
3717
|
}
|
|
3066
3718
|
function spinner() {
|
|
3067
3719
|
return composeClassNames("spinner");
|
|
3068
3720
|
}
|
|
3721
|
+
function animatedSpinnerIcon() {
|
|
3722
|
+
return composeClassNames("animated-spinner-icon");
|
|
3723
|
+
}
|
|
3069
3724
|
function _switch() {
|
|
3070
3725
|
return composeClassNames("switch");
|
|
3071
3726
|
}
|
|
3072
3727
|
function text(props) {
|
|
3073
|
-
return composeClassNames(
|
|
3074
|
-
"text",
|
|
3075
|
-
"block",
|
|
3076
|
-
font(props),
|
|
3077
|
-
props.accent && "text-accent",
|
|
3078
|
-
props.muted && "text-muted",
|
|
3079
|
-
_resp("text", props.size)
|
|
3080
|
-
);
|
|
3728
|
+
return composeClassNames("text", "block", font(props), props.accent && "text-accent", props.muted && "text-muted", _resp("text", props.size));
|
|
3081
3729
|
}
|
|
3082
3730
|
function textArea() {
|
|
3083
3731
|
return composeClassNames("text-area");
|
|
3084
3732
|
}
|
|
3085
3733
|
function textInput(props) {
|
|
3086
|
-
return composeClassNames("text-input", _resp("text-input", props.size));
|
|
3734
|
+
return composeClassNames("text-input", _resp("text-input", props.size), _resp("text-input-p", props.padding));
|
|
3735
|
+
}
|
|
3736
|
+
function textInputElement() {
|
|
3737
|
+
return composeClassNames("text-input-element");
|
|
3087
3738
|
}
|
|
3088
3739
|
function tooltip() {
|
|
3089
3740
|
return composeClassNames("tooltip");
|
|
@@ -3092,6 +3743,7 @@ function tooltipCard() {
|
|
|
3092
3743
|
return composeClassNames("tooltip-card");
|
|
3093
3744
|
}
|
|
3094
3745
|
exports._switch = _switch;
|
|
3746
|
+
exports.animatedSpinnerIcon = animatedSpinnerIcon;
|
|
3095
3747
|
exports.avatar = avatar;
|
|
3096
3748
|
exports.avatarArrow = avatarArrow;
|
|
3097
3749
|
exports.avatarBgStroke = avatarBgStroke;
|
|
@@ -3107,6 +3759,7 @@ exports.card = card;
|
|
|
3107
3759
|
exports.checkbox = checkbox;
|
|
3108
3760
|
exports.checkboxInput = checkboxInput;
|
|
3109
3761
|
exports.code = code;
|
|
3762
|
+
exports.codeSkeleton = codeSkeleton;
|
|
3110
3763
|
exports.compileSystem = compileSystem;
|
|
3111
3764
|
exports.compileTheme = compileTheme;
|
|
3112
3765
|
exports.composeClassNames = composeClassNames;
|
|
@@ -3119,16 +3772,22 @@ exports.dialogFooter = dialogFooter;
|
|
|
3119
3772
|
exports.dialogHeader = dialogHeader;
|
|
3120
3773
|
exports.dialogLayout = dialogLayout;
|
|
3121
3774
|
exports.heading = heading;
|
|
3775
|
+
exports.headingSkeleton = headingSkeleton;
|
|
3122
3776
|
exports.kbd = kbd;
|
|
3123
3777
|
exports.label = label;
|
|
3778
|
+
exports.labelSkeleton = labelSkeleton;
|
|
3779
|
+
exports.menuDivider = menuDivider;
|
|
3124
3780
|
exports.popover = popover;
|
|
3125
3781
|
exports.radio = radio;
|
|
3126
3782
|
exports.select = select;
|
|
3127
3783
|
exports.selectable = selectable;
|
|
3784
|
+
exports.skeleton = skeleton;
|
|
3128
3785
|
exports.spinner = spinner;
|
|
3129
3786
|
exports.text = text;
|
|
3130
3787
|
exports.textArea = textArea;
|
|
3131
3788
|
exports.textInput = textInput;
|
|
3789
|
+
exports.textInputElement = textInputElement;
|
|
3790
|
+
exports.textSkeleton = textSkeleton;
|
|
3132
3791
|
exports.tooltip = tooltip;
|
|
3133
3792
|
exports.tooltipCard = tooltipCard;
|
|
3134
3793
|
exports.treeItem = treeItem;
|