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

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