@bfrs/agentic-components 0.2.6 → 0.2.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 +17 -7
- package/README.md +21 -13
- package/dist/components/ui/data-display/KpiCard/KpiCard.d.ts +16 -0
- package/dist/components/ui/data-display/KpiCard/index.d.ts +1 -0
- package/dist/components/ui/feedback/Alert/Alert.d.ts +2 -2
- package/dist/components/ui/feedback/ProgressBar/ProgressBar.d.ts +27 -0
- package/dist/components/ui/feedback/ProgressBar/index.d.ts +1 -0
- package/dist/components/ui/feedback/Skeleton/Skeleton.d.ts +2 -2
- package/dist/components/ui/forms/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ui/forms/Slider/Slider.d.ts +1 -1
- package/dist/components/ui/index.d.ts +4 -0
- package/dist/components/ui/primitives/Paper/Paper.d.ts +4 -4
- package/dist/components/ui/primitives/Text/Text.d.ts +4 -4
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.d.ts +19 -0
- package/dist/components/ui/providers/BfrsProvider/index.d.ts +2 -0
- package/dist/custom-elements.d.ts +16 -0
- package/dist/custom-elements.js +16603 -16117
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +5530 -5349
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/overrides.d.ts +254 -254
- package/dist/theme.js +392 -387
- package/dist/theme.js.map +1 -1
- package/dist/tokens/colors.d.ts +74 -74
- package/dist/tokens/motion.d.ts +5 -5
- package/dist/tokens/radius.d.ts +17 -17
- package/dist/tokens/shadows.d.ts +9 -9
- package/dist/tokens/sizes.d.ts +42 -42
- package/dist/tokens/spacing.d.ts +14 -14
- package/dist/tokens/typography.d.ts +11 -11
- package/package.json +1 -1
|
@@ -22,13 +22,23 @@ Import the stylesheet once at your app entry point:
|
|
|
22
22
|
import "@bfrs/agentic-components/styles";
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
The stylesheet is safe to import globally. It does not ship Tailwind preflight, page-level resets, font-face declarations, unprefixed utilities, or generic keyframes.
|
|
26
|
+
|
|
25
27
|
Import components by name:
|
|
26
28
|
|
|
27
29
|
```tsx
|
|
28
|
-
import { Button, Input, Slider, ColorPicker, ColorSwatchGroup, RevealAndCopy, Modal, DataTable, DateRangePicker, ToastProvider, useToast } from "@bfrs/agentic-components";
|
|
30
|
+
import { BfrsProvider, Button, Input, Slider, ColorPicker, ColorSwatchGroup, RevealAndCopy, Modal, DataTable, DateRangePicker, ToastProvider, useToast } from "@bfrs/agentic-components";
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
React consumers should wrap BFRS surfaces in `BfrsProvider`; the provider owns `--bfrs-*` variables, color scheme, and portal inheritance.
|
|
34
|
+
|
|
35
|
+
```tsx
|
|
36
|
+
<BfrsProvider colorScheme="light">
|
|
37
|
+
<App />
|
|
38
|
+
</BfrsProvider>
|
|
29
39
|
```
|
|
30
40
|
|
|
31
|
-
For
|
|
41
|
+
For scoped theme overrides, import the framework-neutral theme helper:
|
|
32
42
|
|
|
33
43
|
```ts
|
|
34
44
|
import { applyAgenticTheme, createAgenticThemeVariables } from "@bfrs/agentic-components/theme";
|
|
@@ -40,7 +50,7 @@ applyAgenticTheme({
|
|
|
40
50
|
});
|
|
41
51
|
```
|
|
42
52
|
|
|
43
|
-
Plain CSS variable overrides are also supported. Direct `--color-*` overrides should use HSL channels because component styles call them through `hsl(var(--color-...))`.
|
|
53
|
+
`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-...))`.
|
|
44
54
|
|
|
45
55
|
**Peer dependencies required:** `react >= 18.2.0`, `react-dom >= 18.2.0`
|
|
46
56
|
|
|
@@ -126,9 +136,9 @@ For validated forms, keep client validation, API validation, and submit side eff
|
|
|
126
136
|
- **Tones** are always `"neutral" | "primary" | "brand" | "success" | "warning" | "danger" | "info"`
|
|
127
137
|
- **Variants** control visual style (filled vs. outline vs. ghost, etc.)
|
|
128
138
|
- All interactive components forward refs and spread native HTML props
|
|
129
|
-
- Styling uses **Tailwind CSS** + **CVA**
|
|
130
|
-
- Use the `cn()` utility from the library for conditional class merging
|
|
131
|
-
- **Card surface standard** — all card-like components (`Card`, `MetricCard`, `FormSection`, `BusinessInfoDisplayCard`, and `StepProgressCard` when `surface="card"`) share the same surface style: `border-radius: 12px`, a faded green-grey gradient stroke (`
|
|
139
|
+
- 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.
|
|
140
|
+
- Use the `cn()` utility from the library for conditional class merging; it merges prefixed BFRS utilities and preserves unprefixed host classes.
|
|
141
|
+
- **Card surface standard** — all card-like components (`Card`, `MetricCard`, `FormSection`, `BusinessInfoDisplayCard`, and `StepProgressCard` when `surface="card"`) share the same surface style: `border-radius: 12px`, a faded green-grey gradient stroke (`bfrs-faded-card-border`), `background: linear-gradient(168deg, #FFF 8.6%, #FFFFFD 97.41%)`, `box-shadow: 0 0 21.7px 0 rgba(24, 240, 64, 0.03)`. Do not override these properties unless intentionally switching to a `muted` or `soft` variant.
|
|
132
142
|
|
|
133
143
|
```tsx
|
|
134
144
|
import { cn } from "@bfrs/agentic-components";
|
|
@@ -147,7 +157,7 @@ import { cn } from "@bfrs/agentic-components";
|
|
|
147
157
|
Generic polymorphic wrapper. Use when you need a semantic HTML element with class merging.
|
|
148
158
|
|
|
149
159
|
```tsx
|
|
150
|
-
<Box as="section" className="my-4">…</Box>
|
|
160
|
+
<Box as="section" className="bfrs-my-4">…</Box>
|
|
151
161
|
```
|
|
152
162
|
|
|
153
163
|
| Prop | Type | Default |
|
package/README.md
CHANGED
|
@@ -24,22 +24,28 @@ Use BFRS_AGENTIC_COMPONENTS.md for knowledge regarding the component library.
|
|
|
24
24
|
|
|
25
25
|
```tsx
|
|
26
26
|
import "@bfrs/agentic-components/styles";
|
|
27
|
-
import { Button, Card, Checkbox, Input, Text } from "@bfrs/agentic-components";
|
|
27
|
+
import { BfrsProvider, Button, Card, Checkbox, Input, Text } from "@bfrs/agentic-components";
|
|
28
28
|
|
|
29
29
|
export function Example() {
|
|
30
30
|
return (
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
<BfrsProvider>
|
|
32
|
+
<Card>
|
|
33
|
+
<Text variant="title">Create shipment</Text>
|
|
34
|
+
<Input placeholder="Pickup pincode" />
|
|
35
|
+
<Checkbox label="Save this pickup address" defaultChecked />
|
|
36
|
+
<Button onClick={() => undefined}>Continue</Button>
|
|
37
|
+
</Card>
|
|
38
|
+
</BfrsProvider>
|
|
37
39
|
);
|
|
38
40
|
}
|
|
39
41
|
```
|
|
40
42
|
|
|
43
|
+
The stylesheet is safe to import globally: it does not ship Tailwind preflight, page-level resets, global font-face declarations, unprefixed utilities, or generic keyframes. React surfaces should still render inside `BfrsProvider`; the provider owns `--bfrs-*` theme variables and passes the same scope to Radix portals.
|
|
44
|
+
|
|
41
45
|
Most DOM-backed components forward compatible React props such as `onClick`, `onKeyDown`, `aria-*`, `data-*`, `className`, `style`, and refs. Controlled components expose explicit callbacks such as `onValueChange`, `onOpenChange`, `onSort`, `onRowClick`, and `onPageChange`.
|
|
42
46
|
|
|
47
|
+
Library-owned Tailwind utilities are prefixed with `bfrs-`, for example `bfrs-flex`, `hover:bfrs-bg-primary`, and `bfrs-animate-shimmer`. Unprefixed classes passed through `className` are treated as host-app classes.
|
|
48
|
+
|
|
43
49
|
Size-aware controls support `sm`, `md`, and `lg`. `sm` is the compact dashboard size for dense controls and filters.
|
|
44
50
|
|
|
45
51
|
## Angular Usage
|
|
@@ -116,7 +122,7 @@ Registered tags include `bfrs-box`, `bfrs-container`, `bfrs-paper`, `bfrs-stack`
|
|
|
116
122
|
|
|
117
123
|
## Theme Overrides
|
|
118
124
|
|
|
119
|
-
The package exposes a framework-neutral theme helper for
|
|
125
|
+
The package exposes a framework-neutral theme helper for scoped token overrides. Use it from React, Angular, or plain TypeScript without importing the React component entry:
|
|
120
126
|
|
|
121
127
|
```ts
|
|
122
128
|
import { applyAgenticTheme } from "@bfrs/agentic-components/theme";
|
|
@@ -138,16 +144,18 @@ applyAgenticTheme({
|
|
|
138
144
|
});
|
|
139
145
|
```
|
|
140
146
|
|
|
141
|
-
The helper accepts hex, rgb, hsl, or raw HSL channel values for semantic color tokens. Plain CSS variable overrides also work:
|
|
147
|
+
`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. Plain CSS variable overrides also work on a BFRS scope:
|
|
142
148
|
|
|
143
149
|
```css
|
|
144
|
-
|
|
145
|
-
--color-primary: 251 51% 52%;
|
|
146
|
-
--radius-control: 14px;
|
|
147
|
-
--shadow-card: 0 12px 32px rgb(91 69 194 / 0.16);
|
|
150
|
+
.bfrs {
|
|
151
|
+
--bfrs-color-primary: 251 51% 52%;
|
|
152
|
+
--bfrs-radius-control: 14px;
|
|
153
|
+
--bfrs-shadow-card: 0 12px 32px rgb(91 69 194 / 0.16);
|
|
148
154
|
}
|
|
149
155
|
```
|
|
150
156
|
|
|
157
|
+
`BfrsProvider` also accepts `theme` and `colorScheme="light" | "dark"` props. Inline `style` values override generated theme variables when both are provided.
|
|
158
|
+
|
|
151
159
|
### Validated Forms
|
|
152
160
|
|
|
153
161
|
Keep form validation and API checks in the app. Render field errors below inputs, then show success or failure through the toast API.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type KpiCardAccent = "primary" | "success" | "warning" | "danger" | "info" | "none";
|
|
3
|
+
export type KpiCardProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
accent?: KpiCardAccent;
|
|
7
|
+
labelClassName?: string;
|
|
8
|
+
valueClassName?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const KpiCard: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
11
|
+
label: ReactNode;
|
|
12
|
+
value: ReactNode;
|
|
13
|
+
accent?: KpiCardAccent;
|
|
14
|
+
labelClassName?: string;
|
|
15
|
+
valueClassName?: string;
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './KpiCard';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
|
-
tone?: "
|
|
4
|
+
tone?: "success" | "warning" | "danger" | "info" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export type AlertProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants> & {
|
|
7
7
|
title?: ReactNode;
|
|
@@ -9,7 +9,7 @@ export type AlertProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof al
|
|
|
9
9
|
icon?: ReactNode;
|
|
10
10
|
};
|
|
11
11
|
export declare const Alert: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
12
|
-
tone?: "
|
|
12
|
+
tone?: "success" | "warning" | "danger" | "info" | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
14
14
|
title?: ReactNode;
|
|
15
15
|
action?: ReactNode;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ProgressBarTone = "primary" | "success" | "warning" | "danger" | "info";
|
|
3
|
+
export type ProgressBarSize = "sm" | "md" | "lg";
|
|
4
|
+
export type ProgressBarProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
5
|
+
value?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
tone?: ProgressBarTone;
|
|
9
|
+
size?: ProgressBarSize;
|
|
10
|
+
label?: ReactNode;
|
|
11
|
+
showValue?: boolean;
|
|
12
|
+
formatValue?: (percent: number, value: number, max: number) => ReactNode;
|
|
13
|
+
trackClassName?: string;
|
|
14
|
+
barClassName?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const ProgressBar: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
17
|
+
value?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
indeterminate?: boolean;
|
|
20
|
+
tone?: ProgressBarTone;
|
|
21
|
+
size?: ProgressBarSize;
|
|
22
|
+
label?: ReactNode;
|
|
23
|
+
showValue?: boolean;
|
|
24
|
+
formatValue?: (percent: number, value: number, max: number) => ReactNode;
|
|
25
|
+
trackClassName?: string;
|
|
26
|
+
barClassName?: string;
|
|
27
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProgressBar';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const skeletonVariants: (props?: ({
|
|
4
|
-
variant?: "text" | "
|
|
4
|
+
variant?: "text" | "card" | "block" | "avatar" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export type SkeletonProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof skeletonVariants> & {
|
|
7
7
|
animated?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare const Skeleton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
10
|
-
variant?: "text" | "
|
|
10
|
+
variant?: "text" | "card" | "block" | "avatar" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
12
12
|
animated?: boolean;
|
|
13
13
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -13,7 +13,7 @@ export type ColorPickerProps = Omit<InputHTMLAttributes<HTMLInputElement>, "defa
|
|
|
13
13
|
inputClassName?: string;
|
|
14
14
|
swatchClassName?: string;
|
|
15
15
|
};
|
|
16
|
-
export declare const ColorPicker: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
16
|
+
export declare const ColorPicker: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "type"> & {
|
|
17
17
|
value: string;
|
|
18
18
|
onValueChange: (value: string) => void;
|
|
19
19
|
label?: ReactNode;
|
|
@@ -17,7 +17,7 @@ export type SliderProps = Omit<InputHTMLAttributes<HTMLInputElement>, "defaultVa
|
|
|
17
17
|
valueClassName?: string;
|
|
18
18
|
inputClassName?: string;
|
|
19
19
|
};
|
|
20
|
-
export declare const Slider: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
20
|
+
export declare const Slider: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "type" | "step" | "max" | "min"> & {
|
|
21
21
|
value: number;
|
|
22
22
|
onValueChange: (value: number) => void;
|
|
23
23
|
min?: number;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { BfrsProvider } from './providers/BfrsProvider';
|
|
2
|
+
export type { BfrsColorScheme, BfrsProviderProps } from './providers/BfrsProvider';
|
|
1
3
|
export * from './primitives/Box';
|
|
2
4
|
export * from './primitives/Container';
|
|
3
5
|
export * from './primitives/Paper';
|
|
@@ -25,6 +27,7 @@ export * from './feedback/Badge';
|
|
|
25
27
|
export * from './feedback/Alert';
|
|
26
28
|
export * from './feedback/Skeleton';
|
|
27
29
|
export * from './feedback/Spinner';
|
|
30
|
+
export * from './feedback/ProgressBar';
|
|
28
31
|
export * from './feedback/EmptyState';
|
|
29
32
|
export * from '../feedback/ErrorState';
|
|
30
33
|
export * from '../feedback/LoadingState';
|
|
@@ -39,6 +42,7 @@ export * from '../overlays/ConfirmDialog';
|
|
|
39
42
|
export * from './data-display/Avatar';
|
|
40
43
|
export * from '../data-display/MetricCard';
|
|
41
44
|
export * from '../data-display/DataTable';
|
|
45
|
+
export * from './data-display/KpiCard';
|
|
42
46
|
export * from './navigation/Tabs';
|
|
43
47
|
export * from './navigation/Breadcrumbs';
|
|
44
48
|
export * from '../navigation/ActionMenu';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const paperVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
5
|
-
padding?: "
|
|
4
|
+
variant?: "default" | "elevated" | "muted" | "outlined" | "glass" | null | undefined;
|
|
5
|
+
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type PaperProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof paperVariants>;
|
|
8
8
|
export declare const Paper: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
9
|
-
variant?: "default" | "
|
|
10
|
-
padding?: "
|
|
9
|
+
variant?: "default" | "elevated" | "muted" | "outlined" | "glass" | null | undefined;
|
|
10
|
+
padding?: "sm" | "md" | "lg" | "none" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ElementType, HTMLAttributes } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const textVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
tone?: "
|
|
4
|
+
variant?: "caption" | "display" | "body" | "title" | "h1" | "h2" | "h3" | "label" | "body-sm" | null | undefined;
|
|
5
|
+
tone?: "accent" | "primary" | "success" | "danger" | "disabled" | "muted" | "secondary" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type TextProps = HTMLAttributes<HTMLElement> & VariantProps<typeof textVariants> & {
|
|
8
8
|
as?: ElementType;
|
|
9
9
|
};
|
|
10
10
|
export declare const Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
11
|
-
variant?: "
|
|
12
|
-
tone?: "
|
|
11
|
+
variant?: "caption" | "display" | "body" | "title" | "h1" | "h2" | "h3" | "label" | "body-sm" | null | undefined;
|
|
12
|
+
tone?: "accent" | "primary" | "success" | "danger" | "disabled" | "muted" | "secondary" | null | undefined;
|
|
13
13
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
14
14
|
as?: ElementType;
|
|
15
15
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { AgenticThemeOverrides } from '../../../../theme';
|
|
3
|
+
export type BfrsColorScheme = "light" | "dark";
|
|
4
|
+
export type BfrsProviderProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
theme?: AgenticThemeOverrides;
|
|
6
|
+
colorScheme?: BfrsColorScheme;
|
|
7
|
+
};
|
|
8
|
+
export declare const BfrsProvider: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
theme?: AgenticThemeOverrides;
|
|
10
|
+
colorScheme?: BfrsColorScheme;
|
|
11
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare function BfrsStyleScope({ children, root, colorScheme }: {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
root: HTMLElement | null;
|
|
15
|
+
colorScheme?: BfrsColorScheme;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function BfrsPortalScope({ children }: {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ColorSwatchValue } from './components/ui/forms/ColorSwatchGroup';
|
|
2
|
+
import { BfrsColorScheme } from './components/ui/providers/BfrsProvider';
|
|
2
3
|
type UnknownProps = Record<string, unknown>;
|
|
3
4
|
type CheckedValue = boolean | "indeterminate";
|
|
4
5
|
export type BfrsCustomElementRegistryOptions = {
|
|
@@ -22,6 +23,7 @@ declare abstract class ReactCustomElement extends HTMLElement {
|
|
|
22
23
|
protected update(): void;
|
|
23
24
|
protected textAttribute(name: string, fallback?: string): string | undefined;
|
|
24
25
|
protected classNameAttribute(): string | undefined;
|
|
26
|
+
protected colorSchemeAttribute(): BfrsColorScheme;
|
|
25
27
|
protected slottedText(fallback?: string): string | undefined;
|
|
26
28
|
protected htmlContent(fallback?: string): unknown;
|
|
27
29
|
protected booleanAttribute(name: string, fallback?: boolean): boolean;
|
|
@@ -258,6 +260,18 @@ export declare class BfrsSpinnerElement extends ReactCustomElement {
|
|
|
258
260
|
static get observedAttributes(): string[];
|
|
259
261
|
protected renderElement(): unknown;
|
|
260
262
|
}
|
|
263
|
+
export declare class BfrsProgressBarElement extends ReactCustomElement {
|
|
264
|
+
static readonly tagName = "progress-bar";
|
|
265
|
+
static get observedAttributes(): string[];
|
|
266
|
+
protected defaultDisplay(): string;
|
|
267
|
+
protected renderElement(): unknown;
|
|
268
|
+
}
|
|
269
|
+
export declare class BfrsKpiCardElement extends ReactCustomElement {
|
|
270
|
+
static readonly tagName = "kpi-card";
|
|
271
|
+
static get observedAttributes(): string[];
|
|
272
|
+
protected defaultDisplay(): string;
|
|
273
|
+
protected renderElement(): unknown;
|
|
274
|
+
}
|
|
261
275
|
export declare class BfrsEmptyStateElement extends ReactCustomElement {
|
|
262
276
|
static readonly tagName = "empty-state";
|
|
263
277
|
static get observedAttributes(): string[];
|
|
@@ -519,6 +533,7 @@ declare global {
|
|
|
519
533
|
"bfrs-icon-button": BfrsIconButtonElement;
|
|
520
534
|
"bfrs-inline-error": BfrsInlineErrorElement;
|
|
521
535
|
"bfrs-input": BfrsInputElement;
|
|
536
|
+
"bfrs-kpi-card": BfrsKpiCardElement;
|
|
522
537
|
"bfrs-label": BfrsLabelElement;
|
|
523
538
|
"bfrs-layout-shell": BfrsLayoutShellElement;
|
|
524
539
|
"bfrs-loading-state": BfrsLoadingStateElement;
|
|
@@ -527,6 +542,7 @@ declare global {
|
|
|
527
542
|
"bfrs-page-header": BfrsPageHeaderElement;
|
|
528
543
|
"bfrs-paper": BfrsPaperElement;
|
|
529
544
|
"bfrs-popover": BfrsPopoverElement;
|
|
545
|
+
"bfrs-progress-bar": BfrsProgressBarElement;
|
|
530
546
|
"bfrs-radio": BfrsRadioElement;
|
|
531
547
|
"bfrs-reveal-and-copy": BfrsRevealAndCopyElement;
|
|
532
548
|
"bfrs-searchable-select": BfrsSearchableSelectElement;
|