@bfrs/agentic-components 0.6.5 → 0.6.7
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/BFRS_AGENTIC_COMPONENTS.md +93 -16
- package/README.md +13 -0
- package/dist/components/data-display/DataTable/DataTable.d.ts +1 -1
- package/dist/components/data-display/DataTable/DataTable.types.d.ts +8 -1
- package/dist/components/data-display/DataTable/TableViewSelector.d.ts +1 -1
- package/dist/components/data-display/Table/Table.d.ts +3 -5
- package/dist/components/navigation/Tabs/Tabs.types.d.ts +2 -0
- package/dist/components/primitives/Button/Button.types.d.ts +1 -1
- package/dist/components/primitives/Input/Input.d.ts +2 -1
- package/dist/components/primitives/Input/Input.types.d.ts +2 -0
- package/dist/components/ui/data-display/Avatar/Avatar.d.ts +4 -0
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.d.ts +12 -0
- package/dist/components/ui/patterns/SideNav/SideNav.d.ts +11 -1
- package/dist/components/ui/patterns/StepProgressCard/StepProgressCard.d.ts +6 -0
- package/dist/custom-elements.js +19921 -14871
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +5908 -6178
- package/dist/index.js.map +1 -1
- package/dist/lib/documentStyles.d.ts +1 -0
- package/dist/public-api.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +9 -6
- package/scripts/lint/cli.cjs +894 -0
- package/scripts/postinstall.cjs +79 -2
- package/dist/lib/emotionCache.d.ts +0 -14
- package/dist/shadow/BfrsShadowRoot.d.ts +0 -30
- package/dist/shadow/autoShadow.d.ts +0 -18
- package/dist/shadow/index.d.ts +0 -2
- package/dist/shadow/shadowStyles.d.ts +0 -15
|
@@ -14,6 +14,19 @@ Install from the public npm registry:
|
|
|
14
14
|
npm install @bfrs/agentic-components
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
During install, the package copies this file into the consuming project, updates `AGENTS.md` and `CLAUDE.md` with a reference to it, and wires the shared BFRS lint guard into `package.json`:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"scripts": {
|
|
22
|
+
"check:bfrs-agentic-lint": "bfrs-agentic-lint all",
|
|
23
|
+
"build": "bfrs-agentic-lint all && ..."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The guard is shipped by the package as the `bfrs-agentic-lint` binary. It fails builds when app code bypasses the component library, uses raw color tokens, defines local components with library names, or overrides library styling through raw tag selectors, `:has()`, `.bfrs-*` / Emotion / Radix internals, structural attributes, library token declarations, or `!important`. Set `BFRS_AGENTIC_COMPONENTS_SKIP_SETUP=1` during install to skip automatic docs and lint script setup.
|
|
29
|
+
|
|
17
30
|
## Setup
|
|
18
31
|
|
|
19
32
|
Import the stylesheet once at your app entry point:
|
|
@@ -58,7 +71,10 @@ import {
|
|
|
58
71
|
DataTable,
|
|
59
72
|
TableColumnVisibility,
|
|
60
73
|
TableSaveView,
|
|
74
|
+
TableViewSelector,
|
|
61
75
|
TableToolbar,
|
|
76
|
+
createLocalSaveView,
|
|
77
|
+
createLocalViewStore,
|
|
62
78
|
DateRangePicker,
|
|
63
79
|
ToastProvider,
|
|
64
80
|
useToast
|
|
@@ -145,7 +161,7 @@ Registered tags cover the documented component surface, including
|
|
|
145
161
|
`bfrs-button-group`, `bfrs-toast-provider`, `bfrs-table-toolbar`,
|
|
146
162
|
`bfrs-table-empty-state`, `bfrs-table-error-state`, `bfrs-table-skeleton`,
|
|
147
163
|
`bfrs-table-row-actions`, `bfrs-table-bulk-actions`,
|
|
148
|
-
`bfrs-table-column-visibility`,
|
|
164
|
+
`bfrs-table-column-visibility`, `bfrs-table-save-view`, and `bfrs-table-view-selector` in addition to the existing component tags.
|
|
149
165
|
Primitive table building blocks `bfrs-table`, `bfrs-thead`, `bfrs-tbody`, `bfrs-tfoot`,
|
|
150
166
|
`bfrs-tr`, `bfrs-th`, and `bfrs-td` are also registered for custom layouts where `bfrs-data-table`
|
|
151
167
|
is too prescriptive.
|
|
@@ -154,7 +170,7 @@ Existing form and pattern tags include `bfrs-date-range-picker`,
|
|
|
154
170
|
`bfrs-modal`, `bfrs-tabs`, and the rest of the documented `bfrs-*` surface.
|
|
155
171
|
|
|
156
172
|
ReactNode-based composition is exposed through native named slots. Angular
|
|
157
|
-
components placed in these slots remain live
|
|
173
|
+
components placed in these slots remain live in the light DOM:
|
|
158
174
|
|
|
159
175
|
```html
|
|
160
176
|
<bfrs-page-header title="Orders">
|
|
@@ -394,7 +410,7 @@ Default sizing follows the Shiprocket 4.0 compact control scale from Figma: `xs`
|
|
|
394
410
|
|
|
395
411
|
| Prop | Type | Default |
|
|
396
412
|
|------|------|---------|
|
|
397
|
-
| `variant` | `"primary" \| "secondary" \| "tertiary" \| "outline" \| "ghost" \| "danger" \| "destructive" \| "link"` | `"primary"` |
|
|
413
|
+
| `variant` | `"primary" \| "secondary" \| "tertiary" \| "outline" \| "ghost" \| "danger" \| "destructive" \| "link" \| "unstyled"` | `"primary"` |
|
|
398
414
|
| `size` | `"xs" \| "sm" \| "md" \| "lg"` | `"md"` |
|
|
399
415
|
| `fullWidth` | `boolean` | `false` |
|
|
400
416
|
| `leftIcon` | `ReactNode` | — |
|
|
@@ -402,6 +418,8 @@ Default sizing follows the Shiprocket 4.0 compact control scale from Figma: `xs`
|
|
|
402
418
|
| `loading` | `boolean` | `false` |
|
|
403
419
|
| `disabled` | `boolean` | `false` |
|
|
404
420
|
|
|
421
|
+
Use `variant="unstyled"` only when migrating a legacy visual treatment into the library contract: it preserves native button semantics and loading/disabled behavior while removing the library's visual chrome, padding, border, background, and label wrapper. Prefer the named variants for normal product UI.
|
|
422
|
+
|
|
405
423
|
---
|
|
406
424
|
|
|
407
425
|
#### `IconButton`
|
|
@@ -424,7 +442,7 @@ Icon-only buttons inherit the same compact control scale: `xs` is 26px, `sm` is
|
|
|
424
442
|
|------|------|---------|
|
|
425
443
|
| `icon` | `ReactNode` | **required** |
|
|
426
444
|
| `aria-label` | `string` | **required** |
|
|
427
|
-
| `variant` | `"primary" \| "secondary" \| "outline" \| "ghost" \| "danger"` | `"ghost"` |
|
|
445
|
+
| `variant` | `"primary" \| "secondary" \| "outline" \| "ghost" \| "danger" \| "unstyled"` | `"ghost"` |
|
|
428
446
|
| `size` | `"xs" \| "sm" \| "md" \| "lg"` | `"md"` |
|
|
429
447
|
| `loading` | `boolean` | `false` |
|
|
430
448
|
|
|
@@ -506,7 +524,7 @@ Standalone label. Prefer `FormField` which renders this automatically.
|
|
|
506
524
|
Standard text input.
|
|
507
525
|
|
|
508
526
|
Inputs use the same 28px Figma trigger height as select controls across native input types such as `text`, `number`, `email`, and `search`. Placeholders render in secondary text (`#64737E`).
|
|
509
|
-
|
|
527
|
+
Text-entry input boxes, affixed input chrome, and select-family triggers use a single active border without an additional focus outline/ring. Open select popovers keep that same visual state through `aria-expanded`.
|
|
510
528
|
|
|
511
529
|
```tsx
|
|
512
530
|
<Input
|
|
@@ -528,9 +546,12 @@ Focused inputs, affixed input chrome, and select-family triggers must show the f
|
|
|
528
546
|
| `leftIcon` | `ReactNode` | — |
|
|
529
547
|
| `rightIcon` | `ReactNode` | — |
|
|
530
548
|
| `loading` | `boolean` | `false` |
|
|
549
|
+
| `appearance` | `"default" \| "unstyled"` | `"default"` |
|
|
531
550
|
|
|
532
551
|
Accepts all native `<input>` props.
|
|
533
552
|
|
|
553
|
+
Use `appearance="unstyled"` for legacy search fields or embedded inputs that already have their own wrapper chrome. It keeps the library input behavior and native attributes but removes the default border, background, padding, shadow, and focus ring.
|
|
554
|
+
|
|
534
555
|
---
|
|
535
556
|
|
|
536
557
|
#### `Textarea`
|
|
@@ -560,7 +581,7 @@ Accepts all native `<textarea>` props.
|
|
|
560
581
|
Single-value dropdown. Options are `{ value: string; label: string }`.
|
|
561
582
|
|
|
562
583
|
The Figma trigger style is the only select size: 28px high with 12.5px text, 7px radius, and a 10px chevron.
|
|
563
|
-
The trigger chevron rotates 180deg while open. This open/close motion and focused/open border treatment is shared by `Select`, `SearchableSelect`, and `MultiSelect`.
|
|
584
|
+
The trigger chevron rotates 180deg while open. This open/close motion and focused/open single-border treatment is shared by `Select`, `SearchableSelect`, and `MultiSelect`.
|
|
564
585
|
Selected option rows render with bold text across select-style listboxes: `Select`, `SearchableSelect`, `MultiSelect`, and `SuggestInput`.
|
|
565
586
|
|
|
566
587
|
```tsx
|
|
@@ -1616,6 +1637,8 @@ User avatar with image, initials fallback, and online status.
|
|
|
1616
1637
|
| `name` | `string` | — |
|
|
1617
1638
|
| `size` | `"sm" \| "md" \| "lg"` | `"md"` |
|
|
1618
1639
|
| `status` | `"online" \| "busy" \| "offline"` | — |
|
|
1640
|
+
| `circleClassName` | `string` | — |
|
|
1641
|
+
| `imageClassName` | `string` | — |
|
|
1619
1642
|
|
|
1620
1643
|
> When `src` is absent, renders initials derived from `name`.
|
|
1621
1644
|
|
|
@@ -1699,6 +1722,11 @@ DataTable has one default visual density, matching the Figma orders table: 8px o
|
|
|
1699
1722
|
| `defaultSorting` | `{ columnId: string; direction: "asc" \| "desc" } \| null` | `null` |
|
|
1700
1723
|
| `maxHeight` | `number \| string` | — |
|
|
1701
1724
|
| `stickyHeader` | `boolean` | `true` |
|
|
1725
|
+
| `fill` | `boolean` | `false` |
|
|
1726
|
+
| `headerTextOverflow` | `"truncate" \| "visible"` | `"truncate"` |
|
|
1727
|
+
| `cellTextSize` | `"default" \| "compact"` | `"default"` |
|
|
1728
|
+
| `scrollerClassName` | `string` | — |
|
|
1729
|
+
| `cellClassName` | `string \| (row, index, column) => string \| undefined` | — |
|
|
1702
1730
|
|
|
1703
1731
|
Angular: pass `sorting` as JSON attribute `[sorting]='{"columnId":"name","direction":"asc"}'`; `default-sorting`, `max-height`, `sticky-header` attributes are fully supported. `show-all-label` and `(show-all)` event are supported on `bfrs-table-column-visibility`.
|
|
1704
1732
|
|
|
@@ -1710,7 +1738,7 @@ Angular: pass `sorting` as JSON attribute `[sorting]='{"columnId":"name","direct
|
|
|
1710
1738
|
accessorKey?: keyof T;
|
|
1711
1739
|
accessorFn?: (row: T) => unknown;
|
|
1712
1740
|
sortable?: boolean;
|
|
1713
|
-
cell?: (row: T) => ReactNode;
|
|
1741
|
+
cell?: (row: T, context: { value: unknown; rowIndex: number; selected: boolean; hovered: boolean }) => ReactNode;
|
|
1714
1742
|
width?: number | string;
|
|
1715
1743
|
minWidth?: number | string;
|
|
1716
1744
|
}
|
|
@@ -1722,20 +1750,50 @@ For pinned columns, declare `width` / `minWidth` for predictable layout. `DataTa
|
|
|
1722
1750
|
|
|
1723
1751
|
When `loading` is true, `DataTable` renders built-in table-row skeleton placeholders rather than a spinner. The consumer app only owns the loading boolean.
|
|
1724
1752
|
|
|
1725
|
-
Use `
|
|
1753
|
+
Use `fill` when the table must stretch inside a height-constrained layout; pair it with `scrollerClassName` for scroll-region layout classes instead of targeting the internal wrapper. `headerTextOverflow="visible"` keeps long header labels fully readable, and `cellTextSize="compact"` applies 12px cell text for dense legacy tables. Use callback `cellClassName` only for row/column-specific body-cell classes.
|
|
1754
|
+
|
|
1755
|
+
Use `TableViewSelector` with `TableSaveView` when a list page needs named saved views. Put the selector in the `ListPageLayout` filter band beside the filters, not inside `TableToolbar`. The selector uses a free-form `screenName`, reads/writes the matching local view store, selects the primary view by default, and stays hidden until that screen has at least one saved view. `TableSaveView` opens the "Save this view" modal and submits an API-shaped `SaveViewPayload` with `{ view_type, name, columns, filters, priority }`.
|
|
1756
|
+
|
|
1757
|
+
```tsx
|
|
1758
|
+
const screenName = "orders.list";
|
|
1759
|
+
const saveCurrentView = createLocalSaveView(screenName);
|
|
1760
|
+
|
|
1761
|
+
<ListPageLayout
|
|
1762
|
+
title="Orders"
|
|
1763
|
+
filters={
|
|
1764
|
+
<>
|
|
1765
|
+
<TableViewSelector
|
|
1766
|
+
screenName={screenName}
|
|
1767
|
+
onValueChange={(_, view) => {
|
|
1768
|
+
if (!view) return;
|
|
1769
|
+
setVisibleColumnIds(view.columns.filter((column) => column.visible).map((column) => column.key));
|
|
1770
|
+
setFilters(view.filters ?? []);
|
|
1771
|
+
}}
|
|
1772
|
+
/>
|
|
1773
|
+
<Select size="sm" value={status} onValueChange={setStatus} options={statusOptions} />
|
|
1774
|
+
<TableSaveView
|
|
1775
|
+
viewType={screenName}
|
|
1776
|
+
columns={visibilityColumns}
|
|
1777
|
+
visibleColumnIds={visibleColumnIds}
|
|
1778
|
+
filters={filters}
|
|
1779
|
+
filtersCount={filters.length}
|
|
1780
|
+
onSave={saveCurrentView}
|
|
1781
|
+
/>
|
|
1782
|
+
</>
|
|
1783
|
+
}
|
|
1784
|
+
table={<DataTable data={orders} columns={columns} visibleColumnIds={visibleColumnIds} />}
|
|
1785
|
+
/>
|
|
1786
|
+
```
|
|
1787
|
+
|
|
1788
|
+
Use `createLocalViewStore(screenName, { saveApi })` instead of `createLocalSaveView(screenName)` when save should call the library API adapter first and then mirror the saved view in localStorage. The selector's rename/delete/primary actions remain local unless you pass a custom `ViewStore`.
|
|
1789
|
+
|
|
1790
|
+
Column visibility still belongs in `TableToolbar`; keep that table-local save/discard flow separate from saved-view listing controls.
|
|
1726
1791
|
|
|
1727
1792
|
```tsx
|
|
1728
1793
|
<TableToolbar
|
|
1729
1794
|
title="Orders"
|
|
1730
1795
|
actions={
|
|
1731
1796
|
<div className="bfrs-flex bfrs-items-center bfrs-gap-2">
|
|
1732
|
-
{dirty && (
|
|
1733
|
-
<TableSaveView
|
|
1734
|
-
columns={visibilityColumns}
|
|
1735
|
-
visibleColumnIds={visibleColumnIds}
|
|
1736
|
-
onSave={({ visibleColumnIds: nextSavedIds }) => setSavedColumnIds(nextSavedIds)}
|
|
1737
|
-
/>
|
|
1738
|
-
)}
|
|
1739
1797
|
<TableColumnVisibility
|
|
1740
1798
|
columns={visibilityColumns}
|
|
1741
1799
|
visibleColumnIds={visibleColumnIds}
|
|
@@ -1747,7 +1805,7 @@ Use `TableSaveView` with `TableColumnVisibility` when the user changes columns o
|
|
|
1747
1805
|
/>
|
|
1748
1806
|
```
|
|
1749
1807
|
|
|
1750
|
-
Angular custom-element consumers can use `<bfrs-table-save-view>`
|
|
1808
|
+
Angular custom-element consumers can use `<bfrs-table-view-selector>` and `<bfrs-table-save-view>` with the same `screen-name`. The selector emits `value-change`, `view-select`, `primary-view-change`, `rename-view`, `delete-view`, and `reset-saved-filters`; `bfrs-table-save-view` emits `saved-view` after a successful save.
|
|
1751
1809
|
|
|
1752
1810
|
Custom-element DataTable action cells must be declarative because Angular/HTML cannot pass React `cell` functions through JSON. Use `cellType: "button"` for one inline button, `cellType: "buttons"` for multiple inline buttons, or `cellType: "actions"` for an action menu. Action clicks emit `cell-action` with `{ actionId, columnId, row, rowId, rowIndex }` and do not trigger `row-click`.
|
|
1753
1811
|
|
|
@@ -1940,6 +1998,9 @@ Tabbed content switcher.
|
|
|
1940
1998
|
| `defaultValue` | `string` | — |
|
|
1941
1999
|
| `value` | `string` | — |
|
|
1942
2000
|
| `onValueChange` | `(value: string) => void` | — |
|
|
2001
|
+
| `renderPanels` | `boolean` | `true` |
|
|
2002
|
+
|
|
2003
|
+
Set `renderPanels={false}` when `items` should render a tab-like navigation strip and the selected route/panel content is owned by the page. Do not use that mode for ordinary in-place tab panels.
|
|
1943
2004
|
|
|
1944
2005
|
---
|
|
1945
2006
|
|
|
@@ -2119,6 +2180,11 @@ Expanded default width is 216px. Rows are 32px high with 8px radius, 12px labels
|
|
|
2119
2180
|
| `header` | `ReactNode` | — |
|
|
2120
2181
|
| `children` | `ReactNode` | — |
|
|
2121
2182
|
| `footer` | `ReactNode` | — |
|
|
2183
|
+
| `rowClassName` | `string` | — |
|
|
2184
|
+
| `footerClassName` | `string` | — |
|
|
2185
|
+
| `inactiveRowHoverBackground` | `string` | standard primary tint |
|
|
2186
|
+
| `flyoutLeft` | `number \| string` | `"15rem"` |
|
|
2187
|
+
| `flyoutZIndex` | `number` | `50` |
|
|
2122
2188
|
|
|
2123
2189
|
- `SideNavSection`: `{ id?, title?, items, action? }` — `title` (uppercase) and `action` are hidden when collapsed.
|
|
2124
2190
|
- `SideNavItem`: `{ id, label, icon?, active?, badge?, nested?, onSelect? }` — `badge` is hidden when collapsed; `nested` opens a hover flyout (expanded only).
|
|
@@ -2182,9 +2248,17 @@ Chat input with attachment and action slots. Submits on `Ctrl+Enter`.
|
|
|
2182
2248
|
| `placeholder` | `string` | `"Ask me anything"` |
|
|
2183
2249
|
| `attachmentSlot` | `ReactNode` | — |
|
|
2184
2250
|
| `actionSlot` | `ReactNode` | — |
|
|
2251
|
+
| `autoHeight` | `boolean` | `false` |
|
|
2252
|
+
| `compactPadding` | `string` | `"6px"` |
|
|
2253
|
+
| `compactActionButtonSize` | `number \| string` | compact icon size |
|
|
2254
|
+
| `placeholderVariant` | `"default" \| "large"` | `"default"` |
|
|
2255
|
+
| `textareaClassName` | `string` | — |
|
|
2256
|
+
| `sendButtonClassName` | `string` | — |
|
|
2185
2257
|
|
|
2186
2258
|
Use `size="sm"` for a compact composer in sidebars, inline threads, or dense workspace rails.
|
|
2187
2259
|
|
|
2260
|
+
The class slots are for app-owned placement details such as an existing composer row height or send-button affordance during migration. Do not target the generated Emotion class names from app CSS.
|
|
2261
|
+
|
|
2188
2262
|
---
|
|
2189
2263
|
|
|
2190
2264
|
#### `FullPageLoader`
|
|
@@ -2489,7 +2563,10 @@ Step-by-step progress indicator. Calculates `done` / `active` / `pending` state
|
|
|
2489
2563
|
| `steps` | `{ label: ReactNode; status?: "done" \| "active" \| "pending" \| "disabled"; disabled?: boolean }[]` | **required** |
|
|
2490
2564
|
| `currentStep` | `number` | `0` |
|
|
2491
2565
|
| `eyebrow` | `ReactNode` | `"Identity & Contact"` |
|
|
2566
|
+
| `eyebrowColor` | `string` | component token value |
|
|
2492
2567
|
| `title` | `ReactNode` | `"Getting your details ready…"` |
|
|
2568
|
+
| `headerClassName` | `string` | — |
|
|
2569
|
+
| `titleClassName` | `string` | — |
|
|
2493
2570
|
| `surface` | `"card" \| "plain"` | `"plain"` |
|
|
2494
2571
|
| `animated` | `boolean` | `true` |
|
|
2495
2572
|
|
package/README.md
CHANGED
|
@@ -20,6 +20,19 @@ During install, the package writes `BFRS_AGENTIC_COMPONENTS.md` into the consumi
|
|
|
20
20
|
Use BFRS_AGENTIC_COMPONENTS.md for knowledge regarding the component library.
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
The same install hook also wires the shared BFRS lint guard into the consumer package:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"scripts": {
|
|
28
|
+
"check:bfrs-agentic-lint": "bfrs-agentic-lint all",
|
|
29
|
+
"build": "bfrs-agentic-lint all && ..."
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The guard fails builds when app code bypasses the component library, uses raw color tokens, defines local components with library names, or overrides library styling through raw tag selectors, `:has()`, `.bfrs-*` / Emotion / Radix internals, structural attributes, library token declarations, or `!important`. Set `BFRS_AGENTIC_COMPONENTS_SKIP_SETUP=1` during install to skip automatic docs and lint script setup.
|
|
35
|
+
|
|
23
36
|
## React Usage
|
|
24
37
|
|
|
25
38
|
```tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DataTableProps } from './DataTable.types';
|
|
2
|
-
export declare function DataTable<Row>({ data, columns, getRowId, loading, error, emptyState, emptyTitle, emptyDescription, pagination, enableSorting, sorting, defaultSorting, onSortingChange, visibleColumnIds, columnOrder, defaultColumnOrder, onColumnOrderChange, enableColumnPinning, pinnedColumnCount, defaultPinnedColumnCount, onPinnedColumnCountChange, pinLeadingColumn, defaultPinLeadingColumn, onPinLeadingColumnChange, enableColumnReordering, resetKey, showSortIcon, leadingColumn, rowActions, rowActionsHeader, rowActionsWidth, stickyRowActions, selection, selectedRowIds, onSelectedRowIdsChange, stickyHeader, minWidth, maxHeight, className, tableClassName, headerClassName, rowClassName, cellClassName, onRowClick, "aria-label": ariaLabel }: DataTableProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function DataTable<Row>({ data, columns, getRowId, loading, error, emptyState, emptyTitle, emptyDescription, pagination, enableSorting, sorting, defaultSorting, onSortingChange, visibleColumnIds, columnOrder, defaultColumnOrder, onColumnOrderChange, enableColumnPinning, pinnedColumnCount, defaultPinnedColumnCount, onPinnedColumnCountChange, pinLeadingColumn, defaultPinLeadingColumn, onPinLeadingColumnChange, enableColumnReordering, resetKey, showSortIcon, leadingColumn, rowActions, rowActionsHeader, rowActionsWidth, stickyRowActions, selection, selectedRowIds, onSelectedRowIdsChange, stickyHeader, fill, headerTextOverflow, cellTextSize, minWidth, maxHeight, className, scrollerClassName, tableClassName, headerClassName, rowClassName, cellClassName, onRowClick, "aria-label": ariaLabel }: DataTableProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -91,6 +91,12 @@ export type DataTableProps<Row> = {
|
|
|
91
91
|
selectedRowIds?: string[];
|
|
92
92
|
onSelectedRowIdsChange?: (ids: string[]) => void;
|
|
93
93
|
stickyHeader?: boolean;
|
|
94
|
+
/** Let the table root fill the available flex height. */
|
|
95
|
+
fill?: boolean;
|
|
96
|
+
/** Header label overflow behavior. Defaults to truncating long labels. */
|
|
97
|
+
headerTextOverflow?: "truncate" | "visible";
|
|
98
|
+
/** Compact body text applies 12px text to cells and their contents. */
|
|
99
|
+
cellTextSize?: "default" | "compact";
|
|
94
100
|
minWidth?: number | string;
|
|
95
101
|
/**
|
|
96
102
|
* Caps the height of the scrollable region so the body scrolls vertically
|
|
@@ -99,10 +105,11 @@ export type DataTableProps<Row> = {
|
|
|
99
105
|
*/
|
|
100
106
|
maxHeight?: number | string;
|
|
101
107
|
className?: string;
|
|
108
|
+
scrollerClassName?: string;
|
|
102
109
|
tableClassName?: string;
|
|
103
110
|
headerClassName?: string;
|
|
104
111
|
rowClassName?: string | ((row: Row, index: number) => string | undefined);
|
|
105
|
-
cellClassName?: string;
|
|
112
|
+
cellClassName?: string | ((row: Row, index: number, column: DataTableColumn<Row>) => string | undefined);
|
|
106
113
|
onRowClick?: (row: Row) => void;
|
|
107
114
|
"aria-label"?: string;
|
|
108
115
|
};
|
|
@@ -41,4 +41,4 @@ export type TableViewSelectorProps = {
|
|
|
41
41
|
contentClassName?: string;
|
|
42
42
|
actionMenuClassName?: string;
|
|
43
43
|
};
|
|
44
|
-
export declare function TableViewSelector({ screenName, store, value, defaultValue, selectPrimaryByDefault, onValueChange, onViewSelect, onPrimaryViewChange, onRenameView, onDeleteView, onResetSavedFilters, onError, triggerLabel, placeholder, viewsLabel, emptyLabel, loadingLabel, resetLabel, setPrimaryLabel, renameLabel, deleteLabel, renameTitle, renameDescription, renameInputLabel, renameCancelLabel, renameSaveLabel, size, disabled, className, triggerClassName, contentClassName, actionMenuClassName }: TableViewSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function TableViewSelector({ screenName, store, value, defaultValue, selectPrimaryByDefault, onValueChange, onViewSelect, onPrimaryViewChange, onRenameView, onDeleteView, onResetSavedFilters, onError, triggerLabel, placeholder, viewsLabel, emptyLabel, loadingLabel, resetLabel, setPrimaryLabel, renameLabel, deleteLabel, renameTitle, renameDescription, renameInputLabel, renameCancelLabel, renameSaveLabel, size, disabled, className, triggerClassName, contentClassName, actionMenuClassName }: TableViewSelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { TableDensity } from '../DataTable/DataTable.types';
|
|
3
3
|
export interface TableProps {
|
|
4
4
|
children?: ReactNode;
|
|
@@ -26,12 +26,10 @@ export interface TfootProps {
|
|
|
26
26
|
className?: string;
|
|
27
27
|
}
|
|
28
28
|
export declare function Tfoot({ children, className }: TfootProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export interface TrProps {
|
|
29
|
+
export interface TrProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
30
30
|
children?: ReactNode;
|
|
31
|
-
onClick?: () => void;
|
|
32
|
-
className?: string;
|
|
33
31
|
}
|
|
34
|
-
export declare function Tr({ children, onClick, className }: TrProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function Tr({ children, onClick, className, ...props }: TrProps): import("react/jsx-runtime").JSX.Element;
|
|
35
33
|
export interface ThProps {
|
|
36
34
|
children?: ReactNode;
|
|
37
35
|
align?: "left" | "center" | "right";
|
|
@@ -11,6 +11,8 @@ export type TabsProps = RadixTabs.TabsProps & {
|
|
|
11
11
|
items?: TabItem[];
|
|
12
12
|
variant?: "line" | "pill";
|
|
13
13
|
size?: "xs" | "sm" | "md" | "lg";
|
|
14
|
+
/** Set false when `items` are used as a navigation strip and content renders elsewhere. */
|
|
15
|
+
renderPanels?: boolean;
|
|
14
16
|
listClassName?: string;
|
|
15
17
|
triggerClassName?: string;
|
|
16
18
|
contentClassName?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export type ButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "danger" | "link";
|
|
2
|
+
export type ButtonVariant = "primary" | "secondary" | "tertiary" | "outline" | "ghost" | "destructive" | "danger" | "link" | "unstyled";
|
|
3
3
|
export type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
4
4
|
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
5
5
|
variant?: ButtonVariant;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { InputSize } from './Input.types';
|
|
1
|
+
import { InputAppearance, InputSize } from './Input.types';
|
|
2
2
|
export declare const Input: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
|
|
3
3
|
size?: InputSize;
|
|
4
|
+
appearance?: InputAppearance;
|
|
4
5
|
label?: import('react').ReactNode;
|
|
5
6
|
helperText?: import('react').ReactNode;
|
|
6
7
|
errorMessage?: import('react').ReactNode;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export type InputSize = "xs" | "sm" | "md" | "lg";
|
|
3
|
+
export type InputAppearance = "default" | "unstyled";
|
|
3
4
|
export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
|
|
4
5
|
size?: InputSize;
|
|
6
|
+
appearance?: InputAppearance;
|
|
5
7
|
label?: ReactNode;
|
|
6
8
|
helperText?: ReactNode;
|
|
7
9
|
errorMessage?: ReactNode;
|
|
@@ -5,6 +5,8 @@ export type AvatarProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
5
5
|
name?: string;
|
|
6
6
|
size?: "sm" | "md" | "lg";
|
|
7
7
|
status?: "online" | "busy" | "offline";
|
|
8
|
+
circleClassName?: string;
|
|
9
|
+
imageClassName?: string;
|
|
8
10
|
};
|
|
9
11
|
export declare const Avatar: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
10
12
|
src?: string;
|
|
@@ -12,4 +14,6 @@ export declare const Avatar: import('react').ForwardRefExoticComponent<HTMLAttri
|
|
|
12
14
|
name?: string;
|
|
13
15
|
size?: "sm" | "md" | "lg";
|
|
14
16
|
status?: "online" | "busy" | "offline";
|
|
17
|
+
circleClassName?: string;
|
|
18
|
+
imageClassName?: string;
|
|
15
19
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -9,6 +9,12 @@ export type ChatComposerProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>
|
|
|
9
9
|
size?: "sm" | "md";
|
|
10
10
|
attachmentSlot?: ReactNode;
|
|
11
11
|
actionSlot?: ReactNode;
|
|
12
|
+
autoHeight?: boolean;
|
|
13
|
+
compactPadding?: string;
|
|
14
|
+
compactActionButtonSize?: number | string;
|
|
15
|
+
placeholderVariant?: "default" | "large";
|
|
16
|
+
textareaClassName?: string;
|
|
17
|
+
sendButtonClassName?: string;
|
|
12
18
|
};
|
|
13
19
|
export declare const ChatComposer: import('react').ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onSubmit"> & {
|
|
14
20
|
value: string;
|
|
@@ -20,4 +26,10 @@ export declare const ChatComposer: import('react').ForwardRefExoticComponent<Omi
|
|
|
20
26
|
size?: "sm" | "md";
|
|
21
27
|
attachmentSlot?: ReactNode;
|
|
22
28
|
actionSlot?: ReactNode;
|
|
29
|
+
autoHeight?: boolean;
|
|
30
|
+
compactPadding?: string;
|
|
31
|
+
compactActionButtonSize?: number | string;
|
|
32
|
+
placeholderVariant?: "default" | "large";
|
|
33
|
+
textareaClassName?: string;
|
|
34
|
+
sendButtonClassName?: string;
|
|
23
35
|
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -37,6 +37,16 @@ export type SideNavProps = {
|
|
|
37
37
|
children?: ReactNode;
|
|
38
38
|
/** Bottom slot (e.g. user + settings). */
|
|
39
39
|
footer?: ReactNode;
|
|
40
|
+
/** Class applied to each row button. */
|
|
41
|
+
rowClassName?: string;
|
|
42
|
+
/** Class applied to the footer wrapper. */
|
|
43
|
+
footerClassName?: string;
|
|
44
|
+
/** Hover background for inactive rows. Defaults to the standard primary tint. */
|
|
45
|
+
inactiveRowHoverBackground?: string;
|
|
46
|
+
/** Left offset for expanded hover flyouts. Defaults to the historical 15rem offset. */
|
|
47
|
+
flyoutLeft?: number | string;
|
|
48
|
+
/** z-index for expanded hover flyouts. */
|
|
49
|
+
flyoutZIndex?: number;
|
|
40
50
|
className?: string;
|
|
41
51
|
style?: CSSProperties;
|
|
42
52
|
};
|
|
@@ -46,7 +56,7 @@ export type SideNavProps = {
|
|
|
46
56
|
* dedicated `header` and `footer` slots. All data (labels, icons, handlers) is
|
|
47
57
|
* passed in — the component owns layout, collapse behavior, and chrome only.
|
|
48
58
|
*/
|
|
49
|
-
export declare function SideNav({ sections, collapsed, width, collapsedWidth, header, children, footer, className, style }: SideNavProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare function SideNav({ sections, collapsed, width, collapsedWidth, header, children, footer, rowClassName, footerClassName, inactiveRowHoverBackground, flyoutLeft, flyoutZIndex, className, style }: SideNavProps): import("react/jsx-runtime").JSX.Element;
|
|
50
60
|
export declare namespace SideNav {
|
|
51
61
|
var displayName: string;
|
|
52
62
|
}
|
|
@@ -8,7 +8,10 @@ export type StepProgressStep = {
|
|
|
8
8
|
};
|
|
9
9
|
export type StepProgressCardProps = HTMLAttributes<HTMLElement> & {
|
|
10
10
|
eyebrow?: ReactNode;
|
|
11
|
+
eyebrowColor?: string;
|
|
11
12
|
title?: ReactNode;
|
|
13
|
+
headerClassName?: string;
|
|
14
|
+
titleClassName?: string;
|
|
12
15
|
steps: StepProgressStep[];
|
|
13
16
|
currentStep?: number;
|
|
14
17
|
surface?: "card" | "plain";
|
|
@@ -16,7 +19,10 @@ export type StepProgressCardProps = HTMLAttributes<HTMLElement> & {
|
|
|
16
19
|
};
|
|
17
20
|
export declare const StepProgressCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
18
21
|
eyebrow?: ReactNode;
|
|
22
|
+
eyebrowColor?: string;
|
|
19
23
|
title?: ReactNode;
|
|
24
|
+
headerClassName?: string;
|
|
25
|
+
titleClassName?: string;
|
|
20
26
|
steps: StepProgressStep[];
|
|
21
27
|
currentStep?: number;
|
|
22
28
|
surface?: "card" | "plain";
|