gridsmith-ui 0.8.0 → 0.9.1
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/dist/charts.d.ts +22 -12
- package/dist/charts.js +86 -17
- package/dist/charts.js.map +1 -1
- package/dist/chat.js +4 -3
- package/dist/chat.js.map +1 -1
- package/dist/{chunk-RLNIRPOH.js → chunk-CQADS7JZ.js} +5 -45
- package/dist/chunk-CQADS7JZ.js.map +1 -0
- package/dist/{chunk-VXKSQ56H.js → chunk-ENBESZS2.js} +3 -3
- package/dist/{chunk-VXKSQ56H.js.map → chunk-ENBESZS2.js.map} +1 -1
- package/dist/chunk-FDIFQ5UF.js +67 -0
- package/dist/chunk-FDIFQ5UF.js.map +1 -0
- package/dist/{chunk-QVNGQ64Q.js → chunk-OVVRMMCO.js} +13 -5
- package/dist/chunk-OVVRMMCO.js.map +1 -0
- package/dist/chunk-PKLVP5ZB.js +49 -0
- package/dist/chunk-PKLVP5ZB.js.map +1 -0
- package/dist/chunk-RG4KUCRS.js +9 -0
- package/dist/chunk-RG4KUCRS.js.map +1 -0
- package/dist/chunk-Z37HO5NU.js +950 -0
- package/dist/chunk-Z37HO5NU.js.map +1 -0
- package/dist/data-grid.d.ts +3 -1
- package/dist/data-grid.js +40 -10
- package/dist/data-grid.js.map +1 -1
- package/dist/index.d.ts +76 -65
- package/dist/index.js +874 -1321
- package/dist/index.js.map +1 -1
- package/dist/kanban.d.ts +7 -1
- package/dist/kanban.js +23 -6
- package/dist/kanban.js.map +1 -1
- package/dist/resizable.d.ts +48 -2
- package/dist/resizable.js +151 -4
- package/dist/resizable.js.map +1 -1
- package/dist/roots.css +8 -4
- package/dist/{use-breakpoint-BfKzmkxx.d.ts → table-utils-GounRE6s.d.ts} +4 -1
- package/dist/tokens.css +6 -4
- package/dist-static/tokens.css +6 -4
- package/package.json +1 -1
- package/dist/chunk-5B2ZFL2H.js +0 -89
- package/dist/chunk-5B2ZFL2H.js.map +0 -1
- package/dist/chunk-QVNGQ64Q.js.map +0 -1
- package/dist/chunk-RLNIRPOH.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,14 @@ import * as react from 'react';
|
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, Ref, CSSProperties, ReactElement, HTMLAttributes, AnchorHTMLAttributes, ComponentType } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { IconName } from './icons.js';
|
|
5
|
-
import { B as BreakpointKey } from './
|
|
6
|
-
export { a as BreakpointWidthProvider, u as useBreakpoint } from './
|
|
5
|
+
import { C as ColumnKind, B as BreakpointKey } from './table-utils-GounRE6s.js';
|
|
6
|
+
export { a as BreakpointWidthProvider, u as useBreakpoint } from './table-utils-GounRE6s.js';
|
|
7
7
|
|
|
8
8
|
type ButtonVariant = "default" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "success" | "warning" | "link";
|
|
9
9
|
type ButtonSize = "xs" | "sm" | "md" | "lg" | "icon-xs" | "icon-sm" | "icon" | "icon-lg";
|
|
10
|
-
|
|
10
|
+
type ControlSize = "sm" | "md" | "lg";
|
|
11
|
+
declare const ControlSizeContext: react.Context<ControlSize | null>;
|
|
12
|
+
declare const ButtonSizeContext: react.Context<ControlSize | null>;
|
|
11
13
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12
14
|
variant?: ButtonVariant;
|
|
13
15
|
size?: ButtonSize;
|
|
@@ -55,8 +57,8 @@ interface BulkActionBarProps {
|
|
|
55
57
|
}
|
|
56
58
|
declare function BulkActionBar({ selectedCount, actions, onClearSelection, className }: BulkActionBarProps): react_jsx_runtime.JSX.Element | null;
|
|
57
59
|
|
|
58
|
-
type InputSize = "sm" | "md";
|
|
59
|
-
declare function Input({ className, size, error, prefix, suffix, ...props }: Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
|
|
60
|
+
type InputSize = "sm" | "md" | "lg";
|
|
61
|
+
declare function Input({ className, size: sizeProp, error, prefix, suffix, ...props }: Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
|
|
60
62
|
size?: InputSize;
|
|
61
63
|
error?: boolean;
|
|
62
64
|
prefix?: ReactNode;
|
|
@@ -88,7 +90,7 @@ interface Option {
|
|
|
88
90
|
label: string;
|
|
89
91
|
group?: string;
|
|
90
92
|
}
|
|
91
|
-
type DropdownSize = "sm" | "md";
|
|
93
|
+
type DropdownSize = "sm" | "md" | "lg";
|
|
92
94
|
interface DropdownProps {
|
|
93
95
|
options: Option[];
|
|
94
96
|
value: string | string[];
|
|
@@ -108,7 +110,7 @@ interface DropdownProps {
|
|
|
108
110
|
/** Accessible name for the trigger, for when there is no visible `label` (e.g. in a toolbar). */
|
|
109
111
|
"aria-label"?: string;
|
|
110
112
|
}
|
|
111
|
-
declare function Dropdown({ options, value, onChange, label, disabled, placeholder, multiple, searchable, size, className, ref, container, error, showChips, "aria-label": ariaLabel, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
113
|
+
declare function Dropdown({ options, value, onChange, label, disabled, placeholder, multiple, searchable, size: sizeProp, className, ref, container, error, showChips, "aria-label": ariaLabel, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
112
114
|
|
|
113
115
|
interface ComboboxOption {
|
|
114
116
|
value: string;
|
|
@@ -126,8 +128,9 @@ interface ComboboxProps {
|
|
|
126
128
|
ref?: Ref<HTMLDivElement>;
|
|
127
129
|
container?: Element | DocumentFragment;
|
|
128
130
|
error?: boolean;
|
|
131
|
+
size?: ControlSize;
|
|
129
132
|
}
|
|
130
|
-
declare function Combobox({ value, onChange, options, placeholder, disabled, loading, className, ref, container, error }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
133
|
+
declare function Combobox({ value, onChange, options, placeholder, disabled, loading, className, ref, container, error, size: sizeProp }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
131
134
|
|
|
132
135
|
type CheckboxSize = "sm" | "md";
|
|
133
136
|
interface CheckboxProps {
|
|
@@ -186,6 +189,7 @@ interface DatePickerProps {
|
|
|
186
189
|
label?: string;
|
|
187
190
|
/** Forwarded to the trigger button so an external Label htmlFor can be associated. Defaults to a generated id used by the built-in label. */
|
|
188
191
|
id?: string;
|
|
192
|
+
size?: ControlSize;
|
|
189
193
|
/** Earliest / latest selectable day (inclusive). Days outside are disabled. */
|
|
190
194
|
min?: Date;
|
|
191
195
|
max?: Date;
|
|
@@ -200,7 +204,7 @@ interface DatePickerProps {
|
|
|
200
204
|
end?: Date | null;
|
|
201
205
|
};
|
|
202
206
|
}
|
|
203
|
-
declare function DatePicker({ value, onChange, placeholder, disabled, className, ref, container, error, label, id, min, max, range }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
207
|
+
declare function DatePicker({ value, onChange, placeholder, disabled, className, ref, container, error, label, id, size: sizeProp, min, max, range }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
204
208
|
|
|
205
209
|
interface DateRange {
|
|
206
210
|
start: Date | null;
|
|
@@ -230,6 +234,7 @@ interface DateRangePickerProps {
|
|
|
230
234
|
presets?: DateRangePreset[];
|
|
231
235
|
/** First day of the week. Default 0 (Sunday). */
|
|
232
236
|
weekStartsOn?: 0 | 1;
|
|
237
|
+
size?: ControlSize;
|
|
233
238
|
}
|
|
234
239
|
declare const DEFAULT_DATE_RANGE_PRESETS: DateRangePreset[];
|
|
235
240
|
/**
|
|
@@ -238,7 +243,7 @@ declare const DEFAULT_DATE_RANGE_PRESETS: DateRangePreset[];
|
|
|
238
243
|
* the end (clicking before the start restarts the selection). Closes on
|
|
239
244
|
* Escape or outside click. Pair with <Field> for label/hint/error wiring.
|
|
240
245
|
*/
|
|
241
|
-
declare function DateRangePicker({ value, onChange, placeholder, disabled, error, label, id, className, ref, container, min, max, presets, weekStartsOn, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
246
|
+
declare function DateRangePicker({ value, onChange, placeholder, disabled, error, label, id, className, ref, container, min, max, presets, weekStartsOn, size: sizeProp, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
242
247
|
|
|
243
248
|
interface FileUploadProps {
|
|
244
249
|
onFiles: (files: File[]) => void;
|
|
@@ -284,8 +289,9 @@ interface TimePickerProps {
|
|
|
284
289
|
error?: boolean;
|
|
285
290
|
/** Forwarded to the trigger button so a Label htmlFor can be associated. */
|
|
286
291
|
id?: string;
|
|
292
|
+
size?: ControlSize;
|
|
287
293
|
}
|
|
288
|
-
declare function TimePicker({ value, onChange, use24Hour, minuteStep, disabled, className, ref, container, error, id, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
294
|
+
declare function TimePicker({ value, onChange, use24Hour, minuteStep, disabled, className, ref, container, error, id, size: sizeProp, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
289
295
|
|
|
290
296
|
interface NumberInputProps {
|
|
291
297
|
value: number;
|
|
@@ -305,7 +311,7 @@ interface NumberInputProps {
|
|
|
305
311
|
/** Forwarded to the inner input element so a Label htmlFor can be associated. */
|
|
306
312
|
id?: string;
|
|
307
313
|
}
|
|
308
|
-
declare function NumberInput({ value, onChange, min, max, step, disabled, placeholder, prefix, suffix, size, className, error, allowDecimals, id, }: NumberInputProps): react_jsx_runtime.JSX.Element;
|
|
314
|
+
declare function NumberInput({ value, onChange, min, max, step, disabled, placeholder, prefix, suffix, size: sizeProp, className, error, allowDecimals, id, }: NumberInputProps): react_jsx_runtime.JSX.Element;
|
|
309
315
|
|
|
310
316
|
interface TagInputProps {
|
|
311
317
|
value: string[];
|
|
@@ -334,7 +340,7 @@ interface PinInputProps {
|
|
|
334
340
|
/** Forwarded to the first pin box so a Label htmlFor can be associated. */
|
|
335
341
|
id?: string;
|
|
336
342
|
}
|
|
337
|
-
declare function PinInput({ value, onChange, length, mask, disabled, size, className, error, id, }: PinInputProps): react_jsx_runtime.JSX.Element;
|
|
343
|
+
declare function PinInput({ value, onChange, length, mask, disabled, size: sizeProp, className, error, id, }: PinInputProps): react_jsx_runtime.JSX.Element;
|
|
338
344
|
|
|
339
345
|
interface RatingProps {
|
|
340
346
|
value: number;
|
|
@@ -593,6 +599,8 @@ interface Column {
|
|
|
593
599
|
};
|
|
594
600
|
/** CSS max-width for the column (e.g. "200px", "30ch"). Helps constrain wide text columns. */
|
|
595
601
|
maxWidth?: string;
|
|
602
|
+
/** Explicit column kind. When omitted the Table infers it from data values. */
|
|
603
|
+
kind?: ColumnKind;
|
|
596
604
|
}
|
|
597
605
|
type SortDir = "asc" | "desc" | null;
|
|
598
606
|
type TableDensity = "default" | "compact";
|
|
@@ -662,8 +670,11 @@ declare function Calendar({ events, view: controlledView, defaultView, onViewCha
|
|
|
662
670
|
type BadgeVariant = "default" | "neutral" | "subtle" | "success" | "success-soft" | "warning" | "warning-soft" | "error" | "error-soft" | "outline";
|
|
663
671
|
type BadgeSize = "xs" | "sm" | "md";
|
|
664
672
|
type BadgePaletteColor = 1 | 2 | 3 | 4 | 5;
|
|
673
|
+
type BadgeSeverity = "info" | "low" | "medium" | "high" | "critical";
|
|
665
674
|
interface BadgeProps {
|
|
666
675
|
variant?: BadgeVariant;
|
|
676
|
+
/** Severity shorthand — maps to a variant. When set, overrides `variant`. */
|
|
677
|
+
severity?: BadgeSeverity;
|
|
667
678
|
size?: BadgeSize;
|
|
668
679
|
/** Palette colour (1-5). Overrides variant colour with decorative palette tokens. */
|
|
669
680
|
color?: BadgePaletteColor;
|
|
@@ -676,7 +687,7 @@ interface BadgeProps {
|
|
|
676
687
|
className?: string;
|
|
677
688
|
children?: ReactNode;
|
|
678
689
|
}
|
|
679
|
-
declare function Badge({ variant, size, color, iconLeft, iconRight, maxWidth, className, children }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
690
|
+
declare function Badge({ variant, severity, size, color, iconLeft, iconRight, maxWidth, className, children }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
680
691
|
|
|
681
692
|
type TagVariant = "default" | "subtle" | "success" | "warning" | "error" | "outline";
|
|
682
693
|
type TagPaletteColor = 1 | 2 | 3 | 4 | 5;
|
|
@@ -762,6 +773,20 @@ interface EmptyStateProps {
|
|
|
762
773
|
}
|
|
763
774
|
declare function EmptyState({ icon, iconFrame, title, description, action, variant, bordered, className }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
764
775
|
|
|
776
|
+
interface EntityCellProps {
|
|
777
|
+
/** A ready-made element (an Avatar with a status, an icon), or a string: initials, or a URL when it looks like one. */
|
|
778
|
+
avatar?: ReactNode;
|
|
779
|
+
/** An image URL for the avatar. */
|
|
780
|
+
src?: string;
|
|
781
|
+
/** Initials for the avatar. Absent, and with no src or element, they are derived from `primary` ("Sarah Chen" → "SC"). */
|
|
782
|
+
initials?: string;
|
|
783
|
+
primary: string;
|
|
784
|
+
secondary?: string;
|
|
785
|
+
size?: "sm" | "md";
|
|
786
|
+
className?: string;
|
|
787
|
+
}
|
|
788
|
+
declare function EntityCell({ avatar, src, initials, primary, secondary, size, className }: EntityCellProps): react_jsx_runtime.JSX.Element;
|
|
789
|
+
|
|
765
790
|
interface SkipLinkProps {
|
|
766
791
|
/** The id of the main region (AppShell names its <main> "main"). */
|
|
767
792
|
href?: string;
|
|
@@ -1140,15 +1165,24 @@ interface StackedListItem {
|
|
|
1140
1165
|
selected?: boolean;
|
|
1141
1166
|
onClick?: () => void;
|
|
1142
1167
|
}
|
|
1168
|
+
type StackedListVariant = "list" | "articles";
|
|
1143
1169
|
interface StackedListProps {
|
|
1144
1170
|
items: StackedListItem[];
|
|
1145
1171
|
divided?: boolean;
|
|
1146
|
-
|
|
1172
|
+
/**
|
|
1173
|
+
* "list" (default): records and reading panes — the row tints on hover, the current row takes the theme's
|
|
1174
|
+
* selection treatment (rail, tint or pill), and the rows take their inset from the pane or card they sit in.
|
|
1175
|
+
* "articles": a knowledge base, a changelog — flush to the surface edges, the title colours on hover, no row
|
|
1176
|
+
* tint, no rail. Never inside a reading pane (Sprint 25.4, decision 4).
|
|
1177
|
+
*/
|
|
1178
|
+
variant?: StackedListVariant;
|
|
1147
1179
|
/** The current row in a master-detail list. Its treatment follows the theme's in-page vertical active style (rail, tint or pill), like Tabs. */
|
|
1148
1180
|
selectedId?: string | number;
|
|
1149
|
-
/** How an interactive row answers the pointer: "tint" (default) shades the row; "title" colours the title, for article lists (a knowledge base, a changelog). */
|
|
1150
|
-
hover?: "tint" | "title";
|
|
1151
1181
|
className?: string;
|
|
1182
|
+
/** @deprecated Sprint 25.4: use variant="articles". Accepted for one version. */
|
|
1183
|
+
flush?: boolean;
|
|
1184
|
+
/** @deprecated Sprint 25.4: use variant="articles" (hover="title") — the default variant tints the row. */
|
|
1185
|
+
hover?: "tint" | "title";
|
|
1152
1186
|
}
|
|
1153
1187
|
declare const StackedList: react.ForwardRefExoticComponent<StackedListProps & react.RefAttributes<HTMLUListElement>>;
|
|
1154
1188
|
|
|
@@ -1318,6 +1352,8 @@ interface AppShellTheme {
|
|
|
1318
1352
|
/** Colourful on the home page only; other pages take `otherPagesVariant`. The shell decides which page is home. */
|
|
1319
1353
|
colourfulHomeOnly?: boolean;
|
|
1320
1354
|
otherPagesVariant?: "default" | "minimal";
|
|
1355
|
+
/** Colourful: the container derives the overlap from the first content element and pulls it up. */
|
|
1356
|
+
overlap?: boolean;
|
|
1321
1357
|
};
|
|
1322
1358
|
breadcrumbs?: {
|
|
1323
1359
|
/** Inline in the header, or a contained strip the container renders above it. */
|
|
@@ -1374,49 +1410,6 @@ interface SettingsLayoutProps {
|
|
|
1374
1410
|
*/
|
|
1375
1411
|
declare function SettingsLayout({ sections, value, onChange, layout: layoutProp, railWidth, collapseBelow, "aria-label": ariaLabel, children, className, }: SettingsLayoutProps): react_jsx_runtime.JSX.Element;
|
|
1376
1412
|
|
|
1377
|
-
interface SplitViewProps {
|
|
1378
|
-
/** The list (an inbox, a queue): it scrolls on its own. */
|
|
1379
|
-
list: ReactNode;
|
|
1380
|
-
/** The selected item (a thread, a record): it fills the height and scrolls on its own. */
|
|
1381
|
-
detail: ReactNode;
|
|
1382
|
-
/** Context beside the detail (a contact, properties). Collapses to a toggle that opens it in a Drawer when the layout is narrower than `asideCollapseBelow`. */
|
|
1383
|
-
aside?: ReactNode;
|
|
1384
|
-
/** Names the aside's toggle and Drawer. */
|
|
1385
|
-
asideTitle?: string;
|
|
1386
|
-
/**
|
|
1387
|
-
* Below `collapseBelow` the list shows alone; with `detailOpen` the detail replaces it, with a Back button that calls
|
|
1388
|
-
* `onDetailClose` (detailMode "stack"). The page owns the selection, so it owns this flag.
|
|
1389
|
-
*/
|
|
1390
|
-
detailOpen?: boolean;
|
|
1391
|
-
onDetailClose?: () => void;
|
|
1392
|
-
/** "stack" (default): the detail stacks over the list below the collapse width. "route": the app navigates to the detail's own route instead, and this renders the list alone there. */
|
|
1393
|
-
detailMode?: "stack" | "route";
|
|
1394
|
-
backLabel?: string;
|
|
1395
|
-
/** Percent of the width the list takes; the divider is draggable. */
|
|
1396
|
-
listWidth?: number;
|
|
1397
|
-
listMinWidth?: number;
|
|
1398
|
-
asideWidth?: number;
|
|
1399
|
-
/** Below this width of the layout itself (px) the list and detail stop sitting side by side. */
|
|
1400
|
-
collapseBelow?: number;
|
|
1401
|
-
/** Below this width of the layout itself (px) the aside becomes a toggle. */
|
|
1402
|
-
asideCollapseBelow?: number;
|
|
1403
|
-
/** A bordered, rounded surface (inside a page with padding) instead of edge to edge (filling <main>). */
|
|
1404
|
-
bordered?: boolean;
|
|
1405
|
-
"aria-label"?: string;
|
|
1406
|
-
className?: string;
|
|
1407
|
-
}
|
|
1408
|
-
/**
|
|
1409
|
-
* The reading-pane composition (Sprint 25.2, R3): one surface with dividers —
|
|
1410
|
-
* list, detail and an optional aside — that fills the height it is given (an
|
|
1411
|
-
* AppShell's <main> already gives it) and never three cards with gaps. The
|
|
1412
|
-
* panels compose ResizablePanelGroup, so the dividers drag. Below the collapse
|
|
1413
|
-
* width, measured on the layout itself, the list shows alone and the detail
|
|
1414
|
-
* stacks over it (or the app routes to it); the aside collapses to a toggle.
|
|
1415
|
-
* The page owns the selection and assembles the contents; keyboard movement
|
|
1416
|
-
* through the list is the list's job (StackedList selectedId).
|
|
1417
|
-
*/
|
|
1418
|
-
declare function SplitView({ list, detail, aside, asideTitle, detailOpen, onDetailClose, detailMode, backLabel, listWidth, listMinWidth, asideWidth, collapseBelow, asideCollapseBelow, bordered, "aria-label": ariaLabel, className, }: SplitViewProps): react_jsx_runtime.JSX.Element;
|
|
1419
|
-
|
|
1420
1413
|
interface BreadcrumbItem$1 {
|
|
1421
1414
|
label: string;
|
|
1422
1415
|
href?: string;
|
|
@@ -1574,11 +1567,13 @@ interface SegmentedControlProps {
|
|
|
1574
1567
|
"aria-label"?: string;
|
|
1575
1568
|
/**
|
|
1576
1569
|
* Above this many options the control renders a Dropdown with the same value, onChange and options — a row of
|
|
1577
|
-
* eleven segments runs off the page (bench round 3). Default 6; raise it only where the row is known to fit.
|
|
1570
|
+
* eleven segments runs off the page (bench round 3). Default 6; raise it only where the row is known to fit. A row
|
|
1571
|
+
* that does not fit its container (a four-option range on a phone) renders the Dropdown too, and comes back as a
|
|
1572
|
+
* row when the container widens (round 10).
|
|
1578
1573
|
*/
|
|
1579
1574
|
maxOptions?: number;
|
|
1580
1575
|
}
|
|
1581
|
-
declare function SegmentedControl({ value, onChange, options, size, variant, fullWidth, onHoverChange, className, "aria-label": ariaLabel, maxOptions, }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
1576
|
+
declare function SegmentedControl({ value, onChange, options, size: sizeProp, variant, fullWidth, onHoverChange, className, "aria-label": ariaLabel, maxOptions, }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
1582
1577
|
|
|
1583
1578
|
interface BottomNavItem {
|
|
1584
1579
|
label: string;
|
|
@@ -1623,8 +1618,6 @@ interface PageHeaderProps {
|
|
|
1623
1618
|
intensity?: PageHeaderIntensity;
|
|
1624
1619
|
/** Colourful: background image URL — overlaid with accent colour */
|
|
1625
1620
|
backgroundImage?: string;
|
|
1626
|
-
/** Colourful: extra bottom padding (px) for content overlap. PageContainer pulls the content up by the same amount; the page adds no negative margin. */
|
|
1627
|
-
overlapHeight?: number;
|
|
1628
1621
|
/** Snapping: content shown only when expanded */
|
|
1629
1622
|
expandedContent?: ReactNode;
|
|
1630
1623
|
/** Snapping: scroll offset before collapse (px) */
|
|
@@ -2167,6 +2160,13 @@ interface AppShellContextValue {
|
|
|
2167
2160
|
sidebarFloating: boolean;
|
|
2168
2161
|
/** Called by Sidebar and Navbar so the shell knows the chrome that is actually rendered. Returns the unregister. */
|
|
2169
2162
|
registerChrome: (kind: "navbar" | "sidebar", position: ChromePosition) => () => void;
|
|
2163
|
+
/** True when the shell renders a Launcher above sm — PageContainer adjusts its bottom padding to clear the launcher. */
|
|
2164
|
+
hasLauncher: boolean;
|
|
2165
|
+
/** The bottom corner that launcher occupies (a ribbon occupies none), so the container reads that corner's inset variable. */
|
|
2166
|
+
launcherCorner: "bottom-right" | "bottom-left" | null;
|
|
2167
|
+
/** The shell renders an app footer under the page. Its children sit in a wrapper whose height is not definite, so a
|
|
2168
|
+
* `fill` SplitView reads `--ds-main-height` (published on the shell element) instead of `h-full`. */
|
|
2169
|
+
hasFooter: boolean;
|
|
2170
2170
|
}
|
|
2171
2171
|
declare function useAppShell(): AppShellContextValue | null;
|
|
2172
2172
|
type AppShellLayout = "sidebar" | "stacked" | "sidebar-header" | "multi-column";
|
|
@@ -2252,10 +2252,21 @@ declare const PageContainer: react.ForwardRefExoticComponent<PageContainerProps
|
|
|
2252
2252
|
interface SectionHeadingProps {
|
|
2253
2253
|
title: string;
|
|
2254
2254
|
description?: string;
|
|
2255
|
+
/** The section's buttons. Below sm they sit under the title, like PageHeader's actions. */
|
|
2255
2256
|
actions?: ReactNode;
|
|
2256
2257
|
badge?: ReactNode;
|
|
2258
|
+
/** A count beside the title (unread, items), rendered as a neutral Badge. */
|
|
2259
|
+
count?: number | string;
|
|
2260
|
+
/** A row under the title: Tabs, a TableToolbar or a SegmentedControl. The heading lays it out; pass no wrapper. */
|
|
2257
2261
|
tabs?: ReactNode;
|
|
2258
2262
|
bordered?: boolean;
|
|
2263
|
+
/**
|
|
2264
|
+
* "section" (default): a heading within a page, spaced below by --ds-heading-gap. "pane": the title block at the
|
|
2265
|
+
* top of a SplitView pane on a fill page (an inbox, a library), where there is no PageHeader — a 16 px inset that
|
|
2266
|
+
* matches the list rows under it, a rule at the bottom and no margin below (Sprint 25.4 C-9, folded in from
|
|
2267
|
+
* PaneHeader on the owner's review).
|
|
2268
|
+
*/
|
|
2269
|
+
variant?: "section" | "pane";
|
|
2259
2270
|
className?: string;
|
|
2260
2271
|
}
|
|
2261
2272
|
declare const SectionHeading: react.ForwardRefExoticComponent<SectionHeadingProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -2318,4 +2329,4 @@ interface UseTextOverflowResult {
|
|
|
2318
2329
|
*/
|
|
2319
2330
|
declare function useTextOverflow(options?: UseTextOverflowOptions): UseTextOverflowResult;
|
|
2320
2331
|
|
|
2321
|
-
export { Accordion, ActionPanel, ActionPanelGroup, Alert, type AlertPlacement, AppShell, type AppShellContextValue, type AppShellTheme, AsidePanel, type AsidePanelProps, type AsidePanelSide, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarStatus, Badge, type BadgePaletteColor, type BadgeSize, type BadgeVariant, BottomNav, type BottomNavItem, type BreadcrumbItem$1 as BreadcrumbItem, Breadcrumbs, type BreadcrumbsSeparator, type BreadcrumbsSize, type BreadcrumbsVariant, BreakpointKey, BulkActionBar, Button, ButtonSizeContext, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardSelectType, CardTitle, type CardVariant, Carousel, type ChatMessage, type ChatMessageAction, type ChatMessageLayout, ChatMessageList, type ChatMessageSender, type ChatMessageSource, type ChatMessageStatus, ChatPanel, type ChatPanelProps, type ChatPanelStatusTone, Checkbox, CheckboxGroup, CheckboxGroupItem, CodeBlock, Collapsible, ColorPicker, type Column, Combobox, CommandPalette, ContextMenu, CornerPanel, type CornerPanelEdge, type CornerPanelProps, DEFAULT_DATE_RANGE_PRESETS, DataList, DatePicker, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DescriptionItem, DescriptionList, type DescriptionListOrientation, type DescriptionListSize, Dialog, Divider, Dock, Drawer, Dropdown, DropdownMenu, type DropdownMenuDivider, type DropdownMenuEntry, type DropdownMenuItem, EmptyState, Field, type FieldControlProps, type FieldProps, FileUpload, FormWrapper, HoverCard, InlineFieldError, Input, Kbd, Label, Launcher, type LauncherEdge, type LauncherProps, type LauncherVariant, type LauncherWhenOpen, Link, type LinkProps, MentionInput, MobileHeaderMenu, type MobileHeaderMenuItemData, type MobileHeaderMenuType, NavItem, type NavItemProps, type NavItemType, NavMenu, type NavMenuItem, Navbar, type NavbarSize, type NavbarType, type NavbarVariant, NotificationCenter, NumberInput, PageContainer, type PageContainerWidth, PageHeader, type PageHeaderBehavior, type PageHeaderIntensity, type PageHeaderProps, type PageHeaderVariant, Pagination, PinInput, Popover, Progress, type PromiseToastMessages, RadioGroup, Rating, ScrollArea, SectionHeading, SegmentedControl, SettingsLayout, type SettingsLayoutProps, type SettingsSection, Sheet, Sidebar, type SidebarContextValue, type SidebarItem, SidebarNav, type SidebarNavSize, type SidebarPosition, type SidebarSection, type SidebarType, Skeleton, SkipLink, SliderRange, Spinner,
|
|
2332
|
+
export { Accordion, ActionPanel, ActionPanelGroup, Alert, type AlertPlacement, AppShell, type AppShellContextValue, type AppShellTheme, AsidePanel, type AsidePanelProps, type AsidePanelSide, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarStatus, Badge, type BadgePaletteColor, type BadgeSeverity, type BadgeSize, type BadgeVariant, BottomNav, type BottomNavItem, type BreadcrumbItem$1 as BreadcrumbItem, Breadcrumbs, type BreadcrumbsSeparator, type BreadcrumbsSize, type BreadcrumbsVariant, BreakpointKey, BulkActionBar, Button, ButtonSizeContext, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardSelectType, CardTitle, type CardVariant, Carousel, type ChatMessage, type ChatMessageAction, type ChatMessageLayout, ChatMessageList, type ChatMessageSender, type ChatMessageSource, type ChatMessageStatus, ChatPanel, type ChatPanelProps, type ChatPanelStatusTone, Checkbox, CheckboxGroup, CheckboxGroupItem, CodeBlock, Collapsible, ColorPicker, type Column, Combobox, CommandPalette, ContextMenu, type ControlSize, ControlSizeContext, CornerPanel, type CornerPanelEdge, type CornerPanelProps, DEFAULT_DATE_RANGE_PRESETS, DataList, DatePicker, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DescriptionItem, DescriptionList, type DescriptionListOrientation, type DescriptionListSize, Dialog, Divider, Dock, Drawer, Dropdown, DropdownMenu, type DropdownMenuDivider, type DropdownMenuEntry, type DropdownMenuItem, EmptyState, EntityCell, Field, type FieldControlProps, type FieldProps, FileUpload, FormWrapper, HoverCard, InlineFieldError, Input, Kbd, Label, Launcher, type LauncherEdge, type LauncherProps, type LauncherVariant, type LauncherWhenOpen, Link, type LinkProps, MentionInput, MobileHeaderMenu, type MobileHeaderMenuItemData, type MobileHeaderMenuType, NavItem, type NavItemProps, type NavItemType, NavMenu, type NavMenuItem, Navbar, type NavbarSize, type NavbarType, type NavbarVariant, NotificationCenter, NumberInput, PageContainer, type PageContainerWidth, PageHeader, type PageHeaderBehavior, type PageHeaderIntensity, type PageHeaderProps, type PageHeaderVariant, Pagination, PinInput, Popover, Progress, type PromiseToastMessages, RadioGroup, Rating, ScrollArea, SectionHeading, type SectionHeadingProps, SegmentedControl, SettingsLayout, type SettingsLayoutProps, type SettingsSection, Sheet, Sidebar, type SidebarContextValue, type SidebarItem, SidebarNav, type SidebarNavSize, type SidebarPosition, type SidebarSection, type SidebarType, Skeleton, SkipLink, SliderRange, Spinner, StackedList, type StackedListVariant, StatsCard, StatusDot, type StatusDotVariant, Stepper, type Tab, Table, type TableDensity, type TableProps, TableToolbar, type TableToolbarActiveFilter, type TableToolbarFilterOption, Tabs, Tag, TagInput, type TagPaletteColor, type TagVariant, TextOverflow, type TextOverflowProps, Textarea, TimePicker, Timeline, Toast, type ToastAction, type ToastApi, type ToastOptions, type ToastPosition, ToastProvider, type ToastVariant, Toggle, Tooltip, Tour, TransferList, TreeView, type Trend, type UseTextOverflowOptions, type UseTextOverflowResult, useAppShell, useFormContext, useSidebar, useTextOverflow, useToast };
|