@sanity/ui 3.0.0-static.11 → 3.0.0-static.13
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 +1293 -1215
- 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 +1284 -1202
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +528 -358
- package/dist/_visual-editing.d.ts +528 -358
- package/dist/cli.js +1 -1
- package/dist/css.d.mts +143 -73
- package/dist/css.d.ts +143 -73
- package/dist/css.js +329 -472
- package/dist/css.js.map +1 -1
- package/dist/css.mjs +330 -473
- package/dist/css.mjs.map +1 -1
- package/dist/index.d.mts +1362 -869
- package/dist/index.d.ts +1362 -869
- package/dist/index.js +383 -308
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +387 -312
- 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 -21946
- 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 +9 -9
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +9 -9
- 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/{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/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.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/{compile/compilePalette.ts → compilePalette.ts} +14 -10
- package/src/css/compileSystem.ts +7 -0
- package/src/css/{compile/compileTheme.ts → compileTheme.ts} +1 -0
- package/src/css/{compile/compileTheme_v3.ts → compileTheme_v3.ts} +123 -104
- 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.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 +2 -0
- package/src/css/index.ts +3 -3
- package/src/css/primitives/_arrow/_arrow.ts +3 -0
- package/src/css/primitives/_input/input.ts +2 -0
- package/src/css/primitives/_selectable/_selectable.style.ts +1 -2
- 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.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 +3 -6
- 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/tooltip/tooltip.ts +2 -0
- package/src/css/scopeClassName.ts +1 -0
- package/src/css/types.ts +9 -12
- package/src/css/util.ts +5 -0
- package/src/css/utils/srOnly/srOnly.ts +3 -1
- package/src/css/varNames.ts +131 -141
- package/src/css/vars.ts +1 -6
- 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 +1 -0
- package/src/theme/v3/color/color.ts +6 -4
- package/src/theme/v3/color/renderColor.ts +4 -1
- package/src/theme/v3/defaultTokens.ts +1 -0
- package/src/theme/v3/resolveTokens.ts +9 -9
- package/src/ui/RootClassNames.tsx +3 -0
- package/src/ui/StyleTags.tsx +3 -1
- 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/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/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 +64 -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 +41 -26
- package/src/ui/primitives/popover/popover.tsx +281 -277
- package/src/ui/primitives/popover/popoverCard.tsx +119 -118
- 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 +42 -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 +76 -59
- 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 +40 -14
- 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 +36 -14
- 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 +36 -24
- 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 -7
- package/src/css/compile/types.ts +0 -6
- package/src/css/primitives/_selectable/_contants.ts +0 -11
- package/src/css/primitives/card/_constants.ts +0 -13
- package/src/ui/utils/conditionalWrapper/conditionalWrapper.tsx +0 -23
- package/src/ui/utils/conditionalWrapper/index.ts +0 -1
package/dist/css.d.ts
CHANGED
|
@@ -20,35 +20,47 @@ import {ThemeColorSchemeKey} from '@sanity/ui/theme'
|
|
|
20
20
|
import {ThemeColorStateToneKey} from '@sanity/ui/theme'
|
|
21
21
|
import {Tint} from '@sanity/ui/theme'
|
|
22
22
|
|
|
23
|
+
/** @public */
|
|
23
24
|
export declare function animatedSpinnerIcon(): string | undefined
|
|
24
25
|
|
|
25
26
|
/** @internal */
|
|
26
27
|
export declare function _arrow(): string | undefined
|
|
27
28
|
|
|
29
|
+
/** @internal */
|
|
28
30
|
export declare function _arrowShape(): string | undefined
|
|
29
31
|
|
|
32
|
+
/** @internal */
|
|
30
33
|
export declare function _arrowStroke(): string | undefined
|
|
31
34
|
|
|
35
|
+
/** @internal */
|
|
32
36
|
export declare function _arrowStrokeMask(): string | undefined
|
|
33
37
|
|
|
38
|
+
/** @public */
|
|
34
39
|
export declare function avatar(props: AvatarStyleProps): string | undefined
|
|
35
40
|
|
|
41
|
+
/** @public */
|
|
36
42
|
export declare function avatarArrow(): string | undefined
|
|
37
43
|
|
|
44
|
+
/** @public */
|
|
38
45
|
export declare function avatarCounter(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
39
46
|
|
|
47
|
+
/** @public */
|
|
40
48
|
export declare function avatarImage(): string | undefined
|
|
41
49
|
|
|
50
|
+
/** @public */
|
|
42
51
|
export declare function avatarInitials(): string | undefined
|
|
43
52
|
|
|
53
|
+
/** @public */
|
|
44
54
|
export declare type AvatarScopedVarName =
|
|
45
55
|
| `--avatar-bg-color`
|
|
46
56
|
| `--avatar-fg-color`
|
|
47
57
|
| `--avatar-distance`
|
|
48
58
|
| `--avatar-size`
|
|
49
59
|
|
|
60
|
+
/** @public */
|
|
50
61
|
export declare function avatarStack(props: {size?: AvatarStyleProps['size']}): string | undefined
|
|
51
62
|
|
|
63
|
+
/** @public */
|
|
52
64
|
export declare interface AvatarStyleProps {
|
|
53
65
|
color: ThemeColorAvatarColorKey
|
|
54
66
|
size: ResponsiveProp<AvatarSize>
|
|
@@ -77,17 +89,13 @@ export declare interface BorderStyleProps {
|
|
|
77
89
|
/** @public */
|
|
78
90
|
export declare function box(props: BoxStyleProps): string | undefined
|
|
79
91
|
|
|
80
|
-
/**
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
92
|
+
/** @public */
|
|
83
93
|
export declare type BoxHeight = 'stretch' | 'fill'
|
|
84
94
|
|
|
85
95
|
/** @public */
|
|
86
96
|
export declare type BoxOverflow = 'visible' | 'hidden' | 'auto'
|
|
87
97
|
|
|
88
|
-
/**
|
|
89
|
-
* @public
|
|
90
|
-
*/
|
|
98
|
+
/** @public */
|
|
91
99
|
export declare type BoxSizing = 'content' | 'border'
|
|
92
100
|
|
|
93
101
|
/** @public */
|
|
@@ -115,8 +123,10 @@ export declare interface BoxStyleProps
|
|
|
115
123
|
sizing?: ResponsiveProp<BoxSizing>
|
|
116
124
|
}
|
|
117
125
|
|
|
126
|
+
/** @public */
|
|
118
127
|
export declare function breadcrumbs(): string | undefined
|
|
119
128
|
|
|
129
|
+
/** @public */
|
|
120
130
|
export declare const BREAKPOINTS: {
|
|
121
131
|
1: number
|
|
122
132
|
2: number
|
|
@@ -126,12 +136,16 @@ export declare const BREAKPOINTS: {
|
|
|
126
136
|
6: number
|
|
127
137
|
}
|
|
128
138
|
|
|
139
|
+
/** @public */
|
|
129
140
|
export declare function button(props: ButtonStyleProps): string | undefined
|
|
130
141
|
|
|
142
|
+
/** @public */
|
|
131
143
|
export declare function buttonLoadingBox(): string | undefined
|
|
132
144
|
|
|
145
|
+
/** @public */
|
|
133
146
|
export declare type ButtonScopedVarName = '--button-box-shadow'
|
|
134
147
|
|
|
148
|
+
/** @public */
|
|
135
149
|
export declare interface ButtonStyleProps
|
|
136
150
|
extends DisplayStyleProps,
|
|
137
151
|
FlexItemStyleProps,
|
|
@@ -141,11 +155,11 @@ export declare interface ButtonStyleProps
|
|
|
141
155
|
tone?: ThemeColorStateToneKey
|
|
142
156
|
}
|
|
143
157
|
|
|
158
|
+
/** @public */
|
|
144
159
|
export declare function card(props: CardStyleProps): string | undefined
|
|
145
160
|
|
|
146
161
|
/** @public */
|
|
147
162
|
export declare type CardScopedVarName =
|
|
148
|
-
| `--color-accent-fg`
|
|
149
163
|
| `--color-avatar-bg`
|
|
150
164
|
| `--color-avatar-fg`
|
|
151
165
|
| `--color-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
@@ -229,14 +243,17 @@ export declare type CardScopedVarName =
|
|
|
229
243
|
| `--padding-bottom`
|
|
230
244
|
| `--padding-left`
|
|
231
245
|
|
|
232
|
-
|
|
246
|
+
/** @public */
|
|
247
|
+
export declare interface CardStyleProps extends ShadowStyleProps {
|
|
233
248
|
checkered?: boolean
|
|
234
249
|
scheme?: ThemeColorSchemeKey
|
|
235
250
|
tone?: ThemeColorCardToneKey | 'inherit'
|
|
236
251
|
}
|
|
237
252
|
|
|
253
|
+
/** @public */
|
|
238
254
|
export declare function checkbox(): string | undefined
|
|
239
255
|
|
|
256
|
+
/** @public */
|
|
240
257
|
export declare function checkboxInput(): string | undefined
|
|
241
258
|
|
|
242
259
|
/** @public */
|
|
@@ -245,8 +262,10 @@ export declare function code(props: CodeStyleProps): string | undefined
|
|
|
245
262
|
/** @public */
|
|
246
263
|
export declare type CodeSize = number
|
|
247
264
|
|
|
265
|
+
/** @beta */
|
|
248
266
|
export declare function codeSkeleton(props: CodeSkeletonStyleProps): string | undefined
|
|
249
267
|
|
|
268
|
+
/** @beta */
|
|
250
269
|
export declare interface CodeSkeletonStyleProps {
|
|
251
270
|
size?: ResponsiveProp<FontCodeSize>
|
|
252
271
|
}
|
|
@@ -282,8 +301,8 @@ export declare interface ColorBadgeToneVars {
|
|
|
282
301
|
/** @public */
|
|
283
302
|
export declare type ColorBadgeVars = Record<ThemeColorStateToneKey, ColorBadgeToneVars>
|
|
284
303
|
|
|
304
|
+
/** @public */
|
|
285
305
|
export declare type ColorCardToneScopedVarName =
|
|
286
|
-
| `--color-${ThemeColorCardToneKey}-accent-fg`
|
|
287
306
|
| `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
288
307
|
| `--color-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
289
308
|
| `--color-${ThemeColorCardToneKey}-backdrop`
|
|
@@ -337,8 +356,8 @@ export declare type ColorCardToneScopedVarName =
|
|
|
337
356
|
| `--color-${ThemeColorCardToneKey}-skeleton-from`
|
|
338
357
|
| `--color-${ThemeColorCardToneKey}-skeleton-to`
|
|
339
358
|
|
|
359
|
+
/** @public */
|
|
340
360
|
export declare type ColorCardVarName =
|
|
341
|
-
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-accent-fg`
|
|
342
361
|
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-bg`
|
|
343
362
|
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-avatar-${ThemeColorAvatarColorKey}-fg`
|
|
344
363
|
| `--color-${ThemeColorSchemeKey}-${ThemeColorCardToneKey}-backdrop`
|
|
@@ -394,9 +413,6 @@ export declare type ColorCardVarName =
|
|
|
394
413
|
|
|
395
414
|
/** @public */
|
|
396
415
|
export declare interface ColorCardVarNames {
|
|
397
|
-
accent: {
|
|
398
|
-
fg: VarName
|
|
399
|
-
}
|
|
400
416
|
avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames>
|
|
401
417
|
backdrop: VarName
|
|
402
418
|
code: {
|
|
@@ -465,9 +481,6 @@ export declare interface ColorCardVarNames {
|
|
|
465
481
|
|
|
466
482
|
/** @public */
|
|
467
483
|
export declare interface ColorCardVars {
|
|
468
|
-
accent: {
|
|
469
|
-
fg: CSSVar
|
|
470
|
-
}
|
|
471
484
|
avatar: ColorAvatarVars
|
|
472
485
|
backdrop: CSSVar
|
|
473
486
|
code: {
|
|
@@ -601,6 +614,7 @@ export declare type ColorSchemeVarNames = Record<ThemeColorCardToneKey, ColorCar
|
|
|
601
614
|
/** @public */
|
|
602
615
|
export declare interface ColorSchemeVars extends Record<ThemeColorCardToneKey, ColorCardVars> {}
|
|
603
616
|
|
|
617
|
+
/** @public */
|
|
604
618
|
export declare interface ColorVariantVarNames
|
|
605
619
|
extends ColorElementVarNames,
|
|
606
620
|
Record<ThemeColorStateToneKey, ColorElementVarNames> {}
|
|
@@ -610,21 +624,27 @@ export declare interface ColorVariantVars
|
|
|
610
624
|
extends Record<ThemeColorStateToneKey, ColorElementVars>,
|
|
611
625
|
ColorElementVars {}
|
|
612
626
|
|
|
627
|
+
/** @public */
|
|
613
628
|
export declare type Columns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
614
629
|
|
|
630
|
+
/** @internal */
|
|
615
631
|
export declare function compilePalette(): string
|
|
616
632
|
|
|
617
|
-
/** @
|
|
633
|
+
/** @internal */
|
|
618
634
|
export declare function compileSystem(): string
|
|
619
635
|
|
|
636
|
+
/** @internal */
|
|
620
637
|
export declare function compileTheme(theme: RootTheme): string
|
|
621
638
|
|
|
639
|
+
/** @public */
|
|
622
640
|
export declare function composeClassNames(
|
|
623
641
|
...classNames: Array<string | false | undefined>
|
|
624
642
|
): string | undefined
|
|
625
643
|
|
|
644
|
+
/** @public */
|
|
626
645
|
export declare function container(props: ContainerStyleProps): string | undefined
|
|
627
646
|
|
|
647
|
+
/** @public */
|
|
628
648
|
export declare interface ContainerStyleProps {
|
|
629
649
|
width?: ResponsiveProp<ContainerWidth>
|
|
630
650
|
}
|
|
@@ -635,23 +655,28 @@ export declare type CSSVar = `var(${VarName})`
|
|
|
635
655
|
/** @public */
|
|
636
656
|
export declare interface CustomCSSProperties extends Record<VarName, string> {}
|
|
637
657
|
|
|
658
|
+
/** @public */
|
|
638
659
|
export declare function dialog(): string | undefined
|
|
639
660
|
|
|
661
|
+
/** @public */
|
|
640
662
|
export declare function dialogCardRoot(): string | undefined
|
|
641
663
|
|
|
664
|
+
/** @public */
|
|
642
665
|
export declare function dialogContainer(): string | undefined
|
|
643
666
|
|
|
667
|
+
/** @public */
|
|
644
668
|
export declare function dialogContent(): string | undefined
|
|
645
669
|
|
|
670
|
+
/** @public */
|
|
646
671
|
export declare function dialogFooter(): string | undefined
|
|
647
672
|
|
|
673
|
+
/** @public */
|
|
648
674
|
export declare function dialogHeader(): string | undefined
|
|
649
675
|
|
|
676
|
+
/** @public */
|
|
650
677
|
export declare function dialogLayout(): string | undefined
|
|
651
678
|
|
|
652
|
-
/**
|
|
653
|
-
* @public
|
|
654
|
-
*/
|
|
679
|
+
/** @public */
|
|
655
680
|
export declare type Display =
|
|
656
681
|
| 'block'
|
|
657
682
|
| 'inline-block'
|
|
@@ -661,8 +686,10 @@ export declare type Display =
|
|
|
661
686
|
| 'inline-grid'
|
|
662
687
|
| 'none'
|
|
663
688
|
|
|
689
|
+
/** @internal */
|
|
664
690
|
export declare function display(props: DisplayStyleProps): string | undefined
|
|
665
691
|
|
|
692
|
+
/** @public */
|
|
666
693
|
export declare interface DisplayStyleProps {
|
|
667
694
|
display?: ResponsiveProp<Display>
|
|
668
695
|
}
|
|
@@ -695,14 +722,10 @@ export declare type ElementColorVariantScopedVarName =
|
|
|
695
722
|
/** @public */
|
|
696
723
|
export declare function flex(props: FlexStyleProps): string | undefined
|
|
697
724
|
|
|
698
|
-
/**
|
|
699
|
-
* @public
|
|
700
|
-
*/
|
|
725
|
+
/** @public */
|
|
701
726
|
export declare type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch'
|
|
702
727
|
|
|
703
|
-
/**
|
|
704
|
-
* @public
|
|
705
|
-
*/
|
|
728
|
+
/** @public */
|
|
706
729
|
export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
|
|
707
730
|
|
|
708
731
|
/** @public */
|
|
@@ -713,9 +736,7 @@ export declare interface FlexItemStyleProps {
|
|
|
713
736
|
flex?: ResponsiveProp<FlexValue>
|
|
714
737
|
}
|
|
715
738
|
|
|
716
|
-
/**
|
|
717
|
-
* @public
|
|
718
|
-
*/
|
|
739
|
+
/** @public */
|
|
719
740
|
export declare type FlexJustify =
|
|
720
741
|
| 'flex-start'
|
|
721
742
|
| 'flex-end'
|
|
@@ -732,9 +753,7 @@ export declare interface FlexStyleProps {
|
|
|
732
753
|
wrap?: ResponsiveProp<FlexWrap>
|
|
733
754
|
}
|
|
734
755
|
|
|
735
|
-
/**
|
|
736
|
-
* @public
|
|
737
|
-
*/
|
|
756
|
+
/** @public */
|
|
738
757
|
export declare type FlexValue =
|
|
739
758
|
| 'none'
|
|
740
759
|
| 'auto'
|
|
@@ -753,9 +772,7 @@ export declare type FlexValue =
|
|
|
753
772
|
| 11
|
|
754
773
|
| 12
|
|
755
774
|
|
|
756
|
-
/**
|
|
757
|
-
* @public
|
|
758
|
-
*/
|
|
775
|
+
/** @public */
|
|
759
776
|
export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
|
|
760
777
|
|
|
761
778
|
/** @public */
|
|
@@ -787,6 +804,7 @@ export declare interface FontStyleProps {
|
|
|
787
804
|
weight?: FontWeight
|
|
788
805
|
}
|
|
789
806
|
|
|
807
|
+
/** @public */
|
|
790
808
|
export declare interface FontVarNames<Size extends number> {
|
|
791
809
|
family: VarName
|
|
792
810
|
featureSettings: VarName
|
|
@@ -811,58 +829,43 @@ export declare interface GapStyleProps {
|
|
|
811
829
|
gapY?: ResponsiveProp<Space>
|
|
812
830
|
}
|
|
813
831
|
|
|
814
|
-
|
|
832
|
+
/** @internal */
|
|
833
|
+
export declare function _getClassNames(...classNames: Array<string | false | undefined>): string[]
|
|
815
834
|
|
|
835
|
+
/** @internal */
|
|
816
836
|
export declare function grid(props: GridStyleProps): string | undefined
|
|
817
837
|
|
|
818
|
-
/**
|
|
819
|
-
* @public
|
|
820
|
-
*/
|
|
838
|
+
/** @public */
|
|
821
839
|
export declare type GridAutoCols = 'auto' | 'min' | 'max' | 'fr'
|
|
822
840
|
|
|
823
|
-
/**
|
|
824
|
-
* @public
|
|
825
|
-
*/
|
|
841
|
+
/** @public */
|
|
826
842
|
export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
|
|
827
843
|
|
|
828
|
-
/**
|
|
829
|
-
* @public
|
|
830
|
-
*/
|
|
844
|
+
/** @public */
|
|
831
845
|
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
832
846
|
|
|
833
|
-
/** @
|
|
847
|
+
/** @internal */
|
|
834
848
|
export declare function gridItem(props: GridItemStyleProps): string | undefined
|
|
835
849
|
|
|
836
|
-
/**
|
|
837
|
-
* @public
|
|
838
|
-
*/
|
|
850
|
+
/** @public */
|
|
839
851
|
export declare type GridItemColumn = 'auto' | 'full' | number
|
|
840
852
|
|
|
841
|
-
/**
|
|
842
|
-
* @public
|
|
843
|
-
*/
|
|
853
|
+
/** @public */
|
|
844
854
|
export declare type GridItemColumnEnd = 'auto' | number
|
|
845
855
|
|
|
846
|
-
/**
|
|
847
|
-
* @public
|
|
848
|
-
*/
|
|
856
|
+
/** @public */
|
|
849
857
|
export declare type GridItemColumnStart = 'auto' | number
|
|
850
858
|
|
|
851
|
-
/**
|
|
852
|
-
* @public
|
|
853
|
-
*/
|
|
859
|
+
/** @public */
|
|
854
860
|
export declare type GridItemRow = 'auto' | 'full' | number
|
|
855
861
|
|
|
856
|
-
/**
|
|
857
|
-
* @public
|
|
858
|
-
*/
|
|
862
|
+
/** @public */
|
|
859
863
|
export declare type GridItemRowEnd = 'auto' | number
|
|
860
864
|
|
|
861
|
-
/**
|
|
862
|
-
* @public
|
|
863
|
-
*/
|
|
865
|
+
/** @public */
|
|
864
866
|
export declare type GridItemRowStart = 'auto' | number
|
|
865
867
|
|
|
868
|
+
/** @public */
|
|
866
869
|
export declare interface GridItemStyleProps {
|
|
867
870
|
column?: ResponsiveProp<GridItemColumn>
|
|
868
871
|
columnStart?: ResponsiveProp<GridItemColumnStart>
|
|
@@ -887,8 +890,10 @@ export declare function heading(props: HeadingStyleProps): string | undefined
|
|
|
887
890
|
/** @public */
|
|
888
891
|
export declare type HeadingSize = number
|
|
889
892
|
|
|
893
|
+
/** @beta */
|
|
890
894
|
export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string | undefined
|
|
891
895
|
|
|
896
|
+
/** @beta */
|
|
892
897
|
export declare interface HeadingSkeletonStyleProps {
|
|
893
898
|
size?: ResponsiveProp<FontHeadingSize>
|
|
894
899
|
}
|
|
@@ -900,9 +905,10 @@ export declare interface HeadingStyleProps extends FontStyleProps, FlexItemStyle
|
|
|
900
905
|
size?: ResponsiveProp<HeadingSize>
|
|
901
906
|
}
|
|
902
907
|
|
|
903
|
-
/** @
|
|
908
|
+
/** @internal */
|
|
904
909
|
export declare function height(props: HeightStyleProps): string | undefined
|
|
905
910
|
|
|
911
|
+
/** @public */
|
|
906
912
|
export declare interface HeightStyleProps {
|
|
907
913
|
height?: ResponsiveProp<BoxHeight>
|
|
908
914
|
}
|
|
@@ -910,8 +916,10 @@ export declare interface HeightStyleProps {
|
|
|
910
916
|
/** @internal */
|
|
911
917
|
export declare function _input(props: InputStyleProps): string | undefined
|
|
912
918
|
|
|
919
|
+
/** @internal */
|
|
913
920
|
export declare function _inputElement(): string | undefined
|
|
914
921
|
|
|
922
|
+
/** @internal */
|
|
915
923
|
export declare function _inputPresentation(): string | undefined
|
|
916
924
|
|
|
917
925
|
/** @public */
|
|
@@ -939,6 +947,7 @@ export declare interface InputStyleProps extends RadiusStyleProps, WidthStylePro
|
|
|
939
947
|
/** @public */
|
|
940
948
|
export declare type Inset = 0
|
|
941
949
|
|
|
950
|
+
/** @internal */
|
|
942
951
|
export declare function inset(props: InsetStyleProps): string | undefined
|
|
943
952
|
|
|
944
953
|
/** @public */
|
|
@@ -950,10 +959,13 @@ export declare interface InsetStyleProps {
|
|
|
950
959
|
insetLeft?: ResponsiveProp<Inset>
|
|
951
960
|
}
|
|
952
961
|
|
|
962
|
+
/** @internal */
|
|
953
963
|
export declare function isArray(value: unknown): value is unknown[]
|
|
954
964
|
|
|
965
|
+
/** @internal */
|
|
955
966
|
export declare function isRecord(value: unknown): value is Record<string, unknown>
|
|
956
967
|
|
|
968
|
+
/** @public */
|
|
957
969
|
export declare function kbd(props: KBDStyleProps): string | undefined
|
|
958
970
|
|
|
959
971
|
/** @public */
|
|
@@ -962,11 +974,16 @@ export declare interface KBDStyleProps extends RadiusStyleProps {}
|
|
|
962
974
|
/** @public */
|
|
963
975
|
export declare function label(props: LabelStyleProps): string | undefined
|
|
964
976
|
|
|
965
|
-
/**
|
|
977
|
+
/**
|
|
978
|
+
* @public
|
|
979
|
+
* @deprecated Use `FontLabelSize` from `@sanity/ui/theme` instead
|
|
980
|
+
*/
|
|
966
981
|
export declare type LabelSize = number
|
|
967
982
|
|
|
983
|
+
/** @beta */
|
|
968
984
|
export declare function labelSkeleton(props: LabelSkeletonStyleProps): string | undefined
|
|
969
985
|
|
|
986
|
+
/** @beta */
|
|
970
987
|
export declare interface LabelSkeletonStyleProps {
|
|
971
988
|
size?: ResponsiveProp<FontLabelSize>
|
|
972
989
|
}
|
|
@@ -975,9 +992,10 @@ export declare interface LabelSkeletonStyleProps {
|
|
|
975
992
|
export declare interface LabelStyleProps extends FontStyleProps {
|
|
976
993
|
accent?: boolean
|
|
977
994
|
muted?: boolean
|
|
978
|
-
size?: ResponsiveProp<
|
|
995
|
+
size?: ResponsiveProp<FontLabelSize>
|
|
979
996
|
}
|
|
980
997
|
|
|
998
|
+
/** @public */
|
|
981
999
|
export declare type LegacyCardScopedVarName =
|
|
982
1000
|
| `--card-accent-fg-color`
|
|
983
1001
|
| `--card-avatar-${ThemeColorAvatarColorKey}-bg-color`
|
|
@@ -1012,8 +1030,10 @@ export declare type LegacyCardScopedVarName =
|
|
|
1012
1030
|
| `--card-skeleton-from-color`
|
|
1013
1031
|
| `--card-skeleton-to-color`
|
|
1014
1032
|
|
|
1033
|
+
/** @internal */
|
|
1015
1034
|
export declare function margin(props: MarginStyleProps): string | undefined
|
|
1016
1035
|
|
|
1036
|
+
/** @public */
|
|
1017
1037
|
export declare interface MarginStyleProps {
|
|
1018
1038
|
margin?: ResponsiveProp<number>
|
|
1019
1039
|
marginTop?: ResponsiveProp<number>
|
|
@@ -1024,24 +1044,32 @@ export declare interface MarginStyleProps {
|
|
|
1024
1044
|
marginY?: ResponsiveProp<number>
|
|
1025
1045
|
}
|
|
1026
1046
|
|
|
1047
|
+
/** @internal */
|
|
1027
1048
|
export declare function maxWidth(props: MaxWidthStyleProps): string
|
|
1028
1049
|
|
|
1050
|
+
/** @public */
|
|
1029
1051
|
export declare interface MaxWidthStyleProps {
|
|
1030
1052
|
maxWidth?: ResponsiveProp<ContainerWidth | 'auto' | 'fill'>
|
|
1031
1053
|
}
|
|
1032
1054
|
|
|
1055
|
+
/** @public */
|
|
1033
1056
|
export declare function menu(): string | undefined
|
|
1034
1057
|
|
|
1058
|
+
/** @public */
|
|
1035
1059
|
export declare function menuDivider(): string | undefined
|
|
1036
1060
|
|
|
1061
|
+
/** @public */
|
|
1037
1062
|
export declare type MinWidth = 0 | 'auto' | 'full' | 'min' | 'max' | 'fit'
|
|
1038
1063
|
|
|
1064
|
+
/** @internal */
|
|
1039
1065
|
export declare function minWidth(props: MinWidthStyleProps): string
|
|
1040
1066
|
|
|
1067
|
+
/** @public */
|
|
1041
1068
|
export declare interface MinWidthStyleProps {
|
|
1042
1069
|
minWidth?: ResponsiveProp<MinWidth>
|
|
1043
1070
|
}
|
|
1044
1071
|
|
|
1072
|
+
/** @internal */
|
|
1045
1073
|
export declare function overflow(props: OverflowStyleProps): string | undefined
|
|
1046
1074
|
|
|
1047
1075
|
/** @public */
|
|
@@ -1051,6 +1079,7 @@ export declare interface OverflowStyleProps {
|
|
|
1051
1079
|
overflowY?: ResponsiveProp<BoxOverflow>
|
|
1052
1080
|
}
|
|
1053
1081
|
|
|
1082
|
+
/** @internal */
|
|
1054
1083
|
export declare function padding(props: PaddingStyleProps): string | undefined
|
|
1055
1084
|
|
|
1056
1085
|
/** @public */
|
|
@@ -1070,6 +1099,7 @@ export declare type PaletteVarName = `--black` | `--white` | `--${Hue}-${Tint}`
|
|
|
1070
1099
|
/** @public */
|
|
1071
1100
|
export declare type PointerEvents = 'auto' | 'none'
|
|
1072
1101
|
|
|
1102
|
+
/** @internal */
|
|
1073
1103
|
export declare function pointerEvents(props: PointerEventsStyleProps): string | undefined
|
|
1074
1104
|
|
|
1075
1105
|
/** @public */
|
|
@@ -1077,13 +1107,16 @@ export declare interface PointerEventsStyleProps {
|
|
|
1077
1107
|
pointerEvents?: PointerEvents
|
|
1078
1108
|
}
|
|
1079
1109
|
|
|
1110
|
+
/** @public */
|
|
1080
1111
|
export declare function popover(): string | undefined
|
|
1081
1112
|
|
|
1113
|
+
/** @public */
|
|
1082
1114
|
export declare function popoverCard(): string | undefined
|
|
1083
1115
|
|
|
1084
1116
|
/** @public */
|
|
1085
1117
|
export declare type Position = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky'
|
|
1086
1118
|
|
|
1119
|
+
/** @internal */
|
|
1087
1120
|
export declare function position(props: PositionStyleProps): string | undefined
|
|
1088
1121
|
|
|
1089
1122
|
/** @public */
|
|
@@ -1091,6 +1124,7 @@ export declare interface PositionStyleProps {
|
|
|
1091
1124
|
position?: ResponsiveProp<Position>
|
|
1092
1125
|
}
|
|
1093
1126
|
|
|
1127
|
+
/** @public */
|
|
1094
1128
|
export declare const PREFIX = 's-'
|
|
1095
1129
|
|
|
1096
1130
|
/** @public */
|
|
@@ -1109,8 +1143,10 @@ export declare type PropertiesWithVarsAndNested = PropertiesWithVars & {
|
|
|
1109
1143
|
'@nest'?: Record<string, PropertiesWithVars>
|
|
1110
1144
|
}
|
|
1111
1145
|
|
|
1146
|
+
/** @internal */
|
|
1112
1147
|
export declare function px(value: number): string
|
|
1113
1148
|
|
|
1149
|
+
/** @public */
|
|
1114
1150
|
export declare function radio(): string | undefined
|
|
1115
1151
|
|
|
1116
1152
|
/** @public */
|
|
@@ -1121,11 +1157,13 @@ export declare interface RadiusStyleProps {
|
|
|
1121
1157
|
radius?: ResponsiveProp<Radius | 'full'>
|
|
1122
1158
|
}
|
|
1123
1159
|
|
|
1160
|
+
/** @internal */
|
|
1124
1161
|
export declare function rem(value: number): string
|
|
1125
1162
|
|
|
1126
1163
|
/** @public */
|
|
1127
1164
|
export declare type ResponsiveProp<T> = T | Array<T | null | undefined>
|
|
1128
1165
|
|
|
1166
|
+
/** @public */
|
|
1129
1167
|
export declare type Rows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
1130
1168
|
|
|
1131
1169
|
/** @public */
|
|
@@ -1133,12 +1171,11 @@ export declare interface Rules {
|
|
|
1133
1171
|
[className: string]: Properties
|
|
1134
1172
|
}
|
|
1135
1173
|
|
|
1174
|
+
/** @public */
|
|
1136
1175
|
export declare function scopeClassName(className: string | undefined): string | undefined
|
|
1137
1176
|
|
|
1177
|
+
/** @public */
|
|
1138
1178
|
export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'avatar'> {
|
|
1139
|
-
accent: {
|
|
1140
|
-
fg: VarName
|
|
1141
|
-
}
|
|
1142
1179
|
avatar: Record<ThemeColorAvatarColorKey, ColorAvatarColorVarNames> & ColorAvatarColorVarNames
|
|
1143
1180
|
bg: VarName
|
|
1144
1181
|
border: VarName
|
|
@@ -1151,6 +1188,7 @@ export declare interface ScopedColorVarNames extends Omit<ColorCardVarNames, 'av
|
|
|
1151
1188
|
}
|
|
1152
1189
|
}
|
|
1153
1190
|
|
|
1191
|
+
/** @public */
|
|
1154
1192
|
export declare interface ScopedColorVars extends Omit<ColorCardVars, 'avatar'> {
|
|
1155
1193
|
avatar: ColorAvatarVars & ColorAvatarColorVars
|
|
1156
1194
|
bg: CSSVar
|
|
@@ -1164,6 +1202,7 @@ export declare interface ScopedColorVars extends Omit<ColorCardVars, 'avatar'> {
|
|
|
1164
1202
|
}
|
|
1165
1203
|
}
|
|
1166
1204
|
|
|
1205
|
+
/** @public */
|
|
1167
1206
|
export declare function select(props: SelectStyleProps): string | undefined
|
|
1168
1207
|
|
|
1169
1208
|
/** @internal */
|
|
@@ -1174,11 +1213,13 @@ export declare interface SelectableStyleProps extends RadiusStyleProps {
|
|
|
1174
1213
|
tone?: ThemeColorStateToneKey
|
|
1175
1214
|
}
|
|
1176
1215
|
|
|
1216
|
+
/** @public */
|
|
1177
1217
|
export declare function selectPresentation(): string | undefined
|
|
1178
1218
|
|
|
1179
1219
|
/** @public */
|
|
1180
1220
|
export declare interface SelectStyleProps extends InputStyleProps {}
|
|
1181
1221
|
|
|
1222
|
+
/** @internal */
|
|
1182
1223
|
export declare function shadow(props: ShadowStyleProps): string | undefined
|
|
1183
1224
|
|
|
1184
1225
|
/** @public */
|
|
@@ -1192,8 +1233,10 @@ export declare function skeleton(props: SkeletonStyleProps): string | undefined
|
|
|
1192
1233
|
/** @beta */
|
|
1193
1234
|
export declare interface SkeletonStyleProps extends RadiusStyleProps {}
|
|
1194
1235
|
|
|
1236
|
+
/** @public */
|
|
1195
1237
|
export declare function spinner(): string | undefined
|
|
1196
1238
|
|
|
1239
|
+
/** @public */
|
|
1197
1240
|
export declare function srOnly(): string | undefined
|
|
1198
1241
|
|
|
1199
1242
|
/** @public */
|
|
@@ -1218,10 +1261,13 @@ export declare type StyleRules = Partial<Record<StyleSelector, Properties>>
|
|
|
1218
1261
|
/** @public */
|
|
1219
1262
|
export declare type StyleSelector = `.${string}` | `#${string}` | `:root`
|
|
1220
1263
|
|
|
1264
|
+
/** @public */
|
|
1221
1265
|
export declare function _switch(): string | undefined
|
|
1222
1266
|
|
|
1267
|
+
/** @public */
|
|
1223
1268
|
export declare function _switchElement(): string | undefined
|
|
1224
1269
|
|
|
1270
|
+
/** @public */
|
|
1225
1271
|
export declare function _switchPresentation(): string | undefined
|
|
1226
1272
|
|
|
1227
1273
|
/** @public */
|
|
@@ -1231,30 +1277,34 @@ export declare type SwitchScopedVarName =
|
|
|
1231
1277
|
| '--switch-thumb-offset'
|
|
1232
1278
|
| '--switch-thumb-size'
|
|
1233
1279
|
|
|
1280
|
+
/** @public */
|
|
1234
1281
|
export declare function _switchThumb(): string | undefined
|
|
1235
1282
|
|
|
1283
|
+
/** @public */
|
|
1236
1284
|
export declare function _switchTrack(): string | undefined
|
|
1237
1285
|
|
|
1238
1286
|
/** @public */
|
|
1239
1287
|
export declare function text(props: TextStyleProps): string | undefined
|
|
1240
1288
|
|
|
1241
|
-
/**
|
|
1242
|
-
* @public
|
|
1243
|
-
*/
|
|
1289
|
+
/** @public */
|
|
1244
1290
|
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
1245
1291
|
|
|
1292
|
+
/** @public */
|
|
1246
1293
|
export declare function textArea(props: TextAreaStyleProps): string | undefined
|
|
1247
1294
|
|
|
1248
1295
|
/** @public */
|
|
1249
1296
|
export declare interface TextAreaStyleProps extends InputStyleProps {}
|
|
1250
1297
|
|
|
1298
|
+
/** @public */
|
|
1251
1299
|
export declare function textInput(props: TextInputStyleProps): string | undefined
|
|
1252
1300
|
|
|
1253
1301
|
/** @public */
|
|
1254
1302
|
export declare interface TextInputStyleProps extends InputStyleProps {}
|
|
1255
1303
|
|
|
1304
|
+
/** @internal */
|
|
1256
1305
|
export declare function textOverflow(props: TextOverflowStyleProps): string | undefined
|
|
1257
1306
|
|
|
1307
|
+
/** @internal */
|
|
1258
1308
|
export declare interface TextOverflowStyleProps {
|
|
1259
1309
|
/**
|
|
1260
1310
|
* Controls how overflowing text is treated.
|
|
@@ -1264,16 +1314,22 @@ export declare interface TextOverflowStyleProps {
|
|
|
1264
1314
|
textOverflow?: 'ellipsis' | 'clip'
|
|
1265
1315
|
}
|
|
1266
1316
|
|
|
1317
|
+
/** @public */
|
|
1267
1318
|
export declare type TextSize = number
|
|
1268
1319
|
|
|
1320
|
+
/** @beta */
|
|
1269
1321
|
export declare function textSkeleton(props: TextSkeletonStyleProps): string | undefined
|
|
1270
1322
|
|
|
1323
|
+
/** @beta */
|
|
1271
1324
|
export declare interface TextSkeletonStyleProps {
|
|
1272
1325
|
size?: ResponsiveProp<FontTextSize>
|
|
1273
1326
|
}
|
|
1274
1327
|
|
|
1275
1328
|
/** @public */
|
|
1276
1329
|
export declare interface TextStyleProps extends FlexItemStyleProps, FontStyleProps {
|
|
1330
|
+
/**
|
|
1331
|
+
* @deprecated Will be removed in next major version
|
|
1332
|
+
*/
|
|
1277
1333
|
accent?: boolean
|
|
1278
1334
|
muted?: boolean
|
|
1279
1335
|
size?: ResponsiveProp<TextSize>
|
|
@@ -1357,22 +1413,31 @@ export declare type ThemeVarName =
|
|
|
1357
1413
|
| `--shadow-${Shadow}-penumbra`
|
|
1358
1414
|
| `--shadow-${Shadow}-ambient`
|
|
1359
1415
|
|
|
1416
|
+
/** @public */
|
|
1360
1417
|
export declare function toast(): string | undefined
|
|
1361
1418
|
|
|
1419
|
+
/** @public */
|
|
1362
1420
|
export declare function toastLayer(): string | undefined
|
|
1363
1421
|
|
|
1422
|
+
/** @public */
|
|
1364
1423
|
export declare function toastLoadingBar(): string | undefined
|
|
1365
1424
|
|
|
1425
|
+
/** @public */
|
|
1366
1426
|
export declare function toastLoadingBarMask(): string | undefined
|
|
1367
1427
|
|
|
1428
|
+
/** @public */
|
|
1368
1429
|
export declare function toastLoadingBarProgress(): string | undefined
|
|
1369
1430
|
|
|
1431
|
+
/** @internal */
|
|
1370
1432
|
export declare function toBoxShadow(value: ThemeBoxShadow | undefined): string
|
|
1371
1433
|
|
|
1434
|
+
/** @public */
|
|
1372
1435
|
export declare function tooltip(): string | undefined
|
|
1373
1436
|
|
|
1437
|
+
/** @public */
|
|
1374
1438
|
export declare function tooltipCard(): string | undefined
|
|
1375
1439
|
|
|
1440
|
+
/** @beta */
|
|
1376
1441
|
export declare function treeItem(): string | undefined
|
|
1377
1442
|
|
|
1378
1443
|
/** @public */
|
|
@@ -1503,6 +1568,7 @@ export declare interface VarNames {
|
|
|
1503
1568
|
cyan: Record<ColorTintKey, VarName>
|
|
1504
1569
|
}
|
|
1505
1570
|
|
|
1571
|
+
/** @public */
|
|
1506
1572
|
export declare const varNames: VarNames
|
|
1507
1573
|
|
|
1508
1574
|
/** @public */
|
|
@@ -1573,12 +1639,16 @@ export declare interface Vars {
|
|
|
1573
1639
|
cyan: Record<ColorTintKey, CSSVar>
|
|
1574
1640
|
}
|
|
1575
1641
|
|
|
1642
|
+
/** @public */
|
|
1576
1643
|
export declare const vars: Vars
|
|
1577
1644
|
|
|
1645
|
+
/** @public */
|
|
1578
1646
|
export declare type Width = ContainerWidth | 'fill'
|
|
1579
1647
|
|
|
1648
|
+
/** @internal */
|
|
1580
1649
|
export declare function width(props: WidthStyleProps): string
|
|
1581
1650
|
|
|
1651
|
+
/** @public */
|
|
1582
1652
|
export declare interface WidthStyleProps {
|
|
1583
1653
|
width?: ResponsiveProp<Width>
|
|
1584
1654
|
}
|