@sanity/ui 4.0.0-static.2 → 4.0.0-static.21
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/css/index.css +2 -1
- package/dist/css/index.css.map +1 -0
- package/dist/css/index.d.ts +29 -1
- package/dist/css/index.js +17965 -50
- package/dist/css/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -16
- package/dist/index.js.map +1 -1
- package/package.json +38 -48
- package/src/core/components/autocomplete/__workshop__/custom.tsx +14 -1
- package/src/core/components/autocomplete/__workshop__/example.tsx +12 -1
- package/src/core/components/dialog/__workshop__/position.tsx +9 -1
- package/src/core/components/dialog/__workshop__/props.tsx +2 -0
- package/src/core/components/menu/__workshop__/menuButton.tsx +6 -1
- package/src/core/components/menu/__workshop__/tones.tsx +7 -1
- package/src/core/components/menu/menu.tsx +1 -1
- package/src/core/components/menu/menuButton.tsx +10 -5
- package/src/core/components/menu/menuContext.ts +1 -1
- package/src/core/components/menu/menuGroup.tsx +7 -4
- package/src/core/components/menu/menuItem.tsx +1 -1
- package/src/core/components/toast/__workshop__/toast.tsx +2 -0
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +8 -1
- package/src/core/primitives/avatar/__workshop__/stack.tsx +5 -1
- package/src/core/primitives/badge/__workshop__/props.tsx +12 -1
- package/src/core/primitives/box/__workshop__/props.tsx +6 -1
- package/src/core/primitives/button/__workshop__/props.tsx +22 -0
- package/src/core/primitives/button/__workshop__/stacked.tsx +16 -0
- package/src/core/primitives/card/__workshop__/props.tsx +10 -0
- package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
- package/src/core/primitives/card/card.tsx +2 -2
- package/src/core/primitives/code/__workshop__/props.tsx +6 -1
- package/src/core/primitives/container/__workshop__/example.tsx +6 -1
- package/src/core/primitives/flex/__workshop__/example.tsx +7 -1
- package/src/core/primitives/heading/__workshop__/plain.tsx +12 -1
- package/src/core/primitives/inline/__workshop__/plain.tsx +5 -1
- package/src/core/primitives/label/__workshop__/plain.tsx +15 -1
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +13 -1
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +2 -0
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +8 -0
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +7 -1
- package/src/core/primitives/popover/__workshop__/TestStory.tsx +6 -0
- package/src/core/primitives/popover/popover.tsx +0 -1
- package/src/core/primitives/select/__workshop__/plain.tsx +4 -0
- package/src/core/primitives/skeleton/__workshop__/delay.tsx +9 -1
- package/src/core/primitives/skeleton/__workshop__/skeleton.tsx +9 -1
- package/src/core/primitives/spinner/__workshop__/Props.tsx +6 -1
- package/src/core/primitives/stack/__workshop__/plain.tsx +4 -1
- package/src/core/primitives/text/__workshop__/colored.tsx +8 -1
- package/src/core/primitives/text/__workshop__/example.tsx +15 -1
- package/src/core/primitives/textArea/__workshop__/plain.tsx +8 -0
- package/src/core/primitives/textInput/__workshop__/plain.tsx +34 -4
- package/src/core/primitives/textInput/__workshop__/typed.tsx +7 -1
- package/src/core/primitives/textInput/textInput.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +2 -0
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +2 -0
- package/src/core/primitives/tooltip/__workshop__/props.tsx +12 -0
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +5 -0
- package/src/css/primitives/avatar/avatar.css.ts +9 -5
- package/src/css/primitives/card/__workshop__/color.tsx +9 -1
- package/src/css/primitives/card/card.css.ts +10 -0
- package/src/css/theme/buildCSSTheme.ts +4 -0
- package/src/css/types.ts +4 -0
- package/src/css/vars.css.ts +4 -0
- package/dist/_chunks-cjs/refractor.cjs +0 -22
- package/dist/_chunks-cjs/refractor.cjs.map +0 -1
- package/dist/css/index.cjs +0 -966
- package/dist/css/index.cjs.map +0 -1
- package/dist/css/index.d.cts +0 -1370
- package/dist/index.cjs +0 -4515
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -2521
- package/dist/theme.cjs +0 -870
- package/dist/theme.cjs.map +0 -1
- package/dist/theme.d.cts +0 -499
package/dist/css/index.d.cts
DELETED
|
@@ -1,1370 +0,0 @@
|
|
|
1
|
-
import type {AvatarColor} from '@sanity/ui/theme'
|
|
2
|
-
import type {AvatarSize} from '@sanity/ui/theme'
|
|
3
|
-
import type {ButtonMode} from '@sanity/ui/theme'
|
|
4
|
-
import type {CardTone} from '@sanity/ui/theme'
|
|
5
|
-
import type {ColorScheme} from '@sanity/ui/theme'
|
|
6
|
-
import {ColorTokens as ColorTokens_2} from '@sanity/ui/theme'
|
|
7
|
-
import type {ColorVariant} from '@sanity/ui/theme'
|
|
8
|
-
import type {ContainerScale} from '@sanity/ui/theme'
|
|
9
|
-
import type {ContainerWidth} from '@sanity/ui/theme'
|
|
10
|
-
import type {createThemeContract} from '@vanilla-extract/css'
|
|
11
|
-
import type {ElementTone} from '@sanity/ui/theme'
|
|
12
|
-
import type {FontCodeSize} from '@sanity/ui/theme'
|
|
13
|
-
import type {FontHeadingSize} from '@sanity/ui/theme'
|
|
14
|
-
import type {FontLabelSize} from '@sanity/ui/theme'
|
|
15
|
-
import type {FontTextSize} from '@sanity/ui/theme'
|
|
16
|
-
import type {FontWeight} from '@sanity/ui/theme'
|
|
17
|
-
import type {Hue} from '@sanity/ui/theme'
|
|
18
|
-
import {PartialTokens} from '@sanity/ui/theme'
|
|
19
|
-
import type {Radius} from '@sanity/ui/theme'
|
|
20
|
-
import type {Shadow} from '@sanity/ui/theme'
|
|
21
|
-
import type {Space} from '@sanity/ui/theme'
|
|
22
|
-
import type {Tint} from '@sanity/ui/theme'
|
|
23
|
-
|
|
24
|
-
/** @public */
|
|
25
|
-
export declare type AlignItems = 'baseline' | 'center' | 'flex-end' | 'flex-start' | 'stretch'
|
|
26
|
-
|
|
27
|
-
/** @public */
|
|
28
|
-
export declare function alignItems(props: AlignItemsStyleProps): string | undefined
|
|
29
|
-
|
|
30
|
-
/** @public */
|
|
31
|
-
export declare interface AlignItemsStyleProps {
|
|
32
|
-
alignItems?: ResponsiveProp<AlignItems>
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** @public */
|
|
36
|
-
export declare function animatedSpinnerIcon(): string
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare function _arrow(): string | undefined
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare function _arrowShape(): string | undefined
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export declare function _arrowStroke(): string | undefined
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare function _arrowStrokeMask(): string | undefined
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export declare function _arrowSvg(): string | undefined
|
|
52
|
-
|
|
53
|
-
/** @public */
|
|
54
|
-
export declare function avatar(props: AvatarStyleProps): string | undefined
|
|
55
|
-
|
|
56
|
-
/** @public */
|
|
57
|
-
export declare function avatarArrow(): string | undefined
|
|
58
|
-
|
|
59
|
-
/** @public */
|
|
60
|
-
export declare function avatarArrowSvg(): string | undefined
|
|
61
|
-
|
|
62
|
-
/** @public */
|
|
63
|
-
export declare function avatarCounter(props: {
|
|
64
|
-
className?: string
|
|
65
|
-
size?: AvatarStyleProps['size']
|
|
66
|
-
}): string | undefined
|
|
67
|
-
|
|
68
|
-
/** @public */
|
|
69
|
-
export declare function avatarImage(): string | undefined
|
|
70
|
-
|
|
71
|
-
/** @public */
|
|
72
|
-
export declare function avatarImageOutline(): string | undefined
|
|
73
|
-
|
|
74
|
-
/** @public */
|
|
75
|
-
export declare function avatarInitials(): string | undefined
|
|
76
|
-
|
|
77
|
-
/** @public */
|
|
78
|
-
export declare function avatarStack(props: {
|
|
79
|
-
className?: string
|
|
80
|
-
size?: AvatarStyleProps['size']
|
|
81
|
-
}): string | undefined
|
|
82
|
-
|
|
83
|
-
/** @public */
|
|
84
|
-
export declare interface AvatarStyleProps {
|
|
85
|
-
className?: string
|
|
86
|
-
color: AvatarColor
|
|
87
|
-
size: ResponsiveProp<AvatarSize>
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/** @public */
|
|
91
|
-
export declare function badge(props: BadgeStyleProps): string | undefined
|
|
92
|
-
|
|
93
|
-
/** @public */
|
|
94
|
-
export declare interface BadgeStyleProps {
|
|
95
|
-
className?: string
|
|
96
|
-
fontSize?: ResponsiveProp<FontTextSize>
|
|
97
|
-
tone?: BadgeTone
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/** @public */
|
|
101
|
-
export declare type BadgeTone = ElementTone
|
|
102
|
-
|
|
103
|
-
/** @public */
|
|
104
|
-
export declare function border(props: BorderStyleProps): string | undefined
|
|
105
|
-
|
|
106
|
-
/** @public */
|
|
107
|
-
export declare type BorderStyle = 'solid' | 'muted' | 'none'
|
|
108
|
-
|
|
109
|
-
/** @public */
|
|
110
|
-
export declare interface BorderStyleProps {
|
|
111
|
-
border?: ResponsiveProp<BorderStyle | boolean>
|
|
112
|
-
borderTop?: ResponsiveProp<BorderStyle | boolean>
|
|
113
|
-
borderRight?: ResponsiveProp<BorderStyle | boolean>
|
|
114
|
-
borderBottom?: ResponsiveProp<BorderStyle | boolean>
|
|
115
|
-
borderLeft?: ResponsiveProp<BorderStyle | boolean>
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/** @public */
|
|
119
|
-
export declare function box(props: BoxStyleProps): string | undefined
|
|
120
|
-
|
|
121
|
-
/** @public */
|
|
122
|
-
export declare type BoxSizing = 'content' | 'border'
|
|
123
|
-
|
|
124
|
-
/** @internal */
|
|
125
|
-
export declare function boxSizing(props: BoxSizingStyleProps): string | undefined
|
|
126
|
-
|
|
127
|
-
/** @public */
|
|
128
|
-
export declare interface BoxSizingStyleProps {
|
|
129
|
-
boxSizing?: BoxSizing
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/** @public */
|
|
133
|
-
export declare interface BoxStyleProps
|
|
134
|
-
extends AlignItemsStyleProps,
|
|
135
|
-
BorderStyleProps,
|
|
136
|
-
DisplayStyleProps,
|
|
137
|
-
FlexDirectionStyleProps,
|
|
138
|
-
FlexStyleProps,
|
|
139
|
-
FlexWrapStyleProps,
|
|
140
|
-
GapStyleProps,
|
|
141
|
-
GridAutoColumnsStyleProps,
|
|
142
|
-
GridAutoFlowStyleProps,
|
|
143
|
-
GridAutoRowsStyleProps,
|
|
144
|
-
GridColumnEndStyleProps,
|
|
145
|
-
GridColumnStartStyleProps,
|
|
146
|
-
GridColumnStyleProps,
|
|
147
|
-
GridRowEndStyleProps,
|
|
148
|
-
GridRowStartStyleProps,
|
|
149
|
-
GridRowStyleProps,
|
|
150
|
-
GridTemplateColumnsStyleProps,
|
|
151
|
-
GridTemplateRowsStyleProps,
|
|
152
|
-
HeightStyleProps,
|
|
153
|
-
InsetStyleProps,
|
|
154
|
-
JustifyContentStyleProps,
|
|
155
|
-
MarginStyleProps,
|
|
156
|
-
MaxWidthStyleProps,
|
|
157
|
-
MinHeightStyleProps,
|
|
158
|
-
MinWidthStyleProps,
|
|
159
|
-
OverflowStyleProps,
|
|
160
|
-
PaddingStyleProps,
|
|
161
|
-
PointerEventsStyleProps,
|
|
162
|
-
PositionStyleProps,
|
|
163
|
-
RadiusStyleProps,
|
|
164
|
-
ShadowStyleProps,
|
|
165
|
-
TextAlignStyleProps,
|
|
166
|
-
WidthStyleProps {
|
|
167
|
-
className?: string
|
|
168
|
-
muted?: boolean
|
|
169
|
-
outline?: 'none'
|
|
170
|
-
sizing?: BoxSizingStyleProps['boxSizing']
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/** @public */
|
|
174
|
-
export declare function breadcrumbs(props: {className?: string}): string | undefined
|
|
175
|
-
|
|
176
|
-
/** @public */
|
|
177
|
-
export declare type Breakpoint = keyof typeof BREAKPOINTS
|
|
178
|
-
|
|
179
|
-
/** @public */
|
|
180
|
-
export declare const BREAKPOINTS: {
|
|
181
|
-
0: number
|
|
182
|
-
1: number
|
|
183
|
-
2: number
|
|
184
|
-
3: number
|
|
185
|
-
4: number
|
|
186
|
-
5: number
|
|
187
|
-
6: number
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/** @public */
|
|
191
|
-
export declare function buildCSSTheme(options?: CSSThemeOptions): ThemeTokens
|
|
192
|
-
|
|
193
|
-
/** @public */
|
|
194
|
-
export declare function button(props: ButtonStyleProps): string | undefined
|
|
195
|
-
|
|
196
|
-
/** @public */
|
|
197
|
-
export declare function buttonLoadingBox(): string
|
|
198
|
-
|
|
199
|
-
/** @public */
|
|
200
|
-
export declare interface ButtonStyleProps
|
|
201
|
-
extends FlexStyleProps,
|
|
202
|
-
RadiusStyleProps,
|
|
203
|
-
WidthStyleProps {
|
|
204
|
-
className?: string
|
|
205
|
-
mode?: ButtonMode
|
|
206
|
-
tone?: ElementTone
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/** @public */
|
|
210
|
-
export declare function card(props: CardStyleProps): string | undefined
|
|
211
|
-
|
|
212
|
-
/** @public */
|
|
213
|
-
export declare interface CardStyleProps {
|
|
214
|
-
className?: string
|
|
215
|
-
checkered?: boolean
|
|
216
|
-
scheme?: ColorScheme
|
|
217
|
-
tone?: CardTone | 'inherit'
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/** @public */
|
|
221
|
-
export declare function checkbox(props: {className?: string}): string | undefined
|
|
222
|
-
|
|
223
|
-
/** @public */
|
|
224
|
-
export declare function checkboxInput(): string
|
|
225
|
-
|
|
226
|
-
/** @public */
|
|
227
|
-
export declare function checkboxPresentation(): string
|
|
228
|
-
|
|
229
|
-
/** @public */
|
|
230
|
-
export declare function code(props: CodeStyleProps): string | undefined
|
|
231
|
-
|
|
232
|
-
/** @beta */
|
|
233
|
-
export declare function codeSkeleton(props: CodeSkeletonStyleProps): string | undefined
|
|
234
|
-
|
|
235
|
-
/** @beta */
|
|
236
|
-
export declare interface CodeSkeletonStyleProps {
|
|
237
|
-
className?: string
|
|
238
|
-
size?: ResponsiveProp<FontCodeSize>
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/** @public */
|
|
242
|
-
export declare interface CodeStyleProps extends FlexStyleProps, Omit<FontStyleProps, 'align'> {
|
|
243
|
-
className?: string
|
|
244
|
-
size?: ResponsiveProp<FontCodeSize>
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/** @public */
|
|
248
|
-
export declare type ColorPaletteTokens = {
|
|
249
|
-
black: string
|
|
250
|
-
white: string
|
|
251
|
-
} & Record<Hue, Record<Tint, string>>
|
|
252
|
-
|
|
253
|
-
/** @public */
|
|
254
|
-
export declare type ColorPaletteVars = ThemeContract<ColorPaletteTokens>
|
|
255
|
-
|
|
256
|
-
/** @public */
|
|
257
|
-
export declare type ColorTokens = Record<ColorScheme, SchemeColorTokens>
|
|
258
|
-
|
|
259
|
-
/** @public */
|
|
260
|
-
export declare function container(props: ContainerStyleProps): string | undefined
|
|
261
|
-
|
|
262
|
-
/** @public */
|
|
263
|
-
export declare interface ContainerStyleProps {
|
|
264
|
-
className?: string
|
|
265
|
-
width?: ResponsiveProp<ContainerWidth>
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
/** @public */
|
|
269
|
-
export declare type CoreThemeTokens = {
|
|
270
|
-
avatar: {
|
|
271
|
-
focusRing: {
|
|
272
|
-
offset: string
|
|
273
|
-
width: string
|
|
274
|
-
}
|
|
275
|
-
scale: Record<
|
|
276
|
-
AvatarSize,
|
|
277
|
-
{
|
|
278
|
-
distance: string
|
|
279
|
-
size: string
|
|
280
|
-
}
|
|
281
|
-
>
|
|
282
|
-
}
|
|
283
|
-
button: {
|
|
284
|
-
border: {
|
|
285
|
-
width: string
|
|
286
|
-
}
|
|
287
|
-
focusRing: {
|
|
288
|
-
offset: string
|
|
289
|
-
width: string
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
card: {
|
|
293
|
-
border: {
|
|
294
|
-
width: string
|
|
295
|
-
}
|
|
296
|
-
shadow: {
|
|
297
|
-
outline: string
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
color: ColorTokens
|
|
301
|
-
container: Record<ContainerScale, string>
|
|
302
|
-
font: {
|
|
303
|
-
code: FontTokens<FontCodeSize>
|
|
304
|
-
heading: FontTokens<FontHeadingSize>
|
|
305
|
-
label: FontTokens<FontLabelSize>
|
|
306
|
-
text: FontTokens<FontTextSize>
|
|
307
|
-
}
|
|
308
|
-
input: {
|
|
309
|
-
border: {
|
|
310
|
-
width: string
|
|
311
|
-
}
|
|
312
|
-
checkbox: {
|
|
313
|
-
size: string
|
|
314
|
-
focusRing: {
|
|
315
|
-
offset: string
|
|
316
|
-
width: string
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
radio: {
|
|
320
|
-
size: string
|
|
321
|
-
markSize: string
|
|
322
|
-
focusRing: {
|
|
323
|
-
offset: string
|
|
324
|
-
width: string
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
select: {
|
|
328
|
-
focusRing: {
|
|
329
|
-
offset: string
|
|
330
|
-
width: string
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
switch: {
|
|
334
|
-
focusRing: {
|
|
335
|
-
width: string
|
|
336
|
-
offset: string
|
|
337
|
-
}
|
|
338
|
-
height: string
|
|
339
|
-
width: string
|
|
340
|
-
padding: string
|
|
341
|
-
transitionDurationMs: string
|
|
342
|
-
transitionTimingFunction: string
|
|
343
|
-
}
|
|
344
|
-
text: {
|
|
345
|
-
focusRing: {
|
|
346
|
-
offset: string
|
|
347
|
-
width: string
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
radius: Record<Radius, string>
|
|
352
|
-
shadow: Record<
|
|
353
|
-
Shadow,
|
|
354
|
-
{
|
|
355
|
-
umbra: string
|
|
356
|
-
penumbra: string
|
|
357
|
-
ambient: string
|
|
358
|
-
}
|
|
359
|
-
>
|
|
360
|
-
space: Record<Space, string>
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/** @public */
|
|
364
|
-
export declare type CSSCardColorTokens = {
|
|
365
|
-
avatar: Record<
|
|
366
|
-
AvatarColor,
|
|
367
|
-
{
|
|
368
|
-
bg: string
|
|
369
|
-
fg: string
|
|
370
|
-
}
|
|
371
|
-
>
|
|
372
|
-
backdrop: string
|
|
373
|
-
code: {
|
|
374
|
-
bg: string
|
|
375
|
-
fg: string
|
|
376
|
-
token: {
|
|
377
|
-
atrule: string
|
|
378
|
-
attrName: string
|
|
379
|
-
attrValue: string
|
|
380
|
-
attribute: string
|
|
381
|
-
boolean: string
|
|
382
|
-
builtin: string
|
|
383
|
-
cdata: string
|
|
384
|
-
char: string
|
|
385
|
-
class: string
|
|
386
|
-
className: string
|
|
387
|
-
comment: string
|
|
388
|
-
constant: string
|
|
389
|
-
deleted: string
|
|
390
|
-
doctype: string
|
|
391
|
-
entity: string
|
|
392
|
-
function: string
|
|
393
|
-
hexcode: string
|
|
394
|
-
id: string
|
|
395
|
-
important: string
|
|
396
|
-
inserted: string
|
|
397
|
-
keyword: string
|
|
398
|
-
number: string
|
|
399
|
-
operator: string
|
|
400
|
-
prolog: string
|
|
401
|
-
property: string
|
|
402
|
-
pseudoClass: string
|
|
403
|
-
pseudoElement: string
|
|
404
|
-
punctuation: string
|
|
405
|
-
regex: string
|
|
406
|
-
selector: string
|
|
407
|
-
string: string
|
|
408
|
-
symbol: string
|
|
409
|
-
tag: string
|
|
410
|
-
unit: string
|
|
411
|
-
url: string
|
|
412
|
-
variable: string
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
focusRing: string
|
|
416
|
-
link: {
|
|
417
|
-
fg: string
|
|
418
|
-
}
|
|
419
|
-
shadow: {
|
|
420
|
-
outline: string
|
|
421
|
-
umbra: string
|
|
422
|
-
penumbra: string
|
|
423
|
-
ambient: string
|
|
424
|
-
}
|
|
425
|
-
skeleton: {
|
|
426
|
-
from: string
|
|
427
|
-
to: string
|
|
428
|
-
}
|
|
429
|
-
} & Record<ColorVariant, VariantColorTokens>
|
|
430
|
-
|
|
431
|
-
/** @public */
|
|
432
|
-
export declare type CSSLayer = 'theme' | 'props' | 'primitives' | 'components'
|
|
433
|
-
|
|
434
|
-
/** @public */
|
|
435
|
-
export declare type CSSThemeOptions = {
|
|
436
|
-
color?: PartialTokens<ColorTokens_2>
|
|
437
|
-
palette?: ColorPaletteTokens
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
/** @public */
|
|
441
|
-
export declare type CSSVarFunction = `var(${CSSVarName})`
|
|
442
|
-
|
|
443
|
-
/** @public */
|
|
444
|
-
export declare type CSSVarName = `--${string}`
|
|
445
|
-
|
|
446
|
-
/** @public */
|
|
447
|
-
export declare function dialog(props: {className?: string}): string | undefined
|
|
448
|
-
|
|
449
|
-
/** @public */
|
|
450
|
-
export declare function dialogCard(): string | undefined
|
|
451
|
-
|
|
452
|
-
/** @public */
|
|
453
|
-
export declare function dialogContainer(): string | undefined
|
|
454
|
-
|
|
455
|
-
/** @public */
|
|
456
|
-
export declare function dialogContent(): string | undefined
|
|
457
|
-
|
|
458
|
-
/** @public */
|
|
459
|
-
export declare function dialogFooter(): string | undefined
|
|
460
|
-
|
|
461
|
-
/** @public */
|
|
462
|
-
export declare function dialogHeader(): string | undefined
|
|
463
|
-
|
|
464
|
-
/** @public */
|
|
465
|
-
export declare function dialogScroller(): string | undefined
|
|
466
|
-
|
|
467
|
-
/** @public */
|
|
468
|
-
export declare function dialogScrollerShadowBottom(): string | undefined
|
|
469
|
-
|
|
470
|
-
/** @public */
|
|
471
|
-
export declare function dialogScrollerShadowTop(): string | undefined
|
|
472
|
-
|
|
473
|
-
/** @public */
|
|
474
|
-
export declare type Display =
|
|
475
|
-
| 'block'
|
|
476
|
-
| 'inline-block'
|
|
477
|
-
| 'flex'
|
|
478
|
-
| 'inline-flex'
|
|
479
|
-
| 'grid'
|
|
480
|
-
| 'inline-grid'
|
|
481
|
-
| 'none'
|
|
482
|
-
|
|
483
|
-
/** @public */
|
|
484
|
-
export declare function display(props: DisplayStyleProps): string | undefined
|
|
485
|
-
|
|
486
|
-
/** @public */
|
|
487
|
-
export declare interface DisplayStyleProps {
|
|
488
|
-
display?: ResponsiveProp<Display>
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
/** @public */
|
|
492
|
-
export declare type ElementColorTokens = {
|
|
493
|
-
bg: {
|
|
494
|
-
0: string
|
|
495
|
-
4: string
|
|
496
|
-
}
|
|
497
|
-
border: {
|
|
498
|
-
0: string
|
|
499
|
-
4: string
|
|
500
|
-
}
|
|
501
|
-
fg: {
|
|
502
|
-
0: string
|
|
503
|
-
4: string
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/** @public */
|
|
508
|
-
export declare type Flex =
|
|
509
|
-
| 'none'
|
|
510
|
-
| 'auto'
|
|
511
|
-
| 'initial'
|
|
512
|
-
| 1
|
|
513
|
-
| 2
|
|
514
|
-
| 3
|
|
515
|
-
| 4
|
|
516
|
-
| 5
|
|
517
|
-
| 6
|
|
518
|
-
| 7
|
|
519
|
-
| 8
|
|
520
|
-
| 9
|
|
521
|
-
| 10
|
|
522
|
-
| 11
|
|
523
|
-
| 12
|
|
524
|
-
|
|
525
|
-
/** @public */
|
|
526
|
-
export declare function flex(props: FlexStyleProps): string | undefined
|
|
527
|
-
|
|
528
|
-
/** @public */
|
|
529
|
-
export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse'
|
|
530
|
-
|
|
531
|
-
/** @public */
|
|
532
|
-
export declare function flexDirection(props: FlexDirectionStyleProps): string | undefined
|
|
533
|
-
|
|
534
|
-
/** @public */
|
|
535
|
-
export declare interface FlexDirectionStyleProps {
|
|
536
|
-
flexDirection?: ResponsiveProp<FlexDirection>
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/** @public */
|
|
540
|
-
export declare interface FlexStyleProps {
|
|
541
|
-
flex?: ResponsiveProp<Flex>
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
/** @public */
|
|
545
|
-
export declare type FlexWrap = 'wrap' | 'wrap-reverse' | 'nowrap'
|
|
546
|
-
|
|
547
|
-
/** @public */
|
|
548
|
-
export declare function flexWrap(props: FlexWrapStyleProps): string | undefined
|
|
549
|
-
|
|
550
|
-
/** @public */
|
|
551
|
-
export declare interface FlexWrapStyleProps {
|
|
552
|
-
flexWrap?: ResponsiveProp<FlexWrap>
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
/** @public */
|
|
556
|
-
export declare function font(props: FontStyleProps): string | undefined
|
|
557
|
-
|
|
558
|
-
/** @public */
|
|
559
|
-
export declare interface FontStyleProps {
|
|
560
|
-
weight?: FontWeight
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/** @public */
|
|
564
|
-
export declare type FontTokens<FontScaleIndex extends number> = {
|
|
565
|
-
family: string
|
|
566
|
-
featureSettings: string
|
|
567
|
-
weight: {
|
|
568
|
-
regular: string
|
|
569
|
-
medium: string
|
|
570
|
-
semibold: string
|
|
571
|
-
bold: string
|
|
572
|
-
}
|
|
573
|
-
scale: Record<
|
|
574
|
-
FontScaleIndex,
|
|
575
|
-
{
|
|
576
|
-
fontSize: string
|
|
577
|
-
lineHeight: string
|
|
578
|
-
letterSpacing: string
|
|
579
|
-
ascenderHeight: string
|
|
580
|
-
descenderHeight: string
|
|
581
|
-
iconSize: string
|
|
582
|
-
customIconSize: string
|
|
583
|
-
}
|
|
584
|
-
>
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
/** @public */
|
|
588
|
-
export declare function gap(props: GapStyleProps): string | undefined
|
|
589
|
-
|
|
590
|
-
/** @public */
|
|
591
|
-
export declare interface GapStyleProps {
|
|
592
|
-
gap?: ResponsiveProp<Space>
|
|
593
|
-
gapX?: ResponsiveProp<Space>
|
|
594
|
-
gapY?: ResponsiveProp<Space>
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* Extract the name of a CSS variable.
|
|
599
|
-
*
|
|
600
|
-
* @example
|
|
601
|
-
* ```ts
|
|
602
|
-
* getVarName('var(--color-primary)') // '--color-primary'
|
|
603
|
-
* ```
|
|
604
|
-
*
|
|
605
|
-
* @public
|
|
606
|
-
*/
|
|
607
|
-
export declare function getVarName(variable: CSSVarFunction): CSSVarName
|
|
608
|
-
|
|
609
|
-
/** @public */
|
|
610
|
-
export declare type GridAutoColumns = 'auto' | 'min' | 'max' | 'fr'
|
|
611
|
-
|
|
612
|
-
/** @public */
|
|
613
|
-
export declare function gridAutoColumns(props: GridAutoColumnsStyleProps): string | undefined
|
|
614
|
-
|
|
615
|
-
/** @public */
|
|
616
|
-
export declare interface GridAutoColumnsStyleProps {
|
|
617
|
-
gridAutoColumns?: ResponsiveProp<GridAutoColumns>
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
/** @public */
|
|
621
|
-
export declare type GridAutoFlow = 'row' | 'column' | 'row dense' | 'column dense'
|
|
622
|
-
|
|
623
|
-
/** @public */
|
|
624
|
-
export declare function gridAutoFlow(props: GridAutoFlowStyleProps): string | undefined
|
|
625
|
-
|
|
626
|
-
/** @public */
|
|
627
|
-
export declare interface GridAutoFlowStyleProps {
|
|
628
|
-
gridAutoFlow?: ResponsiveProp<GridAutoFlow>
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/** @public */
|
|
632
|
-
export declare type GridAutoRows = 'auto' | 'min' | 'max' | 'fr'
|
|
633
|
-
|
|
634
|
-
/** @public */
|
|
635
|
-
export declare function gridAutoRows(props: GridAutoRowsStyleProps): string | undefined
|
|
636
|
-
|
|
637
|
-
/** @public */
|
|
638
|
-
export declare interface GridAutoRowsStyleProps {
|
|
639
|
-
gridAutoRows?: ResponsiveProp<GridAutoRows>
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
/** @public */
|
|
643
|
-
export declare type GridColumn = 'auto' | 'full' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
644
|
-
|
|
645
|
-
/** @public */
|
|
646
|
-
export declare function gridColumn(props: GridColumnStyleProps): string | undefined
|
|
647
|
-
|
|
648
|
-
/** @public */
|
|
649
|
-
export declare type GridColumnEnd = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
650
|
-
|
|
651
|
-
/** @public */
|
|
652
|
-
export declare function gridColumnEnd(props: GridColumnEndStyleProps): string | undefined
|
|
653
|
-
|
|
654
|
-
/** @public */
|
|
655
|
-
export declare interface GridColumnEndStyleProps {
|
|
656
|
-
gridColumnEnd?: ResponsiveProp<GridColumnEnd>
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
/** @public */
|
|
660
|
-
export declare type GridColumnStart = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
661
|
-
|
|
662
|
-
/** @public */
|
|
663
|
-
export declare function gridColumnStart(props: GridColumnStartStyleProps): string | undefined
|
|
664
|
-
|
|
665
|
-
/** @public */
|
|
666
|
-
export declare interface GridColumnStartStyleProps {
|
|
667
|
-
gridColumnStart?: ResponsiveProp<GridColumnStart>
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
/** @public */
|
|
671
|
-
export declare interface GridColumnStyleProps {
|
|
672
|
-
gridColumn?: ResponsiveProp<GridColumn>
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
/** @public */
|
|
676
|
-
export declare type GridRow = 'auto' | 'full' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
677
|
-
|
|
678
|
-
/** @public */
|
|
679
|
-
export declare function gridRow(props: GridRowStyleProps): string | undefined
|
|
680
|
-
|
|
681
|
-
/** @public */
|
|
682
|
-
export declare type GridRowEnd = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
683
|
-
|
|
684
|
-
/** @public */
|
|
685
|
-
export declare function gridRowEnd(props: GridRowEndStyleProps): string | undefined
|
|
686
|
-
|
|
687
|
-
/** @public */
|
|
688
|
-
export declare interface GridRowEndStyleProps {
|
|
689
|
-
gridRowEnd?: ResponsiveProp<GridRowEnd>
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
/** @public */
|
|
693
|
-
export declare type GridRowStart = 'auto' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
694
|
-
|
|
695
|
-
/** @public */
|
|
696
|
-
export declare function gridRowStart(props: GridRowStartStyleProps): string | undefined
|
|
697
|
-
|
|
698
|
-
/** @public */
|
|
699
|
-
export declare interface GridRowStartStyleProps {
|
|
700
|
-
gridRowStart?: ResponsiveProp<GridRowStart>
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
/** @public */
|
|
704
|
-
export declare interface GridRowStyleProps {
|
|
705
|
-
gridRow?: ResponsiveProp<GridRow>
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
/** @public */
|
|
709
|
-
export declare type GridTemplateColumns = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
710
|
-
|
|
711
|
-
/** @public */
|
|
712
|
-
export declare function gridTemplateColumns(
|
|
713
|
-
props: GridTemplateColumnsStyleProps,
|
|
714
|
-
): string | undefined
|
|
715
|
-
|
|
716
|
-
/** @public */
|
|
717
|
-
export declare interface GridTemplateColumnsStyleProps {
|
|
718
|
-
gridTemplateColumns?: ResponsiveProp<GridTemplateColumns>
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
/** @public */
|
|
722
|
-
export declare type GridTemplateRows = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
|
|
723
|
-
|
|
724
|
-
/** @public */
|
|
725
|
-
export declare function gridTemplateRows(props: GridTemplateRowsStyleProps): string | undefined
|
|
726
|
-
|
|
727
|
-
/** @public */
|
|
728
|
-
export declare interface GridTemplateRowsStyleProps {
|
|
729
|
-
gridTemplateRows?: ResponsiveProp<GridTemplateRows>
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
/** @public */
|
|
733
|
-
export declare function heading(props: HeadingStyleProps): string | undefined
|
|
734
|
-
|
|
735
|
-
/** @beta */
|
|
736
|
-
export declare function headingSkeleton(props: HeadingSkeletonStyleProps): string | undefined
|
|
737
|
-
|
|
738
|
-
/** @beta */
|
|
739
|
-
export declare interface HeadingSkeletonStyleProps {
|
|
740
|
-
className?: string
|
|
741
|
-
size?: ResponsiveProp<FontHeadingSize>
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/** @public */
|
|
745
|
-
export declare interface HeadingStyleProps extends FontStyleProps, FlexStyleProps {
|
|
746
|
-
align?: TextAlignStyleProps['textAlign']
|
|
747
|
-
className?: string
|
|
748
|
-
muted?: boolean
|
|
749
|
-
size?: ResponsiveProp<FontHeadingSize>
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
/** @public */
|
|
753
|
-
export declare type Height = 'fill' | 'auto' | 'min' | 'max' | 'fit' | 'stretch'
|
|
754
|
-
|
|
755
|
-
/** @public */
|
|
756
|
-
export declare function height(props: HeightStyleProps): string | undefined
|
|
757
|
-
|
|
758
|
-
/** @public */
|
|
759
|
-
export declare interface HeightStyleProps {
|
|
760
|
-
height?: ResponsiveProp<Height>
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
/** @internal */
|
|
764
|
-
export declare function _input(props: InputStyleProps): string | undefined
|
|
765
|
-
|
|
766
|
-
/** @internal */
|
|
767
|
-
export declare function _inputElement(): string | undefined
|
|
768
|
-
|
|
769
|
-
/** @internal */
|
|
770
|
-
export declare function _inputPresentation(): string | undefined
|
|
771
|
-
|
|
772
|
-
/** @public */
|
|
773
|
-
export declare interface InputStyleProps extends RadiusStyleProps, WidthStyleProps {
|
|
774
|
-
border?: boolean
|
|
775
|
-
fontSize?: ResponsiveProp<FontTextSize>
|
|
776
|
-
gap?: ResponsiveProp<Space>
|
|
777
|
-
padding?: ResponsiveProp<Space>
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
/** @public */
|
|
781
|
-
export declare type Inset = 0
|
|
782
|
-
|
|
783
|
-
/** @public */
|
|
784
|
-
export declare function inset(props: InsetStyleProps): string | undefined
|
|
785
|
-
|
|
786
|
-
/** @public */
|
|
787
|
-
export declare interface InsetStyleProps {
|
|
788
|
-
inset?: ResponsiveProp<Inset>
|
|
789
|
-
insetTop?: ResponsiveProp<Inset>
|
|
790
|
-
insetRight?: ResponsiveProp<Inset>
|
|
791
|
-
insetBottom?: ResponsiveProp<Inset>
|
|
792
|
-
insetLeft?: ResponsiveProp<Inset>
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
/** @public */
|
|
796
|
-
export declare type JustifyContent =
|
|
797
|
-
| 'flex-start'
|
|
798
|
-
| 'flex-end'
|
|
799
|
-
| 'center'
|
|
800
|
-
| 'space-between'
|
|
801
|
-
| 'space-around'
|
|
802
|
-
| 'space-evenly'
|
|
803
|
-
|
|
804
|
-
/** @public */
|
|
805
|
-
export declare function justifyContent(props: JustifyContentStyleProps): string | undefined
|
|
806
|
-
|
|
807
|
-
/** @public */
|
|
808
|
-
export declare interface JustifyContentStyleProps {
|
|
809
|
-
justifyContent?: ResponsiveProp<JustifyContent>
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
/** @public */
|
|
813
|
-
export declare function kbd(props: KBDStyleProps): string | undefined
|
|
814
|
-
|
|
815
|
-
/** @public */
|
|
816
|
-
export declare interface KBDStyleProps extends RadiusStyleProps {
|
|
817
|
-
className?: string
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
/** @public */
|
|
821
|
-
export declare function label(props: LabelStyleProps): string | undefined
|
|
822
|
-
|
|
823
|
-
/** @beta */
|
|
824
|
-
export declare function labelSkeleton(props: LabelSkeletonStyleProps): string | undefined
|
|
825
|
-
|
|
826
|
-
/** @beta */
|
|
827
|
-
export declare interface LabelSkeletonStyleProps {
|
|
828
|
-
className?: string
|
|
829
|
-
size?: ResponsiveProp<FontLabelSize>
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
/** @public */
|
|
833
|
-
export declare interface LabelStyleProps extends FlexStyleProps, FontStyleProps {
|
|
834
|
-
align?: TextAlignStyleProps['textAlign']
|
|
835
|
-
className?: string
|
|
836
|
-
muted?: boolean
|
|
837
|
-
size?: ResponsiveProp<FontLabelSize>
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
/** @public */
|
|
841
|
-
export declare const layers: Record<CSSLayer, string>
|
|
842
|
-
|
|
843
|
-
/** @public */
|
|
844
|
-
export declare type Margin = Space | 'auto'
|
|
845
|
-
|
|
846
|
-
/** @public */
|
|
847
|
-
export declare function margin(props: MarginStyleProps): string | undefined
|
|
848
|
-
|
|
849
|
-
/** @public */
|
|
850
|
-
export declare interface MarginStyleProps {
|
|
851
|
-
margin?: ResponsiveProp<Margin>
|
|
852
|
-
marginX?: ResponsiveProp<Margin>
|
|
853
|
-
marginY?: ResponsiveProp<Margin>
|
|
854
|
-
marginTop?: ResponsiveProp<Margin>
|
|
855
|
-
marginRight?: ResponsiveProp<Margin>
|
|
856
|
-
marginBottom?: ResponsiveProp<Margin>
|
|
857
|
-
marginLeft?: ResponsiveProp<Margin>
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
/** @public */
|
|
861
|
-
export declare type MaxWidth = ContainerWidth | 'auto' | 'fill'
|
|
862
|
-
|
|
863
|
-
/** @public */
|
|
864
|
-
export declare function maxWidth(props: MaxWidthStyleProps): string | undefined
|
|
865
|
-
|
|
866
|
-
/** @public */
|
|
867
|
-
export declare interface MaxWidthStyleProps {
|
|
868
|
-
maxWidth?: ResponsiveProp<MaxWidth>
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
/** @public */
|
|
872
|
-
export declare function menu(props: {className?: string}): string | undefined
|
|
873
|
-
|
|
874
|
-
/** @public */
|
|
875
|
-
export declare function menuDivider(props: {className?: string}): string | undefined
|
|
876
|
-
|
|
877
|
-
/** @public */
|
|
878
|
-
export declare type MinHeight = 0 | 'full'
|
|
879
|
-
|
|
880
|
-
/** @public */
|
|
881
|
-
export declare function minHeight(props: MinHeightStyleProps): string | undefined
|
|
882
|
-
|
|
883
|
-
/** @public */
|
|
884
|
-
export declare interface MinHeightStyleProps {
|
|
885
|
-
minHeight?: ResponsiveProp<MinHeight>
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
/** @public */
|
|
889
|
-
export declare type MinWidth = 0 | 'auto' | 'full' | 'min' | 'max' | 'fit'
|
|
890
|
-
|
|
891
|
-
/** @public */
|
|
892
|
-
export declare function minWidth(props: MinWidthStyleProps): string | undefined
|
|
893
|
-
|
|
894
|
-
/** @public */
|
|
895
|
-
export declare interface MinWidthStyleProps {
|
|
896
|
-
minWidth?: ResponsiveProp<MinWidth>
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
/** @public */
|
|
900
|
-
export declare type NullableTokens = {
|
|
901
|
-
[key: string]: string | NullableTokens
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
/** @public */
|
|
905
|
-
export declare type Outline = 'none'
|
|
906
|
-
|
|
907
|
-
/** @public */
|
|
908
|
-
export declare function outline(props: OutlineStyleProps): string | undefined
|
|
909
|
-
|
|
910
|
-
/** @public */
|
|
911
|
-
export declare interface OutlineStyleProps {
|
|
912
|
-
outline?: Outline
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/** @public */
|
|
916
|
-
export declare type Overflow = 'visible' | 'hidden' | 'auto'
|
|
917
|
-
|
|
918
|
-
/** @public */
|
|
919
|
-
export declare function overflow(props: OverflowStyleProps): string | undefined
|
|
920
|
-
|
|
921
|
-
/** @public */
|
|
922
|
-
export declare interface OverflowStyleProps {
|
|
923
|
-
overflow?: ResponsiveProp<Overflow>
|
|
924
|
-
overflowX?: ResponsiveProp<Overflow>
|
|
925
|
-
overflowY?: ResponsiveProp<Overflow>
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
/** @public */
|
|
929
|
-
export declare type Padding = Space
|
|
930
|
-
|
|
931
|
-
/** @public */
|
|
932
|
-
export declare function padding(props: PaddingStyleProps): string | undefined
|
|
933
|
-
|
|
934
|
-
/** @public */
|
|
935
|
-
export declare interface PaddingStyleProps {
|
|
936
|
-
padding?: ResponsiveProp<Padding>
|
|
937
|
-
paddingTop?: ResponsiveProp<Padding>
|
|
938
|
-
paddingRight?: ResponsiveProp<Padding>
|
|
939
|
-
paddingBottom?: ResponsiveProp<Padding>
|
|
940
|
-
paddingLeft?: ResponsiveProp<Padding>
|
|
941
|
-
paddingX?: ResponsiveProp<Padding>
|
|
942
|
-
paddingY?: ResponsiveProp<Padding>
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
/** @internal */
|
|
946
|
-
export declare const paletteVars: ColorPaletteVars
|
|
947
|
-
|
|
948
|
-
/** @public */
|
|
949
|
-
export declare type PointerEvents = 'auto' | 'none'
|
|
950
|
-
|
|
951
|
-
/** @public */
|
|
952
|
-
export declare function pointerEvents(props: PointerEventsStyleProps): string | undefined
|
|
953
|
-
|
|
954
|
-
/** @public */
|
|
955
|
-
export declare interface PointerEventsStyleProps {
|
|
956
|
-
pointerEvents?: PointerEvents
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
/** @public */
|
|
960
|
-
export declare function popover(props: {className?: string}): string | undefined
|
|
961
|
-
|
|
962
|
-
/** @public */
|
|
963
|
-
export declare function popoverCard(): string | undefined
|
|
964
|
-
|
|
965
|
-
/** @public */
|
|
966
|
-
export declare type Position = 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky'
|
|
967
|
-
|
|
968
|
-
/** @public */
|
|
969
|
-
export declare function position(props: PositionStyleProps): string | undefined
|
|
970
|
-
|
|
971
|
-
/** @public */
|
|
972
|
-
export declare interface PositionStyleProps {
|
|
973
|
-
position?: ResponsiveProp<Position>
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
/** @public */
|
|
977
|
-
export declare function radio(props: {className?: string}): string | undefined
|
|
978
|
-
|
|
979
|
-
/** @public */
|
|
980
|
-
export declare function radioInput(): string | undefined
|
|
981
|
-
|
|
982
|
-
/** @public */
|
|
983
|
-
export declare function radioPresentation(): string | undefined
|
|
984
|
-
|
|
985
|
-
/** @public */
|
|
986
|
-
export declare function radius(props: RadiusStyleProps): string | undefined
|
|
987
|
-
|
|
988
|
-
/** @public */
|
|
989
|
-
export declare interface RadiusStyleProps {
|
|
990
|
-
radius?: ResponsiveProp<Radius | 'full'>
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
/** @public */
|
|
994
|
-
export declare type ResponsiveProp<T> = T | Partial<Record<Breakpoint, T>>
|
|
995
|
-
|
|
996
|
-
/** @public */
|
|
997
|
-
export declare type ResponsiveRuleOptions<K extends string | number> = Record<K, ResponsiveRules>
|
|
998
|
-
|
|
999
|
-
/** @public */
|
|
1000
|
-
export declare type ResponsiveRules = Record<Breakpoint, string>
|
|
1001
|
-
|
|
1002
|
-
/** @public */
|
|
1003
|
-
export declare function root(props: RootStyleProps): string | undefined
|
|
1004
|
-
|
|
1005
|
-
/** @public */
|
|
1006
|
-
export declare interface RootStyleProps extends HeightStyleProps {
|
|
1007
|
-
className?: string
|
|
1008
|
-
scheme?: ColorScheme
|
|
1009
|
-
tone?: CardTone
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/** @public */
|
|
1013
|
-
export declare type SchemeColorTokens = Record<CardTone, CSSCardColorTokens>
|
|
1014
|
-
|
|
1015
|
-
/** @public */
|
|
1016
|
-
export declare type ScopedTokens = {
|
|
1017
|
-
arrow: {
|
|
1018
|
-
size: string
|
|
1019
|
-
}
|
|
1020
|
-
avatar: {
|
|
1021
|
-
distance: string
|
|
1022
|
-
size: string
|
|
1023
|
-
}
|
|
1024
|
-
button: {
|
|
1025
|
-
boxShadow: string
|
|
1026
|
-
}
|
|
1027
|
-
card: {
|
|
1028
|
-
test: string
|
|
1029
|
-
}
|
|
1030
|
-
color: {
|
|
1031
|
-
avatar: {
|
|
1032
|
-
bg: string
|
|
1033
|
-
fg: string
|
|
1034
|
-
}
|
|
1035
|
-
bg: string
|
|
1036
|
-
border: string
|
|
1037
|
-
fg: string
|
|
1038
|
-
muted: {
|
|
1039
|
-
bg: string
|
|
1040
|
-
border: string
|
|
1041
|
-
fg: string
|
|
1042
|
-
}
|
|
1043
|
-
input: {
|
|
1044
|
-
checkbox: {
|
|
1045
|
-
bg: string
|
|
1046
|
-
border: string
|
|
1047
|
-
fg: string
|
|
1048
|
-
}
|
|
1049
|
-
text: {
|
|
1050
|
-
bg: string
|
|
1051
|
-
border: string
|
|
1052
|
-
fg: string
|
|
1053
|
-
placeholder: string
|
|
1054
|
-
}
|
|
1055
|
-
radio: {
|
|
1056
|
-
bg: string
|
|
1057
|
-
border: string
|
|
1058
|
-
fg: string
|
|
1059
|
-
}
|
|
1060
|
-
switch: {
|
|
1061
|
-
bg: string
|
|
1062
|
-
fg: string
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
} & CSSCardColorTokens &
|
|
1066
|
-
Record<
|
|
1067
|
-
ColorVariant,
|
|
1068
|
-
Record<
|
|
1069
|
-
ElementTone,
|
|
1070
|
-
{
|
|
1071
|
-
bg: {
|
|
1072
|
-
0: string
|
|
1073
|
-
1: string
|
|
1074
|
-
2: string
|
|
1075
|
-
3: string
|
|
1076
|
-
4: string
|
|
1077
|
-
}
|
|
1078
|
-
border: {
|
|
1079
|
-
0: string
|
|
1080
|
-
1: string
|
|
1081
|
-
2: string
|
|
1082
|
-
3: string
|
|
1083
|
-
4: string
|
|
1084
|
-
}
|
|
1085
|
-
fg: {
|
|
1086
|
-
0: string
|
|
1087
|
-
1: string
|
|
1088
|
-
2: string
|
|
1089
|
-
3: string
|
|
1090
|
-
4: string
|
|
1091
|
-
}
|
|
1092
|
-
}
|
|
1093
|
-
>
|
|
1094
|
-
> &
|
|
1095
|
-
Record<
|
|
1096
|
-
CardTone,
|
|
1097
|
-
CSSCardColorTokens &
|
|
1098
|
-
Record<
|
|
1099
|
-
ColorVariant,
|
|
1100
|
-
Record<
|
|
1101
|
-
ElementTone,
|
|
1102
|
-
{
|
|
1103
|
-
bg: {
|
|
1104
|
-
0: string
|
|
1105
|
-
4: string
|
|
1106
|
-
}
|
|
1107
|
-
border: {
|
|
1108
|
-
0: string
|
|
1109
|
-
4: string
|
|
1110
|
-
}
|
|
1111
|
-
fg: {
|
|
1112
|
-
0: string
|
|
1113
|
-
4: string
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
>
|
|
1117
|
-
>
|
|
1118
|
-
>
|
|
1119
|
-
font: {
|
|
1120
|
-
family: string
|
|
1121
|
-
featureSettings: string
|
|
1122
|
-
fontSize: string
|
|
1123
|
-
lineHeight: string
|
|
1124
|
-
letterSpacing: string
|
|
1125
|
-
fontWeight: string
|
|
1126
|
-
ascenderHeight: string
|
|
1127
|
-
descenderHeight: string
|
|
1128
|
-
iconSize: string
|
|
1129
|
-
customIconSize: string
|
|
1130
|
-
capHeight: string
|
|
1131
|
-
iconOffset: string
|
|
1132
|
-
customIconOffset: string
|
|
1133
|
-
skeleton: {
|
|
1134
|
-
ascenderHeight: string
|
|
1135
|
-
descenderHeight: string
|
|
1136
|
-
lineHeight: string
|
|
1137
|
-
}
|
|
1138
|
-
weight: {
|
|
1139
|
-
regular: string
|
|
1140
|
-
medium: string
|
|
1141
|
-
semibold: string
|
|
1142
|
-
bold: string
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
input: {
|
|
1146
|
-
switch: {
|
|
1147
|
-
thumb: {
|
|
1148
|
-
offset: string
|
|
1149
|
-
size: string
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
text: {
|
|
1153
|
-
fontSize: string
|
|
1154
|
-
lineHeight: string
|
|
1155
|
-
letterSpacing: string
|
|
1156
|
-
ascenderHeight: string
|
|
1157
|
-
descenderHeight: string
|
|
1158
|
-
padding: string
|
|
1159
|
-
gap: string
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
/** @public */
|
|
1165
|
-
export declare type ScopedVars = ThemeContract<ScopedTokens>
|
|
1166
|
-
|
|
1167
|
-
/** @public */
|
|
1168
|
-
export declare function select(props: SelectStyleProps): string | undefined
|
|
1169
|
-
|
|
1170
|
-
/** @internal */
|
|
1171
|
-
export declare function _selectable(props: SelectableStyleProps): string | undefined
|
|
1172
|
-
|
|
1173
|
-
/** @internal */
|
|
1174
|
-
export declare interface SelectableStyleProps extends RadiusStyleProps {
|
|
1175
|
-
className?: string
|
|
1176
|
-
tone?: ElementTone
|
|
1177
|
-
}
|
|
1178
|
-
|
|
1179
|
-
/** @public */
|
|
1180
|
-
export declare function selectPresentation(): string | undefined
|
|
1181
|
-
|
|
1182
|
-
/** @public */
|
|
1183
|
-
export declare interface SelectStyleProps extends InputStyleProps {}
|
|
1184
|
-
|
|
1185
|
-
/** @public */
|
|
1186
|
-
export declare function shadow(props: ShadowStyleProps): string | undefined
|
|
1187
|
-
|
|
1188
|
-
/** @public */
|
|
1189
|
-
export declare interface ShadowStyleProps {
|
|
1190
|
-
shadow?: ResponsiveProp<Shadow>
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
/** @beta */
|
|
1194
|
-
export declare function skeleton(props: SkeletonStyleProps): string | undefined
|
|
1195
|
-
|
|
1196
|
-
/** @beta */
|
|
1197
|
-
export declare interface SkeletonStyleProps
|
|
1198
|
-
extends FlexStyleProps,
|
|
1199
|
-
MarginStyleProps,
|
|
1200
|
-
RadiusStyleProps {
|
|
1201
|
-
className?: string
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
/** @public */
|
|
1205
|
-
export declare function spinner(props: SpinnerStyleProps): string | undefined
|
|
1206
|
-
|
|
1207
|
-
/** @public */
|
|
1208
|
-
export declare interface SpinnerStyleProps {
|
|
1209
|
-
className?: string
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
/** @public */
|
|
1213
|
-
export declare function srOnly(props: {className?: string}): string | undefined
|
|
1214
|
-
|
|
1215
|
-
/** @public */
|
|
1216
|
-
export declare function stack(props: {className?: string}): string | undefined
|
|
1217
|
-
|
|
1218
|
-
/** @public */
|
|
1219
|
-
export declare function _switch(props: {className?: string}): string | undefined
|
|
1220
|
-
|
|
1221
|
-
/** @public */
|
|
1222
|
-
export declare function _switchElement(): string | undefined
|
|
1223
|
-
|
|
1224
|
-
/** @public */
|
|
1225
|
-
export declare function _switchPresentation(): string | undefined
|
|
1226
|
-
|
|
1227
|
-
/** @public */
|
|
1228
|
-
export declare function _switchThumb(): string | undefined
|
|
1229
|
-
|
|
1230
|
-
/** @public */
|
|
1231
|
-
export declare function _switchTrack(): string | undefined
|
|
1232
|
-
|
|
1233
|
-
/** @public */
|
|
1234
|
-
export declare function text(props: TextStyleProps): string | undefined
|
|
1235
|
-
|
|
1236
|
-
/** @public */
|
|
1237
|
-
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify' | 'initial'
|
|
1238
|
-
|
|
1239
|
-
/** @public */
|
|
1240
|
-
export declare function textAlign(props: TextAlignStyleProps): string | undefined
|
|
1241
|
-
|
|
1242
|
-
/** @public */
|
|
1243
|
-
export declare interface TextAlignStyleProps {
|
|
1244
|
-
textAlign?: TextAlign
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
/** @public */
|
|
1248
|
-
export declare function textArea(props: TextAreaStyleProps): string | undefined
|
|
1249
|
-
|
|
1250
|
-
/** @public */
|
|
1251
|
-
export declare interface TextAreaStyleProps extends InputStyleProps {
|
|
1252
|
-
className?: string
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
/** @public */
|
|
1256
|
-
export declare function textInput(props: TextInputStyleProps): string | undefined
|
|
1257
|
-
|
|
1258
|
-
/** @public */
|
|
1259
|
-
export declare function textInputElement(): string | undefined
|
|
1260
|
-
|
|
1261
|
-
/** @public */
|
|
1262
|
-
export declare function textInputPrefix(): string | undefined
|
|
1263
|
-
|
|
1264
|
-
/** @public */
|
|
1265
|
-
export declare interface TextInputStyleProps extends InputStyleProps {
|
|
1266
|
-
className?: string
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
/** @public */
|
|
1270
|
-
export declare function textInputSuffix(): string | undefined
|
|
1271
|
-
|
|
1272
|
-
/** @public */
|
|
1273
|
-
export declare type TextOverflow = 'ellipsis' | 'clip'
|
|
1274
|
-
|
|
1275
|
-
/** @public */
|
|
1276
|
-
export declare function textOverflow(props: TextOverflowStyleProps): string | undefined
|
|
1277
|
-
|
|
1278
|
-
/** @public */
|
|
1279
|
-
export declare interface TextOverflowStyleProps {
|
|
1280
|
-
/**
|
|
1281
|
-
* Controls how overflowing text is treated.
|
|
1282
|
-
* Use `textOverflow="ellipsis"` to render text as a single line which is concatenated with a `…` symbol.
|
|
1283
|
-
* @beta
|
|
1284
|
-
*/
|
|
1285
|
-
textOverflow?: TextOverflow
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
/** @public */
|
|
1289
|
-
export declare type TextSize = number
|
|
1290
|
-
|
|
1291
|
-
/** @beta */
|
|
1292
|
-
export declare function textSkeleton(props: TextSkeletonStyleProps): string | undefined
|
|
1293
|
-
|
|
1294
|
-
/** @beta */
|
|
1295
|
-
export declare interface TextSkeletonStyleProps {
|
|
1296
|
-
className?: string
|
|
1297
|
-
size?: ResponsiveProp<FontTextSize>
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
/** @public */
|
|
1301
|
-
export declare interface TextStyleProps extends FlexStyleProps, FontStyleProps, MaxWidthStyleProps {
|
|
1302
|
-
align?: TextAlignStyleProps['textAlign']
|
|
1303
|
-
className?: string
|
|
1304
|
-
muted?: boolean
|
|
1305
|
-
size?: ResponsiveProp<FontTextSize>
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
/** @public */
|
|
1309
|
-
export declare const themeClassName: string
|
|
1310
|
-
|
|
1311
|
-
/** @public */
|
|
1312
|
-
export declare type ThemeContract<T extends NullableTokens> = ReturnType<
|
|
1313
|
-
typeof createThemeContract<T>
|
|
1314
|
-
>
|
|
1315
|
-
|
|
1316
|
-
/** @public */
|
|
1317
|
-
export declare type ThemeTokens = CoreThemeTokens & {
|
|
1318
|
-
color: {
|
|
1319
|
-
palette: ColorPaletteTokens
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
/** @public */
|
|
1324
|
-
export declare type ThemeVars = ThemeContract<ThemeTokens & ScopedTokens>
|
|
1325
|
-
|
|
1326
|
-
/**
|
|
1327
|
-
* Variables to be defined in a theme.
|
|
1328
|
-
*
|
|
1329
|
-
* @internal */
|
|
1330
|
-
export declare const themeVars: ThemeContract<ThemeTokens>
|
|
1331
|
-
|
|
1332
|
-
/** @public */
|
|
1333
|
-
export declare function toast(): string
|
|
1334
|
-
|
|
1335
|
-
/** @public */
|
|
1336
|
-
export declare function toastLayer(): string
|
|
1337
|
-
|
|
1338
|
-
/** @public */
|
|
1339
|
-
export declare function tooltip(props: TooltipStyleProps): string | undefined
|
|
1340
|
-
|
|
1341
|
-
/** @public */
|
|
1342
|
-
export declare interface TooltipStyleProps {
|
|
1343
|
-
className?: string
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
/** @beta */
|
|
1347
|
-
export declare function treeItem(props: {className?: string}): string | undefined
|
|
1348
|
-
|
|
1349
|
-
/** @public */
|
|
1350
|
-
export declare type VariantColorTokens = Record<ElementTone, ElementColorTokens>
|
|
1351
|
-
|
|
1352
|
-
/**
|
|
1353
|
-
* Variables to be used.
|
|
1354
|
-
*
|
|
1355
|
-
* @public
|
|
1356
|
-
*/
|
|
1357
|
-
export declare const vars: ThemeVars
|
|
1358
|
-
|
|
1359
|
-
/** @public */
|
|
1360
|
-
export declare type Width = ContainerWidth | 'auto' | 'fill' | 'stretch' | 'min'
|
|
1361
|
-
|
|
1362
|
-
/** @public */
|
|
1363
|
-
export declare function width(props: WidthStyleProps): string | undefined
|
|
1364
|
-
|
|
1365
|
-
/** @public */
|
|
1366
|
-
export declare interface WidthStyleProps {
|
|
1367
|
-
width?: ResponsiveProp<Width>
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
export {}
|