@sanity/ui 3.0.0-static.10 → 3.0.0-static.12
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/_visual-editing.js +1300 -1269
- package/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/buildCommand.js +28 -10
- package/dist/_chunks-cjs/buildCommand.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs +1298 -1263
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +516 -360
- package/dist/_visual-editing.d.ts +516 -360
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +258 -75
- package/dist/css.d.ts +258 -75
- package/dist/css.js +746 -752
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +748 -754
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +1342 -871
- package/dist/index.d.ts +1342 -871
- package/dist/index.js +433 -325
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +429 -321
- package/dist/index.mjs.map +1 -1
- package/dist/sanity-palette.css +105 -1
- package/dist/sanity-palette.min.css +1 -0
- package/dist/sanity-theme.css +4571 -1
- package/dist/sanity-theme.min.css +1 -0
- package/dist/system.css +22053 -21710
- package/dist/system.min.css +1 -0
- package/dist/theme.d.mts +51 -106
- package/dist/theme.d.ts +51 -106
- package/dist/theme.js +19 -20
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +19 -20
- package/dist/theme.mjs.map +1 -1
- package/package.json +10 -5
- package/src/cli/buildCommand.ts +46 -19
- package/src/css/_comp.ts +2 -2
- package/src/css/{compile/compileStyle.ts → _compileStyle.ts} +7 -7
- package/src/css/_resp.ts +0 -1
- package/src/css/{system.style.ts → _system.style.ts} +3 -2
- package/src/css/aspects/display/display.ts +1 -0
- package/src/css/aspects/display/types.ts +2 -3
- package/src/css/aspects/flex/types.ts +4 -12
- package/src/css/aspects/flexItem/types.ts +1 -3
- package/src/css/aspects/font/font.style.ts +7 -66
- package/src/css/aspects/font/types.ts +1 -3
- package/src/css/aspects/grid/grid.ts +1 -0
- package/src/css/aspects/grid/types.ts +5 -9
- package/src/css/aspects/gridItem/gridItem.ts +1 -1
- package/src/css/aspects/gridItem/types.ts +7 -18
- package/src/css/aspects/height/height.ts +3 -4
- package/src/css/aspects/inset/inset.ts +1 -0
- package/src/css/aspects/margin/margin.ts +1 -0
- package/src/css/aspects/margin/types.ts +1 -0
- package/src/css/aspects/maxWidth/maxWidth.ts +1 -0
- package/src/css/aspects/maxWidth/types.ts +1 -0
- package/src/css/aspects/minWidth/minWidth.ts +1 -0
- package/src/css/aspects/minWidth/types.ts +2 -0
- package/src/css/aspects/overflow/overflow.ts +1 -0
- package/src/css/aspects/padding/padding.ts +1 -0
- package/src/css/aspects/pointerEvents/pointerEvents.ts +1 -0
- package/src/css/aspects/position/position.ts +1 -0
- package/src/css/aspects/shadow/shadow.style.ts +16 -41
- package/src/css/aspects/shadow/shadow.ts +1 -0
- package/src/css/aspects/textOverflow/textOverflow.ts +1 -0
- package/src/css/aspects/textOverflow/types.ts +1 -0
- package/src/css/aspects/width/types.ts +2 -0
- package/src/css/aspects/width/width.ts +1 -0
- package/src/css/compilePalette.ts +32 -0
- package/src/css/compileSystem.ts +7 -0
- package/src/css/{compile/compileTheme.ts → compileTheme.ts} +1 -0
- package/src/css/compileTheme_v3.ts +434 -0
- package/src/css/components/breadcrumbs/breadcrumbs.ts +1 -0
- package/src/css/components/dialog/dialog.ts +7 -0
- package/src/css/components/menu/menu.ts +2 -0
- package/src/css/components/skeleton/skeleton.style.ts +8 -4
- package/src/css/components/skeleton/skeleton.ts +4 -0
- package/src/css/components/skeleton/types.ts +4 -0
- package/src/css/components/toast/toast.ts +5 -0
- package/src/css/components/tree/tree.ts +1 -0
- package/src/css/composeClassNames.ts +4 -2
- package/src/css/constants.ts +11 -0
- package/src/css/index.ts +4 -3
- package/src/css/primitives/_arrow/_arrow.style.ts +6 -8
- package/src/css/primitives/_arrow/_arrow.ts +7 -0
- package/src/css/primitives/_input/input.ts +2 -0
- package/src/css/primitives/_selectable/_selectable.style.ts +24 -25
- package/src/css/primitives/_selectable/selectable.ts +1 -2
- package/src/css/primitives/avatar/avatar.style.ts +5 -8
- package/src/css/primitives/avatar/avatar.ts +6 -0
- package/src/css/primitives/avatar/types.ts +1 -0
- package/src/css/primitives/box/types.ts +1 -3
- package/src/css/primitives/button/button.style.ts +48 -15
- package/src/css/primitives/button/button.ts +4 -21
- package/src/css/primitives/button/index.ts +1 -0
- package/src/css/primitives/button/types.ts +18 -0
- package/src/css/primitives/card/card.style.ts +4 -7
- package/src/css/primitives/card/card.ts +2 -2
- package/src/css/primitives/card/types.ts +2 -2
- package/src/css/primitives/checkbox/checkbox.ts +2 -0
- package/src/css/primitives/container/container.ts +1 -0
- package/src/css/primitives/container/types.ts +1 -0
- package/src/css/primitives/kbd/kbd.ts +1 -0
- package/src/css/primitives/label/types.ts +7 -2
- package/src/css/primitives/popover/popover.ts +2 -0
- package/src/css/primitives/radio/radio.ts +1 -0
- package/src/css/primitives/select/select.ts +2 -0
- package/src/css/primitives/spinner/spinner.ts +2 -0
- package/src/css/primitives/switch/switch.ts +5 -0
- package/src/css/primitives/text/types.ts +4 -0
- package/src/css/primitives/textArea/textArea.ts +1 -0
- package/src/css/primitives/textInput/textInput.ts +1 -0
- package/src/css/primitives/token/token.style.ts +37 -36
- package/src/css/primitives/tooltip/tooltip.ts +2 -0
- package/src/css/responsiveRules.ts +12 -19
- package/src/css/scopeClassName.ts +1 -0
- package/src/css/types.ts +115 -15
- package/src/css/util.ts +5 -0
- package/src/css/utils/srOnly/srOnly.ts +1 -0
- package/src/css/varNames.ts +230 -143
- package/src/css/vars.ts +53 -22
- package/src/theme/palette/constants.ts +2 -0
- package/src/theme/palette/types.ts +3 -0
- package/src/theme/types.ts +2 -6
- package/src/theme/v0/focusRing.ts +1 -3
- package/src/theme/v0/font.ts +6 -18
- package/src/theme/v0/layer.ts +1 -3
- package/src/theme/v0/shadow.ts +2 -6
- package/src/theme/v2/avatar.ts +1 -3
- package/src/theme/v2/color/_system.ts +1 -3
- package/src/theme/v2/color/avatar.ts +2 -6
- package/src/theme/v2/color/badge.ts +2 -6
- package/src/theme/v2/color/button.ts +3 -9
- package/src/theme/v2/color/color.ts +3 -9
- package/src/theme/v2/color/input.ts +3 -9
- package/src/theme/v2/color/kbd.ts +1 -3
- package/src/theme/v2/color/selectable.ts +2 -6
- package/src/theme/v2/color/state.ts +1 -3
- package/src/theme/v2/color/syntax.ts +1 -3
- package/src/theme/v2/input.ts +1 -3
- package/src/theme/v2/theme.ts +2 -6
- package/src/theme/v3/buildTheme_v3.ts +2 -1
- package/src/theme/v3/color/color.ts +6 -4
- package/src/theme/v3/color/renderColor.ts +4 -1
- package/src/theme/v3/{defaults.ts → defaultTokens.ts} +2 -2
- package/src/theme/v3/index.ts +1 -1
- package/src/theme/v3/resolveTokens.ts +18 -18
- package/src/ui/RootClassNames.tsx +44 -0
- package/src/ui/StyleTags.tsx +3 -1
- package/src/ui/_compat/helpers.ts +72 -0
- package/src/ui/_compat/index.ts +2 -6
- package/src/ui/_compat/studioTheme.ts +7 -0
- package/src/ui/_compat/theme/themeColorProvider.tsx +2 -6
- package/src/ui/_compat/theme/themeProvider.tsx +2 -6
- package/src/ui/_compat/theme/types.ts +1 -3
- package/src/ui/_compat/theme/useRootTheme.ts +1 -3
- package/src/ui/_compat/theme/useTheme.ts +2 -6
- package/src/ui/_compat/types.ts +0 -83
- package/src/ui/components/autocomplete/__workshop__/constrainedHeight.tsx +2 -2
- package/src/ui/components/autocomplete/autocomplete.tsx +86 -114
- package/src/ui/components/autocomplete/autocompleteOption.tsx +2 -0
- package/src/ui/components/autocomplete/types.ts +3 -8
- package/src/ui/components/breadcrumbs/breadcrumbs.tsx +27 -21
- package/src/ui/components/dialog/dialog.tsx +89 -291
- package/src/ui/components/dialog/dialogCard.tsx +183 -0
- package/src/ui/components/dialog/isTargetWithinScope.ts +14 -0
- package/src/ui/components/hotkeys/hotkeys.tsx +33 -15
- package/src/ui/components/menu/__workshop__/asComponent.tsx +6 -6
- package/src/ui/components/menu/menu.tsx +27 -33
- package/src/ui/components/menu/menuButton.tsx +10 -14
- package/src/ui/components/menu/menuDivider.tsx +25 -13
- package/src/ui/components/menu/menuGroup.tsx +34 -26
- package/src/ui/components/menu/menuItem.tsx +51 -40
- package/src/ui/components/skeleton/codeSkeleton.tsx +53 -0
- package/src/ui/components/skeleton/headingSkeleton.tsx +52 -0
- package/src/ui/components/skeleton/index.ts +3 -0
- package/src/ui/components/skeleton/labelSkeleton.tsx +51 -0
- package/src/ui/components/skeleton/skeleton.tsx +39 -16
- package/src/ui/components/skeleton/textSkeleton.tsx +31 -110
- package/src/ui/components/tab/tab.tsx +23 -19
- package/src/ui/components/tab/tabList.tsx +34 -33
- package/src/ui/components/tab/tabPanel.tsx +25 -19
- package/src/ui/components/toast/toast.tsx +21 -16
- package/src/ui/components/toast/toastLayer.tsx +28 -10
- package/src/ui/components/toast/toastProvider.tsx +2 -6
- package/src/ui/components/toast/types.ts +2 -6
- package/src/ui/components/toast/useToast.ts +1 -3
- package/src/ui/components/tree/tree.tsx +194 -187
- package/src/ui/components/tree/treeGroup.tsx +25 -5
- package/src/ui/components/tree/treeItem.tsx +35 -23
- package/src/ui/hooks/useClickOutside.ts +2 -6
- package/src/ui/hooks/useClickOutsideEvent.ts +3 -9
- package/src/ui/index.ts +1 -0
- package/src/ui/primitives/_selectable/selectable.tsx +33 -20
- package/src/ui/primitives/avatar/avatar.tsx +28 -31
- package/src/ui/primitives/avatar/avatarCounter.tsx +33 -25
- package/src/ui/primitives/avatar/avatarStack.tsx +31 -24
- package/src/ui/primitives/avatar/types.ts +2 -0
- package/src/ui/primitives/badge/__workshop__/props.tsx +1 -9
- package/src/ui/primitives/badge/__workshop__/tones.tsx +1 -6
- package/src/ui/primitives/badge/badge.tsx +33 -32
- package/src/ui/primitives/badge/types.ts +2 -1
- package/src/ui/primitives/box/box.tsx +59 -29
- package/src/ui/primitives/button/__workshop__/sanityUploadButton.tsx +3 -3
- package/src/ui/primitives/button/__workshop__/uploadButton.tsx +2 -1
- package/src/ui/primitives/button/button.test.tsx +1 -15
- package/src/ui/primitives/button/button.tsx +63 -70
- package/src/ui/primitives/card/__workshop__/asComponent.tsx +3 -3
- package/src/ui/primitives/card/card.tsx +22 -22
- package/src/ui/primitives/card/cardProvider.tsx +2 -0
- package/src/ui/primitives/checkbox/checkbox.tsx +26 -15
- package/src/ui/primitives/code/code.tsx +24 -22
- package/src/ui/primitives/container/container.tsx +26 -15
- package/src/ui/primitives/flex/flex.tsx +21 -19
- package/src/ui/primitives/grid/grid.tsx +21 -16
- package/src/ui/primitives/heading/heading.tsx +42 -19
- package/src/ui/primitives/inline/inline.tsx +26 -23
- package/src/ui/primitives/kbd/kbd.tsx +25 -23
- package/src/ui/primitives/label/label.tsx +29 -26
- package/src/ui/primitives/popover/popover.tsx +293 -271
- package/src/ui/primitives/popover/popoverCard.tsx +122 -120
- package/src/ui/primitives/radio/radio.tsx +30 -14
- package/src/ui/primitives/select/select.tsx +24 -16
- package/src/ui/primitives/spinner/animatedSpinnerIcon.tsx +4 -2
- package/src/ui/primitives/spinner/spinner.tsx +24 -12
- package/src/ui/primitives/stack/stack.tsx +27 -18
- package/src/ui/primitives/switch/switch.tsx +31 -14
- package/src/ui/primitives/text/text.tsx +30 -24
- package/src/ui/primitives/textArea/textArea.tsx +33 -18
- package/src/ui/primitives/textInput/textInput.tsx +28 -40
- package/src/ui/primitives/tooltip/constants.ts +1 -1
- package/src/ui/primitives/tooltip/tooltip.tsx +85 -61
- package/src/ui/primitives/tooltip/tooltipCard.tsx +89 -82
- package/src/ui/primitives/types.ts +1 -3
- package/src/ui/types/avatar.ts +3 -6
- package/src/ui/types/badge.ts +1 -3
- package/src/ui/types/button.ts +1 -3
- package/src/ui/types/card.ts +1 -3
- package/src/ui/types/dialog.ts +1 -3
- package/src/ui/types/props.ts +20 -10
- package/src/ui/utils/arrow/arrow.tsx +43 -25
- package/src/ui/utils/boundaryElement/boundaryElementProvider.tsx +2 -6
- package/src/ui/utils/boundaryElement/types.ts +1 -3
- package/src/ui/utils/boundaryElement/useBoundaryElement.ts +1 -3
- package/src/ui/utils/elementQuery/elementQuery.tsx +43 -19
- package/src/ui/utils/errorBoundary.tsx +2 -0
- package/src/ui/utils/index.ts +0 -1
- package/src/ui/utils/layer/layer.tsx +23 -93
- package/src/ui/utils/layer/layerCard.tsx +92 -0
- package/src/ui/utils/layer/layerProvider.tsx +2 -6
- package/src/ui/utils/layer/useLayer.ts +1 -3
- package/src/ui/utils/portal/portal.ts +2 -6
- package/src/ui/utils/portal/portalProvider.tsx +2 -6
- package/src/ui/utils/portal/types.ts +1 -3
- package/src/ui/utils/portal/usePortal.ts +1 -3
- package/src/ui/utils/srOnly/srOnly.tsx +25 -20
- package/src/ui/utils/virtualList/virtualList.tsx +69 -50
- package/src/css/compile/compilePalette.ts +0 -27
- package/src/css/compile/compileRule.ts +0 -97
- package/src/css/compile/compileRules.test.ts +0 -36
- package/src/css/compile/compileRules.ts +0 -43
- package/src/css/compile/compileSystem.ts +0 -10
- package/src/css/compile/compileTheme_v3.ts +0 -401
- package/src/css/compile/types.ts +0 -6
- package/src/css/components/breadcrumbs/rules.ts +0 -25
- package/src/css/components/dialog/rules.ts +0 -78
- package/src/css/components/skeleton/rules.ts +0 -113
- package/src/css/components/toast/rules.ts +0 -18
- package/src/css/components/tree/rules.ts +0 -168
- package/src/css/primitives/_selectable/_contants.ts +0 -11
- package/src/css/primitives/card/_constants.ts +0 -13
- package/src/css/primitives/popover/rules.ts +0 -5
- package/src/css/primitives/spinner/rules.ts +0 -21
- package/src/css/primitives/token/rules.ts +0 -45
- package/src/ui/utils/conditionalWrapper/conditionalWrapper.tsx +0 -23
- package/src/ui/utils/conditionalWrapper/index.ts +0 -1
package/dist/css.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {AvatarSize} from '@sanity/ui/theme'
|
|
2
|
+
import {ColorTintKey} from '@sanity/color'
|
|
2
3
|
import {ContainerWidth} from '@sanity/ui/theme'
|
|
3
4
|
import {default as CSS_2} from 'csstype'
|
|
4
5
|
import {FontCodeSize} from '@sanity/ui/theme'
|
|
@@ -19,33 +20,47 @@ import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
|
19
20
|
import {ThemeColorStateToneKey} from '@sanity/ui/theme'
|
|
20
21
|
import {Tint} from '@sanity/ui/theme'
|
|
21
22
|
|
|
23
|
+
/** @public */
|
|
22
24
|
export declare function animatedSpinnerIcon(): string | undefined
|
|
23
25
|
|
|
24
26
|
/** @internal */
|
|
25
27
|
export declare function _arrow(): string | undefined
|
|
26
28
|
|
|
29
|
+
/** @internal */
|
|
27
30
|
export declare function _arrowShape(): string | undefined
|
|
28
31
|
|
|
32
|
+
/** @internal */
|
|
29
33
|
export declare function _arrowStroke(): string | undefined
|
|
30
34
|
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare function _arrowStrokeMask(): string | undefined
|
|
37
|
+
|
|
38
|
+
/** @public */
|
|
31
39
|
export declare function avatar(props: AvatarStyleProps): string | undefined
|
|
32
40
|
|
|
41
|
+
/** @public */
|
|
33
42
|
export declare function avatarArrow(): string | undefined
|
|
34
43
|
|
|
44
|
+
/** @public */
|
|
35
45
|
export declare function avatarCounter(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
36
46
|
|
|
47
|
+
/** @public */
|
|
37
48
|
export declare function avatarImage(): string | undefined
|
|
38
49
|
|
|
50
|
+
/** @public */
|
|
39
51
|
export declare function avatarInitials(): string | undefined
|
|
40
52
|
|
|
53
|
+
/** @public */
|
|
41
54
|
export declare type AvatarScopedVarName =
|
|
42
55
|
| `--avatar-bg-color`
|
|
43
56
|
| `--avatar-fg-color`
|
|
44
57
|
| `--avatar-distance`
|
|
45
58
|
| `--avatar-size`
|
|
46
59
|
|
|
60
|
+
/** @public */
|
|
47
61
|
export declare function avatarStack(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
48
62
|
|
|
63
|
+
/** @public */
|
|
49
64
|
export declare interface AvatarStyleProps {
|
|
50
65
|
color: ThemeColorAvatarColorKey
|
|
51
66
|
size: ResponsiveProp<AvatarSize>
|
|
@@ -74,17 +89,13 @@ export declare interface BorderStyleProps {
|
|
|
74
89
|
/** @public */
|
|
75
90
|
export declare function box(props: BoxStyleProps): string | undefined
|
|
76
91
|
|
|
77
|
-
/**
|
|
78
|
-
* @public
|
|
79
|
-
*/
|
|
92
|
+
/** @public */
|
|
80
93
|
export declare type BoxHeight = 'stretch' | 'fill'
|
|
81
94
|
|
|
82
95
|
/** @public */
|
|
83
96
|
export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
|
|
84
97
|
|
|
85
|
-
/**
|
|
86
|
-
* @public
|
|
87
|
-
*/
|
|
98
|
+
/** @public */
|
|
88
99
|
export declare type BoxSizing = 'content' | 'border'
|
|
89
100
|
|
|
90
101
|
/** @public */
|
|
@@ -112,14 +123,29 @@ export declare interface BoxStyleProps
|
|
|
112
123
|
sizing?: ResponsiveProp<BoxSizing>
|
|
113
124
|
}
|
|
114
125
|
|
|
126
|
+
/** @public */
|
|
115
127
|
export declare function breadcrumbs(): string | undefined
|
|
116
128
|
|
|
129
|
+
/** @public */
|
|
130
|
+
export declare const BREAKPOINTS: {
|
|
131
|
+
1: number
|
|
132
|
+
2: number
|
|
133
|
+
3: number
|
|
134
|
+
4: number
|
|
135
|
+
5: number
|
|
136
|
+
6: number
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** @public */
|
|
117
140
|
export declare function button(props: ButtonStyleProps): string | undefined
|
|
118
141
|
|
|
142
|
+
/** @public */
|
|
119
143
|
export declare function buttonLoadingBox(): string | undefined
|
|
120
144
|
|
|
145
|
+
/** @public */
|
|
121
146
|
export declare type ButtonScopedVarName = '--button-box-shadow'
|
|
122
147
|
|
|
148
|
+
/** @public */
|
|
123
149
|
export declare interface ButtonStyleProps
|
|
124
150
|
extends DisplayStyleProps,
|
|
125
151
|
FlexItemStyleProps,
|
|
@@ -129,11 +155,11 @@ export declare interface ButtonStyleProps
|
|
|
129
155
|
tone?: ThemeColorStateToneKey
|
|
130
156
|
}
|
|
131
157
|
|
|
158
|
+
/** @public */
|
|
132
159
|
export declare function card(props: CardStyleProps): string | undefined
|
|
133
160
|
|
|
134
161
|
/** @public */
|
|
135
162
|
export declare type CardScopedVarName =
|
|
136
|
-
| `--color-accent-fg`
|
|
137
163
|
| `--color-avatar-bg`
|
|
138
164
|
| `--color-avatar-fg`
|
|
139
165
|
| `--color-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
@@ -217,14 +243,17 @@ export declare type CardScopedVarName =
|
|
|
217
243
|
| `--padding-bottom`
|
|
218
244
|
| `--padding-left`
|
|
219
245
|
|
|
220
|
-
|
|
246
|
+
/** @public */
|
|
247
|
+
export declare interface CardStyleProps extends ShadowStyleProps {
|
|
221
248
|
checkered?: boolean
|
|
222
249
|
scheme?: ThemeColorSchemeKey
|
|
223
250
|
tone?: ThemeColorCardToneKey | 'inherit'
|
|
224
251
|
}
|
|
225
252
|
|
|
253
|
+
/** @public */
|
|
226
254
|
export declare function checkbox(): string | undefined
|
|
227
255
|
|
|
256
|
+
/** @public */
|
|
228
257
|
export declare function checkboxInput(): string | undefined
|
|
229
258
|
|
|
230
259
|
/** @public */
|
|
@@ -233,8 +262,10 @@ export declare function code(props: CodeStyleProps): string | undefined
|
|
|
233
262
|
/** @public */
|
|
234
263
|
export declare type CodeSize = number
|
|
235
264
|
|
|
265
|
+
/** @beta */
|
|
236
266
|
export declare function codeSkeleton(props: CodeSkeletonStyleProps): string | undefined
|
|
237
267
|
|
|
268
|
+
/** @beta */
|
|
238
269
|
export declare interface CodeSkeletonStyleProps {
|
|
239
270
|
size?: ResponsiveProp<FontCodeSize>
|
|
240
271
|
}
|
|
@@ -270,8 +301,8 @@ export declare interface ColorBadgeToneVars {
|
|
|
270
301
|
/** @public */
|
|
271
302
|
export declare type ColorBadgeVars = Record<ThemeColorStateToneKey, ColorBadgeToneVars>
|
|
272
303
|
|
|
304
|
+
/** @public */
|
|
273
305
|
export declare type ColorCardToneScopedVarName =
|
|
274
|
-
| `--color-${ThemeColorCardToneKey}-accent-fg`
|
|
275
306
|
| `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
276
307
|
| `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
277
308
|
| `--color-${ThemeColorCardToneKey}-backdrop`
|
|
@@ -325,8 +356,8 @@ export declare type ColorCardToneScopedVarName =
|
|
|
325
356
|
| `--color-${ThemeColorCardToneKey}-skeleton-from`
|
|
326
357
|
| `--color-${ThemeColorCardToneKey}-skeleton-to`
|
|
327
358
|
|
|
359
|
+
/** @public */
|
|
328
360
|
export declare type ColorCardVarName =
|
|
329
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-accent-fg`
|
|
330
361
|
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
331
362
|
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
332
363
|
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-backdrop`
|
|
@@ -382,9 +413,6 @@ export declare type ColorCardVarName =
|
|
|
382
413
|
|
|
383
414
|
/** @public */
|
|
384
415
|
export declare interface ColorCardVarNames {
|
|
385
|
-
accent: {
|
|
386
|
-
fg: VarName
|
|
387
|
-
}
|
|
388
416
|
avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames>
|
|
389
417
|
backdrop: VarName
|
|
390
418
|
code: {
|
|
@@ -453,9 +481,6 @@ export declare interface ColorCardVarNames {
|
|
|
453
481
|
|
|
454
482
|
/** @public */
|
|
455
483
|
export declare interface ColorCardVars {
|
|
456
|
-
accent: {
|
|
457
|
-
fg: CSSVar
|
|
458
|
-
}
|
|
459
484
|
avatar: ColorAvatarVars
|
|
460
485
|
backdrop: CSSVar
|
|
461
486
|
code: {
|
|
@@ -589,6 +614,7 @@ export declare type ColorSchemeVarNames = Record<ThemeColorCardToneKey, ColorCar
|
|
|
589
614
|
/** @public */
|
|
590
615
|
export declare interface ColorSchemeVars extends Record<ThemeColorCardToneKey, ColorCardVars> {}
|
|
591
616
|
|
|
617
|
+
/** @public */
|
|
592
618
|
export declare interface ColorVariantVarNames
|
|
593
619
|
extends ColorElementVarNames,
|
|
594
620
|
Record<ThemeColorStateToneKey, ColorElementVarNames> {}
|
|
@@ -598,21 +624,27 @@ export declare interface ColorVariantVars
|
|
|
598
624
|
extends Record<ThemeColorStateToneKey, ColorElementVars>,
|
|
599
625
|
ColorElementVars {}
|
|
600
626
|
|
|
627
|
+
/** @public */
|
|
601
628
|
export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
602
629
|
|
|
630
|
+
/** @internal */
|
|
603
631
|
export declare function compilePalette(): string
|
|
604
632
|
|
|
605
|
-
/** @
|
|
633
|
+
/** @internal */
|
|
606
634
|
export declare function compileSystem(): string
|
|
607
635
|
|
|
636
|
+
/** @internal */
|
|
608
637
|
export declare function compileTheme(theme: RootTheme): string
|
|
609
638
|
|
|
639
|
+
/** @public */
|
|
610
640
|
export declare function composeClassNames(
|
|
611
641
|
...classNames: Array<string | false | undefined>
|
|
612
642
|
): string | undefined
|
|
613
643
|
|
|
644
|
+
/** @public */
|
|
614
645
|
export declare function container(props: ContainerStyleProps): string | undefined
|
|
615
646
|
|
|
647
|
+
/** @public */
|
|
616
648
|
export declare interface ContainerStyleProps {
|
|
617
649
|
width?: ResponsiveProp<ContainerWidth>
|
|
618
650
|
}
|
|
@@ -623,23 +655,28 @@ export declare type CSSVar = `var(${VarName})`
|
|
|
623
655
|
/** @public */
|
|
624
656
|
export declare interface CustomCSSProperties extends Record<VarName, string> {}
|
|
625
657
|
|
|
658
|
+
/** @public */
|
|
626
659
|
export declare function dialog(): string | undefined
|
|
627
660
|
|
|
661
|
+
/** @public */
|
|
628
662
|
export declare function dialogCardRoot(): string | undefined
|
|
629
663
|
|
|
664
|
+
/** @public */
|
|
630
665
|
export declare function dialogContainer(): string | undefined
|
|
631
666
|
|
|
667
|
+
/** @public */
|
|
632
668
|
export declare function dialogContent(): string | undefined
|
|
633
669
|
|
|
670
|
+
/** @public */
|
|
634
671
|
export declare function dialogFooter(): string | undefined
|
|
635
672
|
|
|
673
|
+
/** @public */
|
|
636
674
|
export declare function dialogHeader(): string | undefined
|
|
637
675
|
|
|
676
|
+
/** @public */
|
|
638
677
|
export declare function dialogLayout(): string | undefined
|
|
639
678
|
|
|
640
|
-
/**
|
|
641
|
-
* @public
|
|
642
|
-
*/
|
|
679
|
+
/** @public */
|
|
643
680
|
export declare type Display =
|
|
644
681
|
| 'block'
|
|
645
682
|
| 'inline-block'
|
|
@@ -649,8 +686,10 @@ export declare type Display =
|
|
|
649
686
|
| 'inline-grid'
|
|
650
687
|
| 'none'
|
|
651
688
|
|
|
689
|
+
/** @internal */
|
|
652
690
|
export declare function display(props: DisplayStyleProps): string | undefined
|
|
653
691
|
|
|
692
|
+
/** @public */
|
|
654
693
|
export declare interface DisplayStyleProps {
|
|
655
694
|
display?: ResponsiveProp<Display>
|
|
656
695
|
}
|
|
@@ -683,14 +722,10 @@ export declare type ElementColorVariantScopedVarName =
|
|
|
683
722
|
/** @public */
|
|
684
723
|
export declare function flex(props: FlexStyleProps): string | undefined
|
|
685
724
|
|
|
686
|
-
/**
|
|
687
|
-
* @public
|
|
688
|
-
*/
|
|
725
|
+
/** @public */
|
|
689
726
|
export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
|
|
690
727
|
|
|
691
|
-
/**
|
|
692
|
-
* @public
|
|
693
|
-
*/
|
|
728
|
+
/** @public */
|
|
694
729
|
export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
|
|
695
730
|
|
|
696
731
|
/** @public */
|
|
@@ -701,9 +736,7 @@ export declare interface FlexItemStyleProps {
|
|
|
701
736
|
flex?: ResponsiveProp<FlexValue>
|
|
702
737
|
}
|
|
703
738
|
|
|
704
|
-
/**
|
|
705
|
-
* @public
|
|
706
|
-
*/
|
|
739
|
+
/** @public */
|
|
707
740
|
export declare type FlexJustify =
|
|
708
741
|
| 'flex-start'
|
|
709
742
|
| 'flex-end'
|
|
@@ -720,9 +753,7 @@ export declare interface FlexStyleProps {
|
|
|
720
753
|
wrap?: ResponsiveProp<FlexWrap>
|
|
721
754
|
}
|
|
722
755
|
|
|
723
|
-
/**
|
|
724
|
-
* @public
|
|
725
|
-
*/
|
|
756
|
+
/** @public */
|
|
726
757
|
export declare type FlexValue =
|
|
727
758
|
| 'none'
|
|
728
759
|
| 'auto'
|
|
@@ -741,9 +772,7 @@ export declare type FlexValue =
|
|
|
741
772
|
| 11
|
|
742
773
|
| 12
|
|
743
774
|
|
|
744
|
-
/**
|
|
745
|
-
* @public
|
|
746
|
-
*/
|
|
775
|
+
/** @public */
|
|
747
776
|
export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
|
|
748
777
|
|
|
749
778
|
/** @public */
|
|
@@ -775,10 +804,12 @@ export declare interface FontStyleProps {
|
|
|
775
804
|
weight?: FontWeight
|
|
776
805
|
}
|
|
777
806
|
|
|
807
|
+
/** @public */
|
|
778
808
|
export declare interface FontVarNames<Size extends number> {
|
|
779
809
|
family: VarName
|
|
810
|
+
featureSettings: VarName
|
|
780
811
|
sizes: Record<Size, FontSizeVarNames>
|
|
781
|
-
|
|
812
|
+
weights: Record<FontWeight, VarName>
|
|
782
813
|
}
|
|
783
814
|
|
|
784
815
|
/** @public */
|
|
@@ -798,58 +829,43 @@ export declare interface GapStyleProps {
|
|
|
798
829
|
gapY?: ResponsiveProp<Space>
|
|
799
830
|
}
|
|
800
831
|
|
|
801
|
-
|
|
832
|
+
/** @internal */
|
|
833
|
+
export declare function _getClassNames(...classNames: Array<string | false | undefined>): string[]
|
|
802
834
|
|
|
835
|
+
/** @internal */
|
|
803
836
|
export declare function grid(props: GridStyleProps): string | undefined
|
|
804
837
|
|
|
805
|
-
/**
|
|
806
|
-
* @public
|
|
807
|
-
*/
|
|
838
|
+
/** @public */
|
|
808
839
|
export declare type GridAutoCols = 'auto' | 'min' | 'max' | 'fr'
|
|
809
840
|
|
|
810
|
-
/**
|
|
811
|
-
* @public
|
|
812
|
-
*/
|
|
841
|
+
/** @public */
|
|
813
842
|
export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
|
|
814
843
|
|
|
815
|
-
/**
|
|
816
|
-
* @public
|
|
817
|
-
*/
|
|
844
|
+
/** @public */
|
|
818
845
|
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
819
846
|
|
|
820
|
-
/** @
|
|
847
|
+
/** @internal */
|
|
821
848
|
export declare function gridItem(props: GridItemStyleProps): string | undefined
|
|
822
849
|
|
|
823
|
-
/**
|
|
824
|
-
* @public
|
|
825
|
-
*/
|
|
850
|
+
/** @public */
|
|
826
851
|
export declare type GridItemColumn = 'auto' | 'full' | number
|
|
827
852
|
|
|
828
|
-
/**
|
|
829
|
-
* @public
|
|
830
|
-
*/
|
|
853
|
+
/** @public */
|
|
831
854
|
export declare type GridItemColumnEnd = 'auto' | number
|
|
832
855
|
|
|
833
|
-
/**
|
|
834
|
-
* @public
|
|
835
|
-
*/
|
|
856
|
+
/** @public */
|
|
836
857
|
export declare type GridItemColumnStart = 'auto' | number
|
|
837
858
|
|
|
838
|
-
/**
|
|
839
|
-
* @public
|
|
840
|
-
*/
|
|
859
|
+
/** @public */
|
|
841
860
|
export declare type GridItemRow = 'auto' | 'full' | number
|
|
842
861
|
|
|
843
|
-
/**
|
|
844
|
-
* @public
|
|
845
|
-
*/
|
|
862
|
+
/** @public */
|
|
846
863
|
export declare type GridItemRowEnd = 'auto' | number
|
|
847
864
|
|
|
848
|
-
/**
|
|
849
|
-
* @public
|
|
850
|
-
*/
|
|
865
|
+
/** @public */
|
|
851
866
|
export declare type GridItemRowStart = 'auto' | number
|
|
852
867
|
|
|
868
|
+
/** @public */
|
|
853
869
|
export declare interface GridItemStyleProps {
|
|
854
870
|
column?: ResponsiveProp<GridItemColumn>
|
|
855
871
|
columnStart?: ResponsiveProp<GridItemColumnStart>
|
|
@@ -874,8 +890,10 @@ export declare function heading(props: HeadingStyleProps): string | undefined
|
|
|
874
890
|
/** @public */
|
|
875
891
|
export declare type HeadingSize = number
|
|
876
892
|
|
|
893
|
+
/** @beta */
|
|
877
894
|
export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string | undefined
|
|
878
895
|
|
|
896
|
+
/** @beta */
|
|
879
897
|
export declare interface HeadingSkeletonStyleProps {
|
|
880
898
|
size?: ResponsiveProp<FontHeadingSize>
|
|
881
899
|
}
|
|
@@ -887,9 +905,10 @@ export declare interface HeadingStyleProps extends FontStyleProps, FlexItemStyle
|
|
|
887
905
|
size?: ResponsiveProp<HeadingSize>
|
|
888
906
|
}
|
|
889
907
|
|
|
890
|
-
/** @
|
|
908
|
+
/** @internal */
|
|
891
909
|
export declare function height(props: HeightStyleProps): string | undefined
|
|
892
910
|
|
|
911
|
+
/** @public */
|
|
893
912
|
export declare interface HeightStyleProps {
|
|
894
913
|
height?: ResponsiveProp<BoxHeight>
|
|
895
914
|
}
|
|
@@ -897,8 +916,10 @@ export declare interface HeightStyleProps {
|
|
|
897
916
|
/** @internal */
|
|
898
917
|
export declare function _input(props: InputStyleProps): string | undefined
|
|
899
918
|
|
|
919
|
+
/** @internal */
|
|
900
920
|
export declare function _inputElement(): string | undefined
|
|
901
921
|
|
|
922
|
+
/** @internal */
|
|
902
923
|
export declare function _inputPresentation(): string | undefined
|
|
903
924
|
|
|
904
925
|
/** @public */
|
|
@@ -926,6 +947,7 @@ export declare interface InputStyleProps extends RadiusStyleProps, WidthStylePro
|
|
|
926
947
|
/** @public */
|
|
927
948
|
export declare type Inset = 0
|
|
928
949
|
|
|
950
|
+
/** @internal */
|
|
929
951
|
export declare function inset(props: InsetStyleProps): string | undefined
|
|
930
952
|
|
|
931
953
|
/** @public */
|
|
@@ -937,10 +959,13 @@ export declare interface InsetStyleProps {
|
|
|
937
959
|
insetLeft?: ResponsiveProp<Inset>
|
|
938
960
|
}
|
|
939
961
|
|
|
962
|
+
/** @internal */
|
|
940
963
|
export declare function isArray(value: unknown): value is unknown[]
|
|
941
964
|
|
|
965
|
+
/** @internal */
|
|
942
966
|
export declare function isRecord(value: unknown): value is Record<string, unknown>
|
|
943
967
|
|
|
968
|
+
/** @public */
|
|
944
969
|
export declare function kbd(props: KBDStyleProps): string | undefined
|
|
945
970
|
|
|
946
971
|
/** @public */
|
|
@@ -949,11 +974,16 @@ export declare interface KBDStyleProps extends RadiusStyleProps {}
|
|
|
949
974
|
/** @public */
|
|
950
975
|
export declare function label(props: LabelStyleProps): string | undefined
|
|
951
976
|
|
|
952
|
-
/**
|
|
977
|
+
/**
|
|
978
|
+
* @public
|
|
979
|
+
* @deprecated Use `FontLabelSize` from `@sanity/ui/theme` instead
|
|
980
|
+
*/
|
|
953
981
|
export declare type LabelSize = number
|
|
954
982
|
|
|
983
|
+
/** @beta */
|
|
955
984
|
export declare function labelSkeleton(props: LabelSkeletonStyleProps): string | undefined
|
|
956
985
|
|
|
986
|
+
/** @beta */
|
|
957
987
|
export declare interface LabelSkeletonStyleProps {
|
|
958
988
|
size?: ResponsiveProp<FontLabelSize>
|
|
959
989
|
}
|
|
@@ -962,9 +992,10 @@ export declare interface LabelSkeletonStyleProps {
|
|
|
962
992
|
export declare interface LabelStyleProps extends FontStyleProps {
|
|
963
993
|
accent?: boolean
|
|
964
994
|
muted?: boolean
|
|
965
|
-
size?: ResponsiveProp<
|
|
995
|
+
size?: ResponsiveProp<FontLabelSize>
|
|
966
996
|
}
|
|
967
997
|
|
|
998
|
+
/** @public */
|
|
968
999
|
export declare type LegacyCardScopedVarName =
|
|
969
1000
|
| `--card-accent-fg-color`
|
|
970
1001
|
| `--card-avatar-${ThemeColorAvatarColorKey}-bg-color`
|
|
@@ -999,8 +1030,10 @@ export declare type LegacyCardScopedVarName =
|
|
|
999
1030
|
| `--card-skeleton-from-color`
|
|
1000
1031
|
| `--card-skeleton-to-color`
|
|
1001
1032
|
|
|
1033
|
+
/** @internal */
|
|
1002
1034
|
export declare function margin(props: MarginStyleProps): string | undefined
|
|
1003
1035
|
|
|
1036
|
+
/** @public */
|
|
1004
1037
|
export declare interface MarginStyleProps {
|
|
1005
1038
|
margin?: ResponsiveProp<number>
|
|
1006
1039
|
marginTop?: ResponsiveProp<number>
|
|
@@ -1011,24 +1044,32 @@ export declare interface MarginStyleProps {
|
|
|
1011
1044
|
marginY?: ResponsiveProp<number>
|
|
1012
1045
|
}
|
|
1013
1046
|
|
|
1047
|
+
/** @internal */
|
|
1014
1048
|
export declare function maxWidth(props: MaxWidthStyleProps): string
|
|
1015
1049
|
|
|
1050
|
+
/** @public */
|
|
1016
1051
|
export declare interface MaxWidthStyleProps {
|
|
1017
1052
|
maxWidth?: ResponsiveProp<ContainerWidth | 'auto' | 'fill'>
|
|
1018
1053
|
}
|
|
1019
1054
|
|
|
1055
|
+
/** @public */
|
|
1020
1056
|
export declare function menu(): string | undefined
|
|
1021
1057
|
|
|
1058
|
+
/** @public */
|
|
1022
1059
|
export declare function menuDivider(): string | undefined
|
|
1023
1060
|
|
|
1061
|
+
/** @public */
|
|
1024
1062
|
export declare type MinWidth = 0 | 'auto' | 'full' | 'min' | 'max' | 'fit'
|
|
1025
1063
|
|
|
1064
|
+
/** @internal */
|
|
1026
1065
|
export declare function minWidth(props: MinWidthStyleProps): string
|
|
1027
1066
|
|
|
1067
|
+
/** @public */
|
|
1028
1068
|
export declare interface MinWidthStyleProps {
|
|
1029
1069
|
minWidth?: ResponsiveProp<MinWidth>
|
|
1030
1070
|
}
|
|
1031
1071
|
|
|
1072
|
+
/** @internal */
|
|
1032
1073
|
export declare function overflow(props: OverflowStyleProps): string | undefined
|
|
1033
1074
|
|
|
1034
1075
|
/** @public */
|
|
@@ -1038,6 +1079,7 @@ export declare interface OverflowStyleProps {
|
|
|
1038
1079
|
overflowY?: ResponsiveProp<BoxOverflow>
|
|
1039
1080
|
}
|
|
1040
1081
|
|
|
1082
|
+
/** @internal */
|
|
1041
1083
|
export declare function padding(props: PaddingStyleProps): string | undefined
|
|
1042
1084
|
|
|
1043
1085
|
/** @public */
|
|
@@ -1057,6 +1099,7 @@ export declare type PaletteVarName = `--black` | `--white` | `--${Hue}-${Tint}`
|
|
|
1057
1099
|
/** @public */
|
|
1058
1100
|
export declare type PointerEvents = 'auto' | 'none'
|
|
1059
1101
|
|
|
1102
|
+
/** @internal */
|
|
1060
1103
|
export declare function pointerEvents(props: PointerEventsStyleProps): string | undefined
|
|
1061
1104
|
|
|
1062
1105
|
/** @public */
|
|
@@ -1064,13 +1107,16 @@ export declare interface PointerEventsStyleProps {
|
|
|
1064
1107
|
pointerEvents?: PointerEvents
|
|
1065
1108
|
}
|
|
1066
1109
|
|
|
1110
|
+
/** @public */
|
|
1067
1111
|
export declare function popover(): string | undefined
|
|
1068
1112
|
|
|
1113
|
+
/** @public */
|
|
1069
1114
|
export declare function popoverCard(): string | undefined
|
|
1070
1115
|
|
|
1071
1116
|
/** @public */
|
|
1072
1117
|
export declare type Position = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky'
|
|
1073
1118
|
|
|
1119
|
+
/** @internal */
|
|
1074
1120
|
export declare function position(props: PositionStyleProps): string | undefined
|
|
1075
1121
|
|
|
1076
1122
|
/** @public */
|
|
@@ -1078,6 +1124,9 @@ export declare interface PositionStyleProps {
|
|
|
1078
1124
|
position?: ResponsiveProp<Position>
|
|
1079
1125
|
}
|
|
1080
1126
|
|
|
1127
|
+
/** @public */
|
|
1128
|
+
export declare const PREFIX = 's-'
|
|
1129
|
+
|
|
1081
1130
|
/** @public */
|
|
1082
1131
|
export declare type Properties = PropertiesWithVarsAndNested & {
|
|
1083
1132
|
'@media'?: Record<string, PropertiesWithVarsAndNested>
|
|
@@ -1094,8 +1143,10 @@ export declare type PropertiesWithVarsAndNested = PropertiesWithVars & {
|
|
|
1094
1143
|
'@nest'?: Record<string, PropertiesWithVars>
|
|
1095
1144
|
}
|
|
1096
1145
|
|
|
1146
|
+
/** @internal */
|
|
1097
1147
|
export declare function px(value: number): string
|
|
1098
1148
|
|
|
1149
|
+
/** @public */
|
|
1099
1150
|
export declare function radio(): string | undefined
|
|
1100
1151
|
|
|
1101
1152
|
/** @public */
|
|
@@ -1106,11 +1157,13 @@ export declare interface RadiusStyleProps {
|
|
|
1106
1157
|
radius?: ResponsiveProp<Radius | 'full'>
|
|
1107
1158
|
}
|
|
1108
1159
|
|
|
1160
|
+
/** @internal */
|
|
1109
1161
|
export declare function rem(value: number): string
|
|
1110
1162
|
|
|
1111
1163
|
/** @public */
|
|
1112
1164
|
export declare type ResponsiveProp<T> = T | Array<T | null | undefined>
|
|
1113
1165
|
|
|
1166
|
+
/** @public */
|
|
1114
1167
|
export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
1115
1168
|
|
|
1116
1169
|
/** @public */
|
|
@@ -1118,12 +1171,11 @@ export declare interface Rules {
|
|
|
1118
1171
|
[className: string]: Properties
|
|
1119
1172
|
}
|
|
1120
1173
|
|
|
1174
|
+
/** @public */
|
|
1121
1175
|
export declare function scopeClassName(className: string | undefined): string | undefined
|
|
1122
1176
|
|
|
1177
|
+
/** @public */
|
|
1123
1178
|
export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'avatar'> {
|
|
1124
|
-
accent: {
|
|
1125
|
-
fg: VarName
|
|
1126
|
-
}
|
|
1127
1179
|
avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames> & ColorAvatarColorVarNames
|
|
1128
1180
|
bg: VarName
|
|
1129
1181
|
border: VarName
|
|
@@ -1136,6 +1188,7 @@ export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'av
|
|
|
1136
1188
|
}
|
|
1137
1189
|
}
|
|
1138
1190
|
|
|
1191
|
+
/** @public */
|
|
1139
1192
|
export declare interface ScopedColorVars extends Omit<ColorCardVars, 'avatar'> {
|
|
1140
1193
|
avatar: ColorAvatarVars & ColorAvatarColorVars
|
|
1141
1194
|
bg: CSSVar
|
|
@@ -1149,6 +1202,7 @@ export declare interface ScopedColorVars extends Omit<ColorCardVars, 'avatar'> {
|
|
|
1149
1202
|
}
|
|
1150
1203
|
}
|
|
1151
1204
|
|
|
1205
|
+
/** @public */
|
|
1152
1206
|
export declare function select(props: SelectStyleProps): string | undefined
|
|
1153
1207
|
|
|
1154
1208
|
/** @internal */
|
|
@@ -1159,11 +1213,13 @@ export declare interface SelectableStyleProps extends RadiusStyleProps {
|
|
|
1159
1213
|
tone?: ThemeColorStateToneKey
|
|
1160
1214
|
}
|
|
1161
1215
|
|
|
1216
|
+
/** @public */
|
|
1162
1217
|
export declare function selectPresentation(): string | undefined
|
|
1163
1218
|
|
|
1164
1219
|
/** @public */
|
|
1165
1220
|
export declare interface SelectStyleProps extends InputStyleProps {}
|
|
1166
1221
|
|
|
1222
|
+
/** @internal */
|
|
1167
1223
|
export declare function shadow(props: ShadowStyleProps): string | undefined
|
|
1168
1224
|
|
|
1169
1225
|
/** @public */
|
|
@@ -1177,8 +1233,10 @@ export declare function skeleton(props: SkeletonStyleProps): string | undefined
|
|
|
1177
1233
|
/** @beta */
|
|
1178
1234
|
export declare interface SkeletonStyleProps extends RadiusStyleProps {}
|
|
1179
1235
|
|
|
1236
|
+
/** @public */
|
|
1180
1237
|
export declare function spinner(): string | undefined
|
|
1181
1238
|
|
|
1239
|
+
/** @public */
|
|
1182
1240
|
export declare function srOnly(): string | undefined
|
|
1183
1241
|
|
|
1184
1242
|
/** @public */
|
|
@@ -1203,10 +1261,13 @@ export declare type StyleRules = Partial<Record<StyleSelector, Properties>>
|
|
|
1203
1261
|
/** @public */
|
|
1204
1262
|
export declare type StyleSelector = `.${string}` | `#${string}` | `:root`
|
|
1205
1263
|
|
|
1264
|
+
/** @public */
|
|
1206
1265
|
export declare function _switch(): string | undefined
|
|
1207
1266
|
|
|
1267
|
+
/** @public */
|
|
1208
1268
|
export declare function _switchElement(): string | undefined
|
|
1209
1269
|
|
|
1270
|
+
/** @public */
|
|
1210
1271
|
export declare function _switchPresentation(): string | undefined
|
|
1211
1272
|
|
|
1212
1273
|
/** @public */
|
|
@@ -1216,30 +1277,34 @@ export declare type SwitchScopedVarName =
|
|
|
1216
1277
|
| '--switch-thumb-offset'
|
|
1217
1278
|
| '--switch-thumb-size'
|
|
1218
1279
|
|
|
1280
|
+
/** @public */
|
|
1219
1281
|
export declare function _switchThumb(): string | undefined
|
|
1220
1282
|
|
|
1283
|
+
/** @public */
|
|
1221
1284
|
export declare function _switchTrack(): string | undefined
|
|
1222
1285
|
|
|
1223
1286
|
/** @public */
|
|
1224
1287
|
export declare function text(props: TextStyleProps): string | undefined
|
|
1225
1288
|
|
|
1226
|
-
/**
|
|
1227
|
-
* @public
|
|
1228
|
-
*/
|
|
1289
|
+
/** @public */
|
|
1229
1290
|
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
1230
1291
|
|
|
1292
|
+
/** @public */
|
|
1231
1293
|
export declare function textArea(props: TextAreaStyleProps): string | undefined
|
|
1232
1294
|
|
|
1233
1295
|
/** @public */
|
|
1234
1296
|
export declare interface TextAreaStyleProps extends InputStyleProps {}
|
|
1235
1297
|
|
|
1298
|
+
/** @public */
|
|
1236
1299
|
export declare function textInput(props: TextInputStyleProps): string | undefined
|
|
1237
1300
|
|
|
1238
1301
|
/** @public */
|
|
1239
1302
|
export declare interface TextInputStyleProps extends InputStyleProps {}
|
|
1240
1303
|
|
|
1304
|
+
/** @internal */
|
|
1241
1305
|
export declare function textOverflow(props: TextOverflowStyleProps): string | undefined
|
|
1242
1306
|
|
|
1307
|
+
/** @internal */
|
|
1243
1308
|
export declare interface TextOverflowStyleProps {
|
|
1244
1309
|
/**
|
|
1245
1310
|
* Controls how overflowing text is treated.
|
|
@@ -1249,16 +1314,22 @@ export declare interface TextOverflowStyleProps {
|
|
|
1249
1314
|
textOverflow?: 'ellipsis' | 'clip'
|
|
1250
1315
|
}
|
|
1251
1316
|
|
|
1317
|
+
/** @public */
|
|
1252
1318
|
export declare type TextSize = number
|
|
1253
1319
|
|
|
1320
|
+
/** @beta */
|
|
1254
1321
|
export declare function textSkeleton(props: TextSkeletonStyleProps): string | undefined
|
|
1255
1322
|
|
|
1323
|
+
/** @beta */
|
|
1256
1324
|
export declare interface TextSkeletonStyleProps {
|
|
1257
1325
|
size?: ResponsiveProp<FontTextSize>
|
|
1258
1326
|
}
|
|
1259
1327
|
|
|
1260
1328
|
/** @public */
|
|
1261
1329
|
export declare interface TextStyleProps extends FlexItemStyleProps, FontStyleProps {
|
|
1330
|
+
/**
|
|
1331
|
+
* @deprecated Will be removed in next major version
|
|
1332
|
+
*/
|
|
1262
1333
|
accent?: boolean
|
|
1263
1334
|
muted?: boolean
|
|
1264
1335
|
size?: ResponsiveProp<TextSize>
|
|
@@ -1277,7 +1348,7 @@ export declare type ThemeVarName =
|
|
|
1277
1348
|
| `--card-border-width`
|
|
1278
1349
|
| `--card-focus-ring-offset`
|
|
1279
1350
|
| `--card-focus-ring-width`
|
|
1280
|
-
| `--shadow-outline`
|
|
1351
|
+
| `--card-shadow-outline`
|
|
1281
1352
|
| `--container-${ContainerWidth}`
|
|
1282
1353
|
| `--font-code-family`
|
|
1283
1354
|
| `--font-code-feature-settings`
|
|
@@ -1342,22 +1413,31 @@ export declare type ThemeVarName =
|
|
|
1342
1413
|
| `--shadow-${Shadow}-penumbra`
|
|
1343
1414
|
| `--shadow-${Shadow}-ambient`
|
|
1344
1415
|
|
|
1416
|
+
/** @public */
|
|
1345
1417
|
export declare function toast(): string | undefined
|
|
1346
1418
|
|
|
1419
|
+
/** @public */
|
|
1347
1420
|
export declare function toastLayer(): string | undefined
|
|
1348
1421
|
|
|
1422
|
+
/** @public */
|
|
1349
1423
|
export declare function toastLoadingBar(): string | undefined
|
|
1350
1424
|
|
|
1425
|
+
/** @public */
|
|
1351
1426
|
export declare function toastLoadingBarMask(): string | undefined
|
|
1352
1427
|
|
|
1428
|
+
/** @public */
|
|
1353
1429
|
export declare function toastLoadingBarProgress(): string | undefined
|
|
1354
1430
|
|
|
1431
|
+
/** @internal */
|
|
1355
1432
|
export declare function toBoxShadow(value: ThemeBoxShadow | undefined): string
|
|
1356
1433
|
|
|
1434
|
+
/** @public */
|
|
1357
1435
|
export declare function tooltip(): string | undefined
|
|
1358
1436
|
|
|
1437
|
+
/** @public */
|
|
1359
1438
|
export declare function tooltipCard(): string | undefined
|
|
1360
1439
|
|
|
1440
|
+
/** @beta */
|
|
1361
1441
|
export declare function treeItem(): string | undefined
|
|
1362
1442
|
|
|
1363
1443
|
/** @public */
|
|
@@ -1376,6 +1456,20 @@ export declare type VarName =
|
|
|
1376
1456
|
|
|
1377
1457
|
/** @public */
|
|
1378
1458
|
export declare interface VarNames {
|
|
1459
|
+
button: {
|
|
1460
|
+
border: {
|
|
1461
|
+
width: VarName
|
|
1462
|
+
}
|
|
1463
|
+
focusRing: {
|
|
1464
|
+
offset: VarName
|
|
1465
|
+
width: VarName
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
card: {
|
|
1469
|
+
shadow: {
|
|
1470
|
+
outline: VarName
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1379
1473
|
color: Record<ThemeColorSchemeKey, ColorSchemeVarNames> &
|
|
1380
1474
|
ScopedColorVarNames &
|
|
1381
1475
|
Record<ThemeColorCardToneKey, ColorCardVarNames>
|
|
@@ -1402,6 +1496,47 @@ export declare interface VarNames {
|
|
|
1402
1496
|
text: FontVarNames<FontTextSize>
|
|
1403
1497
|
}
|
|
1404
1498
|
input: {
|
|
1499
|
+
border: {
|
|
1500
|
+
width: VarName
|
|
1501
|
+
}
|
|
1502
|
+
checkbox: {
|
|
1503
|
+
focusRing: {
|
|
1504
|
+
offset: VarName
|
|
1505
|
+
width: VarName
|
|
1506
|
+
}
|
|
1507
|
+
size: VarName
|
|
1508
|
+
}
|
|
1509
|
+
radio: {
|
|
1510
|
+
focusRing: {
|
|
1511
|
+
offset: VarName
|
|
1512
|
+
width: VarName
|
|
1513
|
+
}
|
|
1514
|
+
markSize: VarName
|
|
1515
|
+
size: VarName
|
|
1516
|
+
}
|
|
1517
|
+
select: {
|
|
1518
|
+
focusRing: {
|
|
1519
|
+
offset: VarName
|
|
1520
|
+
width: VarName
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
switch: {
|
|
1524
|
+
focusRing: {
|
|
1525
|
+
offset: VarName
|
|
1526
|
+
width: VarName
|
|
1527
|
+
}
|
|
1528
|
+
height: VarName
|
|
1529
|
+
padding: VarName
|
|
1530
|
+
transitionDurationMs: VarName
|
|
1531
|
+
transitionTimingFunction: VarName
|
|
1532
|
+
width: VarName
|
|
1533
|
+
}
|
|
1534
|
+
text: {
|
|
1535
|
+
focusRing: {
|
|
1536
|
+
offset: VarName
|
|
1537
|
+
width: VarName
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1405
1540
|
fontSize: VarName
|
|
1406
1541
|
lineHeight: VarName
|
|
1407
1542
|
letterSpacing: VarName
|
|
@@ -1411,9 +1546,29 @@ export declare interface VarNames {
|
|
|
1411
1546
|
padding: VarName
|
|
1412
1547
|
}
|
|
1413
1548
|
radius: Record<Radius, VarName>
|
|
1549
|
+
shadow: Record<
|
|
1550
|
+
Shadow,
|
|
1551
|
+
{
|
|
1552
|
+
umbra: VarName
|
|
1553
|
+
penumbra: VarName
|
|
1554
|
+
ambient: VarName
|
|
1555
|
+
}
|
|
1556
|
+
>
|
|
1414
1557
|
space: Record<Space, VarName>
|
|
1558
|
+
black: VarName
|
|
1559
|
+
white: VarName
|
|
1560
|
+
gray: Record<ColorTintKey, VarName>
|
|
1561
|
+
blue: Record<ColorTintKey, VarName>
|
|
1562
|
+
purple: Record<ColorTintKey, VarName>
|
|
1563
|
+
magenta: Record<ColorTintKey, VarName>
|
|
1564
|
+
red: Record<ColorTintKey, VarName>
|
|
1565
|
+
orange: Record<ColorTintKey, VarName>
|
|
1566
|
+
yellow: Record<ColorTintKey, VarName>
|
|
1567
|
+
green: Record<ColorTintKey, VarName>
|
|
1568
|
+
cyan: Record<ColorTintKey, VarName>
|
|
1415
1569
|
}
|
|
1416
1570
|
|
|
1571
|
+
/** @public */
|
|
1417
1572
|
export declare const varNames: VarNames
|
|
1418
1573
|
|
|
1419
1574
|
/** @public */
|
|
@@ -1429,6 +1584,11 @@ export declare interface Vars {
|
|
|
1429
1584
|
}
|
|
1430
1585
|
>
|
|
1431
1586
|
}
|
|
1587
|
+
card: {
|
|
1588
|
+
shadow: {
|
|
1589
|
+
outline: CSSVar
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1432
1592
|
color: {
|
|
1433
1593
|
dark: ColorSchemeVars
|
|
1434
1594
|
light: ColorSchemeVars
|
|
@@ -1457,15 +1617,38 @@ export declare interface Vars {
|
|
|
1457
1617
|
}
|
|
1458
1618
|
}
|
|
1459
1619
|
radius: Record<Radius, CSSVar>
|
|
1620
|
+
shadow: Record<
|
|
1621
|
+
Shadow,
|
|
1622
|
+
{
|
|
1623
|
+
umbra: CSSVar
|
|
1624
|
+
penumbra: CSSVar
|
|
1625
|
+
ambient: CSSVar
|
|
1626
|
+
}
|
|
1627
|
+
>
|
|
1460
1628
|
space: Record<Space, CSSVar>
|
|
1629
|
+
black: CSSVar
|
|
1630
|
+
white: CSSVar
|
|
1631
|
+
gray: Record<ColorTintKey, CSSVar>
|
|
1632
|
+
blue: Record<ColorTintKey, CSSVar>
|
|
1633
|
+
purple: Record<ColorTintKey, CSSVar>
|
|
1634
|
+
magenta: Record<ColorTintKey, CSSVar>
|
|
1635
|
+
red: Record<ColorTintKey, CSSVar>
|
|
1636
|
+
orange: Record<ColorTintKey, CSSVar>
|
|
1637
|
+
yellow: Record<ColorTintKey, CSSVar>
|
|
1638
|
+
green: Record<ColorTintKey, CSSVar>
|
|
1639
|
+
cyan: Record<ColorTintKey, CSSVar>
|
|
1461
1640
|
}
|
|
1462
1641
|
|
|
1642
|
+
/** @public */
|
|
1463
1643
|
export declare const vars: Vars
|
|
1464
1644
|
|
|
1645
|
+
/** @public */
|
|
1465
1646
|
export declare type Width = ContainerWidth | 'fill'
|
|
1466
1647
|
|
|
1648
|
+
/** @internal */
|
|
1467
1649
|
export declare function width(props: WidthStyleProps): string
|
|
1468
1650
|
|
|
1651
|
+
/** @public */
|
|
1469
1652
|
export declare interface WidthStyleProps {
|
|
1470
1653
|
width?: ResponsiveProp<Width>
|
|
1471
1654
|
}
|