@sanity/ui 3.0.0-static.34 → 3.0.0-static.35

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