@bfrs/agentic-components 0.8.9 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BFRS_AGENTIC_COMPONENTS.md +9 -6
- package/README.md +50 -2
- package/dist/components/data-display/DataTable/DataTable.js +365 -337
- package/dist/components/data-display/DataTable/DataTable.js.map +1 -1
- package/dist/components/data-display/DataTable/TableColumnVisibility.js +33 -26
- package/dist/components/data-display/DataTable/TableColumnVisibility.js.map +1 -1
- package/dist/components/data-display/DataTable/TablePagination.js +36 -35
- package/dist/components/data-display/DataTable/TablePagination.js.map +1 -1
- package/dist/components/data-display/DataTable/TableSaveView.js +20 -18
- package/dist/components/data-display/DataTable/TableSaveView.js.map +1 -1
- package/dist/components/data-display/DataTable/TableViewSelector.js +279 -263
- package/dist/components/data-display/DataTable/TableViewSelector.js.map +1 -1
- package/dist/components/data-display/Table/Table.js +32 -25
- package/dist/components/data-display/Table/Table.js.map +1 -1
- package/dist/components/feedback/Toast/Toast.js +1 -1
- package/dist/components/feedback/Toast/Toast.js.map +1 -1
- package/dist/components/filters/DateRangePicker/DateRangePicker.js +348 -331
- package/dist/components/filters/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/components/filters/FilterBar/FilterBar.js +18 -17
- package/dist/components/filters/FilterBar/FilterBar.js.map +1 -1
- package/dist/components/layout/ListPageLayout/ListPageLayout.js +28 -26
- package/dist/components/layout/ListPageLayout/ListPageLayout.js.map +1 -1
- package/dist/components/layout/PageHeader/PageHeader.js +6 -4
- package/dist/components/layout/PageHeader/PageHeader.js.map +1 -1
- package/dist/components/navigation/ActionMenu/ActionMenu.js +30 -23
- package/dist/components/navigation/ActionMenu/ActionMenu.js.map +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +20 -19
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/components/primitives/Button/Button.js +76 -61
- package/dist/components/primitives/Button/Button.js.map +1 -1
- package/dist/components/primitives/Chip/Chip.js +3 -1
- package/dist/components/primitives/Chip/Chip.js.map +1 -1
- package/dist/components/primitives/Input/Input.js +12 -12
- package/dist/components/primitives/Input/Input.js.map +1 -1
- package/dist/components/ui/feedback/warningVisual.d.ts +4 -4
- package/dist/components/ui/feedback/warningVisual.js +20 -20
- package/dist/components/ui/feedback/warningVisual.js.map +1 -1
- package/dist/components/ui/forms/Checkbox/Checkbox.js +9 -6
- package/dist/components/ui/forms/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/ui/forms/MultiSelect/MultiSelect.js +25 -14
- package/dist/components/ui/forms/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/components/ui/forms/NumberStepper/NumberStepper.js +1 -1
- package/dist/components/ui/forms/NumberStepper/NumberStepper.js.map +1 -1
- package/dist/components/ui/forms/SearchableSelect/SearchableSelect.js +29 -19
- package/dist/components/ui/forms/SearchableSelect/SearchableSelect.js.map +1 -1
- package/dist/components/ui/forms/Select/Select.js +27 -18
- package/dist/components/ui/forms/Select/Select.js.map +1 -1
- package/dist/components/ui/forms/SuggestInput/SuggestInput.js +22 -10
- package/dist/components/ui/forms/SuggestInput/SuggestInput.js.map +1 -1
- package/dist/components/ui/forms/TagInput/TagInput.js +21 -16
- package/dist/components/ui/forms/TagInput/TagInput.js.map +1 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/overlays/Dropdown/Dropdown.js +32 -20
- package/dist/components/ui/overlays/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/ui/overlays/Tooltip/Tooltip.js +21 -21
- package/dist/components/ui/overlays/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.js +14 -12
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.js.map +1 -1
- package/dist/components/ui/patterns/CommandMenu/CommandMenu.js +31 -19
- package/dist/components/ui/patterns/CommandMenu/CommandMenu.js.map +1 -1
- package/dist/components/ui/patterns/HorizontalStepper/HorizontalStepper.js +1 -1
- package/dist/components/ui/patterns/HorizontalStepper/HorizontalStepper.js.map +1 -1
- package/dist/components/ui/patterns/SideNav/SideNav.js +21 -17
- package/dist/components/ui/patterns/SideNav/SideNav.js.map +1 -1
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.d.ts +10 -0
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.js +63 -42
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.js.map +1 -1
- package/dist/custom-elements.d.ts +1 -0
- package/dist/custom-elements.js +7754 -7389
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +290 -287
- package/dist/style.css +1 -1
- package/dist/styles/globals.css2.js +1 -1
- package/dist/theme/overrides.d.ts +256 -0
- package/dist/theme/overrides.js +255 -92
- package/dist/theme/overrides.js.map +1 -1
- package/dist/theme.js +34 -32
- package/dist/tokens/colors.d.ts +23 -0
- package/dist/tokens/colors.js +23 -0
- package/dist/tokens/colors.js.map +1 -1
- package/dist/tokens/shadows.d.ts +1 -0
- package/dist/tokens/shadows.js +4 -3
- package/dist/tokens/shadows.js.map +1 -1
- package/package.json +1 -1
- package/scripts/lint/cli.cjs +0 -6
|
@@ -95,13 +95,16 @@ For scoped theme overrides, import the framework-neutral theme helper:
|
|
|
95
95
|
import { applyAgenticTheme, createAgenticThemeVariables } from "@bfrs/agentic-components/theme";
|
|
96
96
|
|
|
97
97
|
applyAgenticTheme({
|
|
98
|
-
colors: { primary: "#5B45C2", primarySoft: "#F1ECFB", borderFocus: "#5B45C2" },
|
|
98
|
+
colors: { primary: "#5B45C2", primarySoft: "#F1ECFB", accentSoft: "#ECE8FA", borderFocus: "#5B45C2" },
|
|
99
|
+
states: { rowSelectedBg: "#E4DCF8", tableHeaderText: "#5B45C2" }, // other states follow `colors`
|
|
99
100
|
radius: { control: "14px", card: "18px" },
|
|
100
101
|
shadows: { card: "0 12px 32px rgb(91 69 194 / 0.16)" }
|
|
101
102
|
});
|
|
102
103
|
```
|
|
103
104
|
|
|
104
|
-
`applyAgenticTheme()` writes to an explicit target when provided, otherwise to the first mounted BFRS scope (`.bfrs`, `[data-bfrs-root]`, or `[data-bfrs-mount]`). It does not write to the host document root. Plain CSS variable overrides are also supported. Direct `--bfrs-color-*` overrides should use HSL channels because component styles call them through `hsl(var(--bfrs-color-...))
|
|
105
|
+
`applyAgenticTheme()` writes to an explicit target when provided, otherwise to the first mounted BFRS scope (`.bfrs`, `[data-bfrs-root]`, or `[data-bfrs-mount]`). It does not write to the host document root. To theme a subtree, wrap it in `<BfrsProvider theme={...}>`. Spreading `createAgenticThemeVariables()` onto a plain element themes its children but not portaled overlays (select, dropdown and popover menus), which take their variables from the nearest `BfrsProvider`. Plain CSS variable overrides are also supported. Direct `--bfrs-color-*` overrides should use HSL channels because component styles call them through `hsl(var(--bfrs-color-...))`; the exceptions are the raw-color `--bfrs-color-border-card` and `--bfrs-color-warning-accent` / `-surface` / `-border` variables.
|
|
106
|
+
|
|
107
|
+
The optional `states` group colors interactive states: `rowHoverBg`, `rowSelectedBg` (table rows), `optionHoverBg`, `optionSelectedBg` (menu and listbox options), `navItemActiveBg`, `navItemActiveText` (SideNav active row), `controlHoverBg` (small ghost controls such as clear, close, stepper and page buttons, SideNav flyout items and the active SideNav row on hover), `controlPressedBg` (buttons and triggers while pressed or open; outline buttons follow `colors.primaryBorder`), `tableHeaderBg` (DataTable and Table header row) and `tableHeaderText` (header labels). Each key except `tableHeaderText` defaults to a brand token (`primarySoft`, `primary` or `accentSoft`), so overriding the brand colors already reaches them; set a key only to tune one state. `tableHeaderText` is unset by default — DataTable labels keep `textPrimary` and Table labels keep `textSecondary` — so set it explicitly to tint header labels. These `states` keys are also unset by default, and each consumer falls back to the color it uses today (`var(--x, <own token>)`), so they change nothing until set: `optionHoverText` and `optionSelectedText` (option labels on hover or highlight, and when selected; the selected background stays `optionSelectedBg` for every single- and multi-select list), `rowSelectedBorder` (inset border around selected DataTable rows), `tooltipBg` (dark Tooltip body and arrow, otherwise `textPrimary`), `pageActiveBg` and `pageActiveText` (current page fill and label, at rest and on hover), `checkboxBorder` (empty border of Checkbox and the MultiSelect / column-picker option boxes; DataTable's native row-selection checkboxes do not follow it), and `controlDisabledBg` and `controlDisabledText` (disabled button fill, border and label; while both are unset, a disabled button keeps its own colors at `.55` opacity; setting either one also emits `--bfrs-button-disabled-opacity: 1` and pairs a lone key with the muted default for the other, and plain CSS overrides must set that opacity themselves), `tabsDivider` (line-variant Tabs divider and ListPageLayout's filter band rule; otherwise `colors.border`) and `pageText` (page numbers other than the current page). State values must be opaque: components apply their own alpha, so `rgba()` or 8-digit hex makes the declaration invalid (a transparent background, an inherited text or border color). Related keys outside `states`: `colors.surfacePage` (list page sheet behind ListPageLayout, PageHeader and a standalone FilterBar, default `#FBFCFB`); `colors.warningAccent`, `colors.warningSurface` and `colors.warningBorder` (raw CSS colors, not HSL channels, for every warning visual, defaulting to `#D97706` at 100%, 8% and 20%; not derived from `colors.warning` / `warningSoft`, so existing themes keep their warning look); and `shadows.rowHover` (hover shadow for DataTable body rows, Table rows and `<bfrs-tr>`, none by default; through the theme it also emits `--bfrs-row-hover-position: relative`, which a raw `--bfrs-shadow-row-hover` override must set itself). `colors.textPlaceholder` takes a hex or `rgb()` value and is written as the `r g b` channels placeholders read. The `colors.dcl*` product keys (`dclBrand`, `dclTextBrand`, `dclBorderBrand`, `dclLink`, `dclPrimaryBg`, `dclBackgroundPrimary`, `dclDanger`, `dclDangerSubtle`, `dclSuccess`, `dclSuccessSoft`, `dclSuccessSubtle`, `dclWarningSubtle`, `dclStatusPendingSurface`, `dclTextPrimary`, `dclTextSecondary`, `dclBorderSubtle`, `dclSurfaceMuted`, `dclSurfaceSubtle`, and `dclAgentOrders` through `dclAgentInsights`) type `--bfrs-dcl-color-*` names that product code reads with its own fallback; they are unset by default, no library component reads them, and they replace setting those names through `variables`. Borders are structural colors rather than states, so they do not follow the brand on their own: theme them with `colors.border` (control outlines and row dividers), `colors.borderStrong` (table frame and header rule) and `gradients.cardBorder` / `gradients.cardBorderHover` (Card, Paper and the other card borders); no component reads `colors.borderCard`. Content a consumer portals to `document.body` itself should be wrapped in `BfrsPortalScope` (public, and it must render inside a `BfrsProvider` in the React tree) to keep the theme. Because the opt-in variables are undeclared, a nested `.bfrs` inherits them from an outer theme; `BfrsPortalScope` copies their computed values so a nested provider's overlays match its in-page content. When building or changing a component, paint hover, selected and active states with these `--bfrs-color-*` state tokens, never with `surface-*` or `text-primary`: those match the brand only in the default theme, so they ignore a consumer's brand.
|
|
105
108
|
|
|
106
109
|
**Peer dependencies required:** `react >= 18.2.0`, `react-dom >= 18.2.0`
|
|
107
110
|
|
|
@@ -231,7 +234,7 @@ For validated forms, keep client validation, API validation, and submit side eff
|
|
|
231
234
|
|
|
232
235
|
- **Control sizes** use `"xs" | "sm" | "md" | "lg"` where supported — default is `"md"` unless noted. Use `xs` for extra-compact dashboard toolbar/filter controls.
|
|
233
236
|
- **Tones** are always `"neutral" | "primary" | "brand" | "success" | "warning" | "danger" | "info"`
|
|
234
|
-
- **Warning visuals** use the shared 11px triangle warning SVG with `#D97706`, `
|
|
237
|
+
- **Warning visuals** use the shared 11px triangle warning SVG with the `colors.warningAccent` color, a `colors.warningSurface` background and a `1px solid` `colors.warningBorder` border for warning surfaces (defaults `#D97706`, `rgba(217, 119, 6, 0.08)` and `rgba(217, 119, 6, 0.2)`, read through `src/components/ui/feedback/warningVisual.tsx`). Dot, progress, and accent-only warning treatments use the same accent.
|
|
235
238
|
- **Variants** control visual style (filled vs. outline vs. ghost, etc.)
|
|
236
239
|
- All interactive components forward refs and spread native HTML props
|
|
237
240
|
- Styling uses **Tailwind CSS** + **CVA** with the `bfrs-` utility prefix. Use classes such as `bfrs-flex`, `hover:bfrs-bg-primary`, and `bfrs-animate-shimmer` when you intentionally depend on library utilities. Unprefixed classes are treated as host-app classes.
|
|
@@ -1271,7 +1274,7 @@ Angular: use `left-icon="package"` / `right-icon="arrow-right"` for named Phosph
|
|
|
1271
1274
|
#### `Alert`
|
|
1272
1275
|
|
|
1273
1276
|
Contextual message banner. Auto-selects an icon based on tone.
|
|
1274
|
-
The warning tone uses the shared 11px triangle warning SVG with `#D97706
|
|
1277
|
+
The warning tone uses the shared 11px triangle warning SVG with the `colors.warningAccent` color (default `#D97706`), a `colors.warningSurface` background (default `rgba(217, 119, 6, 0.08)`) and a `1px solid` `colors.warningBorder` border (default `rgba(217, 119, 6, 0.2)`).
|
|
1275
1278
|
|
|
1276
1279
|
```tsx
|
|
1277
1280
|
<Alert
|
|
@@ -2157,7 +2160,7 @@ Use `brandCollapsed` and `tabsCollapsed` to mirror the standalone collapsed side
|
|
|
2157
2160
|
|
|
2158
2161
|
Collapsible application sidebar navigation. Renders grouped sections of items with active state, badges, and hover flyouts for nested items, plus `header`, `footer`, and `children` slots. All data (labels, icons, handlers) is passed in — the component owns layout and collapse behavior.
|
|
2159
2162
|
|
|
2160
|
-
Expanded default width is 216px. Rows are 32px high with 8px radius, 12px labels, and active rows use the soft `#F6F9F6`
|
|
2163
|
+
Expanded default width is 216px. Rows are 32px high with 8px radius, 12px labels, and active rows use the soft `states.navItemActiveBg` surface (`primarySoft`, `#F6F9F6` by default).
|
|
2161
2164
|
|
|
2162
2165
|
```tsx
|
|
2163
2166
|
<SideNav
|
|
@@ -2195,7 +2198,7 @@ Expanded default width is 216px. Rows are 32px high with 8px radius, 12px labels
|
|
|
2195
2198
|
- `SideNavSection`: `{ id?, title?, items, action? }` — `title` (uppercase) and `action` are hidden when collapsed.
|
|
2196
2199
|
- `SideNavItem`: `{ id, label, icon?, active?, badge?, nested?, onSelect? }` — `badge` is hidden when collapsed; `nested` opens a hover flyout (expanded only).
|
|
2197
2200
|
- When `collapsed`, each row hides its `label` and surfaces it as a right-side light (`variant="white"`) `Tooltip` on hover, so items stay identifiable by icon alone.
|
|
2198
|
-
- The active row carries `data-active` and
|
|
2201
|
+
- The active row carries `data-active`. Its surface follows `states.navItemActiveBg` (`primarySoft`, `#F6F9F6` by default) and its hover follows `states.controlHoverBg` (`accentSoft`, `#E5EBEA` by default); the label and icon follow `states.navItemActiveText`. Setting `--bfrs-sidenav-row-active-bg` or `--bfrs-sidenav-row-active-hover-bg` on a wrapper still takes precedence over the theme.
|
|
2199
2202
|
|
|
2200
2203
|
---
|
|
2201
2204
|
|
package/README.md
CHANGED
|
@@ -316,8 +316,14 @@ applyAgenticTheme({
|
|
|
316
316
|
primary: "#5B45C2",
|
|
317
317
|
primaryHover: "#4C35AE",
|
|
318
318
|
primarySoft: "#F1ECFB",
|
|
319
|
+
accentSoft: "#ECE8FA",
|
|
319
320
|
borderFocus: "#5B45C2"
|
|
320
321
|
},
|
|
322
|
+
// Every other state already follows the colors above.
|
|
323
|
+
states: {
|
|
324
|
+
rowSelectedBg: "#E4DCF8",
|
|
325
|
+
tableHeaderText: "#5B45C2"
|
|
326
|
+
},
|
|
321
327
|
radius: {
|
|
322
328
|
control: "14px",
|
|
323
329
|
card: "18px"
|
|
@@ -328,7 +334,49 @@ applyAgenticTheme({
|
|
|
328
334
|
});
|
|
329
335
|
```
|
|
330
336
|
|
|
331
|
-
`applyAgenticTheme()` writes to an explicit target when provided, otherwise to the first mounted BFRS scope (`.bfrs`, `[data-bfrs-root]`, or `[data-bfrs-mount]`). It never writes to the host document root. The helper accepts hex, rgb, hsl, or raw HSL channel values for semantic color tokens.
|
|
337
|
+
`applyAgenticTheme()` writes to an explicit target when provided, otherwise to the first mounted BFRS scope (`.bfrs`, `[data-bfrs-root]`, or `[data-bfrs-mount]`). It never writes to the host document root. The helper accepts hex, rgb, hsl, or raw HSL channel values for semantic color tokens.
|
|
338
|
+
|
|
339
|
+
The optional `states` group colors interactive states. Keys with a brand default already follow `colors`, so set one only to tune that state. Keys that are unset by default change nothing until you set them:
|
|
340
|
+
|
|
341
|
+
| Key | CSS variable | Default | Used by |
|
|
342
|
+
| --- | --- | --- | --- |
|
|
343
|
+
| `rowHoverBg` | `--bfrs-color-row-hover` | `primarySoft` | DataTable and Table row hover |
|
|
344
|
+
| `rowSelectedBg` | `--bfrs-color-row-selected` | `primarySoft` | DataTable selected rows |
|
|
345
|
+
| `optionHoverBg` | `--bfrs-color-option-hover` | `primarySoft` | Menu and listbox options on hover or keyboard highlight |
|
|
346
|
+
| `optionSelectedBg` | `--bfrs-color-option-selected` | `primarySoft` | Checked or selected menu and listbox options |
|
|
347
|
+
| `navItemActiveBg` | `--bfrs-color-nav-active` | `primarySoft` | SideNav active row |
|
|
348
|
+
| `navItemActiveText` | `--bfrs-color-nav-active-text` | `primary` | SideNav active label and icon |
|
|
349
|
+
| `controlHoverBg` | `--bfrs-color-control-hover` | `accentSoft` | Clear, close, stepper and page buttons, SideNav flyout items and the active SideNav row on hover |
|
|
350
|
+
| `controlPressedBg` | `--bfrs-color-control-pressed` | `accentSoft` | Secondary, tertiary, ghost and link buttons, the DateRangePicker trigger, the TableSaveView cancel button and the open column-visibility trigger while pressed or open (outline buttons and the open trigger's border follow `colors.primaryBorder`) |
|
|
351
|
+
| `tableHeaderBg` | `--bfrs-color-table-header` | `primarySoft` | DataTable and Table header row |
|
|
352
|
+
| `tableHeaderText` | `--bfrs-color-table-header-text` | unset | DataTable and Table header labels; when unset, DataTable keeps `textPrimary` and Table keeps `textSecondary`. Not derived from a brand color — set it explicitly |
|
|
353
|
+
| `optionHoverText` | `--bfrs-color-option-hover-text` | unset | Menu and listbox option labels on hover or keyboard highlight; when unset, each option keeps its own text color |
|
|
354
|
+
| `optionSelectedText` | `--bfrs-color-option-selected-text` | unset | Checked or selected option labels; when unset, each option keeps its own text color. The selected background stays `optionSelectedBg` for every single- and multi-select list |
|
|
355
|
+
| `rowSelectedBorder` | `--bfrs-color-row-selected-border` | unset (no border) | Inset border around selected DataTable rows, drawn without changing row size |
|
|
356
|
+
| `tooltipBg` | `--bfrs-color-tooltip-bg` | unset (`textPrimary`) | Dark Tooltip body and arrow; the label stays `textInverse` |
|
|
357
|
+
| `pageActiveBg` | `--bfrs-color-page-active` | unset | Current page fill in pagination, at rest and on hover; when unset, each paginator keeps its own fill |
|
|
358
|
+
| `pageActiveText` | `--bfrs-color-page-active-text` | unset | Current page label; when unset, each paginator keeps its own label color |
|
|
359
|
+
| `checkboxBorder` | `--bfrs-color-checkbox-border` | unset | Empty (unchecked) border of Checkbox and of the MultiSelect and column-picker option boxes; when unset, each keeps its own border color. DataTable's row-selection checkboxes are native inputs and do not follow it |
|
|
360
|
+
| `controlDisabledBg` | `--bfrs-color-control-disabled` | unset | Disabled button fill and border. When unset, a disabled button keeps its own colors faded to 55% opacity. Setting this or `controlDisabledText` turns the fade off, and a key set alone is paired with the muted default for the other (`surfaceMuted` fill, `textMuted` label). With plain CSS variables instead of the theme helpers, also set `--bfrs-button-disabled-opacity: 1` |
|
|
361
|
+
| `controlDisabledText` | `--bfrs-color-control-disabled-text` | unset | Disabled button label |
|
|
362
|
+
| `tabsDivider` | `--bfrs-color-tabs-divider` | unset (`border`) | Line under a line-variant Tabs list, and ListPageLayout's filter band rule that continues it |
|
|
363
|
+
| `pageText` | `--bfrs-color-page-text` | unset | Page number labels other than the current page; when unset, each paginator keeps its own label color |
|
|
364
|
+
|
|
365
|
+
State values must be opaque. Components apply their own alpha, so an `rgba()` or 8-digit hex value makes the declaration invalid: a background renders transparent and a text or border color falls back to the inherited color. Pass the color it produces on its surface instead (black at 12% on white is `#E0E0E0`).
|
|
366
|
+
|
|
367
|
+
A few related keys live outside `states`:
|
|
368
|
+
|
|
369
|
+
- `colors.surfacePage`: the list page sheet behind ListPageLayout, PageHeader and a standalone FilterBar. Default `#FBFCFB`.
|
|
370
|
+
- `colors.textPlaceholder`: input and textarea placeholders. Components read it as rgb channels, so the helper writes a hex or `rgb()` value as `r g b`.
|
|
371
|
+
- `colors.dclBrand`, `dclTextBrand`, `dclBorderBrand`, `dclLink`, `dclPrimaryBg`, `dclBackgroundPrimary`, `dclDanger`, `dclDangerSubtle`, `dclSuccess`, `dclSuccessSoft`, `dclSuccessSubtle`, `dclWarningSubtle`, `dclStatusPendingSurface`, `dclTextPrimary`, `dclTextSecondary`, `dclBorderSubtle`, `dclSurfaceMuted`, `dclSurfaceSubtle`: `--bfrs-dcl-color-*` names that product code reads with its own fallback (`var(--bfrs-dcl-color-link, #hex)`). They are unset by default and no library component reads them, so they change nothing until a theme sets them; they let a theme set those names as typed keys instead of through `variables`. Values are written as raw colors. `dclAgentOrders`, `dclAgentNdr`, `dclAgentRto`, `dclAgentTracking` and `dclAgentInsights` type the DCL agent colors.
|
|
372
|
+
- `colors.warningAccent`, `colors.warningSurface`, `colors.warningBorder`: the icon and text color, fill and border of every warning visual (Alert, Toast, Badge, Chip, Tip, InfoCard, KpiCard, ProgressBar, the Avatar busy dot, HorizontalStepper and DateRangePicker). These are raw CSS colors (alpha allowed), not HSL channels, defaulting to `#D97706` at 100%, 8% and 20%. They are not derived from `colors.warning` or `colors.warningSoft`, so existing themes keep their warning look; set them explicitly.
|
|
373
|
+
- `shadows.rowHover`: a shadow on hovered DataTable body rows, Table rows (including a header row, which already shows the hover background) and Angular `<bfrs-tr>` rows. No shadow by default. Setting `--bfrs-shadow-row-hover` directly in CSS instead of through the theme also needs `--bfrs-row-hover-position: relative`.
|
|
374
|
+
|
|
375
|
+
Borders are structural colors rather than states, so they do not follow the brand on their own: theme them with `colors.border` (control outlines and row dividers), `colors.borderStrong` (table frame and header rule) and `gradients.cardBorder` / `gradients.cardBorderHover` (Card, Paper and the other card borders). No component reads `colors.borderCard`.
|
|
376
|
+
|
|
377
|
+
Content you portal to `document.body` yourself leaves the provider's DOM subtree, so it loses the theme. Wrap it in `BfrsPortalScope` (exported from the package root) while it is still inside the `BfrsProvider` in the React tree; library overlays already do this.
|
|
378
|
+
|
|
379
|
+
Plain CSS variable overrides also work on a BFRS scope:
|
|
332
380
|
|
|
333
381
|
```css
|
|
334
382
|
.bfrs {
|
|
@@ -338,7 +386,7 @@ applyAgenticTheme({
|
|
|
338
386
|
}
|
|
339
387
|
```
|
|
340
388
|
|
|
341
|
-
`BfrsProvider` also accepts `theme` and `colorScheme="light" | "dark"` props. Inline `style` values override generated theme variables when both are provided.
|
|
389
|
+
`BfrsProvider` also accepts `theme` and `colorScheme="light" | "dark"` props. Inline `style` values override generated theme variables when both are provided. To theme a subtree, wrap it in `<BfrsProvider theme={...}>`. Spreading `createAgenticThemeVariables()` onto a plain element themes its children but not portaled overlays (select, dropdown and popover menus), which take their variables from the nearest `BfrsProvider`.
|
|
342
390
|
|
|
343
391
|
### Validated Forms
|
|
344
392
|
|