@platned/ui 0.9.3 → 0.9.5
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/chunk-OGQIGGVB.js +2788 -0
- package/dist/chunk-OGQIGGVB.js.map +1 -0
- package/dist/data-table-JX-vnL0F.d.ts +464 -0
- package/dist/data-table.cjs +3470 -0
- package/dist/data-table.cjs.map +1 -0
- package/dist/data-table.d.ts +3 -0
- package/dist/data-table.js +840 -0
- package/dist/data-table.js.map +1 -0
- package/dist/index.cjs +796 -502
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +163 -473
- package/dist/index.js +2307 -5436
- package/dist/index.js.map +1 -1
- package/dist/sidebar.cjs +1 -4
- package/dist/sidebar.cjs.map +1 -1
- package/dist/sidebar.js +1 -4
- package/dist/sidebar.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +6 -1
- package/tailwind-preset.cjs +18 -6
- package/dist/index.d.cts +0 -5422
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, ChangeEventHandler, RefObject, ReactElement, Ref, AnchorHTMLAttributes,
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, ChangeEventHandler, RefObject, ReactElement, Ref, AnchorHTMLAttributes, Component, ErrorInfo } from 'react';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
|
-
import {
|
|
4
|
+
import { P as ProgressBarTone } from './data-table-JX-vnL0F.js';
|
|
5
|
+
export { C as ColumnMobileRole, a as CreateSelectColumnOptions, D as DataTable, b as DataTableAlign, c as DataTableColumnAlign, d as DataTableColumnHeader, e as DataTableColumnHeaderProps, f as DataTableDensity, g as DataTableManual, h as DataTablePagination, i as DataTablePaginationProps, j as DataTableProps, k as DataTableRowLinkProps, l as DataTableSearchOptions, m as DataTableState, n as DataTableViewOptions, o as DataTableViewOptionsProps, p as ProgressBar, q as ProgressBarProps, r as ProgressBarSize, S as SELECT_COLUMN_ID, T as Table, s as TableBody, t as TableCaption, u as TableCaptionProps, v as TableCell, w as TableCellBadge, x as TableCellBadgeProps, y as TableCellLeadText, z as TableCellLeadTextProps, A as TableCellProgress, B as TableCellProgressProps, E as TableCellProps, F as TableCellSize, G as TableCellText, H as TableCellTextProps, I as TableDensity, J as TableFooter, K as TableHead, L as TableHeadProps, M as TableHeader, N as TableProps, O as TableRow, Q as TableRowProps, R as TableRowTone, U as TableSortDirection, V as createSelectColumn } from './data-table-JX-vnL0F.js';
|
|
5
6
|
export { CellContext, ColumnDef, ColumnFiltersState, Column as DataTableColumn, Table as DataTableInstance, HeaderContext, PaginationState, Row, RowSelectionState, SortingState, VisibilityState, createColumnHelper } from '@tanstack/react-table';
|
|
6
7
|
|
|
7
8
|
type ButtonVariant = 'primary' | 'neutral' | 'subtle' | 'danger' | 'danger-subtle';
|
|
@@ -783,6 +784,12 @@ interface FormCardFooterProps {
|
|
|
783
784
|
declare function FormCardFooter({ onSaveDraft, onBack, onContinue, continueLabel, continueIcon, backDisabled, continueDisabled, saveDraftDisabled, }: FormCardFooterProps): react.JSX.Element;
|
|
784
785
|
|
|
785
786
|
type BadgeColor = 'gray' | 'red' | 'yellow' | 'lime' | 'green' | 'teal' | 'blue' | 'pink' | 'slate' | 'violet';
|
|
787
|
+
/**
|
|
788
|
+
* Every `BadgeColor`, in a stable order: the library's categorical palette. Index it to give
|
|
789
|
+
* data a colour of its own, e.g. a company's tile `BADGE_COLORS[hash % BADGE_COLORS.length]`,
|
|
790
|
+
* instead of keeping a list of hex values in the app. New in 0.9.5.
|
|
791
|
+
*/
|
|
792
|
+
declare const BADGE_COLORS: readonly BadgeColor[];
|
|
786
793
|
type BadgeSize = 'sm' | 'lg';
|
|
787
794
|
type BadgeVariant = 'default' | 'subtle';
|
|
788
795
|
interface BadgeProps {
|
|
@@ -791,13 +798,18 @@ interface BadgeProps {
|
|
|
791
798
|
size?: BadgeSize;
|
|
792
799
|
variant?: BadgeVariant;
|
|
793
800
|
indicator?: boolean;
|
|
801
|
+
/**
|
|
802
|
+
* A leading glyph, e.g. `<LockIcon />` on a "System" badge. Decorative: the label names the
|
|
803
|
+
* badge, so the glyph is hidden from assistive tech and sized to the badge. New in 0.9.5.
|
|
804
|
+
*/
|
|
805
|
+
icon?: ReactNode;
|
|
794
806
|
/** Makes the badge removable: an × button named "Remove {label}". Same name as on `TagPill`. */
|
|
795
807
|
onRemove?: () => void;
|
|
796
808
|
/** @deprecated Renamed `onRemove` in 0.9.0, to match `TagPill`. Still works. */
|
|
797
809
|
onClose?: () => void;
|
|
798
810
|
className?: string;
|
|
799
811
|
}
|
|
800
|
-
declare function Badge({ label, color, size, variant, indicator, onRemove: onRemoveProp, onClose, className, }: BadgeProps): react.JSX.Element;
|
|
812
|
+
declare function Badge({ label, color, size, variant, indicator, icon, onRemove: onRemoveProp, onClose, className, }: BadgeProps): react.JSX.Element;
|
|
801
813
|
|
|
802
814
|
/**
|
|
803
815
|
* The nine-hue categorical palette from `badge.css`, which is what roles want: a role is a
|
|
@@ -1095,11 +1107,29 @@ interface TagPillProps {
|
|
|
1095
1107
|
*/
|
|
1096
1108
|
onRemove?: () => void;
|
|
1097
1109
|
/** @deprecated Bypasses the design tokens — pass `tone` instead. Raw hex bg/text pair, overrides `tone` via inline style. Use when the exact source colors don't match design tokens. */
|
|
1110
|
+
/**
|
|
1111
|
+
* Render onto the single child instead, e.g. a router `<Link>` to the tag's own page. The tag's
|
|
1112
|
+
* label replaces the child's children, and it gains a hover fill and a focus ring. Not combined
|
|
1113
|
+
* with `onRemove`: a link and a remove button can't share one element. New in 0.9.5.
|
|
1114
|
+
*/
|
|
1115
|
+
asChild?: boolean;
|
|
1116
|
+
/**
|
|
1117
|
+
* A decorative leading glyph, e.g. the kind of thing the tag stands for. Hidden from assistive
|
|
1118
|
+
* tech, so the label must carry the meaning. New in 0.9.5.
|
|
1119
|
+
*/
|
|
1120
|
+
icon?: ReactNode;
|
|
1121
|
+
/**
|
|
1122
|
+
* A tooltip. Defaults to the label on a removable tag, whose label can ellipsise. Pass it for
|
|
1123
|
+
* extra detail, e.g. "Worked out for the signed-in user". New in 0.9.5.
|
|
1124
|
+
*/
|
|
1125
|
+
title?: string;
|
|
1126
|
+
/** The element to render onto, with `asChild`. */
|
|
1127
|
+
children?: ReactElement;
|
|
1098
1128
|
bg?: string;
|
|
1099
1129
|
color?: string;
|
|
1100
1130
|
className?: string;
|
|
1101
1131
|
}
|
|
1102
|
-
declare function TagPill({ label, tone, size, onRemove, bg, color, className, }: TagPillProps): react.JSX.Element;
|
|
1132
|
+
declare function TagPill({ label, tone, size, onRemove, asChild, icon, title, children, bg, color, className, }: TagPillProps): react.JSX.Element;
|
|
1103
1133
|
|
|
1104
1134
|
interface TrailChipProps {
|
|
1105
1135
|
label: string;
|
|
@@ -1153,7 +1183,8 @@ interface CheckIndicatorProps {
|
|
|
1153
1183
|
*/
|
|
1154
1184
|
declare function CheckIndicator({ status, label, className }: CheckIndicatorProps): react.JSX.Element;
|
|
1155
1185
|
|
|
1156
|
-
|
|
1186
|
+
/** `lg` (56px) is new in 0.9.5, for the status glyph above a result screen's heading. */
|
|
1187
|
+
type EntityIconBadgeSize = 'sm' | 'md' | 'lg';
|
|
1157
1188
|
type EntityIconBadgeTone = 'default' | 'brand' | 'positive' | 'warning' | 'danger' | 'neutral';
|
|
1158
1189
|
type EntityIconBadgeShape = 'square' | 'circle';
|
|
1159
1190
|
interface EntityIconBadgeProps {
|
|
@@ -1165,13 +1196,19 @@ interface EntityIconBadgeProps {
|
|
|
1165
1196
|
* does not depend on Tailwind's stylesheet emit order.
|
|
1166
1197
|
*/
|
|
1167
1198
|
shape?: EntityIconBadgeShape;
|
|
1199
|
+
/**
|
|
1200
|
+
* A categorical colour from the badge palette, overriding `tone`: for a mark whose colour
|
|
1201
|
+
* identifies the thing rather than its status, e.g. a company's initials tile. Pick it from
|
|
1202
|
+
* `BADGE_COLORS` by index. New in 0.9.5.
|
|
1203
|
+
*/
|
|
1204
|
+
hue?: BadgeColor;
|
|
1168
1205
|
/** @deprecated Bypasses the design tokens — pass `tone` instead. Raw hex background, overrides `tone` via inline style. Use when the exact source color doesn't match a design token. */
|
|
1169
1206
|
bg?: string;
|
|
1170
1207
|
iconColor?: string;
|
|
1171
1208
|
children: ReactNode;
|
|
1172
1209
|
className?: string;
|
|
1173
1210
|
}
|
|
1174
|
-
declare function EntityIconBadge({ size, tone, shape, bg, iconColor, children, className }: EntityIconBadgeProps): react.JSX.Element;
|
|
1211
|
+
declare function EntityIconBadge({ size, tone, shape, hue, bg, iconColor, children, className }: EntityIconBadgeProps): react.JSX.Element;
|
|
1175
1212
|
|
|
1176
1213
|
type CheckControlSize = 'sm' | 'md';
|
|
1177
1214
|
|
|
@@ -1250,8 +1287,30 @@ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'
|
|
|
1250
1287
|
label?: ReactNode;
|
|
1251
1288
|
/** Second line under the label. Matches Figma's `Supporting text` axis. */
|
|
1252
1289
|
description?: ReactNode;
|
|
1290
|
+
/**
|
|
1291
|
+
* Standalone only (outside a `RadioGroup`): whether this radio is the selected one. Inside a
|
|
1292
|
+
* group the group's `value` decides, and this is ignored. New in 0.9.5.
|
|
1293
|
+
*/
|
|
1294
|
+
checked?: boolean;
|
|
1295
|
+
/** Standalone only: called with `true` when the user selects this radio. New in 0.9.5. */
|
|
1296
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
1297
|
+
/** Standalone only; a group sets it for its radios. New in 0.9.5. */
|
|
1298
|
+
size?: CheckControlSize;
|
|
1299
|
+
/** Standalone only; a group sets it for its radios. New in 0.9.5. */
|
|
1300
|
+
invalid?: boolean;
|
|
1253
1301
|
className?: string;
|
|
1254
1302
|
}
|
|
1303
|
+
/**
|
|
1304
|
+
* One radio. Inside a `RadioGroup` it takes its name, value and state from the group.
|
|
1305
|
+
*
|
|
1306
|
+
* From 0.9.5 it also works **standalone**, for radios a group's wrapper cannot hold, such as one
|
|
1307
|
+
* per row of a table ("Make this the default"). Give every radio of the set the same `name`,
|
|
1308
|
+
* control `checked`, and handle `onCheckedChange`. Native radios that share a name are one group
|
|
1309
|
+
* wherever they sit in the DOM, so arrow keys, the single tab stop and "2 of 4" still work. Name
|
|
1310
|
+
* the set with the column header, and name each radio with `aria-label` when it has no `label`.
|
|
1311
|
+
* This is MUI's standalone `Radio`; a `div role="radiogroup"` around a whole table would put the
|
|
1312
|
+
* table's other controls inside the group.
|
|
1313
|
+
*/
|
|
1255
1314
|
declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
|
|
1256
1315
|
|
|
1257
1316
|
/** `MultiSelectCard`'s sizes, so the single- and multi-select cards line up. `lg` from 0.9.0. */
|
|
@@ -3069,6 +3128,13 @@ interface PageHeadingProps {
|
|
|
3069
3128
|
size?: PageHeadingSize;
|
|
3070
3129
|
/** Heading level. Defaults to `h1` for page/toolbar and `h2` for section. */
|
|
3071
3130
|
as?: 'h1' | 'h2' | 'h3';
|
|
3131
|
+
/**
|
|
3132
|
+
* Chips beside the title ("System", "Editing"). They sit outside the heading element, so they
|
|
3133
|
+
* are not part of the heading's accessible name. New in 0.9.5.
|
|
3134
|
+
*/
|
|
3135
|
+
badges?: ReactNode;
|
|
3136
|
+
/** A muted line between the title and the subtitle, e.g. "PS-014 · Finance". New in 0.9.5. */
|
|
3137
|
+
meta?: ReactNode;
|
|
3072
3138
|
/** Right-aligned action cluster. When set, the heading becomes a flex row. */
|
|
3073
3139
|
actions?: ReactNode;
|
|
3074
3140
|
/** Clamp a long title to one line — needed when the title is user data, e.g. an article headline. */
|
|
@@ -3086,7 +3152,7 @@ interface PageHeadingProps {
|
|
|
3086
3152
|
* `<p>`/`<div>` today, so `getByRole('heading')` finds nothing there — an
|
|
3087
3153
|
* accessibility gap the e2e specs currently work around.
|
|
3088
3154
|
*/
|
|
3089
|
-
declare function PageHeading({ title, subtitle, size, as, actions, truncateTitle, className, }: PageHeadingProps): react.JSX.Element;
|
|
3155
|
+
declare function PageHeading({ title, subtitle, size, as, badges, meta, actions, truncateTitle, className, }: PageHeadingProps): react.JSX.Element;
|
|
3090
3156
|
|
|
3091
3157
|
type PageToolbarSize = 'sm' | 'md';
|
|
3092
3158
|
interface PageToolbarProps {
|
|
@@ -3172,8 +3238,11 @@ type TabsActivation = 'automatic' | 'manual';
|
|
|
3172
3238
|
interface TabItem<K extends string = string> {
|
|
3173
3239
|
key: K;
|
|
3174
3240
|
label: string;
|
|
3175
|
-
/**
|
|
3176
|
-
|
|
3241
|
+
/**
|
|
3242
|
+
* Renders a count chip after the label. A number is formatted for `locale` (`1,284`); pass a
|
|
3243
|
+
* node for anything else, e.g. `"99+"`. A node from 0.9.4.
|
|
3244
|
+
*/
|
|
3245
|
+
count?: ReactNode;
|
|
3177
3246
|
disabled?: boolean;
|
|
3178
3247
|
}
|
|
3179
3248
|
/** The `items` form: a tab strip only, with `TabsPanel`s placed wherever the page needs them. */
|
|
@@ -3200,6 +3269,8 @@ interface TabsProps<K extends string = string> {
|
|
|
3200
3269
|
idPrefix?: string;
|
|
3201
3270
|
/** Names the tab strip. Required by the APG when there is more than one on a page. */
|
|
3202
3271
|
label?: string;
|
|
3272
|
+
/** Locale for numeric `count`s. Default: the browser's. New in 0.9.4. */
|
|
3273
|
+
locale?: string;
|
|
3203
3274
|
className?: string;
|
|
3204
3275
|
}
|
|
3205
3276
|
/**
|
|
@@ -3217,6 +3288,8 @@ interface TabsRootProps {
|
|
|
3217
3288
|
activation?: TabsActivation;
|
|
3218
3289
|
/** Reading direction, which flips Left/Right in a horizontal strip. */
|
|
3219
3290
|
dir?: 'ltr' | 'rtl';
|
|
3291
|
+
/** Locale for numeric `count`s on the triggers. Default: the browser's. New in 0.9.4. */
|
|
3292
|
+
locale?: string;
|
|
3220
3293
|
className?: string;
|
|
3221
3294
|
}
|
|
3222
3295
|
declare const tabId: (prefix: string, key: string) => string;
|
|
@@ -3270,8 +3343,8 @@ declare const TabsList: react.ForwardRefExoticComponent<TabsListProps & react.Re
|
|
|
3270
3343
|
interface TabsTriggerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
3271
3344
|
value: string;
|
|
3272
3345
|
disabled?: boolean;
|
|
3273
|
-
/** Renders a count chip after the label. */
|
|
3274
|
-
count?:
|
|
3346
|
+
/** Renders a count chip after the label. A number is formatted for the root's `locale`. */
|
|
3347
|
+
count?: ReactNode;
|
|
3275
3348
|
}
|
|
3276
3349
|
declare const TabsTrigger: react.ForwardRefExoticComponent<TabsTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
3277
3350
|
interface TabsContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -3702,9 +3775,17 @@ interface BlockquoteProps extends HTMLAttributes<HTMLQuoteElement> {
|
|
|
3702
3775
|
* `<blockquote>`, so assistive tech announces where the quotation starts and ends.
|
|
3703
3776
|
*/
|
|
3704
3777
|
declare const Blockquote: react.ForwardRefExoticComponent<BlockquoteProps & react.RefAttributes<HTMLQuoteElement>>;
|
|
3778
|
+
/**
|
|
3779
|
+
* `brand` (default) is the underlined link for running text. `neutral`, new in 0.9.5, is a
|
|
3780
|
+
* default-coloured link that underlines on hover, for links that stand alone in a list or tree
|
|
3781
|
+
* (an indented set of names), where a column of brand underlines would be noise. Don't use
|
|
3782
|
+
* `neutral` inside a sentence: there, colour and underline are what mark it as a link.
|
|
3783
|
+
*/
|
|
3784
|
+
type TextLinkTone = 'brand' | 'neutral';
|
|
3705
3785
|
interface TextLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3706
3786
|
children?: ReactNode;
|
|
3707
3787
|
asChild?: boolean;
|
|
3788
|
+
tone?: TextLinkTone;
|
|
3708
3789
|
}
|
|
3709
3790
|
/**
|
|
3710
3791
|
* `Text Link`. Underlined rather than colour-only: colour alone is not a sufficient
|
|
@@ -4217,12 +4298,18 @@ interface LegendDotProps {
|
|
|
4217
4298
|
tone?: ChartTone;
|
|
4218
4299
|
/** Explicit colour, for data-driven series. */
|
|
4219
4300
|
color?: string;
|
|
4301
|
+
/**
|
|
4302
|
+
* A categorical colour from the badge palette (its text shade, strong enough for a small dot),
|
|
4303
|
+
* to key a list item to the same `hue` on an `EntityIconBadge`. Ignored when `color` is set.
|
|
4304
|
+
* New in 0.9.5.
|
|
4305
|
+
*/
|
|
4306
|
+
hue?: BadgeColor;
|
|
4220
4307
|
size?: LegendDotSize;
|
|
4221
4308
|
shape?: LegendDotShape;
|
|
4222
4309
|
className?: string;
|
|
4223
4310
|
}
|
|
4224
4311
|
/** The colour swatch beside a series name. */
|
|
4225
|
-
declare function LegendDot({ tone, color, size, shape, className }: LegendDotProps): react.JSX.Element;
|
|
4312
|
+
declare function LegendDot({ tone, color, hue, size, shape, className }: LegendDotProps): react.JSX.Element;
|
|
4226
4313
|
|
|
4227
4314
|
type ChartLegendOrientation = 'vertical' | 'horizontal';
|
|
4228
4315
|
interface ChartLegendItem {
|
|
@@ -4274,6 +4361,55 @@ interface TrendLabelProps {
|
|
|
4274
4361
|
/** A signed delta with a direction arrow, toned by whether the movement is good news. */
|
|
4275
4362
|
declare function TrendLabel({ value, suffix, size, weight, direction, showArrow, color, className, }: TrendLabelProps): react.JSX.Element;
|
|
4276
4363
|
|
|
4364
|
+
/** One choice in a `Listbox`. */
|
|
4365
|
+
interface ListboxOption {
|
|
4366
|
+
value: string;
|
|
4367
|
+
label: ReactNode;
|
|
4368
|
+
/** Typeahead text, when `label` is not a plain string. */
|
|
4369
|
+
textValue?: string;
|
|
4370
|
+
/** Trailing content, e.g. a count: "3 Permission Sets". Part of the option's name. */
|
|
4371
|
+
meta?: ReactNode;
|
|
4372
|
+
disabled?: boolean;
|
|
4373
|
+
}
|
|
4374
|
+
/** A titled run of options. Rendered as `role="group"`, named by its visible header. */
|
|
4375
|
+
interface ListboxGroup {
|
|
4376
|
+
label: string;
|
|
4377
|
+
options: readonly ListboxOption[];
|
|
4378
|
+
}
|
|
4379
|
+
interface ListboxProps {
|
|
4380
|
+
/** Options, or groups of options, in display order. Groups and bare options can mix. */
|
|
4381
|
+
options: readonly (ListboxOption | ListboxGroup)[];
|
|
4382
|
+
value?: string;
|
|
4383
|
+
defaultValue?: string;
|
|
4384
|
+
onValueChange?: (value: string) => void;
|
|
4385
|
+
/** Accessible name. Required: a listbox has no visible name of its own. */
|
|
4386
|
+
label: string;
|
|
4387
|
+
/**
|
|
4388
|
+
* Select an option as soon as it is focused with the arrow keys (the APG's "selection follows
|
|
4389
|
+
* focus"), for a picker that drives a detail view beside it. Default `true`. With `false`, the
|
|
4390
|
+
* arrows only move, and Enter, Space or a click selects.
|
|
4391
|
+
*/
|
|
4392
|
+
selectionFollowsFocus?: boolean;
|
|
4393
|
+
/** Cap the height (px number or CSS length) and scroll the options inside it. */
|
|
4394
|
+
maxHeight?: number | string;
|
|
4395
|
+
/** Shown in place of the options when there are none. */
|
|
4396
|
+
empty?: ReactNode;
|
|
4397
|
+
/** Layout classes on the root, e.g. width. */
|
|
4398
|
+
className?: string;
|
|
4399
|
+
}
|
|
4400
|
+
/**
|
|
4401
|
+
* A persistent single-select list: pick one item and keep it picked, e.g. the permission whose
|
|
4402
|
+
* holders a panel beside it lists. New in 0.9.5.
|
|
4403
|
+
*
|
|
4404
|
+
* The WAI-ARIA APG listbox pattern: `role="listbox"` with `role="option"` items carrying
|
|
4405
|
+
* `aria-selected`, one tab stop with a roving tabindex, arrow keys, Home and End, and typeahead.
|
|
4406
|
+
* Groups are `role="group"`, named by their visible header. Use it where `Select` or
|
|
4407
|
+
* `Combobox` would hide the choices behind a popup, and `Command` does not fit: `Command` is
|
|
4408
|
+
* for running an action, its highlight is not a selection, and it always has a search box. For
|
|
4409
|
+
* a short set where every option deserves a label and description, use `RadioGroup`.
|
|
4410
|
+
*/
|
|
4411
|
+
declare function Listbox({ options, value: valueProp, defaultValue, onValueChange, label, selectionFollowsFocus, maxHeight, empty, className, }: ListboxProps): react.JSX.Element;
|
|
4412
|
+
|
|
4277
4413
|
type ListRowDensity = 'default' | 'compact';
|
|
4278
4414
|
type ListRowDivider = 'none' | 'top' | 'bottom';
|
|
4279
4415
|
interface ListRowProps {
|
|
@@ -4409,46 +4545,6 @@ interface ScoredRowProps {
|
|
|
4409
4545
|
*/
|
|
4410
4546
|
declare function ScoredRow({ leading, title, subtitle, aside, meter, trailing, titleWidth, asideWidth, meterWidth, trailingWidth, gap, leadingGap, align, className, }: ScoredRowProps): react.JSX.Element;
|
|
4411
4547
|
|
|
4412
|
-
type ProgressBarTone = 'brand' | 'positive' | 'warning' | 'danger' | 'neutral';
|
|
4413
|
-
type ProgressBarSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4414
|
-
interface ProgressBarProps {
|
|
4415
|
-
/** 0–100. Values outside the range are clamped. */
|
|
4416
|
-
value: number;
|
|
4417
|
-
tone?: ProgressBarTone;
|
|
4418
|
-
size?: ProgressBarSize;
|
|
4419
|
-
/** Caption above the bar. Also becomes the accessible name. */
|
|
4420
|
-
label?: string;
|
|
4421
|
-
/** Show the percentage at the right of the label row. */
|
|
4422
|
-
showValue?: boolean;
|
|
4423
|
-
/** CSS radius override, e.g. `'1px'` for a square-ended bar. Defaults to fully round. */
|
|
4424
|
-
radius?: string;
|
|
4425
|
-
/** Accessible name when there is no visible `label`. */
|
|
4426
|
-
'aria-label'?: string;
|
|
4427
|
-
/**
|
|
4428
|
-
* Draw the bar as this many equal steps, filled in whole steps, e.g. a password-strength
|
|
4429
|
-
* meter. New in 0.7.0; replaces hand-built rows of tinted bars.
|
|
4430
|
-
*/
|
|
4431
|
-
segments?: number;
|
|
4432
|
-
/**
|
|
4433
|
-
* What the value means, announced instead of the number (`aria-valuetext`), e.g. "Strong".
|
|
4434
|
-
* A strength meter at 75 means nothing as "75 percent".
|
|
4435
|
-
*/
|
|
4436
|
-
valueText?: string;
|
|
4437
|
-
/**
|
|
4438
|
-
* Applied to the track. This is how you set a fixed width — `className="w-16"`.
|
|
4439
|
-
* It genuinely overrides the base `w-full` because this file uses `cn`.
|
|
4440
|
-
*/
|
|
4441
|
-
className?: string;
|
|
4442
|
-
}
|
|
4443
|
-
/**
|
|
4444
|
-
* A horizontal progress / proportion bar.
|
|
4445
|
-
*
|
|
4446
|
-
* Was `WidgetProgressBar` in 0.2.0, which fixed the height at 6px and lived under
|
|
4447
|
-
* `widgets/` despite being a general-purpose primitive — so `TableCellProgress`
|
|
4448
|
-
* hand-rolled a second copy rather than reuse it. It also had no ARIA at all.
|
|
4449
|
-
*/
|
|
4450
|
-
declare function ProgressBar({ value, tone, size, label, showValue, radius, 'aria-label': ariaLabel, segments, valueText, className, }: ProgressBarProps): react.JSX.Element;
|
|
4451
|
-
|
|
4452
4548
|
interface NumberedListItem {
|
|
4453
4549
|
title: string;
|
|
4454
4550
|
/** Second line under the title — a region, a category, an id. */
|
|
@@ -4719,418 +4815,6 @@ interface TreeViewProps<T> {
|
|
|
4719
4815
|
*/
|
|
4720
4816
|
declare function TreeView<T>({ items, getId, getChildren, renderItem, label, expanded: expandedProp, defaultExpanded, onExpandedChange, selected: selectedProp, defaultSelected, onSelect, size, className, }: TreeViewProps<T>): react.JSX.Element;
|
|
4721
4817
|
|
|
4722
|
-
type TableDensity = 'default' | 'compact';
|
|
4723
|
-
type TableSortDirection = 'ascending' | 'descending';
|
|
4724
|
-
/**
|
|
4725
|
-
* The composable table primitive, matching Figma's `Table` and `Table cell`.
|
|
4726
|
-
*
|
|
4727
|
-
* `DataTable` is the config-driven form — you give it `columns` and `rows` and it renders
|
|
4728
|
-
* everything. It is the right tool most of the time, and it is not going away. But it
|
|
4729
|
-
* cannot express a grouped header, a footer row, a colspan, or a cell layout outside its
|
|
4730
|
-
* `render` signature, so anything unusual meant abandoning it for a hand-rolled `<table>`
|
|
4731
|
-
* with none of the semantics. These parts are that escape hatch with the semantics kept.
|
|
4732
|
-
*
|
|
4733
|
-
* Figma's `Table cell` has a 32-value `Style` axis (lead checkbox, lead avatar, badges
|
|
4734
|
-
* multiple, trend positive/negative, action icons, star ratings, payment method…). Those
|
|
4735
|
-
* are *compositions*, not variants of one component — each is an existing library
|
|
4736
|
-
* component dropped into a cell — so they are expressed here as `TableCell` plus whatever
|
|
4737
|
-
* goes inside it, rather than 32 props.
|
|
4738
|
-
*/
|
|
4739
|
-
interface TableProps extends HTMLAttributes<HTMLTableElement> {
|
|
4740
|
-
/** Names the table. Required unless you render a `TableCaption`. */
|
|
4741
|
-
label?: string;
|
|
4742
|
-
density?: TableDensity;
|
|
4743
|
-
/** Equal-width columns driven by `<colgroup>`, matching `DataTable`. Default `false`. */
|
|
4744
|
-
fixed?: boolean;
|
|
4745
|
-
/**
|
|
4746
|
-
* Cap the height (px number or CSS length) and scroll the body inside it. Pair with
|
|
4747
|
-
* `<TableHead sticky>` to keep the header row in view. The wrapper becomes a focusable region
|
|
4748
|
-
* named by `label`, so the keyboard can scroll it. New in 0.7.1.
|
|
4749
|
-
*/
|
|
4750
|
-
maxHeight?: number | string;
|
|
4751
|
-
}
|
|
4752
|
-
declare const Table: react.ForwardRefExoticComponent<TableProps & react.RefAttributes<HTMLTableElement>>;
|
|
4753
|
-
interface TableCaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
|
|
4754
|
-
}
|
|
4755
|
-
/**
|
|
4756
|
-
* A visible table title that also names the table. Prefer this over `label` when the
|
|
4757
|
-
* heading is on screen anyway — `DataTable` could not be named at all before 0.4.0.
|
|
4758
|
-
*/
|
|
4759
|
-
declare const TableCaption: react.ForwardRefExoticComponent<TableCaptionProps & react.RefAttributes<HTMLTableCaptionElement>>;
|
|
4760
|
-
declare const TableHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
4761
|
-
declare const TableBody: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
4762
|
-
declare const TableFooter: react.ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
|
|
4763
|
-
/**
|
|
4764
|
-
* A row's state tint. Each is a meaning, not a colour: `muted` for an inactive or ended
|
|
4765
|
-
* record, `danger` for a denied or failed one, and so on. New in 0.7.0, to replace the
|
|
4766
|
-
* `className={active ? '' : 'bg-default-secondary'}` consumers were writing on every row.
|
|
4767
|
-
*/
|
|
4768
|
-
type TableRowTone = 'default' | 'muted' | 'brand' | 'positive' | 'warning' | 'danger';
|
|
4769
|
-
interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
4770
|
-
selected?: boolean;
|
|
4771
|
-
/** State tint; see `TableRowTone`. Selection wins over tone. */
|
|
4772
|
-
tone?: TableRowTone;
|
|
4773
|
-
/** De-emphasises the row (an expired or archived record) without hiding it. */
|
|
4774
|
-
dimmed?: boolean;
|
|
4775
|
-
}
|
|
4776
|
-
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
4777
|
-
interface TableHeadProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
4778
|
-
/**
|
|
4779
|
-
* Makes the header a sort control. `false` means sortable but not currently sorted.
|
|
4780
|
-
*
|
|
4781
|
-
* `aria-sort` goes on the `<th>` and must be present on exactly one column at a time —
|
|
4782
|
-
* it is the only non-visual signal of sort state, and `DataTable` had none.
|
|
4783
|
-
*/
|
|
4784
|
-
sort?: TableSortDirection | false;
|
|
4785
|
-
onSort?: () => void;
|
|
4786
|
-
align?: 'left' | 'center' | 'right';
|
|
4787
|
-
/** Keeps the header visible while the body scrolls. */
|
|
4788
|
-
sticky?: boolean;
|
|
4789
|
-
}
|
|
4790
|
-
declare const TableHead: react.ForwardRefExoticComponent<TableHeadProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
4791
|
-
interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
4792
|
-
align?: 'left' | 'center' | 'right';
|
|
4793
|
-
/** Vertical rhythm. Matches `DataTable`'s `density`. */
|
|
4794
|
-
density?: TableDensity;
|
|
4795
|
-
/** Makes this the row's header cell — `scope="row"`, for a table with row headers. */
|
|
4796
|
-
header?: boolean;
|
|
4797
|
-
}
|
|
4798
|
-
declare const TableCell: react.ForwardRefExoticComponent<TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
4799
|
-
|
|
4800
|
-
/** How a column appears in card mode. */
|
|
4801
|
-
type ColumnMobileRole = 'title' | 'status' | 'actions' | 'field' | 'hidden';
|
|
4802
|
-
|
|
4803
|
-
/**
|
|
4804
|
-
* The composable parts of `DataTable`. `DataTable` renders all of them for you; they are
|
|
4805
|
-
* exported for a table that needs its own layout around them (a toolbar elsewhere on the
|
|
4806
|
-
* page, a pager in a sticky footer) or a custom header renderer.
|
|
4807
|
-
*/
|
|
4808
|
-
/** The id `createSelectColumn` gives its column, so `DataTable` can find and place it. */
|
|
4809
|
-
declare const SELECT_COLUMN_ID = "select";
|
|
4810
|
-
interface DataTableColumnHeaderProps<TData, TValue> {
|
|
4811
|
-
column: Column<TData, TValue>;
|
|
4812
|
-
/** Header text. Defaults to the column's label. */
|
|
4813
|
-
title?: string;
|
|
4814
|
-
className?: string;
|
|
4815
|
-
}
|
|
4816
|
-
/**
|
|
4817
|
-
* A header that sorts its column when the column can sort, and plain text when it cannot.
|
|
4818
|
-
* `DataTable` uses it for every string `header`. Use it yourself inside a `header` render
|
|
4819
|
-
* function to keep the sort control while adding something next to it.
|
|
4820
|
-
*
|
|
4821
|
-
* A click cycles the sort (ascending → descending → off). Shift-click adds the column to a
|
|
4822
|
-
* multi-column sort. The direction is announced through `aria-sort` on the `<th>`, which
|
|
4823
|
-
* `DataTable` sets, so this button carries only the visible chevron.
|
|
4824
|
-
*/
|
|
4825
|
-
declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): react.JSX.Element;
|
|
4826
|
-
interface CreateSelectColumnOptions<TData> {
|
|
4827
|
-
/** Names each row's checkbox, e.g. `(row) => \`Select ${row.name}\``. Default "Select row". */
|
|
4828
|
-
getRowLabel?: (row: TData) => string;
|
|
4829
|
-
/** Names the header checkbox. Default "Select all rows on this page". */
|
|
4830
|
-
selectAllLabel?: string;
|
|
4831
|
-
}
|
|
4832
|
-
/**
|
|
4833
|
-
* A leading checkbox column. `DataTable` adds one automatically when `enableRowSelection` is
|
|
4834
|
-
* set and the columns have none, so call this only to place it yourself or to name the rows.
|
|
4835
|
-
*
|
|
4836
|
-
* The header checkbox selects the current *page*, which is what a user can see, and shows
|
|
4837
|
-
* indeterminate while some of the page is selected.
|
|
4838
|
-
*/
|
|
4839
|
-
declare function createSelectColumn<TData>(options?: CreateSelectColumnOptions<TData>): ColumnDef<TData, unknown>;
|
|
4840
|
-
interface DataTableViewOptionsProps<TData> {
|
|
4841
|
-
table: Table$1<TData>;
|
|
4842
|
-
/** Trigger text. Default "Columns". */
|
|
4843
|
-
label?: string;
|
|
4844
|
-
}
|
|
4845
|
-
/** A "Columns" menu that shows and hides every column whose `enableHiding` is not false. */
|
|
4846
|
-
declare function DataTableViewOptions<TData>({ table, label }: DataTableViewOptionsProps<TData>): react.JSX.Element | null;
|
|
4847
|
-
interface DataTablePaginationProps<TData> {
|
|
4848
|
-
table: Table$1<TData>;
|
|
4849
|
-
/** Page sizes on offer. An empty array hides the selector. Default `[10, 20, 50]`. */
|
|
4850
|
-
pageSizeOptions?: number[];
|
|
4851
|
-
/** Replaces the "Showing 1–10 of 57" summary. */
|
|
4852
|
-
summary?: ReactNode;
|
|
4853
|
-
}
|
|
4854
|
-
/** The pager row: a range summary, a page-size selector, and page buttons. */
|
|
4855
|
-
declare function DataTablePagination<TData>({ table, pageSizeOptions, summary, }: DataTablePaginationProps<TData>): react.JSX.Element;
|
|
4856
|
-
|
|
4857
|
-
/**
|
|
4858
|
-
* Cell renderers for `DataTable` (and the `Table` parts). Unchanged in 0.7.0; moved out of
|
|
4859
|
-
* `data-table.tsx` when the table itself was rebuilt on TanStack Table.
|
|
4860
|
-
*/
|
|
4861
|
-
/**
|
|
4862
|
-
* Cell type scale.
|
|
4863
|
-
*
|
|
4864
|
-
* Named `size`, not `density`, and deliberately *not* inherited from the table: the two
|
|
4865
|
-
* real compact tables disagree about the mapping — the audit table wants default
|
|
4866
|
-
* padding with small cell text — so inheritance could not express it anyway, and it
|
|
4867
|
-
* would make these render one size inside a table and another outside one.
|
|
4868
|
-
*/
|
|
4869
|
-
type TableCellSize = 'sm' | 'md';
|
|
4870
|
-
interface TableCellLeadTextProps {
|
|
4871
|
-
primary: string;
|
|
4872
|
-
/**
|
|
4873
|
-
* The muted second line. A string ellipsises with a `title`. From 0.9.1 it can also be an
|
|
4874
|
-
* element, such as `<EmailText email={…} />`, which manages its own overflow: an email
|
|
4875
|
-
* should truncate before the `@`, never wrap mid-word.
|
|
4876
|
-
*/
|
|
4877
|
-
secondary?: ReactNode;
|
|
4878
|
-
size?: TableCellSize;
|
|
4879
|
-
className?: string;
|
|
4880
|
-
}
|
|
4881
|
-
/**
|
|
4882
|
-
* Primary text plus an optional muted subtitle — for lead entity/name cells.
|
|
4883
|
-
*
|
|
4884
|
-
* Both lines ellipsise, with the full text as a `title`, so a long name can't stretch the row.
|
|
4885
|
-
* `min-w-0` on the root is load-bearing: callers put this next to an Avatar in a flex row, and a
|
|
4886
|
-
* flex item doesn't shrink below its content width without it, so `truncate` would never fire.
|
|
4887
|
-
*/
|
|
4888
|
-
declare function TableCellLeadText({ primary, secondary, size, className }: TableCellLeadTextProps): react.JSX.Element;
|
|
4889
|
-
interface TableCellTextProps {
|
|
4890
|
-
children: ReactNode;
|
|
4891
|
-
/** Muted (secondary) by default; pass false for the primary colour. */
|
|
4892
|
-
muted?: boolean;
|
|
4893
|
-
size?: TableCellSize;
|
|
4894
|
-
/**
|
|
4895
|
-
* Ellipsise with the full text as a `title` (default). `false` keeps the text on one line at
|
|
4896
|
-
* its full width instead, for a column that is sized to fit its content.
|
|
4897
|
-
*
|
|
4898
|
-
* Defaulted on in 0.8.3. Until then the default was a bare `whitespace-nowrap`, which in a
|
|
4899
|
-
* column narrower than the text clipped it mid-glyph with no ellipsis and no way to read the
|
|
4900
|
-
* rest.
|
|
4901
|
-
*/
|
|
4902
|
-
truncate?: boolean;
|
|
4903
|
-
className?: string;
|
|
4904
|
-
}
|
|
4905
|
-
/** Plain one-line text cell. */
|
|
4906
|
-
declare function TableCellText({ children, muted, size, truncate, className, }: TableCellTextProps): react.JSX.Element;
|
|
4907
|
-
interface TableCellBadgeProps {
|
|
4908
|
-
label: string;
|
|
4909
|
-
className?: string;
|
|
4910
|
-
}
|
|
4911
|
-
/**
|
|
4912
|
-
* Small outlined chip — entity type labels, categories. A label longer than the column
|
|
4913
|
-
* ellipsises inside the chip, with the full text as a `title`, rather than overflowing it.
|
|
4914
|
-
*/
|
|
4915
|
-
declare function TableCellBadge({ label, className }: TableCellBadgeProps): react.JSX.Element;
|
|
4916
|
-
interface TableCellProgressProps {
|
|
4917
|
-
percent: number;
|
|
4918
|
-
/**
|
|
4919
|
-
* Bar colour. `brand` is 0.2.0's default and byte-identical to it — `bg-brand`
|
|
4920
|
-
* resolves to the same `--prim-brand-900` the old raw-hex default hardcoded.
|
|
4921
|
-
*/
|
|
4922
|
-
tone?: ProgressBarTone;
|
|
4923
|
-
size?: TableCellSize;
|
|
4924
|
-
/**
|
|
4925
|
-
* What the bar measures, e.g. "Risk score" — the bar's accessible name, with the value
|
|
4926
|
-
* announced by the progressbar role. Without it the bar is named by its percentage alone.
|
|
4927
|
-
*/
|
|
4928
|
-
label?: string;
|
|
4929
|
-
className?: string;
|
|
4930
|
-
}
|
|
4931
|
-
/**
|
|
4932
|
-
* Mini progress bar with its percentage at the end. The bar fills whatever width the cell gives
|
|
4933
|
-
* it, as shadcn's Progress (`w-full`), Ant Design's line Progress and MUI's LinearProgress do:
|
|
4934
|
-
* through 0.7.0 it was a fixed 48 / 64px, which left most of a wide column, or of a card field in
|
|
4935
|
-
* the responsive layout, empty. `size` now sets the bar's thickness (4 / 6px).
|
|
4936
|
-
*/
|
|
4937
|
-
declare function TableCellProgress({ percent, tone, size, label, className, }: TableCellProgressProps): react.JSX.Element;
|
|
4938
|
-
|
|
4939
|
-
type DataTableColumnAlign = 'start' | 'center' | 'end';
|
|
4940
|
-
/**
|
|
4941
|
-
* Per-column layout options, carried on TanStack's `meta`. Declared by augmenting TanStack's
|
|
4942
|
-
* own `ColumnMeta`, so `meta` on your `ColumnDef` is typed with no extra import:
|
|
4943
|
-
*
|
|
4944
|
-
* const columns: ColumnDef<Supplier>[] = [
|
|
4945
|
-
* { accessorKey: 'name', header: 'Supplier', meta: { width: '280px', grow: true, mobile: 'title' } },
|
|
4946
|
-
* ];
|
|
4947
|
-
*/
|
|
4948
|
-
declare module '@tanstack/react-table' {
|
|
4949
|
-
interface ColumnMeta<TData extends RowData, TValue> {
|
|
4950
|
-
/**
|
|
4951
|
-
* CSS width for the column's `<col>`, e.g. `"320px"` or `"10rem"`. A column is never
|
|
4952
|
-
* narrower than its header text. With `grow`, this is the floor instead.
|
|
4953
|
-
*/
|
|
4954
|
-
width?: string;
|
|
4955
|
-
/** Absorbs the table's remaining width, with `width` as its floor. Usually one column. */
|
|
4956
|
-
grow?: boolean;
|
|
4957
|
-
/** Horizontal alignment of the header and cells. Default `start`. */
|
|
4958
|
-
align?: DataTableColumnAlign;
|
|
4959
|
-
/**
|
|
4960
|
-
* The cell renders its own controls (a button, a toggle, a menu). Presses inside it stop
|
|
4961
|
-
* before reaching the row's `onRowClick`, and the cell stops clipping its overflow, so
|
|
4962
|
-
* focus rings are not cut off.
|
|
4963
|
-
*/
|
|
4964
|
-
interactive?: boolean;
|
|
4965
|
-
/** Keep the header for screen readers but hide it visually, e.g. an actions column. */
|
|
4966
|
-
hideHeader?: boolean;
|
|
4967
|
-
/** The column's part in card mode. See `ColumnMobileRole`. Default `field`. */
|
|
4968
|
-
mobile?: ColumnMobileRole;
|
|
4969
|
-
/** Pin the first (`start`) or last (`end`) visible column while the table scrolls sideways. */
|
|
4970
|
-
sticky?: 'start' | 'end';
|
|
4971
|
-
/** The column's name where its header cannot be shown as text: menus, card labels. */
|
|
4972
|
-
label?: string;
|
|
4973
|
-
/** Extra classes on the header cell. An escape hatch; prefer `align`. */
|
|
4974
|
-
headerClassName?: string;
|
|
4975
|
-
/** Extra classes on each body cell. An escape hatch; prefer `align`. */
|
|
4976
|
-
cellClassName?: string;
|
|
4977
|
-
}
|
|
4978
|
-
}
|
|
4979
|
-
type DataTableDensity = 'default' | 'compact';
|
|
4980
|
-
type DataTableAlign = 'center' | 'top';
|
|
4981
|
-
/** The table state you can control. Every key is optional and independently controlled. */
|
|
4982
|
-
interface DataTableState {
|
|
4983
|
-
sorting: SortingState;
|
|
4984
|
-
globalFilter: string;
|
|
4985
|
-
columnFilters: ColumnFiltersState;
|
|
4986
|
-
pagination: PaginationState;
|
|
4987
|
-
columnVisibility: VisibilityState;
|
|
4988
|
-
rowSelection: RowSelectionState;
|
|
4989
|
-
}
|
|
4990
|
-
/** Hand an operation to the server. The table then shows `data` as given for that operation. */
|
|
4991
|
-
interface DataTableManual {
|
|
4992
|
-
sorting?: boolean;
|
|
4993
|
-
filtering?: boolean;
|
|
4994
|
-
pagination?: boolean;
|
|
4995
|
-
/** Total rows on the server. Needed with `pagination`, so the pager knows the page count. */
|
|
4996
|
-
rowCount?: number;
|
|
4997
|
-
}
|
|
4998
|
-
interface DataTableSearchOptions {
|
|
4999
|
-
/** Filter one column instead of every column. */
|
|
5000
|
-
columnId?: string;
|
|
5001
|
-
placeholder?: string;
|
|
5002
|
-
/** Accessible name. Default "Search". */
|
|
5003
|
-
label?: string;
|
|
5004
|
-
}
|
|
5005
|
-
interface DataTableRowLinkProps {
|
|
5006
|
-
href: string;
|
|
5007
|
-
className: string;
|
|
5008
|
-
children: ReactNode;
|
|
5009
|
-
'data-row-link': '';
|
|
5010
|
-
}
|
|
5011
|
-
interface DataTableProps<TData, TValue = unknown> {
|
|
5012
|
-
/** TanStack column definitions. Layout options go in each column's `meta`. */
|
|
5013
|
-
columns: ColumnDef<TData, TValue>[];
|
|
5014
|
-
data: TData[];
|
|
5015
|
-
/** A stable id per row. Defaults to the row index, which breaks selection across re-sorts. */
|
|
5016
|
-
getRowId?: (row: TData, index: number) => string;
|
|
5017
|
-
/**
|
|
5018
|
-
* Accessible name, rendered as a visually hidden `<caption>`. Give the table either this or
|
|
5019
|
-
* `caption`: an unnamed table is announced as just "table".
|
|
5020
|
-
*/
|
|
5021
|
-
label?: string;
|
|
5022
|
-
/** A visible caption above the table, which also names it. */
|
|
5023
|
-
caption?: ReactNode;
|
|
5024
|
-
/** A search box. `true` filters across every column; pass options to filter one column. */
|
|
5025
|
-
searchable?: boolean | DataTableSearchOptions;
|
|
5026
|
-
/** A "Columns" menu to show and hide columns. */
|
|
5027
|
-
columnVisibility?: boolean;
|
|
5028
|
-
/** Page the rows. Default `true`. */
|
|
5029
|
-
pagination?: boolean;
|
|
5030
|
-
/** Rows per page to start with. Default `10`. */
|
|
5031
|
-
pageSize?: number;
|
|
5032
|
-
/** Page sizes to offer. Default `[10, 20, 50]`; `[]` hides the selector. */
|
|
5033
|
-
pageSizeOptions?: number[];
|
|
5034
|
-
/**
|
|
5035
|
-
* Adds a leading checkbox column (unless the columns already include `createSelectColumn()`).
|
|
5036
|
-
* Pass a function to make only some rows selectable.
|
|
5037
|
-
*/
|
|
5038
|
-
enableRowSelection?: boolean | ((row: TData) => boolean);
|
|
5039
|
-
/** The selected rows, every time the selection changes. */
|
|
5040
|
-
onSelectionChange?: (rows: TData[]) => void;
|
|
5041
|
-
/** Names a row for its selection checkbox and its card, e.g. `(s) => s.name`. */
|
|
5042
|
-
getRowLabel?: (row: TData) => string;
|
|
5043
|
-
/**
|
|
5044
|
-
* Whole-row activation for rows that open something in place (a drawer, a modal). Keyboard
|
|
5045
|
-
* users focus the row and press Enter or Space. Rows that navigate should use `getRowHref`.
|
|
5046
|
-
*/
|
|
5047
|
-
onRowClick?: (row: TData) => void;
|
|
5048
|
-
/**
|
|
5049
|
-
* The row's destination. The title cell renders as a real link (so middle-click, open in a
|
|
5050
|
-
* new tab and screen-reader link lists all work) and a click anywhere else on the row follows
|
|
5051
|
-
* it. Takes precedence over `onRowClick`.
|
|
5052
|
-
*/
|
|
5053
|
-
getRowHref?: (row: TData) => string;
|
|
5054
|
-
/**
|
|
5055
|
-
* Renders the row link, e.g. through your router's `Link`. Default: a plain `<a>`.
|
|
5056
|
-
*
|
|
5057
|
-
* The row comes as a second argument rather than inside `props`, so spreading `props` onto a
|
|
5058
|
-
* link never puts the row object on a DOM element. Use it for anything the link needs per row,
|
|
5059
|
-
* e.g. router state: `({ href, ...props }, row) => <Link to={href} state={{ from: row.id }} {...props} />`.
|
|
5060
|
-
*/
|
|
5061
|
-
renderRowLink?: (props: DataTableRowLinkProps, row: TData) => ReactElement;
|
|
5062
|
-
/** A state tint per row, e.g. `(u) => (u.active ? undefined : 'muted')`. */
|
|
5063
|
-
getRowTone?: (row: TData) => TableRowTone | undefined;
|
|
5064
|
-
/** De-emphasise some rows, e.g. expired ones. */
|
|
5065
|
-
getRowDimmed?: (row: TData) => boolean;
|
|
5066
|
-
/** Shows skeleton rows in place of `data`. */
|
|
5067
|
-
loading?: boolean;
|
|
5068
|
-
/** How many skeleton rows. Default `5`. */
|
|
5069
|
-
loadingRows?: number;
|
|
5070
|
-
/** A load failure, shown in place of the rows. Takes precedence over loading and empty. */
|
|
5071
|
-
error?: ReactNode;
|
|
5072
|
-
/** Adds a Retry button to the error state. */
|
|
5073
|
-
onRetry?: () => void;
|
|
5074
|
-
/** Shown when there are no rows. A string, or your own node. Default "No results found." */
|
|
5075
|
-
empty?: ReactNode;
|
|
5076
|
-
/** Extra toolbar content beside the search box: filters, a primary action. */
|
|
5077
|
-
toolbar?: ReactNode;
|
|
5078
|
-
/** Extra content below the pager, e.g. a "refreshed 2 min ago" note. */
|
|
5079
|
-
footer?: ReactNode;
|
|
5080
|
-
density?: DataTableDensity;
|
|
5081
|
-
/** Vertical alignment of body cells. Use `top` for multi-line or ragged cells. */
|
|
5082
|
-
align?: DataTableAlign;
|
|
5083
|
-
/**
|
|
5084
|
-
* Render rows as cards when the table's own width is below the breakpoint. Default `true`
|
|
5085
|
-
* at 560px. `false` always renders a table.
|
|
5086
|
-
*/
|
|
5087
|
-
responsive?: boolean | {
|
|
5088
|
-
breakpoint?: number;
|
|
5089
|
-
};
|
|
5090
|
-
/**
|
|
5091
|
-
* Cap the table's height (px number or any CSS length) and scroll the body inside it, with the
|
|
5092
|
-
* header row pinned. Works with horizontal scrolling and sticky columns, and caps the card list
|
|
5093
|
-
* in the responsive layout. The pattern of MUI's `TableContainer` + `stickyHeader` and Ant
|
|
5094
|
-
* Design's `scroll.y`. New in 0.7.1.
|
|
5095
|
-
*/
|
|
5096
|
-
maxHeight?: number | string;
|
|
5097
|
-
manual?: DataTableManual;
|
|
5098
|
-
/** Controlled state. Any key you pass is controlled; the rest stay internal. */
|
|
5099
|
-
state?: Partial<DataTableState>;
|
|
5100
|
-
onSortingChange?: (sorting: SortingState) => void;
|
|
5101
|
-
onGlobalFilterChange?: (value: string) => void;
|
|
5102
|
-
onColumnFiltersChange?: (filters: ColumnFiltersState) => void;
|
|
5103
|
-
onPaginationChange?: (pagination: PaginationState) => void;
|
|
5104
|
-
onColumnVisibilityChange?: (visibility: VisibilityState) => void;
|
|
5105
|
-
onRowSelectionChange?: (selection: RowSelectionState) => void;
|
|
5106
|
-
/** Passed to `useReactTable` last, for anything this API does not cover. */
|
|
5107
|
-
tableOptions?: Partial<TableOptions<TData>>;
|
|
5108
|
-
/** Classes on the bordered wrapper. Layout only, e.g. margins. */
|
|
5109
|
-
className?: string;
|
|
5110
|
-
}
|
|
5111
|
-
/**
|
|
5112
|
-
* A data table on TanStack Table: sorting, search, pagination, column visibility and row
|
|
5113
|
-
* selection built in, client-side by default and server-driven through `manual`.
|
|
5114
|
-
*
|
|
5115
|
-
* <DataTable label="Suppliers" columns={columns} data={suppliers} searchable columnVisibility />
|
|
5116
|
-
*
|
|
5117
|
-
* `TData` and `TValue` are inferred from `columns`, so `cell: ({ row }) => row.original.name`
|
|
5118
|
-
* is typed. Layout options (width, alignment, card-mode role, sticky) go in each column's `meta`.
|
|
5119
|
-
*
|
|
5120
|
-
* Layout, from SCIC's table:
|
|
5121
|
-
* - `table-fixed` plus one `<colgroup>`, so one set of widths governs every row and cells can
|
|
5122
|
-
* ellipsise. A column is never narrower than its header.
|
|
5123
|
-
* - Whatever does not fit scrolls inside a focusable, named region with edge shadows and
|
|
5124
|
-
* optional sticky first or last columns.
|
|
5125
|
-
* - Below 560px of its own width (not the viewport's) each row becomes a card: the title column
|
|
5126
|
-
* leads, `status` and `actions` sit at the top, the rest become labelled values.
|
|
5127
|
-
*
|
|
5128
|
-
* Accessibility: a real `<table>` with a caption, `aria-sort` on sortable headers, `aria-busy`
|
|
5129
|
-
* while loading, a polite announcement of the result count after a search, keyboard row
|
|
5130
|
-
* activation, and named selection checkboxes.
|
|
5131
|
-
*/
|
|
5132
|
-
declare function DataTable<TData, TValue = unknown>({ columns, data, getRowId, label, caption, searchable, columnVisibility: showColumnMenu, pagination: paginated, pageSize, pageSizeOptions, enableRowSelection, onSelectionChange, getRowLabel, onRowClick, getRowHref, renderRowLink, getRowTone, getRowDimmed, loading, loadingRows, error, onRetry, empty, toolbar, footer, density, align, responsive, maxHeight, manual, state, onSortingChange, onGlobalFilterChange, onColumnFiltersChange, onPaginationChange, onColumnVisibilityChange, onRowSelectionChange, tableOptions, className, }: DataTableProps<TData, TValue>): react.JSX.Element;
|
|
5133
|
-
|
|
5134
4818
|
/**
|
|
5135
4819
|
* Tracks an element's rendered content-box width. New in 0.7.0, from SCIC.
|
|
5136
4820
|
*
|
|
@@ -5149,19 +4833,26 @@ declare function useElementWidth<T extends HTMLElement = HTMLElement>(): [
|
|
|
5149
4833
|
number | undefined
|
|
5150
4834
|
];
|
|
5151
4835
|
|
|
5152
|
-
|
|
4836
|
+
/** `neutral` is new in 0.9.5: a quiet, bordered note with no status colour, e.g. "Viewing. Choose Edit to change this." */
|
|
4837
|
+
type InlineAlertTone = 'info' | 'warning' | 'danger' | 'positive' | 'neutral';
|
|
5153
4838
|
interface InlineAlertProps {
|
|
5154
4839
|
tone: InlineAlertTone;
|
|
5155
4840
|
children: ReactNode;
|
|
5156
4841
|
/** Overrides the per-tone default glyph. Pass `null` for no icon. */
|
|
5157
4842
|
icon?: ReactNode | null;
|
|
4843
|
+
/**
|
|
4844
|
+
* Overrides the live-region role, which is otherwise `alert` for `danger` and `status` for the
|
|
4845
|
+
* rest. Pass `status` for a danger-toned answer that updates as the user explores, e.g. "Not
|
|
4846
|
+
* allowed. …" beside a picker, which should wait its turn rather than interrupt. New in 0.9.5.
|
|
4847
|
+
*/
|
|
4848
|
+
role?: 'alert' | 'status';
|
|
5158
4849
|
className?: string;
|
|
5159
4850
|
}
|
|
5160
4851
|
/** Banner for inline messaging — form errors, destructive-action warnings, success confirmations.
|
|
5161
4852
|
*
|
|
5162
4853
|
* Replaces four byte-identical raw-`amber-*` callouts, five competing error-text styles and a
|
|
5163
4854
|
* standalone `Banner` component. `danger` renders as `role="alert"`; the rest as `role="status"`. */
|
|
5164
|
-
declare function InlineAlert({ tone, children, icon, className }: InlineAlertProps): react.JSX.Element;
|
|
4855
|
+
declare function InlineAlert({ tone, children, icon, role, className }: InlineAlertProps): react.JSX.Element;
|
|
5165
4856
|
|
|
5166
4857
|
type EmptyStateVariant = 'empty' | 'loading' | 'error';
|
|
5167
4858
|
type EmptyStateSize = 'sm' | 'md' | 'lg';
|
|
@@ -5202,10 +4893,10 @@ interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
5202
4893
|
* Indeterminate loading indicator. `ProgressBar` is the determinate counterpart.
|
|
5203
4894
|
*
|
|
5204
4895
|
* The spin is a border-based ring rather than an SVG so it inherits `currentColor` and
|
|
5205
|
-
* needs no fill/stroke plumbing — it works on any button variant unchanged.
|
|
5206
|
-
*
|
|
5207
|
-
*
|
|
5208
|
-
*
|
|
4896
|
+
* needs no fill/stroke plumbing — it works on any button variant unchanged. Under
|
|
4897
|
+
* `prefers-reduced-motion` it pulses in place instead of turning (from 0.9.4): rotation is
|
|
4898
|
+
* movement, but a ring frozen mid-turn, as the old blanket rule left it, no longer reads as
|
|
4899
|
+
* "working". The transparent segment is a full quarter so the ring stays legible either way.
|
|
5209
4900
|
*/
|
|
5210
4901
|
declare const Spinner: react.ForwardRefExoticComponent<SpinnerProps & react.RefAttributes<HTMLSpanElement>>;
|
|
5211
4902
|
|
|
@@ -5252,8 +4943,7 @@ interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
5252
4943
|
* carry the loading state — `EmptyState variant="loading"` or `aria-busy` on the
|
|
5253
4944
|
* container — which is a decision only the caller can make.
|
|
5254
4945
|
*
|
|
5255
|
-
* The pulse is
|
|
5256
|
-
* tinted block.
|
|
4946
|
+
* The pulse is `motion-safe:`, so under `prefers-reduced-motion` it is a plain tinted block.
|
|
5257
4947
|
*/
|
|
5258
4948
|
declare const Skeleton: react.ForwardRefExoticComponent<SkeletonProps & react.RefAttributes<HTMLDivElement>>;
|
|
5259
4949
|
|
|
@@ -5419,4 +5109,4 @@ declare function ChatBubble({ sender, children, failed, className }: ChatBubbleP
|
|
|
5419
5109
|
|
|
5420
5110
|
declare function AuroraBackdrop(): react.JSX.Element;
|
|
5421
5111
|
|
|
5422
|
-
export { AIChatBar, type AIChatBarProps, AISuggestionChip, type AISuggestionChipProps, AccessibleIcon, type AccessibleIconProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, AiAvatar, type AiAvatarProps, AspectRatio, type AspectRatioProps, AuroraBackdrop, Avatar, AvatarBlock, type AvatarBlockProps, AvatarGroup, type AvatarGroupProps, type AvatarGroupSpacing, type AvatarImageProps, type AvatarInitialProps, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BarChartSeries, type BarChartSize, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupAlign, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_SEQUENCE, CHART_TONE, CHART_TRACK, COL_SPAN, COL_SPAN_BY_TIER, COUNTRY_CODES, Calendar, type CalendarMode, type CalendarProps, Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterAlign, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, type CardRadius, type CardSize, CardTitle, type CardTitleProps, type CardTone, Carousel, CarouselControls, type CarouselControlsProps, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselViewport, type CarouselViewportProps, ChartLegend, type ChartLegendItem, type ChartLegendOrientation, type ChartLegendProps, type ChartTone, ChatBubble, type ChatBubbleProps, type ChatBubbleSender, CheckIndicator, type CheckIndicatorProps, type CheckIndicatorStatus, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckedGroup, CheckedGroupList, type CheckedGroupListColumns, type CheckedGroupListProps, ChecklistRow, type ChecklistRowProps, type ChecklistRowState, type ChoiceCardBreakpoint, type ColSize, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, type ColumnMobileRole, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandItem, type CommandProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, ContextMenuItems, ContextMenuLabel, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTriggerProps, ControlSizeProvider, type ControlSizeProviderProps, CopyButton, type CopyButtonProps, CountBadge, type CountBadgeProps, CountrySelect, type CountrySelectProps, type CreateSelectColumnOptions, DEFAULT_SCORE_THRESHOLDS, DataTable, type DataTableAlign, type DataTableColumnAlign, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableDensity, type DataTableManual, DataTablePagination, type DataTablePaginationProps, type DataTableProps, type DataTableRowLinkProps, type DataTableSearchOptions, type DataTableState, DataTableViewOptions, type DataTableViewOptionsProps, DatePicker, type DatePickerProps, type DateRange, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DetailGrid, type DetailGridColumns, type DetailGridProps, DetailItem, type DetailItemLayout, type DetailItemProps, type DetailItemSpan, DonutChart, type DonutChartProps, type DonutChartSize, type DonutSegment, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterAlign, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, type DrawerSide, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type MenuGroupProps as DropdownMenuGroupProps, DropdownMenuItem, type MenuItemProps as DropdownMenuItemProps, type MenuItemTone as DropdownMenuItemTone, DropdownMenuItems, DropdownMenuLabel, type MenuLabelProps as DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type MenuRadioGroupProps as DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type MenuRadioItemProps as DropdownMenuRadioItemProps, DropdownMenuSeparator, type MenuSeparatorProps as DropdownMenuSeparatorProps, DropdownMenuShortcut, type MenuShortcutProps as DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type MenuSubContentProps as DropdownMenuSubContentProps, type MenuSubProps as DropdownMenuSubProps, DropdownMenuSubTrigger, type MenuSubTriggerProps as DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmailText, EmptyState, type EmptyStateProps, type EmptyStateSize, type EmptyStateVariant, EntityIconBadge, type EntityIconBadgeProps, type EntityIconBadgeSize, type EntityIconBadgeTone, ErrorBoundary, type ErrorBoundaryProps, EyebrowLabel, type EyebrowLabelProps, type EyebrowLabelVariant, FOCUS_RING, FOCUS_RING_INSET, Field, type FieldContextValue, FieldDescription, FieldError, FieldGroup, type FieldGroupProps, FieldHint, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldTextProps, FileDropZone, type FileDropZoneProps, FileRow, type FileRowProps, FilterBar, type FilterBarProps, type FilterBarSize, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, FormCard, FormCardFooter, type FormCardFooterProps, FormCardHeader, type FormCardHeaderProps, type FullscreenStacking, FullscreenSurface, type FullscreenSurfaceProps, GRID_TIERS, Grid, type GridBreakpoint, type GridColumnCount, type GridProps, type GridTier, HEIGHT_CLASS, HEIGHT_PX, Heading, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, type IconButtonVariant, IconTextRow, type IconTextRowProps, InlineAlert, type InlineAlertProps, type InlineAlertTone, Input, InputControl, type InputControlProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAlign, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputOTP, type InputOTPMode, type InputOTPProps, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, Label, type LabelProps, LegendDot, type LegendDotProps, type LegendDotShape, type LegendDotSize, ListRow, type ListRowDensity, type ListRowDivider, type ListRowProps, type MenuItemDef, Menubar, MenubarCheckboxItem, MenubarContent, type MenubarContentProps, MenubarGroup, MenubarItem, MenubarItems, MenubarLabel, MenubarMenu, type MenubarMenuDef, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MenubarTriggerProps, MiniBarChart, type MiniBarChartOrientation, type MiniBarChartProps, type MiniBarChartSize, Modal, type ModalAlign, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterAlign, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, type ModalTone, ModalTrigger, type ModalTriggerProps, MultiSelectCard, type MultiSelectCardProps, type MultiSelectCardSize, NativeSelect, NativeSelectControl, type NativeSelectControlProps, type NativeSelectProps, NavItem, type NavItemProps, type NavItemSize, type NavItemVariant, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, type NavigationMenuOrientation, type NavigationMenuProps, type NavigationMenuVariant, NoteConfirmModal, type NoteConfirmModalProps, NumberedList, type NumberedListGap, type NumberedListItem, type NumberedListProps, OVERLAY_SCRIM, PageHeading, type PageHeadingProps, type PageHeadingSize, PageToolbar, type PageToolbarProps, type PageToolbarSize, Pagination, PaginationBar, type PaginationBarProps, type PaginationProps, type PaginationType, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, type ProgressBarTone, type QuickAction, QuickActionsBar, type QuickActionsBarProps, Quote, ROLE_COMBO_OPTIONS, RadialGauge, type RadialGaugeProps, type RadialGaugeSize, Radio, RadioCards, RadioCardsItem, type RadioCardsItemProps, type RadioCardsProps, type RadioCardsSize, RadioGroup, type RadioGroupOption, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, Resizable, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, type ResponsiveChoiceCardSize, RoleBadge, type RoleBadgeProps, type RoleBadgeTone, RoleComboBox, type RoleComboBoxProps, type RoleOption, SCROLLBAR_CLASSES, SELECT_COLUMN_ID, type ScoreDirection, type ScoreRampTone, type ScoreThresholds, type ScoreTone, ScoreValue, type ScoreValueProps, type ScoreValueSize, type ScoreValueTone, type ScoreValueWeight, ScoredRow, type ScoredRowAlign, type ScoredRowGap, type ScoredRowProps, Scrim, type ScrimProps, ScrollArea, type ScrollAreaAxis, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, type SectionSize, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectControl, type SelectControlProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Slot, type SlotProps, type SpaceToken, Sparkline, type SparklineProps, type SparklineSize, type SparklineVariant, Spinner, type SpinnerProps, type SpinnerSize, StatNumber, type StatNumberProps, type StatNumberSize, type StatNumberWeight, StatTile, type StatTileProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, StatusChip, type StatusChipProps, StatusDot, type StatusDotProps, type StatusDotTone, type StatusTone, type StepItem, type StepStatus, Stepper, type StepperAlign, type StepperCompactInfo, type StepperProps, type StepperSize, StepsList, type StepsListProps, Subheading, Subtitle, Switch, type SwitchProps, type SwitchSize, TIER_COLS, TIER_MIN_PX, type TabItem, Table, TableBody, TableCaption, type TableCaptionProps, TableCell, TableCellBadge, type TableCellBadgeProps, TableCellLeadText, type TableCellLeadTextProps, TableCellProgress, type TableCellProgressProps, type TableCellProps, type TableCellSize, TableCellText, type TableCellTextProps, type TableDensity, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, type TableRowTone, type TableSortDirection, Tabs, type TabsActivation, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, TagInput, type TagInputParseResult, type TagInputProps, TagPill, type TagPillProps, type TagPillSize, type TagPillTone, Text, TextCode, TextEmphasis, TextLink, type TextLinkProps, TextList, type TextListDensity, TextListItem, type TextListItemProps, type TextListProps, type TextListVariant, type TextProps, TextSmall, TextStrong, TextTiny, type TextTone, Textarea, TextareaControl, type TextareaControlProps, type TextareaProps, TileGrid, type TileGridBreakpoint, type TileGridColumns, type TileGridProps, TimeZoneSelect, type TimeZoneSelectProps, TitleHero, TitlePage, type ToastOptions, type ToastRecord, type ToastTone, Toaster, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, TrailChip, type TrailChipProps, type TreeItemState, TreeView, type TreeViewProps, type TreeViewSize, type TrendDirection, TrendLabel, type TrendLabelProps, type TrendLabelSize, type TrendLabelWeight, TypingIndicator, type TypingIndicatorProps, type UseFilePicker, type UseFilePickerOptions, type UseWidthTierOptions, type UseWidthTierResult, type UserAccountStatus, UserStatusPill, type UserStatusPillProps, VisuallyHidden, type VisuallyHiddenProps, WidgetFooter, type WidgetFooterProps, WidgetGrid, WidgetGridItem, type WidgetGridItemProps, type WidgetGridProps, WidgetGridRow, type WidgetGridRowProps, WidgetHeader, WidgetHeaderAccessoryProvider, type WidgetHeaderAccessoryProviderProps, type WidgetHeaderEyebrowVariant, type WidgetHeaderProps, type WidgetHeight, WidgetTitle, type WidgetTitleProps, type WidgetTitleSize, cn, colsFor, composeRefs, countryOptions, createSelectColumn, currentZoneName, formatFileSize, getScoreTone, nextTier, paginationRange, quantizeWidth, resolveChartColor, slotWidthPx, tabId, tabPanelId, tierForWidth, timeZoneOffset, timeZoneOptions, useControlSize, useElementWidth, useFieldContext, useFieldControl, useFilePicker, useOverlayDismiss, usePortalContainer, useToast, useWidgetHeaderAccessory, useWidthTier };
|
|
5112
|
+
export { AIChatBar, type AIChatBarProps, AISuggestionChip, type AISuggestionChipProps, AccessibleIcon, type AccessibleIconProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, AiAvatar, type AiAvatarProps, AspectRatio, type AspectRatioProps, AuroraBackdrop, Avatar, AvatarBlock, type AvatarBlockProps, AvatarGroup, type AvatarGroupProps, type AvatarGroupSpacing, type AvatarImageProps, type AvatarInitialProps, type AvatarProps, type AvatarShape, type AvatarSize, BADGE_COLORS, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BarChartSeries, type BarChartSize, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupAlign, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_SEQUENCE, CHART_TONE, CHART_TRACK, COL_SPAN, COL_SPAN_BY_TIER, COUNTRY_CODES, Calendar, type CalendarMode, type CalendarProps, Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterAlign, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, type CardRadius, type CardSize, CardTitle, type CardTitleProps, type CardTone, Carousel, CarouselControls, type CarouselControlsProps, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselViewport, type CarouselViewportProps, ChartLegend, type ChartLegendItem, type ChartLegendOrientation, type ChartLegendProps, type ChartTone, ChatBubble, type ChatBubbleProps, type ChatBubbleSender, CheckIndicator, type CheckIndicatorProps, type CheckIndicatorStatus, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckedGroup, CheckedGroupList, type CheckedGroupListColumns, type CheckedGroupListProps, ChecklistRow, type ChecklistRowProps, type ChecklistRowState, type ChoiceCardBreakpoint, type ColSize, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandItem, type CommandProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, ContextMenuItems, ContextMenuLabel, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTriggerProps, ControlSizeProvider, type ControlSizeProviderProps, CopyButton, type CopyButtonProps, CountBadge, type CountBadgeProps, CountrySelect, type CountrySelectProps, DEFAULT_SCORE_THRESHOLDS, DatePicker, type DatePickerProps, type DateRange, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DetailGrid, type DetailGridColumns, type DetailGridProps, DetailItem, type DetailItemLayout, type DetailItemProps, type DetailItemSpan, DonutChart, type DonutChartProps, type DonutChartSize, type DonutSegment, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterAlign, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, type DrawerSide, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type MenuGroupProps as DropdownMenuGroupProps, DropdownMenuItem, type MenuItemProps as DropdownMenuItemProps, type MenuItemTone as DropdownMenuItemTone, DropdownMenuItems, DropdownMenuLabel, type MenuLabelProps as DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type MenuRadioGroupProps as DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type MenuRadioItemProps as DropdownMenuRadioItemProps, DropdownMenuSeparator, type MenuSeparatorProps as DropdownMenuSeparatorProps, DropdownMenuShortcut, type MenuShortcutProps as DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type MenuSubContentProps as DropdownMenuSubContentProps, type MenuSubProps as DropdownMenuSubProps, DropdownMenuSubTrigger, type MenuSubTriggerProps as DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmailText, EmptyState, type EmptyStateProps, type EmptyStateSize, type EmptyStateVariant, EntityIconBadge, type EntityIconBadgeProps, type EntityIconBadgeSize, type EntityIconBadgeTone, ErrorBoundary, type ErrorBoundaryProps, EyebrowLabel, type EyebrowLabelProps, type EyebrowLabelVariant, FOCUS_RING, FOCUS_RING_INSET, Field, type FieldContextValue, FieldDescription, FieldError, FieldGroup, type FieldGroupProps, FieldHint, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldTextProps, FileDropZone, type FileDropZoneProps, FileRow, type FileRowProps, FilterBar, type FilterBarProps, type FilterBarSize, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, FormCard, FormCardFooter, type FormCardFooterProps, FormCardHeader, type FormCardHeaderProps, type FullscreenStacking, FullscreenSurface, type FullscreenSurfaceProps, GRID_TIERS, Grid, type GridBreakpoint, type GridColumnCount, type GridProps, type GridTier, HEIGHT_CLASS, HEIGHT_PX, Heading, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, type IconButtonVariant, IconTextRow, type IconTextRowProps, InlineAlert, type InlineAlertProps, type InlineAlertTone, Input, InputControl, type InputControlProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAlign, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputOTP, type InputOTPMode, type InputOTPProps, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, Label, type LabelProps, LegendDot, type LegendDotProps, type LegendDotShape, type LegendDotSize, ListRow, type ListRowDensity, type ListRowDivider, type ListRowProps, Listbox, type ListboxGroup, type ListboxOption, type ListboxProps, type MenuItemDef, Menubar, MenubarCheckboxItem, MenubarContent, type MenubarContentProps, MenubarGroup, MenubarItem, MenubarItems, MenubarLabel, MenubarMenu, type MenubarMenuDef, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MenubarTriggerProps, MiniBarChart, type MiniBarChartOrientation, type MiniBarChartProps, type MiniBarChartSize, Modal, type ModalAlign, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterAlign, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, type ModalTone, ModalTrigger, type ModalTriggerProps, MultiSelectCard, type MultiSelectCardProps, type MultiSelectCardSize, NativeSelect, NativeSelectControl, type NativeSelectControlProps, type NativeSelectProps, NavItem, type NavItemProps, type NavItemSize, type NavItemVariant, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, type NavigationMenuOrientation, type NavigationMenuProps, type NavigationMenuVariant, NoteConfirmModal, type NoteConfirmModalProps, NumberedList, type NumberedListGap, type NumberedListItem, type NumberedListProps, OVERLAY_SCRIM, PageHeading, type PageHeadingProps, type PageHeadingSize, PageToolbar, type PageToolbarProps, type PageToolbarSize, Pagination, PaginationBar, type PaginationBarProps, type PaginationProps, type PaginationType, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, ProgressBarTone, type QuickAction, QuickActionsBar, type QuickActionsBarProps, Quote, ROLE_COMBO_OPTIONS, RadialGauge, type RadialGaugeProps, type RadialGaugeSize, Radio, RadioCards, RadioCardsItem, type RadioCardsItemProps, type RadioCardsProps, type RadioCardsSize, RadioGroup, type RadioGroupOption, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, Resizable, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, type ResponsiveChoiceCardSize, RoleBadge, type RoleBadgeProps, type RoleBadgeTone, RoleComboBox, type RoleComboBoxProps, type RoleOption, SCROLLBAR_CLASSES, type ScoreDirection, type ScoreRampTone, type ScoreThresholds, type ScoreTone, ScoreValue, type ScoreValueProps, type ScoreValueSize, type ScoreValueTone, type ScoreValueWeight, ScoredRow, type ScoredRowAlign, type ScoredRowGap, type ScoredRowProps, Scrim, type ScrimProps, ScrollArea, type ScrollAreaAxis, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, type SectionSize, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectControl, type SelectControlProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Slot, type SlotProps, type SpaceToken, Sparkline, type SparklineProps, type SparklineSize, type SparklineVariant, Spinner, type SpinnerProps, type SpinnerSize, StatNumber, type StatNumberProps, type StatNumberSize, type StatNumberWeight, StatTile, type StatTileProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, StatusChip, type StatusChipProps, StatusDot, type StatusDotProps, type StatusDotTone, type StatusTone, type StepItem, type StepStatus, Stepper, type StepperAlign, type StepperCompactInfo, type StepperProps, type StepperSize, StepsList, type StepsListProps, Subheading, Subtitle, Switch, type SwitchProps, type SwitchSize, TIER_COLS, TIER_MIN_PX, type TabItem, Tabs, type TabsActivation, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, TagInput, type TagInputParseResult, type TagInputProps, TagPill, type TagPillProps, type TagPillSize, type TagPillTone, Text, TextCode, TextEmphasis, TextLink, type TextLinkProps, type TextLinkTone, TextList, type TextListDensity, TextListItem, type TextListItemProps, type TextListProps, type TextListVariant, type TextProps, TextSmall, TextStrong, TextTiny, type TextTone, Textarea, TextareaControl, type TextareaControlProps, type TextareaProps, TileGrid, type TileGridBreakpoint, type TileGridColumns, type TileGridProps, TimeZoneSelect, type TimeZoneSelectProps, TitleHero, TitlePage, type ToastOptions, type ToastRecord, type ToastTone, Toaster, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, TrailChip, type TrailChipProps, type TreeItemState, TreeView, type TreeViewProps, type TreeViewSize, type TrendDirection, TrendLabel, type TrendLabelProps, type TrendLabelSize, type TrendLabelWeight, TypingIndicator, type TypingIndicatorProps, type UseFilePicker, type UseFilePickerOptions, type UseWidthTierOptions, type UseWidthTierResult, type UserAccountStatus, UserStatusPill, type UserStatusPillProps, VisuallyHidden, type VisuallyHiddenProps, WidgetFooter, type WidgetFooterProps, WidgetGrid, WidgetGridItem, type WidgetGridItemProps, type WidgetGridProps, WidgetGridRow, type WidgetGridRowProps, WidgetHeader, WidgetHeaderAccessoryProvider, type WidgetHeaderAccessoryProviderProps, type WidgetHeaderEyebrowVariant, type WidgetHeaderProps, type WidgetHeight, WidgetTitle, type WidgetTitleProps, type WidgetTitleSize, cn, colsFor, composeRefs, countryOptions, currentZoneName, formatFileSize, getScoreTone, nextTier, paginationRange, quantizeWidth, resolveChartColor, slotWidthPx, tabId, tabPanelId, tierForWidth, timeZoneOffset, timeZoneOptions, useControlSize, useElementWidth, useFieldContext, useFieldControl, useFilePicker, useOverlayDismiss, usePortalContainer, useToast, useWidgetHeaderAccessory, useWidthTier };
|