@marwes-ui/core 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -17
- package/dist/index.d.ts +1284 -217
- package/dist/index.js +1716 -83
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Non-heading text typography variants.
|
|
3
|
+
* Use `TextVariant.display` for type-safe runtime access.
|
|
4
|
+
*/
|
|
5
|
+
declare const TextVariant: {
|
|
6
|
+
readonly display: "display";
|
|
7
|
+
readonly label: "label";
|
|
8
|
+
readonly labelSmall: "label-small";
|
|
9
|
+
readonly caption: "caption";
|
|
10
|
+
readonly overline: "overline";
|
|
11
|
+
readonly micro: "micro";
|
|
12
|
+
};
|
|
13
|
+
type TextVariant = (typeof TextVariant)[keyof typeof TextVariant];
|
|
14
|
+
|
|
1
15
|
interface ColorRole {
|
|
2
16
|
base: string;
|
|
3
17
|
hover: string;
|
|
@@ -28,9 +42,34 @@ type ToneDefinition = Pick<Partial<ThemeInput>, "font" | "ui" | "typography">;
|
|
|
28
42
|
*/
|
|
29
43
|
declare function resolveTone(tone: ToneName): ToneDefinition;
|
|
30
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Personality is an optional visual identity axis. It adds signature visual
|
|
47
|
+
* effects (shadows, glow, outlines) on top of the token layer without
|
|
48
|
+
* changing colors or typography. Default is "flat" — no additional CSS is
|
|
49
|
+
* applied, so existing themes remain unchanged.
|
|
50
|
+
*/
|
|
51
|
+
type PersonalityName = "flat" | "glow" | "print" | "soft" | "outlined";
|
|
31
52
|
type Density = "compact" | "comfortable" | "spacious";
|
|
32
|
-
type HeadingSize = "h1" | "h2" | "h3";
|
|
53
|
+
type HeadingSize = "display" | "h1" | "h2" | "h3";
|
|
33
54
|
type ParagraphSize = "sm" | "md" | "lg";
|
|
55
|
+
type TextTransform = "none" | "uppercase";
|
|
56
|
+
interface TypographyStyle {
|
|
57
|
+
fontSize: number;
|
|
58
|
+
lineHeight: number;
|
|
59
|
+
fontWeight: number;
|
|
60
|
+
letterSpacing: number;
|
|
61
|
+
}
|
|
62
|
+
interface TextTypographyStyle extends TypographyStyle {
|
|
63
|
+
textTransform?: TextTransform;
|
|
64
|
+
}
|
|
65
|
+
type StatusColorTokens = {
|
|
66
|
+
background: string;
|
|
67
|
+
text: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
border: string;
|
|
70
|
+
borderAccessible?: string;
|
|
71
|
+
borderStrong: string;
|
|
72
|
+
};
|
|
34
73
|
/**
|
|
35
74
|
* Theme mode determines which default color palette is used.
|
|
36
75
|
* - 'light': Uses light mode color defaults (dark text on light backgrounds)
|
|
@@ -43,6 +82,9 @@ declare const ThemeMode: {
|
|
|
43
82
|
type ThemeMode = (typeof ThemeMode)[keyof typeof ThemeMode];
|
|
44
83
|
type ThemePreference = ThemeMode | "system";
|
|
45
84
|
type ThemeVariableStrategy = "inline" | "style-tag";
|
|
85
|
+
type ThemeBreakpointName = "mobile" | "tablet" | "desktop" | "wideDesktop";
|
|
86
|
+
type ThemeBreakpoints = Record<ThemeBreakpointName, number>;
|
|
87
|
+
declare const defaultThemeBreakpoints: ThemeBreakpoints;
|
|
46
88
|
type Theme = {
|
|
47
89
|
/**
|
|
48
90
|
* The current theme mode. This determines which color defaults are applied.
|
|
@@ -53,7 +95,9 @@ type Theme = {
|
|
|
53
95
|
primary: string;
|
|
54
96
|
background: string;
|
|
55
97
|
surface: string;
|
|
98
|
+
surfacePrimary: string;
|
|
56
99
|
surfaceSubtle: string;
|
|
100
|
+
surfaceBrand: string;
|
|
57
101
|
surfaceElevated: string;
|
|
58
102
|
surfaceDisabled: string;
|
|
59
103
|
surfaceInverted: string;
|
|
@@ -62,10 +106,16 @@ type Theme = {
|
|
|
62
106
|
textSubtle: string;
|
|
63
107
|
textDisabled: string;
|
|
64
108
|
textInverted: string;
|
|
109
|
+
textBrand: string;
|
|
110
|
+
textLink: string;
|
|
111
|
+
iconMuted: string;
|
|
112
|
+
borderLow: string;
|
|
65
113
|
border: string;
|
|
66
114
|
borderSubtle: string;
|
|
67
115
|
borderStrong: string;
|
|
68
116
|
borderDisabled: string;
|
|
117
|
+
borderBrand: string;
|
|
118
|
+
borderFull: string;
|
|
69
119
|
/**
|
|
70
120
|
* Focus color used for focus-visible outlines on interactive elements.
|
|
71
121
|
* Defaults to the source focus ring token from docs/marwes-colors.json.
|
|
@@ -74,6 +124,12 @@ type Theme = {
|
|
|
74
124
|
danger: string;
|
|
75
125
|
success: string;
|
|
76
126
|
warning: string;
|
|
127
|
+
status: {
|
|
128
|
+
success: StatusColorTokens;
|
|
129
|
+
warning: StatusColorTokens;
|
|
130
|
+
error: StatusColorTokens;
|
|
131
|
+
info: StatusColorTokens;
|
|
132
|
+
};
|
|
77
133
|
};
|
|
78
134
|
font: {
|
|
79
135
|
primary: string;
|
|
@@ -84,25 +140,13 @@ type Theme = {
|
|
|
84
140
|
radius: number;
|
|
85
141
|
density: Density;
|
|
86
142
|
};
|
|
143
|
+
breakpoint: ThemeBreakpoints;
|
|
87
144
|
typography: {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
};
|
|
94
|
-
h2: {
|
|
95
|
-
fontSize: number;
|
|
96
|
-
lineHeight: number;
|
|
97
|
-
fontWeight: number;
|
|
98
|
-
letterSpacing: number;
|
|
99
|
-
};
|
|
100
|
-
h3: {
|
|
101
|
-
fontSize: number;
|
|
102
|
-
lineHeight: number;
|
|
103
|
-
fontWeight: number;
|
|
104
|
-
letterSpacing: number;
|
|
105
|
-
};
|
|
145
|
+
display: TypographyStyle;
|
|
146
|
+
h1: TypographyStyle;
|
|
147
|
+
h2: TypographyStyle;
|
|
148
|
+
h3: TypographyStyle;
|
|
149
|
+
text: Record<TextVariant, TextTypographyStyle>;
|
|
106
150
|
paragraph: {
|
|
107
151
|
sm: {
|
|
108
152
|
fontSize: number;
|
|
@@ -127,7 +171,9 @@ interface ThemeInputColor {
|
|
|
127
171
|
warning: ColorInput;
|
|
128
172
|
background: string;
|
|
129
173
|
surface: string;
|
|
174
|
+
surfacePrimary: string;
|
|
130
175
|
surfaceSubtle: string;
|
|
176
|
+
surfaceBrand: string;
|
|
131
177
|
surfaceElevated: string;
|
|
132
178
|
surfaceDisabled: string;
|
|
133
179
|
surfaceInverted: string;
|
|
@@ -136,10 +182,14 @@ interface ThemeInputColor {
|
|
|
136
182
|
textSubtle: string;
|
|
137
183
|
textDisabled: string;
|
|
138
184
|
textInverted: string;
|
|
185
|
+
textLink: string;
|
|
186
|
+
iconMuted: string;
|
|
187
|
+
borderLow: string;
|
|
139
188
|
border: string;
|
|
140
189
|
borderSubtle: string;
|
|
141
190
|
borderStrong: string;
|
|
142
191
|
borderDisabled: string;
|
|
192
|
+
borderFull: string;
|
|
143
193
|
focus: string;
|
|
144
194
|
/** @deprecated Removed in v3. Label color is now derived via WCAG contrast. Remove this field. */
|
|
145
195
|
onPrimary?: never;
|
|
@@ -153,13 +203,17 @@ interface ThemeInputColor {
|
|
|
153
203
|
interface ThemeInput {
|
|
154
204
|
mode?: ThemeMode;
|
|
155
205
|
tone?: ToneName;
|
|
206
|
+
personality?: PersonalityName;
|
|
156
207
|
color?: Partial<ThemeInputColor>;
|
|
157
208
|
font?: Partial<Theme["font"]>;
|
|
158
209
|
ui?: Partial<Theme["ui"]>;
|
|
210
|
+
breakpoint?: Partial<ThemeBreakpoints>;
|
|
159
211
|
typography?: Partial<{
|
|
212
|
+
display?: Partial<Theme["typography"]["display"]>;
|
|
160
213
|
h1?: Partial<Theme["typography"]["h1"]>;
|
|
161
214
|
h2?: Partial<Theme["typography"]["h2"]>;
|
|
162
215
|
h3?: Partial<Theme["typography"]["h3"]>;
|
|
216
|
+
text?: Partial<Record<TextVariant, Partial<TextTypographyStyle>>>;
|
|
163
217
|
paragraph?: Partial<{
|
|
164
218
|
sm?: Partial<Theme["typography"]["paragraph"]["sm"]>;
|
|
165
219
|
md?: Partial<Theme["typography"]["paragraph"]["md"]>;
|
|
@@ -176,6 +230,7 @@ declare function nextThemeMode(mode: ThemeMode): ThemeMode;
|
|
|
176
230
|
|
|
177
231
|
interface ResolvedTheme {
|
|
178
232
|
mode: ThemeMode;
|
|
233
|
+
personality: PersonalityName;
|
|
179
234
|
color: {
|
|
180
235
|
primary: ColorRole;
|
|
181
236
|
secondary: SecondaryColorRole;
|
|
@@ -185,7 +240,9 @@ interface ResolvedTheme {
|
|
|
185
240
|
info: ColorRole;
|
|
186
241
|
background: string;
|
|
187
242
|
surface: string;
|
|
243
|
+
surfacePrimary: string;
|
|
188
244
|
surfaceSubtle: string;
|
|
245
|
+
surfaceBrand: string;
|
|
189
246
|
surfaceElevated: string;
|
|
190
247
|
surfaceDisabled: string;
|
|
191
248
|
surfaceInverted: string;
|
|
@@ -194,11 +251,23 @@ interface ResolvedTheme {
|
|
|
194
251
|
textSubtle: string;
|
|
195
252
|
textDisabled: string;
|
|
196
253
|
textInverted: string;
|
|
254
|
+
textBrand: string;
|
|
255
|
+
textLink: string;
|
|
256
|
+
iconMuted: string;
|
|
257
|
+
borderLow: string;
|
|
197
258
|
border: string;
|
|
198
259
|
borderSubtle: string;
|
|
199
260
|
borderStrong: string;
|
|
200
261
|
borderDisabled: string;
|
|
262
|
+
borderBrand: string;
|
|
263
|
+
borderFull: string;
|
|
201
264
|
focus: string;
|
|
265
|
+
status: {
|
|
266
|
+
success: StatusColorTokens;
|
|
267
|
+
warning: StatusColorTokens;
|
|
268
|
+
error: StatusColorTokens;
|
|
269
|
+
info: StatusColorTokens;
|
|
270
|
+
};
|
|
202
271
|
};
|
|
203
272
|
font: {
|
|
204
273
|
primary: string;
|
|
@@ -209,25 +278,13 @@ interface ResolvedTheme {
|
|
|
209
278
|
radius: number;
|
|
210
279
|
density: Density;
|
|
211
280
|
};
|
|
281
|
+
breakpoint: ThemeBreakpoints;
|
|
212
282
|
typography: {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
};
|
|
219
|
-
h2: {
|
|
220
|
-
fontSize: number;
|
|
221
|
-
lineHeight: number;
|
|
222
|
-
fontWeight: number;
|
|
223
|
-
letterSpacing: number;
|
|
224
|
-
};
|
|
225
|
-
h3: {
|
|
226
|
-
fontSize: number;
|
|
227
|
-
lineHeight: number;
|
|
228
|
-
fontWeight: number;
|
|
229
|
-
letterSpacing: number;
|
|
230
|
-
};
|
|
283
|
+
display: TypographyStyle;
|
|
284
|
+
h1: TypographyStyle;
|
|
285
|
+
h2: TypographyStyle;
|
|
286
|
+
h3: TypographyStyle;
|
|
287
|
+
text: Record<TextVariant, TextTypographyStyle>;
|
|
231
288
|
paragraph: {
|
|
232
289
|
sm: {
|
|
233
290
|
fontSize: number;
|
|
@@ -246,7 +303,7 @@ interface ResolvedTheme {
|
|
|
246
303
|
}
|
|
247
304
|
/**
|
|
248
305
|
* Maps every field of a resolved theme to its CSS custom property name.
|
|
249
|
-
* Returns
|
|
306
|
+
* Returns 149 entries total. `variant` is excluded — it is deprecated.
|
|
250
307
|
* Density is emitted as 10 `--mw-density-*` vars via densityToCSSVars.
|
|
251
308
|
*
|
|
252
309
|
* Variable naming follows D11: --mw-color-{role}-{state}, --mw-font-*, etc.
|
|
@@ -311,12 +368,23 @@ declare function resolveThemeInput(input: ThemeInput): ResolvedTheme;
|
|
|
311
368
|
|
|
312
369
|
type MwThemeVarName = `--mw-${string}`;
|
|
313
370
|
type MwThemeVarReference = `var(${MwThemeVarName})` | `var(${MwThemeVarName}, ${string})`;
|
|
371
|
+
type MwThemeMedia = {
|
|
372
|
+
mobileAndAbove: string;
|
|
373
|
+
tabletAndAbove: string;
|
|
374
|
+
desktopAndAbove: string;
|
|
375
|
+
wideDesktopAndAbove: string;
|
|
376
|
+
mobileAndBelow: string;
|
|
377
|
+
tabletAndBelow: string;
|
|
378
|
+
desktopAndBelow: string;
|
|
379
|
+
wideDesktopAndBelow: string;
|
|
380
|
+
};
|
|
314
381
|
/**
|
|
315
382
|
* Wraps a Marwes CSS custom property name in `var(...)`, with an optional fallback.
|
|
316
383
|
* Use this as the escape hatch for custom or advanced `--mw-*` variables.
|
|
317
384
|
*/
|
|
318
385
|
declare function mwVar<const TName extends MwThemeVarName>(name: TName): `var(${TName})`;
|
|
319
386
|
declare function mwVar<const TName extends MwThemeVarName>(name: TName, fallback: string): `var(${TName}, ${string})`;
|
|
387
|
+
declare function createMwThemeMedia(breakpoint: ThemeBreakpoints): MwThemeMedia;
|
|
320
388
|
/**
|
|
321
389
|
* Raw Marwes CSS custom property names, without `var(...)`.
|
|
322
390
|
* Use these when assigning variables, inspecting tokens, writing tests, or building adapter/tooling bridges.
|
|
@@ -375,7 +443,9 @@ declare const mwThemeVarNames: {
|
|
|
375
443
|
};
|
|
376
444
|
readonly background: "--mw-color-background";
|
|
377
445
|
readonly surface: "--mw-color-surface";
|
|
446
|
+
readonly surfacePrimary: "--mw-color-surface-primary";
|
|
378
447
|
readonly surfaceSubtle: "--mw-color-surface-subtle";
|
|
448
|
+
readonly surfaceBrand: "--mw-color-surface-brand";
|
|
379
449
|
readonly surfaceElevated: "--mw-color-surface-elevated";
|
|
380
450
|
readonly surfaceDisabled: "--mw-color-surface-disabled";
|
|
381
451
|
readonly surfaceInverted: "--mw-color-surface-inverted";
|
|
@@ -384,17 +454,55 @@ declare const mwThemeVarNames: {
|
|
|
384
454
|
readonly textSubtle: "--mw-color-text-subtle";
|
|
385
455
|
readonly textDisabled: "--mw-color-text-disabled";
|
|
386
456
|
readonly textInverted: "--mw-color-text-inverted";
|
|
457
|
+
readonly textBrand: "--mw-color-text-brand";
|
|
458
|
+
readonly textLink: "--mw-color-text-link";
|
|
459
|
+
readonly iconMuted: "--mw-color-icon-muted";
|
|
460
|
+
readonly borderLow: "--mw-color-border-low";
|
|
387
461
|
readonly border: "--mw-color-border";
|
|
388
462
|
readonly borderSubtle: "--mw-color-border-subtle";
|
|
389
463
|
readonly borderStrong: "--mw-color-border-strong";
|
|
390
464
|
readonly borderDisabled: "--mw-color-border-disabled";
|
|
465
|
+
readonly borderBrand: "--mw-color-border-brand";
|
|
466
|
+
readonly borderFull: "--mw-color-border-full";
|
|
391
467
|
readonly focus: "--mw-color-focus";
|
|
468
|
+
readonly status: {
|
|
469
|
+
readonly success: {
|
|
470
|
+
readonly background: "--mw-color-status-success-background";
|
|
471
|
+
readonly text: "--mw-color-status-success-text";
|
|
472
|
+
readonly icon: "--mw-color-status-success-icon";
|
|
473
|
+
readonly border: "--mw-color-status-success-border";
|
|
474
|
+
readonly borderStrong: "--mw-color-status-success-border-strong";
|
|
475
|
+
};
|
|
476
|
+
readonly warning: {
|
|
477
|
+
readonly background: "--mw-color-status-warning-background";
|
|
478
|
+
readonly text: "--mw-color-status-warning-text";
|
|
479
|
+
readonly icon: "--mw-color-status-warning-icon";
|
|
480
|
+
readonly border: "--mw-color-status-warning-border";
|
|
481
|
+
readonly borderAccessible: "--mw-color-status-warning-border-accessible";
|
|
482
|
+
readonly borderStrong: "--mw-color-status-warning-border-strong";
|
|
483
|
+
};
|
|
484
|
+
readonly error: {
|
|
485
|
+
readonly background: "--mw-color-status-error-background";
|
|
486
|
+
readonly text: "--mw-color-status-error-text";
|
|
487
|
+
readonly icon: "--mw-color-status-error-icon";
|
|
488
|
+
readonly border: "--mw-color-status-error-border";
|
|
489
|
+
readonly borderStrong: "--mw-color-status-error-border-strong";
|
|
490
|
+
};
|
|
491
|
+
readonly info: {
|
|
492
|
+
readonly background: "--mw-color-status-info-background";
|
|
493
|
+
readonly text: "--mw-color-status-info-text";
|
|
494
|
+
readonly icon: "--mw-color-status-info-icon";
|
|
495
|
+
readonly border: "--mw-color-status-info-border";
|
|
496
|
+
readonly borderStrong: "--mw-color-status-info-border-strong";
|
|
497
|
+
};
|
|
498
|
+
};
|
|
392
499
|
};
|
|
393
500
|
readonly spacing: {
|
|
394
501
|
readonly sp0: "--mw-spacing-sp-0";
|
|
395
502
|
readonly sp2: "--mw-spacing-sp-2";
|
|
396
503
|
readonly sp4: "--mw-spacing-sp-4";
|
|
397
504
|
readonly sp8: "--mw-spacing-sp-8";
|
|
505
|
+
readonly sp12: "--mw-spacing-sp-12";
|
|
398
506
|
readonly sp16: "--mw-spacing-sp-16";
|
|
399
507
|
readonly sp24: "--mw-spacing-sp-24";
|
|
400
508
|
readonly sp32: "--mw-spacing-sp-32";
|
|
@@ -431,6 +539,12 @@ declare const mwThemeVarNames: {
|
|
|
431
539
|
readonly fontSizeSm: "--mw-density-font-size-sm";
|
|
432
540
|
};
|
|
433
541
|
readonly typography: {
|
|
542
|
+
readonly display: {
|
|
543
|
+
readonly fontSize: "--mw-typography-display-font-size";
|
|
544
|
+
readonly lineHeight: "--mw-typography-display-line-height";
|
|
545
|
+
readonly fontWeight: "--mw-typography-display-font-weight";
|
|
546
|
+
readonly letterSpacing: "--mw-typography-display-letter-spacing";
|
|
547
|
+
};
|
|
434
548
|
readonly h1: {
|
|
435
549
|
readonly fontSize: "--mw-typography-h1-font-size";
|
|
436
550
|
readonly lineHeight: "--mw-typography-h1-line-height";
|
|
@@ -449,6 +563,50 @@ declare const mwThemeVarNames: {
|
|
|
449
563
|
readonly fontWeight: "--mw-typography-h3-font-weight";
|
|
450
564
|
readonly letterSpacing: "--mw-typography-h3-letter-spacing";
|
|
451
565
|
};
|
|
566
|
+
readonly text: {
|
|
567
|
+
readonly display: {
|
|
568
|
+
readonly fontSize: "--mw-typography-text-display-font-size";
|
|
569
|
+
readonly lineHeight: "--mw-typography-text-display-line-height";
|
|
570
|
+
readonly fontWeight: "--mw-typography-text-display-font-weight";
|
|
571
|
+
readonly letterSpacing: "--mw-typography-text-display-letter-spacing";
|
|
572
|
+
readonly textTransform: "--mw-typography-text-display-transform";
|
|
573
|
+
};
|
|
574
|
+
readonly label: {
|
|
575
|
+
readonly fontSize: "--mw-typography-text-label-font-size";
|
|
576
|
+
readonly lineHeight: "--mw-typography-text-label-line-height";
|
|
577
|
+
readonly fontWeight: "--mw-typography-text-label-font-weight";
|
|
578
|
+
readonly letterSpacing: "--mw-typography-text-label-letter-spacing";
|
|
579
|
+
readonly textTransform: "--mw-typography-text-label-transform";
|
|
580
|
+
};
|
|
581
|
+
readonly "label-small": {
|
|
582
|
+
readonly fontSize: "--mw-typography-text-label-small-font-size";
|
|
583
|
+
readonly lineHeight: "--mw-typography-text-label-small-line-height";
|
|
584
|
+
readonly fontWeight: "--mw-typography-text-label-small-font-weight";
|
|
585
|
+
readonly letterSpacing: "--mw-typography-text-label-small-letter-spacing";
|
|
586
|
+
readonly textTransform: "--mw-typography-text-label-small-transform";
|
|
587
|
+
};
|
|
588
|
+
readonly caption: {
|
|
589
|
+
readonly fontSize: "--mw-typography-text-caption-font-size";
|
|
590
|
+
readonly lineHeight: "--mw-typography-text-caption-line-height";
|
|
591
|
+
readonly fontWeight: "--mw-typography-text-caption-font-weight";
|
|
592
|
+
readonly letterSpacing: "--mw-typography-text-caption-letter-spacing";
|
|
593
|
+
readonly textTransform: "--mw-typography-text-caption-transform";
|
|
594
|
+
};
|
|
595
|
+
readonly overline: {
|
|
596
|
+
readonly fontSize: "--mw-typography-text-overline-font-size";
|
|
597
|
+
readonly lineHeight: "--mw-typography-text-overline-line-height";
|
|
598
|
+
readonly fontWeight: "--mw-typography-text-overline-font-weight";
|
|
599
|
+
readonly letterSpacing: "--mw-typography-text-overline-letter-spacing";
|
|
600
|
+
readonly textTransform: "--mw-typography-text-overline-transform";
|
|
601
|
+
};
|
|
602
|
+
readonly micro: {
|
|
603
|
+
readonly fontSize: "--mw-typography-text-micro-font-size";
|
|
604
|
+
readonly lineHeight: "--mw-typography-text-micro-line-height";
|
|
605
|
+
readonly fontWeight: "--mw-typography-text-micro-font-weight";
|
|
606
|
+
readonly letterSpacing: "--mw-typography-text-micro-letter-spacing";
|
|
607
|
+
readonly textTransform: "--mw-typography-text-micro-transform";
|
|
608
|
+
};
|
|
609
|
+
};
|
|
452
610
|
readonly paragraph: {
|
|
453
611
|
readonly sm: {
|
|
454
612
|
readonly fontSize: "--mw-typography-paragraph-sm-font-size";
|
|
@@ -523,7 +681,9 @@ declare const mwThemeVars: {
|
|
|
523
681
|
};
|
|
524
682
|
readonly background: "var(--mw-color-background)";
|
|
525
683
|
readonly surface: "var(--mw-color-surface)";
|
|
684
|
+
readonly surfacePrimary: "var(--mw-color-surface-primary)";
|
|
526
685
|
readonly surfaceSubtle: "var(--mw-color-surface-subtle)";
|
|
686
|
+
readonly surfaceBrand: "var(--mw-color-surface-brand)";
|
|
527
687
|
readonly surfaceElevated: "var(--mw-color-surface-elevated)";
|
|
528
688
|
readonly surfaceDisabled: "var(--mw-color-surface-disabled)";
|
|
529
689
|
readonly surfaceInverted: "var(--mw-color-surface-inverted)";
|
|
@@ -532,165 +692,55 @@ declare const mwThemeVars: {
|
|
|
532
692
|
readonly textSubtle: "var(--mw-color-text-subtle)";
|
|
533
693
|
readonly textDisabled: "var(--mw-color-text-disabled)";
|
|
534
694
|
readonly textInverted: "var(--mw-color-text-inverted)";
|
|
695
|
+
readonly textBrand: "var(--mw-color-text-brand)";
|
|
696
|
+
readonly textLink: "var(--mw-color-text-link)";
|
|
697
|
+
readonly iconMuted: "var(--mw-color-icon-muted)";
|
|
698
|
+
readonly borderLow: "var(--mw-color-border-low)";
|
|
535
699
|
readonly border: "var(--mw-color-border)";
|
|
536
700
|
readonly borderSubtle: "var(--mw-color-border-subtle)";
|
|
537
701
|
readonly borderStrong: "var(--mw-color-border-strong)";
|
|
538
702
|
readonly borderDisabled: "var(--mw-color-border-disabled)";
|
|
703
|
+
readonly borderBrand: "var(--mw-color-border-brand)";
|
|
704
|
+
readonly borderFull: "var(--mw-color-border-full)";
|
|
539
705
|
readonly focus: "var(--mw-color-focus)";
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
readonly density: {
|
|
570
|
-
readonly height: "var(--mw-density-height)";
|
|
571
|
-
readonly paddingX: "var(--mw-density-padding-x)";
|
|
572
|
-
readonly paddingY: "var(--mw-density-padding-y)";
|
|
573
|
-
readonly gap: "var(--mw-density-gap)";
|
|
574
|
-
readonly fontSize: "var(--mw-density-font-size)";
|
|
575
|
-
readonly iconSize: "var(--mw-density-icon-size)";
|
|
576
|
-
readonly checkboxSize: "var(--mw-density-checkbox-size)";
|
|
577
|
-
readonly fieldGap: "var(--mw-density-field-gap)";
|
|
578
|
-
readonly spacingMultiplier: "var(--mw-density-spacing-multiplier)";
|
|
579
|
-
readonly fontSizeSm: "var(--mw-density-font-size-sm)";
|
|
580
|
-
};
|
|
581
|
-
readonly typography: {
|
|
582
|
-
readonly h1: {
|
|
583
|
-
readonly fontSize: "var(--mw-typography-h1-font-size)";
|
|
584
|
-
readonly lineHeight: "var(--mw-typography-h1-line-height)";
|
|
585
|
-
readonly fontWeight: "var(--mw-typography-h1-font-weight)";
|
|
586
|
-
readonly letterSpacing: "var(--mw-typography-h1-letter-spacing)";
|
|
587
|
-
};
|
|
588
|
-
readonly h2: {
|
|
589
|
-
readonly fontSize: "var(--mw-typography-h2-font-size)";
|
|
590
|
-
readonly lineHeight: "var(--mw-typography-h2-line-height)";
|
|
591
|
-
readonly fontWeight: "var(--mw-typography-h2-font-weight)";
|
|
592
|
-
readonly letterSpacing: "var(--mw-typography-h2-letter-spacing)";
|
|
593
|
-
};
|
|
594
|
-
readonly h3: {
|
|
595
|
-
readonly fontSize: "var(--mw-typography-h3-font-size)";
|
|
596
|
-
readonly lineHeight: "var(--mw-typography-h3-line-height)";
|
|
597
|
-
readonly fontWeight: "var(--mw-typography-h3-font-weight)";
|
|
598
|
-
readonly letterSpacing: "var(--mw-typography-h3-letter-spacing)";
|
|
599
|
-
};
|
|
600
|
-
readonly paragraph: {
|
|
601
|
-
readonly sm: {
|
|
602
|
-
readonly fontSize: "var(--mw-typography-paragraph-sm-font-size)";
|
|
603
|
-
readonly lineHeight: "var(--mw-typography-paragraph-sm-line-height)";
|
|
604
|
-
};
|
|
605
|
-
readonly md: {
|
|
606
|
-
readonly fontSize: "var(--mw-typography-paragraph-md-font-size)";
|
|
607
|
-
readonly lineHeight: "var(--mw-typography-paragraph-md-line-height)";
|
|
706
|
+
readonly status: {
|
|
707
|
+
readonly success: {
|
|
708
|
+
readonly background: "var(--mw-color-status-success-background)";
|
|
709
|
+
readonly text: "var(--mw-color-status-success-text)";
|
|
710
|
+
readonly icon: "var(--mw-color-status-success-icon)";
|
|
711
|
+
readonly border: "var(--mw-color-status-success-border)";
|
|
712
|
+
readonly borderStrong: "var(--mw-color-status-success-border-strong)";
|
|
713
|
+
};
|
|
714
|
+
readonly warning: {
|
|
715
|
+
readonly background: "var(--mw-color-status-warning-background)";
|
|
716
|
+
readonly text: "var(--mw-color-status-warning-text)";
|
|
717
|
+
readonly icon: "var(--mw-color-status-warning-icon)";
|
|
718
|
+
readonly border: "var(--mw-color-status-warning-border)";
|
|
719
|
+
readonly borderAccessible: "var(--mw-color-status-warning-border-accessible)";
|
|
720
|
+
readonly borderStrong: "var(--mw-color-status-warning-border-strong)";
|
|
721
|
+
};
|
|
722
|
+
readonly error: {
|
|
723
|
+
readonly background: "var(--mw-color-status-error-background)";
|
|
724
|
+
readonly text: "var(--mw-color-status-error-text)";
|
|
725
|
+
readonly icon: "var(--mw-color-status-error-icon)";
|
|
726
|
+
readonly border: "var(--mw-color-status-error-border)";
|
|
727
|
+
readonly borderStrong: "var(--mw-color-status-error-border-strong)";
|
|
728
|
+
};
|
|
729
|
+
readonly info: {
|
|
730
|
+
readonly background: "var(--mw-color-status-info-background)";
|
|
731
|
+
readonly text: "var(--mw-color-status-info-text)";
|
|
732
|
+
readonly icon: "var(--mw-color-status-info-icon)";
|
|
733
|
+
readonly border: "var(--mw-color-status-info-border)";
|
|
734
|
+
readonly borderStrong: "var(--mw-color-status-info-border-strong)";
|
|
608
735
|
};
|
|
609
|
-
readonly lg: {
|
|
610
|
-
readonly fontSize: "var(--mw-typography-paragraph-lg-font-size)";
|
|
611
|
-
readonly lineHeight: "var(--mw-typography-paragraph-lg-line-height)";
|
|
612
|
-
};
|
|
613
|
-
};
|
|
614
|
-
};
|
|
615
|
-
};
|
|
616
|
-
/**
|
|
617
|
-
* Plain ThemeProvider-friendly object for styled-components and Emotion.
|
|
618
|
-
* It mirrors `mwThemeVars` without adding a dependency on any CSS-in-JS library.
|
|
619
|
-
*/
|
|
620
|
-
declare const mwStyledTheme: {
|
|
621
|
-
readonly color: {
|
|
622
|
-
readonly primary: {
|
|
623
|
-
readonly base: "var(--mw-color-primary-base)";
|
|
624
|
-
readonly hover: "var(--mw-color-primary-hover)";
|
|
625
|
-
readonly pressed: "var(--mw-color-primary-pressed)";
|
|
626
|
-
readonly disabled: "var(--mw-color-primary-disabled)";
|
|
627
|
-
readonly label: "var(--mw-color-primary-label)";
|
|
628
|
-
readonly labelDisabled: "var(--mw-color-primary-label-disabled)";
|
|
629
|
-
};
|
|
630
|
-
readonly secondary: {
|
|
631
|
-
readonly base: "var(--mw-color-secondary-base)";
|
|
632
|
-
readonly hover: "var(--mw-color-secondary-hover)";
|
|
633
|
-
readonly pressed: "var(--mw-color-secondary-pressed)";
|
|
634
|
-
readonly disabled: "var(--mw-color-secondary-disabled)";
|
|
635
|
-
readonly label: "var(--mw-color-secondary-label)";
|
|
636
|
-
readonly labelDisabled: "var(--mw-color-secondary-label-disabled)";
|
|
637
|
-
readonly border: "var(--mw-color-secondary-border)";
|
|
638
|
-
readonly borderDisabled: "var(--mw-color-secondary-border-disabled)";
|
|
639
|
-
};
|
|
640
|
-
readonly danger: {
|
|
641
|
-
readonly base: "var(--mw-color-danger-base)";
|
|
642
|
-
readonly hover: "var(--mw-color-danger-hover)";
|
|
643
|
-
readonly pressed: "var(--mw-color-danger-pressed)";
|
|
644
|
-
readonly disabled: "var(--mw-color-danger-disabled)";
|
|
645
|
-
readonly label: "var(--mw-color-danger-label)";
|
|
646
|
-
readonly labelDisabled: "var(--mw-color-danger-label-disabled)";
|
|
647
|
-
};
|
|
648
|
-
readonly success: {
|
|
649
|
-
readonly base: "var(--mw-color-success-base)";
|
|
650
|
-
readonly hover: "var(--mw-color-success-hover)";
|
|
651
|
-
readonly pressed: "var(--mw-color-success-pressed)";
|
|
652
|
-
readonly disabled: "var(--mw-color-success-disabled)";
|
|
653
|
-
readonly label: "var(--mw-color-success-label)";
|
|
654
|
-
readonly labelDisabled: "var(--mw-color-success-label-disabled)";
|
|
655
|
-
};
|
|
656
|
-
readonly warning: {
|
|
657
|
-
readonly base: "var(--mw-color-warning-base)";
|
|
658
|
-
readonly hover: "var(--mw-color-warning-hover)";
|
|
659
|
-
readonly pressed: "var(--mw-color-warning-pressed)";
|
|
660
|
-
readonly disabled: "var(--mw-color-warning-disabled)";
|
|
661
|
-
readonly label: "var(--mw-color-warning-label)";
|
|
662
|
-
readonly labelDisabled: "var(--mw-color-warning-label-disabled)";
|
|
663
736
|
};
|
|
664
|
-
readonly info: {
|
|
665
|
-
readonly base: "var(--mw-color-info-base)";
|
|
666
|
-
readonly hover: "var(--mw-color-info-hover)";
|
|
667
|
-
readonly pressed: "var(--mw-color-info-pressed)";
|
|
668
|
-
readonly disabled: "var(--mw-color-info-disabled)";
|
|
669
|
-
readonly label: "var(--mw-color-info-label)";
|
|
670
|
-
readonly labelDisabled: "var(--mw-color-info-label-disabled)";
|
|
671
|
-
};
|
|
672
|
-
readonly background: "var(--mw-color-background)";
|
|
673
|
-
readonly surface: "var(--mw-color-surface)";
|
|
674
|
-
readonly surfaceSubtle: "var(--mw-color-surface-subtle)";
|
|
675
|
-
readonly surfaceElevated: "var(--mw-color-surface-elevated)";
|
|
676
|
-
readonly surfaceDisabled: "var(--mw-color-surface-disabled)";
|
|
677
|
-
readonly surfaceInverted: "var(--mw-color-surface-inverted)";
|
|
678
|
-
readonly text: "var(--mw-color-text)";
|
|
679
|
-
readonly textMuted: "var(--mw-color-text-muted)";
|
|
680
|
-
readonly textSubtle: "var(--mw-color-text-subtle)";
|
|
681
|
-
readonly textDisabled: "var(--mw-color-text-disabled)";
|
|
682
|
-
readonly textInverted: "var(--mw-color-text-inverted)";
|
|
683
|
-
readonly border: "var(--mw-color-border)";
|
|
684
|
-
readonly borderSubtle: "var(--mw-color-border-subtle)";
|
|
685
|
-
readonly borderStrong: "var(--mw-color-border-strong)";
|
|
686
|
-
readonly borderDisabled: "var(--mw-color-border-disabled)";
|
|
687
|
-
readonly focus: "var(--mw-color-focus)";
|
|
688
737
|
};
|
|
689
738
|
readonly spacing: {
|
|
690
739
|
readonly sp0: "var(--mw-spacing-sp-0)";
|
|
691
740
|
readonly sp2: "var(--mw-spacing-sp-2)";
|
|
692
741
|
readonly sp4: "var(--mw-spacing-sp-4)";
|
|
693
742
|
readonly sp8: "var(--mw-spacing-sp-8)";
|
|
743
|
+
readonly sp12: "var(--mw-spacing-sp-12)";
|
|
694
744
|
readonly sp16: "var(--mw-spacing-sp-16)";
|
|
695
745
|
readonly sp24: "var(--mw-spacing-sp-24)";
|
|
696
746
|
readonly sp32: "var(--mw-spacing-sp-32)";
|
|
@@ -727,6 +777,12 @@ declare const mwStyledTheme: {
|
|
|
727
777
|
readonly fontSizeSm: "var(--mw-density-font-size-sm)";
|
|
728
778
|
};
|
|
729
779
|
readonly typography: {
|
|
780
|
+
readonly display: {
|
|
781
|
+
readonly fontSize: "var(--mw-typography-display-font-size)";
|
|
782
|
+
readonly lineHeight: "var(--mw-typography-display-line-height)";
|
|
783
|
+
readonly fontWeight: "var(--mw-typography-display-font-weight)";
|
|
784
|
+
readonly letterSpacing: "var(--mw-typography-display-letter-spacing)";
|
|
785
|
+
};
|
|
730
786
|
readonly h1: {
|
|
731
787
|
readonly fontSize: "var(--mw-typography-h1-font-size)";
|
|
732
788
|
readonly lineHeight: "var(--mw-typography-h1-line-height)";
|
|
@@ -745,6 +801,50 @@ declare const mwStyledTheme: {
|
|
|
745
801
|
readonly fontWeight: "var(--mw-typography-h3-font-weight)";
|
|
746
802
|
readonly letterSpacing: "var(--mw-typography-h3-letter-spacing)";
|
|
747
803
|
};
|
|
804
|
+
readonly text: {
|
|
805
|
+
readonly display: {
|
|
806
|
+
readonly fontSize: "var(--mw-typography-text-display-font-size)";
|
|
807
|
+
readonly lineHeight: "var(--mw-typography-text-display-line-height)";
|
|
808
|
+
readonly fontWeight: "var(--mw-typography-text-display-font-weight)";
|
|
809
|
+
readonly letterSpacing: "var(--mw-typography-text-display-letter-spacing)";
|
|
810
|
+
readonly textTransform: "var(--mw-typography-text-display-transform)";
|
|
811
|
+
};
|
|
812
|
+
readonly label: {
|
|
813
|
+
readonly fontSize: "var(--mw-typography-text-label-font-size)";
|
|
814
|
+
readonly lineHeight: "var(--mw-typography-text-label-line-height)";
|
|
815
|
+
readonly fontWeight: "var(--mw-typography-text-label-font-weight)";
|
|
816
|
+
readonly letterSpacing: "var(--mw-typography-text-label-letter-spacing)";
|
|
817
|
+
readonly textTransform: "var(--mw-typography-text-label-transform)";
|
|
818
|
+
};
|
|
819
|
+
readonly "label-small": {
|
|
820
|
+
readonly fontSize: "var(--mw-typography-text-label-small-font-size)";
|
|
821
|
+
readonly lineHeight: "var(--mw-typography-text-label-small-line-height)";
|
|
822
|
+
readonly fontWeight: "var(--mw-typography-text-label-small-font-weight)";
|
|
823
|
+
readonly letterSpacing: "var(--mw-typography-text-label-small-letter-spacing)";
|
|
824
|
+
readonly textTransform: "var(--mw-typography-text-label-small-transform)";
|
|
825
|
+
};
|
|
826
|
+
readonly caption: {
|
|
827
|
+
readonly fontSize: "var(--mw-typography-text-caption-font-size)";
|
|
828
|
+
readonly lineHeight: "var(--mw-typography-text-caption-line-height)";
|
|
829
|
+
readonly fontWeight: "var(--mw-typography-text-caption-font-weight)";
|
|
830
|
+
readonly letterSpacing: "var(--mw-typography-text-caption-letter-spacing)";
|
|
831
|
+
readonly textTransform: "var(--mw-typography-text-caption-transform)";
|
|
832
|
+
};
|
|
833
|
+
readonly overline: {
|
|
834
|
+
readonly fontSize: "var(--mw-typography-text-overline-font-size)";
|
|
835
|
+
readonly lineHeight: "var(--mw-typography-text-overline-line-height)";
|
|
836
|
+
readonly fontWeight: "var(--mw-typography-text-overline-font-weight)";
|
|
837
|
+
readonly letterSpacing: "var(--mw-typography-text-overline-letter-spacing)";
|
|
838
|
+
readonly textTransform: "var(--mw-typography-text-overline-transform)";
|
|
839
|
+
};
|
|
840
|
+
readonly micro: {
|
|
841
|
+
readonly fontSize: "var(--mw-typography-text-micro-font-size)";
|
|
842
|
+
readonly lineHeight: "var(--mw-typography-text-micro-line-height)";
|
|
843
|
+
readonly fontWeight: "var(--mw-typography-text-micro-font-weight)";
|
|
844
|
+
readonly letterSpacing: "var(--mw-typography-text-micro-letter-spacing)";
|
|
845
|
+
readonly textTransform: "var(--mw-typography-text-micro-transform)";
|
|
846
|
+
};
|
|
847
|
+
};
|
|
748
848
|
readonly paragraph: {
|
|
749
849
|
readonly sm: {
|
|
750
850
|
readonly fontSize: "var(--mw-typography-paragraph-sm-font-size)";
|
|
@@ -761,8 +861,26 @@ declare const mwStyledTheme: {
|
|
|
761
861
|
};
|
|
762
862
|
};
|
|
763
863
|
};
|
|
864
|
+
/**
|
|
865
|
+
* Creates a ThemeProvider-friendly object for styled-components, Emotion, and other CSS providers.
|
|
866
|
+
* Token values are CSS custom property references; media helpers are derived from the resolved theme.
|
|
867
|
+
*/
|
|
868
|
+
declare function createMwTheme(theme: ResolvedTheme): MwTheme;
|
|
869
|
+
/**
|
|
870
|
+
* Static CSS-provider theme using default Marwes breakpoint values.
|
|
871
|
+
* Use provider-rendered `mwTheme` when consumers need breakpoint overrides.
|
|
872
|
+
*/
|
|
873
|
+
declare const mwTheme: MwTheme;
|
|
874
|
+
/**
|
|
875
|
+
* @deprecated Use `mwTheme`. This alias is kept for existing styled-provider consumers.
|
|
876
|
+
*/
|
|
877
|
+
declare const mwStyledTheme: MwTheme;
|
|
764
878
|
type MwThemeVarNames = typeof mwThemeVarNames;
|
|
765
879
|
type MwThemeVars = typeof mwThemeVars;
|
|
880
|
+
type MwTheme = MwThemeVars & {
|
|
881
|
+
breakpoint: ThemeBreakpoints;
|
|
882
|
+
media: MwThemeMedia;
|
|
883
|
+
};
|
|
766
884
|
type MwStyledTheme = typeof mwStyledTheme;
|
|
767
885
|
|
|
768
886
|
interface DensityScale {
|
|
@@ -869,6 +987,9 @@ declare function isSystemFont(name: string): boolean;
|
|
|
869
987
|
*/
|
|
870
988
|
declare function shouldLoadGoogleFont(name: string, config?: FontLoadingConfig): boolean;
|
|
871
989
|
interface TypographyForWeightExtraction {
|
|
990
|
+
display?: {
|
|
991
|
+
fontWeight: number;
|
|
992
|
+
};
|
|
872
993
|
h1: {
|
|
873
994
|
fontWeight: number;
|
|
874
995
|
};
|
|
@@ -878,6 +999,9 @@ interface TypographyForWeightExtraction {
|
|
|
878
999
|
h3: {
|
|
879
1000
|
fontWeight: number;
|
|
880
1001
|
};
|
|
1002
|
+
text?: Record<string, {
|
|
1003
|
+
fontWeight: number;
|
|
1004
|
+
}>;
|
|
881
1005
|
}
|
|
882
1006
|
/**
|
|
883
1007
|
* Collects unique fontWeight values from typography config.
|
|
@@ -890,7 +1014,7 @@ declare const canonicalSemanticAttributeNames: readonly ["data-component", "data
|
|
|
890
1014
|
type SemanticAttributeName = (typeof canonicalSemanticAttributeNames)[number];
|
|
891
1015
|
declare const semanticLayers: readonly ["atom", "molecule", "purpose"];
|
|
892
1016
|
type SemanticLayer = (typeof semanticLayers)[number];
|
|
893
|
-
declare const semanticFamilies: readonly ["button", "badge", "avatar", "toast", "dialog"];
|
|
1017
|
+
declare const semanticFamilies: readonly ["button", "badge", "banner", "avatar", "toast", "dialog", "drawer", "context-menu", "breadcrumb"];
|
|
894
1018
|
type SemanticFamily = (typeof semanticFamilies)[number];
|
|
895
1019
|
declare const semanticIntents: readonly ["success", "error", "warning", "info", "confirm", "destructive"];
|
|
896
1020
|
type SemanticIntent = (typeof semanticIntents)[number];
|
|
@@ -902,8 +1026,9 @@ declare const buttonPurposes: readonly ["destructive", "create", "submit", "canc
|
|
|
902
1026
|
declare const badgePurposes: readonly ["status", "priority", "notification"];
|
|
903
1027
|
declare const avatarPurposes: readonly ["profile", "presence", "team"];
|
|
904
1028
|
declare const toastPurposes: readonly ["success-toast", "error-toast", "warning-toast", "info-toast"];
|
|
1029
|
+
declare const bannerPurposes: readonly ["info-banner", "success-banner", "warning-banner", "error-banner"];
|
|
905
1030
|
declare const dialogPurposes: readonly ["confirm-dialog", "destructive-dialog", "info-dialog"];
|
|
906
|
-
declare const semanticPurposes: readonly ["destructive", "create", "submit", "cancel", "navigation", "save", "confirm", "verify", "edit", "close", "refresh", "upload", "download", "copy", "search", "filter", "sort", "dropdown", "success", "status", "priority", "notification", "profile", "presence", "team", "success-toast", "error-toast", "warning-toast", "info-toast", "confirm-dialog", "destructive-dialog", "info-dialog"];
|
|
1031
|
+
declare const semanticPurposes: readonly ["destructive", "create", "submit", "cancel", "navigation", "save", "confirm", "verify", "edit", "close", "refresh", "upload", "download", "copy", "search", "filter", "sort", "dropdown", "success", "status", "priority", "notification", "profile", "presence", "team", "success-toast", "error-toast", "warning-toast", "info-toast", "info-banner", "success-banner", "warning-banner", "error-banner", "confirm-dialog", "destructive-dialog", "info-dialog"];
|
|
907
1032
|
type SemanticPurpose = (typeof semanticPurposes)[number];
|
|
908
1033
|
type SemanticAttributeValue = string;
|
|
909
1034
|
interface SemanticAttributeDefinition {
|
|
@@ -959,6 +1084,16 @@ declare const familySemanticsRegistry: {
|
|
|
959
1084
|
allowedPurposes: ("status" | "priority" | "notification")[];
|
|
960
1085
|
notes: string;
|
|
961
1086
|
};
|
|
1087
|
+
banner: {
|
|
1088
|
+
family: "banner";
|
|
1089
|
+
defaultLayer: "atom";
|
|
1090
|
+
baseAttributes: {
|
|
1091
|
+
"data-component": string;
|
|
1092
|
+
};
|
|
1093
|
+
canonicalAttributes: ("data-component" | "data-variant")[];
|
|
1094
|
+
allowedPurposes: ("info-banner" | "success-banner" | "warning-banner" | "error-banner")[];
|
|
1095
|
+
notes: string;
|
|
1096
|
+
};
|
|
962
1097
|
avatar: {
|
|
963
1098
|
family: "avatar";
|
|
964
1099
|
defaultLayer: "atom";
|
|
@@ -989,6 +1124,36 @@ declare const familySemanticsRegistry: {
|
|
|
989
1124
|
allowedPurposes: ("confirm-dialog" | "destructive-dialog" | "info-dialog")[];
|
|
990
1125
|
notes: string;
|
|
991
1126
|
};
|
|
1127
|
+
drawer: {
|
|
1128
|
+
family: "drawer";
|
|
1129
|
+
defaultLayer: "atom";
|
|
1130
|
+
baseAttributes: {
|
|
1131
|
+
"data-component": string;
|
|
1132
|
+
};
|
|
1133
|
+
canonicalAttributes: ("data-component" | "data-size")[];
|
|
1134
|
+
allowedPurposes: never[];
|
|
1135
|
+
notes: string;
|
|
1136
|
+
};
|
|
1137
|
+
"context-menu": {
|
|
1138
|
+
family: "context-menu";
|
|
1139
|
+
defaultLayer: "atom";
|
|
1140
|
+
baseAttributes: {
|
|
1141
|
+
"data-component": string;
|
|
1142
|
+
};
|
|
1143
|
+
canonicalAttributes: ("data-component" | "data-destructive")[];
|
|
1144
|
+
allowedPurposes: never[];
|
|
1145
|
+
notes: string;
|
|
1146
|
+
};
|
|
1147
|
+
breadcrumb: {
|
|
1148
|
+
family: "breadcrumb";
|
|
1149
|
+
defaultLayer: "atom";
|
|
1150
|
+
baseAttributes: {
|
|
1151
|
+
"data-component": string;
|
|
1152
|
+
};
|
|
1153
|
+
canonicalAttributes: "data-component"[];
|
|
1154
|
+
allowedPurposes: never[];
|
|
1155
|
+
notes: string;
|
|
1156
|
+
};
|
|
992
1157
|
};
|
|
993
1158
|
|
|
994
1159
|
declare const buttonPurposeSemantics: {
|
|
@@ -1289,6 +1454,48 @@ declare const toastPurposeSemantics: {
|
|
|
1289
1454
|
supportedFrameworks: readonly ["react", "vue"];
|
|
1290
1455
|
};
|
|
1291
1456
|
};
|
|
1457
|
+
declare const bannerPurposeSemantics: {
|
|
1458
|
+
infoBanner: {
|
|
1459
|
+
purpose: "info-banner";
|
|
1460
|
+
family: "banner";
|
|
1461
|
+
layer: "purpose";
|
|
1462
|
+
attributes: {
|
|
1463
|
+
"data-purpose": string;
|
|
1464
|
+
"data-intent": string;
|
|
1465
|
+
};
|
|
1466
|
+
supportedFrameworks: readonly ["react", "vue"];
|
|
1467
|
+
};
|
|
1468
|
+
successBanner: {
|
|
1469
|
+
purpose: "success-banner";
|
|
1470
|
+
family: "banner";
|
|
1471
|
+
layer: "purpose";
|
|
1472
|
+
attributes: {
|
|
1473
|
+
"data-purpose": string;
|
|
1474
|
+
"data-intent": string;
|
|
1475
|
+
};
|
|
1476
|
+
supportedFrameworks: readonly ["react", "vue"];
|
|
1477
|
+
};
|
|
1478
|
+
warningBanner: {
|
|
1479
|
+
purpose: "warning-banner";
|
|
1480
|
+
family: "banner";
|
|
1481
|
+
layer: "purpose";
|
|
1482
|
+
attributes: {
|
|
1483
|
+
"data-purpose": string;
|
|
1484
|
+
"data-intent": string;
|
|
1485
|
+
};
|
|
1486
|
+
supportedFrameworks: readonly ["react", "vue"];
|
|
1487
|
+
};
|
|
1488
|
+
errorBanner: {
|
|
1489
|
+
purpose: "error-banner";
|
|
1490
|
+
family: "banner";
|
|
1491
|
+
layer: "purpose";
|
|
1492
|
+
attributes: {
|
|
1493
|
+
"data-purpose": string;
|
|
1494
|
+
"data-intent": string;
|
|
1495
|
+
};
|
|
1496
|
+
supportedFrameworks: readonly ["react", "vue"];
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1292
1499
|
declare const dialogPurposeSemantics: {
|
|
1293
1500
|
confirmDialog: {
|
|
1294
1501
|
purpose: "confirm-dialog";
|
|
@@ -1356,6 +1563,46 @@ declare const purposeSemanticsRegistry: {
|
|
|
1356
1563
|
};
|
|
1357
1564
|
supportedFrameworks: readonly ["react", "vue"];
|
|
1358
1565
|
};
|
|
1566
|
+
infoBanner: {
|
|
1567
|
+
purpose: "info-banner";
|
|
1568
|
+
family: "banner";
|
|
1569
|
+
layer: "purpose";
|
|
1570
|
+
attributes: {
|
|
1571
|
+
"data-purpose": string;
|
|
1572
|
+
"data-intent": string;
|
|
1573
|
+
};
|
|
1574
|
+
supportedFrameworks: readonly ["react", "vue"];
|
|
1575
|
+
};
|
|
1576
|
+
successBanner: {
|
|
1577
|
+
purpose: "success-banner";
|
|
1578
|
+
family: "banner";
|
|
1579
|
+
layer: "purpose";
|
|
1580
|
+
attributes: {
|
|
1581
|
+
"data-purpose": string;
|
|
1582
|
+
"data-intent": string;
|
|
1583
|
+
};
|
|
1584
|
+
supportedFrameworks: readonly ["react", "vue"];
|
|
1585
|
+
};
|
|
1586
|
+
warningBanner: {
|
|
1587
|
+
purpose: "warning-banner";
|
|
1588
|
+
family: "banner";
|
|
1589
|
+
layer: "purpose";
|
|
1590
|
+
attributes: {
|
|
1591
|
+
"data-purpose": string;
|
|
1592
|
+
"data-intent": string;
|
|
1593
|
+
};
|
|
1594
|
+
supportedFrameworks: readonly ["react", "vue"];
|
|
1595
|
+
};
|
|
1596
|
+
errorBanner: {
|
|
1597
|
+
purpose: "error-banner";
|
|
1598
|
+
family: "banner";
|
|
1599
|
+
layer: "purpose";
|
|
1600
|
+
attributes: {
|
|
1601
|
+
"data-purpose": string;
|
|
1602
|
+
"data-intent": string;
|
|
1603
|
+
};
|
|
1604
|
+
supportedFrameworks: readonly ["react", "vue"];
|
|
1605
|
+
};
|
|
1359
1606
|
successToast: {
|
|
1360
1607
|
purpose: "success-toast";
|
|
1361
1608
|
family: "toast";
|
|
@@ -3470,29 +3717,46 @@ declare const storybookA11yPolicy: {
|
|
|
3470
3717
|
};
|
|
3471
3718
|
};
|
|
3472
3719
|
};
|
|
3473
|
-
declare const storybookIconNames: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
3474
|
-
declare const storybookOptionalIconNames: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
3720
|
+
declare const storybookIconNames: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut")[];
|
|
3721
|
+
declare const storybookOptionalIconNames: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut" | undefined)[];
|
|
3475
3722
|
declare const storybookButtonIconArgTypes: {
|
|
3476
3723
|
readonly iconLeft: {
|
|
3477
3724
|
readonly control: "select";
|
|
3478
|
-
readonly options: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
3725
|
+
readonly options: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut" | undefined)[];
|
|
3479
3726
|
};
|
|
3480
3727
|
readonly iconRight: {
|
|
3481
3728
|
readonly control: "select";
|
|
3482
|
-
readonly options: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
3729
|
+
readonly options: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut" | undefined)[];
|
|
3483
3730
|
};
|
|
3484
3731
|
readonly disabled: {
|
|
3485
3732
|
readonly control: "boolean";
|
|
3486
3733
|
};
|
|
3487
3734
|
};
|
|
3488
3735
|
declare const storybookButtonGeneralArgTypes: {
|
|
3736
|
+
readonly variant: {
|
|
3737
|
+
readonly control: "select";
|
|
3738
|
+
readonly options: readonly ["primary", "secondary", "neutral", "text", "success", "danger"];
|
|
3739
|
+
};
|
|
3489
3740
|
readonly iconLeft: {
|
|
3490
3741
|
readonly control: "select";
|
|
3491
|
-
readonly options: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
3742
|
+
readonly options: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut" | undefined)[];
|
|
3492
3743
|
};
|
|
3493
3744
|
readonly iconRight: {
|
|
3494
3745
|
readonly control: "select";
|
|
3495
|
-
readonly options: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
3746
|
+
readonly options: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut" | undefined)[];
|
|
3747
|
+
};
|
|
3748
|
+
readonly disabled: {
|
|
3749
|
+
readonly control: "boolean";
|
|
3750
|
+
};
|
|
3751
|
+
};
|
|
3752
|
+
declare const storybookIconButtonArgTypes: {
|
|
3753
|
+
readonly icon: {
|
|
3754
|
+
readonly control: "select";
|
|
3755
|
+
readonly options: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut")[];
|
|
3756
|
+
};
|
|
3757
|
+
readonly variant: {
|
|
3758
|
+
readonly control: "select";
|
|
3759
|
+
readonly options: readonly ["primary", "secondary", "neutral", "text", "success", "danger"];
|
|
3496
3760
|
};
|
|
3497
3761
|
readonly disabled: {
|
|
3498
3762
|
readonly control: "boolean";
|
|
@@ -3501,11 +3765,11 @@ declare const storybookButtonGeneralArgTypes: {
|
|
|
3501
3765
|
declare const storybookButtonPurposeArgTypes: {
|
|
3502
3766
|
readonly iconLeft: {
|
|
3503
3767
|
readonly control: "select";
|
|
3504
|
-
readonly options: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
3768
|
+
readonly options: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut" | undefined)[];
|
|
3505
3769
|
};
|
|
3506
3770
|
readonly iconRight: {
|
|
3507
3771
|
readonly control: "select";
|
|
3508
|
-
readonly options: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
3772
|
+
readonly options: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut" | undefined)[];
|
|
3509
3773
|
};
|
|
3510
3774
|
readonly disabled: {
|
|
3511
3775
|
readonly control: "boolean";
|
|
@@ -3602,6 +3866,60 @@ declare const storybookSkeletonArgTypes: {
|
|
|
3602
3866
|
readonly description: "Accessible label for standalone loading placeholder groups";
|
|
3603
3867
|
};
|
|
3604
3868
|
};
|
|
3869
|
+
declare const storybookProgressBarArgTypes: {
|
|
3870
|
+
readonly label: {
|
|
3871
|
+
readonly control: "text";
|
|
3872
|
+
};
|
|
3873
|
+
readonly value: {
|
|
3874
|
+
readonly control: {
|
|
3875
|
+
readonly type: "number";
|
|
3876
|
+
readonly min: -1000;
|
|
3877
|
+
readonly max: 1000;
|
|
3878
|
+
readonly step: 1;
|
|
3879
|
+
};
|
|
3880
|
+
};
|
|
3881
|
+
readonly min: {
|
|
3882
|
+
readonly control: {
|
|
3883
|
+
readonly type: "number";
|
|
3884
|
+
readonly min: -1000;
|
|
3885
|
+
readonly max: 1000;
|
|
3886
|
+
readonly step: 1;
|
|
3887
|
+
};
|
|
3888
|
+
};
|
|
3889
|
+
readonly max: {
|
|
3890
|
+
readonly control: {
|
|
3891
|
+
readonly type: "number";
|
|
3892
|
+
readonly min: -1000;
|
|
3893
|
+
readonly max: 1000;
|
|
3894
|
+
readonly step: 1;
|
|
3895
|
+
};
|
|
3896
|
+
};
|
|
3897
|
+
readonly size: {
|
|
3898
|
+
readonly control: "inline-radio";
|
|
3899
|
+
readonly options: readonly ["small", "default"];
|
|
3900
|
+
readonly description: "Figma track size: small is 4px, default is 8px";
|
|
3901
|
+
};
|
|
3902
|
+
readonly state: {
|
|
3903
|
+
readonly control: "select";
|
|
3904
|
+
readonly options: readonly ["default", "hover", "pressed", "focus"];
|
|
3905
|
+
readonly description: "Visual state for documentation and visual QA";
|
|
3906
|
+
};
|
|
3907
|
+
readonly disabled: {
|
|
3908
|
+
readonly control: "boolean";
|
|
3909
|
+
};
|
|
3910
|
+
readonly showLabel: {
|
|
3911
|
+
readonly control: "boolean";
|
|
3912
|
+
};
|
|
3913
|
+
readonly showPercentage: {
|
|
3914
|
+
readonly control: "boolean";
|
|
3915
|
+
};
|
|
3916
|
+
readonly valueLabel: {
|
|
3917
|
+
readonly control: "text";
|
|
3918
|
+
};
|
|
3919
|
+
readonly ariaLabel: {
|
|
3920
|
+
readonly control: "text";
|
|
3921
|
+
};
|
|
3922
|
+
};
|
|
3605
3923
|
declare const storybookStatTileArgTypes: {
|
|
3606
3924
|
readonly tone: {
|
|
3607
3925
|
readonly control: "select";
|
|
@@ -3661,8 +3979,8 @@ declare const storybookDatePickerArgTypes: {
|
|
|
3661
3979
|
declare const storybookSpacingArgTypes: {
|
|
3662
3980
|
readonly size: {
|
|
3663
3981
|
readonly control: "select";
|
|
3664
|
-
readonly options: readonly ["sp-0", "sp-2", "sp-4", "sp-8", "sp-16", "sp-24", "sp-32", "sp-40", "sp-48", "sp-56", "sp-64", "sp-72", "sp-80", "sp-88", "sp-96", "sp-104", "sp-112", "sp-120"];
|
|
3665
|
-
readonly description: "Size variant (sp-0=0 … sp-
|
|
3982
|
+
readonly options: readonly ["sp-0", "sp-2", "sp-4", "sp-8", "sp-12", "sp-16", "sp-24", "sp-32", "sp-40", "sp-48", "sp-56", "sp-64", "sp-72", "sp-80", "sp-88", "sp-96", "sp-104", "sp-112", "sp-120"];
|
|
3983
|
+
readonly description: "Size variant (sp-0=0 … sp-12=12 … sp-24=24 … sp-120=120px)";
|
|
3666
3984
|
};
|
|
3667
3985
|
readonly scale: {
|
|
3668
3986
|
readonly control: {
|
|
@@ -3789,7 +4107,7 @@ declare const storybookSliderArgTypes: {
|
|
|
3789
4107
|
};
|
|
3790
4108
|
declare const storybookDocsDescription: {
|
|
3791
4109
|
readonly linkButton: "LinkButton locks navigation semantics, renders as an anchor, and keeps the canonical text treatment. Use Button for intentional visual deviations.";
|
|
3792
|
-
readonly destructiveButton: "DestructiveButton locks destructive semantics, uses the canonical
|
|
4110
|
+
readonly destructiveButton: "DestructiveButton locks destructive semantics, uses the canonical danger treatment, and requires confirmation by default. Use Button for intentional exceptions.";
|
|
3793
4111
|
readonly submitButton: "SubmitButton locks form-submit semantics, always renders as a button, and keeps the canonical primary treatment.";
|
|
3794
4112
|
readonly saveButton: "SaveButton locks save semantics and the canonical primary treatment. Use Button if you need a different visual hierarchy.";
|
|
3795
4113
|
readonly confirmButton: "ConfirmButton locks affirmative confirmation semantics, always renders as a button, and keeps the canonical success treatment.";
|
|
@@ -4090,7 +4408,7 @@ type IconName = (typeof IconName)[keyof typeof IconName];
|
|
|
4090
4408
|
/**
|
|
4091
4409
|
* Runtime list of all icon names (useful for docs, search, etc.)
|
|
4092
4410
|
*/
|
|
4093
|
-
declare const iconNamesList: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
4411
|
+
declare const iconNamesList: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut")[];
|
|
4094
4412
|
|
|
4095
4413
|
type IconSize = "xs" | "sm" | "md" | "lg";
|
|
4096
4414
|
type IconStrokeWidth = "xs" | "sm" | "md" | "lg";
|
|
@@ -4098,7 +4416,7 @@ type IconColor = "currentColor" | "primary" | "secondary" | "muted";
|
|
|
4098
4416
|
/**
|
|
4099
4417
|
* @deprecated Use `iconNamesList` instead
|
|
4100
4418
|
*/
|
|
4101
|
-
declare const iconNames: ("info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "
|
|
4419
|
+
declare const iconNames: ("tablet" | "info" | "search" | "repeat" | "bold" | "link" | "save" | "edit" | "upload" | "download" | "copy" | "delete" | "code" | "airplay" | "alertCircle" | "alertOctagon" | "alertTriangle" | "alignCenter" | "alignJustify" | "alignLeft" | "alignRight" | "arrowDown" | "arrowDownCircle" | "arrowDownLeft" | "arrowDownRight" | "arrowIn" | "arrowInCircle" | "arrowInSquare" | "arrowLeft" | "arrowLeftCircle" | "arrowOut" | "arrowOutCircle" | "arrowOutSquare" | "arrowRight" | "arrowRightCircle" | "arrowUp" | "arrowUpCircle" | "arrowUpLeft" | "arrowUpRight" | "atSign" | "barChart" | "barChart2" | "barChart3" | "barChart4" | "bell" | "bluetooth" | "bookmark" | "calendar" | "camera" | "cast" | "check" | "checkCircle" | "checkSquare" | "chevronDown" | "chevronLeft" | "chevronRight" | "chevronUp" | "chevronsDown" | "chevronsLeft" | "chevronsRight" | "chevronsUp" | "circle" | "clipboard" | "clock" | "command" | "compass" | "cornerDownLeft" | "cornerDownRight" | "cornerLeftDown" | "cornerLeftUp" | "cornerRightDown" | "cornerRightUp" | "cornerUpLeft" | "cornerUpRight" | "cpu" | "creditCard" | "database" | "disc" | "dollarSign" | "downloadCloud" | "edit2" | "edit3" | "expand" | "externalLink" | "eye" | "eyeOff" | "facebook" | "fastForward" | "file" | "fileMinus" | "fileMinus2" | "filePlus" | "filePlus2" | "fileText" | "fileX" | "fileX2" | "film" | "flag" | "folder" | "folderMinus" | "folderMinus2" | "folderPlus" | "folderPlus2" | "folderX" | "folderX2" | "grid" | "hardDrive" | "hash" | "headphones" | "heart" | "helpCircle" | "hexagon" | "home" | "home2" | "image" | "inbox" | "italic" | "layout" | "layout2" | "layout3" | "layout4" | "layout5" | "layout6" | "lineChart" | "lineChart2" | "list" | "loader" | "lock" | "mail" | "mapMarker1" | "mapMarker2" | "mapMarker3" | "maximize" | "maximize2" | "menu" | "messageCircle" | "messageSquare" | "mic" | "minimize" | "minimize3" | "minus" | "minusCircle" | "minusSquare" | "monitor" | "moon" | "moreHorizontal" | "moreVertical" | "move" | "music" | "octagon" | "paperclip" | "pause" | "pauseCircle" | "percent" | "phone" | "pieChart" | "pieChart2" | "pieChart3" | "pieChart4" | "pieChart5" | "play" | "playCircle" | "plus" | "plusCircle" | "plusSquare" | "power" | "printer" | "radio" | "refreshCcw" | "refreshCw" | "rewind" | "rotateLeft" | "rotateRight" | "rss" | "scissors" | "server" | "settings" | "share" | "shoppingBag" | "shoppingCart" | "shuffle" | "skipBack" | "skipForward" | "slash" | "sliders" | "smartphone" | "speaker" | "square" | "star" | "stopCircle" | "strikethrough" | "sun" | "table" | "table2" | "tag" | "thumbsDown" | "thumbsUp" | "trash" | "trendingDown" | "trendingUp" | "triangle" | "tv" | "twitter" | "type" | "underline" | "unlock" | "uploadCloud" | "user" | "userCheck" | "userCircle" | "userMinus" | "userPlus" | "userX" | "users" | "video" | "videoOff" | "volume" | "volume1" | "volume2" | "volumeX" | "watch" | "wifi" | "x" | "xCircle" | "xSquare" | "zoomIn" | "zoomOut")[];
|
|
4102
4420
|
type IconOptions = {
|
|
4103
4421
|
name: IconName;
|
|
4104
4422
|
size?: IconSize;
|
|
@@ -4157,6 +4475,7 @@ interface AvatarOptions {
|
|
|
4157
4475
|
iconName?: IconName;
|
|
4158
4476
|
decorative?: boolean;
|
|
4159
4477
|
ariaLabel?: string;
|
|
4478
|
+
label?: string;
|
|
4160
4479
|
}
|
|
4161
4480
|
interface AvatarA11yProps {
|
|
4162
4481
|
role?: "img";
|
|
@@ -4231,23 +4550,232 @@ interface DialogA11yProps {
|
|
|
4231
4550
|
role: "dialog";
|
|
4232
4551
|
ariaModal?: true;
|
|
4233
4552
|
ariaLabel?: string;
|
|
4234
|
-
ariaLabelledBy?: string;
|
|
4235
|
-
ariaDescribedBy?: string;
|
|
4553
|
+
ariaLabelledBy?: string;
|
|
4554
|
+
ariaDescribedBy?: string;
|
|
4555
|
+
}
|
|
4556
|
+
interface DialogRenderKit {
|
|
4557
|
+
tag: "section";
|
|
4558
|
+
className: string;
|
|
4559
|
+
vars: Record<string, string>;
|
|
4560
|
+
size: DialogSize;
|
|
4561
|
+
showFooter: boolean;
|
|
4562
|
+
showCloseButton: boolean;
|
|
4563
|
+
a11y: DialogA11yProps;
|
|
4564
|
+
dataAttributes: Record<string, string | boolean | undefined>;
|
|
4565
|
+
}
|
|
4566
|
+
|
|
4567
|
+
declare function createDialogRecipe(opts?: DialogOptions): DialogRenderKit;
|
|
4568
|
+
|
|
4569
|
+
declare function resolveDialogA11y(opts: DialogOptions): DialogA11yProps;
|
|
4570
|
+
|
|
4571
|
+
/**
|
|
4572
|
+
* Core types for Drawer.
|
|
4573
|
+
* Core owns the behavior contract; adapters own rendering and lifecycle.
|
|
4574
|
+
*/
|
|
4575
|
+
type DrawerSize = "small" | "medium" | "large";
|
|
4576
|
+
type DrawerPlacement = "left" | "right";
|
|
4577
|
+
interface DrawerOptions {
|
|
4578
|
+
size?: DrawerSize;
|
|
4579
|
+
placement?: DrawerPlacement;
|
|
4580
|
+
showFooter?: boolean;
|
|
4581
|
+
dismissible?: boolean;
|
|
4582
|
+
modal?: boolean;
|
|
4583
|
+
showScrim?: boolean;
|
|
4584
|
+
ariaLabel?: string;
|
|
4585
|
+
ariaLabelledBy?: string;
|
|
4586
|
+
ariaDescribedBy?: string;
|
|
4587
|
+
dataAttributes?: Record<string, string | boolean | undefined>;
|
|
4588
|
+
}
|
|
4589
|
+
interface DrawerA11yProps {
|
|
4590
|
+
role: "dialog";
|
|
4591
|
+
ariaModal?: true;
|
|
4592
|
+
ariaLabel?: string;
|
|
4593
|
+
ariaLabelledBy?: string;
|
|
4594
|
+
ariaDescribedBy?: string;
|
|
4595
|
+
}
|
|
4596
|
+
interface DrawerPanelRenderKit {
|
|
4597
|
+
tag: "div";
|
|
4598
|
+
className: string;
|
|
4599
|
+
vars: Record<string, string>;
|
|
4600
|
+
a11y: DrawerA11yProps;
|
|
4601
|
+
dataAttributes: Record<string, string | boolean | undefined>;
|
|
4602
|
+
}
|
|
4603
|
+
interface DrawerScrimRenderKit {
|
|
4604
|
+
tag: "div";
|
|
4605
|
+
className: string;
|
|
4606
|
+
vars: Record<string, string>;
|
|
4607
|
+
dataAttributes: Record<string, string | boolean | undefined>;
|
|
4608
|
+
}
|
|
4609
|
+
interface DrawerRenderKit {
|
|
4610
|
+
tag: "div";
|
|
4611
|
+
className: string;
|
|
4612
|
+
vars: Record<string, string>;
|
|
4613
|
+
size: DrawerSize;
|
|
4614
|
+
placement: DrawerPlacement;
|
|
4615
|
+
showFooter: boolean;
|
|
4616
|
+
showCloseButton: boolean;
|
|
4617
|
+
showScrim: boolean;
|
|
4618
|
+
panel: DrawerPanelRenderKit;
|
|
4619
|
+
scrim: DrawerScrimRenderKit;
|
|
4620
|
+
dataAttributes: Record<string, string | boolean | undefined>;
|
|
4621
|
+
}
|
|
4622
|
+
|
|
4623
|
+
declare function createDrawerRecipe(opts?: DrawerOptions): DrawerRenderKit;
|
|
4624
|
+
|
|
4625
|
+
declare function resolveDrawerA11y(opts: DrawerOptions): DrawerA11yProps;
|
|
4626
|
+
|
|
4627
|
+
type ContextMenuItemKind = "item" | "divider";
|
|
4628
|
+
interface ContextMenuActionItem {
|
|
4629
|
+
kind?: "item";
|
|
4630
|
+
value: string;
|
|
4631
|
+
label: string;
|
|
4632
|
+
icon?: IconName;
|
|
4633
|
+
disabled?: boolean;
|
|
4634
|
+
destructive?: boolean;
|
|
4635
|
+
dataAttributes?: Record<string, string | boolean | undefined>;
|
|
4636
|
+
}
|
|
4637
|
+
interface ContextMenuDividerItem {
|
|
4638
|
+
kind: "divider";
|
|
4639
|
+
id?: string;
|
|
4640
|
+
dataAttributes?: Record<string, string | boolean | undefined>;
|
|
4641
|
+
}
|
|
4642
|
+
type ContextMenuEntry = ContextMenuActionItem | ContextMenuDividerItem;
|
|
4643
|
+
interface ContextMenuOptions {
|
|
4644
|
+
items?: readonly ContextMenuEntry[];
|
|
4645
|
+
ariaLabel?: string;
|
|
4646
|
+
dataAttributes?: Record<string, string | boolean | undefined>;
|
|
4647
|
+
}
|
|
4648
|
+
interface ContextMenuA11yProps {
|
|
4649
|
+
role: "menu";
|
|
4650
|
+
ariaLabel: string;
|
|
4651
|
+
}
|
|
4652
|
+
interface ContextMenuItemA11yProps {
|
|
4653
|
+
role: "menuitem";
|
|
4654
|
+
type: "button";
|
|
4655
|
+
disabled?: boolean;
|
|
4656
|
+
ariaDisabled?: "true";
|
|
4657
|
+
}
|
|
4658
|
+
interface ContextMenuDividerA11yProps {
|
|
4659
|
+
role: "separator";
|
|
4660
|
+
ariaOrientation: "horizontal";
|
|
4661
|
+
}
|
|
4662
|
+
interface ContextMenuBaseRenderKit {
|
|
4663
|
+
key: string;
|
|
4664
|
+
className: string;
|
|
4665
|
+
vars: Record<string, string>;
|
|
4666
|
+
dataAttributes: Record<string, string | boolean | undefined>;
|
|
4667
|
+
}
|
|
4668
|
+
interface ContextMenuActionItemRenderKit extends ContextMenuBaseRenderKit {
|
|
4669
|
+
kind: "item";
|
|
4670
|
+
item: ContextMenuActionItem;
|
|
4671
|
+
a11y: ContextMenuItemA11yProps;
|
|
4672
|
+
label: string;
|
|
4673
|
+
value: string;
|
|
4674
|
+
icon?: IconName;
|
|
4675
|
+
}
|
|
4676
|
+
interface ContextMenuDividerRenderKit extends ContextMenuBaseRenderKit {
|
|
4677
|
+
kind: "divider";
|
|
4678
|
+
item: ContextMenuDividerItem;
|
|
4679
|
+
a11y: ContextMenuDividerA11yProps;
|
|
4680
|
+
}
|
|
4681
|
+
type ContextMenuEntryRenderKit = ContextMenuActionItemRenderKit | ContextMenuDividerRenderKit;
|
|
4682
|
+
interface ContextMenuRenderKit {
|
|
4683
|
+
tag: "div";
|
|
4684
|
+
className: string;
|
|
4685
|
+
vars: Record<string, string>;
|
|
4686
|
+
a11y: ContextMenuA11yProps;
|
|
4687
|
+
items: ContextMenuEntryRenderKit[];
|
|
4688
|
+
dataAttributes: Record<string, string | boolean | undefined>;
|
|
4689
|
+
}
|
|
4690
|
+
|
|
4691
|
+
declare function createContextMenuRecipe(options?: ContextMenuOptions): ContextMenuRenderKit;
|
|
4692
|
+
|
|
4693
|
+
declare function resolveContextMenuA11y(options?: ContextMenuOptions): ContextMenuA11yProps;
|
|
4694
|
+
declare function resolveContextMenuItemA11y(disabled?: boolean): ContextMenuItemA11yProps;
|
|
4695
|
+
declare function resolveContextMenuDividerA11y(): ContextMenuDividerA11yProps;
|
|
4696
|
+
|
|
4697
|
+
interface BreadcrumbItem {
|
|
4698
|
+
id?: string;
|
|
4699
|
+
value?: string;
|
|
4700
|
+
label: string;
|
|
4701
|
+
href?: string;
|
|
4702
|
+
current?: boolean;
|
|
4703
|
+
ariaLabel?: string;
|
|
4704
|
+
dataAttributes?: Record<string, string | boolean | undefined>;
|
|
4705
|
+
}
|
|
4706
|
+
interface BreadcrumbOptions {
|
|
4707
|
+
items?: readonly BreadcrumbItem[];
|
|
4708
|
+
ariaLabel?: string;
|
|
4709
|
+
showHome?: boolean;
|
|
4710
|
+
homeHref?: string;
|
|
4711
|
+
homeLabel?: string;
|
|
4712
|
+
dataAttributes?: Record<string, string | boolean | undefined>;
|
|
4713
|
+
}
|
|
4714
|
+
interface BreadcrumbA11yProps {
|
|
4715
|
+
ariaLabel: string;
|
|
4716
|
+
}
|
|
4717
|
+
interface BreadcrumbListA11yProps {
|
|
4718
|
+
role: "list";
|
|
4719
|
+
}
|
|
4720
|
+
interface BreadcrumbSeparatorA11yProps {
|
|
4721
|
+
ariaHidden: true;
|
|
4722
|
+
}
|
|
4723
|
+
interface BreadcrumbItemA11yProps {
|
|
4724
|
+
ariaCurrent?: "page";
|
|
4725
|
+
ariaLabel?: string;
|
|
4236
4726
|
}
|
|
4237
|
-
interface
|
|
4238
|
-
|
|
4727
|
+
interface BreadcrumbHomeA11yProps {
|
|
4728
|
+
ariaLabel: string;
|
|
4729
|
+
}
|
|
4730
|
+
interface BreadcrumbBaseItemRenderKit {
|
|
4731
|
+
key: string;
|
|
4732
|
+
label: string;
|
|
4733
|
+
value?: string;
|
|
4734
|
+
href?: string;
|
|
4735
|
+
current: boolean;
|
|
4239
4736
|
className: string;
|
|
4737
|
+
actionClassName: string;
|
|
4240
4738
|
vars: Record<string, string>;
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4739
|
+
dataAttributes: Record<string, string | boolean | undefined>;
|
|
4740
|
+
}
|
|
4741
|
+
interface BreadcrumbHomeRenderKit extends BreadcrumbBaseItemRenderKit {
|
|
4742
|
+
kind: "home";
|
|
4743
|
+
a11y: BreadcrumbHomeA11yProps;
|
|
4744
|
+
}
|
|
4745
|
+
interface BreadcrumbItemRenderKit extends BreadcrumbBaseItemRenderKit {
|
|
4746
|
+
kind: "item";
|
|
4747
|
+
item: BreadcrumbItem;
|
|
4748
|
+
a11y: BreadcrumbItemA11yProps;
|
|
4749
|
+
}
|
|
4750
|
+
type BreadcrumbEntryRenderKit = BreadcrumbHomeRenderKit | BreadcrumbItemRenderKit;
|
|
4751
|
+
interface BreadcrumbRenderKit {
|
|
4752
|
+
tag: "nav";
|
|
4753
|
+
className: string;
|
|
4754
|
+
vars: Record<string, string>;
|
|
4755
|
+
a11y: BreadcrumbA11yProps;
|
|
4756
|
+
list: {
|
|
4757
|
+
tag: "ol";
|
|
4758
|
+
className: string;
|
|
4759
|
+
vars: Record<string, string>;
|
|
4760
|
+
a11y: BreadcrumbListA11yProps;
|
|
4761
|
+
};
|
|
4762
|
+
separator: {
|
|
4763
|
+
tag: "span";
|
|
4764
|
+
className: string;
|
|
4765
|
+
vars: Record<string, string>;
|
|
4766
|
+
a11y: BreadcrumbSeparatorA11yProps;
|
|
4767
|
+
};
|
|
4768
|
+
items: BreadcrumbEntryRenderKit[];
|
|
4245
4769
|
dataAttributes: Record<string, string | boolean | undefined>;
|
|
4246
4770
|
}
|
|
4247
4771
|
|
|
4248
|
-
declare function
|
|
4772
|
+
declare function createBreadcrumbRecipe(options?: BreadcrumbOptions): BreadcrumbRenderKit;
|
|
4249
4773
|
|
|
4250
|
-
declare function
|
|
4774
|
+
declare function resolveBreadcrumbA11y(options?: BreadcrumbOptions): BreadcrumbA11yProps;
|
|
4775
|
+
declare function resolveBreadcrumbListA11y(): BreadcrumbListA11yProps;
|
|
4776
|
+
declare function resolveBreadcrumbSeparatorA11y(): BreadcrumbSeparatorA11yProps;
|
|
4777
|
+
declare function resolveBreadcrumbHomeA11y(homeLabel: string): BreadcrumbHomeA11yProps;
|
|
4778
|
+
declare function resolveBreadcrumbItemA11y(item: BreadcrumbItem, current: boolean): BreadcrumbItemA11yProps;
|
|
4251
4779
|
|
|
4252
4780
|
/**
|
|
4253
4781
|
* Core types for Toast.
|
|
@@ -4335,6 +4863,7 @@ interface BadgeOptions {
|
|
|
4335
4863
|
variant?: BadgeVariant;
|
|
4336
4864
|
/** For numeric/icon-only badges without visible text context */
|
|
4337
4865
|
ariaLabel?: string;
|
|
4866
|
+
label?: string;
|
|
4338
4867
|
}
|
|
4339
4868
|
interface BadgeA11yProps {
|
|
4340
4869
|
ariaLabel?: string;
|
|
@@ -4357,6 +4886,84 @@ declare function createBadgeRecipe(opts: BadgeOptions): BadgeRenderKit;
|
|
|
4357
4886
|
|
|
4358
4887
|
declare function resolveBadgeA11y(opts: BadgeOptions): BadgeA11yProps;
|
|
4359
4888
|
|
|
4889
|
+
/**
|
|
4890
|
+
* Core types for Banner.
|
|
4891
|
+
* Figma: .figma/marwes/components/banner.json
|
|
4892
|
+
*
|
|
4893
|
+
* A single token-driven component. Color → Banner states.
|
|
4894
|
+
* Toggle: Show icon / Show CTA / Show Close.
|
|
4895
|
+
*/
|
|
4896
|
+
/** Banner visual variant / intent. */
|
|
4897
|
+
declare const BannerVariant: {
|
|
4898
|
+
readonly neutral: "neutral";
|
|
4899
|
+
readonly info: "info";
|
|
4900
|
+
readonly success: "success";
|
|
4901
|
+
readonly warning: "warning";
|
|
4902
|
+
readonly error: "error";
|
|
4903
|
+
};
|
|
4904
|
+
type BannerVariant = (typeof BannerVariant)[keyof typeof BannerVariant];
|
|
4905
|
+
interface BannerOptions {
|
|
4906
|
+
/** Visual intent of the banner. Defaults to "neutral". */
|
|
4907
|
+
variant?: BannerVariant;
|
|
4908
|
+
/** Whether to show the leading icon. Defaults to true. */
|
|
4909
|
+
showIcon?: boolean;
|
|
4910
|
+
/** Whether to show the CTA action area. Defaults to false. */
|
|
4911
|
+
showAction?: boolean;
|
|
4912
|
+
/** Whether to show the dismiss/close button. Defaults to true. */
|
|
4913
|
+
dismissible?: boolean;
|
|
4914
|
+
/** Accessible label for the banner region. */
|
|
4915
|
+
ariaLabel?: string;
|
|
4916
|
+
}
|
|
4917
|
+
interface BannerA11yProps {
|
|
4918
|
+
role: "status" | "alert";
|
|
4919
|
+
ariaLabel?: string | undefined;
|
|
4920
|
+
ariaLive: "polite" | "assertive";
|
|
4921
|
+
}
|
|
4922
|
+
interface BannerRenderKit {
|
|
4923
|
+
root: {
|
|
4924
|
+
className: string;
|
|
4925
|
+
a11y: BannerA11yProps;
|
|
4926
|
+
dataAttributes: Record<string, string>;
|
|
4927
|
+
};
|
|
4928
|
+
content: {
|
|
4929
|
+
className: string;
|
|
4930
|
+
};
|
|
4931
|
+
icon: {
|
|
4932
|
+
className: string;
|
|
4933
|
+
visible: boolean;
|
|
4934
|
+
};
|
|
4935
|
+
message: {
|
|
4936
|
+
className: string;
|
|
4937
|
+
};
|
|
4938
|
+
action: {
|
|
4939
|
+
className: string;
|
|
4940
|
+
visible: boolean;
|
|
4941
|
+
};
|
|
4942
|
+
dismiss: {
|
|
4943
|
+
className: string;
|
|
4944
|
+
visible: boolean;
|
|
4945
|
+
ariaLabel: string;
|
|
4946
|
+
};
|
|
4947
|
+
}
|
|
4948
|
+
|
|
4949
|
+
/**
|
|
4950
|
+
* Banner core recipe.
|
|
4951
|
+
* Returns a render kit consumed by framework adapters.
|
|
4952
|
+
*
|
|
4953
|
+
* Figma reference:
|
|
4954
|
+
* - .figma/marwes/components/banner.json
|
|
4955
|
+
* - .figma/marwes/pages/-banner/-banner_1593-5094.json
|
|
4956
|
+
*/
|
|
4957
|
+
|
|
4958
|
+
declare function createBannerRecipe(opts: BannerOptions): BannerRenderKit;
|
|
4959
|
+
|
|
4960
|
+
/**
|
|
4961
|
+
* Resolve a11y props for Banner.
|
|
4962
|
+
* Error/warning variants use role="alert" with assertive live region;
|
|
4963
|
+
* info/success/neutral use role="status" with polite live region.
|
|
4964
|
+
*/
|
|
4965
|
+
declare function resolveBannerA11y(opts: BannerOptions): BannerA11yProps;
|
|
4966
|
+
|
|
4360
4967
|
declare const SpinnerVariants: {
|
|
4361
4968
|
readonly classic: "classic";
|
|
4362
4969
|
readonly ring: "ring";
|
|
@@ -4406,6 +5013,7 @@ interface SpinnerOptions {
|
|
|
4406
5013
|
* Accessible name when the spinner should announce loading state on its own.
|
|
4407
5014
|
*/
|
|
4408
5015
|
ariaLabel?: string;
|
|
5016
|
+
label?: string;
|
|
4409
5017
|
id?: string;
|
|
4410
5018
|
}
|
|
4411
5019
|
interface SpinnerA11yProps {
|
|
@@ -4459,6 +5067,7 @@ type ButtonSize = (typeof ButtonSize)[keyof typeof ButtonSize];
|
|
|
4459
5067
|
* @property neutral - Low-chroma outlined buttons for neutral utility actions.
|
|
4460
5068
|
* @property text - Minimal text-like buttons for tertiary or inline actions.
|
|
4461
5069
|
* @property success - Positive emphasis buttons for confirm-style actions.
|
|
5070
|
+
* @property danger - Destructive emphasis buttons for irreversible actions.
|
|
4462
5071
|
*
|
|
4463
5072
|
* @example
|
|
4464
5073
|
* ```tsx
|
|
@@ -4474,6 +5083,7 @@ declare const ButtonVariant: {
|
|
|
4474
5083
|
readonly neutral: "neutral";
|
|
4475
5084
|
readonly text: "text";
|
|
4476
5085
|
readonly success: "success";
|
|
5086
|
+
readonly danger: "danger";
|
|
4477
5087
|
};
|
|
4478
5088
|
type ButtonVariant = (typeof ButtonVariant)[keyof typeof ButtonVariant];
|
|
4479
5089
|
/**
|
|
@@ -4539,7 +5149,11 @@ type ButtonOptions = {
|
|
|
4539
5149
|
error?: boolean;
|
|
4540
5150
|
toggle?: boolean;
|
|
4541
5151
|
pressed?: boolean;
|
|
5152
|
+
/** Accessible name. Use `label` as a consumer-friendly alias for standalone/icon-only buttons. */
|
|
4542
5153
|
ariaLabel?: string;
|
|
5154
|
+
/** ID of an element whose text labels the button. Wins over `ariaLabel`/`label` if set. */
|
|
5155
|
+
ariaLabelledBy?: string;
|
|
5156
|
+
label?: string;
|
|
4543
5157
|
hasVisibleText?: boolean;
|
|
4544
5158
|
ariaExpanded?: boolean;
|
|
4545
5159
|
ariaControls?: string;
|
|
@@ -4553,6 +5167,7 @@ type ButtonOptions = {
|
|
|
4553
5167
|
};
|
|
4554
5168
|
type ButtonA11yProps = {
|
|
4555
5169
|
ariaLabel?: string;
|
|
5170
|
+
ariaLabelledBy?: string;
|
|
4556
5171
|
ariaBusy?: boolean;
|
|
4557
5172
|
ariaDisabled?: boolean;
|
|
4558
5173
|
ariaPressed?: boolean;
|
|
@@ -4593,6 +5208,7 @@ interface RadioOptions {
|
|
|
4593
5208
|
name?: string;
|
|
4594
5209
|
value?: string;
|
|
4595
5210
|
ariaLabel?: string;
|
|
5211
|
+
label?: string;
|
|
4596
5212
|
ariaLabelledBy?: string;
|
|
4597
5213
|
ariaDescribedBy?: string;
|
|
4598
5214
|
}
|
|
@@ -4643,7 +5259,8 @@ interface SwitchOptions {
|
|
|
4643
5259
|
disabled?: boolean;
|
|
4644
5260
|
/** Required when no visible label text is provided */
|
|
4645
5261
|
ariaLabel?: string;
|
|
4646
|
-
|
|
5262
|
+
label?: string;
|
|
5263
|
+
ariaLabelledBy?: string;
|
|
4647
5264
|
ariaDescribedBy?: string;
|
|
4648
5265
|
}
|
|
4649
5266
|
interface SwitchA11yProps {
|
|
@@ -4651,7 +5268,7 @@ interface SwitchA11yProps {
|
|
|
4651
5268
|
ariaChecked: boolean;
|
|
4652
5269
|
ariaDisabled?: true;
|
|
4653
5270
|
ariaLabel?: string;
|
|
4654
|
-
|
|
5271
|
+
ariaLabelledBy?: string;
|
|
4655
5272
|
ariaDescribedBy?: string;
|
|
4656
5273
|
}
|
|
4657
5274
|
interface SwitchRenderKit {
|
|
@@ -4686,6 +5303,7 @@ interface SliderOptions {
|
|
|
4686
5303
|
showTouchArea?: boolean;
|
|
4687
5304
|
orientation?: SliderOrientation;
|
|
4688
5305
|
ariaLabel?: string;
|
|
5306
|
+
label?: string;
|
|
4689
5307
|
ariaLabelledBy?: string;
|
|
4690
5308
|
ariaDescribedBy?: string;
|
|
4691
5309
|
ariaValueText?: string;
|
|
@@ -4760,6 +5378,7 @@ type CheckboxProps = {
|
|
|
4760
5378
|
value?: string;
|
|
4761
5379
|
/** Connects to external label/description elements. */
|
|
4762
5380
|
ariaLabel?: string;
|
|
5381
|
+
label?: string;
|
|
4763
5382
|
ariaLabelledBy?: string;
|
|
4764
5383
|
ariaDescribedBy?: string;
|
|
4765
5384
|
};
|
|
@@ -4917,6 +5536,89 @@ declare function resolveSkeletonA11y(options?: SkeletonOptions): SkeletonA11yPro
|
|
|
4917
5536
|
|
|
4918
5537
|
declare function createSkeletonRecipe(options?: SkeletonOptions): SkeletonRenderKit;
|
|
4919
5538
|
|
|
5539
|
+
declare const ProgressBarSize: {
|
|
5540
|
+
readonly small: "small";
|
|
5541
|
+
readonly default: "default";
|
|
5542
|
+
};
|
|
5543
|
+
type ProgressBarSize = (typeof ProgressBarSize)[keyof typeof ProgressBarSize];
|
|
5544
|
+
declare const progressBarSizes: ProgressBarSize[];
|
|
5545
|
+
declare const ProgressBarState: {
|
|
5546
|
+
readonly default: "default";
|
|
5547
|
+
readonly hover: "hover";
|
|
5548
|
+
readonly pressed: "pressed";
|
|
5549
|
+
readonly focus: "focus";
|
|
5550
|
+
};
|
|
5551
|
+
type ProgressBarState = (typeof ProgressBarState)[keyof typeof ProgressBarState];
|
|
5552
|
+
declare const progressBarStates: ProgressBarState[];
|
|
5553
|
+
interface ProgressBarOptions {
|
|
5554
|
+
id?: string;
|
|
5555
|
+
label?: string;
|
|
5556
|
+
value?: number;
|
|
5557
|
+
min?: number;
|
|
5558
|
+
max?: number;
|
|
5559
|
+
size?: ProgressBarSize;
|
|
5560
|
+
state?: ProgressBarState;
|
|
5561
|
+
disabled?: boolean;
|
|
5562
|
+
showLabel?: boolean;
|
|
5563
|
+
showPercentage?: boolean;
|
|
5564
|
+
valueLabel?: string;
|
|
5565
|
+
ariaLabel?: string;
|
|
5566
|
+
ariaLabelledBy?: string;
|
|
5567
|
+
ariaDescribedBy?: string;
|
|
5568
|
+
}
|
|
5569
|
+
interface ProgressBarA11yProps {
|
|
5570
|
+
id?: string;
|
|
5571
|
+
role: "progressbar";
|
|
5572
|
+
ariaValueMin: number;
|
|
5573
|
+
ariaValueMax: number;
|
|
5574
|
+
ariaValueNow: number;
|
|
5575
|
+
ariaValueText?: string;
|
|
5576
|
+
ariaLabel?: string;
|
|
5577
|
+
ariaLabelledBy?: string;
|
|
5578
|
+
ariaDescribedBy?: string;
|
|
5579
|
+
ariaDisabled?: true;
|
|
5580
|
+
}
|
|
5581
|
+
interface ProgressBarDataAttributes {
|
|
5582
|
+
"data-component": "progress-bar";
|
|
5583
|
+
"data-size": ProgressBarSize;
|
|
5584
|
+
"data-state": ProgressBarState;
|
|
5585
|
+
"data-disabled"?: "true";
|
|
5586
|
+
}
|
|
5587
|
+
interface ProgressBarRenderKit {
|
|
5588
|
+
tag: "div";
|
|
5589
|
+
className: string;
|
|
5590
|
+
trackClassName: string;
|
|
5591
|
+
fillClassName: string;
|
|
5592
|
+
labelClassName: string;
|
|
5593
|
+
percentageClassName: string;
|
|
5594
|
+
labelId?: string;
|
|
5595
|
+
vars: CssVars;
|
|
5596
|
+
a11y: ProgressBarA11yProps;
|
|
5597
|
+
dataAttributes: ProgressBarDataAttributes;
|
|
5598
|
+
label: string;
|
|
5599
|
+
percentageLabel: string;
|
|
5600
|
+
value: number;
|
|
5601
|
+
min: number;
|
|
5602
|
+
max: number;
|
|
5603
|
+
percentage: number;
|
|
5604
|
+
size: ProgressBarSize;
|
|
5605
|
+
state: ProgressBarState;
|
|
5606
|
+
showLabel: boolean;
|
|
5607
|
+
showPercentage: boolean;
|
|
5608
|
+
}
|
|
5609
|
+
|
|
5610
|
+
declare const DEFAULT_PROGRESS_BAR_MIN = 0;
|
|
5611
|
+
declare const DEFAULT_PROGRESS_BAR_MAX = 100;
|
|
5612
|
+
declare const DEFAULT_PROGRESS_BAR_LABEL = "Progress";
|
|
5613
|
+
declare function resolveProgressBarBounds(options: ProgressBarOptions): {
|
|
5614
|
+
min: number;
|
|
5615
|
+
max: number;
|
|
5616
|
+
};
|
|
5617
|
+
declare function clampProgressBarValue(value: number, min: number, max: number): number;
|
|
5618
|
+
declare function resolveProgressBarA11y(options: ProgressBarOptions, value: number): ProgressBarA11yProps;
|
|
5619
|
+
|
|
5620
|
+
declare function createProgressBarRecipe(options?: ProgressBarOptions): ProgressBarRenderKit;
|
|
5621
|
+
|
|
4920
5622
|
type StatTileTone = "neutral" | "brand" | "success" | "warning" | "danger";
|
|
4921
5623
|
type StatTileTrendDirection = "positive" | "negative";
|
|
4922
5624
|
type StatTileDataAttributes = Record<string, string>;
|
|
@@ -4972,9 +5674,21 @@ interface DatePickerOptions {
|
|
|
4972
5674
|
nextYearLabel?: string;
|
|
4973
5675
|
cancelLabel?: string;
|
|
4974
5676
|
applyLabel?: string;
|
|
5677
|
+
/** Accessible name for the calendar landmark. Alias for `calendarLabel`. */
|
|
5678
|
+
ariaLabel?: string;
|
|
5679
|
+
/** ID of an element whose text labels the calendar landmark. Wins over `ariaLabel`/`calendarLabel`. */
|
|
5680
|
+
ariaLabelledBy?: string;
|
|
5681
|
+
/** ID(s) of elements that describe the calendar (helper text, errors). */
|
|
5682
|
+
ariaDescribedBy?: string;
|
|
5683
|
+
/** @deprecated Use `ariaLabel` instead. */
|
|
4975
5684
|
calendarLabel?: string;
|
|
4976
5685
|
dataAttributes?: Record<string, string>;
|
|
4977
5686
|
}
|
|
5687
|
+
interface DatePickerA11yProps {
|
|
5688
|
+
ariaLabel?: string;
|
|
5689
|
+
ariaLabelledBy?: string;
|
|
5690
|
+
ariaDescribedBy?: string;
|
|
5691
|
+
}
|
|
4978
5692
|
interface DatePickerDataAttributes extends Record<string, string> {
|
|
4979
5693
|
"data-component": "date-picker";
|
|
4980
5694
|
"data-device": DatePickerDevice;
|
|
@@ -4990,6 +5704,7 @@ interface DatePickerDayRenderKit {
|
|
|
4990
5704
|
interface DatePickerRenderKit {
|
|
4991
5705
|
className: string;
|
|
4992
5706
|
dataAttributes: DatePickerDataAttributes;
|
|
5707
|
+
a11y: DatePickerA11yProps;
|
|
4993
5708
|
monthLabel: string;
|
|
4994
5709
|
weekdayLabels: readonly string[];
|
|
4995
5710
|
weeks: readonly (readonly DatePickerDay[])[];
|
|
@@ -8924,7 +9639,11 @@ type InputOptions = {
|
|
|
8924
9639
|
tone?: InputTone;
|
|
8925
9640
|
invalid?: boolean;
|
|
8926
9641
|
describedBy?: string;
|
|
9642
|
+
/** Accessible name for standalone inputs. Field components should use visible `label`. */
|
|
8927
9643
|
ariaLabel?: string;
|
|
9644
|
+
/** ID of an element whose text labels the input. Wins over `ariaLabel` if both are set. */
|
|
9645
|
+
ariaLabelledBy?: string;
|
|
9646
|
+
label?: string;
|
|
8928
9647
|
};
|
|
8929
9648
|
type InputA11yProps = {
|
|
8930
9649
|
id?: string;
|
|
@@ -8937,6 +9656,7 @@ type InputA11yProps = {
|
|
|
8937
9656
|
autoComplete?: string;
|
|
8938
9657
|
placeholder?: string;
|
|
8939
9658
|
ariaLabel?: string;
|
|
9659
|
+
ariaLabelledBy?: string;
|
|
8940
9660
|
ariaInvalid?: true;
|
|
8941
9661
|
ariaDescribedBy?: string;
|
|
8942
9662
|
};
|
|
@@ -8962,6 +9682,9 @@ type InputOtpOptions = {
|
|
|
8962
9682
|
invalid?: boolean;
|
|
8963
9683
|
describedBy?: string;
|
|
8964
9684
|
ariaLabel?: string;
|
|
9685
|
+
label?: string;
|
|
9686
|
+
/** ID of an element whose text labels the OTP input. Wins over `ariaLabel` and `label` if set. */
|
|
9687
|
+
ariaLabelledBy?: string;
|
|
8965
9688
|
};
|
|
8966
9689
|
type InputOtpA11yProps = {
|
|
8967
9690
|
id?: string;
|
|
@@ -8974,6 +9697,7 @@ type InputOtpA11yProps = {
|
|
|
8974
9697
|
maxLength: number;
|
|
8975
9698
|
pattern: string;
|
|
8976
9699
|
ariaLabel?: string;
|
|
9700
|
+
ariaLabelledBy?: string;
|
|
8977
9701
|
ariaInvalid?: true;
|
|
8978
9702
|
ariaDescribedBy?: string;
|
|
8979
9703
|
};
|
|
@@ -9016,7 +9740,11 @@ type SelectOptions = {
|
|
|
9016
9740
|
appearance?: SelectAppearance;
|
|
9017
9741
|
invalid?: boolean;
|
|
9018
9742
|
describedBy?: string;
|
|
9743
|
+
/** Accessible name for standalone selects. SelectField should use visible `label`. */
|
|
9019
9744
|
ariaLabel?: string;
|
|
9745
|
+
/** ID of an element whose text labels the select. Wins over `ariaLabel` if both are set. */
|
|
9746
|
+
ariaLabelledBy?: string;
|
|
9747
|
+
label?: string;
|
|
9020
9748
|
};
|
|
9021
9749
|
type SelectA11yProps = {
|
|
9022
9750
|
id?: string;
|
|
@@ -9024,6 +9752,7 @@ type SelectA11yProps = {
|
|
|
9024
9752
|
disabled?: true;
|
|
9025
9753
|
required?: true;
|
|
9026
9754
|
ariaLabel?: string;
|
|
9755
|
+
ariaLabelledBy?: string;
|
|
9027
9756
|
ariaInvalid?: true;
|
|
9028
9757
|
ariaDescribedBy?: string;
|
|
9029
9758
|
};
|
|
@@ -9055,7 +9784,11 @@ type TextareaOptions = {
|
|
|
9055
9784
|
tone?: InputTone;
|
|
9056
9785
|
invalid?: boolean;
|
|
9057
9786
|
describedBy?: string;
|
|
9787
|
+
/** Accessible name for standalone textareas. TextareaField should use visible `label`. */
|
|
9058
9788
|
ariaLabel?: string;
|
|
9789
|
+
/** ID of an element whose text labels the textarea. Wins over `ariaLabel` if both are set. */
|
|
9790
|
+
ariaLabelledBy?: string;
|
|
9791
|
+
label?: string;
|
|
9059
9792
|
};
|
|
9060
9793
|
type TextareaA11yProps = {
|
|
9061
9794
|
id?: string;
|
|
@@ -9069,6 +9802,7 @@ type TextareaA11yProps = {
|
|
|
9069
9802
|
rows?: number;
|
|
9070
9803
|
cols?: number;
|
|
9071
9804
|
ariaLabel?: string;
|
|
9805
|
+
ariaLabelledBy?: string;
|
|
9072
9806
|
ariaInvalid?: true;
|
|
9073
9807
|
ariaDescribedBy?: string;
|
|
9074
9808
|
};
|
|
@@ -9095,7 +9829,9 @@ type RichTextOptions = {
|
|
|
9095
9829
|
invalid?: boolean;
|
|
9096
9830
|
describedBy?: string;
|
|
9097
9831
|
labelledBy?: string;
|
|
9832
|
+
/** Accessible name for standalone editors. RichTextField should use visible `label`. */
|
|
9098
9833
|
ariaLabel?: string;
|
|
9834
|
+
label?: string;
|
|
9099
9835
|
allowedFormats?: RichTextFormat[];
|
|
9100
9836
|
};
|
|
9101
9837
|
type RichTextA11yProps = {
|
|
@@ -9134,8 +9870,27 @@ declare function resolveRichTextAllowedFormats(allowedFormats: RichTextOptions["
|
|
|
9134
9870
|
* - Supports semantic level (h1/h2/h3) and visual size override.
|
|
9135
9871
|
*/
|
|
9136
9872
|
|
|
9137
|
-
/**
|
|
9873
|
+
/**
|
|
9874
|
+
* Heading levels styled by the design system.
|
|
9875
|
+
*
|
|
9876
|
+
* Marwes officially ships visual styling for H1-H3 only. The `Heading`
|
|
9877
|
+
* recipe and the `H1`/`H2`/`H3` adapters are scoped to this ladder.
|
|
9878
|
+
*
|
|
9879
|
+
* For semantic-only H4-H6 (deep section nesting, accessibility outlines),
|
|
9880
|
+
* see {@link SemanticHeadingLevel} and the `Text` component's `headingLevel`
|
|
9881
|
+
* prop — `<Text headingLevel={4} variant="..." />` renders an `<h4>` while
|
|
9882
|
+
* letting the consumer pick the visual variant.
|
|
9883
|
+
*/
|
|
9138
9884
|
type HeadingLevel = 1 | 2 | 3;
|
|
9885
|
+
/**
|
|
9886
|
+
* Every HTML heading level the design system acknowledges semantically.
|
|
9887
|
+
*
|
|
9888
|
+
* Wider than {@link HeadingLevel} (which is the styled subset). Use this
|
|
9889
|
+
* when typing a consumer-side wrapper that needs to accept all six rungs
|
|
9890
|
+
* of the HTML heading ladder — e.g. a `MyH4` wrapper built around
|
|
9891
|
+
* `<Text headingLevel={4} />`.
|
|
9892
|
+
*/
|
|
9893
|
+
type SemanticHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
9139
9894
|
/** Public props the adapter can pass into core. */
|
|
9140
9895
|
type HeadingOptions = {
|
|
9141
9896
|
/**
|
|
@@ -9233,6 +9988,54 @@ type ParagraphRenderKit = {
|
|
|
9233
9988
|
|
|
9234
9989
|
declare function paragraphRecipe(opts: ParagraphOptions, theme: ResolvedTheme): ParagraphRenderKit;
|
|
9235
9990
|
|
|
9991
|
+
/**
|
|
9992
|
+
* Core types for non-heading text typography.
|
|
9993
|
+
* - Use Text for display/label/caption/overline/micro styles that should not create heading hierarchy.
|
|
9994
|
+
*/
|
|
9995
|
+
|
|
9996
|
+
type TextAs = "span" | "p" | "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
9997
|
+
interface TextOptions {
|
|
9998
|
+
/**
|
|
9999
|
+
* Visual typography variant.
|
|
10000
|
+
* @default "caption"
|
|
10001
|
+
*/
|
|
10002
|
+
variant?: TextVariant;
|
|
10003
|
+
/**
|
|
10004
|
+
* Rendered HTML element.
|
|
10005
|
+
* @default "span"
|
|
10006
|
+
*/
|
|
10007
|
+
as?: TextAs;
|
|
10008
|
+
/**
|
|
10009
|
+
* Render as a heading element (h1–h6) while keeping the visual variant.
|
|
10010
|
+
* Wins over `as` when both are set. Use this to give the page outline
|
|
10011
|
+
* a semantic level without coupling it to the visual size. The dedicated
|
|
10012
|
+
* `Heading` component is preferred when the visual size IS a heading size;
|
|
10013
|
+
* use `headingLevel` on `Text` when the visual variant is display/overline/etc.
|
|
10014
|
+
*/
|
|
10015
|
+
headingLevel?: SemanticHeadingLevel;
|
|
10016
|
+
/**
|
|
10017
|
+
* Optional ID.
|
|
10018
|
+
*/
|
|
10019
|
+
id?: string;
|
|
10020
|
+
}
|
|
10021
|
+
interface TextA11y {
|
|
10022
|
+
id?: string;
|
|
10023
|
+
}
|
|
10024
|
+
interface TextRenderKit {
|
|
10025
|
+
tag: TextAs;
|
|
10026
|
+
className: string;
|
|
10027
|
+
vars: CssVars;
|
|
10028
|
+
a11y: TextA11y;
|
|
10029
|
+
}
|
|
10030
|
+
|
|
10031
|
+
/**
|
|
10032
|
+
* Text recipe: theme + options → render kit.
|
|
10033
|
+
* - Supports non-heading typography variants from the Figma type scale.
|
|
10034
|
+
* - No spacing/margin (user-controlled).
|
|
10035
|
+
*/
|
|
10036
|
+
|
|
10037
|
+
declare function textRecipe(opts: TextOptions, theme: ResolvedTheme): TextRenderKit;
|
|
10038
|
+
|
|
9236
10039
|
/**
|
|
9237
10040
|
* Core types for Tab.
|
|
9238
10041
|
* - Core never renders; it returns a render kit consumed by adapters (React/Vue).
|
|
@@ -9243,6 +10046,7 @@ interface TabOptions {
|
|
|
9243
10046
|
disabled?: boolean;
|
|
9244
10047
|
/** For icon-only tabs that have no visible label */
|
|
9245
10048
|
ariaLabel?: string;
|
|
10049
|
+
label?: string;
|
|
9246
10050
|
/** id of the associated tabpanel this tab controls */
|
|
9247
10051
|
ariaControls?: string;
|
|
9248
10052
|
}
|
|
@@ -9294,7 +10098,7 @@ declare function moveTabSelection(items: TabGroupItemState[], currentValue: stri
|
|
|
9294
10098
|
/**
|
|
9295
10099
|
* Core types for Spacing component.
|
|
9296
10100
|
* - Pure layout primitive that inserts vertical space between elements.
|
|
9297
|
-
* -
|
|
10101
|
+
* - 19 sizes mapped to the --mw-spacing-* token scale.
|
|
9298
10102
|
* - Renders as an aria-hidden div.
|
|
9299
10103
|
*/
|
|
9300
10104
|
|
|
@@ -9317,15 +10121,17 @@ declare function moveTabSelection(items: TabGroupItemState[], currentValue: stri
|
|
|
9317
10121
|
* ```
|
|
9318
10122
|
*
|
|
9319
10123
|
* Pixel scale:
|
|
9320
|
-
* sp-0→0 | sp-2→2 | sp-4→4 | sp-8→8 | sp-
|
|
9321
|
-
* sp-
|
|
9322
|
-
* sp-
|
|
10124
|
+
* sp-0→0 | sp-2→2 | sp-4→4 | sp-8→8 | sp-12→12 | sp-16→16
|
|
10125
|
+
* sp-24→24 | sp-32→32 | sp-40→40 | sp-48→48 | sp-56→56
|
|
10126
|
+
* sp-64→64 | sp-72→72 | sp-80→80 | sp-88→88 | sp-96→96
|
|
10127
|
+
* sp-104→104 | sp-112→112 | sp-120→120
|
|
9323
10128
|
*/
|
|
9324
10129
|
declare const Spacings: {
|
|
9325
10130
|
readonly sp0: "sp-0";
|
|
9326
10131
|
readonly sp2: "sp-2";
|
|
9327
10132
|
readonly sp4: "sp-4";
|
|
9328
10133
|
readonly sp8: "sp-8";
|
|
10134
|
+
readonly sp12: "sp-12";
|
|
9329
10135
|
readonly sp16: "sp-16";
|
|
9330
10136
|
readonly sp24: "sp-24";
|
|
9331
10137
|
readonly sp32: "sp-32";
|
|
@@ -9344,6 +10150,7 @@ declare const Spacings: {
|
|
|
9344
10150
|
readonly "sp-2": "sp-2";
|
|
9345
10151
|
readonly "sp-4": "sp-4";
|
|
9346
10152
|
readonly "sp-8": "sp-8";
|
|
10153
|
+
readonly "sp-12": "sp-12";
|
|
9347
10154
|
readonly "sp-16": "sp-16";
|
|
9348
10155
|
readonly "sp-24": "sp-24";
|
|
9349
10156
|
readonly "sp-32": "sp-32";
|
|
@@ -9416,4 +10223,264 @@ type SpacingRenderKit = {
|
|
|
9416
10223
|
|
|
9417
10224
|
declare function createSpacingRecipe(opts?: SpacingOptions): SpacingRenderKit;
|
|
9418
10225
|
|
|
9419
|
-
|
|
10226
|
+
/**
|
|
10227
|
+
* Core types for SegmentedControl.
|
|
10228
|
+
* Uses radiogroup semantics — single-select between options without panels.
|
|
10229
|
+
*/
|
|
10230
|
+
interface SegmentedControlItemState {
|
|
10231
|
+
value: string;
|
|
10232
|
+
disabled?: boolean;
|
|
10233
|
+
}
|
|
10234
|
+
interface SegmentedControlOptions {
|
|
10235
|
+
/** Selected value */
|
|
10236
|
+
value?: string | undefined;
|
|
10237
|
+
/** Whether the control is disabled */
|
|
10238
|
+
disabled?: boolean | undefined;
|
|
10239
|
+
/** Accessible label for the group */
|
|
10240
|
+
ariaLabel?: string | undefined;
|
|
10241
|
+
/** ID of an element whose text labels the group. Wins over `ariaLabel` if both are set. */
|
|
10242
|
+
ariaLabelledBy?: string | undefined;
|
|
10243
|
+
/** ID(s) of elements that describe the group (helper text, errors). */
|
|
10244
|
+
ariaDescribedBy?: string | undefined;
|
|
10245
|
+
label?: string | undefined;
|
|
10246
|
+
/** Visual variant */
|
|
10247
|
+
variant?: SegmentedControlVariant | undefined;
|
|
10248
|
+
/** Size variant */
|
|
10249
|
+
size?: SegmentedControlSize | undefined;
|
|
10250
|
+
/** Stretch the control to fill its container. Defaults to inline width. */
|
|
10251
|
+
fullWidth?: boolean | undefined;
|
|
10252
|
+
}
|
|
10253
|
+
type SegmentedControlVariant = "default" | "inverse" | "pill";
|
|
10254
|
+
type SegmentedControlSize = "sm" | "md";
|
|
10255
|
+
interface SegmentedControlItemOptions {
|
|
10256
|
+
value: string;
|
|
10257
|
+
selected?: boolean;
|
|
10258
|
+
disabled?: boolean | undefined;
|
|
10259
|
+
ariaLabel?: string | undefined;
|
|
10260
|
+
label?: string | undefined;
|
|
10261
|
+
iconOnly?: boolean | undefined;
|
|
10262
|
+
}
|
|
10263
|
+
interface SegmentedControlA11yProps {
|
|
10264
|
+
role: "radiogroup";
|
|
10265
|
+
ariaLabel?: string;
|
|
10266
|
+
ariaLabelledBy?: string;
|
|
10267
|
+
ariaDescribedBy?: string;
|
|
10268
|
+
ariaDisabled?: true;
|
|
10269
|
+
}
|
|
10270
|
+
interface SegmentedControlItemA11yProps {
|
|
10271
|
+
role: "radio";
|
|
10272
|
+
ariaChecked: boolean;
|
|
10273
|
+
ariaDisabled?: true;
|
|
10274
|
+
ariaLabel?: string;
|
|
10275
|
+
tabIndex: 0 | -1;
|
|
10276
|
+
}
|
|
10277
|
+
interface SegmentedControlRenderKit {
|
|
10278
|
+
tag: "div";
|
|
10279
|
+
className: string;
|
|
10280
|
+
vars: Record<string, string>;
|
|
10281
|
+
a11y: SegmentedControlA11yProps;
|
|
10282
|
+
}
|
|
10283
|
+
interface SegmentedControlItemRenderKit {
|
|
10284
|
+
tag: "button";
|
|
10285
|
+
className: string;
|
|
10286
|
+
vars: Record<string, string>;
|
|
10287
|
+
a11y: SegmentedControlItemA11yProps;
|
|
10288
|
+
}
|
|
10289
|
+
|
|
10290
|
+
/**
|
|
10291
|
+
* SegmentedControl core recipe:
|
|
10292
|
+
* - returns render kits for the track and items
|
|
10293
|
+
* - stable classnames, modifier classes, strict a11y
|
|
10294
|
+
*/
|
|
10295
|
+
|
|
10296
|
+
declare function createSegmentedControlRecipe(opts: SegmentedControlOptions): SegmentedControlRenderKit;
|
|
10297
|
+
declare function createSegmentedControlItemRecipe(opts: SegmentedControlItemOptions): SegmentedControlItemRenderKit;
|
|
10298
|
+
|
|
10299
|
+
type SegmentedControlNavigationDirection = "next" | "previous" | "start" | "end";
|
|
10300
|
+
declare function resolveSegmentedControlA11y(opts: SegmentedControlOptions): SegmentedControlA11yProps;
|
|
10301
|
+
declare function resolveSegmentedControlItemA11y(opts: SegmentedControlItemOptions): SegmentedControlItemA11yProps;
|
|
10302
|
+
declare function resolveSegmentedControlValue(items: SegmentedControlItemState[], requestedValue?: string): string | undefined;
|
|
10303
|
+
declare function moveSegmentedControlSelection(items: SegmentedControlItemState[], currentValue: string | undefined, direction: SegmentedControlNavigationDirection): string | undefined;
|
|
10304
|
+
|
|
10305
|
+
type PaginationControlDirection = "first" | "previous" | "next" | "last";
|
|
10306
|
+
type PaginationControlDisplay = "auto" | "label" | "icon";
|
|
10307
|
+
type PaginationResolvedControlDisplay = Exclude<PaginationControlDisplay, "auto">;
|
|
10308
|
+
type PaginationItemType = "page" | "start-ellipsis" | "end-ellipsis";
|
|
10309
|
+
type PaginationItem = {
|
|
10310
|
+
type: "page";
|
|
10311
|
+
page: number;
|
|
10312
|
+
key: string;
|
|
10313
|
+
selected: boolean;
|
|
10314
|
+
} | {
|
|
10315
|
+
type: "start-ellipsis" | "end-ellipsis";
|
|
10316
|
+
key: string;
|
|
10317
|
+
};
|
|
10318
|
+
interface PaginationItemAriaLabelOptions {
|
|
10319
|
+
type: PaginationItemType | PaginationControlDirection;
|
|
10320
|
+
page: number | null;
|
|
10321
|
+
selected: boolean;
|
|
10322
|
+
}
|
|
10323
|
+
type PaginationGetItemAriaLabel = (item: PaginationItemAriaLabelOptions) => string;
|
|
10324
|
+
interface PaginationOptions {
|
|
10325
|
+
page?: number;
|
|
10326
|
+
pageCount: number;
|
|
10327
|
+
siblingCount?: number;
|
|
10328
|
+
boundaryCount?: number;
|
|
10329
|
+
maxVisibleItems?: number;
|
|
10330
|
+
controlDisplay?: PaginationControlDisplay;
|
|
10331
|
+
showPrevNext?: boolean;
|
|
10332
|
+
showFirstLast?: boolean;
|
|
10333
|
+
disabled?: boolean;
|
|
10334
|
+
ariaLabel?: string;
|
|
10335
|
+
/** ID of an element whose text labels the pagination nav. Wins over `ariaLabel` if both are set. */
|
|
10336
|
+
ariaLabelledBy?: string;
|
|
10337
|
+
/** ID(s) of elements that describe the pagination (helper text, errors). */
|
|
10338
|
+
ariaDescribedBy?: string;
|
|
10339
|
+
firstLabel?: string;
|
|
10340
|
+
previousLabel?: string;
|
|
10341
|
+
nextLabel?: string;
|
|
10342
|
+
lastLabel?: string;
|
|
10343
|
+
getItemAriaLabel?: PaginationGetItemAriaLabel;
|
|
10344
|
+
}
|
|
10345
|
+
interface PaginationAdaptiveMaxVisibleItemsOptions {
|
|
10346
|
+
containerWidth: number;
|
|
10347
|
+
controlWidth?: number;
|
|
10348
|
+
controlCount?: number;
|
|
10349
|
+
itemSize?: number;
|
|
10350
|
+
itemGap?: number;
|
|
10351
|
+
sectionGap?: number;
|
|
10352
|
+
}
|
|
10353
|
+
interface PaginationAdaptiveProfileOptions extends PaginationReservedItemCountOptions {
|
|
10354
|
+
containerWidth: number;
|
|
10355
|
+
labelControlWidth?: number;
|
|
10356
|
+
iconControlWidth?: number;
|
|
10357
|
+
controlCount?: number;
|
|
10358
|
+
itemSize?: number;
|
|
10359
|
+
itemGap?: number;
|
|
10360
|
+
sectionGap?: number;
|
|
10361
|
+
controlDisplay?: PaginationControlDisplay;
|
|
10362
|
+
}
|
|
10363
|
+
interface PaginationAdaptiveProfile {
|
|
10364
|
+
controlDisplay: PaginationResolvedControlDisplay;
|
|
10365
|
+
maxVisibleItems: number | undefined;
|
|
10366
|
+
reservedItemCount: number;
|
|
10367
|
+
}
|
|
10368
|
+
interface PaginationReservedItemCountOptions {
|
|
10369
|
+
pageCount: number;
|
|
10370
|
+
siblingCount?: number;
|
|
10371
|
+
boundaryCount?: number;
|
|
10372
|
+
maxVisibleItems?: number;
|
|
10373
|
+
}
|
|
10374
|
+
interface PaginationA11yProps {
|
|
10375
|
+
ariaLabel?: string;
|
|
10376
|
+
ariaLabelledBy?: string;
|
|
10377
|
+
ariaDescribedBy?: string;
|
|
10378
|
+
ariaDisabled?: true;
|
|
10379
|
+
}
|
|
10380
|
+
interface PaginationListA11yProps {
|
|
10381
|
+
role: "list";
|
|
10382
|
+
}
|
|
10383
|
+
interface PaginationControlOptions {
|
|
10384
|
+
direction: PaginationControlDirection;
|
|
10385
|
+
disabled?: boolean;
|
|
10386
|
+
label?: string;
|
|
10387
|
+
ariaLabel?: string;
|
|
10388
|
+
}
|
|
10389
|
+
interface PaginationControlA11yProps {
|
|
10390
|
+
ariaLabel: string;
|
|
10391
|
+
ariaDisabled?: true;
|
|
10392
|
+
}
|
|
10393
|
+
interface PaginationPageOptions {
|
|
10394
|
+
page: number;
|
|
10395
|
+
selected?: boolean;
|
|
10396
|
+
disabled?: boolean;
|
|
10397
|
+
ariaLabel?: string;
|
|
10398
|
+
}
|
|
10399
|
+
interface PaginationPageA11yProps {
|
|
10400
|
+
ariaLabel: string;
|
|
10401
|
+
ariaCurrent?: "page";
|
|
10402
|
+
ariaDisabled?: true;
|
|
10403
|
+
}
|
|
10404
|
+
interface PaginationEllipsisA11yProps {
|
|
10405
|
+
ariaHidden: true;
|
|
10406
|
+
}
|
|
10407
|
+
interface PaginationRenderKit {
|
|
10408
|
+
tag: "nav";
|
|
10409
|
+
className: string;
|
|
10410
|
+
vars: Record<string, string>;
|
|
10411
|
+
a11y: PaginationA11yProps;
|
|
10412
|
+
items: PaginationItem[];
|
|
10413
|
+
reservedItemCount: number;
|
|
10414
|
+
controlDisplay: PaginationResolvedControlDisplay;
|
|
10415
|
+
showPrevNext: boolean;
|
|
10416
|
+
showFirstLast: boolean;
|
|
10417
|
+
}
|
|
10418
|
+
interface PaginationListRenderKit {
|
|
10419
|
+
tag: "ul";
|
|
10420
|
+
className: string;
|
|
10421
|
+
vars: Record<string, string>;
|
|
10422
|
+
a11y: PaginationListA11yProps;
|
|
10423
|
+
}
|
|
10424
|
+
interface PaginationListItemRenderKit {
|
|
10425
|
+
tag: "li";
|
|
10426
|
+
className: string;
|
|
10427
|
+
vars: Record<string, string>;
|
|
10428
|
+
}
|
|
10429
|
+
interface PaginationControlRenderKit {
|
|
10430
|
+
tag: "button";
|
|
10431
|
+
className: string;
|
|
10432
|
+
vars: Record<string, string>;
|
|
10433
|
+
a11y: PaginationControlA11yProps;
|
|
10434
|
+
}
|
|
10435
|
+
interface PaginationPageRenderKit {
|
|
10436
|
+
tag: "button";
|
|
10437
|
+
className: string;
|
|
10438
|
+
vars: Record<string, string>;
|
|
10439
|
+
a11y: PaginationPageA11yProps;
|
|
10440
|
+
}
|
|
10441
|
+
interface PaginationEllipsisRenderKit {
|
|
10442
|
+
tag: "span";
|
|
10443
|
+
className: string;
|
|
10444
|
+
vars: Record<string, string>;
|
|
10445
|
+
a11y: PaginationEllipsisA11yProps;
|
|
10446
|
+
}
|
|
10447
|
+
|
|
10448
|
+
declare function clampPaginationPage(page: number | undefined, pageCount: number): number;
|
|
10449
|
+
declare function resolvePaginationAdaptiveMaxVisibleItems(opts: PaginationAdaptiveMaxVisibleItemsOptions): number | undefined;
|
|
10450
|
+
declare function resolvePaginationAdaptiveProfile(opts: PaginationAdaptiveProfileOptions): PaginationAdaptiveProfile;
|
|
10451
|
+
declare function resolvePaginationReservedItemCount(opts: PaginationReservedItemCountOptions): number;
|
|
10452
|
+
declare function createPaginationItems(opts: PaginationOptions): PaginationItem[];
|
|
10453
|
+
declare function createPaginationRecipe(opts: PaginationOptions): PaginationRenderKit;
|
|
10454
|
+
declare function createPaginationListRecipe(): PaginationListRenderKit;
|
|
10455
|
+
declare function createPaginationListItemRecipe(): PaginationListItemRenderKit;
|
|
10456
|
+
declare function createPaginationControlRecipe(opts: PaginationControlOptions): PaginationControlRenderKit;
|
|
10457
|
+
declare function createPaginationPageRecipe(opts: PaginationPageOptions): PaginationPageRenderKit;
|
|
10458
|
+
declare function createPaginationEllipsisRecipe(): PaginationEllipsisRenderKit;
|
|
10459
|
+
|
|
10460
|
+
declare function resolvePaginationA11y(opts: PaginationOptions): PaginationA11yProps;
|
|
10461
|
+
declare function resolvePaginationListA11y(): PaginationListA11yProps;
|
|
10462
|
+
declare function resolvePaginationControlA11y(opts: PaginationControlOptions): PaginationControlA11yProps;
|
|
10463
|
+
declare function resolvePaginationPageA11y(opts: PaginationPageOptions): PaginationPageA11yProps;
|
|
10464
|
+
declare function resolvePaginationEllipsisA11y(): PaginationEllipsisA11yProps;
|
|
10465
|
+
declare function resolvePaginationItemAriaLabel(getItemAriaLabel: PaginationGetItemAriaLabel, item: PaginationItemAriaLabelOptions): string;
|
|
10466
|
+
declare function resolvePaginationItemAriaLabel(getItemAriaLabel: undefined, item: PaginationItemAriaLabelOptions): undefined;
|
|
10467
|
+
|
|
10468
|
+
/**
|
|
10469
|
+
* Core types for SkipLink.
|
|
10470
|
+
* - Visually hidden anchor that becomes visible on focus.
|
|
10471
|
+
* - Pairs with a target element (typically <main>) via an href fragment.
|
|
10472
|
+
*/
|
|
10473
|
+
interface SkipLinkOptions {
|
|
10474
|
+
/** Anchor href, typically a fragment like "#main". */
|
|
10475
|
+
href: string;
|
|
10476
|
+
/** Optional class name to merge with the recipe class. */
|
|
10477
|
+
className?: string | undefined;
|
|
10478
|
+
}
|
|
10479
|
+
interface SkipLinkRenderKit {
|
|
10480
|
+
tag: "a";
|
|
10481
|
+
className: string;
|
|
10482
|
+
}
|
|
10483
|
+
|
|
10484
|
+
declare function createSkipLinkRecipe(opts: SkipLinkOptions): SkipLinkRenderKit;
|
|
10485
|
+
|
|
10486
|
+
export { type AccordionA11yProps, type AccordionOptions, type AccordionRenderKit, type AvatarA11yProps, type AvatarDataAttributes, type AvatarOptions, type AvatarRenderContent, type AvatarRenderKit, AvatarSize, AvatarType, type BadgeA11yProps, type BadgeOptions, type BadgeRenderKit, BadgeVariant, type BannerA11yProps, type BannerOptions, type BannerRenderKit, BannerVariant, type BreadcrumbA11yProps, type BreadcrumbEntryRenderKit, type BreadcrumbHomeA11yProps, type BreadcrumbHomeRenderKit, type BreadcrumbItem, type BreadcrumbItemA11yProps, type BreadcrumbItemRenderKit, type BreadcrumbListA11yProps, type BreadcrumbOptions, type BreadcrumbRenderKit, type BreadcrumbSeparatorA11yProps, type ButtonA11yProps, ButtonAction, type ButtonLoadingOptions, type ButtonOptions, type ButtonRenderKit, ButtonSize, ButtonVariant, type CardOptions, type CardRenderKit, type CheckboxA11y, type CheckboxProps, type CheckboxRenderKit, type CheckboxState, type ColorInput, type ColorRole, type ContextMenuA11yProps, type ContextMenuActionItem, type ContextMenuActionItemRenderKit, type ContextMenuDividerA11yProps, type ContextMenuDividerItem, type ContextMenuDividerRenderKit, type ContextMenuEntry, type ContextMenuEntryRenderKit, type ContextMenuItemA11yProps, type ContextMenuItemKind, type ContextMenuOptions, type ContextMenuRenderKit, type CssVars, type CurrencyCode, DEFAULT_PROGRESS_BAR_LABEL, DEFAULT_PROGRESS_BAR_MAX, DEFAULT_PROGRESS_BAR_MIN, DENSITY_SCALES, type DatePickerA11yProps, type DatePickerDataAttributes, type DatePickerDay, type DatePickerDayRenderKit, type DatePickerDayState, type DatePickerDevice, type DatePickerOptions, type DatePickerRenderKit, type Density, type DensityScale, type DialogA11yProps, type DialogOptions, type DialogRenderKit, type DialogSize, type DividerA11y, type DividerDataAttributes, type DividerOptions, type DividerOrientation, type DividerRenderKit, type DividerSize, type DrawerA11yProps, type DrawerOptions, type DrawerPanelRenderKit, type DrawerPlacement, type DrawerRenderKit, type DrawerScrimRenderKit, type DrawerSize, type FamilySemanticDefinition, type FieldComparisonRow, type FontLoadingConfig, type FontLoadingMode, type FontLoadingOptions, type HeadingA11y, type HeadingLevel, type HeadingOptions, type HeadingRenderKit, type HeadingSize, type IconA11yProps, type IconColor, IconName, IconName as IconNameType, type IconOptions, type IconPreset, type IconRenderKit, type IconSize, type IconSizeKey, type IconStrokeWidth, type IconStrokeWidthKey, type InputA11yProps, type InputOptions, type InputOtpA11yProps, type InputOtpOptions, type InputOtpRenderKit, type InputRenderKit, type InputTone, type LabeledCopy, type MarwesThemeScriptOptions, type MarwesThemeStyleOptions, type MwAvailableFont, type MwFontFallback, type MwGoogleFontFamily, type MwStyledTheme, type MwTheme, type MwThemeMedia, type MwThemeVarName, type MwThemeVarNames, type MwThemeVarReference, type MwThemeVars, type PaginationA11yProps, type PaginationAdaptiveMaxVisibleItemsOptions, type PaginationAdaptiveProfile, type PaginationAdaptiveProfileOptions, type PaginationControlA11yProps, type PaginationControlDirection, type PaginationControlDisplay, type PaginationControlOptions, type PaginationControlRenderKit, type PaginationEllipsisA11yProps, type PaginationEllipsisRenderKit, type PaginationGetItemAriaLabel, type PaginationItem, type PaginationItemAriaLabelOptions, type PaginationItemType, type PaginationListA11yProps, type PaginationListItemRenderKit, type PaginationListRenderKit, type PaginationOptions, type PaginationPageA11yProps, type PaginationPageOptions, type PaginationPageRenderKit, type PaginationRenderKit, type PaginationReservedItemCountOptions, type PaginationResolvedControlDisplay, type ParagraphA11y, type ParagraphOptions, type ParagraphRenderKit, type ParagraphSize, type PersonalityName, type ProgressBarA11yProps, type ProgressBarDataAttributes, type ProgressBarOptions, type ProgressBarRenderKit, ProgressBarSize, ProgressBarState, type PurposeSemanticDefinition, type RadioA11y, type RadioOptions, type RadioRenderKit, type ResolvedButtonLoading, type ResolvedTheme, type RichTextA11yProps, type RichTextFormat, type RichTextOptions, type RichTextRenderKit, type SecondaryColorRole, type SegmentedControlA11yProps, type SegmentedControlItemA11yProps, type SegmentedControlItemOptions, type SegmentedControlItemRenderKit, type SegmentedControlItemState, type SegmentedControlNavigationDirection, type SegmentedControlOptions, type SegmentedControlRenderKit, type SegmentedControlSize, type SegmentedControlVariant, type SelectA11yProps, type SelectAppearance, type SelectMode, type SelectOption, type SelectOptions, type SelectRenderKit, type SemanticAttributeDefinition, type SemanticAttributeName, type SemanticAttributeValue, type SemanticAttributes, type SemanticFamily, type SemanticHeadingLevel, type SemanticIntent, type SemanticLayer, type SemanticOrientation, type SemanticOutcome, type SemanticPurpose, type SkeletonA11yProps, SkeletonAnimation, type SkeletonDataAttributes, type SkeletonDimension, type SkeletonOptions, type SkeletonRenderKit, SkeletonVariant, type SkipLinkOptions, type SkipLinkRenderKit, type SliderA11yProps, type SliderDataAttributes, type SliderOptions, type SliderRenderKit, type SpacingA11y, type SpacingDataAttributes, type SpacingOptions, type SpacingRenderKit, type SpacingSize, Spacings, type SpinnerA11yProps, type SpinnerDataAttributes, type SpinnerOptions, type SpinnerRenderKit, type SpinnerSize, type SpinnerSvgDefinition, type SpinnerSvgElement, type SpinnerSvgNode, SpinnerVariant, SpinnerVariants, type StatTileA11yProps, type StatTileDataAttributes, type StatTileOptions, type StatTileRenderKit, type StatTileTone, type StatTileTrendDirection, type SvgElementType, type SvgNode, type SwitchA11yProps, type SwitchOptions, type SwitchRenderKit, SwitchSize, type SystemThemeMode, type TabA11yProps, type TabGroupA11yIds, type TabGroupItemState, type TabNavigationDirection, type TabOptions, type TabRenderKit, type TextA11y, type TextAs, type TextOptions, type TextRenderKit, type TextTransform, type TextTypographyStyle, TextVariant, type TextareaA11yProps, type TextareaOptions, type TextareaRenderKit, type TextareaResize, type Theme, type ThemeBreakpointName, type ThemeBreakpoints, type ThemeInput, type ThemeInputColor, ThemeMode, type ThemeModeAttribute, type ThemeModeCSSRulesOptions, type ThemeModeRootTarget, type ThemePreference, type ThemeVariableStrategy, type ToastA11yProps, type ToastContainerOptions, type ToastIntent, type ToastOptions, type ToastPlacement, type ToastRenderKit, type ToastVariant, type ToneName, type TooltipA11yProps, type TooltipDataAttributes, type TooltipOptions, type TooltipRenderKit, type TypographyStyle, accordionPurposeComponentReference, accordionWhyPurposeComponents, avatarPurposeSemantics, avatarPurposes, badgePurposeComponentReference, badgePurposeSemantics, badgePurposes, badgeWhyPurposeComponents, bannerPurposeSemantics, bannerPurposes, buildAccordionFieldA11yIds, buildCheckboxA11y, buildCheckboxFieldA11yIds, buildCheckboxGroupFieldA11yIds, buildCurrencyHelperText, buildGoogleFontsUrl, buildHeadingA11y, buildInputFieldA11yIds, buildRadioA11y, buildRadioGroupFieldA11yIds, buildRichTextFieldA11yIds, buildSliderFieldA11yIds, buildSwitchFieldA11yIds, buildTabGroupA11yIds, buttonActionSemanticPurposes, buttonPurposeSemantics, buttonPurposes, buttonVariantVisualStyles, buttonWhySemanticComponents, canonicalSemanticAttributeNames, canonicalSemanticAttributeRegistry, canonicalSemanticAttributes, cardPurposeComponentReference, cardWhyPurposeComponents, checkboxRecipe, clampPaginationPage, clampProgressBarValue, createAccordionRecipe, createAvatarRecipe, createBadgeRecipe, createBannerRecipe, createBreadcrumbRecipe, createButtonRecipe, createCardRecipe, createContextMenuRecipe, createDatePickerRecipe, createDialogRecipe, createDividerRecipe, createDrawerRecipe, createFamilySemanticAttributes, createFontStack, createIconRecipe, createInputOtpRecipe, createInputRecipe, createMarwesThemeScript, createMarwesThemeStyle, createMwTheme, createMwThemeMedia, createPaginationControlRecipe, createPaginationEllipsisRecipe, createPaginationItems, createPaginationListItemRecipe, createPaginationListRecipe, createPaginationPageRecipe, createPaginationRecipe, createProgressBarRecipe, createPurposeSemanticAttributes, createRichTextRecipe, createSegmentedControlItemRecipe, createSegmentedControlRecipe, createSelectRecipe, createSkeletonRecipe, createSkipLinkRecipe, createSliderRecipe, createSpacingRecipe, createSpinnerRecipe, createStatTileRecipe, createSwitchRecipe, createTabRecipe, createTextareaRecipe, createToastRecipe, createTooltipRecipe, currencyCodes, darkThemeDefaults, defaultThemeBreakpoints, densityToCSSVars, dialogPurposeComponentReference, dialogPurposeSemantics, dialogPurposes, dialogWhyPurposeComponents, emptySemanticAttributes, escapeRichTextHtml, extractFontFamilyName, extractUsedWeights, familySemanticsRegistry, fieldComparisonRows, fieldWhyPurposeComponents, filterUndefinedSemanticAttributes, getCurrencySymbol, headingRecipe, iconNames, iconNamesList, iconRegistry, iconSizeScale, iconStrokeWidthScale, isRichTextHtmlEmpty, isSystemFont, isThemeMode, isThemePreference, lightThemeDefaults, mergeIdRefs, mergeSemanticAttributes, moveSegmentedControlSelection, moveTabSelection, mwAvailableFonts, mwFontFallbacks, mwGoogleFontFamilies, mwStyledTheme, mwTheme, mwThemeVarNames, mwThemeVars, mwVar, nextThemeMode, normalizeRichTextHtml, paragraphRecipe, progressBarSizes, progressBarStates, purposeSemanticsRegistry, radioPurposeComponentReference, radioRecipe, radioWhyPurposeComponents, resolveAccordionA11y, resolveAvatarA11y, resolveBadgeA11y, resolveBannerA11y, resolveBreadcrumbA11y, resolveBreadcrumbHomeA11y, resolveBreadcrumbItemA11y, resolveBreadcrumbListA11y, resolveBreadcrumbSeparatorA11y, resolveButtonLoading, resolveContextMenuA11y, resolveContextMenuDividerA11y, resolveContextMenuItemA11y, resolveDatePickerDayLabel, resolveDialogA11y, resolveDrawerA11y, resolveIconA11y, resolveIconSize, resolveIconStrokeWidth, resolvePaginationA11y, resolvePaginationAdaptiveMaxVisibleItems, resolvePaginationAdaptiveProfile, resolvePaginationControlA11y, resolvePaginationEllipsisA11y, resolvePaginationItemAriaLabel, resolvePaginationListA11y, resolvePaginationPageA11y, resolvePaginationReservedItemCount, resolveProgressBarA11y, resolveProgressBarBounds, resolveRichTextAllowedFormats, resolveSegmentedControlA11y, resolveSegmentedControlItemA11y, resolveSegmentedControlValue, resolveSelectMode, resolveServerThemeMode, resolveSkeletonA11y, resolveSliderA11y, resolveSpinnerA11y, resolveSpinnerSize, resolveStatTileTrendLabel, resolveSwitchA11y, resolveTabA11y, resolveTabValue, resolveThemeInput, resolveThemePreference, resolveToastA11y, resolveTone, resolveTooltipA11y, richTextCommandByFormat, richTextFormattingReference, richTextWhyUseIt, sanitizeCurrencyValue, sanitizeInputOtpValue, semanticFamilies, semanticFrameworkSupport, semanticIntents, semanticLayers, semanticOrientations, semanticOutcomes, semanticPurposes, shouldLoadGoogleFont, skeletonAnimations, skeletonVariants, sliderPurposeComponentReference, sliderWhyPurposeComponents, spinnerSizeScale, spinnerSizes, spinnerVariants, storybookA11yPolicy, storybookButtonGeneralArgTypes, storybookButtonIconArgTypes, storybookButtonPurposeArgTypes, storybookCheckboxArgTypes, storybookDatePickerArgTypes, storybookDividerArgTypes, storybookDocsDescription, storybookIconButtonArgTypes, storybookIconGalleryArgTypes, storybookIconGalleryDefaults, storybookIconNames, storybookLayout, storybookOptionalIconNames, storybookProgressBarArgTypes, storybookRadioArgTypes, storybookSkeletonArgTypes, storybookSliderArgTypes, storybookSpacingArgTypes, storybookSpinnerArgTypes, storybookStatTileArgTypes, switchPurposeComponentReference, switchWhyPurposeComponents, tabPurposeComponentReference, tabWhyPurposeComponents, textRecipe, themeModesToCSSRules, themeToCSSRule, themeToCSSVars, toastPurposeComponentReference, toastPurposeSemantics, toastPurposes, toastWhyPurposeComponents, validateSemanticRegistry };
|