@bfrs/agentic-components 0.1.0
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 +1236 -0
- package/README.md +132 -0
- package/dist/components/data-display/DataTable/DataTable.d.ts +2 -0
- package/dist/components/data-display/DataTable/DataTable.types.d.ts +153 -0
- package/dist/components/data-display/DataTable/TableBulkActions.d.ts +2 -0
- package/dist/components/data-display/DataTable/TableColumnVisibility.d.ts +2 -0
- package/dist/components/data-display/DataTable/TableEmptyState.d.ts +2 -0
- package/dist/components/data-display/DataTable/TableErrorState.d.ts +2 -0
- package/dist/components/data-display/DataTable/TablePagination.d.ts +2 -0
- package/dist/components/data-display/DataTable/TableRowActions.d.ts +2 -0
- package/dist/components/data-display/DataTable/TableSkeleton.d.ts +2 -0
- package/dist/components/data-display/DataTable/TableToolbar.d.ts +2 -0
- package/dist/components/data-display/DataTable/index.d.ts +10 -0
- package/dist/components/data-display/MetricCard/MetricCard.d.ts +14 -0
- package/dist/components/data-display/MetricCard/MetricCard.types.d.ts +15 -0
- package/dist/components/data-display/MetricCard/index.d.ts +2 -0
- package/dist/components/feedback/EmptyState/EmptyState.d.ts +10 -0
- package/dist/components/feedback/EmptyState/EmptyState.types.d.ts +12 -0
- package/dist/components/feedback/EmptyState/index.d.ts +2 -0
- package/dist/components/feedback/ErrorState/ErrorState.d.ts +8 -0
- package/dist/components/feedback/ErrorState/ErrorState.types.d.ts +10 -0
- package/dist/components/feedback/ErrorState/index.d.ts +2 -0
- package/dist/components/feedback/LoadingState/LoadingState.d.ts +6 -0
- package/dist/components/feedback/LoadingState/LoadingState.types.d.ts +8 -0
- package/dist/components/feedback/LoadingState/index.d.ts +2 -0
- package/dist/components/feedback/Toast/Toast.context.d.ts +3 -0
- package/dist/components/feedback/Toast/Toast.d.ts +3 -0
- package/dist/components/feedback/Toast/Toast.types.d.ts +48 -0
- package/dist/components/feedback/Toast/index.d.ts +3 -0
- package/dist/components/filters/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/filters/DateRangePicker/DateRangePicker.types.d.ts +48 -0
- package/dist/components/filters/DateRangePicker/DateRangePicker.utils.d.ts +35 -0
- package/dist/components/filters/DateRangePicker/index.d.ts +3 -0
- package/dist/components/filters/FilterBar/FilterBar.d.ts +15 -0
- package/dist/components/filters/FilterBar/FilterBar.types.d.ts +21 -0
- package/dist/components/filters/FilterBar/index.d.ts +2 -0
- package/dist/components/filters/FilterDrawer/FilterDrawer.d.ts +2 -0
- package/dist/components/filters/FilterDrawer/FilterDrawer.types.d.ts +17 -0
- package/dist/components/filters/FilterDrawer/index.d.ts +2 -0
- package/dist/components/layout/FormSection/FormSection.d.ts +14 -0
- package/dist/components/layout/FormSection/FormSection.types.d.ts +14 -0
- package/dist/components/layout/FormSection/index.d.ts +2 -0
- package/dist/components/layout/PageHeader/PageHeader.d.ts +13 -0
- package/dist/components/layout/PageHeader/PageHeader.types.d.ts +14 -0
- package/dist/components/layout/PageHeader/index.d.ts +2 -0
- package/dist/components/layout/SectionHeader/SectionHeader.d.ts +9 -0
- package/dist/components/layout/SectionHeader/SectionHeader.types.d.ts +10 -0
- package/dist/components/layout/SectionHeader/index.d.ts +2 -0
- package/dist/components/navigation/ActionMenu/ActionMenu.d.ts +2 -0
- package/dist/components/navigation/ActionMenu/ActionMenu.types.d.ts +22 -0
- package/dist/components/navigation/ActionMenu/index.d.ts +2 -0
- package/dist/components/navigation/Tabs/Tabs.d.ts +2 -0
- package/dist/components/navigation/Tabs/Tabs.types.d.ts +17 -0
- package/dist/components/navigation/Tabs/index.d.ts +2 -0
- package/dist/components/overlays/ConfirmDialog/ConfirmDialog.d.ts +2 -0
- package/dist/components/overlays/ConfirmDialog/ConfirmDialog.types.d.ts +19 -0
- package/dist/components/overlays/ConfirmDialog/index.d.ts +2 -0
- package/dist/components/overlays/Drawer/Drawer.d.ts +2 -0
- package/dist/components/overlays/Drawer/Drawer.types.d.ts +24 -0
- package/dist/components/overlays/Drawer/index.d.ts +2 -0
- package/dist/components/overlays/Modal/Modal.d.ts +2 -0
- package/dist/components/overlays/Modal/Modal.types.d.ts +22 -0
- package/dist/components/overlays/Modal/index.d.ts +2 -0
- package/dist/components/primitives/Badge/Badge.d.ts +9 -0
- package/dist/components/primitives/Badge/Badge.types.d.ts +13 -0
- package/dist/components/primitives/Badge/index.d.ts +2 -0
- package/dist/components/primitives/Button/Button.d.ts +15 -0
- package/dist/components/primitives/Button/Button.types.d.ts +17 -0
- package/dist/components/primitives/Button/index.d.ts +2 -0
- package/dist/components/primitives/Card/Card.d.ts +9 -0
- package/dist/components/primitives/Card/Card.types.d.ts +8 -0
- package/dist/components/primitives/Card/index.d.ts +2 -0
- package/dist/components/primitives/Chip/Chip.d.ts +10 -0
- package/dist/components/primitives/Chip/Chip.types.d.ts +14 -0
- package/dist/components/primitives/Chip/index.d.ts +2 -0
- package/dist/components/primitives/Input/Input.d.ts +16 -0
- package/dist/components/primitives/Input/Input.types.d.ts +18 -0
- package/dist/components/primitives/Input/index.d.ts +2 -0
- package/dist/components/ui/actions/Button/Button.d.ts +2 -0
- package/dist/components/ui/actions/Button/index.d.ts +1 -0
- package/dist/components/ui/actions/IconButton/IconButton.d.ts +2 -0
- package/dist/components/ui/actions/IconButton/index.d.ts +1 -0
- package/dist/components/ui/data-display/Avatar/Avatar.d.ts +15 -0
- package/dist/components/ui/data-display/Avatar/index.d.ts +1 -0
- package/dist/components/ui/data-display/Pagination/Pagination.d.ts +7 -0
- package/dist/components/ui/data-display/Pagination/index.d.ts +1 -0
- package/dist/components/ui/data-display/Table/Table.d.ts +28 -0
- package/dist/components/ui/data-display/Table/TableEmptyState.d.ts +2 -0
- package/dist/components/ui/data-display/Table/TableSkeleton.d.ts +5 -0
- package/dist/components/ui/data-display/Table/index.d.ts +3 -0
- package/dist/components/ui/feedback/Alert/Alert.d.ts +18 -0
- package/dist/components/ui/feedback/Alert/index.d.ts +1 -0
- package/dist/components/ui/feedback/Badge/Badge.d.ts +2 -0
- package/dist/components/ui/feedback/Badge/index.d.ts +1 -0
- package/dist/components/ui/feedback/Chip/Chip.d.ts +2 -0
- package/dist/components/ui/feedback/Chip/index.d.ts +1 -0
- package/dist/components/ui/feedback/EmptyState/EmptyState.d.ts +2 -0
- package/dist/components/ui/feedback/EmptyState/index.d.ts +1 -0
- package/dist/components/ui/feedback/Skeleton/Skeleton.d.ts +10 -0
- package/dist/components/ui/feedback/Skeleton/index.d.ts +1 -0
- package/dist/components/ui/feedback/Spinner/Spinner.d.ts +6 -0
- package/dist/components/ui/feedback/Spinner/index.d.ts +1 -0
- package/dist/components/ui/forms/Checkbox/Checkbox.d.ts +14 -0
- package/dist/components/ui/forms/Checkbox/index.d.ts +1 -0
- package/dist/components/ui/forms/FormField/FormField.d.ts +17 -0
- package/dist/components/ui/forms/FormField/index.d.ts +1 -0
- package/dist/components/ui/forms/Input/Input.d.ts +2 -0
- package/dist/components/ui/forms/Input/index.d.ts +1 -0
- package/dist/components/ui/forms/Label/Label.d.ts +9 -0
- package/dist/components/ui/forms/Label/index.d.ts +1 -0
- package/dist/components/ui/forms/Radio/Radio.d.ts +14 -0
- package/dist/components/ui/forms/Radio/index.d.ts +1 -0
- package/dist/components/ui/forms/SearchableSelect/SearchableSelect.d.ts +18 -0
- package/dist/components/ui/forms/SearchableSelect/index.d.ts +1 -0
- package/dist/components/ui/forms/Select/Select.d.ts +20 -0
- package/dist/components/ui/forms/Select/index.d.ts +1 -0
- package/dist/components/ui/forms/Switch/Switch.d.ts +7 -0
- package/dist/components/ui/forms/Switch/index.d.ts +1 -0
- package/dist/components/ui/forms/Textarea/Textarea.d.ts +9 -0
- package/dist/components/ui/forms/Textarea/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts +53 -0
- package/dist/components/ui/navigation/Breadcrumbs/Breadcrumbs.d.ts +11 -0
- package/dist/components/ui/navigation/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/ui/navigation/Tabs/Tabs.d.ts +2 -0
- package/dist/components/ui/navigation/Tabs/index.d.ts +1 -0
- package/dist/components/ui/overlays/Dialog/Dialog.d.ts +2 -0
- package/dist/components/ui/overlays/Dialog/index.d.ts +1 -0
- package/dist/components/ui/overlays/Drawer/Drawer.d.ts +2 -0
- package/dist/components/ui/overlays/Drawer/index.d.ts +1 -0
- package/dist/components/ui/overlays/Dropdown/Dropdown.d.ts +16 -0
- package/dist/components/ui/overlays/Dropdown/index.d.ts +1 -0
- package/dist/components/ui/overlays/Popover/Popover.d.ts +8 -0
- package/dist/components/ui/overlays/Popover/index.d.ts +1 -0
- package/dist/components/ui/overlays/Tooltip/Tooltip.d.ts +8 -0
- package/dist/components/ui/overlays/Tooltip/index.d.ts +1 -0
- package/dist/components/ui/patterns/BusinessInfoDisplayCard/BusinessInfoDisplayCard.d.ts +37 -0
- package/dist/components/ui/patterns/BusinessInfoDisplayCard/BusinessInfoDisplayCardSkeleton.d.ts +7 -0
- package/dist/components/ui/patterns/BusinessInfoDisplayCard/index.d.ts +2 -0
- package/dist/components/ui/patterns/ChatBubble/ChatBubble.d.ts +11 -0
- package/dist/components/ui/patterns/ChatBubble/index.d.ts +1 -0
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.d.ts +19 -0
- package/dist/components/ui/patterns/ChatComposer/index.d.ts +1 -0
- package/dist/components/ui/patterns/FullPageLoader/FullPageLoader.d.ts +17 -0
- package/dist/components/ui/patterns/FullPageLoader/FullPageLoaderSpinner.d.ts +4 -0
- package/dist/components/ui/patterns/FullPageLoader/index.d.ts +1 -0
- package/dist/components/ui/patterns/LayoutShell/LayoutShell.d.ts +8 -0
- package/dist/components/ui/patterns/LayoutShell/index.d.ts +1 -0
- package/dist/components/ui/patterns/PageHeader/PageHeader.d.ts +2 -0
- package/dist/components/ui/patterns/PageHeader/index.d.ts +1 -0
- package/dist/components/ui/patterns/StepProgressCard/StepProgressCard.d.ts +24 -0
- package/dist/components/ui/patterns/StepProgressCard/StepProgressCardSkeleton.d.ts +7 -0
- package/dist/components/ui/patterns/StepProgressCard/index.d.ts +2 -0
- package/dist/components/ui/primitives/Box/Box.d.ts +7 -0
- package/dist/components/ui/primitives/Box/index.d.ts +1 -0
- package/dist/components/ui/primitives/Container/Container.d.ts +10 -0
- package/dist/components/ui/primitives/Container/index.d.ts +1 -0
- package/dist/components/ui/primitives/Grid/Grid.d.ts +9 -0
- package/dist/components/ui/primitives/Grid/index.d.ts +1 -0
- package/dist/components/ui/primitives/Icon/Icon.d.ts +15 -0
- package/dist/components/ui/primitives/Icon/index.d.ts +1 -0
- package/dist/components/ui/primitives/Paper/Paper.d.ts +12 -0
- package/dist/components/ui/primitives/Paper/index.d.ts +1 -0
- package/dist/components/ui/primitives/Stack/Stack.d.ts +17 -0
- package/dist/components/ui/primitives/Stack/index.d.ts +1 -0
- package/dist/components/ui/primitives/Text/Text.d.ts +16 -0
- package/dist/components/ui/primitives/Text/index.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +12652 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/theme.types.d.ts +1 -0
- package/dist/theme/tokens.d.ts +11 -0
- package/dist/tokens/colors.d.ts +35 -0
- package/dist/tokens/index.d.ts +8 -0
- package/dist/tokens/motion.d.ts +7 -0
- package/dist/tokens/radius.d.ts +8 -0
- package/dist/tokens/shadows.d.ts +6 -0
- package/dist/tokens/sizes.d.ts +75 -0
- package/dist/tokens/spacing.d.ts +12 -0
- package/dist/tokens/typography.d.ts +12 -0
- package/dist/tokens/zIndex.d.ts +9 -0
- package/package.json +94 -0
- package/scripts/postinstall.cjs +76 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Checkbox';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
2
|
+
export type FormFieldProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
label?: ReactNode;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
helperText?: ReactNode;
|
|
6
|
+
errorText?: ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
children: ReactElement;
|
|
9
|
+
};
|
|
10
|
+
export declare const FormField: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
11
|
+
label?: ReactNode;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
helperText?: ReactNode;
|
|
14
|
+
errorText?: ReactNode;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
children: ReactElement;
|
|
17
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LabelHTMLAttributes } from 'react';
|
|
2
|
+
export type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
3
|
+
required?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const Label: import('react').ForwardRefExoticComponent<LabelHTMLAttributes<HTMLLabelElement> & {
|
|
7
|
+
required?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & import('react').RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Label';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
2
|
+
export type RadioOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type RadioProps = RadioGroupPrimitive.RadioGroupProps & {
|
|
8
|
+
options: RadioOption[];
|
|
9
|
+
error?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const Radio: import('react').ForwardRefExoticComponent<RadioGroupPrimitive.RadioGroupProps & {
|
|
12
|
+
options: RadioOption[];
|
|
13
|
+
error?: boolean;
|
|
14
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Radio';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SelectOption } from '../Select';
|
|
2
|
+
export type SearchableSelectProps = {
|
|
3
|
+
options: SelectOption[];
|
|
4
|
+
value?: string;
|
|
5
|
+
onValueChange?: (value: string | undefined) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
searchPlaceholder?: string;
|
|
8
|
+
emptyText?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
clearable?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
"aria-describedby"?: string;
|
|
16
|
+
"aria-invalid"?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const SearchableSelect: import('react').ForwardRefExoticComponent<SearchableSelectProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchableSelect';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type SelectOption = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type SelectProps = {
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
options: SelectOption[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
size?: "sm" | "md" | "lg";
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
error?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
"aria-describedby"?: string;
|
|
18
|
+
"aria-invalid"?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Select';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as RadixSwitch from "@radix-ui/react-switch";
|
|
2
|
+
export type SwitchProps = RadixSwitch.SwitchProps & {
|
|
3
|
+
label?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const Switch: import('react').ForwardRefExoticComponent<RadixSwitch.SwitchProps & {
|
|
6
|
+
label?: string;
|
|
7
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Switch';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
3
|
+
error?: boolean;
|
|
4
|
+
size?: "sm" | "md" | "lg";
|
|
5
|
+
};
|
|
6
|
+
export declare const Textarea: import('react').ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
7
|
+
error?: boolean;
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Textarea';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * from './primitives/Box';
|
|
2
|
+
export * from './primitives/Container';
|
|
3
|
+
export * from './primitives/Paper';
|
|
4
|
+
export * from './primitives/Stack';
|
|
5
|
+
export * from './primitives/Grid';
|
|
6
|
+
export * from './primitives/Text';
|
|
7
|
+
export * from './primitives/Icon';
|
|
8
|
+
export * from '../primitives/Card';
|
|
9
|
+
export * from './actions/Button';
|
|
10
|
+
export * from './actions/IconButton';
|
|
11
|
+
export * from './forms/Label';
|
|
12
|
+
export * from './forms/Input';
|
|
13
|
+
export * from './forms/Textarea';
|
|
14
|
+
export * from './forms/FormField';
|
|
15
|
+
export * from './forms/Select';
|
|
16
|
+
export * from './forms/SearchableSelect';
|
|
17
|
+
export * from './forms/Checkbox';
|
|
18
|
+
export * from './forms/Radio';
|
|
19
|
+
export * from './forms/Switch';
|
|
20
|
+
export * from './feedback/Chip';
|
|
21
|
+
export * from './feedback/Badge';
|
|
22
|
+
export * from './feedback/Alert';
|
|
23
|
+
export * from './feedback/Skeleton';
|
|
24
|
+
export * from './feedback/Spinner';
|
|
25
|
+
export * from './feedback/EmptyState';
|
|
26
|
+
export * from '../feedback/ErrorState';
|
|
27
|
+
export * from '../feedback/LoadingState';
|
|
28
|
+
export * from '../feedback/Toast';
|
|
29
|
+
export * from './overlays/Dialog';
|
|
30
|
+
export * from './overlays/Drawer';
|
|
31
|
+
export * from './overlays/Dropdown';
|
|
32
|
+
export * from './overlays/Tooltip';
|
|
33
|
+
export * from './overlays/Popover';
|
|
34
|
+
export * from '../overlays/Modal';
|
|
35
|
+
export * from '../overlays/ConfirmDialog';
|
|
36
|
+
export * from './data-display/Avatar';
|
|
37
|
+
export * from '../data-display/MetricCard';
|
|
38
|
+
export * from '../data-display/DataTable';
|
|
39
|
+
export * from './navigation/Tabs';
|
|
40
|
+
export * from './navigation/Breadcrumbs';
|
|
41
|
+
export * from '../navigation/ActionMenu';
|
|
42
|
+
export * from './patterns/PageHeader';
|
|
43
|
+
export * from '../layout/SectionHeader';
|
|
44
|
+
export * from '../layout/FormSection';
|
|
45
|
+
export * from '../filters/FilterBar';
|
|
46
|
+
export * from '../filters/FilterDrawer';
|
|
47
|
+
export * from '../filters/DateRangePicker';
|
|
48
|
+
export * from './patterns/LayoutShell';
|
|
49
|
+
export * from './patterns/ChatBubble';
|
|
50
|
+
export * from './patterns/ChatComposer';
|
|
51
|
+
export * from './patterns/FullPageLoader';
|
|
52
|
+
export * from './patterns/BusinessInfoDisplayCard';
|
|
53
|
+
export * from './patterns/StepProgressCard';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type BreadcrumbItem = {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
href?: string;
|
|
5
|
+
onClick?: AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
|
6
|
+
};
|
|
7
|
+
export type BreadcrumbsProps = {
|
|
8
|
+
items: BreadcrumbItem[];
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function Breadcrumbs({ items, className }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Breadcrumbs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tabs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dialog';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Drawer';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type DropdownItem = {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
onSelect?: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
destructive?: boolean;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type DropdownProps = {
|
|
10
|
+
trigger: ReactNode;
|
|
11
|
+
items: DropdownItem[];
|
|
12
|
+
align?: "start" | "center" | "end";
|
|
13
|
+
size?: "sm" | "md" | "lg";
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function Dropdown({ trigger, items, align, size, className }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dropdown';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type PopoverProps = {
|
|
3
|
+
trigger: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
align?: "start" | "center" | "end";
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function Popover({ trigger, children, align, className }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Popover';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type TooltipProps = {
|
|
3
|
+
content: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
6
|
+
delayDuration?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function Tooltip({ content, children, side, delayDuration }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Tooltip';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type BusinessInfoChip = {
|
|
3
|
+
label: ReactNode;
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export type BusinessInfoItem = {
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
value: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export type BusinessInfoSection = {
|
|
11
|
+
title: ReactNode;
|
|
12
|
+
items: BusinessInfoItem[];
|
|
13
|
+
};
|
|
14
|
+
export type BusinessInfoDisplayCardProps = HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
businessName: ReactNode;
|
|
16
|
+
initials?: string;
|
|
17
|
+
logoSrc?: string;
|
|
18
|
+
logoAlt?: string;
|
|
19
|
+
chips?: BusinessInfoChip[];
|
|
20
|
+
sections: BusinessInfoSection[];
|
|
21
|
+
background?: string;
|
|
22
|
+
gradient?: string;
|
|
23
|
+
headerBackground?: string;
|
|
24
|
+
headerGradient?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const BusinessInfoDisplayCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
27
|
+
businessName: ReactNode;
|
|
28
|
+
initials?: string;
|
|
29
|
+
logoSrc?: string;
|
|
30
|
+
logoAlt?: string;
|
|
31
|
+
chips?: BusinessInfoChip[];
|
|
32
|
+
sections: BusinessInfoSection[];
|
|
33
|
+
background?: string;
|
|
34
|
+
gradient?: string;
|
|
35
|
+
headerBackground?: string;
|
|
36
|
+
headerGradient?: string;
|
|
37
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/components/ui/patterns/BusinessInfoDisplayCard/BusinessInfoDisplayCardSkeleton.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type BusinessInfoDisplayCardSkeletonProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
rows?: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const BusinessInfoDisplayCardSkeleton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
rows?: number;
|
|
7
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type ChatBubbleProps = {
|
|
3
|
+
sender: "user" | "assistant" | "system";
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
timestamp?: ReactNode;
|
|
6
|
+
status?: ReactNode;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
errorAction?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function ChatBubble({ sender, children, timestamp, status, loading, errorAction, className }: ChatBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChatBubble';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export type ChatComposerProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onSubmit"> & {
|
|
3
|
+
value: string;
|
|
4
|
+
onValueChange: (value: string) => void;
|
|
5
|
+
onSubmit?: () => void;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
attachmentSlot?: ReactNode;
|
|
9
|
+
actionSlot?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const ChatComposer: import('react').ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "onSubmit"> & {
|
|
12
|
+
value: string;
|
|
13
|
+
onValueChange: (value: string) => void;
|
|
14
|
+
onSubmit?: () => void;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
attachmentSlot?: ReactNode;
|
|
18
|
+
actionSlot?: ReactNode;
|
|
19
|
+
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChatComposer';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type FullPageLoaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
titlePrefix?: ReactNode;
|
|
4
|
+
titleHighlight?: ReactNode;
|
|
5
|
+
titleSuffix?: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
fullScreen?: boolean;
|
|
8
|
+
statusLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FullPageLoader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
11
|
+
titlePrefix?: ReactNode;
|
|
12
|
+
titleHighlight?: ReactNode;
|
|
13
|
+
titleSuffix?: ReactNode;
|
|
14
|
+
description?: ReactNode;
|
|
15
|
+
fullScreen?: boolean;
|
|
16
|
+
statusLabel?: string;
|
|
17
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FullPageLoader';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type LayoutShellProps = {
|
|
3
|
+
header?: ReactNode;
|
|
4
|
+
sidebar?: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function LayoutShell({ header, sidebar, children, className }: LayoutShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LayoutShell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageHeader';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type StepProgressState = "done" | "active" | "pending" | "disabled";
|
|
3
|
+
export type StepProgressStep = {
|
|
4
|
+
id?: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
status?: StepProgressState;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type StepProgressCardProps = HTMLAttributes<HTMLElement> & {
|
|
10
|
+
eyebrow?: ReactNode;
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
steps: StepProgressStep[];
|
|
13
|
+
currentStep?: number;
|
|
14
|
+
surface?: "card" | "plain";
|
|
15
|
+
animated?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const StepProgressCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
18
|
+
eyebrow?: ReactNode;
|
|
19
|
+
title?: ReactNode;
|
|
20
|
+
steps: StepProgressStep[];
|
|
21
|
+
currentStep?: number;
|
|
22
|
+
surface?: "card" | "plain";
|
|
23
|
+
animated?: boolean;
|
|
24
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type StepProgressCardSkeletonProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
steps?: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const StepProgressCardSkeleton: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
steps?: number;
|
|
7
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
export type BoxProps = HTMLAttributes<HTMLElement> & {
|
|
3
|
+
as?: ElementType;
|
|
4
|
+
};
|
|
5
|
+
export declare const Box: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
6
|
+
as?: ElementType;
|
|
7
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Box';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const containerVariants: (props?: ({
|
|
4
|
+
size?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export type ContainerProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof containerVariants>;
|
|
7
|
+
export declare const Container: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
8
|
+
size?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Container';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type GridProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
columns?: 1 | 2 | 3 | 4;
|
|
4
|
+
gap?: "sm" | "md" | "lg";
|
|
5
|
+
};
|
|
6
|
+
export declare const Grid: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
7
|
+
columns?: 1 | 2 | 3 | 4;
|
|
8
|
+
gap?: "sm" | "md" | "lg";
|
|
9
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Grid';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
export type PhosphorIconComponent = ComponentType<{
|
|
3
|
+
size?: number | string;
|
|
4
|
+
weight?: "thin" | "light" | "regular" | "bold" | "fill" | "duotone";
|
|
5
|
+
className?: string;
|
|
6
|
+
"aria-hidden"?: boolean | "true" | "false";
|
|
7
|
+
}>;
|
|
8
|
+
export type IconProps = {
|
|
9
|
+
icon: PhosphorIconComponent;
|
|
10
|
+
size?: "sm" | "md" | "lg" | number;
|
|
11
|
+
weight?: "thin" | "light" | "regular" | "bold" | "fill" | "duotone";
|
|
12
|
+
className?: string;
|
|
13
|
+
decorative?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function Icon({ icon: IconComponent, size, weight, className, decorative }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Icon';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const paperVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "muted" | "elevated" | "outlined" | "glass" | null | undefined;
|
|
5
|
+
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type PaperProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof paperVariants>;
|
|
8
|
+
export declare const Paper: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
9
|
+
variant?: "default" | "muted" | "elevated" | "outlined" | "glass" | null | undefined;
|
|
10
|
+
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Paper';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CSSProperties, HTMLAttributes } from 'react';
|
|
2
|
+
type StackGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12;
|
|
3
|
+
export type StackProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
direction?: "row" | "column";
|
|
5
|
+
gap?: StackGap;
|
|
6
|
+
align?: CSSProperties["alignItems"];
|
|
7
|
+
justify?: CSSProperties["justifyContent"];
|
|
8
|
+
wrap?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const Stack: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
11
|
+
direction?: "row" | "column";
|
|
12
|
+
gap?: StackGap;
|
|
13
|
+
align?: CSSProperties["alignItems"];
|
|
14
|
+
justify?: CSSProperties["justifyContent"];
|
|
15
|
+
wrap?: boolean;
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Stack';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ElementType, HTMLAttributes } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const textVariants: (props?: ({
|
|
4
|
+
variant?: "body" | "caption" | "h1" | "h2" | "h3" | "label" | "title" | "display" | "body-sm" | null | undefined;
|
|
5
|
+
tone?: "disabled" | "muted" | "primary" | "secondary" | "danger" | "success" | "accent" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export type TextProps = HTMLAttributes<HTMLElement> & VariantProps<typeof textVariants> & {
|
|
8
|
+
as?: ElementType;
|
|
9
|
+
};
|
|
10
|
+
export declare const Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
11
|
+
variant?: "body" | "caption" | "h1" | "h2" | "h3" | "label" | "title" | "display" | "body-sm" | null | undefined;
|
|
12
|
+
tone?: "disabled" | "muted" | "primary" | "secondary" | "danger" | "success" | "accent" | null | undefined;
|
|
13
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
14
|
+
as?: ElementType;
|
|
15
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Text';
|
package/dist/index.d.ts
ADDED