lldlab-ui 0.2.0 → 0.3.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 +50 -1
- package/dist/index.d.ts +247 -75
- package/dist/index.js +303 -126
- package/dist/index.js.map +1 -1
- package/dist/theme.css +19 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ type ThemeProps<E extends ElementType = 'div'> = PolyProps<E, {
|
|
|
35
35
|
/** Scopes the colour tokens: everything inside renders in `tone`. */
|
|
36
36
|
declare function Theme<E extends ElementType = 'div'>({ as, tone, ...rest }: ThemeProps<E>): react.JSX.Element;
|
|
37
37
|
|
|
38
|
-
type SurfaceTone = 'surface' | 'subtle' | 'elevated' | 'low' | 'inverse';
|
|
38
|
+
type SurfaceTone = 'surface' | 'subtle' | 'elevated' | 'low' | 'container' | 'inverse';
|
|
39
39
|
declare const RADIUS: {
|
|
40
40
|
readonly none: "";
|
|
41
41
|
readonly sm: "rounded";
|
|
@@ -47,7 +47,7 @@ declare const BORDER: {
|
|
|
47
47
|
readonly subtle: "border border-border-subtle";
|
|
48
48
|
readonly strong: "border border-border-strong";
|
|
49
49
|
};
|
|
50
|
-
declare const SHADOW: {
|
|
50
|
+
declare const SHADOW$1: {
|
|
51
51
|
readonly none: "";
|
|
52
52
|
readonly sm: "shadow-sm";
|
|
53
53
|
readonly md: "shadow-md";
|
|
@@ -57,7 +57,7 @@ type BoxOwnProps = {
|
|
|
57
57
|
radius?: keyof typeof RADIUS;
|
|
58
58
|
tone?: SurfaceTone;
|
|
59
59
|
border?: keyof typeof BORDER;
|
|
60
|
-
shadow?: keyof typeof SHADOW;
|
|
60
|
+
shadow?: keyof typeof SHADOW$1;
|
|
61
61
|
/** Greys out and disables the content (inert), e.g. a panel waiting on a runtime. */
|
|
62
62
|
dimmed?: boolean;
|
|
63
63
|
};
|
|
@@ -80,18 +80,24 @@ type GridProps<E extends ElementType = 'div'> = PolyProps<E, {
|
|
|
80
80
|
}>;
|
|
81
81
|
/** Single column below md unless `cols` sets `base` explicitly. */
|
|
82
82
|
declare function Grid<E extends ElementType = 'div'>({ as, cols, gap, ...rest }: GridProps<E>): react.JSX.Element;
|
|
83
|
+
type GridItemProps<E extends ElementType = 'div'> = PolyProps<E, {
|
|
84
|
+
span?: Responsive<Cols>;
|
|
85
|
+
}>;
|
|
86
|
+
/** A grid cell that spans several columns (e.g. a brand column over 2 of 5). */
|
|
87
|
+
declare function GridItem<E extends ElementType = 'div'>({ as, span, ...rest }: GridItemProps<E>): react.JSX.Element;
|
|
83
88
|
|
|
84
|
-
declare const SIZE$
|
|
89
|
+
declare const SIZE$e: {
|
|
85
90
|
readonly md: "max-w-3xl";
|
|
86
91
|
readonly lg: "max-w-5xl";
|
|
87
92
|
readonly xl: "max-w-7xl";
|
|
88
93
|
};
|
|
89
94
|
type ContainerProps<E extends ElementType = 'div'> = PolyProps<E, {
|
|
90
|
-
size?: keyof typeof SIZE$
|
|
95
|
+
size?: keyof typeof SIZE$e;
|
|
91
96
|
}>;
|
|
92
97
|
declare function Container<E extends ElementType = 'div'>({ as, size, ...rest }: ContainerProps<E>): react.JSX.Element;
|
|
93
98
|
|
|
94
99
|
declare const PADDING: {
|
|
100
|
+
readonly none: "";
|
|
95
101
|
readonly md: "py-section-md";
|
|
96
102
|
readonly lg: "py-section-lg";
|
|
97
103
|
readonly xl: "py-section-xl";
|
|
@@ -99,26 +105,31 @@ declare const PADDING: {
|
|
|
99
105
|
declare const PATTERN$1: {
|
|
100
106
|
readonly none: "";
|
|
101
107
|
readonly dots: "bg-pattern-dots";
|
|
108
|
+
readonly 'dots-brand': "bg-pattern-dots-brand";
|
|
102
109
|
readonly grid: "bg-pattern-grid";
|
|
103
110
|
};
|
|
104
111
|
type SectionProps<E extends ElementType = 'section'> = PolyProps<E, {
|
|
105
112
|
tone?: SurfaceTone;
|
|
113
|
+
/** Fluid section rhythm; ignored on a side when paddingTop/paddingBottom is set. */
|
|
106
114
|
padding?: keyof typeof PADDING;
|
|
115
|
+
/** Fixed spacing-scale padding, for mockup-exact rhythm (e.g. 40px top, 64px bottom). */
|
|
116
|
+
paddingTop?: Responsive<Space>;
|
|
117
|
+
paddingBottom?: Responsive<Space>;
|
|
107
118
|
pattern?: keyof typeof PATTERN$1;
|
|
108
119
|
}>;
|
|
109
|
-
declare function Section<E extends ElementType = 'section'>({ as, tone, padding, pattern, ...rest }: SectionProps<E>): react.JSX.Element;
|
|
120
|
+
declare function Section<E extends ElementType = 'section'>({ as, tone, padding, paddingTop, paddingBottom, pattern, ...rest }: SectionProps<E>): react.JSX.Element;
|
|
110
121
|
|
|
111
|
-
|
|
112
|
-
readonly '8/4': "xl:col-span-8";
|
|
113
|
-
readonly '1/1': "xl:col-span-6";
|
|
114
|
-
readonly '9/3': "xl:col-span-9";
|
|
115
|
-
};
|
|
122
|
+
type Ratio = '8/4' | '1/1' | '9/3' | '7/5' | '5/7';
|
|
116
123
|
declare const STICKY_ASIDE: {
|
|
117
124
|
readonly none: "xl:sticky xl:top-space-lg xl:self-start";
|
|
118
125
|
readonly appbar: "xl:sticky xl:top-[calc(var(--spacing-appbar)+1rem)] xl:self-start";
|
|
119
126
|
};
|
|
120
127
|
type SplitProps = NativeProps<'div', {
|
|
121
|
-
ratio?:
|
|
128
|
+
ratio?: Ratio;
|
|
129
|
+
/** Where the two columns stop stacking (default xl). */
|
|
130
|
+
breakpoint?: 'lg' | 'xl';
|
|
131
|
+
/** Render the side column as a plain div when it isn't complementary content (e.g. a hero stats card). */
|
|
132
|
+
asideAs?: 'aside' | 'div';
|
|
122
133
|
aside: ReactNode;
|
|
123
134
|
/** Leading rail (e.g. a table of contents) shown from lg; with it the layout is 3/7/2… columns and `ratio` is ignored. */
|
|
124
135
|
start?: ReactNode;
|
|
@@ -129,17 +140,19 @@ type SplitProps = NativeProps<'div', {
|
|
|
129
140
|
children: ReactNode;
|
|
130
141
|
}>;
|
|
131
142
|
/** Main + aside (stacked below xl); optional start rail from lg. */
|
|
132
|
-
declare function Split({ ratio, aside, start, sticky, stickyOffset, gap, children, ...rest }: SplitProps): react.JSX.Element;
|
|
143
|
+
declare function Split({ ratio, breakpoint, asideAs, aside, start, sticky, stickyOffset, gap, children, ...rest }: SplitProps): react.JSX.Element;
|
|
133
144
|
|
|
134
|
-
declare const SIZE$
|
|
145
|
+
declare const SIZE$d: {
|
|
146
|
+
readonly xs: "text-[14px]";
|
|
135
147
|
readonly sm: "text-[16px]";
|
|
148
|
+
readonly ms: "text-[18px]";
|
|
136
149
|
readonly md: "text-[20px]";
|
|
137
150
|
readonly lg: "text-[24px]";
|
|
138
151
|
readonly xl: "text-[32px]";
|
|
139
152
|
};
|
|
140
153
|
type IconProps = NativeProps<'span', {
|
|
141
154
|
name: string;
|
|
142
|
-
size?: keyof typeof SIZE$
|
|
155
|
+
size?: keyof typeof SIZE$d;
|
|
143
156
|
tone?: Tone | 'inherit';
|
|
144
157
|
filled?: boolean;
|
|
145
158
|
spin?: boolean;
|
|
@@ -149,19 +162,20 @@ type IconProps = NativeProps<'span', {
|
|
|
149
162
|
/** Material Symbols Outlined ligature icon. The app loads the font. */
|
|
150
163
|
declare function Icon({ name, size, tone, filled, spin, label, ...rest }: IconProps): react.JSX.Element;
|
|
151
164
|
|
|
152
|
-
declare const SIZE$
|
|
165
|
+
declare const SIZE$c: {
|
|
153
166
|
readonly sm: "size-1.5";
|
|
154
167
|
readonly md: "size-2";
|
|
168
|
+
readonly lg: "size-3";
|
|
155
169
|
};
|
|
156
170
|
type DotProps = NativeProps<'span', {
|
|
157
171
|
tone?: StatusTone;
|
|
158
|
-
size?: keyof typeof SIZE$
|
|
172
|
+
size?: keyof typeof SIZE$c;
|
|
159
173
|
pulse?: boolean;
|
|
160
174
|
children?: never;
|
|
161
175
|
}>;
|
|
162
176
|
declare function Dot({ tone, size, pulse, ...rest }: DotProps): react.JSX.Element;
|
|
163
177
|
|
|
164
|
-
declare const VARIANT$
|
|
178
|
+
declare const VARIANT$8: {
|
|
165
179
|
readonly 'body-lead': "font-body-lead text-body-lead";
|
|
166
180
|
readonly 'body-md': "font-body-md text-body-md";
|
|
167
181
|
readonly 'body-sm': "font-body-sm text-body-sm";
|
|
@@ -187,7 +201,7 @@ declare const ALIGN$1: {
|
|
|
187
201
|
readonly end: "text-end";
|
|
188
202
|
};
|
|
189
203
|
type TextOwnProps = {
|
|
190
|
-
variant?: keyof typeof VARIANT$
|
|
204
|
+
variant?: keyof typeof VARIANT$8;
|
|
191
205
|
tone?: Tone;
|
|
192
206
|
weight?: keyof typeof WEIGHT;
|
|
193
207
|
truncate?: boolean;
|
|
@@ -197,9 +211,11 @@ type TextOwnProps = {
|
|
|
197
211
|
measure?: boolean;
|
|
198
212
|
/** Defaults to true for `label`, false otherwise. */
|
|
199
213
|
uppercase?: boolean;
|
|
214
|
+
/** Decorative wavy underline (hero highlight). */
|
|
215
|
+
underline?: 'wavy';
|
|
200
216
|
};
|
|
201
217
|
type TextProps<E extends ElementType = 'p'> = PolyProps<E, TextOwnProps>;
|
|
202
|
-
declare function Text<E extends ElementType = 'p'>({ as, variant, tone, weight, truncate, clamp, align, measure, uppercase, ...rest }: TextProps<E>): react.JSX.Element;
|
|
218
|
+
declare function Text<E extends ElementType = 'p'>({ as, variant, tone, weight, truncate, clamp, align, measure, uppercase, underline, ...rest }: TextProps<E>): react.JSX.Element;
|
|
203
219
|
|
|
204
220
|
declare const TAG: {
|
|
205
221
|
readonly 1: "h1";
|
|
@@ -226,20 +242,27 @@ type HeadingProps = NativeProps<'h2', {
|
|
|
226
242
|
tone?: keyof typeof TONE$b;
|
|
227
243
|
truncate?: boolean;
|
|
228
244
|
align?: keyof typeof ALIGN;
|
|
245
|
+
/** Balanced line breaks (default true). */
|
|
246
|
+
balance?: boolean;
|
|
247
|
+
/** Override the size's line height (none: 1, for tight hero headlines). */
|
|
248
|
+
leading?: 'none';
|
|
229
249
|
}>;
|
|
230
|
-
declare function Heading({ level, size, tone, truncate, align, ...rest }: HeadingProps): react.JSX.Element;
|
|
250
|
+
declare function Heading({ level, size, tone, truncate, align, balance, leading, ...rest }: HeadingProps): react.JSX.Element;
|
|
231
251
|
|
|
232
|
-
declare const VARIANT$
|
|
233
|
-
readonly pill: "rounded-full
|
|
252
|
+
declare const VARIANT$7: {
|
|
253
|
+
readonly pill: "rounded-full bg-surface-elevated shadow-sm px-space-sm py-space-2xs";
|
|
254
|
+
readonly tinted: "rounded-full bg-surface-container px-space-sm py-space-2xs";
|
|
234
255
|
readonly plain: "";
|
|
235
256
|
};
|
|
236
257
|
type EyebrowProps = NativeProps<'span', {
|
|
237
258
|
tone?: StatusTone;
|
|
238
259
|
pulse?: boolean;
|
|
239
|
-
variant?: keyof typeof VARIANT$
|
|
260
|
+
variant?: keyof typeof VARIANT$7;
|
|
261
|
+
dot?: boolean;
|
|
240
262
|
children: ReactNode;
|
|
241
263
|
}>;
|
|
242
|
-
|
|
264
|
+
/** Mono kicker above a heading; the text takes the tone colour, as in the Stitch mockups. */
|
|
265
|
+
declare function Eyebrow({ tone, pulse, variant, dot, children, ...rest }: EyebrowProps): react.JSX.Element;
|
|
243
266
|
|
|
244
267
|
type CodeProps = NativeProps<'code', {
|
|
245
268
|
children: ReactNode;
|
|
@@ -266,30 +289,41 @@ type CodeBlockProps = NativeProps<'figure', {
|
|
|
266
289
|
lineNumbers?: boolean;
|
|
267
290
|
tone?: keyof typeof TONE$a;
|
|
268
291
|
children: ReactNode;
|
|
292
|
+
/** Code only: no caption bar, frame or padding (inside a pane that provides them). */
|
|
293
|
+
bare?: boolean;
|
|
269
294
|
}>;
|
|
270
295
|
/** Code block; scrolls inside itself so long lines never widen the page. */
|
|
271
|
-
declare function CodeBlock({ language, highlight, title, meta, actions, lineNumbers, tone, children, ...rest }: CodeBlockProps): react.JSX.Element;
|
|
296
|
+
declare function CodeBlock({ language, highlight, title, meta, actions, lineNumbers, tone, bare, children, ...rest }: CodeBlockProps): react.JSX.Element;
|
|
272
297
|
|
|
273
298
|
type MarkdownProps = NativeProps<'div', {
|
|
274
299
|
children: string;
|
|
275
300
|
}>;
|
|
276
301
|
declare function Markdown({ children, ...rest }: MarkdownProps): react.JSX.Element;
|
|
277
302
|
|
|
278
|
-
type BadgeTone = 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
|
|
279
|
-
declare const SIZE$
|
|
303
|
+
type BadgeTone = 'neutral' | 'subtle' | 'container' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
|
|
304
|
+
declare const SIZE$b: {
|
|
305
|
+
readonly xs: "px-space-xs py-space-2xs text-[10px]";
|
|
280
306
|
readonly sm: "px-space-xs py-space-2xs";
|
|
281
307
|
readonly md: "px-space-sm py-space-xs";
|
|
282
308
|
};
|
|
309
|
+
declare const SHAPE$3: {
|
|
310
|
+
readonly square: "rounded";
|
|
311
|
+
readonly pill: "rounded-full";
|
|
312
|
+
};
|
|
283
313
|
type BadgeProps = NativeProps<'span', {
|
|
284
314
|
tone?: BadgeTone;
|
|
285
315
|
uppercase?: boolean;
|
|
286
|
-
size?: keyof typeof SIZE$
|
|
316
|
+
size?: keyof typeof SIZE$b;
|
|
317
|
+
/** square: 2px corners; pill: fully rounded (nav counts, eyebrows). */
|
|
318
|
+
shape?: keyof typeof SHAPE$3;
|
|
319
|
+
/** Hairline border in the tone's own colour. */
|
|
320
|
+
outlined?: boolean;
|
|
287
321
|
icon?: string;
|
|
288
322
|
dot?: StatusTone;
|
|
289
323
|
pulse?: boolean;
|
|
290
324
|
children: ReactNode;
|
|
291
325
|
}>;
|
|
292
|
-
declare function Badge({ tone, uppercase, size, icon, dot, pulse, children, ...rest }: BadgeProps): react.JSX.Element;
|
|
326
|
+
declare function Badge({ tone, uppercase, size, shape, outlined, icon, dot, pulse, children, ...rest }: BadgeProps): react.JSX.Element;
|
|
293
327
|
|
|
294
328
|
declare const TONE$9: {
|
|
295
329
|
readonly neutral: "border-border-subtle text-on-surface";
|
|
@@ -309,12 +343,25 @@ type ChipProps = NativeProps<'span', {
|
|
|
309
343
|
}>;
|
|
310
344
|
declare function Chip({ tone, icon, dot, onRemove, children, ...rest }: ChipProps): react.JSX.Element;
|
|
311
345
|
|
|
346
|
+
declare const ICON_TONE: {
|
|
347
|
+
readonly muted: "text-on-surface-variant";
|
|
348
|
+
readonly brand: "text-brand-cobalt";
|
|
349
|
+
readonly success: "text-brand-emerald";
|
|
350
|
+
readonly warning: "text-brand-amber";
|
|
351
|
+
readonly danger: "text-brand-crimson";
|
|
352
|
+
};
|
|
353
|
+
declare const VARIANT$6: {
|
|
354
|
+
readonly plain: "gap-space-sm";
|
|
355
|
+
readonly tile: "gap-space-xs rounded-lg bg-surface-subtle px-space-md py-space-xs shadow-sm";
|
|
356
|
+
};
|
|
312
357
|
type StatProps = NativeProps<'div', {
|
|
313
358
|
icon: string;
|
|
314
359
|
label: ReactNode;
|
|
315
360
|
value: ReactNode;
|
|
361
|
+
variant?: keyof typeof VARIANT$6;
|
|
362
|
+
iconTone?: keyof typeof ICON_TONE;
|
|
316
363
|
}>;
|
|
317
|
-
declare function Stat({ icon, label, value, ...rest }: StatProps): react.JSX.Element;
|
|
364
|
+
declare function Stat({ icon, label, value, variant, iconTone, ...rest }: StatProps): react.JSX.Element;
|
|
318
365
|
|
|
319
366
|
declare const TONE$8: {
|
|
320
367
|
readonly brand: "bg-brand-cobalt";
|
|
@@ -322,7 +369,7 @@ declare const TONE$8: {
|
|
|
322
369
|
readonly warning: "bg-brand-amber";
|
|
323
370
|
readonly danger: "bg-brand-crimson";
|
|
324
371
|
};
|
|
325
|
-
declare const SIZE$
|
|
372
|
+
declare const SIZE$a: {
|
|
326
373
|
readonly sm: "h-1";
|
|
327
374
|
readonly md: "h-1.5";
|
|
328
375
|
};
|
|
@@ -335,7 +382,7 @@ type ProgressBarProps = NativeProps<'div', {
|
|
|
335
382
|
/** Replaces the computed percentage (e.g. "7 of 12"). */
|
|
336
383
|
valueLabel?: ReactNode;
|
|
337
384
|
caption?: ReactNode;
|
|
338
|
-
size?: keyof typeof SIZE$
|
|
385
|
+
size?: keyof typeof SIZE$a;
|
|
339
386
|
}>;
|
|
340
387
|
declare function ProgressBar({ value, max, tone, label, hideLabel, valueLabel, caption, size, ...rest }: ProgressBarProps): react.JSX.Element;
|
|
341
388
|
|
|
@@ -350,8 +397,11 @@ type SectionHeaderProps = NativeProps<'div', {
|
|
|
350
397
|
icon?: string;
|
|
351
398
|
accent?: StatusTone;
|
|
352
399
|
size?: 'sm' | 'md';
|
|
400
|
+
/** Rule under the header (default true). Without it the dot grows to 12px, as on catalog tier headers. */
|
|
401
|
+
divider?: boolean;
|
|
402
|
+
metaUppercase?: boolean;
|
|
353
403
|
}>;
|
|
354
|
-
declare function SectionHeader({ title, level, dot, tag, tagTone, meta, description, icon, accent, size, ...rest }: SectionHeaderProps): react.JSX.Element;
|
|
404
|
+
declare function SectionHeader({ title, level, dot, tag, tagTone, meta, description, icon, accent, size, divider, metaUppercase, ...rest }: SectionHeaderProps): react.JSX.Element;
|
|
355
405
|
|
|
356
406
|
declare const TONE$7: {
|
|
357
407
|
readonly danger: "bg-badge-advanced-bg text-badge-advanced-text";
|
|
@@ -359,7 +409,7 @@ declare const TONE$7: {
|
|
|
359
409
|
readonly success: "bg-badge-beginner-bg text-badge-beginner-text";
|
|
360
410
|
readonly warning: "bg-badge-amber-bg text-badge-amber-text";
|
|
361
411
|
};
|
|
362
|
-
declare const SIZE$
|
|
412
|
+
declare const SIZE$9: {
|
|
363
413
|
readonly sm: "gap-space-xs rounded-lg p-space-sm";
|
|
364
414
|
readonly md: "gap-space-sm rounded-xl p-space-md";
|
|
365
415
|
};
|
|
@@ -370,7 +420,7 @@ type CalloutProps = NativeProps<'div', {
|
|
|
370
420
|
/** false for static content (pros/cons): no status/alert role. */
|
|
371
421
|
live?: boolean;
|
|
372
422
|
icon?: string;
|
|
373
|
-
size?: keyof typeof SIZE$
|
|
423
|
+
size?: keyof typeof SIZE$9;
|
|
374
424
|
accent?: boolean;
|
|
375
425
|
children: ReactNode;
|
|
376
426
|
}>;
|
|
@@ -398,9 +448,9 @@ declare const STATUS: {
|
|
|
398
448
|
readonly label: "Pending";
|
|
399
449
|
};
|
|
400
450
|
};
|
|
401
|
-
declare const VARIANT$
|
|
402
|
-
readonly plain: "py-space-sm";
|
|
403
|
-
readonly boxed: "
|
|
451
|
+
declare const VARIANT$5: {
|
|
452
|
+
readonly plain: "items-start py-space-sm";
|
|
453
|
+
readonly boxed: "items-center rounded bg-surface-subtle p-space-sm";
|
|
404
454
|
};
|
|
405
455
|
type ResultRowProps = NativeProps<'div', {
|
|
406
456
|
status: keyof typeof STATUS;
|
|
@@ -408,7 +458,7 @@ type ResultRowProps = NativeProps<'div', {
|
|
|
408
458
|
detail?: ReactNode;
|
|
409
459
|
meta?: ReactNode;
|
|
410
460
|
badge?: ReactNode;
|
|
411
|
-
variant?: keyof typeof VARIANT$
|
|
461
|
+
variant?: keyof typeof VARIANT$5;
|
|
412
462
|
selected?: boolean;
|
|
413
463
|
titleMono?: boolean;
|
|
414
464
|
}>;
|
|
@@ -441,8 +491,10 @@ type EmptyStateProps = NativeProps<'div', {
|
|
|
441
491
|
/** Large mono numeral such as "404"; replaces the icon. */
|
|
442
492
|
code?: string;
|
|
443
493
|
tone?: keyof typeof TONE$6;
|
|
494
|
+
/** Heading level for the title (1 when the state is the whole page). */
|
|
495
|
+
headingLevel?: 1 | 2 | 3;
|
|
444
496
|
}>;
|
|
445
|
-
declare function EmptyState({ icon, title, description, action, media, code, tone, ...rest }: EmptyStateProps): react.JSX.Element;
|
|
497
|
+
declare function EmptyState({ icon, title, description, action, media, code, tone, headingLevel, ...rest }: EmptyStateProps): react.JSX.Element;
|
|
446
498
|
|
|
447
499
|
type CheckListProps = NativeProps<'ul', {
|
|
448
500
|
items: ReactNode[];
|
|
@@ -453,9 +505,24 @@ type CheckListProps = NativeProps<'ul', {
|
|
|
453
505
|
declare function CheckList({ items, icon, tone, ...rest }: CheckListProps): react.JSX.Element;
|
|
454
506
|
|
|
455
507
|
declare const TONE$5: {
|
|
456
|
-
readonly default: "bg-surface-elevated
|
|
457
|
-
readonly subtle: "bg-surface-subtle
|
|
458
|
-
readonly inverse: "bg-brand-obsidian
|
|
508
|
+
readonly default: "bg-surface-elevated text-on-surface";
|
|
509
|
+
readonly subtle: "bg-surface-subtle text-on-surface";
|
|
510
|
+
readonly inverse: "bg-brand-obsidian text-on-primary";
|
|
511
|
+
};
|
|
512
|
+
declare const SHADOW: {
|
|
513
|
+
readonly none: "";
|
|
514
|
+
readonly sm: "shadow-sm";
|
|
515
|
+
readonly md: "shadow-md";
|
|
516
|
+
readonly xl: "shadow-xl";
|
|
517
|
+
};
|
|
518
|
+
declare const BAR_TONE: {
|
|
519
|
+
readonly default: "bg-surface-subtle";
|
|
520
|
+
readonly slate: "bg-brand-slate";
|
|
521
|
+
readonly none: "";
|
|
522
|
+
};
|
|
523
|
+
declare const BAR_DENSITY: {
|
|
524
|
+
readonly md: "px-space-lg py-space-sm";
|
|
525
|
+
readonly sm: "px-space-md py-space-sm";
|
|
459
526
|
};
|
|
460
527
|
declare const PATTERN: {
|
|
461
528
|
readonly none: "";
|
|
@@ -471,7 +538,15 @@ declare const HEIGHT$3: {
|
|
|
471
538
|
readonly sm: "h-30";
|
|
472
539
|
readonly md: "h-35";
|
|
473
540
|
};
|
|
474
|
-
type
|
|
541
|
+
type BarProps = {
|
|
542
|
+
/** Hairline between the bar and the body (default false: Stitch bars are tinted, not ruled). */
|
|
543
|
+
divider?: boolean;
|
|
544
|
+
/** md: 24px sides; sm: 16px sides. */
|
|
545
|
+
density?: keyof typeof BAR_DENSITY;
|
|
546
|
+
/** slate: the #1E293B toolbar used on dark workbench cards. */
|
|
547
|
+
tone?: keyof typeof BAR_TONE;
|
|
548
|
+
};
|
|
549
|
+
type CardHeaderProps = NativeProps<'div', BarProps & {
|
|
475
550
|
start?: ReactNode;
|
|
476
551
|
end?: ReactNode;
|
|
477
552
|
children?: ReactNode;
|
|
@@ -484,36 +559,44 @@ type CardMediaProps = NativeProps<'div', {
|
|
|
484
559
|
caption?: ReactNode;
|
|
485
560
|
children?: ReactNode;
|
|
486
561
|
}>;
|
|
487
|
-
type CardFooterProps = NativeProps<'div', {
|
|
562
|
+
type CardFooterProps = NativeProps<'div', BarProps & {
|
|
488
563
|
children: ReactNode;
|
|
489
564
|
}>;
|
|
490
|
-
declare function CardHeader({ start, end, children, ...rest }: CardHeaderProps): react.JSX.Element;
|
|
565
|
+
declare function CardHeader({ start, end, children, divider, density, tone, ...rest }: CardHeaderProps): react.JSX.Element;
|
|
491
566
|
declare function CardMedia({ pattern, aspect, height, caption, children, ...rest }: CardMediaProps): react.JSX.Element;
|
|
492
|
-
declare function CardFooter({ children, ...rest }: CardFooterProps): react.JSX.Element;
|
|
567
|
+
declare function CardFooter({ children, divider, density, tone, ...rest }: CardFooterProps): react.JSX.Element;
|
|
493
568
|
type CardOwnProps = {
|
|
494
569
|
padding?: Responsive<Space>;
|
|
495
570
|
interactive?: boolean;
|
|
496
571
|
tone?: keyof typeof TONE$5;
|
|
497
572
|
pattern?: keyof typeof PATTERN;
|
|
573
|
+
/** Resting shadow (default sm). */
|
|
574
|
+
shadow?: keyof typeof SHADOW;
|
|
575
|
+
/** Adds a 1px border-subtle hairline. */
|
|
576
|
+
outlined?: boolean;
|
|
577
|
+
/** Gap between body children (default sm, 8px). */
|
|
578
|
+
gap?: Responsive<Space>;
|
|
498
579
|
children?: ReactNode;
|
|
499
580
|
};
|
|
500
581
|
type CardProps<E extends ElementType = 'div'> = PolyProps<E, CardOwnProps>;
|
|
501
|
-
declare function CardRoot<E extends ElementType = 'div'>({ as, padding, interactive, tone, pattern, children, ...rest }: CardProps<E>): react.JSX.Element;
|
|
582
|
+
declare function CardRoot<E extends ElementType = 'div'>({ as, padding, interactive, tone, pattern, shadow, outlined, gap, children, ...rest }: CardProps<E>): react.JSX.Element;
|
|
502
583
|
declare const Card: typeof CardRoot & {
|
|
503
584
|
Header: typeof CardHeader;
|
|
504
585
|
Media: typeof CardMedia;
|
|
505
586
|
Footer: typeof CardFooter;
|
|
506
587
|
};
|
|
507
588
|
|
|
508
|
-
type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'ghost' | 'danger' | 'brand' | 'accent';
|
|
509
|
-
declare const SIZE$
|
|
589
|
+
type ButtonVariant = 'primary' | 'secondary' | 'raised' | 'subtle' | 'ghost' | 'slate' | 'danger' | 'brand' | 'accent';
|
|
590
|
+
declare const SIZE$8: {
|
|
591
|
+
readonly xs: "px-space-md py-space-xs";
|
|
592
|
+
readonly ms: "px-space-lg py-space-sm";
|
|
510
593
|
readonly sm: "h-8 px-space-md";
|
|
511
594
|
readonly md: "h-10 px-space-lg";
|
|
512
595
|
readonly lg: "h-12 px-space-lg";
|
|
513
596
|
};
|
|
514
597
|
type ButtonOwnProps = {
|
|
515
598
|
variant?: ButtonVariant;
|
|
516
|
-
size?: keyof typeof SIZE$
|
|
599
|
+
size?: keyof typeof SIZE$8;
|
|
517
600
|
icon?: string;
|
|
518
601
|
iconRight?: string;
|
|
519
602
|
iconTone?: Tone;
|
|
@@ -528,23 +611,24 @@ type ButtonOwnProps = {
|
|
|
528
611
|
type ButtonProps<E extends ElementType = 'button'> = PolyProps<E, ButtonOwnProps>;
|
|
529
612
|
declare function Button<E extends ElementType = 'button'>({ as, variant, size, icon, iconRight, iconTone, iconFilled, leading, fullWidth, loading, disabled, children, ...rest }: ButtonProps<E>): react.JSX.Element;
|
|
530
613
|
|
|
531
|
-
declare const VARIANT$
|
|
614
|
+
declare const VARIANT$4: {
|
|
532
615
|
readonly ghost: "text-on-surface-variant hover:bg-surface-muted hover:text-on-surface";
|
|
533
|
-
readonly subtle: "bg-surface-subtle text-on-surface hover:bg-surface-
|
|
616
|
+
readonly subtle: "bg-surface-subtle text-on-surface-variant hover:bg-surface-container hover:text-on-surface";
|
|
534
617
|
readonly secondary: "border border-border-subtle bg-surface-elevated text-on-surface hover:bg-surface-muted";
|
|
535
618
|
readonly primary: "bg-ink text-on-ink hover:bg-ink-hover";
|
|
536
619
|
};
|
|
537
|
-
declare const SIZE$
|
|
620
|
+
declare const SIZE$7: {
|
|
538
621
|
readonly xs: "size-6";
|
|
539
622
|
readonly sm: "size-8";
|
|
623
|
+
readonly ms: "size-9";
|
|
540
624
|
readonly md: "size-10";
|
|
541
625
|
};
|
|
542
626
|
type IconButtonOwnProps = {
|
|
543
627
|
icon: string;
|
|
544
628
|
/** Accessible name and tooltip. Include what `dot`/`badge` mean (e.g. "Notifications, 3 unread"). */
|
|
545
629
|
label: string;
|
|
546
|
-
variant?: keyof typeof VARIANT$
|
|
547
|
-
size?: keyof typeof SIZE$
|
|
630
|
+
variant?: keyof typeof VARIANT$4;
|
|
631
|
+
size?: keyof typeof SIZE$7;
|
|
548
632
|
dot?: StatusTone;
|
|
549
633
|
badge?: ReactNode;
|
|
550
634
|
children?: never;
|
|
@@ -552,14 +636,33 @@ type IconButtonOwnProps = {
|
|
|
552
636
|
type IconButtonProps<E extends ElementType = 'button'> = PolyProps<E, IconButtonOwnProps>;
|
|
553
637
|
declare function IconButton<E extends ElementType = 'button'>({ as, icon, label, variant, size, dot, badge, ...rest }: IconButtonProps<E>): react.JSX.Element;
|
|
554
638
|
|
|
639
|
+
declare const VARIANT$3: {
|
|
640
|
+
readonly outline: "rounded border border-border-subtle bg-surface-subtle";
|
|
641
|
+
readonly raised: "rounded bg-surface-elevated shadow-sm";
|
|
642
|
+
};
|
|
555
643
|
type KbdProps = NativeProps<'kbd', {
|
|
644
|
+
variant?: keyof typeof VARIANT$3;
|
|
556
645
|
children: ReactNode;
|
|
557
646
|
}>;
|
|
558
|
-
declare function Kbd({ children, ...rest }: KbdProps): react.JSX.Element;
|
|
647
|
+
declare function Kbd({ variant, children, ...rest }: KbdProps): react.JSX.Element;
|
|
559
648
|
|
|
560
|
-
declare const SIZE$
|
|
561
|
-
readonly sm: "h-8";
|
|
562
|
-
readonly
|
|
649
|
+
declare const SIZE$6: {
|
|
650
|
+
readonly sm: "h-8 px-space-sm";
|
|
651
|
+
readonly ms: "h-9 px-space-sm";
|
|
652
|
+
readonly md: "h-10 px-space-sm";
|
|
653
|
+
readonly lg: "h-11 px-space-md";
|
|
654
|
+
};
|
|
655
|
+
declare const WIDTH$1: {
|
|
656
|
+
readonly auto: "";
|
|
657
|
+
readonly full: "w-full";
|
|
658
|
+
readonly sm: "w-64";
|
|
659
|
+
readonly md: "w-80";
|
|
660
|
+
readonly lg: "w-full max-w-xl";
|
|
661
|
+
};
|
|
662
|
+
declare const VARIANT$2: {
|
|
663
|
+
readonly outline: "border bg-surface-subtle focus-within:ring-2";
|
|
664
|
+
readonly filled: "bg-surface-subtle hover:bg-surface-container/40 focus-within:ring-1";
|
|
665
|
+
readonly raised: "bg-surface-elevated shadow-sm focus-within:ring-2";
|
|
563
666
|
};
|
|
564
667
|
type TextFieldProps = NativeProps<'input', {
|
|
565
668
|
label: string;
|
|
@@ -571,38 +674,70 @@ type TextFieldProps = NativeProps<'input', {
|
|
|
571
674
|
labelEnd?: ReactNode;
|
|
572
675
|
/** Adds a show/hide toggle for password fields. */
|
|
573
676
|
revealable?: boolean;
|
|
574
|
-
size?: keyof typeof SIZE$
|
|
677
|
+
size?: keyof typeof SIZE$6;
|
|
678
|
+
variant?: keyof typeof VARIANT$2;
|
|
679
|
+
/** Put the icon after the input instead of before it. */
|
|
680
|
+
iconPosition?: 'start' | 'end';
|
|
681
|
+
/** Field width: sm 16rem, md 20rem, lg fills up to 36rem, full; default auto. */
|
|
682
|
+
width?: keyof typeof WIDTH$1;
|
|
575
683
|
}>;
|
|
576
|
-
declare function TextField({ label, hideLabel, icon, hint, error, labelEnd, revealable, size, id, type, ...rest }: TextFieldProps): react.JSX.Element;
|
|
684
|
+
declare function TextField({ label, hideLabel, icon, hint, error, labelEnd, revealable, size, variant, iconPosition, width, id, type, ...rest }: TextFieldProps): react.JSX.Element;
|
|
577
685
|
|
|
578
686
|
type SelectOption = {
|
|
579
687
|
value: string;
|
|
580
688
|
label: string;
|
|
581
689
|
};
|
|
690
|
+
declare const VARIANT$1: {
|
|
691
|
+
readonly outline: "border border-border-subtle bg-surface-subtle";
|
|
692
|
+
readonly raised: "bg-surface-elevated shadow-sm";
|
|
693
|
+
};
|
|
694
|
+
declare const SIZE$5: {
|
|
695
|
+
readonly md: "h-10 pl-space-sm font-body-md text-body-md";
|
|
696
|
+
readonly lg: "h-11 pl-space-md font-body-sm text-body-sm";
|
|
697
|
+
};
|
|
582
698
|
type SelectProps = NativeProps<'select', {
|
|
583
699
|
label: string;
|
|
584
700
|
hideLabel?: boolean;
|
|
585
701
|
options: SelectOption[];
|
|
702
|
+
variant?: keyof typeof VARIANT$1;
|
|
703
|
+
size?: keyof typeof SIZE$5;
|
|
586
704
|
children?: never;
|
|
587
705
|
}>;
|
|
588
|
-
declare function Select({ label, hideLabel, options, id, ...rest }: SelectProps): react.JSX.Element;
|
|
706
|
+
declare function Select({ label, hideLabel, options, variant, size, id, ...rest }: SelectProps): react.JSX.Element;
|
|
589
707
|
|
|
590
708
|
/** `panelId` links a tablist tab to a `<TabPanel id={panelId}>` (aria-controls / aria-labelledby). */
|
|
591
709
|
type TabItem = {
|
|
592
710
|
id: string;
|
|
593
711
|
label: ReactNode;
|
|
594
|
-
count?:
|
|
712
|
+
count?: ReactNode;
|
|
713
|
+
/** Colour of the count pill (nav variant). */
|
|
714
|
+
countTone?: BadgeTone;
|
|
595
715
|
badge?: ReactNode;
|
|
596
716
|
dot?: StatusTone;
|
|
717
|
+
icon?: string;
|
|
597
718
|
href?: string;
|
|
598
719
|
as?: ElementType;
|
|
599
720
|
panelId?: string;
|
|
600
|
-
|
|
721
|
+
/** Not available yet: rendered as text with aria-disabled, never as a link or selectable tab. */
|
|
722
|
+
disabled?: boolean;
|
|
723
|
+
/** Native tooltip (e.g. "Coming soon" on a disabled item). */
|
|
724
|
+
title?: string;
|
|
725
|
+
/** Hide this item below a breakpoint (lower-priority nav entries on crowded bars). */
|
|
726
|
+
hideBelow?: keyof typeof HIDE_BELOW;
|
|
727
|
+
};
|
|
728
|
+
declare const HIDE_BELOW: {
|
|
729
|
+
readonly sm: "hidden sm:flex";
|
|
730
|
+
readonly md: "hidden md:flex";
|
|
731
|
+
readonly lg: "hidden lg:flex";
|
|
732
|
+
readonly xl: "hidden xl:flex";
|
|
733
|
+
readonly '2xl': "hidden 2xl:flex";
|
|
734
|
+
};
|
|
735
|
+
type Variant = 'underline' | 'pills' | 'nav' | 'solid' | 'label';
|
|
601
736
|
type TabsProps = NativeProps<'div', {
|
|
602
737
|
items: TabItem[];
|
|
603
738
|
value: string;
|
|
604
739
|
onChange?: (id: string) => void;
|
|
605
|
-
variant?:
|
|
740
|
+
variant?: Variant;
|
|
606
741
|
label: string;
|
|
607
742
|
children?: never;
|
|
608
743
|
}>;
|
|
@@ -624,14 +759,19 @@ type SegmentedOption = {
|
|
|
624
759
|
hideLabel?: boolean;
|
|
625
760
|
dot?: StatusTone;
|
|
626
761
|
};
|
|
762
|
+
declare const TRACK: {
|
|
763
|
+
readonly default: "rounded-lg border border-border-subtle bg-surface-subtle p-space-2xs";
|
|
764
|
+
readonly label: "";
|
|
765
|
+
};
|
|
627
766
|
type SegmentedControlProps = NativeProps<'div', {
|
|
628
767
|
label: string;
|
|
629
768
|
options: SegmentedOption[];
|
|
630
769
|
value: string;
|
|
631
770
|
onChange: (value: string) => void;
|
|
771
|
+
variant?: keyof typeof TRACK;
|
|
632
772
|
children?: never;
|
|
633
773
|
}>;
|
|
634
|
-
declare function SegmentedControl({ label, options, value, onChange, ...rest }: SegmentedControlProps): react.JSX.Element;
|
|
774
|
+
declare function SegmentedControl({ label, options, value, onChange, variant, ...rest }: SegmentedControlProps): react.JSX.Element;
|
|
635
775
|
|
|
636
776
|
declare const SIZE$4: {
|
|
637
777
|
readonly sm: "max-w-sm";
|
|
@@ -710,13 +850,18 @@ type StatusItemProps = NativeProps<'span', {
|
|
|
710
850
|
children: ReactNode;
|
|
711
851
|
}>;
|
|
712
852
|
declare function StatusItem({ icon, tone, children, ...rest }: StatusItemProps): react.JSX.Element;
|
|
853
|
+
declare const BAR: {
|
|
854
|
+
readonly default: "h-7 border-t border-border-subtle bg-surface-subtle";
|
|
855
|
+
readonly raised: "h-9 bg-surface-container";
|
|
856
|
+
};
|
|
713
857
|
type StatusBarProps = NativeProps<'footer', {
|
|
714
858
|
start?: ReactNode;
|
|
715
859
|
end?: ReactNode;
|
|
716
860
|
label?: string;
|
|
861
|
+
tone?: keyof typeof BAR;
|
|
717
862
|
children?: never;
|
|
718
863
|
}>;
|
|
719
|
-
declare function StatusBarRoot({ start, end, label, ...rest }: StatusBarProps): react.JSX.Element;
|
|
864
|
+
declare function StatusBarRoot({ start, end, label, tone, ...rest }: StatusBarProps): react.JSX.Element;
|
|
720
865
|
declare const StatusBar: typeof StatusBarRoot & {
|
|
721
866
|
Item: typeof StatusItem;
|
|
722
867
|
};
|
|
@@ -735,12 +880,16 @@ type MetricTileProps = NativeProps<'div', {
|
|
|
735
880
|
icon?: string;
|
|
736
881
|
hint?: ReactNode;
|
|
737
882
|
hintTone?: Tone;
|
|
883
|
+
/** centered: big value over a small label (hero stats). */
|
|
884
|
+
variant?: 'default' | 'centered';
|
|
738
885
|
}>;
|
|
739
|
-
declare function MetricTile({ label, value, tone, icon, hint, hintTone, ...rest }: MetricTileProps): react.JSX.Element;
|
|
886
|
+
declare function MetricTile({ label, value, tone, icon, hint, hintTone, variant, ...rest }: MetricTileProps): react.JSX.Element;
|
|
740
887
|
|
|
741
888
|
declare const AVATAR_SIZE: {
|
|
742
889
|
readonly sm: "size-7 text-[11px]";
|
|
890
|
+
readonly ms: "size-8 text-xs";
|
|
743
891
|
readonly md: "size-9 text-xs";
|
|
892
|
+
readonly ml: "size-10 text-sm";
|
|
744
893
|
readonly lg: "size-12 text-sm";
|
|
745
894
|
};
|
|
746
895
|
declare const SHAPE$2: {
|
|
@@ -792,9 +941,11 @@ type CountdownProps = NativeProps<'span', {
|
|
|
792
941
|
warnAt?: number;
|
|
793
942
|
onExpire?: () => void;
|
|
794
943
|
label?: string;
|
|
944
|
+
/** chip: tinted pill with mono digits and a brand timer icon (workspace bar). */
|
|
945
|
+
variant?: 'plain' | 'chip';
|
|
795
946
|
children?: never;
|
|
796
947
|
}>;
|
|
797
|
-
declare function Countdown({ seconds, until, direction, warnAt, onExpire, label, ...rest }: CountdownProps): react.JSX.Element;
|
|
948
|
+
declare function Countdown({ seconds, until, direction, warnAt, onExpire, label, variant, ...rest }: CountdownProps): react.JSX.Element;
|
|
798
949
|
|
|
799
950
|
type FileNode = {
|
|
800
951
|
path: string;
|
|
@@ -936,6 +1087,10 @@ declare const HEIGHT$2: {
|
|
|
936
1087
|
readonly sm: "h-12";
|
|
937
1088
|
readonly md: "h-16";
|
|
938
1089
|
};
|
|
1090
|
+
declare const DIVIDER: {
|
|
1091
|
+
readonly shadow: "shadow-appbar";
|
|
1092
|
+
readonly border: "border-b border-border-subtle";
|
|
1093
|
+
};
|
|
939
1094
|
type AppBarProps = NativeProps<'header', {
|
|
940
1095
|
position?: keyof typeof POSITION;
|
|
941
1096
|
start?: ReactNode;
|
|
@@ -946,9 +1101,11 @@ type AppBarProps = NativeProps<'header', {
|
|
|
946
1101
|
height?: keyof typeof HEIGHT$2;
|
|
947
1102
|
/** Constrain the content to the 80rem page column. */
|
|
948
1103
|
contained?: boolean;
|
|
1104
|
+
/** How the bar separates from the page (default a soft shadow, as in Stitch). */
|
|
1105
|
+
divider?: keyof typeof DIVIDER;
|
|
949
1106
|
children?: never;
|
|
950
1107
|
}>;
|
|
951
|
-
declare function AppBar({ position, start, center, end, blur, height, contained, ...rest }: AppBarProps): react.JSX.Element;
|
|
1108
|
+
declare function AppBar({ position, start, center, end, blur, height, contained, divider, ...rest }: AppBarProps): react.JSX.Element;
|
|
952
1109
|
|
|
953
1110
|
type NavItem = {
|
|
954
1111
|
id: string;
|
|
@@ -1134,11 +1291,13 @@ declare function VerdictBanner({ tone, icon, title, badge, meta, actions, ...res
|
|
|
1134
1291
|
type CheckboxProps = NativeProps<'input', {
|
|
1135
1292
|
label: ReactNode;
|
|
1136
1293
|
description?: ReactNode;
|
|
1294
|
+
/** sm: 13px label for compact side-rail lists. */
|
|
1295
|
+
size?: 'sm' | 'md';
|
|
1137
1296
|
/** Strike the label through while checked (task lists). */
|
|
1138
1297
|
strikeWhenChecked?: boolean;
|
|
1139
1298
|
indeterminate?: boolean;
|
|
1140
1299
|
}>;
|
|
1141
|
-
declare function Checkbox({ label, description, strikeWhenChecked, indeterminate, id, ...rest }: CheckboxProps): react.JSX.Element;
|
|
1300
|
+
declare function Checkbox({ label, description, strikeWhenChecked, indeterminate, size, id, ...rest }: CheckboxProps): react.JSX.Element;
|
|
1142
1301
|
|
|
1143
1302
|
type SwitchProps = NativeProps<'button', {
|
|
1144
1303
|
label: string;
|
|
@@ -1227,10 +1386,21 @@ type UmlClassProps = NativeProps<'div', {
|
|
|
1227
1386
|
emphasis?: keyof typeof EMPHASIS;
|
|
1228
1387
|
size?: keyof typeof SIZE;
|
|
1229
1388
|
dashed?: boolean;
|
|
1389
|
+
/** tinted: borderless card with a tinted title block (marketing/preview diagrams). */
|
|
1390
|
+
variant?: 'box' | 'tinted';
|
|
1391
|
+
/** Title block tint for the tinted variant. */
|
|
1392
|
+
headerTone?: keyof typeof HEADER_TONE;
|
|
1393
|
+
/** Member columns for the tinted variant. */
|
|
1394
|
+
columns?: 1 | 2;
|
|
1230
1395
|
children?: never;
|
|
1231
1396
|
}>;
|
|
1397
|
+
declare const HEADER_TONE: {
|
|
1398
|
+
readonly container: "bg-surface-container";
|
|
1399
|
+
readonly info: "bg-badge-intermediate-bg";
|
|
1400
|
+
readonly strong: "bg-surface-container-high";
|
|
1401
|
+
};
|
|
1232
1402
|
/** UML class box: name compartment, attributes, methods. */
|
|
1233
|
-
declare function UmlClass({ name, stereotype, attributes, methods, tag, emphasis, size, dashed, ...rest }: UmlClassProps): react.JSX.Element;
|
|
1403
|
+
declare function UmlClass({ name, stereotype, attributes, methods, tag, emphasis, size, dashed, variant, headerTone, columns, ...rest }: UmlClassProps): react.JSX.Element;
|
|
1234
1404
|
|
|
1235
1405
|
type UmlNode = {
|
|
1236
1406
|
id: string;
|
|
@@ -1330,12 +1500,14 @@ declare const ABOVE: {
|
|
|
1330
1500
|
readonly md: "hidden md:contents";
|
|
1331
1501
|
readonly lg: "hidden lg:contents";
|
|
1332
1502
|
readonly xl: "hidden xl:contents";
|
|
1503
|
+
readonly '2xl': "hidden 2xl:contents";
|
|
1333
1504
|
};
|
|
1334
1505
|
declare const BELOW: {
|
|
1335
1506
|
readonly sm: "contents sm:hidden";
|
|
1336
1507
|
readonly md: "contents md:hidden";
|
|
1337
1508
|
readonly lg: "contents lg:hidden";
|
|
1338
1509
|
readonly xl: "contents xl:hidden";
|
|
1510
|
+
readonly '2xl': "contents 2xl:hidden";
|
|
1339
1511
|
};
|
|
1340
1512
|
type ShowProps = NativeProps<'div', {
|
|
1341
1513
|
above?: keyof typeof ABOVE;
|
|
@@ -1345,4 +1517,4 @@ type ShowProps = NativeProps<'div', {
|
|
|
1345
1517
|
/** Render children only from `above` up, or only below `below`. Uses display: contents, so it adds no box. */
|
|
1346
1518
|
declare function Show({ above, below, children, ...rest }: ShowProps): react.JSX.Element;
|
|
1347
1519
|
|
|
1348
|
-
export { type Align, AppBar, type AppBarProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeTone, BarChart, type BarChartProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, Button, type ButtonProps, type ButtonVariant, Callout, type CalloutProps, Card, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, CheckList, type CheckListProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Code, CodeBlock, type CodeBlockProps, type CodeProps, type Cols, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, Countdown, type CountdownProps, type Crumb, DescriptionList, type DescriptionListProps, Dialog, type DialogProps, DiffViewer, type DiffViewerProps, type Direction, Disclosure, type DisclosureProps, Divider, type DividerProps, Dot, type DotProps, Drawer, type DrawerProps, type EditorTab, EditorTabs, type EditorTabsProps, EmptyState, type EmptyStateProps, Eyebrow, type EyebrowProps, type FileNode, FileTree, type FileTreeProps, Grid, type GridProps, Heading, type HeadingProps, type HeadingSize, Icon, IconButton, type IconButtonProps, type IconProps, IconTile, type IconTileProps, type IconTileTone, type Justify, Kbd, type KbdProps, Markdown, type MarkdownProps, Menu, type MenuEntry, type MenuItem, type MenuProps, type MenuSeparator, type MenuTriggerProps, Message, type MessageProps, MetricTile, type MetricTileProps, type NavItem, NavList, type NavListProps, Overlay, type OverlayProps, Pagination, type PaginationProps, ProgressBar, type ProgressBarProps, type Responsive, ResultRow, type ResultRowProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, type SelectOption, type SelectProps, Show, type ShowProps, Skeleton, type SkeletonProps, type Space, Split, type SplitProps, Stack, type StackProps, Stat, type StatProps, StatusBar, type StatusBarProps, type StatusItemProps, type StatusTone, type SurfaceTone, Switch, type SwitchProps, type TabItem, TabPanel, type TabPanelProps, Table, type TableColumn, type TableProps, Tabs, type TabsProps, type TerminalLine, TerminalOutput, type TerminalOutputProps, Text, TextField, type TextFieldProps, TextLink, type TextLinkProps, type TextProps, Theme, type ThemeProps, type ThemeTone, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, type ToastOptions, Toaster, type ToasterProps, type Tone, Tooltip, type TooltipProps, UmlClass, type UmlClassProps, UmlDiagram, type UmlDiagramProps, type UmlEdge, type UmlEdgeKind, type UmlNode, VerdictBanner, type VerdictBannerProps, Workbench, type WorkbenchLimits, type WorkbenchProps, type WorkbenchSizes, describeDiagram, pageRange, useThemeTone, useToast };
|
|
1520
|
+
export { type Align, AppBar, type AppBarProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeTone, BarChart, type BarChartProps, Box, type BoxProps, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, Button, type ButtonProps, type ButtonVariant, Callout, type CalloutProps, Card, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, CheckList, type CheckListProps, Checkbox, type CheckboxProps, Chip, type ChipProps, Code, CodeBlock, type CodeBlockProps, type CodeProps, type Cols, type CommandGroup, type CommandItem, CommandPalette, type CommandPaletteProps, Container, type ContainerProps, CopyButton, type CopyButtonProps, Countdown, type CountdownProps, type Crumb, DescriptionList, type DescriptionListProps, Dialog, type DialogProps, DiffViewer, type DiffViewerProps, type Direction, Disclosure, type DisclosureProps, Divider, type DividerProps, Dot, type DotProps, Drawer, type DrawerProps, type EditorTab, EditorTabs, type EditorTabsProps, EmptyState, type EmptyStateProps, Eyebrow, type EyebrowProps, type FileNode, FileTree, type FileTreeProps, Grid, GridItem, type GridItemProps, type GridProps, Heading, type HeadingProps, type HeadingSize, Icon, IconButton, type IconButtonProps, type IconProps, IconTile, type IconTileProps, type IconTileTone, type Justify, Kbd, type KbdProps, Markdown, type MarkdownProps, Menu, type MenuEntry, type MenuItem, type MenuProps, type MenuSeparator, type MenuTriggerProps, Message, type MessageProps, MetricTile, type MetricTileProps, type NavItem, NavList, type NavListProps, Overlay, type OverlayProps, Pagination, type PaginationProps, ProgressBar, type ProgressBarProps, type Responsive, ResultRow, type ResultRowProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Select, type SelectOption, type SelectProps, Show, type ShowProps, Skeleton, type SkeletonProps, type Space, Split, type SplitProps, Stack, type StackProps, Stat, type StatProps, StatusBar, type StatusBarProps, type StatusItemProps, type StatusTone, type SurfaceTone, Switch, type SwitchProps, type TabItem, TabPanel, type TabPanelProps, Table, type TableColumn, type TableProps, Tabs, type TabsProps, type TerminalLine, TerminalOutput, type TerminalOutputProps, Text, TextField, type TextFieldProps, TextLink, type TextLinkProps, type TextProps, Theme, type ThemeProps, type ThemeTone, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, type ToastOptions, Toaster, type ToasterProps, type Tone, Tooltip, type TooltipProps, UmlClass, type UmlClassProps, UmlDiagram, type UmlDiagramProps, type UmlEdge, type UmlEdgeKind, type UmlNode, VerdictBanner, type VerdictBannerProps, Workbench, type WorkbenchLimits, type WorkbenchProps, type WorkbenchSizes, describeDiagram, pageRange, useThemeTone, useToast };
|