@bfrs/agentic-components 0.6.6 → 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.
@@ -170,7 +170,7 @@ Existing form and pattern tags include `bfrs-date-range-picker`,
170
170
  `bfrs-modal`, `bfrs-tabs`, and the rest of the documented `bfrs-*` surface.
171
171
 
172
172
  ReactNode-based composition is exposed through native named slots. Angular
173
- components placed in these slots remain live across the Shadow DOM boundary:
173
+ components placed in these slots remain live in the light DOM:
174
174
 
175
175
  ```html
176
176
  <bfrs-page-header title="Orders">
@@ -410,7 +410,7 @@ Default sizing follows the Shiprocket 4.0 compact control scale from Figma: `xs`
410
410
 
411
411
  | Prop | Type | Default |
412
412
  |------|------|---------|
413
- | `variant` | `"primary" \| "secondary" \| "tertiary" \| "outline" \| "ghost" \| "danger" \| "destructive" \| "link"` | `"primary"` |
413
+ | `variant` | `"primary" \| "secondary" \| "tertiary" \| "outline" \| "ghost" \| "danger" \| "destructive" \| "link" \| "unstyled"` | `"primary"` |
414
414
  | `size` | `"xs" \| "sm" \| "md" \| "lg"` | `"md"` |
415
415
  | `fullWidth` | `boolean` | `false` |
416
416
  | `leftIcon` | `ReactNode` | — |
@@ -418,6 +418,8 @@ Default sizing follows the Shiprocket 4.0 compact control scale from Figma: `xs`
418
418
  | `loading` | `boolean` | `false` |
419
419
  | `disabled` | `boolean` | `false` |
420
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
+
421
423
  ---
422
424
 
423
425
  #### `IconButton`
@@ -440,7 +442,7 @@ Icon-only buttons inherit the same compact control scale: `xs` is 26px, `sm` is
440
442
  |------|------|---------|
441
443
  | `icon` | `ReactNode` | **required** |
442
444
  | `aria-label` | `string` | **required** |
443
- | `variant` | `"primary" \| "secondary" \| "outline" \| "ghost" \| "danger"` | `"ghost"` |
445
+ | `variant` | `"primary" \| "secondary" \| "outline" \| "ghost" \| "danger" \| "unstyled"` | `"ghost"` |
444
446
  | `size` | `"xs" \| "sm" \| "md" \| "lg"` | `"md"` |
445
447
  | `loading` | `boolean` | `false` |
446
448
 
@@ -544,9 +546,12 @@ Text-entry input boxes, affixed input chrome, and select-family triggers use a s
544
546
  | `leftIcon` | `ReactNode` | — |
545
547
  | `rightIcon` | `ReactNode` | — |
546
548
  | `loading` | `boolean` | `false` |
549
+ | `appearance` | `"default" \| "unstyled"` | `"default"` |
547
550
 
548
551
  Accepts all native `<input>` props.
549
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
+
550
555
  ---
551
556
 
552
557
  #### `Textarea`
@@ -1632,6 +1637,8 @@ User avatar with image, initials fallback, and online status.
1632
1637
  | `name` | `string` | — |
1633
1638
  | `size` | `"sm" \| "md" \| "lg"` | `"md"` |
1634
1639
  | `status` | `"online" \| "busy" \| "offline"` | — |
1640
+ | `circleClassName` | `string` | — |
1641
+ | `imageClassName` | `string` | — |
1635
1642
 
1636
1643
  > When `src` is absent, renders initials derived from `name`.
1637
1644
 
@@ -1715,6 +1722,11 @@ DataTable has one default visual density, matching the Figma orders table: 8px o
1715
1722
  | `defaultSorting` | `{ columnId: string; direction: "asc" \| "desc" } \| null` | `null` |
1716
1723
  | `maxHeight` | `number \| string` | — |
1717
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` | — |
1718
1730
 
1719
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`.
1720
1732
 
@@ -1726,7 +1738,7 @@ Angular: pass `sorting` as JSON attribute `[sorting]='{"columnId":"name","direct
1726
1738
  accessorKey?: keyof T;
1727
1739
  accessorFn?: (row: T) => unknown;
1728
1740
  sortable?: boolean;
1729
- cell?: (row: T) => ReactNode;
1741
+ cell?: (row: T, context: { value: unknown; rowIndex: number; selected: boolean; hovered: boolean }) => ReactNode;
1730
1742
  width?: number | string;
1731
1743
  minWidth?: number | string;
1732
1744
  }
@@ -1738,6 +1750,8 @@ For pinned columns, declare `width` / `minWidth` for predictable layout. `DataTa
1738
1750
 
1739
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.
1740
1752
 
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
+
1741
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 }`.
1742
1756
 
1743
1757
  ```tsx
@@ -1984,6 +1998,9 @@ Tabbed content switcher.
1984
1998
  | `defaultValue` | `string` | — |
1985
1999
  | `value` | `string` | — |
1986
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.
1987
2004
 
1988
2005
  ---
1989
2006
 
@@ -2163,6 +2180,11 @@ Expanded default width is 216px. Rows are 32px high with 8px radius, 12px labels
2163
2180
  | `header` | `ReactNode` | — |
2164
2181
  | `children` | `ReactNode` | — |
2165
2182
  | `footer` | `ReactNode` | — |
2183
+ | `rowClassName` | `string` | — |
2184
+ | `footerClassName` | `string` | — |
2185
+ | `inactiveRowHoverBackground` | `string` | standard primary tint |
2186
+ | `flyoutLeft` | `number \| string` | `"15rem"` |
2187
+ | `flyoutZIndex` | `number` | `50` |
2166
2188
 
2167
2189
  - `SideNavSection`: `{ id?, title?, items, action? }` — `title` (uppercase) and `action` are hidden when collapsed.
2168
2190
  - `SideNavItem`: `{ id, label, icon?, active?, badge?, nested?, onSelect? }` — `badge` is hidden when collapsed; `nested` opens a hover flyout (expanded only).
@@ -2226,9 +2248,17 @@ Chat input with attachment and action slots. Submits on `Ctrl+Enter`.
2226
2248
  | `placeholder` | `string` | `"Ask me anything"` |
2227
2249
  | `attachmentSlot` | `ReactNode` | — |
2228
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` | — |
2229
2257
 
2230
2258
  Use `size="sm"` for a compact composer in sidebars, inline threads, or dense workspace rails.
2231
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
+
2232
2262
  ---
2233
2263
 
2234
2264
  #### `FullPageLoader`
@@ -2533,7 +2563,10 @@ Step-by-step progress indicator. Calculates `done` / `active` / `pending` state
2533
2563
  | `steps` | `{ label: ReactNode; status?: "done" \| "active" \| "pending" \| "disabled"; disabled?: boolean }[]` | **required** |
2534
2564
  | `currentStep` | `number` | `0` |
2535
2565
  | `eyebrow` | `ReactNode` | `"Identity & Contact"` |
2566
+ | `eyebrowColor` | `string` | component token value |
2536
2567
  | `title` | `ReactNode` | `"Getting your details ready…"` |
2568
+ | `headerClassName` | `string` | — |
2569
+ | `titleClassName` | `string` | — |
2537
2570
  | `surface` | `"card" \| "plain"` | `"plain"` |
2538
2571
  | `animated` | `boolean` | `true` |
2539
2572
 
@@ -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
  };
@@ -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";