@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
|
@@ -21,6 +21,8 @@ export declare const agenticThemeColorVariables: {
|
|
|
21
21
|
readonly accent: "--bfrs-color-accent";
|
|
22
22
|
readonly accentSoft: "--bfrs-color-accent-soft";
|
|
23
23
|
readonly surfaceApp: "--bfrs-color-surface-app";
|
|
24
|
+
/** List page sheet: ListPageLayout, PageHeader and a standalone FilterBar. Default #FBFCFB. */
|
|
25
|
+
readonly surfacePage: "--bfrs-color-surface-page";
|
|
24
26
|
readonly surfaceShell: "--bfrs-color-surface-shell";
|
|
25
27
|
readonly surfaceCard: "--bfrs-color-surface-card";
|
|
26
28
|
readonly surfaceMuted: "--bfrs-color-surface-muted";
|
|
@@ -30,6 +32,11 @@ export declare const agenticThemeColorVariables: {
|
|
|
30
32
|
readonly textMuted: "--bfrs-color-text-muted";
|
|
31
33
|
readonly textDisabled: "--bfrs-color-text-disabled";
|
|
32
34
|
readonly textInverse: "--bfrs-color-text-inverse";
|
|
35
|
+
/**
|
|
36
|
+
* Input and textarea placeholder. Components read it as rgb channels
|
|
37
|
+
* (rgb(var(--x) / a)), so a hex or rgb() value is written as "r g b".
|
|
38
|
+
*/
|
|
39
|
+
readonly textPlaceholder: "--bfrs-color-text-placeholder";
|
|
33
40
|
readonly border: "--bfrs-color-border-default";
|
|
34
41
|
readonly borderAlias: "--bfrs-color-border";
|
|
35
42
|
readonly borderLight: "--bfrs-color-border-light";
|
|
@@ -49,6 +56,22 @@ export declare const agenticThemeColorVariables: {
|
|
|
49
56
|
readonly warning: "--bfrs-color-warning";
|
|
50
57
|
readonly warningSoft: "--bfrs-color-warning-soft";
|
|
51
58
|
readonly warningContrast: "--bfrs-color-warning-contrast";
|
|
59
|
+
/**
|
|
60
|
+
* Warning icon, text and accent bars, as a raw CSS color. Unset by default:
|
|
61
|
+
* #D97706. Not derived from `warning`, so existing themes keep their look.
|
|
62
|
+
*/
|
|
63
|
+
readonly warningAccent: "--bfrs-color-warning-accent";
|
|
64
|
+
/**
|
|
65
|
+
* Warning Alert, Toast, Badge, Chip, Tip and InfoCard fill, as a raw CSS
|
|
66
|
+
* color (alpha allowed). Unset by default: #D97706 at 8%. Not derived from
|
|
67
|
+
* `warningSoft`.
|
|
68
|
+
*/
|
|
69
|
+
readonly warningSurface: "--bfrs-color-warning-surface";
|
|
70
|
+
/**
|
|
71
|
+
* Warning surface border, as a raw CSS color (alpha allowed). Unset by
|
|
72
|
+
* default: #D97706 at 20%. Not derived from `warning`.
|
|
73
|
+
*/
|
|
74
|
+
readonly warningBorder: "--bfrs-color-warning-border";
|
|
52
75
|
readonly info: "--bfrs-color-info";
|
|
53
76
|
readonly infoSoft: "--bfrs-color-info-soft";
|
|
54
77
|
readonly infoContrast: "--bfrs-color-info-contrast";
|
|
@@ -75,6 +98,35 @@ export declare const agenticThemeColorVariables: {
|
|
|
75
98
|
readonly dclTextLight: "--bfrs-dcl-color-text-light";
|
|
76
99
|
readonly dclTextInverse: "--bfrs-dcl-color-text-inverse";
|
|
77
100
|
readonly dclClickHover: "--bfrs-dcl-color-click-hover";
|
|
101
|
+
readonly dclAgentOrders: "--bfrs-dcl-color-agent-orders";
|
|
102
|
+
readonly dclAgentNdr: "--bfrs-dcl-color-agent-ndr";
|
|
103
|
+
readonly dclAgentRto: "--bfrs-dcl-color-agent-rto";
|
|
104
|
+
readonly dclAgentTracking: "--bfrs-dcl-color-agent-tracking";
|
|
105
|
+
readonly dclAgentInsights: "--bfrs-dcl-color-agent-insights";
|
|
106
|
+
/** Brand fill (solid brand chips, markers). */
|
|
107
|
+
readonly dclBrand: "--bfrs-dcl-color-brand";
|
|
108
|
+
/** Brand-colored text. */
|
|
109
|
+
readonly dclTextBrand: "--bfrs-dcl-color-text-brand";
|
|
110
|
+
/** Brand-colored border. */
|
|
111
|
+
readonly dclBorderBrand: "--bfrs-dcl-color-border-brand";
|
|
112
|
+
/** Inline links. */
|
|
113
|
+
readonly dclLink: "--bfrs-dcl-color-link";
|
|
114
|
+
/** Light brand background. */
|
|
115
|
+
readonly dclPrimaryBg: "--bfrs-dcl-color-primary-bg";
|
|
116
|
+
/** Primary page or panel background. */
|
|
117
|
+
readonly dclBackgroundPrimary: "--bfrs-dcl-color-background-primary";
|
|
118
|
+
readonly dclDanger: "--bfrs-dcl-color-danger";
|
|
119
|
+
readonly dclDangerSubtle: "--bfrs-dcl-color-danger-subtle";
|
|
120
|
+
readonly dclSuccess: "--bfrs-dcl-color-success";
|
|
121
|
+
readonly dclSuccessSoft: "--bfrs-dcl-color-success-soft";
|
|
122
|
+
readonly dclSuccessSubtle: "--bfrs-dcl-color-success-subtle";
|
|
123
|
+
readonly dclWarningSubtle: "--bfrs-dcl-color-warning-subtle";
|
|
124
|
+
readonly dclStatusPendingSurface: "--bfrs-dcl-color-status-pending-surface";
|
|
125
|
+
readonly dclTextPrimary: "--bfrs-dcl-color-text-primary";
|
|
126
|
+
readonly dclTextSecondary: "--bfrs-dcl-color-text-secondary";
|
|
127
|
+
readonly dclBorderSubtle: "--bfrs-dcl-color-border-subtle";
|
|
128
|
+
readonly dclSurfaceMuted: "--bfrs-dcl-color-surface-muted";
|
|
129
|
+
readonly dclSurfaceSubtle: "--bfrs-dcl-color-surface-subtle";
|
|
78
130
|
readonly statusDelivered: "--bfrs-dcl-color-status-delivered";
|
|
79
131
|
readonly statusDeliveredBg: "--bfrs-dcl-color-status-delivered-bg";
|
|
80
132
|
readonly statusInTransit: "--bfrs-dcl-color-status-in-transit";
|
|
@@ -97,6 +149,78 @@ export declare const agenticThemeColorVariables: {
|
|
|
97
149
|
readonly stepProgressActiveText: "--bfrs-dcl-color-step-progress-active-text";
|
|
98
150
|
readonly stepProgressPending: "--bfrs-dcl-color-step-progress-pending";
|
|
99
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* Interaction-state colors. Opaque values only: components apply their own
|
|
154
|
+
* alpha (hsl(var(--x) / a)), so an rgba or 8-digit hex value renders
|
|
155
|
+
* transparent. Pass the color it produces on its surface instead (black at
|
|
156
|
+
* 12% on white is #E0E0E0).
|
|
157
|
+
*
|
|
158
|
+
* Keys with a brand default alias that token in tokens.css, so overriding
|
|
159
|
+
* `colors.primarySoft` / `colors.primary` / `colors.accentSoft` already
|
|
160
|
+
* reaches them; set a key here to tune one state independently. Keys marked
|
|
161
|
+
* "unset by default" have no single default: each component falls back to the
|
|
162
|
+
* color it uses today (var(--x, <own token>)), so they change nothing until set.
|
|
163
|
+
*/
|
|
164
|
+
export declare const agenticThemeStateVariables: {
|
|
165
|
+
/** Table body row on pointer hover. Default: primarySoft. */
|
|
166
|
+
readonly rowHoverBg: "--bfrs-color-row-hover";
|
|
167
|
+
/** Selected table body row. Default: primarySoft. */
|
|
168
|
+
readonly rowSelectedBg: "--bfrs-color-row-selected";
|
|
169
|
+
/** Menu / listbox option on hover or keyboard highlight. Default: primarySoft. */
|
|
170
|
+
readonly optionHoverBg: "--bfrs-color-option-hover";
|
|
171
|
+
/** Checked / selected menu or listbox option. Default: primarySoft. */
|
|
172
|
+
readonly optionSelectedBg: "--bfrs-color-option-selected";
|
|
173
|
+
/** Active navigation row surface. Default: primarySoft. */
|
|
174
|
+
readonly navItemActiveBg: "--bfrs-color-nav-active";
|
|
175
|
+
/** Active navigation row label and icon. Default: primary. */
|
|
176
|
+
readonly navItemActiveText: "--bfrs-color-nav-active-text";
|
|
177
|
+
/** Small ghost controls (clear, close, stepper, page buttons), SideNav flyout items and the active SideNav row on hover. Default: accentSoft. */
|
|
178
|
+
readonly controlHoverBg: "--bfrs-color-control-hover";
|
|
179
|
+
/** Buttons and triggers while pressed or open (outline buttons follow colors.primaryBorder). Default: accentSoft. */
|
|
180
|
+
readonly controlPressedBg: "--bfrs-color-control-pressed";
|
|
181
|
+
/** DataTable and Table header row surface. Default: primarySoft. */
|
|
182
|
+
readonly tableHeaderBg: "--bfrs-color-table-header";
|
|
183
|
+
/**
|
|
184
|
+
* DataTable and Table header labels. Unset by default (DataTable keeps
|
|
185
|
+
* textPrimary, Table keeps textSecondary); not derived from any brand color.
|
|
186
|
+
*/
|
|
187
|
+
readonly tableHeaderText: "--bfrs-color-table-header-text";
|
|
188
|
+
/** Option label on hover or keyboard highlight. Unset by default: each option keeps its own text color. */
|
|
189
|
+
readonly optionHoverText: "--bfrs-color-option-hover-text";
|
|
190
|
+
/**
|
|
191
|
+
* Checked / selected option label. Unset by default: each option keeps its
|
|
192
|
+
* own text color. The selected background stays `optionSelectedBg` for every
|
|
193
|
+
* single- and multi-select list.
|
|
194
|
+
*/
|
|
195
|
+
readonly optionSelectedText: "--bfrs-color-option-selected-text";
|
|
196
|
+
/** Inset border around a selected DataTable row (drawn without changing row size). Unset by default: no border. */
|
|
197
|
+
readonly rowSelectedBorder: "--bfrs-color-row-selected-border";
|
|
198
|
+
/** Dark Tooltip body and arrow. Unset by default: textPrimary. The label stays textInverse. */
|
|
199
|
+
readonly tooltipBg: "--bfrs-color-tooltip-bg";
|
|
200
|
+
/** Current page in pagination, at rest and on hover. Unset by default: each paginator keeps its own fill. */
|
|
201
|
+
readonly pageActiveBg: "--bfrs-color-page-active";
|
|
202
|
+
/** Current page label. Unset by default: each paginator keeps its own label color. */
|
|
203
|
+
readonly pageActiveText: "--bfrs-color-page-active-text";
|
|
204
|
+
/** Border of an empty (unchecked) checkbox. Unset by default: each checkbox keeps its own border color. */
|
|
205
|
+
readonly checkboxBorder: "--bfrs-color-checkbox-border";
|
|
206
|
+
/**
|
|
207
|
+
* Disabled button fill and border. Unset by default: a disabled button keeps
|
|
208
|
+
* its own colors faded to opacity .55. Setting this or controlDisabledText
|
|
209
|
+
* switches the fade off (--bfrs-button-disabled-opacity: 1), and a key set
|
|
210
|
+
* alone is paired with the muted default for the other (surfaceMuted fill,
|
|
211
|
+
* textMuted label).
|
|
212
|
+
*/
|
|
213
|
+
readonly controlDisabledBg: "--bfrs-color-control-disabled";
|
|
214
|
+
/** Disabled button label. Unset by default (see controlDisabledBg). */
|
|
215
|
+
readonly controlDisabledText: "--bfrs-color-control-disabled-text";
|
|
216
|
+
/**
|
|
217
|
+
* Line under a line-variant Tabs list and ListPageLayout's tabs band. Unset
|
|
218
|
+
* by default: colors.border, like the other dividers.
|
|
219
|
+
*/
|
|
220
|
+
readonly tabsDivider: "--bfrs-color-tabs-divider";
|
|
221
|
+
/** Page number labels other than the current page. Unset by default: each paginator keeps its own label color. */
|
|
222
|
+
readonly pageText: "--bfrs-color-page-text";
|
|
223
|
+
};
|
|
100
224
|
export declare const agenticThemeRadiusVariables: {
|
|
101
225
|
readonly sm: "--bfrs-radius-sm";
|
|
102
226
|
readonly md: "--bfrs-radius-md";
|
|
@@ -129,6 +253,12 @@ export declare const agenticThemeShadowVariables: {
|
|
|
129
253
|
readonly drawer: "--bfrs-shadow-drawer";
|
|
130
254
|
readonly modal: "--bfrs-shadow-modal";
|
|
131
255
|
readonly sticky: "--bfrs-shadow-sticky";
|
|
256
|
+
/**
|
|
257
|
+
* DataTable and Table body row on hover. Unset by default: no shadow. Setting
|
|
258
|
+
* it also positions the hovered row (--bfrs-row-hover-position: relative) so
|
|
259
|
+
* the shadow paints above the neighboring rows.
|
|
260
|
+
*/
|
|
261
|
+
readonly rowHover: "--bfrs-shadow-row-hover";
|
|
132
262
|
};
|
|
133
263
|
export declare const agenticThemeGradientVariables: {
|
|
134
264
|
readonly card: "--bfrs-gradient-card";
|
|
@@ -167,6 +297,8 @@ export declare const agenticThemeTokens: {
|
|
|
167
297
|
readonly accent: "--bfrs-color-accent";
|
|
168
298
|
readonly accentSoft: "--bfrs-color-accent-soft";
|
|
169
299
|
readonly surfaceApp: "--bfrs-color-surface-app";
|
|
300
|
+
/** List page sheet: ListPageLayout, PageHeader and a standalone FilterBar. Default #FBFCFB. */
|
|
301
|
+
readonly surfacePage: "--bfrs-color-surface-page";
|
|
170
302
|
readonly surfaceShell: "--bfrs-color-surface-shell";
|
|
171
303
|
readonly surfaceCard: "--bfrs-color-surface-card";
|
|
172
304
|
readonly surfaceMuted: "--bfrs-color-surface-muted";
|
|
@@ -176,6 +308,11 @@ export declare const agenticThemeTokens: {
|
|
|
176
308
|
readonly textMuted: "--bfrs-color-text-muted";
|
|
177
309
|
readonly textDisabled: "--bfrs-color-text-disabled";
|
|
178
310
|
readonly textInverse: "--bfrs-color-text-inverse";
|
|
311
|
+
/**
|
|
312
|
+
* Input and textarea placeholder. Components read it as rgb channels
|
|
313
|
+
* (rgb(var(--x) / a)), so a hex or rgb() value is written as "r g b".
|
|
314
|
+
*/
|
|
315
|
+
readonly textPlaceholder: "--bfrs-color-text-placeholder";
|
|
179
316
|
readonly border: "--bfrs-color-border-default";
|
|
180
317
|
readonly borderAlias: "--bfrs-color-border";
|
|
181
318
|
readonly borderLight: "--bfrs-color-border-light";
|
|
@@ -195,6 +332,22 @@ export declare const agenticThemeTokens: {
|
|
|
195
332
|
readonly warning: "--bfrs-color-warning";
|
|
196
333
|
readonly warningSoft: "--bfrs-color-warning-soft";
|
|
197
334
|
readonly warningContrast: "--bfrs-color-warning-contrast";
|
|
335
|
+
/**
|
|
336
|
+
* Warning icon, text and accent bars, as a raw CSS color. Unset by default:
|
|
337
|
+
* #D97706. Not derived from `warning`, so existing themes keep their look.
|
|
338
|
+
*/
|
|
339
|
+
readonly warningAccent: "--bfrs-color-warning-accent";
|
|
340
|
+
/**
|
|
341
|
+
* Warning Alert, Toast, Badge, Chip, Tip and InfoCard fill, as a raw CSS
|
|
342
|
+
* color (alpha allowed). Unset by default: #D97706 at 8%. Not derived from
|
|
343
|
+
* `warningSoft`.
|
|
344
|
+
*/
|
|
345
|
+
readonly warningSurface: "--bfrs-color-warning-surface";
|
|
346
|
+
/**
|
|
347
|
+
* Warning surface border, as a raw CSS color (alpha allowed). Unset by
|
|
348
|
+
* default: #D97706 at 20%. Not derived from `warning`.
|
|
349
|
+
*/
|
|
350
|
+
readonly warningBorder: "--bfrs-color-warning-border";
|
|
198
351
|
readonly info: "--bfrs-color-info";
|
|
199
352
|
readonly infoSoft: "--bfrs-color-info-soft";
|
|
200
353
|
readonly infoContrast: "--bfrs-color-info-contrast";
|
|
@@ -221,6 +374,35 @@ export declare const agenticThemeTokens: {
|
|
|
221
374
|
readonly dclTextLight: "--bfrs-dcl-color-text-light";
|
|
222
375
|
readonly dclTextInverse: "--bfrs-dcl-color-text-inverse";
|
|
223
376
|
readonly dclClickHover: "--bfrs-dcl-color-click-hover";
|
|
377
|
+
readonly dclAgentOrders: "--bfrs-dcl-color-agent-orders";
|
|
378
|
+
readonly dclAgentNdr: "--bfrs-dcl-color-agent-ndr";
|
|
379
|
+
readonly dclAgentRto: "--bfrs-dcl-color-agent-rto";
|
|
380
|
+
readonly dclAgentTracking: "--bfrs-dcl-color-agent-tracking";
|
|
381
|
+
readonly dclAgentInsights: "--bfrs-dcl-color-agent-insights";
|
|
382
|
+
/** Brand fill (solid brand chips, markers). */
|
|
383
|
+
readonly dclBrand: "--bfrs-dcl-color-brand";
|
|
384
|
+
/** Brand-colored text. */
|
|
385
|
+
readonly dclTextBrand: "--bfrs-dcl-color-text-brand";
|
|
386
|
+
/** Brand-colored border. */
|
|
387
|
+
readonly dclBorderBrand: "--bfrs-dcl-color-border-brand";
|
|
388
|
+
/** Inline links. */
|
|
389
|
+
readonly dclLink: "--bfrs-dcl-color-link";
|
|
390
|
+
/** Light brand background. */
|
|
391
|
+
readonly dclPrimaryBg: "--bfrs-dcl-color-primary-bg";
|
|
392
|
+
/** Primary page or panel background. */
|
|
393
|
+
readonly dclBackgroundPrimary: "--bfrs-dcl-color-background-primary";
|
|
394
|
+
readonly dclDanger: "--bfrs-dcl-color-danger";
|
|
395
|
+
readonly dclDangerSubtle: "--bfrs-dcl-color-danger-subtle";
|
|
396
|
+
readonly dclSuccess: "--bfrs-dcl-color-success";
|
|
397
|
+
readonly dclSuccessSoft: "--bfrs-dcl-color-success-soft";
|
|
398
|
+
readonly dclSuccessSubtle: "--bfrs-dcl-color-success-subtle";
|
|
399
|
+
readonly dclWarningSubtle: "--bfrs-dcl-color-warning-subtle";
|
|
400
|
+
readonly dclStatusPendingSurface: "--bfrs-dcl-color-status-pending-surface";
|
|
401
|
+
readonly dclTextPrimary: "--bfrs-dcl-color-text-primary";
|
|
402
|
+
readonly dclTextSecondary: "--bfrs-dcl-color-text-secondary";
|
|
403
|
+
readonly dclBorderSubtle: "--bfrs-dcl-color-border-subtle";
|
|
404
|
+
readonly dclSurfaceMuted: "--bfrs-dcl-color-surface-muted";
|
|
405
|
+
readonly dclSurfaceSubtle: "--bfrs-dcl-color-surface-subtle";
|
|
224
406
|
readonly statusDelivered: "--bfrs-dcl-color-status-delivered";
|
|
225
407
|
readonly statusDeliveredBg: "--bfrs-dcl-color-status-delivered-bg";
|
|
226
408
|
readonly statusInTransit: "--bfrs-dcl-color-status-in-transit";
|
|
@@ -243,6 +425,66 @@ export declare const agenticThemeTokens: {
|
|
|
243
425
|
readonly stepProgressActiveText: "--bfrs-dcl-color-step-progress-active-text";
|
|
244
426
|
readonly stepProgressPending: "--bfrs-dcl-color-step-progress-pending";
|
|
245
427
|
};
|
|
428
|
+
readonly states: {
|
|
429
|
+
/** Table body row on pointer hover. Default: primarySoft. */
|
|
430
|
+
readonly rowHoverBg: "--bfrs-color-row-hover";
|
|
431
|
+
/** Selected table body row. Default: primarySoft. */
|
|
432
|
+
readonly rowSelectedBg: "--bfrs-color-row-selected";
|
|
433
|
+
/** Menu / listbox option on hover or keyboard highlight. Default: primarySoft. */
|
|
434
|
+
readonly optionHoverBg: "--bfrs-color-option-hover";
|
|
435
|
+
/** Checked / selected menu or listbox option. Default: primarySoft. */
|
|
436
|
+
readonly optionSelectedBg: "--bfrs-color-option-selected";
|
|
437
|
+
/** Active navigation row surface. Default: primarySoft. */
|
|
438
|
+
readonly navItemActiveBg: "--bfrs-color-nav-active";
|
|
439
|
+
/** Active navigation row label and icon. Default: primary. */
|
|
440
|
+
readonly navItemActiveText: "--bfrs-color-nav-active-text";
|
|
441
|
+
/** Small ghost controls (clear, close, stepper, page buttons), SideNav flyout items and the active SideNav row on hover. Default: accentSoft. */
|
|
442
|
+
readonly controlHoverBg: "--bfrs-color-control-hover";
|
|
443
|
+
/** Buttons and triggers while pressed or open (outline buttons follow colors.primaryBorder). Default: accentSoft. */
|
|
444
|
+
readonly controlPressedBg: "--bfrs-color-control-pressed";
|
|
445
|
+
/** DataTable and Table header row surface. Default: primarySoft. */
|
|
446
|
+
readonly tableHeaderBg: "--bfrs-color-table-header";
|
|
447
|
+
/**
|
|
448
|
+
* DataTable and Table header labels. Unset by default (DataTable keeps
|
|
449
|
+
* textPrimary, Table keeps textSecondary); not derived from any brand color.
|
|
450
|
+
*/
|
|
451
|
+
readonly tableHeaderText: "--bfrs-color-table-header-text";
|
|
452
|
+
/** Option label on hover or keyboard highlight. Unset by default: each option keeps its own text color. */
|
|
453
|
+
readonly optionHoverText: "--bfrs-color-option-hover-text";
|
|
454
|
+
/**
|
|
455
|
+
* Checked / selected option label. Unset by default: each option keeps its
|
|
456
|
+
* own text color. The selected background stays `optionSelectedBg` for every
|
|
457
|
+
* single- and multi-select list.
|
|
458
|
+
*/
|
|
459
|
+
readonly optionSelectedText: "--bfrs-color-option-selected-text";
|
|
460
|
+
/** Inset border around a selected DataTable row (drawn without changing row size). Unset by default: no border. */
|
|
461
|
+
readonly rowSelectedBorder: "--bfrs-color-row-selected-border";
|
|
462
|
+
/** Dark Tooltip body and arrow. Unset by default: textPrimary. The label stays textInverse. */
|
|
463
|
+
readonly tooltipBg: "--bfrs-color-tooltip-bg";
|
|
464
|
+
/** Current page in pagination, at rest and on hover. Unset by default: each paginator keeps its own fill. */
|
|
465
|
+
readonly pageActiveBg: "--bfrs-color-page-active";
|
|
466
|
+
/** Current page label. Unset by default: each paginator keeps its own label color. */
|
|
467
|
+
readonly pageActiveText: "--bfrs-color-page-active-text";
|
|
468
|
+
/** Border of an empty (unchecked) checkbox. Unset by default: each checkbox keeps its own border color. */
|
|
469
|
+
readonly checkboxBorder: "--bfrs-color-checkbox-border";
|
|
470
|
+
/**
|
|
471
|
+
* Disabled button fill and border. Unset by default: a disabled button keeps
|
|
472
|
+
* its own colors faded to opacity .55. Setting this or controlDisabledText
|
|
473
|
+
* switches the fade off (--bfrs-button-disabled-opacity: 1), and a key set
|
|
474
|
+
* alone is paired with the muted default for the other (surfaceMuted fill,
|
|
475
|
+
* textMuted label).
|
|
476
|
+
*/
|
|
477
|
+
readonly controlDisabledBg: "--bfrs-color-control-disabled";
|
|
478
|
+
/** Disabled button label. Unset by default (see controlDisabledBg). */
|
|
479
|
+
readonly controlDisabledText: "--bfrs-color-control-disabled-text";
|
|
480
|
+
/**
|
|
481
|
+
* Line under a line-variant Tabs list and ListPageLayout's tabs band. Unset
|
|
482
|
+
* by default: colors.border, like the other dividers.
|
|
483
|
+
*/
|
|
484
|
+
readonly tabsDivider: "--bfrs-color-tabs-divider";
|
|
485
|
+
/** Page number labels other than the current page. Unset by default: each paginator keeps its own label color. */
|
|
486
|
+
readonly pageText: "--bfrs-color-page-text";
|
|
487
|
+
};
|
|
246
488
|
readonly radius: {
|
|
247
489
|
readonly sm: "--bfrs-radius-sm";
|
|
248
490
|
readonly md: "--bfrs-radius-md";
|
|
@@ -275,6 +517,12 @@ export declare const agenticThemeTokens: {
|
|
|
275
517
|
readonly drawer: "--bfrs-shadow-drawer";
|
|
276
518
|
readonly modal: "--bfrs-shadow-modal";
|
|
277
519
|
readonly sticky: "--bfrs-shadow-sticky";
|
|
520
|
+
/**
|
|
521
|
+
* DataTable and Table body row on hover. Unset by default: no shadow. Setting
|
|
522
|
+
* it also positions the hovered row (--bfrs-row-hover-position: relative) so
|
|
523
|
+
* the shadow paints above the neighboring rows.
|
|
524
|
+
*/
|
|
525
|
+
readonly rowHover: "--bfrs-shadow-row-hover";
|
|
278
526
|
};
|
|
279
527
|
readonly gradients: {
|
|
280
528
|
readonly card: "--bfrs-gradient-card";
|
|
@@ -303,6 +551,7 @@ export declare const agenticThemeTokens: {
|
|
|
303
551
|
};
|
|
304
552
|
};
|
|
305
553
|
export type AgenticThemeColorToken = keyof typeof agenticThemeColorVariables;
|
|
554
|
+
export type AgenticThemeStateToken = keyof typeof agenticThemeStateVariables;
|
|
306
555
|
export type AgenticThemeRadiusToken = keyof typeof agenticThemeRadiusVariables;
|
|
307
556
|
export type AgenticThemeShadowToken = keyof typeof agenticThemeShadowVariables;
|
|
308
557
|
export type AgenticThemeGradientToken = keyof typeof agenticThemeGradientVariables;
|
|
@@ -311,6 +560,7 @@ export type AgenticThemeTypographyToken = keyof typeof agenticThemeTypographyVar
|
|
|
311
560
|
export type AgenticThemeMotionToken = keyof typeof agenticThemeMotionVariables;
|
|
312
561
|
export type AgenticThemeOverrides = {
|
|
313
562
|
colors?: Partial<Record<AgenticThemeColorToken, ThemeTokenValue>>;
|
|
563
|
+
states?: Partial<Record<AgenticThemeStateToken, ThemeTokenValue>>;
|
|
314
564
|
radius?: Partial<Record<AgenticThemeRadiusToken, ThemeTokenValue>>;
|
|
315
565
|
shadows?: Partial<Record<AgenticThemeShadowToken, ThemeTokenValue>>;
|
|
316
566
|
gradients?: Partial<Record<AgenticThemeGradientToken, ThemeTokenValue>>;
|
|
@@ -320,6 +570,12 @@ export type AgenticThemeOverrides = {
|
|
|
320
570
|
variables?: Partial<Record<ThemeVariableName | string, ThemeTokenValue>>;
|
|
321
571
|
};
|
|
322
572
|
export type AgenticThemeVariables = Partial<Record<ThemeVariableName, string>>;
|
|
573
|
+
/**
|
|
574
|
+
* Normalizes a color to the "r g b" channels an rgb(var(--x) / a) token reads
|
|
575
|
+
* (textPlaceholder). Hex and rgb()/rgba() convert; anything else, including
|
|
576
|
+
* channels already in "r g b" form, passes through trimmed.
|
|
577
|
+
*/
|
|
578
|
+
export declare function normalizeThemeRgbChannels(value: string): string;
|
|
323
579
|
export declare function normalizeThemeColorValue(value: string): string;
|
|
324
580
|
export declare function createAgenticThemeVariables(theme: AgenticThemeOverrides): AgenticThemeVariables;
|
|
325
581
|
export declare function createAgenticThemeCssText(theme: AgenticThemeOverrides): string;
|