lldlab-ui 0.2.0 → 0.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 +90 -4
- package/dist/index.d.ts +284 -77
- package/dist/index.js +504 -290
- 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,22 +47,34 @@ 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";
|
|
54
54
|
};
|
|
55
|
+
declare const HEIGHT$4: {
|
|
56
|
+
readonly sm: "h-[20rem]";
|
|
57
|
+
readonly md: "h-[28rem]";
|
|
58
|
+
readonly lg: "h-[32rem]";
|
|
59
|
+
readonly xl: "h-[40rem]";
|
|
60
|
+
};
|
|
55
61
|
type BoxOwnProps = {
|
|
56
62
|
padding?: Responsive<Space>;
|
|
57
63
|
radius?: keyof typeof RADIUS;
|
|
58
64
|
tone?: SurfaceTone;
|
|
59
65
|
border?: keyof typeof BORDER;
|
|
60
|
-
shadow?: keyof typeof SHADOW;
|
|
66
|
+
shadow?: keyof typeof SHADOW$1;
|
|
61
67
|
/** Greys out and disables the content (inert), e.g. a panel waiting on a runtime. */
|
|
62
68
|
dimmed?: boolean;
|
|
69
|
+
/** Fixed height: sm 20rem, md 28rem, lg 32rem, xl 40rem (e.g. an editor outside full screen). */
|
|
70
|
+
height?: keyof typeof HEIGHT$4;
|
|
71
|
+
/** Take the parent's full height. */
|
|
72
|
+
fill?: boolean;
|
|
73
|
+
/** Take the space left in a flex column (e.g. under a tab bar). */
|
|
74
|
+
grow?: boolean;
|
|
63
75
|
};
|
|
64
76
|
type BoxProps<E extends ElementType = 'div'> = PolyProps<E, BoxOwnProps>;
|
|
65
|
-
declare function Box<E extends ElementType = 'div'>({ as, padding, radius, tone, border, shadow, dimmed, ...rest }: BoxProps<E>): react.JSX.Element;
|
|
77
|
+
declare function Box<E extends ElementType = 'div'>({ as, padding, radius, tone, border, shadow, dimmed, height, fill, grow, ...rest }: BoxProps<E>): react.JSX.Element;
|
|
66
78
|
|
|
67
79
|
type StackOwnProps = {
|
|
68
80
|
direction?: Responsive<Direction>;
|
|
@@ -70,9 +82,13 @@ type StackOwnProps = {
|
|
|
70
82
|
align?: Responsive<Align>;
|
|
71
83
|
justify?: Responsive<Justify>;
|
|
72
84
|
wrap?: boolean;
|
|
85
|
+
/** Take the parent's full height. */
|
|
86
|
+
fill?: boolean;
|
|
87
|
+
/** Take the space left in a flex column. */
|
|
88
|
+
grow?: boolean;
|
|
73
89
|
};
|
|
74
90
|
type StackProps<E extends ElementType = 'div'> = PolyProps<E, StackOwnProps>;
|
|
75
|
-
declare function Stack<E extends ElementType = 'div'>({ as, direction, gap, align, justify, wrap, ...rest }: StackProps<E>): react.JSX.Element;
|
|
91
|
+
declare function Stack<E extends ElementType = 'div'>({ as, direction, gap, align, justify, wrap, fill, grow, ...rest }: StackProps<E>): react.JSX.Element;
|
|
76
92
|
|
|
77
93
|
type GridProps<E extends ElementType = 'div'> = PolyProps<E, {
|
|
78
94
|
cols?: Responsive<Cols>;
|
|
@@ -80,18 +96,25 @@ type GridProps<E extends ElementType = 'div'> = PolyProps<E, {
|
|
|
80
96
|
}>;
|
|
81
97
|
/** Single column below md unless `cols` sets `base` explicitly. */
|
|
82
98
|
declare function Grid<E extends ElementType = 'div'>({ as, cols, gap, ...rest }: GridProps<E>): react.JSX.Element;
|
|
99
|
+
type GridItemProps<E extends ElementType = 'div'> = PolyProps<E, {
|
|
100
|
+
span?: Responsive<Cols>;
|
|
101
|
+
}>;
|
|
102
|
+
/** A grid cell that spans several columns (e.g. a brand column over 2 of 5). */
|
|
103
|
+
declare function GridItem<E extends ElementType = 'div'>({ as, span, ...rest }: GridItemProps<E>): react.JSX.Element;
|
|
83
104
|
|
|
84
|
-
declare const SIZE$
|
|
105
|
+
declare const SIZE$e: {
|
|
85
106
|
readonly md: "max-w-3xl";
|
|
86
107
|
readonly lg: "max-w-5xl";
|
|
87
108
|
readonly xl: "max-w-7xl";
|
|
109
|
+
readonly full: "max-w-none";
|
|
88
110
|
};
|
|
89
111
|
type ContainerProps<E extends ElementType = 'div'> = PolyProps<E, {
|
|
90
|
-
size?: keyof typeof SIZE$
|
|
112
|
+
size?: keyof typeof SIZE$e;
|
|
91
113
|
}>;
|
|
92
114
|
declare function Container<E extends ElementType = 'div'>({ as, size, ...rest }: ContainerProps<E>): react.JSX.Element;
|
|
93
115
|
|
|
94
116
|
declare const PADDING: {
|
|
117
|
+
readonly none: "";
|
|
95
118
|
readonly md: "py-section-md";
|
|
96
119
|
readonly lg: "py-section-lg";
|
|
97
120
|
readonly xl: "py-section-xl";
|
|
@@ -99,26 +122,31 @@ declare const PADDING: {
|
|
|
99
122
|
declare const PATTERN$1: {
|
|
100
123
|
readonly none: "";
|
|
101
124
|
readonly dots: "bg-pattern-dots";
|
|
125
|
+
readonly 'dots-brand': "bg-pattern-dots-brand";
|
|
102
126
|
readonly grid: "bg-pattern-grid";
|
|
103
127
|
};
|
|
104
128
|
type SectionProps<E extends ElementType = 'section'> = PolyProps<E, {
|
|
105
129
|
tone?: SurfaceTone;
|
|
130
|
+
/** Fluid section rhythm; ignored on a side when paddingTop/paddingBottom is set. */
|
|
106
131
|
padding?: keyof typeof PADDING;
|
|
132
|
+
/** Fixed spacing-scale padding, for mockup-exact rhythm (e.g. 40px top, 64px bottom). */
|
|
133
|
+
paddingTop?: Responsive<Space>;
|
|
134
|
+
paddingBottom?: Responsive<Space>;
|
|
107
135
|
pattern?: keyof typeof PATTERN$1;
|
|
108
136
|
}>;
|
|
109
|
-
declare function Section<E extends ElementType = 'section'>({ as, tone, padding, pattern, ...rest }: SectionProps<E>): react.JSX.Element;
|
|
137
|
+
declare function Section<E extends ElementType = 'section'>({ as, tone, padding, paddingTop, paddingBottom, pattern, ...rest }: SectionProps<E>): react.JSX.Element;
|
|
110
138
|
|
|
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
|
-
};
|
|
139
|
+
type Ratio = '8/4' | '1/1' | '9/3' | '7/5' | '5/7';
|
|
116
140
|
declare const STICKY_ASIDE: {
|
|
117
141
|
readonly none: "xl:sticky xl:top-space-lg xl:self-start";
|
|
118
142
|
readonly appbar: "xl:sticky xl:top-[calc(var(--spacing-appbar)+1rem)] xl:self-start";
|
|
119
143
|
};
|
|
120
144
|
type SplitProps = NativeProps<'div', {
|
|
121
|
-
ratio?:
|
|
145
|
+
ratio?: Ratio;
|
|
146
|
+
/** Where the two columns stop stacking (default xl). */
|
|
147
|
+
breakpoint?: 'lg' | 'xl';
|
|
148
|
+
/** Render the side column as a plain div when it isn't complementary content (e.g. a hero stats card). */
|
|
149
|
+
asideAs?: 'aside' | 'div';
|
|
122
150
|
aside: ReactNode;
|
|
123
151
|
/** 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
152
|
start?: ReactNode;
|
|
@@ -129,17 +157,19 @@ type SplitProps = NativeProps<'div', {
|
|
|
129
157
|
children: ReactNode;
|
|
130
158
|
}>;
|
|
131
159
|
/** 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;
|
|
160
|
+
declare function Split({ ratio, breakpoint, asideAs, aside, start, sticky, stickyOffset, gap, children, ...rest }: SplitProps): react.JSX.Element;
|
|
133
161
|
|
|
134
|
-
declare const SIZE$
|
|
162
|
+
declare const SIZE$d: {
|
|
163
|
+
readonly xs: "text-[14px]";
|
|
135
164
|
readonly sm: "text-[16px]";
|
|
165
|
+
readonly ms: "text-[18px]";
|
|
136
166
|
readonly md: "text-[20px]";
|
|
137
167
|
readonly lg: "text-[24px]";
|
|
138
168
|
readonly xl: "text-[32px]";
|
|
139
169
|
};
|
|
140
170
|
type IconProps = NativeProps<'span', {
|
|
141
171
|
name: string;
|
|
142
|
-
size?: keyof typeof SIZE$
|
|
172
|
+
size?: keyof typeof SIZE$d;
|
|
143
173
|
tone?: Tone | 'inherit';
|
|
144
174
|
filled?: boolean;
|
|
145
175
|
spin?: boolean;
|
|
@@ -149,19 +179,20 @@ type IconProps = NativeProps<'span', {
|
|
|
149
179
|
/** Material Symbols Outlined ligature icon. The app loads the font. */
|
|
150
180
|
declare function Icon({ name, size, tone, filled, spin, label, ...rest }: IconProps): react.JSX.Element;
|
|
151
181
|
|
|
152
|
-
declare const SIZE$
|
|
182
|
+
declare const SIZE$c: {
|
|
153
183
|
readonly sm: "size-1.5";
|
|
154
184
|
readonly md: "size-2";
|
|
185
|
+
readonly lg: "size-3";
|
|
155
186
|
};
|
|
156
187
|
type DotProps = NativeProps<'span', {
|
|
157
188
|
tone?: StatusTone;
|
|
158
|
-
size?: keyof typeof SIZE$
|
|
189
|
+
size?: keyof typeof SIZE$c;
|
|
159
190
|
pulse?: boolean;
|
|
160
191
|
children?: never;
|
|
161
192
|
}>;
|
|
162
193
|
declare function Dot({ tone, size, pulse, ...rest }: DotProps): react.JSX.Element;
|
|
163
194
|
|
|
164
|
-
declare const VARIANT$
|
|
195
|
+
declare const VARIANT$8: {
|
|
165
196
|
readonly 'body-lead': "font-body-lead text-body-lead";
|
|
166
197
|
readonly 'body-md': "font-body-md text-body-md";
|
|
167
198
|
readonly 'body-sm': "font-body-sm text-body-sm";
|
|
@@ -187,7 +218,7 @@ declare const ALIGN$1: {
|
|
|
187
218
|
readonly end: "text-end";
|
|
188
219
|
};
|
|
189
220
|
type TextOwnProps = {
|
|
190
|
-
variant?: keyof typeof VARIANT$
|
|
221
|
+
variant?: keyof typeof VARIANT$8;
|
|
191
222
|
tone?: Tone;
|
|
192
223
|
weight?: keyof typeof WEIGHT;
|
|
193
224
|
truncate?: boolean;
|
|
@@ -197,9 +228,11 @@ type TextOwnProps = {
|
|
|
197
228
|
measure?: boolean;
|
|
198
229
|
/** Defaults to true for `label`, false otherwise. */
|
|
199
230
|
uppercase?: boolean;
|
|
231
|
+
/** Decorative wavy underline (hero highlight). */
|
|
232
|
+
underline?: 'wavy';
|
|
200
233
|
};
|
|
201
234
|
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;
|
|
235
|
+
declare function Text<E extends ElementType = 'p'>({ as, variant, tone, weight, truncate, clamp, align, measure, uppercase, underline, ...rest }: TextProps<E>): react.JSX.Element;
|
|
203
236
|
|
|
204
237
|
declare const TAG: {
|
|
205
238
|
readonly 1: "h1";
|
|
@@ -226,20 +259,27 @@ type HeadingProps = NativeProps<'h2', {
|
|
|
226
259
|
tone?: keyof typeof TONE$b;
|
|
227
260
|
truncate?: boolean;
|
|
228
261
|
align?: keyof typeof ALIGN;
|
|
262
|
+
/** Balanced line breaks (default true). */
|
|
263
|
+
balance?: boolean;
|
|
264
|
+
/** Override the size's line height (none: 1, for tight hero headlines). */
|
|
265
|
+
leading?: 'none';
|
|
229
266
|
}>;
|
|
230
|
-
declare function Heading({ level, size, tone, truncate, align, ...rest }: HeadingProps): react.JSX.Element;
|
|
267
|
+
declare function Heading({ level, size, tone, truncate, align, balance, leading, ...rest }: HeadingProps): react.JSX.Element;
|
|
231
268
|
|
|
232
|
-
declare const VARIANT$
|
|
233
|
-
readonly pill: "rounded-full
|
|
269
|
+
declare const VARIANT$7: {
|
|
270
|
+
readonly pill: "rounded-full bg-surface-elevated shadow-sm px-space-sm py-space-2xs";
|
|
271
|
+
readonly tinted: "rounded-full bg-surface-container px-space-sm py-space-2xs";
|
|
234
272
|
readonly plain: "";
|
|
235
273
|
};
|
|
236
274
|
type EyebrowProps = NativeProps<'span', {
|
|
237
275
|
tone?: StatusTone;
|
|
238
276
|
pulse?: boolean;
|
|
239
|
-
variant?: keyof typeof VARIANT$
|
|
277
|
+
variant?: keyof typeof VARIANT$7;
|
|
278
|
+
dot?: boolean;
|
|
240
279
|
children: ReactNode;
|
|
241
280
|
}>;
|
|
242
|
-
|
|
281
|
+
/** Mono kicker above a heading; the text takes the tone colour, as in the Stitch mockups. */
|
|
282
|
+
declare function Eyebrow({ tone, pulse, variant, dot, children, ...rest }: EyebrowProps): react.JSX.Element;
|
|
243
283
|
|
|
244
284
|
type CodeProps = NativeProps<'code', {
|
|
245
285
|
children: ReactNode;
|
|
@@ -266,30 +306,41 @@ type CodeBlockProps = NativeProps<'figure', {
|
|
|
266
306
|
lineNumbers?: boolean;
|
|
267
307
|
tone?: keyof typeof TONE$a;
|
|
268
308
|
children: ReactNode;
|
|
309
|
+
/** Code only: no caption bar, frame or padding (inside a pane that provides them). */
|
|
310
|
+
bare?: boolean;
|
|
269
311
|
}>;
|
|
270
312
|
/** 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;
|
|
313
|
+
declare function CodeBlock({ language, highlight, title, meta, actions, lineNumbers, tone, bare, children, ...rest }: CodeBlockProps): react.JSX.Element;
|
|
272
314
|
|
|
273
315
|
type MarkdownProps = NativeProps<'div', {
|
|
274
316
|
children: string;
|
|
275
317
|
}>;
|
|
276
318
|
declare function Markdown({ children, ...rest }: MarkdownProps): react.JSX.Element;
|
|
277
319
|
|
|
278
|
-
type BadgeTone = 'neutral' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
|
|
279
|
-
declare const SIZE$
|
|
320
|
+
type BadgeTone = 'neutral' | 'subtle' | 'container' | 'brand' | 'success' | 'warning' | 'danger' | 'info';
|
|
321
|
+
declare const SIZE$b: {
|
|
322
|
+
readonly xs: "px-space-xs py-space-2xs text-[10px]";
|
|
280
323
|
readonly sm: "px-space-xs py-space-2xs";
|
|
281
324
|
readonly md: "px-space-sm py-space-xs";
|
|
282
325
|
};
|
|
326
|
+
declare const SHAPE$3: {
|
|
327
|
+
readonly square: "rounded";
|
|
328
|
+
readonly pill: "rounded-full";
|
|
329
|
+
};
|
|
283
330
|
type BadgeProps = NativeProps<'span', {
|
|
284
331
|
tone?: BadgeTone;
|
|
285
332
|
uppercase?: boolean;
|
|
286
|
-
size?: keyof typeof SIZE$
|
|
333
|
+
size?: keyof typeof SIZE$b;
|
|
334
|
+
/** square: 2px corners; pill: fully rounded (nav counts, eyebrows). */
|
|
335
|
+
shape?: keyof typeof SHAPE$3;
|
|
336
|
+
/** Hairline border in the tone's own colour. */
|
|
337
|
+
outlined?: boolean;
|
|
287
338
|
icon?: string;
|
|
288
339
|
dot?: StatusTone;
|
|
289
340
|
pulse?: boolean;
|
|
290
341
|
children: ReactNode;
|
|
291
342
|
}>;
|
|
292
|
-
declare function Badge({ tone, uppercase, size, icon, dot, pulse, children, ...rest }: BadgeProps): react.JSX.Element;
|
|
343
|
+
declare function Badge({ tone, uppercase, size, shape, outlined, icon, dot, pulse, children, ...rest }: BadgeProps): react.JSX.Element;
|
|
293
344
|
|
|
294
345
|
declare const TONE$9: {
|
|
295
346
|
readonly neutral: "border-border-subtle text-on-surface";
|
|
@@ -309,12 +360,25 @@ type ChipProps = NativeProps<'span', {
|
|
|
309
360
|
}>;
|
|
310
361
|
declare function Chip({ tone, icon, dot, onRemove, children, ...rest }: ChipProps): react.JSX.Element;
|
|
311
362
|
|
|
363
|
+
declare const ICON_TONE: {
|
|
364
|
+
readonly muted: "text-on-surface-variant";
|
|
365
|
+
readonly brand: "text-brand-cobalt";
|
|
366
|
+
readonly success: "text-brand-emerald";
|
|
367
|
+
readonly warning: "text-brand-amber";
|
|
368
|
+
readonly danger: "text-brand-crimson";
|
|
369
|
+
};
|
|
370
|
+
declare const VARIANT$6: {
|
|
371
|
+
readonly plain: "gap-space-sm";
|
|
372
|
+
readonly tile: "gap-space-xs rounded-lg bg-surface-subtle px-space-md py-space-xs shadow-sm";
|
|
373
|
+
};
|
|
312
374
|
type StatProps = NativeProps<'div', {
|
|
313
375
|
icon: string;
|
|
314
376
|
label: ReactNode;
|
|
315
377
|
value: ReactNode;
|
|
378
|
+
variant?: keyof typeof VARIANT$6;
|
|
379
|
+
iconTone?: keyof typeof ICON_TONE;
|
|
316
380
|
}>;
|
|
317
|
-
declare function Stat({ icon, label, value, ...rest }: StatProps): react.JSX.Element;
|
|
381
|
+
declare function Stat({ icon, label, value, variant, iconTone, ...rest }: StatProps): react.JSX.Element;
|
|
318
382
|
|
|
319
383
|
declare const TONE$8: {
|
|
320
384
|
readonly brand: "bg-brand-cobalt";
|
|
@@ -322,7 +386,7 @@ declare const TONE$8: {
|
|
|
322
386
|
readonly warning: "bg-brand-amber";
|
|
323
387
|
readonly danger: "bg-brand-crimson";
|
|
324
388
|
};
|
|
325
|
-
declare const SIZE$
|
|
389
|
+
declare const SIZE$a: {
|
|
326
390
|
readonly sm: "h-1";
|
|
327
391
|
readonly md: "h-1.5";
|
|
328
392
|
};
|
|
@@ -335,7 +399,7 @@ type ProgressBarProps = NativeProps<'div', {
|
|
|
335
399
|
/** Replaces the computed percentage (e.g. "7 of 12"). */
|
|
336
400
|
valueLabel?: ReactNode;
|
|
337
401
|
caption?: ReactNode;
|
|
338
|
-
size?: keyof typeof SIZE$
|
|
402
|
+
size?: keyof typeof SIZE$a;
|
|
339
403
|
}>;
|
|
340
404
|
declare function ProgressBar({ value, max, tone, label, hideLabel, valueLabel, caption, size, ...rest }: ProgressBarProps): react.JSX.Element;
|
|
341
405
|
|
|
@@ -350,8 +414,11 @@ type SectionHeaderProps = NativeProps<'div', {
|
|
|
350
414
|
icon?: string;
|
|
351
415
|
accent?: StatusTone;
|
|
352
416
|
size?: 'sm' | 'md';
|
|
417
|
+
/** Rule under the header (default true). Without it the dot grows to 12px, as on catalog tier headers. */
|
|
418
|
+
divider?: boolean;
|
|
419
|
+
metaUppercase?: boolean;
|
|
353
420
|
}>;
|
|
354
|
-
declare function SectionHeader({ title, level, dot, tag, tagTone, meta, description, icon, accent, size, ...rest }: SectionHeaderProps): react.JSX.Element;
|
|
421
|
+
declare function SectionHeader({ title, level, dot, tag, tagTone, meta, description, icon, accent, size, divider, metaUppercase, ...rest }: SectionHeaderProps): react.JSX.Element;
|
|
355
422
|
|
|
356
423
|
declare const TONE$7: {
|
|
357
424
|
readonly danger: "bg-badge-advanced-bg text-badge-advanced-text";
|
|
@@ -359,7 +426,7 @@ declare const TONE$7: {
|
|
|
359
426
|
readonly success: "bg-badge-beginner-bg text-badge-beginner-text";
|
|
360
427
|
readonly warning: "bg-badge-amber-bg text-badge-amber-text";
|
|
361
428
|
};
|
|
362
|
-
declare const SIZE$
|
|
429
|
+
declare const SIZE$9: {
|
|
363
430
|
readonly sm: "gap-space-xs rounded-lg p-space-sm";
|
|
364
431
|
readonly md: "gap-space-sm rounded-xl p-space-md";
|
|
365
432
|
};
|
|
@@ -370,7 +437,7 @@ type CalloutProps = NativeProps<'div', {
|
|
|
370
437
|
/** false for static content (pros/cons): no status/alert role. */
|
|
371
438
|
live?: boolean;
|
|
372
439
|
icon?: string;
|
|
373
|
-
size?: keyof typeof SIZE$
|
|
440
|
+
size?: keyof typeof SIZE$9;
|
|
374
441
|
accent?: boolean;
|
|
375
442
|
children: ReactNode;
|
|
376
443
|
}>;
|
|
@@ -398,9 +465,9 @@ declare const STATUS: {
|
|
|
398
465
|
readonly label: "Pending";
|
|
399
466
|
};
|
|
400
467
|
};
|
|
401
|
-
declare const VARIANT$
|
|
402
|
-
readonly plain: "py-space-sm";
|
|
403
|
-
readonly boxed: "
|
|
468
|
+
declare const VARIANT$5: {
|
|
469
|
+
readonly plain: "items-start py-space-sm";
|
|
470
|
+
readonly boxed: "items-center rounded bg-surface-subtle p-space-sm";
|
|
404
471
|
};
|
|
405
472
|
type ResultRowProps = NativeProps<'div', {
|
|
406
473
|
status: keyof typeof STATUS;
|
|
@@ -408,7 +475,7 @@ type ResultRowProps = NativeProps<'div', {
|
|
|
408
475
|
detail?: ReactNode;
|
|
409
476
|
meta?: ReactNode;
|
|
410
477
|
badge?: ReactNode;
|
|
411
|
-
variant?: keyof typeof VARIANT$
|
|
478
|
+
variant?: keyof typeof VARIANT$5;
|
|
412
479
|
selected?: boolean;
|
|
413
480
|
titleMono?: boolean;
|
|
414
481
|
}>;
|
|
@@ -441,8 +508,10 @@ type EmptyStateProps = NativeProps<'div', {
|
|
|
441
508
|
/** Large mono numeral such as "404"; replaces the icon. */
|
|
442
509
|
code?: string;
|
|
443
510
|
tone?: keyof typeof TONE$6;
|
|
511
|
+
/** Heading level for the title (1 when the state is the whole page). */
|
|
512
|
+
headingLevel?: 1 | 2 | 3;
|
|
444
513
|
}>;
|
|
445
|
-
declare function EmptyState({ icon, title, description, action, media, code, tone, ...rest }: EmptyStateProps): react.JSX.Element;
|
|
514
|
+
declare function EmptyState({ icon, title, description, action, media, code, tone, headingLevel, ...rest }: EmptyStateProps): react.JSX.Element;
|
|
446
515
|
|
|
447
516
|
type CheckListProps = NativeProps<'ul', {
|
|
448
517
|
items: ReactNode[];
|
|
@@ -453,9 +522,24 @@ type CheckListProps = NativeProps<'ul', {
|
|
|
453
522
|
declare function CheckList({ items, icon, tone, ...rest }: CheckListProps): react.JSX.Element;
|
|
454
523
|
|
|
455
524
|
declare const TONE$5: {
|
|
456
|
-
readonly default: "bg-surface-elevated
|
|
457
|
-
readonly subtle: "bg-surface-subtle
|
|
458
|
-
readonly inverse: "bg-brand-obsidian
|
|
525
|
+
readonly default: "bg-surface-elevated text-on-surface";
|
|
526
|
+
readonly subtle: "bg-surface-subtle text-on-surface";
|
|
527
|
+
readonly inverse: "bg-brand-obsidian text-on-primary";
|
|
528
|
+
};
|
|
529
|
+
declare const SHADOW: {
|
|
530
|
+
readonly none: "";
|
|
531
|
+
readonly sm: "shadow-sm";
|
|
532
|
+
readonly md: "shadow-md";
|
|
533
|
+
readonly xl: "shadow-xl";
|
|
534
|
+
};
|
|
535
|
+
declare const BAR_TONE: {
|
|
536
|
+
readonly default: "bg-surface-subtle";
|
|
537
|
+
readonly slate: "bg-brand-slate";
|
|
538
|
+
readonly none: "";
|
|
539
|
+
};
|
|
540
|
+
declare const BAR_DENSITY: {
|
|
541
|
+
readonly md: "px-space-lg py-space-sm";
|
|
542
|
+
readonly sm: "px-space-md py-space-sm";
|
|
459
543
|
};
|
|
460
544
|
declare const PATTERN: {
|
|
461
545
|
readonly none: "";
|
|
@@ -471,7 +555,15 @@ declare const HEIGHT$3: {
|
|
|
471
555
|
readonly sm: "h-30";
|
|
472
556
|
readonly md: "h-35";
|
|
473
557
|
};
|
|
474
|
-
type
|
|
558
|
+
type BarProps = {
|
|
559
|
+
/** Hairline between the bar and the body (default false: Stitch bars are tinted, not ruled). */
|
|
560
|
+
divider?: boolean;
|
|
561
|
+
/** md: 24px sides; sm: 16px sides. */
|
|
562
|
+
density?: keyof typeof BAR_DENSITY;
|
|
563
|
+
/** slate: the #1E293B toolbar used on dark workbench cards. */
|
|
564
|
+
tone?: keyof typeof BAR_TONE;
|
|
565
|
+
};
|
|
566
|
+
type CardHeaderProps = NativeProps<'div', BarProps & {
|
|
475
567
|
start?: ReactNode;
|
|
476
568
|
end?: ReactNode;
|
|
477
569
|
children?: ReactNode;
|
|
@@ -484,36 +576,46 @@ type CardMediaProps = NativeProps<'div', {
|
|
|
484
576
|
caption?: ReactNode;
|
|
485
577
|
children?: ReactNode;
|
|
486
578
|
}>;
|
|
487
|
-
type CardFooterProps = NativeProps<'div', {
|
|
579
|
+
type CardFooterProps = NativeProps<'div', BarProps & {
|
|
488
580
|
children: ReactNode;
|
|
489
581
|
}>;
|
|
490
|
-
declare function CardHeader({ start, end, children, ...rest }: CardHeaderProps): react.JSX.Element;
|
|
582
|
+
declare function CardHeader({ start, end, children, divider, density, tone, ...rest }: CardHeaderProps): react.JSX.Element;
|
|
491
583
|
declare function CardMedia({ pattern, aspect, height, caption, children, ...rest }: CardMediaProps): react.JSX.Element;
|
|
492
|
-
declare function CardFooter({ children, ...rest }: CardFooterProps): react.JSX.Element;
|
|
584
|
+
declare function CardFooter({ children, divider, density, tone, ...rest }: CardFooterProps): react.JSX.Element;
|
|
493
585
|
type CardOwnProps = {
|
|
494
586
|
padding?: Responsive<Space>;
|
|
495
587
|
interactive?: boolean;
|
|
496
588
|
tone?: keyof typeof TONE$5;
|
|
497
589
|
pattern?: keyof typeof PATTERN;
|
|
590
|
+
/** Resting shadow (default sm). */
|
|
591
|
+
shadow?: keyof typeof SHADOW;
|
|
592
|
+
/** Adds a 1px border-subtle hairline. */
|
|
593
|
+
outlined?: boolean;
|
|
594
|
+
/** Gap between body children (default sm, 8px). */
|
|
595
|
+
gap?: Responsive<Space>;
|
|
596
|
+
/** Take the parent's full height; the body shrinks so a growing child (an editor) fits. */
|
|
597
|
+
fill?: boolean;
|
|
498
598
|
children?: ReactNode;
|
|
499
599
|
};
|
|
500
600
|
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;
|
|
601
|
+
declare function CardRoot<E extends ElementType = 'div'>({ as, padding, interactive, tone, pattern, shadow, outlined, gap, fill, children, ...rest }: CardProps<E>): react.JSX.Element;
|
|
502
602
|
declare const Card: typeof CardRoot & {
|
|
503
603
|
Header: typeof CardHeader;
|
|
504
604
|
Media: typeof CardMedia;
|
|
505
605
|
Footer: typeof CardFooter;
|
|
506
606
|
};
|
|
507
607
|
|
|
508
|
-
type ButtonVariant = 'primary' | 'secondary' | 'subtle' | 'ghost' | 'danger' | 'brand' | 'accent';
|
|
509
|
-
declare const SIZE$
|
|
608
|
+
type ButtonVariant = 'primary' | 'secondary' | 'raised' | 'subtle' | 'ghost' | 'slate' | 'danger' | 'brand' | 'accent';
|
|
609
|
+
declare const SIZE$8: {
|
|
610
|
+
readonly xs: "px-space-md py-space-xs";
|
|
611
|
+
readonly ms: "px-space-lg py-space-sm";
|
|
510
612
|
readonly sm: "h-8 px-space-md";
|
|
511
613
|
readonly md: "h-10 px-space-lg";
|
|
512
614
|
readonly lg: "h-12 px-space-lg";
|
|
513
615
|
};
|
|
514
616
|
type ButtonOwnProps = {
|
|
515
617
|
variant?: ButtonVariant;
|
|
516
|
-
size?: keyof typeof SIZE$
|
|
618
|
+
size?: keyof typeof SIZE$8;
|
|
517
619
|
icon?: string;
|
|
518
620
|
iconRight?: string;
|
|
519
621
|
iconTone?: Tone;
|
|
@@ -528,23 +630,24 @@ type ButtonOwnProps = {
|
|
|
528
630
|
type ButtonProps<E extends ElementType = 'button'> = PolyProps<E, ButtonOwnProps>;
|
|
529
631
|
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
632
|
|
|
531
|
-
declare const VARIANT$
|
|
633
|
+
declare const VARIANT$4: {
|
|
532
634
|
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-
|
|
635
|
+
readonly subtle: "bg-surface-subtle text-on-surface-variant hover:bg-surface-container hover:text-on-surface";
|
|
534
636
|
readonly secondary: "border border-border-subtle bg-surface-elevated text-on-surface hover:bg-surface-muted";
|
|
535
637
|
readonly primary: "bg-ink text-on-ink hover:bg-ink-hover";
|
|
536
638
|
};
|
|
537
|
-
declare const SIZE$
|
|
639
|
+
declare const SIZE$7: {
|
|
538
640
|
readonly xs: "size-6";
|
|
539
641
|
readonly sm: "size-8";
|
|
642
|
+
readonly ms: "size-9";
|
|
540
643
|
readonly md: "size-10";
|
|
541
644
|
};
|
|
542
645
|
type IconButtonOwnProps = {
|
|
543
646
|
icon: string;
|
|
544
647
|
/** Accessible name and tooltip. Include what `dot`/`badge` mean (e.g. "Notifications, 3 unread"). */
|
|
545
648
|
label: string;
|
|
546
|
-
variant?: keyof typeof VARIANT$
|
|
547
|
-
size?: keyof typeof SIZE$
|
|
649
|
+
variant?: keyof typeof VARIANT$4;
|
|
650
|
+
size?: keyof typeof SIZE$7;
|
|
548
651
|
dot?: StatusTone;
|
|
549
652
|
badge?: ReactNode;
|
|
550
653
|
children?: never;
|
|
@@ -552,14 +655,33 @@ type IconButtonOwnProps = {
|
|
|
552
655
|
type IconButtonProps<E extends ElementType = 'button'> = PolyProps<E, IconButtonOwnProps>;
|
|
553
656
|
declare function IconButton<E extends ElementType = 'button'>({ as, icon, label, variant, size, dot, badge, ...rest }: IconButtonProps<E>): react.JSX.Element;
|
|
554
657
|
|
|
658
|
+
declare const VARIANT$3: {
|
|
659
|
+
readonly outline: "rounded border border-border-subtle bg-surface-subtle";
|
|
660
|
+
readonly raised: "rounded bg-surface-elevated shadow-sm";
|
|
661
|
+
};
|
|
555
662
|
type KbdProps = NativeProps<'kbd', {
|
|
663
|
+
variant?: keyof typeof VARIANT$3;
|
|
556
664
|
children: ReactNode;
|
|
557
665
|
}>;
|
|
558
|
-
declare function Kbd({ children, ...rest }: KbdProps): react.JSX.Element;
|
|
666
|
+
declare function Kbd({ variant, children, ...rest }: KbdProps): react.JSX.Element;
|
|
559
667
|
|
|
560
|
-
declare const SIZE$
|
|
561
|
-
readonly sm: "h-8";
|
|
562
|
-
readonly
|
|
668
|
+
declare const SIZE$6: {
|
|
669
|
+
readonly sm: "h-8 px-space-sm";
|
|
670
|
+
readonly ms: "h-9 px-space-sm";
|
|
671
|
+
readonly md: "h-10 px-space-sm";
|
|
672
|
+
readonly lg: "h-11 px-space-md";
|
|
673
|
+
};
|
|
674
|
+
declare const WIDTH$1: {
|
|
675
|
+
readonly auto: "";
|
|
676
|
+
readonly full: "w-full";
|
|
677
|
+
readonly sm: "w-64";
|
|
678
|
+
readonly md: "w-80";
|
|
679
|
+
readonly lg: "w-full max-w-xl";
|
|
680
|
+
};
|
|
681
|
+
declare const VARIANT$2: {
|
|
682
|
+
readonly outline: "border bg-surface-subtle focus-within:ring-2";
|
|
683
|
+
readonly filled: "bg-surface-subtle hover:bg-surface-container/40 focus-within:ring-1";
|
|
684
|
+
readonly raised: "bg-surface-elevated shadow-sm focus-within:ring-2";
|
|
563
685
|
};
|
|
564
686
|
type TextFieldProps = NativeProps<'input', {
|
|
565
687
|
label: string;
|
|
@@ -571,38 +693,70 @@ type TextFieldProps = NativeProps<'input', {
|
|
|
571
693
|
labelEnd?: ReactNode;
|
|
572
694
|
/** Adds a show/hide toggle for password fields. */
|
|
573
695
|
revealable?: boolean;
|
|
574
|
-
size?: keyof typeof SIZE$
|
|
696
|
+
size?: keyof typeof SIZE$6;
|
|
697
|
+
variant?: keyof typeof VARIANT$2;
|
|
698
|
+
/** Put the icon after the input instead of before it. */
|
|
699
|
+
iconPosition?: 'start' | 'end';
|
|
700
|
+
/** Field width: sm 16rem, md 20rem, lg fills up to 36rem, full; default auto. */
|
|
701
|
+
width?: keyof typeof WIDTH$1;
|
|
575
702
|
}>;
|
|
576
|
-
declare function TextField({ label, hideLabel, icon, hint, error, labelEnd, revealable, size, id, type, ...rest }: TextFieldProps): react.JSX.Element;
|
|
703
|
+
declare function TextField({ label, hideLabel, icon, hint, error, labelEnd, revealable, size, variant, iconPosition, width, id, type, ...rest }: TextFieldProps): react.JSX.Element;
|
|
577
704
|
|
|
578
705
|
type SelectOption = {
|
|
579
706
|
value: string;
|
|
580
707
|
label: string;
|
|
581
708
|
};
|
|
709
|
+
declare const VARIANT$1: {
|
|
710
|
+
readonly outline: "border border-border-subtle bg-surface-subtle";
|
|
711
|
+
readonly raised: "bg-surface-elevated shadow-sm";
|
|
712
|
+
};
|
|
713
|
+
declare const SIZE$5: {
|
|
714
|
+
readonly md: "h-10 pl-space-sm font-body-md text-body-md";
|
|
715
|
+
readonly lg: "h-11 pl-space-md font-body-sm text-body-sm";
|
|
716
|
+
};
|
|
582
717
|
type SelectProps = NativeProps<'select', {
|
|
583
718
|
label: string;
|
|
584
719
|
hideLabel?: boolean;
|
|
585
720
|
options: SelectOption[];
|
|
721
|
+
variant?: keyof typeof VARIANT$1;
|
|
722
|
+
size?: keyof typeof SIZE$5;
|
|
586
723
|
children?: never;
|
|
587
724
|
}>;
|
|
588
|
-
declare function Select({ label, hideLabel, options, id, ...rest }: SelectProps): react.JSX.Element;
|
|
725
|
+
declare function Select({ label, hideLabel, options, variant, size, id, ...rest }: SelectProps): react.JSX.Element;
|
|
589
726
|
|
|
590
727
|
/** `panelId` links a tablist tab to a `<TabPanel id={panelId}>` (aria-controls / aria-labelledby). */
|
|
591
728
|
type TabItem = {
|
|
592
729
|
id: string;
|
|
593
730
|
label: ReactNode;
|
|
594
|
-
count?:
|
|
731
|
+
count?: ReactNode;
|
|
732
|
+
/** Colour of the count pill (nav variant). */
|
|
733
|
+
countTone?: BadgeTone;
|
|
595
734
|
badge?: ReactNode;
|
|
596
735
|
dot?: StatusTone;
|
|
736
|
+
icon?: string;
|
|
597
737
|
href?: string;
|
|
598
738
|
as?: ElementType;
|
|
599
739
|
panelId?: string;
|
|
600
|
-
|
|
740
|
+
/** Not available yet: rendered as text with aria-disabled, never as a link or selectable tab. */
|
|
741
|
+
disabled?: boolean;
|
|
742
|
+
/** Native tooltip (e.g. "Coming soon" on a disabled item). */
|
|
743
|
+
title?: string;
|
|
744
|
+
/** Hide this item below a breakpoint (lower-priority nav entries on crowded bars). */
|
|
745
|
+
hideBelow?: keyof typeof HIDE_BELOW;
|
|
746
|
+
};
|
|
747
|
+
declare const HIDE_BELOW: {
|
|
748
|
+
readonly sm: "hidden sm:flex";
|
|
749
|
+
readonly md: "hidden md:flex";
|
|
750
|
+
readonly lg: "hidden lg:flex";
|
|
751
|
+
readonly xl: "hidden xl:flex";
|
|
752
|
+
readonly '2xl': "hidden 2xl:flex";
|
|
753
|
+
};
|
|
754
|
+
type Variant = 'underline' | 'pills' | 'nav' | 'solid' | 'label';
|
|
601
755
|
type TabsProps = NativeProps<'div', {
|
|
602
756
|
items: TabItem[];
|
|
603
757
|
value: string;
|
|
604
758
|
onChange?: (id: string) => void;
|
|
605
|
-
variant?:
|
|
759
|
+
variant?: Variant;
|
|
606
760
|
label: string;
|
|
607
761
|
children?: never;
|
|
608
762
|
}>;
|
|
@@ -624,14 +778,19 @@ type SegmentedOption = {
|
|
|
624
778
|
hideLabel?: boolean;
|
|
625
779
|
dot?: StatusTone;
|
|
626
780
|
};
|
|
781
|
+
declare const TRACK: {
|
|
782
|
+
readonly default: "rounded-lg border border-border-subtle bg-surface-subtle p-space-2xs";
|
|
783
|
+
readonly label: "";
|
|
784
|
+
};
|
|
627
785
|
type SegmentedControlProps = NativeProps<'div', {
|
|
628
786
|
label: string;
|
|
629
787
|
options: SegmentedOption[];
|
|
630
788
|
value: string;
|
|
631
789
|
onChange: (value: string) => void;
|
|
790
|
+
variant?: keyof typeof TRACK;
|
|
632
791
|
children?: never;
|
|
633
792
|
}>;
|
|
634
|
-
declare function SegmentedControl({ label, options, value, onChange, ...rest }: SegmentedControlProps): react.JSX.Element;
|
|
793
|
+
declare function SegmentedControl({ label, options, value, onChange, variant, ...rest }: SegmentedControlProps): react.JSX.Element;
|
|
635
794
|
|
|
636
795
|
declare const SIZE$4: {
|
|
637
796
|
readonly sm: "max-w-sm";
|
|
@@ -710,13 +869,18 @@ type StatusItemProps = NativeProps<'span', {
|
|
|
710
869
|
children: ReactNode;
|
|
711
870
|
}>;
|
|
712
871
|
declare function StatusItem({ icon, tone, children, ...rest }: StatusItemProps): react.JSX.Element;
|
|
872
|
+
declare const BAR: {
|
|
873
|
+
readonly default: "h-7 border-t border-border-subtle bg-surface-subtle";
|
|
874
|
+
readonly raised: "h-9 bg-surface-container";
|
|
875
|
+
};
|
|
713
876
|
type StatusBarProps = NativeProps<'footer', {
|
|
714
877
|
start?: ReactNode;
|
|
715
878
|
end?: ReactNode;
|
|
716
879
|
label?: string;
|
|
880
|
+
tone?: keyof typeof BAR;
|
|
717
881
|
children?: never;
|
|
718
882
|
}>;
|
|
719
|
-
declare function StatusBarRoot({ start, end, label, ...rest }: StatusBarProps): react.JSX.Element;
|
|
883
|
+
declare function StatusBarRoot({ start, end, label, tone, ...rest }: StatusBarProps): react.JSX.Element;
|
|
720
884
|
declare const StatusBar: typeof StatusBarRoot & {
|
|
721
885
|
Item: typeof StatusItem;
|
|
722
886
|
};
|
|
@@ -735,12 +899,16 @@ type MetricTileProps = NativeProps<'div', {
|
|
|
735
899
|
icon?: string;
|
|
736
900
|
hint?: ReactNode;
|
|
737
901
|
hintTone?: Tone;
|
|
902
|
+
/** centered: big value over a small label (hero stats). */
|
|
903
|
+
variant?: 'default' | 'centered';
|
|
738
904
|
}>;
|
|
739
|
-
declare function MetricTile({ label, value, tone, icon, hint, hintTone, ...rest }: MetricTileProps): react.JSX.Element;
|
|
905
|
+
declare function MetricTile({ label, value, tone, icon, hint, hintTone, variant, ...rest }: MetricTileProps): react.JSX.Element;
|
|
740
906
|
|
|
741
907
|
declare const AVATAR_SIZE: {
|
|
742
908
|
readonly sm: "size-7 text-[11px]";
|
|
909
|
+
readonly ms: "size-8 text-xs";
|
|
743
910
|
readonly md: "size-9 text-xs";
|
|
911
|
+
readonly ml: "size-10 text-sm";
|
|
744
912
|
readonly lg: "size-12 text-sm";
|
|
745
913
|
};
|
|
746
914
|
declare const SHAPE$2: {
|
|
@@ -792,9 +960,11 @@ type CountdownProps = NativeProps<'span', {
|
|
|
792
960
|
warnAt?: number;
|
|
793
961
|
onExpire?: () => void;
|
|
794
962
|
label?: string;
|
|
963
|
+
/** chip: tinted pill with mono digits and a brand timer icon (workspace bar). */
|
|
964
|
+
variant?: 'plain' | 'chip';
|
|
795
965
|
children?: never;
|
|
796
966
|
}>;
|
|
797
|
-
declare function Countdown({ seconds, until, direction, warnAt, onExpire, label, ...rest }: CountdownProps): react.JSX.Element;
|
|
967
|
+
declare function Countdown({ seconds, until, direction, warnAt, onExpire, label, variant, ...rest }: CountdownProps): react.JSX.Element;
|
|
798
968
|
|
|
799
969
|
type FileNode = {
|
|
800
970
|
path: string;
|
|
@@ -861,6 +1031,22 @@ type DrawerProps = NativeProps<'div', {
|
|
|
861
1031
|
/** Modal slide-over (mobile navigation, side panels). Native props go to the panel. */
|
|
862
1032
|
declare function Drawer({ open, onClose, title, side, size, children, ...rest }: DrawerProps): react.ReactPortal | null;
|
|
863
1033
|
|
|
1034
|
+
type FullScreenProps = NativeProps<'div', {
|
|
1035
|
+
open: boolean;
|
|
1036
|
+
onClose: () => void;
|
|
1037
|
+
/** Accessible name of the surface. */
|
|
1038
|
+
label: string;
|
|
1039
|
+
/** Element to focus on open (default: the first focusable one). */
|
|
1040
|
+
initialFocusRef?: RefObject<HTMLElement | null>;
|
|
1041
|
+
children?: ReactNode;
|
|
1042
|
+
}>;
|
|
1043
|
+
/**
|
|
1044
|
+
* A modal surface over the whole viewport (e.g. an IDE in focus mode). Escape closes it unless a widget inside
|
|
1045
|
+
* already handled the key; focus stays inside and returns to the opener; the page behind doesn't scroll.
|
|
1046
|
+
* Children fill it: give the child `fill`, or use a Workbench.
|
|
1047
|
+
*/
|
|
1048
|
+
declare function FullScreen({ open, onClose, label, initialFocusRef, children, ...rest }: FullScreenProps): react.ReactPortal | null;
|
|
1049
|
+
|
|
864
1050
|
declare const TONE$1: {
|
|
865
1051
|
readonly brand: "text-fg-brand hover:text-fg-brand-hover";
|
|
866
1052
|
readonly default: "text-on-surface hover:text-ink";
|
|
@@ -936,6 +1122,10 @@ declare const HEIGHT$2: {
|
|
|
936
1122
|
readonly sm: "h-12";
|
|
937
1123
|
readonly md: "h-16";
|
|
938
1124
|
};
|
|
1125
|
+
declare const DIVIDER: {
|
|
1126
|
+
readonly shadow: "shadow-appbar";
|
|
1127
|
+
readonly border: "border-b border-border-subtle";
|
|
1128
|
+
};
|
|
939
1129
|
type AppBarProps = NativeProps<'header', {
|
|
940
1130
|
position?: keyof typeof POSITION;
|
|
941
1131
|
start?: ReactNode;
|
|
@@ -946,9 +1136,11 @@ type AppBarProps = NativeProps<'header', {
|
|
|
946
1136
|
height?: keyof typeof HEIGHT$2;
|
|
947
1137
|
/** Constrain the content to the 80rem page column. */
|
|
948
1138
|
contained?: boolean;
|
|
1139
|
+
/** How the bar separates from the page (default a soft shadow, as in Stitch). */
|
|
1140
|
+
divider?: keyof typeof DIVIDER;
|
|
949
1141
|
children?: never;
|
|
950
1142
|
}>;
|
|
951
|
-
declare function AppBar({ position, start, center, end, blur, height, contained, ...rest }: AppBarProps): react.JSX.Element;
|
|
1143
|
+
declare function AppBar({ position, start, center, end, blur, height, contained, divider, ...rest }: AppBarProps): react.JSX.Element;
|
|
952
1144
|
|
|
953
1145
|
type NavItem = {
|
|
954
1146
|
id: string;
|
|
@@ -1134,11 +1326,13 @@ declare function VerdictBanner({ tone, icon, title, badge, meta, actions, ...res
|
|
|
1134
1326
|
type CheckboxProps = NativeProps<'input', {
|
|
1135
1327
|
label: ReactNode;
|
|
1136
1328
|
description?: ReactNode;
|
|
1329
|
+
/** sm: 13px label for compact side-rail lists. */
|
|
1330
|
+
size?: 'sm' | 'md';
|
|
1137
1331
|
/** Strike the label through while checked (task lists). */
|
|
1138
1332
|
strikeWhenChecked?: boolean;
|
|
1139
1333
|
indeterminate?: boolean;
|
|
1140
1334
|
}>;
|
|
1141
|
-
declare function Checkbox({ label, description, strikeWhenChecked, indeterminate, id, ...rest }: CheckboxProps): react.JSX.Element;
|
|
1335
|
+
declare function Checkbox({ label, description, strikeWhenChecked, indeterminate, size, id, ...rest }: CheckboxProps): react.JSX.Element;
|
|
1142
1336
|
|
|
1143
1337
|
type SwitchProps = NativeProps<'button', {
|
|
1144
1338
|
label: string;
|
|
@@ -1227,10 +1421,21 @@ type UmlClassProps = NativeProps<'div', {
|
|
|
1227
1421
|
emphasis?: keyof typeof EMPHASIS;
|
|
1228
1422
|
size?: keyof typeof SIZE;
|
|
1229
1423
|
dashed?: boolean;
|
|
1424
|
+
/** tinted: borderless card with a tinted title block (marketing/preview diagrams). */
|
|
1425
|
+
variant?: 'box' | 'tinted';
|
|
1426
|
+
/** Title block tint for the tinted variant. */
|
|
1427
|
+
headerTone?: keyof typeof HEADER_TONE;
|
|
1428
|
+
/** Member columns for the tinted variant. */
|
|
1429
|
+
columns?: 1 | 2;
|
|
1230
1430
|
children?: never;
|
|
1231
1431
|
}>;
|
|
1432
|
+
declare const HEADER_TONE: {
|
|
1433
|
+
readonly container: "bg-surface-container";
|
|
1434
|
+
readonly info: "bg-badge-intermediate-bg";
|
|
1435
|
+
readonly strong: "bg-surface-container-high";
|
|
1436
|
+
};
|
|
1232
1437
|
/** UML class box: name compartment, attributes, methods. */
|
|
1233
|
-
declare function UmlClass({ name, stereotype, attributes, methods, tag, emphasis, size, dashed, ...rest }: UmlClassProps): react.JSX.Element;
|
|
1438
|
+
declare function UmlClass({ name, stereotype, attributes, methods, tag, emphasis, size, dashed, variant, headerTone, columns, ...rest }: UmlClassProps): react.JSX.Element;
|
|
1234
1439
|
|
|
1235
1440
|
type UmlNode = {
|
|
1236
1441
|
id: string;
|
|
@@ -1330,12 +1535,14 @@ declare const ABOVE: {
|
|
|
1330
1535
|
readonly md: "hidden md:contents";
|
|
1331
1536
|
readonly lg: "hidden lg:contents";
|
|
1332
1537
|
readonly xl: "hidden xl:contents";
|
|
1538
|
+
readonly '2xl': "hidden 2xl:contents";
|
|
1333
1539
|
};
|
|
1334
1540
|
declare const BELOW: {
|
|
1335
1541
|
readonly sm: "contents sm:hidden";
|
|
1336
1542
|
readonly md: "contents md:hidden";
|
|
1337
1543
|
readonly lg: "contents lg:hidden";
|
|
1338
1544
|
readonly xl: "contents xl:hidden";
|
|
1545
|
+
readonly '2xl': "contents 2xl:hidden";
|
|
1339
1546
|
};
|
|
1340
1547
|
type ShowProps = NativeProps<'div', {
|
|
1341
1548
|
above?: keyof typeof ABOVE;
|
|
@@ -1345,4 +1552,4 @@ type ShowProps = NativeProps<'div', {
|
|
|
1345
1552
|
/** Render children only from `above` up, or only below `below`. Uses display: contents, so it adds no box. */
|
|
1346
1553
|
declare function Show({ above, below, children, ...rest }: ShowProps): react.JSX.Element;
|
|
1347
1554
|
|
|
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 };
|
|
1555
|
+
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, FullScreen, type FullScreenProps, 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 };
|