@bfrs/agentic-components 0.6.1 → 0.6.3
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 +34 -1
- package/dist/components/feedback/EmptyState/EmptyState.d.ts +2 -1
- package/dist/components/filters/DateRangePicker/DateRangePicker.d.ts +1 -4
- package/dist/components/filters/DateRangePicker/DateRangePicker.types.d.ts +2 -0
- package/dist/components/filters/FilterBar/FilterBar.d.ts +3 -0
- package/dist/components/filters/FilterBar/FilterBar.types.d.ts +10 -0
- package/dist/components/layout/ListPageLayout/ListPageLayout.d.ts +2 -0
- package/dist/components/layout/ListPageLayout/ListPageLayout.types.d.ts +31 -0
- package/dist/components/layout/ListPageLayout/index.d.ts +2 -0
- package/dist/components/primitives/Badge/Badge.d.ts +2 -2
- package/dist/components/primitives/Button/Button.d.ts +3 -3
- package/dist/components/primitives/Card/Card.d.ts +3 -2
- package/dist/components/primitives/Chip/Chip.d.ts +5 -3
- package/dist/components/primitives/Input/Input.d.ts +2 -1
- package/dist/components/ui/feedback/Alert/Alert.d.ts +8 -11
- package/dist/components/ui/feedback/Skeleton/Skeleton.d.ts +5 -9
- package/dist/components/ui/forms/Slider/Slider.d.ts +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/primitives/Container/Container.d.ts +7 -9
- package/dist/components/ui/primitives/Icon/Icon.d.ts +4 -2
- package/dist/components/ui/primitives/Paper/Paper.d.ts +10 -11
- package/dist/components/ui/primitives/Text/Text.d.ts +11 -13
- package/dist/custom-elements.d.ts +7 -0
- package/dist/custom-elements.js +26714 -16983
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +17905 -9369
- package/dist/index.js.map +1 -1
- package/dist/lib/emotionCache.d.ts +14 -0
- package/dist/lib/emotionTw.d.ts +13 -0
- package/dist/style.css +1 -1
- package/package.json +14 -3
|
@@ -1998,6 +1998,38 @@ Default chrome matches the Shiprocket 4.0 page row: 52px minimum height, `#FBFCF
|
|
|
1998
1998
|
|
|
1999
1999
|
---
|
|
2000
2000
|
|
|
2001
|
+
#### `ListPageLayout`
|
|
2002
|
+
|
|
2003
|
+
Full list-page scaffold for consumer apps: title row, KPI cards, tabs, banner, filter row, and data table stacked with the standard Shiprocket 4.0 list-page spacing (Figma node `1680-36874`). Pass each section as a slot — the layout only owns spacing, band chrome, and title typography (20px semibold `h1`, one `#FFFFFF` page sheet with inner strips transparent, a soft `#F6F9F6` hairline under the filter row — the header has none, tab-strip border stays `#E5EBEA`, 20px page gutter). Bands render only when their slot is provided; KPI cards stretch to share the band's full width equally; `table` gets the remaining height so `DataTable` can own its scroll area.
|
|
2004
|
+
|
|
2005
|
+
```tsx
|
|
2006
|
+
<ListPageLayout
|
|
2007
|
+
title="Orders"
|
|
2008
|
+
actions={<Button size="sm">Add Order</Button>}
|
|
2009
|
+
kpis={<><KpiCard label="Total Orders" value="1,284" /><KpiCard label="RTO %" value="4.2%" /></>}
|
|
2010
|
+
tabs={<Tabs items={tabItems} value={tab} onValueChange={setTab} />}
|
|
2011
|
+
banner={<Alert tone="info" title="Diwali surge">Carrier pickups may be delayed.</Alert>}
|
|
2012
|
+
filters={<><DateRangePicker size="xs" value={range} onChange={setRange} /><Select size="sm" options={statusOptions} value={status} onValueChange={setStatus} /></>}
|
|
2013
|
+
table={<DataTable data={orders} columns={columns} />}
|
|
2014
|
+
/>
|
|
2015
|
+
```
|
|
2016
|
+
|
|
2017
|
+
| Prop | Type | Default |
|
|
2018
|
+
|------|------|---------|
|
|
2019
|
+
| `title` | `ReactNode` | **required** |
|
|
2020
|
+
| `actions` | `ReactNode` | — |
|
|
2021
|
+
| `kpis` | `ReactNode` | — |
|
|
2022
|
+
| `bannerAboveTabs` | `ReactNode` | — |
|
|
2023
|
+
| `tabs` | `ReactNode` | — |
|
|
2024
|
+
| `banner` | `ReactNode` | — |
|
|
2025
|
+
| `filters` | `ReactNode` | — |
|
|
2026
|
+
| `bannerBelowFilters` | `ReactNode` | — |
|
|
2027
|
+
| `table` | `ReactNode` | — |
|
|
2028
|
+
|
|
2029
|
+
Three banner slots (`bannerAboveTabs` above the tabs, `banner` under the tabs, `bannerBelowFilters` under the filter band's divider) are independent and may be combined. Per-slot class overrides: `headerClassName`, `titleClassName`, `actionsClassName`, `kpisClassName`, `bannerAboveTabsClassName`, `bannerClassName`, `bannerBelowFiltersClassName`, `tabsClassName`, `filtersClassName`, `tableClassName`. Custom element: `<bfrs-list-page-layout title="Orders">` with `slot="actions" | "kpis" | "banner-above-tabs" | "tabs" | "banner" | "filters" | "banner-below-filters" | "table"` (unnamed children land in the table region).
|
|
2030
|
+
|
|
2031
|
+
---
|
|
2032
|
+
|
|
2001
2033
|
#### `LayoutShell`
|
|
2002
2034
|
|
|
2003
2035
|
Full-page app shell with sticky header and collapsible sidebar.
|
|
@@ -2091,7 +2123,8 @@ Expanded default width is 216px. Rows are 32px high with 8px radius, 12px labels
|
|
|
2091
2123
|
|
|
2092
2124
|
- `SideNavSection`: `{ id?, title?, items, action? }` — `title` (uppercase) and `action` are hidden when collapsed.
|
|
2093
2125
|
- `SideNavItem`: `{ id, label, icon?, active?, badge?, nested?, onSelect? }` — `badge` is hidden when collapsed; `nested` opens a hover flyout (expanded only).
|
|
2094
|
-
- When `collapsed`, each row hides its `label` and surfaces it as a right-side `Tooltip` on hover, so items stay identifiable by icon alone.
|
|
2126
|
+
- 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.
|
|
2127
|
+
- The active row carries `data-active` and is themed by `--bfrs-sidenav-row-active-bg` (default `#F6F9F6`) and `--bfrs-sidenav-row-active-hover-bg` (default `#E5EBEA`); set either on a wrapper to retint active rows without targeting internals.
|
|
2095
2128
|
|
|
2096
2129
|
---
|
|
2097
2130
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EmptyStateVariant } from './EmptyState.types';
|
|
1
2
|
export declare const EmptyState: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
2
3
|
icon?: import('react').ReactNode;
|
|
3
4
|
illustration?: import('react').ReactNode;
|
|
@@ -6,5 +7,5 @@ export declare const EmptyState: import('react').ForwardRefExoticComponent<Omit<
|
|
|
6
7
|
primaryAction?: import('react').ReactNode;
|
|
7
8
|
secondaryAction?: import('react').ReactNode;
|
|
8
9
|
action?: import('react').ReactNode;
|
|
9
|
-
variant?:
|
|
10
|
+
variant?: EmptyStateVariant;
|
|
10
11
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { DateRangePickerProps } from './DateRangePicker.types';
|
|
2
|
-
export declare function DateRangePicker({ className, value, defaultValue, onChange, presets, placeholder, label, helperText, size, disabled, clearable, minDate, maxDate, maxRangeDays, months, align, side, open: controlledOpen, defaultOpen, onOpenChange, infoText, customPresetLabel, applyLabel, cancelLabel, clearLabel, formatDate, formatRange, triggerClassName, contentClassName, calendarClassName, restrictToLast3Months, singleDateMode, allowedFutureDate, showLastOneYearOnly, ...props }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare namespace DateRangePicker {
|
|
4
|
-
var displayName: string;
|
|
5
|
-
}
|
|
2
|
+
export declare function DateRangePicker({ className, value, defaultValue, onChange, presets, placeholder, label, helperText, size, disabled, clearable, minDate, maxDate, maxRangeDays, months, align, side, open: controlledOpen, defaultOpen, onOpenChange, infoText, customPresetLabel, applyLabel, cancelLabel, clearLabel, formatDate, formatRange, triggerClassName, contentClassName, calendarClassName, rangeLimitClassName, restrictToLast3Months, singleDateMode, allowedFutureDate, showLastOneYearOnly, ...props }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -45,6 +45,8 @@ export type DateRangePickerProps = Omit<ComponentPropsWithoutRef<"div">, "defaul
|
|
|
45
45
|
triggerClassName?: string;
|
|
46
46
|
contentClassName?: string;
|
|
47
47
|
calendarClassName?: string;
|
|
48
|
+
/** Class override for the max-range note inside the preset column. */
|
|
49
|
+
rangeLimitClassName?: string;
|
|
48
50
|
/** When true, constrain the calendar to the last 90 days only (hides year picker). */
|
|
49
51
|
restrictToLast3Months?: boolean;
|
|
50
52
|
/** When true, clicking a date sets both start and end to the same day (single date selection). */
|
|
@@ -12,4 +12,7 @@ export declare const FilterBar: import('react').ForwardRefExoticComponent<import
|
|
|
12
12
|
primaryAction?: import('react').ReactNode;
|
|
13
13
|
secondaryActions?: import('react').ReactNode;
|
|
14
14
|
sticky?: boolean;
|
|
15
|
+
rowClassName?: string;
|
|
16
|
+
chipsRowClassName?: string;
|
|
17
|
+
spacer?: boolean;
|
|
15
18
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -18,4 +18,14 @@ export type FilterBarProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
18
18
|
primaryAction?: ReactNode;
|
|
19
19
|
secondaryActions?: ReactNode;
|
|
20
20
|
sticky?: boolean;
|
|
21
|
+
/** Class override for the controls row (search, filters, actions). */
|
|
22
|
+
rowClassName?: string;
|
|
23
|
+
/** Class override for the applied-chips strip below the controls row. */
|
|
24
|
+
chipsRowClassName?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The flex spacer between the filters and primaryAction. Set false when
|
|
27
|
+
* secondaryActions manages the whole row's width itself (e.g. a full-width
|
|
28
|
+
* toolbar with its own right-aligned cluster).
|
|
29
|
+
*/
|
|
30
|
+
spacer?: boolean;
|
|
21
31
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface ListPageLayoutProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
+
/** Page title rendered in the header band (20px semibold, single line). */
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
/** Right-aligned header actions (e.g. primary Button + secondary Button). */
|
|
6
|
+
actions?: ReactNode;
|
|
7
|
+
/** KPI cards row (e.g. KpiCard components); laid out as a wrapping flex row. */
|
|
8
|
+
kpis?: ReactNode;
|
|
9
|
+
/** Full-width announcement slot between the KPIs and the tabs. */
|
|
10
|
+
bannerAboveTabs?: ReactNode;
|
|
11
|
+
/** Tabs slot (e.g. Tabs); rendered inside the page gutter with no extra chrome. */
|
|
12
|
+
tabs?: ReactNode;
|
|
13
|
+
/** Full-width announcement slot under the tabs (e.g. Alert, Tip, InfoCard). */
|
|
14
|
+
banner?: ReactNode;
|
|
15
|
+
/** Filter controls row (e.g. FilterBar, Select, DateRangePicker); wrapping flex row. */
|
|
16
|
+
filters?: ReactNode;
|
|
17
|
+
/** Full-width announcement slot under the filter band's divider. */
|
|
18
|
+
bannerBelowFilters?: ReactNode;
|
|
19
|
+
/** Table region (e.g. DataTable); receives the remaining vertical space. */
|
|
20
|
+
table?: ReactNode;
|
|
21
|
+
headerClassName?: string;
|
|
22
|
+
titleClassName?: string;
|
|
23
|
+
actionsClassName?: string;
|
|
24
|
+
kpisClassName?: string;
|
|
25
|
+
bannerAboveTabsClassName?: string;
|
|
26
|
+
bannerClassName?: string;
|
|
27
|
+
bannerBelowFiltersClassName?: string;
|
|
28
|
+
tabsClassName?: string;
|
|
29
|
+
filtersClassName?: string;
|
|
30
|
+
tableClassName?: string;
|
|
31
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BadgeTone } from './Badge.types';
|
|
1
|
+
import { BadgeSize, BadgeTone } from './Badge.types';
|
|
2
2
|
export declare const Badge: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
3
3
|
variant?: import('./Badge.types').BadgeVariant;
|
|
4
4
|
tone?: BadgeTone;
|
|
5
|
-
size?:
|
|
5
|
+
size?: BadgeSize;
|
|
6
6
|
dot?: boolean;
|
|
7
7
|
count?: number;
|
|
8
8
|
maxCount?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ButtonProps } from './Button.types';
|
|
1
|
+
import { ButtonProps, ButtonSize, ButtonVariant } from './Button.types';
|
|
2
2
|
export declare const Button: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3
|
-
variant?:
|
|
4
|
-
size?:
|
|
3
|
+
variant?: ButtonVariant;
|
|
4
|
+
size?: ButtonSize;
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
loadingLabel?: string;
|
|
7
7
|
leftIcon?: import('react').ReactNode;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { CardPadding, CardVariant } from './Card.types';
|
|
2
3
|
export declare const Card: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
variant?:
|
|
4
|
-
padding?:
|
|
4
|
+
variant?: CardVariant;
|
|
5
|
+
padding?: CardPadding;
|
|
5
6
|
interactive?: boolean;
|
|
6
7
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
8
|
export declare const CardHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { Tone } from '../../../tokens';
|
|
2
|
+
import { ChipSize, ChipVariant } from './Chip.types';
|
|
1
3
|
export declare const Chip: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
2
|
-
variant?:
|
|
3
|
-
tone?:
|
|
4
|
-
size?:
|
|
4
|
+
variant?: ChipVariant;
|
|
5
|
+
tone?: Tone;
|
|
6
|
+
size?: ChipSize;
|
|
5
7
|
leftIcon?: import('react').ReactNode;
|
|
6
8
|
rightIcon?: import('react').ReactNode;
|
|
7
9
|
selected?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { InputSize } from './Input.types';
|
|
1
2
|
export declare const Input: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & {
|
|
2
|
-
size?:
|
|
3
|
+
size?: InputSize;
|
|
3
4
|
label?: import('react').ReactNode;
|
|
4
5
|
helperText?: import('react').ReactNode;
|
|
5
6
|
errorMessage?: import('react').ReactNode;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
tone?: "success" | "warning" | "danger" | "info" | null | undefined;
|
|
5
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
2
|
+
export type AlertTone = "info" | "success" | "warning" | "danger";
|
|
3
|
+
export type AlertSize = "xs" | "sm" | "md" | "lg";
|
|
7
4
|
export type AlertTextPart = {
|
|
8
5
|
text: string;
|
|
9
6
|
bold?: boolean;
|
|
10
7
|
};
|
|
11
|
-
export type AlertProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> &
|
|
8
|
+
export type AlertProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
9
|
+
tone?: AlertTone | null;
|
|
10
|
+
size?: AlertSize | null;
|
|
12
11
|
title?: ReactNode;
|
|
13
12
|
message?: ReactNode;
|
|
14
13
|
description?: ReactNode;
|
|
@@ -17,10 +16,9 @@ export type AlertProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & Variant
|
|
|
17
16
|
action?: ReactNode;
|
|
18
17
|
icon?: ReactNode;
|
|
19
18
|
};
|
|
20
|
-
export declare const Alert: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> &
|
|
21
|
-
tone?:
|
|
22
|
-
size?:
|
|
23
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
19
|
+
export declare const Alert: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
20
|
+
tone?: AlertTone | null;
|
|
21
|
+
size?: AlertSize | null;
|
|
24
22
|
title?: ReactNode;
|
|
25
23
|
message?: ReactNode;
|
|
26
24
|
description?: ReactNode;
|
|
@@ -29,4 +27,3 @@ export declare const Alert: import('react').ForwardRefExoticComponent<Omit<HTMLA
|
|
|
29
27
|
action?: ReactNode;
|
|
30
28
|
icon?: ReactNode;
|
|
31
29
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
|
-
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
variant?:
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
export type SkeletonProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof skeletonVariants> & {
|
|
2
|
+
export type SkeletonVariant = "text" | "block" | "card" | "avatar";
|
|
3
|
+
export type SkeletonProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
variant?: SkeletonVariant | null;
|
|
7
5
|
animated?: boolean;
|
|
8
6
|
};
|
|
9
|
-
export declare const Skeleton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> &
|
|
10
|
-
variant?:
|
|
11
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
7
|
+
export declare const Skeleton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
8
|
+
variant?: SkeletonVariant | null;
|
|
12
9
|
animated?: boolean;
|
|
13
10
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export {};
|
|
@@ -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>, "size" | "value" | "defaultValue" | "onChange" | "
|
|
20
|
+
export declare const Slider: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue" | "onChange" | "max" | "min" | "type" | "step"> & {
|
|
21
21
|
value: number;
|
|
22
22
|
onValueChange: (value: number) => void;
|
|
23
23
|
min?: number;
|
|
@@ -60,6 +60,7 @@ export * from '../navigation/ActionMenu';
|
|
|
60
60
|
export * from './patterns/PageHeader';
|
|
61
61
|
export * from '../layout/SectionHeader';
|
|
62
62
|
export * from '../layout/FormSection';
|
|
63
|
+
export * from '../layout/ListPageLayout';
|
|
63
64
|
export * from '../filters/FilterBar';
|
|
64
65
|
export * from '../filters/FilterDrawer';
|
|
65
66
|
export * from '../filters/DateRangePicker';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
size?:
|
|
5
|
-
}
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export {};
|
|
2
|
+
export type ContainerSize = "sm" | "md" | "lg" | "full";
|
|
3
|
+
export type ContainerProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
size?: ContainerSize | null;
|
|
5
|
+
};
|
|
6
|
+
export declare const Container: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
7
|
+
size?: ContainerSize | null;
|
|
8
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { ComponentType } from 'react';
|
|
2
|
+
type IconWeight = "thin" | "light" | "regular" | "bold" | "fill" | "duotone";
|
|
2
3
|
export type PhosphorIconComponent = ComponentType<{
|
|
3
4
|
size?: number | string;
|
|
4
|
-
weight?:
|
|
5
|
+
weight?: IconWeight;
|
|
5
6
|
className?: string;
|
|
6
7
|
"aria-hidden"?: boolean | "true" | "false";
|
|
7
8
|
}>;
|
|
8
9
|
export type IconProps = {
|
|
9
10
|
icon: PhosphorIconComponent;
|
|
10
11
|
size?: "xs" | "sm" | "md" | "lg" | number;
|
|
11
|
-
weight?:
|
|
12
|
+
weight?: IconWeight;
|
|
12
13
|
className?: string;
|
|
13
14
|
decorative?: boolean;
|
|
14
15
|
};
|
|
15
16
|
export declare function Icon({ icon: IconComponent, size, weight, className, decorative }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const Paper: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> &
|
|
9
|
-
variant?:
|
|
10
|
-
padding?:
|
|
11
|
-
} & import('
|
|
12
|
-
export {};
|
|
2
|
+
export type PaperVariant = "default" | "muted" | "elevated" | "outlined" | "glass";
|
|
3
|
+
export type PaperPadding = "none" | "sm" | "md" | "lg";
|
|
4
|
+
export type PaperProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
variant?: PaperVariant | null;
|
|
6
|
+
padding?: PaperPadding | null;
|
|
7
|
+
};
|
|
8
|
+
export declare const Paper: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
variant?: PaperVariant | null;
|
|
10
|
+
padding?: PaperPadding | null;
|
|
11
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { ElementType, HTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
weight?: "normal" | "medium" | "bold" | "semibold" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
export type TextProps = HTMLAttributes<HTMLElement> & VariantProps<typeof textVariants> & {
|
|
2
|
+
export type TextVariant = "display" | "h1" | "h2" | "h3" | "title" | "body" | "body-sm" | "body-xs" | "caption" | "label";
|
|
3
|
+
export type TextTone = "primary" | "secondary" | "muted" | "disabled" | "danger" | "success" | "accent";
|
|
4
|
+
export type TextWeight = "normal" | "medium" | "semibold" | "bold";
|
|
5
|
+
export type TextProps = HTMLAttributes<HTMLElement> & {
|
|
9
6
|
as?: ElementType;
|
|
7
|
+
variant?: TextVariant | null;
|
|
8
|
+
tone?: TextTone | null;
|
|
9
|
+
weight?: TextWeight | null;
|
|
10
10
|
};
|
|
11
|
-
export declare const Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> &
|
|
12
|
-
variant?: "caption" | "display" | "body" | "title" | "h1" | "h2" | "h3" | "label" | "body-sm" | "body-xs" | null | undefined;
|
|
13
|
-
tone?: "accent" | "primary" | "success" | "danger" | "disabled" | "muted" | "secondary" | null | undefined;
|
|
14
|
-
weight?: "normal" | "medium" | "bold" | "semibold" | null | undefined;
|
|
15
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
11
|
+
export declare const Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
16
12
|
as?: ElementType;
|
|
13
|
+
variant?: TextVariant | null;
|
|
14
|
+
tone?: TextTone | null;
|
|
15
|
+
weight?: TextWeight | null;
|
|
17
16
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
18
|
-
export {};
|
|
@@ -724,6 +724,12 @@ export declare class BfrsPageHeaderElement extends ReactCustomElement {
|
|
|
724
724
|
protected defaultDisplay(): string;
|
|
725
725
|
protected renderElement(): unknown;
|
|
726
726
|
}
|
|
727
|
+
export declare class BfrsListPageLayoutElement extends ReactCustomElement {
|
|
728
|
+
static readonly tagName = "list-page-layout";
|
|
729
|
+
static get observedAttributes(): string[];
|
|
730
|
+
protected defaultDisplay(): string;
|
|
731
|
+
protected renderElement(): unknown;
|
|
732
|
+
}
|
|
727
733
|
export declare class BfrsSectionHeaderElement extends ReactCustomElement {
|
|
728
734
|
static readonly tagName = "section-header";
|
|
729
735
|
static get observedAttributes(): string[];
|
|
@@ -927,6 +933,7 @@ declare global {
|
|
|
927
933
|
"bfrs-kpi-card": BfrsKpiCardElement;
|
|
928
934
|
"bfrs-label": BfrsLabelElement;
|
|
929
935
|
"bfrs-layout-shell": BfrsLayoutShellElement;
|
|
936
|
+
"bfrs-list-page-layout": BfrsListPageLayoutElement;
|
|
930
937
|
"bfrs-loading-state": BfrsLoadingStateElement;
|
|
931
938
|
"bfrs-metric-card": BfrsMetricCardElement;
|
|
932
939
|
"bfrs-modal": BfrsModalElement;
|