@boostdev/design-system-components 1.2.0 → 1.2.2
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/AGENTS.md +46 -4
- package/README.md +15 -15
- package/dist/client.cjs +149 -124
- package/dist/client.css +503 -525
- package/dist/client.d.cts +71 -96
- package/dist/client.d.ts +71 -96
- package/dist/client.js +149 -124
- package/dist/index.cjs +149 -124
- package/dist/index.css +503 -525
- package/dist/index.d.cts +71 -96
- package/dist/index.d.ts +71 -96
- package/dist/index.js +149 -124
- package/dist/web-components/{chunk-6MH5UWUD.js → chunk-2FGATTGT.js} +5 -0
- package/dist/web-components/{chunk-5IPHEONG.js → chunk-6I2DBFQ7.js} +1 -0
- package/dist/web-components/{chunk-DI46Q2EA.js → chunk-OCODKRVZ.js} +57 -82
- package/dist/web-components/index.d.ts +571 -1
- package/dist/web-components/index.js +1501 -4
- package/dist/web-components/interaction/bds-collapsible.js +1 -1
- package/dist/web-components/interaction/bds-drawer.js +1 -1
- package/dist/web-components/interaction/form/bds-segmented-control.js +1 -1
- package/package.json +1 -1
- package/src/components/interaction/Command/Command.tsx +4 -3
- package/src/components/interaction/Dialog/Dialog.tsx +4 -5
- package/src/components/interaction/Drawer/Drawer.module.css +37 -62
- package/src/components/interaction/Drawer/Drawer.spec.tsx +3 -3
- package/src/components/interaction/Drawer/Drawer.tsx +25 -24
- package/src/components/interaction/DropdownMenu/DropdownMenu.tsx +4 -2
- package/src/components/interaction/Popover/Popover.tsx +4 -3
- package/src/components/interaction/Rating/Rating.tsx +4 -2
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx +4 -6
- package/src/components/interaction/form/Combobox/Combobox.tsx +4 -2
- package/src/components/interaction/form/FileInput/FileInput.tsx +4 -3
- package/src/components/interaction/form/NumberInput/NumberInput.tsx +4 -3
- package/src/components/interaction/form/RadioGroup/RadioGroup.tsx +4 -6
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.mdx +8 -4
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +13 -6
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.tsx +4 -6
- package/src/components/interaction/form/atoms/InputContainer.tsx +2 -2
- package/src/components/layout/ButtonGroup/ButtonGroup.tsx +4 -6
- package/src/components/layout/Card/Card.tsx +4 -10
- package/src/components/layout/IconWrapper/IconWrapper.tsx +4 -5
- package/src/components/layout/SectionHeader/SectionHeader.tsx +5 -4
- package/src/components/ui/Accordion/Accordion.tsx +4 -3
- package/src/components/ui/Alert/Alert.tsx +4 -3
- package/src/components/ui/Avatar/Avatar.tsx +5 -3
- package/src/components/ui/Badge/Badge.tsx +4 -5
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +4 -3
- package/src/components/ui/Calendar/Calendar.tsx +4 -4
- package/src/components/ui/Carousel/Carousel.tsx +4 -4
- package/src/components/ui/DescriptionList/DescriptionList.tsx +4 -4
- package/src/components/ui/Loading/Loading.tsx +4 -3
- package/src/components/ui/NotificationBanner/NotificationBanner.tsx +4 -2
- package/src/components/ui/Pagination/Pagination.tsx +4 -2
- package/src/components/ui/Progress/Progress.tsx +4 -2
- package/src/components/ui/ProgressCircle/ProgressCircle.tsx +4 -1
- package/src/components/ui/Separator/Separator.tsx +5 -3
- package/src/components/ui/Skeleton/Skeleton.tsx +4 -3
- package/src/components/ui/SkipLink/SkipLink.tsx +4 -5
- package/src/components/ui/Tabs/Tabs.tsx +4 -4
- package/src/components/ui/Tooltip/Tooltip.tsx +4 -2
- package/src/components/ui/Typography/Typography.tsx +4 -5
- package/src/stories/DesignSystem/Grid.mdx +2 -0
- package/src/stories/Introduction.mdx +2 -1
- package/src/web-components/index.ts +12 -0
- package/src/web-components/interaction/BdsAccordion.mdx +80 -28
- package/src/web-components/interaction/BdsAccordion.stories.tsx +67 -58
- package/src/web-components/interaction/BdsCollapsible.mdx +93 -23
- package/src/web-components/interaction/BdsCollapsible.stories.tsx +29 -48
- package/src/web-components/interaction/BdsDialog.mdx +88 -27
- package/src/web-components/interaction/BdsDialog.stories.tsx +129 -47
- package/src/web-components/interaction/BdsDrawer.mdx +85 -27
- package/src/web-components/interaction/BdsDrawer.stories.tsx +161 -31
- package/src/web-components/interaction/BdsDropdownMenu.mdx +108 -0
- package/src/web-components/interaction/BdsDropdownMenu.stories.tsx +91 -0
- package/src/web-components/interaction/BdsSkipLink.mdx +72 -16
- package/src/web-components/interaction/BdsSkipLink.stories.tsx +47 -34
- package/src/web-components/interaction/BdsTabs.mdx +97 -27
- package/src/web-components/interaction/BdsTabs.stories.tsx +69 -55
- package/src/web-components/interaction/BdsTooltip.mdx +84 -18
- package/src/web-components/interaction/BdsTooltip.stories.tsx +49 -30
- package/src/web-components/interaction/bds-collapsible.ts +1 -0
- package/src/web-components/interaction/bds-drawer.ts +59 -82
- package/src/web-components/interaction/bds-dropdown-menu-item.ts +124 -0
- package/src/web-components/interaction/bds-dropdown-menu.spec.ts +102 -0
- package/src/web-components/interaction/bds-dropdown-menu.ts +200 -0
- package/src/web-components/interaction/form/BdsCheckbox.mdx +57 -20
- package/src/web-components/interaction/form/BdsCheckbox.stories.tsx +35 -36
- package/src/web-components/interaction/form/BdsCheckboxGroup.mdx +70 -0
- package/src/web-components/interaction/form/BdsCheckboxGroup.stories.tsx +81 -0
- package/src/web-components/interaction/form/BdsCombobox.mdx +52 -33
- package/src/web-components/interaction/form/BdsCombobox.stories.tsx +55 -53
- package/src/web-components/interaction/form/BdsFileInput.mdx +59 -24
- package/src/web-components/interaction/form/BdsFileInput.stories.tsx +38 -53
- package/src/web-components/interaction/form/BdsFormInput.mdx +98 -0
- package/src/web-components/interaction/form/BdsFormInput.stories.tsx +139 -0
- package/src/web-components/interaction/form/BdsNumberInput.mdx +51 -22
- package/src/web-components/interaction/form/BdsNumberInput.stories.tsx +24 -46
- package/src/web-components/interaction/form/BdsRadio.mdx +53 -22
- package/src/web-components/interaction/form/BdsRadio.stories.tsx +19 -51
- package/src/web-components/interaction/form/BdsRadioGroup.mdx +73 -0
- package/src/web-components/interaction/form/BdsRadioGroup.stories.tsx +88 -0
- package/src/web-components/interaction/form/BdsSegmentedControl.mdx +76 -23
- package/src/web-components/interaction/form/BdsSegmentedControl.stories.tsx +64 -54
- package/src/web-components/interaction/form/BdsSelect.mdx +59 -21
- package/src/web-components/interaction/form/BdsSelect.stories.tsx +47 -56
- package/src/web-components/interaction/form/BdsSlider.mdx +55 -27
- package/src/web-components/interaction/form/BdsSlider.stories.tsx +23 -44
- package/src/web-components/interaction/form/BdsSwitch.mdx +53 -20
- package/src/web-components/interaction/form/BdsSwitch.stories.tsx +22 -37
- package/src/web-components/interaction/form/BdsTextarea.mdx +54 -22
- package/src/web-components/interaction/form/BdsTextarea.stories.tsx +35 -44
- package/src/web-components/interaction/form/bds-checkbox-group.spec.ts +55 -0
- package/src/web-components/interaction/form/bds-checkbox-group.ts +117 -0
- package/src/web-components/interaction/form/bds-form-input.spec.ts +83 -0
- package/src/web-components/interaction/form/bds-form-input.ts +268 -0
- package/src/web-components/interaction/form/bds-radio-group.spec.ts +62 -0
- package/src/web-components/interaction/form/bds-radio-group.ts +142 -0
- package/src/web-components/interaction/form/bds-segmented-control.ts +5 -0
- package/src/web-components/ui/BdsAvatar.mdx +29 -20
- package/src/web-components/ui/BdsAvatar.stories.tsx +14 -28
- package/src/web-components/ui/BdsBreadcrumb.mdx +22 -19
- package/src/web-components/ui/BdsBreadcrumb.stories.tsx +11 -21
- package/src/web-components/ui/BdsButtonGroup.mdx +69 -0
- package/src/web-components/ui/BdsButtonGroup.stories.tsx +66 -0
- package/src/web-components/ui/BdsCalendar.mdx +93 -0
- package/src/web-components/ui/BdsCalendar.stories.tsx +63 -0
- package/src/web-components/ui/BdsCard.mdx +30 -25
- package/src/web-components/ui/BdsCard.stories.tsx +19 -42
- package/src/web-components/ui/BdsCarousel.mdx +83 -0
- package/src/web-components/ui/BdsCarousel.stories.tsx +96 -0
- package/src/web-components/ui/BdsDescriptionList.mdx +13 -16
- package/src/web-components/ui/BdsDescriptionList.stories.tsx +34 -49
- package/src/web-components/ui/BdsIconWrapper.mdx +20 -20
- package/src/web-components/ui/BdsIconWrapper.stories.tsx +46 -41
- package/src/web-components/ui/BdsLink.mdx +21 -17
- package/src/web-components/ui/BdsLink.stories.tsx +19 -20
- package/src/web-components/ui/BdsLoading.mdx +9 -13
- package/src/web-components/ui/BdsLoading.stories.tsx +8 -10
- package/src/web-components/ui/BdsNotificationBanner.mdx +32 -37
- package/src/web-components/ui/BdsNotificationBanner.stories.tsx +38 -47
- package/src/web-components/ui/BdsPagination.mdx +74 -0
- package/src/web-components/ui/BdsPagination.stories.tsx +36 -0
- package/src/web-components/ui/BdsProgress.mdx +24 -17
- package/src/web-components/ui/BdsProgress.stories.tsx +55 -29
- package/src/web-components/ui/BdsProgressCircle.mdx +24 -18
- package/src/web-components/ui/BdsProgressCircle.stories.tsx +17 -29
- package/src/web-components/ui/BdsRating.mdx +22 -22
- package/src/web-components/ui/BdsRating.stories.tsx +19 -13
- package/src/web-components/ui/BdsSectionHeader.mdx +31 -28
- package/src/web-components/ui/BdsSectionHeader.stories.tsx +21 -23
- package/src/web-components/ui/BdsSeparator.mdx +22 -8
- package/src/web-components/ui/BdsSeparator.stories.tsx +27 -19
- package/src/web-components/ui/BdsSkeleton.mdx +20 -26
- package/src/web-components/ui/BdsSkeleton.stories.tsx +23 -23
- package/src/web-components/ui/BdsTable.mdx +81 -0
- package/src/web-components/ui/BdsTable.stories.tsx +83 -0
- package/src/web-components/ui/BdsTypography.mdx +20 -29
- package/src/web-components/ui/BdsTypography.stories.tsx +19 -18
- package/src/web-components/ui/bds-button-group.spec.ts +40 -0
- package/src/web-components/ui/bds-button-group.ts +78 -0
- package/src/web-components/ui/bds-calendar.spec.ts +91 -0
- package/src/web-components/ui/bds-calendar.ts +427 -0
- package/src/web-components/ui/bds-carousel.spec.ts +64 -0
- package/src/web-components/ui/bds-carousel.ts +296 -0
- package/src/web-components/ui/bds-pagination.spec.ts +67 -0
- package/src/web-components/ui/bds-pagination.ts +197 -0
- package/src/web-components/ui/bds-table.spec.ts +45 -0
- package/src/web-components/ui/bds-table.ts +96 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { HTMLAttributes, ReactNode, ElementType, ComponentPropsWithoutRef, AnchorHTMLAttributes, ReactElement, ButtonHTMLAttributes, MouseEventHandler, InputHTMLAttributes, FieldsetHTMLAttributes, HTMLInputTypeAttribute, SelectHTMLAttributes, TextareaHTMLAttributes, JSX } from 'react';
|
|
3
3
|
export { cn } from '@boostdev/design-system-foundation';
|
|
4
4
|
|
|
5
5
|
/** Allows consumers to pass a CSS class to the component's root element. */
|
|
@@ -13,44 +13,42 @@ interface AccordionItem {
|
|
|
13
13
|
content: ReactNode;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
}
|
|
16
|
-
interface AccordionProps extends WithClassName {
|
|
16
|
+
interface AccordionProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
17
17
|
items: AccordionItem[];
|
|
18
18
|
allowMultiple?: boolean;
|
|
19
19
|
defaultOpen?: string[];
|
|
20
20
|
}
|
|
21
|
-
declare function Accordion({ items, allowMultiple, defaultOpen, className, }: Readonly<AccordionProps>): react_jsx_runtime.JSX.Element;
|
|
21
|
+
declare function Accordion({ items, allowMultiple, defaultOpen, className, ...rest }: Readonly<AccordionProps>): react_jsx_runtime.JSX.Element;
|
|
22
22
|
|
|
23
|
-
interface AlertProps extends WithClassName {
|
|
23
|
+
interface AlertProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
24
24
|
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
25
25
|
icon?: ReactNode;
|
|
26
26
|
title?: string;
|
|
27
|
-
children: ReactNode;
|
|
28
27
|
onDismiss?: () => void;
|
|
29
28
|
}
|
|
30
|
-
declare function Alert({ variant, icon, title, children, onDismiss, className, }: Readonly<AlertProps>): react_jsx_runtime.JSX.Element;
|
|
29
|
+
declare function Alert({ variant, icon, title, children, onDismiss, className, ...rest }: Readonly<AlertProps>): react_jsx_runtime.JSX.Element;
|
|
31
30
|
|
|
32
|
-
interface AvatarProps extends WithClassName {
|
|
31
|
+
interface AvatarProps extends WithClassName, HTMLAttributes<HTMLSpanElement> {
|
|
33
32
|
src?: string;
|
|
34
33
|
alt?: string;
|
|
35
34
|
name?: string;
|
|
36
35
|
size?: 'small' | 'medium' | 'large';
|
|
37
36
|
}
|
|
38
|
-
declare function Avatar({ src, alt, name, size, className }: Readonly<AvatarProps>): react_jsx_runtime.JSX.Element;
|
|
37
|
+
declare function Avatar({ src, alt, name, size, className, ...rest }: Readonly<AvatarProps>): react_jsx_runtime.JSX.Element;
|
|
39
38
|
|
|
40
|
-
interface BadgeProps extends WithClassName {
|
|
41
|
-
children: ReactNode;
|
|
39
|
+
interface BadgeProps extends WithClassName, HTMLAttributes<HTMLSpanElement> {
|
|
42
40
|
variant?: 'primary' | 'secondary' | 'success' | 'error' | 'warning';
|
|
43
41
|
}
|
|
44
|
-
declare function Badge({ children, variant, className }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
42
|
+
declare function Badge({ children, variant, className, ...rest }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
45
43
|
|
|
46
44
|
interface BreadcrumbItem {
|
|
47
45
|
label: string;
|
|
48
46
|
href?: string;
|
|
49
47
|
}
|
|
50
|
-
interface BreadcrumbProps extends WithClassName {
|
|
48
|
+
interface BreadcrumbProps extends WithClassName, HTMLAttributes<HTMLElement> {
|
|
51
49
|
items: BreadcrumbItem[];
|
|
52
50
|
}
|
|
53
|
-
declare function Breadcrumb({ items, className }: Readonly<BreadcrumbProps>): react_jsx_runtime.JSX.Element;
|
|
51
|
+
declare function Breadcrumb({ items, className, ...rest }: Readonly<BreadcrumbProps>): react_jsx_runtime.JSX.Element;
|
|
54
52
|
|
|
55
53
|
interface CollapsibleProps extends WithClassName, Omit<HTMLAttributes<HTMLDetailsElement>, 'onToggle'> {
|
|
56
54
|
/** The trigger label — always visible */
|
|
@@ -71,30 +69,30 @@ interface CollapsibleProps extends WithClassName, Omit<HTMLAttributes<HTMLDetail
|
|
|
71
69
|
}
|
|
72
70
|
declare function Collapsible({ summary, children, open, defaultOpen, onToggle, name, className, ...rest }: Readonly<CollapsibleProps>): react_jsx_runtime.JSX.Element;
|
|
73
71
|
|
|
74
|
-
interface CalendarProps extends WithClassName {
|
|
72
|
+
interface CalendarProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
|
|
75
73
|
value?: Date;
|
|
76
74
|
defaultValue?: Date;
|
|
77
75
|
min?: Date;
|
|
78
76
|
max?: Date;
|
|
79
77
|
onChange?: (date: Date) => void;
|
|
80
78
|
}
|
|
81
|
-
declare function Calendar({ value, defaultValue, min, max, onChange, className }: Readonly<CalendarProps>): react_jsx_runtime.JSX.Element;
|
|
79
|
+
declare function Calendar({ value, defaultValue, min, max, onChange, className, ...rest }: Readonly<CalendarProps>): react_jsx_runtime.JSX.Element;
|
|
82
80
|
|
|
83
|
-
interface CarouselProps extends WithClassName {
|
|
81
|
+
interface CarouselProps extends WithClassName, HTMLAttributes<HTMLElement> {
|
|
84
82
|
items: ReactNode[];
|
|
85
83
|
label: string;
|
|
86
84
|
}
|
|
87
|
-
declare function Carousel({ items, label, className }: Readonly<CarouselProps>): react_jsx_runtime.JSX.Element;
|
|
85
|
+
declare function Carousel({ items, label, className, ...rest }: Readonly<CarouselProps>): react_jsx_runtime.JSX.Element;
|
|
88
86
|
|
|
89
87
|
interface DescriptionItem {
|
|
90
88
|
term: ReactNode;
|
|
91
89
|
details: ReactNode | ReactNode[];
|
|
92
90
|
}
|
|
93
|
-
interface DescriptionListProps extends WithClassName {
|
|
91
|
+
interface DescriptionListProps extends WithClassName, HTMLAttributes<HTMLDListElement> {
|
|
94
92
|
items: DescriptionItem[];
|
|
95
93
|
layout?: 'stacked' | 'inline';
|
|
96
94
|
}
|
|
97
|
-
declare function DescriptionList({ items, layout, className }: Readonly<DescriptionListProps>): react_jsx_runtime.JSX.Element;
|
|
95
|
+
declare function DescriptionList({ items, layout, className, ...rest }: Readonly<DescriptionListProps>): react_jsx_runtime.JSX.Element;
|
|
98
96
|
|
|
99
97
|
type LinkOwnProps<T extends ElementType> = WithClassName & {
|
|
100
98
|
as?: T;
|
|
@@ -106,57 +104,55 @@ type LinkOwnProps<T extends ElementType> = WithClassName & {
|
|
|
106
104
|
type LinkProps<T extends ElementType = 'a'> = LinkOwnProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof LinkOwnProps<T>>;
|
|
107
105
|
declare function Link<T extends ElementType = 'a'>({ as, children, variant, external, externalLabel, className, ...props }: LinkProps<T>): react_jsx_runtime.JSX.Element;
|
|
108
106
|
|
|
109
|
-
interface LoadingProps extends WithClassName {
|
|
107
|
+
interface LoadingProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
110
108
|
size?: 'small' | 'medium' | 'large';
|
|
111
109
|
}
|
|
112
|
-
declare function Loading({ size, className }: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
110
|
+
declare function Loading({ size, className, ...rest }: LoadingProps): react_jsx_runtime.JSX.Element;
|
|
113
111
|
|
|
114
|
-
interface NotificationBannerProps extends WithClassName {
|
|
112
|
+
interface NotificationBannerProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
115
113
|
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
116
114
|
children: ReactNode;
|
|
117
115
|
action?: ReactNode;
|
|
118
116
|
onDismiss?: () => void;
|
|
119
117
|
}
|
|
120
|
-
declare function NotificationBanner({ variant, children, action, onDismiss, className, }: Readonly<NotificationBannerProps>): react_jsx_runtime.JSX.Element;
|
|
118
|
+
declare function NotificationBanner({ variant, children, action, onDismiss, className, ...rest }: Readonly<NotificationBannerProps>): react_jsx_runtime.JSX.Element;
|
|
121
119
|
|
|
122
|
-
interface PaginationProps extends WithClassName {
|
|
120
|
+
interface PaginationProps extends WithClassName, HTMLAttributes<HTMLElement> {
|
|
123
121
|
currentPage: number;
|
|
124
122
|
totalPages: number;
|
|
125
123
|
onPageChange: (page: number) => void;
|
|
126
124
|
}
|
|
127
|
-
declare function Pagination({ currentPage, totalPages, onPageChange, className, }: Readonly<PaginationProps>): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function Pagination({ currentPage, totalPages, onPageChange, className, ...rest }: Readonly<PaginationProps>): react_jsx_runtime.JSX.Element;
|
|
128
126
|
|
|
129
|
-
interface ProgressProps extends WithClassName {
|
|
127
|
+
interface ProgressProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
130
128
|
value: number;
|
|
131
129
|
max?: number;
|
|
132
130
|
label: string;
|
|
133
131
|
showLabel?: boolean;
|
|
134
132
|
size?: 'small' | 'medium' | 'large';
|
|
135
133
|
}
|
|
136
|
-
declare function Progress({ value, max, label, showLabel, size, className, }: Readonly<ProgressProps>): react_jsx_runtime.JSX.Element;
|
|
134
|
+
declare function Progress({ value, max, label, showLabel, size, className, ...rest }: Readonly<ProgressProps>): react_jsx_runtime.JSX.Element;
|
|
137
135
|
|
|
138
|
-
interface ProgressCircleProps extends WithClassName {
|
|
136
|
+
interface ProgressCircleProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
139
137
|
value: number;
|
|
140
138
|
max?: number;
|
|
141
139
|
label: string;
|
|
142
140
|
showValue?: boolean;
|
|
143
141
|
size?: 'small' | 'medium' | 'large';
|
|
144
142
|
}
|
|
145
|
-
declare function ProgressCircle({ value, max, label, showValue, size, className, }: Readonly<ProgressCircleProps>): react_jsx_runtime.JSX.Element;
|
|
143
|
+
declare function ProgressCircle({ value, max, label, showValue, size, className, ...rest }: Readonly<ProgressCircleProps>): react_jsx_runtime.JSX.Element;
|
|
146
144
|
|
|
147
|
-
interface SeparatorProps extends WithClassName {
|
|
145
|
+
interface SeparatorProps extends WithClassName, HTMLAttributes<HTMLElement> {
|
|
148
146
|
orientation?: 'horizontal' | 'vertical';
|
|
149
147
|
}
|
|
150
|
-
declare function Separator({ orientation, className }: Readonly<SeparatorProps>): react_jsx_runtime.JSX.Element;
|
|
148
|
+
declare function Separator({ orientation, className, ...rest }: Readonly<SeparatorProps>): react_jsx_runtime.JSX.Element;
|
|
151
149
|
|
|
152
|
-
type SkeletonProps = WithClassName
|
|
153
|
-
declare function Skeleton({ className }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
150
|
+
type SkeletonProps = WithClassName & HTMLAttributes<HTMLDivElement>;
|
|
151
|
+
declare function Skeleton({ className, ...rest }: SkeletonProps): react_jsx_runtime.JSX.Element;
|
|
154
152
|
|
|
155
|
-
interface SkipLinkProps extends WithClassName {
|
|
156
|
-
href?: string;
|
|
157
|
-
children?: string;
|
|
153
|
+
interface SkipLinkProps extends WithClassName, AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
158
154
|
}
|
|
159
|
-
declare function SkipLink({ href, children, className }: SkipLinkProps): react_jsx_runtime.JSX.Element;
|
|
155
|
+
declare function SkipLink({ href, children, className, ...rest }: SkipLinkProps): react_jsx_runtime.JSX.Element;
|
|
160
156
|
|
|
161
157
|
interface TableColumn<Row> {
|
|
162
158
|
key: string;
|
|
@@ -180,26 +176,25 @@ interface TabItem {
|
|
|
180
176
|
content: ReactNode;
|
|
181
177
|
disabled?: boolean;
|
|
182
178
|
}
|
|
183
|
-
interface TabsProps extends WithClassName {
|
|
179
|
+
interface TabsProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
184
180
|
tabs: TabItem[];
|
|
185
181
|
defaultTab?: string;
|
|
186
182
|
}
|
|
187
|
-
declare function Tabs({ tabs, defaultTab, className }: Readonly<TabsProps>): react_jsx_runtime.JSX.Element;
|
|
183
|
+
declare function Tabs({ tabs, defaultTab, className, ...rest }: Readonly<TabsProps>): react_jsx_runtime.JSX.Element;
|
|
188
184
|
|
|
189
|
-
interface TooltipProps extends WithClassName {
|
|
185
|
+
interface TooltipProps extends WithClassName, Omit<HTMLAttributes<HTMLSpanElement>, 'content'> {
|
|
190
186
|
content: ReactNode;
|
|
191
187
|
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
192
188
|
children: ReactElement;
|
|
193
189
|
}
|
|
194
|
-
declare function Tooltip({ content, placement, children, className, }: Readonly<TooltipProps>): react_jsx_runtime.JSX.Element;
|
|
190
|
+
declare function Tooltip({ content, placement, children, className, ...rest }: Readonly<TooltipProps>): react_jsx_runtime.JSX.Element;
|
|
195
191
|
|
|
196
192
|
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'body' | 'body_s';
|
|
197
|
-
interface TypographyProps extends WithClassName {
|
|
193
|
+
interface TypographyProps extends WithClassName, HTMLAttributes<HTMLElement> {
|
|
198
194
|
variant?: TypographyVariant;
|
|
199
195
|
component?: ElementType;
|
|
200
|
-
children: ReactNode;
|
|
201
196
|
}
|
|
202
|
-
declare function Typography({ variant, component, children, className }: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
197
|
+
declare function Typography({ variant, component, children, className, ...rest }: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
203
198
|
|
|
204
199
|
interface ButtonProps extends WithClassName, ButtonHTMLAttributes<HTMLButtonElement | HTMLAnchorElement> {
|
|
205
200
|
href?: string;
|
|
@@ -227,36 +222,30 @@ interface CommandItem {
|
|
|
227
222
|
shortcut?: string;
|
|
228
223
|
onSelect: () => void;
|
|
229
224
|
}
|
|
230
|
-
interface CommandProps extends WithClassName {
|
|
231
|
-
id?: string;
|
|
225
|
+
interface CommandProps extends WithClassName, HTMLAttributes<HTMLDialogElement> {
|
|
232
226
|
isOpen: boolean;
|
|
233
227
|
onOpen?: () => void;
|
|
234
228
|
onClose: () => void;
|
|
235
229
|
items: CommandItem[];
|
|
236
230
|
placeholder?: string;
|
|
237
231
|
}
|
|
238
|
-
declare function Command({ id: idProp, isOpen, onOpen, onClose, items, placeholder, className, }: Readonly<CommandProps>): react_jsx_runtime.JSX.Element;
|
|
232
|
+
declare function Command({ id: idProp, isOpen, onOpen, onClose, items, placeholder, className, ...rest }: Readonly<CommandProps>): react_jsx_runtime.JSX.Element;
|
|
239
233
|
|
|
240
|
-
interface DialogProps extends WithClassName {
|
|
241
|
-
children: ReactNode;
|
|
242
|
-
id?: string;
|
|
234
|
+
interface DialogProps extends WithClassName, HTMLAttributes<HTMLDialogElement> {
|
|
243
235
|
isOpen?: boolean;
|
|
244
236
|
onOpen?: () => void;
|
|
245
237
|
onClose?: () => void;
|
|
246
238
|
}
|
|
247
|
-
declare function Dialog({ children, id: idProp, isOpen, className, onOpen, onClose }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
239
|
+
declare function Dialog({ children, id: idProp, isOpen, className, onOpen, onClose, ...rest }: DialogProps): react_jsx_runtime.JSX.Element;
|
|
248
240
|
|
|
249
|
-
interface DrawerProps extends WithClassName {
|
|
250
|
-
id?: string;
|
|
241
|
+
interface DrawerProps extends WithClassName, Omit<HTMLAttributes<HTMLDialogElement>, 'title'> {
|
|
251
242
|
isOpen: boolean;
|
|
252
243
|
onOpen?: () => void;
|
|
253
244
|
onClose: () => void;
|
|
254
245
|
title: ReactNode;
|
|
255
|
-
children: ReactNode;
|
|
256
246
|
side?: 'left' | 'right';
|
|
257
|
-
ariaLabel?: string;
|
|
258
247
|
}
|
|
259
|
-
declare function Drawer({ id: idProp, isOpen, onOpen, onClose, title, children, side,
|
|
248
|
+
declare function Drawer({ id: idProp, isOpen, onOpen, onClose, title, children, side, className, ...rest }: Readonly<DrawerProps>): react_jsx_runtime.JSX.Element;
|
|
260
249
|
|
|
261
250
|
interface DropdownMenuItem {
|
|
262
251
|
id: string;
|
|
@@ -266,26 +255,25 @@ interface DropdownMenuItem {
|
|
|
266
255
|
icon?: ReactElement;
|
|
267
256
|
separator?: boolean;
|
|
268
257
|
}
|
|
269
|
-
interface DropdownMenuProps extends WithClassName {
|
|
258
|
+
interface DropdownMenuProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
270
259
|
trigger: ReactElement;
|
|
271
260
|
items: DropdownMenuItem[];
|
|
272
261
|
placement?: 'bottom-start' | 'bottom-end';
|
|
273
262
|
}
|
|
274
|
-
declare function DropdownMenu({ trigger, items, placement, className, }: Readonly<DropdownMenuProps>): react_jsx_runtime.JSX.Element;
|
|
263
|
+
declare function DropdownMenu({ trigger, items, placement, className, ...rest }: Readonly<DropdownMenuProps>): react_jsx_runtime.JSX.Element;
|
|
275
264
|
|
|
276
|
-
interface PopoverProps extends WithClassName {
|
|
265
|
+
interface PopoverProps extends WithClassName, Omit<HTMLAttributes<HTMLSpanElement>, 'content'> {
|
|
277
266
|
children: ReactElement;
|
|
278
267
|
content: ReactNode;
|
|
279
268
|
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
280
|
-
'aria-label'?: string;
|
|
281
269
|
}
|
|
282
|
-
declare function Popover({ children, content, placement, className, 'aria-label': ariaLabel, }: Readonly<PopoverProps>): react_jsx_runtime.JSX.Element;
|
|
270
|
+
declare function Popover({ children, content, placement, className, 'aria-label': ariaLabel, ...rest }: Readonly<PopoverProps>): react_jsx_runtime.JSX.Element;
|
|
283
271
|
|
|
284
|
-
interface RatingProps extends WithClassName {
|
|
272
|
+
interface RatingProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
285
273
|
value: number;
|
|
286
274
|
max?: number;
|
|
287
275
|
}
|
|
288
|
-
declare function Rating({ value, max, className }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
276
|
+
declare function Rating({ value, max, className, ...rest }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
289
277
|
|
|
290
278
|
type ToastVariant = 'success' | 'error' | 'info';
|
|
291
279
|
interface ToastContextType {
|
|
@@ -304,22 +292,20 @@ interface CheckboxProps extends WithClassName, Omit<InputHTMLAttributes<HTMLInpu
|
|
|
304
292
|
}
|
|
305
293
|
declare function Checkbox({ label, name, error, hint, className, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
306
294
|
|
|
307
|
-
interface CheckboxGroupProps extends WithClassName {
|
|
295
|
+
interface CheckboxGroupProps extends WithClassName, FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
308
296
|
legend: string;
|
|
309
|
-
children: ReactNode;
|
|
310
297
|
error?: string;
|
|
311
298
|
hint?: string;
|
|
312
299
|
required?: boolean;
|
|
313
|
-
disabled?: boolean;
|
|
314
300
|
}
|
|
315
|
-
declare function CheckboxGroup({ legend, children, error, hint, required,
|
|
301
|
+
declare function CheckboxGroup({ legend, children, error, hint, required, className, ...rest }: Readonly<CheckboxGroupProps>): react_jsx_runtime.JSX.Element;
|
|
316
302
|
|
|
317
303
|
interface ComboboxOption {
|
|
318
304
|
value: string;
|
|
319
305
|
label: string;
|
|
320
306
|
disabled?: boolean;
|
|
321
307
|
}
|
|
322
|
-
interface ComboboxProps extends WithClassName {
|
|
308
|
+
interface ComboboxProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
323
309
|
label: ReactNode;
|
|
324
310
|
name: string;
|
|
325
311
|
options: ComboboxOption[];
|
|
@@ -330,9 +316,9 @@ interface ComboboxProps extends WithClassName {
|
|
|
330
316
|
error?: string;
|
|
331
317
|
hint?: string;
|
|
332
318
|
}
|
|
333
|
-
declare function Combobox({ label, name, options, placeholder, value, onChange, disabled, error, hint, className, }: Readonly<ComboboxProps>): react_jsx_runtime.JSX.Element;
|
|
319
|
+
declare function Combobox({ label, name, options, placeholder, value, onChange, disabled, error, hint, className, ...rest }: Readonly<ComboboxProps>): react_jsx_runtime.JSX.Element;
|
|
334
320
|
|
|
335
|
-
interface FileInputProps extends WithClassName {
|
|
321
|
+
interface FileInputProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
336
322
|
label: string;
|
|
337
323
|
name: string;
|
|
338
324
|
accept?: string;
|
|
@@ -343,7 +329,7 @@ interface FileInputProps extends WithClassName {
|
|
|
343
329
|
hint?: string;
|
|
344
330
|
onChange?: (files: FileList | null) => void;
|
|
345
331
|
}
|
|
346
|
-
declare function FileInput({ label, name, accept, multiple, disabled, required, error, hint, onChange, className, }: Readonly<FileInputProps>): react_jsx_runtime.JSX.Element;
|
|
332
|
+
declare function FileInput({ label, name, accept, multiple, disabled, required, error, hint, onChange, className, ...rest }: Readonly<FileInputProps>): react_jsx_runtime.JSX.Element;
|
|
347
333
|
|
|
348
334
|
interface FormInputProps extends WithClassName, Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
349
335
|
label: ReactNode;
|
|
@@ -355,7 +341,7 @@ interface FormInputProps extends WithClassName, Omit<InputHTMLAttributes<HTMLInp
|
|
|
355
341
|
}
|
|
356
342
|
declare function FormInput({ label, name, ariaLabel, error, hint, className, required, ...props }: FormInputProps): react_jsx_runtime.JSX.Element;
|
|
357
343
|
|
|
358
|
-
interface NumberInputProps extends WithClassName {
|
|
344
|
+
interface NumberInputProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
359
345
|
label: string;
|
|
360
346
|
name: string;
|
|
361
347
|
value?: number;
|
|
@@ -368,7 +354,7 @@ interface NumberInputProps extends WithClassName {
|
|
|
368
354
|
hint?: string;
|
|
369
355
|
onChange?: (value: number) => void;
|
|
370
356
|
}
|
|
371
|
-
declare function NumberInput({ label, name, value, defaultValue, min, max, step, disabled, error, hint, onChange, className, }: Readonly<NumberInputProps>): react_jsx_runtime.JSX.Element;
|
|
357
|
+
declare function NumberInput({ label, name, value, defaultValue, min, max, step, disabled, error, hint, onChange, className, ...rest }: Readonly<NumberInputProps>): react_jsx_runtime.JSX.Element;
|
|
372
358
|
|
|
373
359
|
interface RadioProps extends WithClassName, Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
374
360
|
label: ReactNode;
|
|
@@ -379,18 +365,15 @@ interface RadioProps extends WithClassName, Omit<InputHTMLAttributes<HTMLInputEl
|
|
|
379
365
|
}
|
|
380
366
|
declare function Radio({ label, name, description, error, hint, className, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
|
|
381
367
|
|
|
382
|
-
interface RadioGroupProps extends WithClassName {
|
|
368
|
+
interface RadioGroupProps extends WithClassName, FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
383
369
|
legend: string;
|
|
384
|
-
children: ReactNode;
|
|
385
370
|
error?: string;
|
|
386
371
|
hint?: string;
|
|
387
372
|
required?: boolean;
|
|
388
|
-
disabled?: boolean;
|
|
389
373
|
}
|
|
390
|
-
declare function RadioGroup({ legend, children, error, hint, required,
|
|
374
|
+
declare function RadioGroup({ legend, children, error, hint, required, className, ...rest }: Readonly<RadioGroupProps>): react_jsx_runtime.JSX.Element;
|
|
391
375
|
|
|
392
|
-
interface SegmentedControlProps extends WithClassName {
|
|
393
|
-
children: ReactNode;
|
|
376
|
+
interface SegmentedControlProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
394
377
|
/**
|
|
395
378
|
* Zero-based index of the active item.
|
|
396
379
|
* When omitted, auto-detected from the first child that has
|
|
@@ -401,9 +384,8 @@ interface SegmentedControlProps extends WithClassName {
|
|
|
401
384
|
size?: 'small' | 'medium' | 'large';
|
|
402
385
|
/** "outline" (default) — sliding inset border; "filled" — sliding filled thumb */
|
|
403
386
|
variant?: 'outline' | 'filled';
|
|
404
|
-
'aria-label'?: string;
|
|
405
387
|
}
|
|
406
|
-
declare function SegmentedControl({ children, selectedIndex: selectedIndexProp, disabled, size, variant, className,
|
|
388
|
+
declare function SegmentedControl({ children, selectedIndex: selectedIndexProp, disabled, size, variant, className, ...rest }: Readonly<SegmentedControlProps>): react_jsx_runtime.JSX.Element;
|
|
407
389
|
|
|
408
390
|
interface SelectOption {
|
|
409
391
|
value: string;
|
|
@@ -449,38 +431,31 @@ interface TextareaProps extends WithClassName, TextareaHTMLAttributes<HTMLTextAr
|
|
|
449
431
|
}
|
|
450
432
|
declare function Textarea({ label, name, error, hint, className, required, ...props }: Readonly<TextareaProps>): react_jsx_runtime.JSX.Element;
|
|
451
433
|
|
|
452
|
-
interface ButtonGroupProps extends WithClassName {
|
|
453
|
-
children: ReactNode;
|
|
434
|
+
interface ButtonGroupProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
454
435
|
variant?: 'flow' | 'card' | 'modal' | 'content';
|
|
455
|
-
'aria-label'?: string;
|
|
456
436
|
}
|
|
457
|
-
declare function ButtonGroup({ children, className, variant,
|
|
437
|
+
declare function ButtonGroup({ children, className, variant, ...rest }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
458
438
|
|
|
459
|
-
interface CardProps extends WithClassName {
|
|
460
|
-
children: ReactNode;
|
|
439
|
+
interface CardProps extends WithClassName, HTMLAttributes<HTMLElement> {
|
|
461
440
|
variant?: 'default' | 'elevated' | 'outlined';
|
|
462
441
|
padding?: 'none' | 'small' | 'medium' | 'large';
|
|
463
442
|
textAlign?: 'start' | 'center' | 'end';
|
|
464
|
-
style?: CSSProperties;
|
|
465
|
-
onClick?: () => void;
|
|
466
|
-
'aria-label'?: string;
|
|
467
443
|
}
|
|
468
|
-
declare function Card({ children, className, variant, padding, textAlign,
|
|
444
|
+
declare function Card({ children, className, variant, padding, textAlign, onClick, ...rest }: CardProps): react_jsx_runtime.JSX.Element;
|
|
469
445
|
|
|
470
446
|
type IntrinsicElement = keyof JSX.IntrinsicElements;
|
|
471
|
-
type SectionHeaderProps = WithClassName & {
|
|
447
|
+
type SectionHeaderProps = WithClassName & Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
472
448
|
title: string;
|
|
473
449
|
subtitle?: string;
|
|
474
450
|
alignment?: 'start' | 'center' | 'end';
|
|
475
451
|
size?: 'small' | 'medium' | 'large';
|
|
476
452
|
titleAs?: IntrinsicElement;
|
|
477
453
|
};
|
|
478
|
-
declare function SectionHeader({ title, subtitle, className, alignment, size, titleAs }: Readonly<SectionHeaderProps>): react_jsx_runtime.JSX.Element;
|
|
454
|
+
declare function SectionHeader({ title, subtitle, className, alignment, size, titleAs, ...rest }: Readonly<SectionHeaderProps>): react_jsx_runtime.JSX.Element;
|
|
479
455
|
|
|
480
|
-
interface IconWrapperProps extends WithClassName {
|
|
456
|
+
interface IconWrapperProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
481
457
|
children: ReactNode;
|
|
482
|
-
'aria-hidden'?: boolean | 'true' | 'false';
|
|
483
458
|
}
|
|
484
|
-
declare function IconWrapper({ children, className,
|
|
459
|
+
declare function IconWrapper({ children, className, ...rest }: IconWrapperProps): react_jsx_runtime.JSX.Element;
|
|
485
460
|
|
|
486
461
|
export { Accordion, type AccordionItem, Alert, Avatar, Badge, Breadcrumb, type BreadcrumbItem, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, Card, Carousel, Checkbox, CheckboxGroup, type CheckboxGroupProps, Collapsible, type CollapsibleProps, Combobox, type ComboboxOption, Command, type CommandItem, type DescriptionItem, DescriptionList, Dialog, Drawer, DropdownMenu, type DropdownMenuItem, FileInput, FormInput, IconWrapper, type IconWrapperProps, Link, Loading, NotificationBanner, NumberInput, Pagination, Popover, Progress, ProgressCircle, Radio, RadioGroup, type RadioGroupProps, Rating, SectionHeader, SegmentedControl, type SegmentedControlProps, Select, type SelectOption, Separator, Skeleton, SkipLink, Slider, Switch, type TabItem, Table, type TableColumn, Tabs, Textarea, ToastProvider, Tooltip, Typography, type WithClassName, useToast };
|