gridsmith-ui 0.24.0 → 0.25.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 +8 -6
- package/dist/MentionList-CoNBRFGR.d.ts +8 -0
- package/dist/charts.d.ts +42 -1
- package/dist/charts.js +320 -89
- package/dist/charts.js.map +1 -1
- package/dist/chat.js +5 -4
- package/dist/chat.js.map +1 -1
- package/dist/{chunk-MV7JXWXK.js → chunk-3CUKJ4VP.js} +7 -6
- package/dist/chunk-3CUKJ4VP.js.map +1 -0
- package/dist/{chunk-SBTBMAIU.js → chunk-FHMCAOAH.js} +6 -6
- package/dist/{chunk-SBTBMAIU.js.map → chunk-FHMCAOAH.js.map} +1 -1
- package/dist/chunk-HP7WUZPK.js +80 -0
- package/dist/chunk-HP7WUZPK.js.map +1 -0
- package/dist/{chunk-4LDYR7QP.js → chunk-HYMXAIXN.js} +53 -13
- package/dist/chunk-HYMXAIXN.js.map +1 -0
- package/dist/{chunk-7TOJ4G7S.js → chunk-HZIP4EJI.js} +14 -9
- package/dist/chunk-HZIP4EJI.js.map +1 -0
- package/dist/{chunk-CXMV7SXJ.js → chunk-MD2EFMES.js} +5 -77
- package/dist/chunk-MD2EFMES.js.map +1 -0
- package/dist/{chunk-IVCVNAXG.js → chunk-OTCEJN64.js} +3 -3
- package/dist/{chunk-IVCVNAXG.js.map → chunk-OTCEJN64.js.map} +1 -1
- package/dist/{chunk-SVP2IG4S.js → chunk-QGSCF7PN.js} +7 -7
- package/dist/chunk-QGSCF7PN.js.map +1 -0
- package/dist/{chunk-2PWGJ4PK.js → chunk-QM4SJKWV.js} +11 -6
- package/dist/chunk-QM4SJKWV.js.map +1 -0
- package/dist/chunk-RWKCAKN3.js +209 -0
- package/dist/chunk-RWKCAKN3.js.map +1 -0
- package/dist/{chunk-6XAU44U4.js → chunk-W7GCEJEH.js} +9 -22
- package/dist/chunk-W7GCEJEH.js.map +1 -0
- package/dist/{chunk-NCIZQYXQ.js → chunk-X2HEV7FB.js} +33 -3
- package/dist/chunk-X2HEV7FB.js.map +1 -0
- package/dist/data-grid.d.ts +1 -1
- package/dist/data-grid.js +12 -11
- package/dist/data-grid.js.map +1 -1
- package/dist/editor-mentions.d.ts +30 -0
- package/dist/editor-mentions.js +160 -0
- package/dist/editor-mentions.js.map +1 -0
- package/dist/editor.d.ts +23 -3
- package/dist/editor.js +57 -8
- package/dist/editor.js.map +1 -1
- package/dist/{feather-2JFSFLXN.js → feather-W26ERBQV.js} +11 -3
- package/dist/feather-W26ERBQV.js.map +1 -0
- package/dist/{heroicons-4AQ4YBVG.js → heroicons-MY43466C.js} +21 -7
- package/dist/heroicons-MY43466C.js.map +1 -0
- package/dist/icons.d.ts +11 -4
- package/dist/icons.js +1 -1
- package/dist/index.d.ts +150 -28
- package/dist/index.js +299 -218
- package/dist/index.js.map +1 -1
- package/dist/kanban.js +6 -5
- package/dist/kanban.js.map +1 -1
- package/dist/{lucide-RZC2FEMS.js → lucide-CMPVM3PS.js} +11 -3
- package/dist/lucide-CMPVM3PS.js.map +1 -0
- package/dist/{phosphor-CEN25FLM.js → phosphor-RMHZOW2O.js} +11 -3
- package/dist/phosphor-RMHZOW2O.js.map +1 -0
- package/dist/resizable.js +8 -7
- package/dist/resizable.js.map +1 -1
- package/dist/roots.css +10 -0
- package/dist/{tabler-YXXC7Y6B.js → tabler-MJVEYHA5.js} +11 -3
- package/dist/tabler-MJVEYHA5.js.map +1 -0
- package/dist/{use-pagination-DiJo0aW5.d.ts → use-pagination-BnKOnBdz.d.ts} +3 -0
- package/dist/virtualized.d.ts +1 -1
- package/dist/virtualized.js +6 -5
- package/dist/virtualized.js.map +1 -1
- package/package.json +29 -21
- package/dist/chunk-2PWGJ4PK.js.map +0 -1
- package/dist/chunk-4LDYR7QP.js.map +0 -1
- package/dist/chunk-6XAU44U4.js.map +0 -1
- package/dist/chunk-7TOJ4G7S.js.map +0 -1
- package/dist/chunk-CXMV7SXJ.js.map +0 -1
- package/dist/chunk-MV7JXWXK.js.map +0 -1
- package/dist/chunk-NCIZQYXQ.js.map +0 -1
- package/dist/chunk-SVP2IG4S.js.map +0 -1
- package/dist/feather-2JFSFLXN.js.map +0 -1
- package/dist/heroicons-4AQ4YBVG.js.map +0 -1
- package/dist/lucide-RZC2FEMS.js.map +0 -1
- package/dist/phosphor-CEN25FLM.js.map +0 -1
- package/dist/tabler-YXXC7Y6B.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, Ref, ReactElement, CSSProperties, HTMLAttributes, RefObject, KeyboardEvent, AnchorHTMLAttributes, ElementType } from 'react';
|
|
3
|
+
import { IconSlot, IconName } from './icons.js';
|
|
3
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import {
|
|
5
|
+
import { M as MentionSuggestion } from './MentionList-CoNBRFGR.js';
|
|
5
6
|
import { C as ColumnKind, B as BreakpointKey } from './table-utils-BkjNEWts.js';
|
|
6
7
|
export { a as BreakpointWidthProvider, u as useBreakpoint } from './table-utils-BkjNEWts.js';
|
|
7
|
-
import { P as Pager, A as AppShellPreferences } from './use-pagination-
|
|
8
|
-
export { a as PaginationOptions, b as PreferencesContext, R as ResolvedPreferences, p as preferenceActionKey, u as usePagination, c as usePreferences } from './use-pagination-
|
|
8
|
+
import { P as Pager, A as AppShellPreferences } from './use-pagination-BnKOnBdz.js';
|
|
9
|
+
export { a as PaginationOptions, b as PreferencesContext, R as ResolvedPreferences, p as preferenceActionKey, u as usePagination, c as usePreferences } from './use-pagination-BnKOnBdz.js';
|
|
9
10
|
export { B as BreadcrumbItem, a as Breadcrumbs, b as BreadcrumbsSeparator, c as BreadcrumbsSize, d as BreadcrumbsVariant } from './Breadcrumbs-CGS8GKl-.js';
|
|
10
11
|
|
|
11
12
|
type ButtonVariant = "default" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "success" | "warning" | "link";
|
|
@@ -16,8 +17,10 @@ declare const ButtonSizeContext: react.Context<ControlSize | null>;
|
|
|
16
17
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
17
18
|
variant?: ButtonVariant;
|
|
18
19
|
size?: ButtonSize;
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
/** An icon name ("clock"), drawn as the theme's icon at the button's icon size, or an element. Not text: use children. */
|
|
21
|
+
iconLeft?: IconSlot;
|
|
22
|
+
/** As iconLeft, after the label. */
|
|
23
|
+
iconRight?: IconSlot;
|
|
21
24
|
loading?: boolean;
|
|
22
25
|
children?: ReactNode;
|
|
23
26
|
}
|
|
@@ -206,8 +209,87 @@ interface ComboboxProps extends FieldControlWiring {
|
|
|
206
209
|
container?: Element | DocumentFragment;
|
|
207
210
|
error?: boolean;
|
|
208
211
|
size?: ControlSize;
|
|
212
|
+
/** The control's name when no Field labels it (a toolbar's filter). Inside a Field, the Field's label names it. */
|
|
213
|
+
"aria-label"?: string;
|
|
214
|
+
}
|
|
215
|
+
declare function Combobox({ value, onChange: onChangeProp, options, placeholder, disabled, loading, className, ref, container, error, size: sizeProp, "aria-label": ariaLabel, ...wiring }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The browser's own name for a zone (Sprint 25.17 A28, R28-51): one browser always names a zone one way, so a stored
|
|
219
|
+
* "Asia/Calcutta" and a listed "Asia/Kolkata" are one zone, with no alias table shipped. An id the browser doesn't know
|
|
220
|
+
* stays as given.
|
|
221
|
+
*/
|
|
222
|
+
declare function canonicalTimeZone(zone: string): string;
|
|
223
|
+
/** The browser's time zone, by its own name; "UTC" where the browser names none. */
|
|
224
|
+
declare function browserTimeZone(): string;
|
|
225
|
+
/**
|
|
226
|
+
* A zone's offset from UTC at an instant, as the page's language names it ("GMT+1", "GMT-5", "GMT+5:30"): read at that
|
|
227
|
+
* instant, so it follows daylight saving.
|
|
228
|
+
*/
|
|
229
|
+
declare function timeZoneOffset(zone: string, at?: Date): string;
|
|
230
|
+
interface TimezoneSelectProps extends FieldControlWiring {
|
|
231
|
+
/**
|
|
232
|
+
* The stored zone, an IANA id ("Europe/London"). Empty: the field is empty, and the browser's zone is the list's first
|
|
233
|
+
* option, marked as the user's, to pick with one key. Start the page's state from the stored zone, else
|
|
234
|
+
* browserTimeZone(), to show the browser's as chosen.
|
|
235
|
+
*/
|
|
236
|
+
value?: string;
|
|
237
|
+
/** Called with the chosen zone's id, by the browser's own name. */
|
|
238
|
+
onChange: (zone: string) => void;
|
|
239
|
+
size?: ControlSize;
|
|
240
|
+
disabled?: boolean;
|
|
241
|
+
placeholder?: string;
|
|
242
|
+
className?: string;
|
|
243
|
+
/** The control's name when no Field labels it. In a settings form, a Field labels it ("Time zone"). */
|
|
244
|
+
"aria-label"?: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* A time zone select (Sprint 25.17 A28, R28-51): every IANA zone the browser knows, each shown with its offset now
|
|
248
|
+
* (which follows daylight saving), searchable by city, region or offset, with the house keyboard (the Combobox's).
|
|
249
|
+
* UTC is always offered. A stored zone is matched by the browser's own name for it, and one the browser doesn't list
|
|
250
|
+
* is still shown, never a blank.
|
|
251
|
+
*/
|
|
252
|
+
declare function TimezoneSelect({ value, onChange, placeholder, ...rest }: TimezoneSelectProps): react_jsx_runtime.JSX.Element;
|
|
253
|
+
|
|
254
|
+
/** A time: an ISO string, a Date, or milliseconds since the epoch. */
|
|
255
|
+
type TimeValue = string | Date | number;
|
|
256
|
+
/**
|
|
257
|
+
* A time as people read it (Sprint 25.17 A29, R28-48; date_time#1, #11 and #13): within `thresholdHours` of now,
|
|
258
|
+
* relative ("now", "5 minutes ago", "in 2 hours", "yesterday", counting days on the calendar), in the page's language;
|
|
259
|
+
* beyond it, the date and the time. The threshold is given: the project's is the shell's
|
|
260
|
+
* (dateTime.relativeThresholdHours), which RelativeTime and useRelativeTimeFormat read for you.
|
|
261
|
+
*/
|
|
262
|
+
declare function formatRelativeTime(time: TimeValue, options: {
|
|
263
|
+
thresholdHours: number;
|
|
264
|
+
now?: number;
|
|
265
|
+
}): string;
|
|
266
|
+
/**
|
|
267
|
+
* formatRelativeTime with the project's threshold, the shell's (dateTime.relativeThresholdHours), for a time drawn as
|
|
268
|
+
* text in a slot that takes a string: a Timeline item's `timestamp`, with the time itself as its `dateTime` so the exact
|
|
269
|
+
* time shows on hover. The text is read when the page renders; RelativeTime draws a time that refreshes as it ages.
|
|
270
|
+
*/
|
|
271
|
+
declare function useRelativeTimeFormat(): (time: TimeValue) => string;
|
|
272
|
+
/** The full timestamp, as the tooltip and a screen reader give it: the date, the time and its zone, in the page's language. */
|
|
273
|
+
declare function formatFullTime(time: TimeValue): string;
|
|
274
|
+
interface RelativeTimeProps {
|
|
275
|
+
/** The time: an ISO string, a Date, or milliseconds since the epoch. */
|
|
276
|
+
time: TimeValue;
|
|
277
|
+
/** Within this many hours it reads relative, else the date and time. Leave it out: the project's (the shell's dateTime.relativeThresholdHours). */
|
|
278
|
+
thresholdHours?: number;
|
|
279
|
+
/** The time's own classes (its colour, its size); the tooltip keeps the library's. */
|
|
280
|
+
className?: string;
|
|
209
281
|
}
|
|
210
|
-
|
|
282
|
+
/**
|
|
283
|
+
* A time drawn as the project reads times (Sprint 25.17 A29, R28-48): relative within the project's threshold, the date
|
|
284
|
+
* and time beyond it, and the full timestamp, with its zone, on hover and, outside a collection's rows, on focus
|
|
285
|
+
* (date_time#1, #2, #13). Outside them it is a Tab stop; among a table's, a list's or a grid's rows it isn't (a stop per
|
|
286
|
+
* row would make the collection hard to cross, and nest a stop in a row that is a button), and a screen reader hears the
|
|
287
|
+
* full timestamp with the time everywhere. It refreshes as it ages, each minute in its first hour and each hour after,
|
|
288
|
+
* and becomes the date and time once past the threshold; a time that changes is read against the clock afresh. Drawn on a
|
|
289
|
+
* server, the browser's reading of the clock replaces the server's when the page hydrates, with no error for the moment
|
|
290
|
+
* between them. In a sortable Table column, pass the time itself as the column's sort value.
|
|
291
|
+
*/
|
|
292
|
+
declare function RelativeTime({ time, thresholdHours, className }: RelativeTimeProps): react_jsx_runtime.JSX.Element | null;
|
|
211
293
|
|
|
212
294
|
type CheckboxSize = "sm" | "md";
|
|
213
295
|
/** A Field passes its wiring (0.21.0): its label names the box, and its hint and error describe it. */
|
|
@@ -660,13 +742,7 @@ interface TransferListProps {
|
|
|
660
742
|
}
|
|
661
743
|
declare function TransferList({ available, selected, onChange: onChangeProp, availableTitle, selectedTitle, searchable, className, ref, }: TransferListProps): react_jsx_runtime.JSX.Element;
|
|
662
744
|
|
|
663
|
-
interface
|
|
664
|
-
id: string;
|
|
665
|
-
label: string;
|
|
666
|
-
avatar?: string;
|
|
667
|
-
description?: string;
|
|
668
|
-
}
|
|
669
|
-
interface MentionInputProps {
|
|
745
|
+
interface MentionInputProps extends FieldControlWiring {
|
|
670
746
|
value?: string;
|
|
671
747
|
onChange?: (value: string) => void;
|
|
672
748
|
suggestions: MentionSuggestion[];
|
|
@@ -674,8 +750,10 @@ interface MentionInputProps {
|
|
|
674
750
|
placeholder?: string;
|
|
675
751
|
disabled?: boolean;
|
|
676
752
|
className?: string;
|
|
753
|
+
/** The field's name when no Field labels it. Inside a Field, the Field's label names it. */
|
|
754
|
+
"aria-label"?: string;
|
|
677
755
|
}
|
|
678
|
-
declare function MentionInput({ value: controlledValue, onChange: onChangeProp, suggestions, trigger, placeholder, disabled, className, }: MentionInputProps): react_jsx_runtime.JSX.Element;
|
|
756
|
+
declare function MentionInput({ value: controlledValue, onChange: onChangeProp, suggestions, trigger, placeholder, disabled, className, error, "aria-label": ariaLabel, ...wiring }: MentionInputProps): react_jsx_runtime.JSX.Element;
|
|
679
757
|
|
|
680
758
|
type CardVariant = "default" | "featured" | "interactive" | "outline" | "ghost";
|
|
681
759
|
type CardSelectType = "radio" | "checkbox" | "toggle";
|
|
@@ -866,9 +944,11 @@ interface Column {
|
|
|
866
944
|
* What the column sorts by, when its cells don't say (Sprint 25.13 A3): a column of elements (an avatar beside a name,
|
|
867
945
|
* a badge, a time) gives each row's name, number or date here, `sortValue: (row) => row.actorName`, and a column of
|
|
868
946
|
* sizes gives bytes. Without it a sortable column sorts by the cell itself, which works for text and numbers; a cell
|
|
869
|
-
* that is an element can't be compared, and the column warns in development (data_display#1).
|
|
947
|
+
* that is an element can't be compared, and the column warns in development (data_display#1). It may return any of a
|
|
948
|
+
* row's fields as they are (a row's values are typed for its cells): a string, a number or a Date sorts; an element
|
|
949
|
+
* doesn't.
|
|
870
950
|
*/
|
|
871
|
-
sortValue?: (row: TableRow) =>
|
|
951
|
+
sortValue?: (row: TableRow) => unknown;
|
|
872
952
|
/**
|
|
873
953
|
* Keep the column in view while the table scrolls sideways (Sprint 25.13 A35): "end" for the row's actions, pinned on
|
|
874
954
|
* the right; "start" for the row's name, drawn first and pinned beside the selection while it leaves room. Without a
|
|
@@ -1098,9 +1178,11 @@ interface EmptyStateProps {
|
|
|
1098
1178
|
* An icon name from the theme's pack ("inbox", "filter") or an element. A
|
|
1099
1179
|
* name is the easy path: the state renders it at the frame's size. An `Icon`
|
|
1100
1180
|
* element is resized to match; any other element is rendered as given. A
|
|
1101
|
-
* string
|
|
1102
|
-
*
|
|
1103
|
-
*
|
|
1181
|
+
* string is always read as a name, never printed as a word (the Sprint 22
|
|
1182
|
+
* bench saw builders pass names into a ReactNode prop and React print the
|
|
1183
|
+
* word — 14 Sep 2026). `IconName` takes any string, so a name the theme's
|
|
1184
|
+
* pack lacks still type-checks: it draws nothing, and in development the Icon
|
|
1185
|
+
* says so (Sprint 25.17 A26).
|
|
1104
1186
|
*/
|
|
1105
1187
|
icon?: IconName | Exclude<ReactNode, string>;
|
|
1106
1188
|
/** How the icon is framed: the neutral circle (default), or none when the icon element brings its own frame. */
|
|
@@ -1223,7 +1305,14 @@ declare function TableToolbar({ search, primaryFilter, filters, filtersOpen, onF
|
|
|
1223
1305
|
interface TimelineItem {
|
|
1224
1306
|
title: string;
|
|
1225
1307
|
description?: string;
|
|
1226
|
-
/**
|
|
1308
|
+
/**
|
|
1309
|
+
* When it happened (an ISO string, a Date or milliseconds), drawn as the project reads times, with RelativeTime:
|
|
1310
|
+
* relative within the shell's threshold, the date and time beyond it, the full timestamp on hover, refreshing as it
|
|
1311
|
+
* ages (Sprint 25.17's second review: a time the page formatted itself read differently on a server and in the browser,
|
|
1312
|
+
* and read the date twice to a screen reader). With `time`, leave timestamp and dateTime out.
|
|
1313
|
+
*/
|
|
1314
|
+
time?: TimeValue;
|
|
1315
|
+
/** What the item shows for its time, as text the page wrote: "Mon 14:05". For a time ago, pass `time`. */
|
|
1227
1316
|
timestamp?: string;
|
|
1228
1317
|
/**
|
|
1229
1318
|
* The item's exact time (an ISO string or a Date). The timestamp is then a <time> element, with the exact date and
|
|
@@ -1231,8 +1320,11 @@ interface TimelineItem {
|
|
|
1231
1320
|
* "2 hours ago" with no way to the date). Without a timestamp, the exact date is shown.
|
|
1232
1321
|
*/
|
|
1233
1322
|
dateTime?: string | Date;
|
|
1234
|
-
/**
|
|
1235
|
-
|
|
1323
|
+
/**
|
|
1324
|
+
* Takes the dot's place — the actor's Avatar (size="sm") on an activity feed, or an icon: its name ("upload"), drawn as
|
|
1325
|
+
* the theme's icon at 16 px, or an element. `variant` colours the dot only.
|
|
1326
|
+
*/
|
|
1327
|
+
icon?: IconSlot;
|
|
1236
1328
|
variant?: "default" | "success" | "warning" | "error";
|
|
1237
1329
|
}
|
|
1238
1330
|
interface TimelineProps {
|
|
@@ -1669,7 +1761,7 @@ interface TimeScaleOptions {
|
|
|
1669
1761
|
today?: DateInput;
|
|
1670
1762
|
/** Default 1 (Monday), as Calendar's. */
|
|
1671
1763
|
weekStartsOn?: 0 | 1;
|
|
1672
|
-
/** Default the
|
|
1764
|
+
/** Default the page's language (its `lang`, in the visitor's formats where they speak it: formatLocale). */
|
|
1673
1765
|
locale?: string;
|
|
1674
1766
|
/** Px per day at each level, where a view needs another density (the defaults fit each level's labels). */
|
|
1675
1767
|
pxPerDay?: Partial<Record<TimeZoom, number>>;
|
|
@@ -2028,7 +2120,7 @@ interface GanttProps<T extends GanttItem = GanttItem> {
|
|
|
2028
2120
|
today?: DateInput;
|
|
2029
2121
|
/** Default 1 (Monday), as Calendar's. */
|
|
2030
2122
|
weekStartsOn?: 0 | 1;
|
|
2031
|
-
/** Default the
|
|
2123
|
+
/** Default the page's language (its `lang`, in the visitor's formats where they speak it): the scale's labels and the items' dates. */
|
|
2032
2124
|
locale?: string;
|
|
2033
2125
|
/**
|
|
2034
2126
|
* Beside the title in the name column (assignees' avatars): shown, not announced (say it in `describe`), and left out
|
|
@@ -2083,8 +2175,10 @@ interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
|
2083
2175
|
* strict TypeScript (Sprint 25.16 A19).
|
|
2084
2176
|
*/
|
|
2085
2177
|
component?: ElementType;
|
|
2086
|
-
|
|
2087
|
-
|
|
2178
|
+
/** An icon name ("info"), drawn as the theme's icon at 14 px, or an element. Not text: use children. */
|
|
2179
|
+
iconLeft?: IconSlot;
|
|
2180
|
+
/** As iconLeft, after the label. */
|
|
2181
|
+
iconRight?: IconSlot;
|
|
2088
2182
|
}
|
|
2089
2183
|
/**
|
|
2090
2184
|
* Navigation link. Renders a real <a> (or a router link via `component`) so
|
|
@@ -2884,7 +2978,8 @@ interface AlertAction {
|
|
|
2884
2978
|
label: string;
|
|
2885
2979
|
onClick: () => void;
|
|
2886
2980
|
variant?: "secondary" | "outline";
|
|
2887
|
-
|
|
2981
|
+
/** An icon name ("refresh"), drawn as the theme's icon at 14 px, or an element. */
|
|
2982
|
+
iconLeft?: IconSlot;
|
|
2888
2983
|
}
|
|
2889
2984
|
interface AlertProps {
|
|
2890
2985
|
variant: AlertVariant;
|
|
@@ -3492,6 +3587,8 @@ interface SectionHeadingProps {
|
|
|
3492
3587
|
onTitleChange?: (title: string) => void;
|
|
3493
3588
|
/** The editable title's name for a screen reader, what it is the title of ("Document title"). Default "Title". */
|
|
3494
3589
|
titleLabel?: string;
|
|
3590
|
+
/** The heading's id, for a section named by its heading (`aria-labelledby`). */
|
|
3591
|
+
titleId?: string;
|
|
3495
3592
|
description?: string;
|
|
3496
3593
|
/** The section's buttons. Below sm they sit under the title, like PageHeader's actions. */
|
|
3497
3594
|
actions?: ReactNode;
|
|
@@ -3527,6 +3624,31 @@ interface ActionPanelGroupProps {
|
|
|
3527
3624
|
}
|
|
3528
3625
|
declare const ActionPanelGroup: react.ForwardRefExoticComponent<ActionPanelGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
3529
3626
|
|
|
3627
|
+
interface DangerZoneProps {
|
|
3628
|
+
/** The section's heading. Default "Danger zone". */
|
|
3629
|
+
title?: string;
|
|
3630
|
+
/** A line under the heading ("Irreversible actions for this project"). */
|
|
3631
|
+
description?: string;
|
|
3632
|
+
/**
|
|
3633
|
+
* One ActionPanel per action: what the action does and what it costs, and its destructive Button that opens the
|
|
3634
|
+
* confirmation (destructive_actions#3).
|
|
3635
|
+
*/
|
|
3636
|
+
children: ReactNode;
|
|
3637
|
+
className?: string;
|
|
3638
|
+
}
|
|
3639
|
+
/**
|
|
3640
|
+
* A danger zone (Sprint 25.17 A39, R28-75; destructive_actions#7): the page's last section, holding its irreversible
|
|
3641
|
+
* actions. Its heading, then a frame drawn as a Card is, in the error colour, with one row per action, divided:
|
|
3642
|
+
*
|
|
3643
|
+
* <DangerZone>
|
|
3644
|
+
* <ActionPanel title="Delete project" description="Removes the project and its tasks. This can't be undone."
|
|
3645
|
+
* action={<Button variant="destructive" onClick={confirm}>Delete project</Button>} />
|
|
3646
|
+
* </DangerZone>
|
|
3647
|
+
*
|
|
3648
|
+
* The rows sit at a card's inset, so they line up with the cards above it.
|
|
3649
|
+
*/
|
|
3650
|
+
declare function DangerZone({ title, description, children, className }: DangerZoneProps): react_jsx_runtime.JSX.Element;
|
|
3651
|
+
|
|
3530
3652
|
interface TextOverflowProps {
|
|
3531
3653
|
/** Max visible lines before truncation. 1 = single-line ellipsis, >1 = line-clamp-N. */
|
|
3532
3654
|
lines?: number;
|
|
@@ -3571,4 +3693,4 @@ interface UseTextOverflowResult {
|
|
|
3571
3693
|
*/
|
|
3572
3694
|
declare function useTextOverflow(options?: UseTextOverflowOptions): UseTextOverflowResult;
|
|
3573
3695
|
|
|
3574
|
-
export { Accordion, ActionPanel, ActionPanelGroup, AddAnother, type AddAnotherProps, Alert, type AlertPlacement, AppShell, type AppShellContextValue, type AppShellFocus, AppShellPreferences, 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, BreakpointKey, BulkActionBar, Button, ButtonSizeContext, Calendar, type CalendarDay, Card, CardContent, CardDescription, CardFooter, CardGrid, type CardGridProps, 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, type DateInput, DatePicker, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangeWords, type DescriptionItem, DescriptionList, type DescriptionListOrientation, type DescriptionListSize, type DestructiveActionHandle, type DestructiveActionOptions, Dialog, Divider, Dock, Drawer, Dropdown, DropdownMenu, type DropdownMenuDivider, type DropdownMenuEntry, type DropdownMenuItem, EmptyState, EntityCell, Field, type FieldControlProps, type FieldLabel, type FieldProps, FileUpload, type FileUploadItem, type FileUploadRequestOptions, type FileUploadStatus, type FitLabelsOptions, type FittedLabel, type FlowNavigate, type FlowProgress, FlowSaved, type FlowSavedProps, type FlowStep, type FlowSteps, FormWrapper, Gantt, type GanttGroup, type GanttItem, type GanttProps, type GanttStatus, type GanttTone, type GridKeyboard, type GridKeyboardOptions, HoverCard, InlineFieldError, Input, Kbd, Label, type LabelBox, 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, PageActions, PageContainer, type PageContainerWidth, PageHeader, type PageHeaderBehavior, type PageHeaderIntensity, type PageHeaderProps, type PageHeaderVariant, Pager, 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, type SortDir, Spinner, StackedList, type StackedListVariant, StatsCard, StatusDot, type StatusDotVariant, Stepper, TIME_ZOOMS, type Tab, Table, type TableDensity, type TableProps, type TableRow, TableToolbar, type TableToolbarActiveFilter, type TableToolbarFilterOption, Tabs, Tag, TagInput, type TagPaletteColor, type TagVariant, TextOverflow, type TextOverflowProps, Textarea, TimeBar, type TimeBarProps, TimePicker, TimeRow, type TimeRowProps, type TimeScale, TimeScaleHeader, type TimeScaleHeaderProps, type TimeScaleOptions, type TimeTick, TimeViewport, type TimeViewportHandle, type TimeViewportLayout, type TimeViewportProps, type TimeViewportState, type TimeZoom, Timeline, Toast, type ToastAction, type ToastApi, type ToastOptions, type ToastPosition, ToastProvider, type ToastVariant, Toggle, Tooltip, Tour, TransferList, TreeView, type Trend, type UseFlowStepsOptions, type UseTextOverflowOptions, type UseTextOverflowResult, dateOfDay, dayOf, endDayOf, fitLabel, fitLabels, formatDateRange, readFlowProgress, timeExtent, useAppShell, useContentWidth, useDestructiveAction, useFittedLabels, useFlowSteps, useFormContext, useGridKeyboard, useSidebar, useTextMeasure, useTextOverflow, useTimeScale, useTimeViewport, useTimeViewportLayout, useToast, useToastOptional, useUnsavedChanges };
|
|
3696
|
+
export { Accordion, ActionPanel, ActionPanelGroup, AddAnother, type AddAnotherProps, Alert, type AlertPlacement, AppShell, type AppShellContextValue, type AppShellFocus, AppShellPreferences, 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, BreakpointKey, BulkActionBar, Button, ButtonSizeContext, Calendar, type CalendarDay, Card, CardContent, CardDescription, CardFooter, CardGrid, type CardGridProps, 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, DangerZone, type DangerZoneProps, DataList, type DateInput, DatePicker, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DateRangeWords, type DescriptionItem, DescriptionList, type DescriptionListOrientation, type DescriptionListSize, type DestructiveActionHandle, type DestructiveActionOptions, Dialog, Divider, Dock, Drawer, Dropdown, DropdownMenu, type DropdownMenuDivider, type DropdownMenuEntry, type DropdownMenuItem, EmptyState, EntityCell, Field, type FieldControlProps, type FieldLabel, type FieldProps, FileUpload, type FileUploadItem, type FileUploadRequestOptions, type FileUploadStatus, type FitLabelsOptions, type FittedLabel, type FlowNavigate, type FlowProgress, FlowSaved, type FlowSavedProps, type FlowStep, type FlowSteps, FormWrapper, Gantt, type GanttGroup, type GanttItem, type GanttProps, type GanttStatus, type GanttTone, type GridKeyboard, type GridKeyboardOptions, HoverCard, InlineFieldError, Input, Kbd, Label, type LabelBox, Launcher, type LauncherEdge, type LauncherProps, type LauncherVariant, type LauncherWhenOpen, Link, type LinkProps, MentionInput, type MentionInputProps, MentionSuggestion, MobileHeaderMenu, type MobileHeaderMenuItemData, type MobileHeaderMenuType, NavItem, type NavItemProps, type NavItemType, NavMenu, type NavMenuItem, Navbar, type NavbarSize, type NavbarType, type NavbarVariant, NotificationCenter, NumberInput, PageActions, PageContainer, type PageContainerWidth, PageHeader, type PageHeaderBehavior, type PageHeaderIntensity, type PageHeaderProps, type PageHeaderVariant, Pager, Pagination, PinInput, Popover, Progress, type PromiseToastMessages, RadioGroup, Rating, RelativeTime, type RelativeTimeProps, 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, type SortDir, Spinner, StackedList, type StackedListVariant, StatsCard, StatusDot, type StatusDotVariant, Stepper, TIME_ZOOMS, type Tab, Table, type TableDensity, type TableProps, type TableRow, TableToolbar, type TableToolbarActiveFilter, type TableToolbarFilterOption, Tabs, Tag, TagInput, type TagPaletteColor, type TagVariant, TextOverflow, type TextOverflowProps, Textarea, TimeBar, type TimeBarProps, TimePicker, TimeRow, type TimeRowProps, type TimeScale, TimeScaleHeader, type TimeScaleHeaderProps, type TimeScaleOptions, type TimeTick, type TimeValue, TimeViewport, type TimeViewportHandle, type TimeViewportLayout, type TimeViewportProps, type TimeViewportState, type TimeZoom, Timeline, TimezoneSelect, type TimezoneSelectProps, Toast, type ToastAction, type ToastApi, type ToastOptions, type ToastPosition, ToastProvider, type ToastVariant, Toggle, Tooltip, Tour, TransferList, TreeView, type Trend, type UseFlowStepsOptions, type UseTextOverflowOptions, type UseTextOverflowResult, browserTimeZone, canonicalTimeZone, dateOfDay, dayOf, endDayOf, fitLabel, fitLabels, formatDateRange, formatFullTime, formatRelativeTime, readFlowProgress, timeExtent, timeZoneOffset, useAppShell, useContentWidth, useDestructiveAction, useFittedLabels, useFlowSteps, useFormContext, useGridKeyboard, useRelativeTimeFormat, useSidebar, useTextMeasure, useTextOverflow, useTimeScale, useTimeViewport, useTimeViewportLayout, useToast, useToastOptional, useUnsavedChanges };
|