@boostdev/design-system-components 2.15.0 → 2.16.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/AGENTS.md +19 -14
- package/dist/client.cjs +271 -205
- package/dist/client.css +801 -642
- package/dist/client.d.cts +19 -4
- package/dist/client.d.ts +19 -4
- package/dist/client.js +206 -139
- package/dist/index.cjs +271 -205
- package/dist/index.css +801 -642
- package/dist/index.d.cts +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +206 -139
- package/dist/web-components/chunk-2DHW2WJZ.js +154 -0
- package/dist/web-components/{chunk-LDIPCTRN.js → chunk-2MJTO2IW.js} +48 -2
- package/dist/web-components/{chunk-3WAV6MDN.js → chunk-3FSGP35V.js} +1 -0
- package/dist/web-components/{chunk-KA3VPKMY.js → chunk-4MB2ICSK.js} +1 -0
- package/dist/web-components/{chunk-IDSM74LM.js → chunk-6XL5P76D.js} +3 -3
- package/dist/web-components/{chunk-P24JYC5V.js → chunk-7VXRMCAL.js} +10 -4
- package/dist/web-components/{chunk-CUKQ2L5B.js → chunk-AGI6YQRC.js} +9 -16
- package/dist/web-components/chunk-BDRV452N.js +51 -0
- package/dist/web-components/{chunk-3AY2YKCM.js → chunk-CKCPV347.js} +1 -0
- package/dist/web-components/{chunk-HBLJ4SLY.js → chunk-DD3OUXNG.js} +5 -5
- package/dist/web-components/{chunk-RVF7W653.js → chunk-DGOCPKHI.js} +30 -10
- package/dist/web-components/{chunk-2OLVQUBU.js → chunk-EYCW7TKB.js} +8 -15
- package/dist/web-components/{chunk-VANAKB6D.js → chunk-GPJWLAKU.js} +33 -16
- package/dist/web-components/{chunk-VED2DFJ6.js → chunk-GQNQBEYR.js} +8 -15
- package/dist/web-components/{chunk-WFVKU4GX.js → chunk-IKAJLROF.js} +49 -4
- package/dist/web-components/{chunk-RSZ3BWBK.js → chunk-KSK4RZZQ.js} +30 -7
- package/dist/web-components/{chunk-FEDABOR5.js → chunk-LHFUXZ52.js} +7 -15
- package/dist/web-components/{chunk-M3ECULRH.js → chunk-RBF7WPLI.js} +10 -8
- package/dist/web-components/{chunk-6G22I2CK.js → chunk-RZH5IVB5.js} +31 -1
- package/dist/web-components/chunk-SRKQ6GST.js +40 -0
- package/dist/web-components/{chunk-5HUAFCU6.js → chunk-TJV7UIXC.js} +7 -0
- package/dist/web-components/{chunk-J3HVUIUH.js → chunk-XI2U6U26.js} +8 -15
- package/dist/web-components/{chunk-JH6LQKLK.js → chunk-XJU7KITO.js} +8 -15
- package/dist/web-components/{chunk-JV5QT2OU.js → chunk-YLDQOESI.js} +27 -13
- package/dist/web-components/globals.js +1 -1
- package/dist/web-components/index.d.ts +1 -0
- package/dist/web-components/index.js +33 -28
- package/dist/web-components/interaction/bds-dropdown-menu-group.d.ts +41 -0
- package/dist/web-components/interaction/bds-dropdown-menu-group.js +7 -0
- package/dist/web-components/interaction/bds-dropdown-menu-item.d.ts +14 -1
- package/dist/web-components/interaction/bds-dropdown-menu-item.js +1 -1
- package/dist/web-components/interaction/bds-dropdown-menu.d.ts +2 -1
- package/dist/web-components/interaction/bds-dropdown-menu.js +1 -1
- package/dist/web-components/interaction/bds-tab.d.ts +5 -0
- package/dist/web-components/interaction/bds-tab.js +1 -1
- package/dist/web-components/interaction/bds-tooltip.js +1 -1
- package/dist/web-components/interaction/form/bds-checkbox-group.d.ts +6 -0
- package/dist/web-components/interaction/form/bds-checkbox-group.js +2 -1
- package/dist/web-components/interaction/form/bds-checkbox.js +1 -1
- package/dist/web-components/interaction/form/bds-combobox.js +2 -1
- package/dist/web-components/interaction/form/bds-form-input.js +2 -1
- package/dist/web-components/interaction/form/bds-number-input.js +2 -1
- package/dist/web-components/interaction/form/bds-radio-group.d.ts +5 -0
- package/dist/web-components/interaction/form/bds-radio-group.js +2 -1
- package/dist/web-components/interaction/form/bds-radio.js +1 -1
- package/dist/web-components/interaction/form/bds-select.js +2 -1
- package/dist/web-components/interaction/form/bds-slider.js +2 -1
- package/dist/web-components/interaction/form/bds-switch.js +1 -1
- package/dist/web-components/interaction/form/bds-textarea.js +2 -1
- package/dist/web-components/ui/bds-alert.d.ts +8 -1
- package/dist/web-components/ui/bds-alert.js +1 -1
- package/dist/web-components/ui/bds-avatar.d.ts +11 -0
- package/dist/web-components/ui/bds-avatar.js +1 -1
- package/dist/web-components/ui/bds-notification-banner.d.ts +14 -1
- package/dist/web-components/ui/bds-notification-banner.js +1 -1
- package/dist/web-components/ui/bds-section-header.d.ts +6 -0
- package/dist/web-components/ui/bds-section-header.js +1 -1
- package/dist/web-components/ui/bds-separator.js +1 -1
- package/dist/web-components/ui/bds-table.js +1 -1
- package/package.json +6 -2
- package/src/components/interaction/DropdownMenu/DropdownMenu.mdx +35 -4
- package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +58 -10
- package/src/components/interaction/DropdownMenu/DropdownMenu.spec.tsx +114 -1
- package/src/components/interaction/DropdownMenu/DropdownMenu.stories.tsx +25 -0
- package/src/components/interaction/DropdownMenu/DropdownMenu.tsx +69 -17
- package/src/components/interaction/form/Checkbox/Checkbox.module.css +1 -0
- package/src/components/interaction/form/Checkbox/Checkbox.spec.tsx +7 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.mdx +1 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css +7 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.spec.tsx +22 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx +1 -1
- package/src/components/interaction/form/Combobox/Combobox.module.css +1 -0
- package/src/components/interaction/form/Combobox/Combobox.spec.tsx +7 -0
- package/src/components/interaction/form/FormInput/FormInput.mdx +9 -0
- package/src/components/interaction/form/FormInput/FormInput.module.css +1 -0
- package/src/components/interaction/form/FormInput/FormInput.spec.tsx +7 -0
- package/src/components/interaction/form/NumberInput/NumberInput.module.css +1 -0
- package/src/components/interaction/form/NumberInput/NumberInput.spec.tsx +7 -0
- package/src/components/interaction/form/Radio/Radio.module.css +1 -0
- package/src/components/interaction/form/Radio/Radio.spec.tsx +7 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.mdx +1 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.module.css +7 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.spec.tsx +22 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.tsx +1 -1
- package/src/components/interaction/form/Select/Select.module.css +1 -0
- package/src/components/interaction/form/Select/Select.spec.tsx +7 -0
- package/src/components/interaction/form/Switch/Switch.module.css +1 -0
- package/src/components/interaction/form/Switch/Switch.spec.tsx +7 -0
- package/src/components/interaction/form/Textarea/Textarea.module.css +1 -0
- package/src/components/interaction/form/Textarea/Textarea.spec.tsx +7 -0
- package/src/components/interaction/form/atoms/Message.module.css +14 -3
- package/src/components/interaction/form/atoms/Message.spec.tsx +22 -0
- package/src/components/interaction/form/atoms/Message.tsx +5 -0
- package/src/components/layout/SectionHeader/SectionHeader.mdx +18 -5
- package/src/components/layout/SectionHeader/SectionHeader.module.css +35 -14
- package/src/components/layout/SectionHeader/SectionHeader.spec.tsx +44 -0
- package/src/components/layout/SectionHeader/SectionHeader.stories.tsx +5 -0
- package/src/components/layout/SectionHeader/SectionHeader.tsx +3 -1
- package/src/components/ui/Alert/Alert.mdx +11 -0
- package/src/components/ui/Alert/Alert.module.css +30 -1
- package/src/components/ui/Alert/Alert.spec.tsx +21 -0
- package/src/components/ui/Alert/Alert.stories.tsx +20 -0
- package/src/components/ui/Alert/Alert.tsx +8 -1
- package/src/components/ui/Avatar/Avatar.mdx +22 -2
- package/src/components/ui/Avatar/Avatar.module.css +29 -2
- package/src/components/ui/Avatar/Avatar.spec.tsx +26 -0
- package/src/components/ui/Avatar/Avatar.stories.tsx +23 -0
- package/src/components/ui/Avatar/Avatar.tsx +4 -2
- package/src/components/ui/Avatar/avatarTone.spec.ts +41 -0
- package/src/components/ui/Avatar/avatarTone.ts +22 -0
- package/src/components/ui/Collapsible/Collapsible.module.css +1 -2
- package/src/components/ui/NotificationBanner/NotificationBanner.mdx +14 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +31 -1
- package/src/components/ui/NotificationBanner/NotificationBanner.spec.tsx +29 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.stories.tsx +25 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.tsx +15 -1
- package/src/components/ui/Separator/Separator.mdx +1 -0
- package/src/components/ui/Separator/Separator.module.css +6 -0
- package/src/components/ui/Separator/Separator.spec.tsx +19 -0
- package/src/components/ui/Separator/Separator.stories.tsx +15 -0
- package/src/components/ui/Table/Table.mdx +4 -1
- package/src/components/ui/Table/Table.module.css +7 -7
- package/src/components/ui/Table/Table.spec.tsx +11 -0
- package/src/components/ui/Tabs/Tabs.mdx +11 -5
- package/src/components/ui/Tabs/Tabs.module.css +23 -5
- package/src/components/ui/Tabs/Tabs.spec.tsx +39 -0
- package/src/components/ui/Tabs/Tabs.tsx +2 -1
- package/src/components/ui/Tabs/getNodeText.spec.tsx +23 -0
- package/src/components/ui/Tabs/getNodeText.ts +13 -0
- package/src/components/ui/Tooltip/Tooltip.mdx +6 -3
- package/src/components/ui/Tooltip/Tooltip.module.css +6 -2
- package/src/components/ui/Tooltip/Tooltip.spec.tsx +10 -0
- package/src/components/ui/Tooltip/Tooltip.stories.tsx +13 -0
- package/src/css/bdc.css +5 -2
- package/src/css/bdc.spec.ts +65 -0
- package/src/stories/DesignSystem/Borders.mdx +17 -9
- package/src/web-components/globals.ts +10 -4
- package/src/web-components/index.ts +1 -0
- package/src/web-components/interaction/BdsAccordion.mdx +1 -1
- package/src/web-components/interaction/BdsAccordion.stories.tsx +1 -1
- package/src/web-components/interaction/BdsButton.mdx +1 -1
- package/src/web-components/interaction/BdsButton.stories.tsx +1 -1
- package/src/web-components/interaction/BdsCollapsible.mdx +1 -1
- package/src/web-components/interaction/BdsCollapsible.stories.tsx +1 -1
- package/src/web-components/interaction/BdsDialog.mdx +1 -1
- package/src/web-components/interaction/BdsDialog.stories.tsx +1 -1
- package/src/web-components/interaction/BdsDrawer.mdx +1 -1
- package/src/web-components/interaction/BdsDrawer.stories.tsx +1 -1
- package/src/web-components/interaction/BdsDropdownMenu.mdx +62 -6
- package/src/web-components/interaction/BdsDropdownMenu.stories.tsx +32 -7
- package/src/web-components/interaction/BdsPopover.mdx +1 -1
- package/src/web-components/interaction/BdsPopover.stories.tsx +1 -1
- package/src/web-components/interaction/BdsSkipLink.mdx +1 -1
- package/src/web-components/interaction/BdsSkipLink.stories.tsx +1 -1
- package/src/web-components/interaction/BdsTabs.mdx +10 -1
- package/src/web-components/interaction/BdsTabs.stories.tsx +1 -1
- package/src/web-components/interaction/BdsToastProvider.mdx +1 -1
- package/src/web-components/interaction/BdsToastProvider.stories.tsx +1 -1
- package/src/web-components/interaction/BdsTooltip.mdx +13 -5
- package/src/web-components/interaction/BdsTooltip.stories.tsx +12 -12
- package/src/web-components/interaction/bds-dropdown-menu-group.ts +72 -0
- package/src/web-components/interaction/bds-dropdown-menu-item.ts +65 -17
- package/src/web-components/interaction/bds-dropdown-menu.spec.ts +135 -0
- package/src/web-components/interaction/bds-dropdown-menu.ts +5 -4
- package/src/web-components/interaction/bds-tab.spec.ts +34 -2
- package/src/web-components/interaction/bds-tab.ts +31 -6
- package/src/web-components/interaction/bds-tooltip.spec.ts +16 -0
- package/src/web-components/interaction/bds-tooltip.ts +10 -8
- package/src/web-components/interaction/form/BdsCheckbox.mdx +5 -1
- package/src/web-components/interaction/form/BdsCheckbox.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsCheckboxGroup.mdx +5 -1
- package/src/web-components/interaction/form/BdsCheckboxGroup.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsCombobox.mdx +5 -1
- package/src/web-components/interaction/form/BdsCombobox.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsFieldGroup.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsFileInput.mdx +1 -1
- package/src/web-components/interaction/form/BdsFileInput.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsFormInput.mdx +8 -1
- package/src/web-components/interaction/form/BdsFormInput.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsNumberInput.mdx +5 -1
- package/src/web-components/interaction/form/BdsNumberInput.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsRadio.mdx +5 -1
- package/src/web-components/interaction/form/BdsRadio.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsRadioGroup.mdx +5 -1
- package/src/web-components/interaction/form/BdsRadioGroup.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsSegmentedControl.mdx +1 -1
- package/src/web-components/interaction/form/BdsSegmentedControl.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsSelect.mdx +5 -1
- package/src/web-components/interaction/form/BdsSelect.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsSlider.mdx +5 -1
- package/src/web-components/interaction/form/BdsSlider.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsSwitch.mdx +5 -1
- package/src/web-components/interaction/form/BdsSwitch.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsTextarea.mdx +5 -1
- package/src/web-components/interaction/form/BdsTextarea.stories.tsx +1 -1
- package/src/web-components/interaction/form/bds-checkbox-group.spec.ts +32 -3
- package/src/web-components/interaction/form/bds-checkbox-group.ts +33 -17
- package/src/web-components/interaction/form/bds-checkbox.ts +1 -0
- package/src/web-components/interaction/form/bds-combobox.ts +6 -16
- package/src/web-components/interaction/form/bds-form-input.ts +6 -16
- package/src/web-components/interaction/form/bds-number-input.ts +6 -16
- package/src/web-components/interaction/form/bds-radio-group.spec.ts +32 -3
- package/src/web-components/interaction/form/bds-radio-group.ts +26 -14
- package/src/web-components/interaction/form/bds-radio.ts +1 -0
- package/src/web-components/interaction/form/bds-select.ts +6 -16
- package/src/web-components/interaction/form/bds-slider.ts +5 -16
- package/src/web-components/interaction/form/bds-switch.ts +1 -0
- package/src/web-components/interaction/form/bds-textarea.ts +6 -16
- package/src/web-components/interaction/form/field-message.spec.ts +62 -0
- package/src/web-components/interaction/form/field-message.ts +55 -0
- package/src/web-components/layout/BdsGrid.mdx +1 -1
- package/src/web-components/layout/BdsGrid.stories.tsx +1 -1
- package/src/web-components/layout/BdsGridItem.mdx +1 -1
- package/src/web-components/layout/BdsGridItem.stories.tsx +1 -1
- package/src/web-components/ui/BdsAlert.mdx +19 -1
- package/src/web-components/ui/BdsAlert.stories.tsx +29 -3
- package/src/web-components/ui/BdsAvatar.mdx +20 -3
- package/src/web-components/ui/BdsAvatar.stories.tsx +25 -2
- package/src/web-components/ui/BdsBadge.mdx +1 -1
- package/src/web-components/ui/BdsBadge.stories.tsx +1 -1
- package/src/web-components/ui/BdsBreadcrumb.mdx +1 -1
- package/src/web-components/ui/BdsBreadcrumb.stories.tsx +1 -1
- package/src/web-components/ui/BdsButtonContainer.mdx +1 -1
- package/src/web-components/ui/BdsButtonContainer.stories.tsx +1 -1
- package/src/web-components/ui/BdsCalendar.mdx +1 -1
- package/src/web-components/ui/BdsCalendar.stories.tsx +1 -1
- package/src/web-components/ui/BdsCalendarRange.mdx +1 -1
- package/src/web-components/ui/BdsCalendarRange.stories.tsx +1 -1
- package/src/web-components/ui/BdsCard.mdx +1 -1
- package/src/web-components/ui/BdsCard.stories.tsx +1 -1
- package/src/web-components/ui/BdsCarousel.mdx +1 -1
- package/src/web-components/ui/BdsCarousel.stories.tsx +1 -1
- package/src/web-components/ui/BdsDescriptionList.mdx +1 -1
- package/src/web-components/ui/BdsDescriptionList.stories.tsx +1 -1
- package/src/web-components/ui/BdsIconWrapper.mdx +1 -1
- package/src/web-components/ui/BdsIconWrapper.stories.tsx +1 -1
- package/src/web-components/ui/BdsLink.mdx +1 -1
- package/src/web-components/ui/BdsLink.stories.tsx +1 -1
- package/src/web-components/ui/BdsLoading.mdx +1 -1
- package/src/web-components/ui/BdsLoading.stories.tsx +1 -1
- package/src/web-components/ui/BdsNotificationBanner.mdx +10 -1
- package/src/web-components/ui/BdsNotificationBanner.stories.tsx +29 -2
- package/src/web-components/ui/BdsPagination.mdx +1 -1
- package/src/web-components/ui/BdsPagination.stories.tsx +1 -1
- package/src/web-components/ui/BdsProgress.mdx +1 -1
- package/src/web-components/ui/BdsProgress.stories.tsx +1 -1
- package/src/web-components/ui/BdsProgressCircle.mdx +1 -1
- package/src/web-components/ui/BdsProgressCircle.stories.tsx +1 -1
- package/src/web-components/ui/BdsRating.mdx +1 -1
- package/src/web-components/ui/BdsRating.stories.tsx +1 -1
- package/src/web-components/ui/BdsSectionHeader.mdx +18 -6
- package/src/web-components/ui/BdsSectionHeader.stories.tsx +10 -2
- package/src/web-components/ui/BdsSeparator.mdx +2 -1
- package/src/web-components/ui/BdsSeparator.stories.tsx +13 -1
- package/src/web-components/ui/BdsSkeleton.mdx +1 -1
- package/src/web-components/ui/BdsSkeleton.stories.tsx +1 -1
- package/src/web-components/ui/BdsTable.mdx +5 -1
- package/src/web-components/ui/BdsTable.stories.tsx +1 -1
- package/src/web-components/ui/BdsTypography.mdx +1 -1
- package/src/web-components/ui/BdsTypography.stories.tsx +1 -1
- package/src/web-components/ui/bds-alert.spec.ts +27 -0
- package/src/web-components/ui/bds-alert.ts +34 -1
- package/src/web-components/ui/bds-avatar.spec.ts +47 -0
- package/src/web-components/ui/bds-avatar.ts +36 -3
- package/src/web-components/ui/bds-notification-banner.spec.ts +45 -0
- package/src/web-components/ui/bds-notification-banner.ts +53 -1
- package/src/web-components/ui/bds-section-header.spec.ts +36 -3
- package/src/web-components/ui/bds-section-header.ts +32 -10
- package/src/web-components/ui/bds-separator.spec.ts +8 -0
- package/src/web-components/ui/bds-separator.ts +7 -0
- package/src/web-components/ui/bds-table.spec.ts +11 -0
- package/src/web-components/ui/bds-table.ts +5 -5
- package/dist/web-components/chunk-QZAIRJ75.js +0 -111
package/dist/index.d.cts
CHANGED
|
@@ -22,19 +22,25 @@ declare function Accordion({ items, allowMultiple, defaultOpen, className, ...re
|
|
|
22
22
|
|
|
23
23
|
interface AlertProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
24
24
|
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
25
|
+
appearance?: 'default' | 'gradient';
|
|
25
26
|
icon?: ReactNode;
|
|
26
27
|
title?: string;
|
|
27
28
|
onDismiss?: () => void;
|
|
28
29
|
}
|
|
29
|
-
declare function Alert({ variant, icon, title, children, onDismiss, className, ...rest }: Readonly<AlertProps>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function Alert({ variant, appearance, icon, title, children, onDismiss, className, ...rest }: Readonly<AlertProps>): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare const AVATAR_TONES: readonly ["primary", "accent-1", "accent-2", "accent-3", "secondary"];
|
|
33
|
+
type AvatarToneName = (typeof AVATAR_TONES)[number];
|
|
34
|
+
type AvatarTone = 'auto' | AvatarToneName;
|
|
30
35
|
|
|
31
36
|
interface AvatarProps extends WithClassName, HTMLAttributes<HTMLSpanElement> {
|
|
32
37
|
src?: string;
|
|
33
38
|
alt?: string;
|
|
34
39
|
name?: string;
|
|
35
40
|
size?: 'small' | 'medium' | 'large';
|
|
41
|
+
tone?: AvatarTone;
|
|
36
42
|
}
|
|
37
|
-
declare function Avatar({ src, alt, name, size, className, ...rest }: Readonly<AvatarProps>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
declare function Avatar({ src, alt, name, size, tone, className, ...rest }: Readonly<AvatarProps>): react_jsx_runtime.JSX.Element;
|
|
38
44
|
|
|
39
45
|
interface BadgeProps extends WithClassName, HTMLAttributes<HTMLSpanElement> {
|
|
40
46
|
variant?: 'primary' | 'secondary' | 'success' | 'error' | 'warning';
|
|
@@ -155,11 +161,13 @@ declare function Loading({ size, className, 'aria-label': ariaLabel, ...rest }:
|
|
|
155
161
|
|
|
156
162
|
interface NotificationBannerProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
157
163
|
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
164
|
+
appearance?: 'default' | 'gradient';
|
|
165
|
+
icon?: ReactNode;
|
|
158
166
|
children: ReactNode;
|
|
159
167
|
action?: ReactNode;
|
|
160
168
|
onDismiss?: () => void;
|
|
161
169
|
}
|
|
162
|
-
declare function NotificationBanner({ variant, children, action, onDismiss, className, ...rest }: Readonly<NotificationBannerProps>): react_jsx_runtime.JSX.Element;
|
|
170
|
+
declare function NotificationBanner({ variant, appearance, icon, children, action, onDismiss, className, ...rest }: Readonly<NotificationBannerProps>): react_jsx_runtime.JSX.Element;
|
|
163
171
|
|
|
164
172
|
interface PaginationProps extends WithClassName, HTMLAttributes<HTMLElement> {
|
|
165
173
|
currentPage: number;
|
|
@@ -339,6 +347,12 @@ interface DropdownMenuItem {
|
|
|
339
347
|
disabled?: boolean;
|
|
340
348
|
icon?: ReactElement;
|
|
341
349
|
separator?: boolean;
|
|
350
|
+
/** Renders the item in the error colour, for actions that delete or discard. */
|
|
351
|
+
destructive?: boolean;
|
|
352
|
+
/** Keyboard shortcut as display text. Decorative (`aria-hidden`); the consumer wires the actual key. */
|
|
353
|
+
shortcut?: string;
|
|
354
|
+
/** Consecutive items with the same group render inside a labelled `role="group"`. */
|
|
355
|
+
group?: string;
|
|
342
356
|
}
|
|
343
357
|
interface DropdownMenuProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
344
358
|
trigger: ReactElement;
|
|
@@ -637,9 +651,10 @@ type SectionHeaderProps = WithClassName & Omit<HTMLAttributes<HTMLDivElement>, '
|
|
|
637
651
|
subtitle?: string;
|
|
638
652
|
alignment?: 'start' | 'center' | 'end';
|
|
639
653
|
size?: 'xs' | 'small' | 'medium' | 'large';
|
|
654
|
+
appearance?: 'default' | 'gradient';
|
|
640
655
|
titleAs?: IntrinsicElement;
|
|
641
656
|
};
|
|
642
|
-
declare function SectionHeader({ title, subtitle, className, alignment, size, titleAs, ...rest }: Readonly<SectionHeaderProps>): react_jsx_runtime.JSX.Element;
|
|
657
|
+
declare function SectionHeader({ title, subtitle, className, alignment, size, appearance, titleAs, ...rest }: Readonly<SectionHeaderProps>): react_jsx_runtime.JSX.Element;
|
|
643
658
|
|
|
644
659
|
interface IconWrapperProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
645
660
|
children: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,19 +22,25 @@ declare function Accordion({ items, allowMultiple, defaultOpen, className, ...re
|
|
|
22
22
|
|
|
23
23
|
interface AlertProps extends WithClassName, Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
24
24
|
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
25
|
+
appearance?: 'default' | 'gradient';
|
|
25
26
|
icon?: ReactNode;
|
|
26
27
|
title?: string;
|
|
27
28
|
onDismiss?: () => void;
|
|
28
29
|
}
|
|
29
|
-
declare function Alert({ variant, icon, title, children, onDismiss, className, ...rest }: Readonly<AlertProps>): react_jsx_runtime.JSX.Element;
|
|
30
|
+
declare function Alert({ variant, appearance, icon, title, children, onDismiss, className, ...rest }: Readonly<AlertProps>): react_jsx_runtime.JSX.Element;
|
|
31
|
+
|
|
32
|
+
declare const AVATAR_TONES: readonly ["primary", "accent-1", "accent-2", "accent-3", "secondary"];
|
|
33
|
+
type AvatarToneName = (typeof AVATAR_TONES)[number];
|
|
34
|
+
type AvatarTone = 'auto' | AvatarToneName;
|
|
30
35
|
|
|
31
36
|
interface AvatarProps extends WithClassName, HTMLAttributes<HTMLSpanElement> {
|
|
32
37
|
src?: string;
|
|
33
38
|
alt?: string;
|
|
34
39
|
name?: string;
|
|
35
40
|
size?: 'small' | 'medium' | 'large';
|
|
41
|
+
tone?: AvatarTone;
|
|
36
42
|
}
|
|
37
|
-
declare function Avatar({ src, alt, name, size, className, ...rest }: Readonly<AvatarProps>): react_jsx_runtime.JSX.Element;
|
|
43
|
+
declare function Avatar({ src, alt, name, size, tone, className, ...rest }: Readonly<AvatarProps>): react_jsx_runtime.JSX.Element;
|
|
38
44
|
|
|
39
45
|
interface BadgeProps extends WithClassName, HTMLAttributes<HTMLSpanElement> {
|
|
40
46
|
variant?: 'primary' | 'secondary' | 'success' | 'error' | 'warning';
|
|
@@ -155,11 +161,13 @@ declare function Loading({ size, className, 'aria-label': ariaLabel, ...rest }:
|
|
|
155
161
|
|
|
156
162
|
interface NotificationBannerProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
157
163
|
variant?: 'info' | 'success' | 'warning' | 'error';
|
|
164
|
+
appearance?: 'default' | 'gradient';
|
|
165
|
+
icon?: ReactNode;
|
|
158
166
|
children: ReactNode;
|
|
159
167
|
action?: ReactNode;
|
|
160
168
|
onDismiss?: () => void;
|
|
161
169
|
}
|
|
162
|
-
declare function NotificationBanner({ variant, children, action, onDismiss, className, ...rest }: Readonly<NotificationBannerProps>): react_jsx_runtime.JSX.Element;
|
|
170
|
+
declare function NotificationBanner({ variant, appearance, icon, children, action, onDismiss, className, ...rest }: Readonly<NotificationBannerProps>): react_jsx_runtime.JSX.Element;
|
|
163
171
|
|
|
164
172
|
interface PaginationProps extends WithClassName, HTMLAttributes<HTMLElement> {
|
|
165
173
|
currentPage: number;
|
|
@@ -339,6 +347,12 @@ interface DropdownMenuItem {
|
|
|
339
347
|
disabled?: boolean;
|
|
340
348
|
icon?: ReactElement;
|
|
341
349
|
separator?: boolean;
|
|
350
|
+
/** Renders the item in the error colour, for actions that delete or discard. */
|
|
351
|
+
destructive?: boolean;
|
|
352
|
+
/** Keyboard shortcut as display text. Decorative (`aria-hidden`); the consumer wires the actual key. */
|
|
353
|
+
shortcut?: string;
|
|
354
|
+
/** Consecutive items with the same group render inside a labelled `role="group"`. */
|
|
355
|
+
group?: string;
|
|
342
356
|
}
|
|
343
357
|
interface DropdownMenuProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
344
358
|
trigger: ReactElement;
|
|
@@ -637,9 +651,10 @@ type SectionHeaderProps = WithClassName & Omit<HTMLAttributes<HTMLDivElement>, '
|
|
|
637
651
|
subtitle?: string;
|
|
638
652
|
alignment?: 'start' | 'center' | 'end';
|
|
639
653
|
size?: 'xs' | 'small' | 'medium' | 'large';
|
|
654
|
+
appearance?: 'default' | 'gradient';
|
|
640
655
|
titleAs?: IntrinsicElement;
|
|
641
656
|
};
|
|
642
|
-
declare function SectionHeader({ title, subtitle, className, alignment, size, titleAs, ...rest }: Readonly<SectionHeaderProps>): react_jsx_runtime.JSX.Element;
|
|
657
|
+
declare function SectionHeader({ title, subtitle, className, alignment, size, appearance, titleAs, ...rest }: Readonly<SectionHeaderProps>): react_jsx_runtime.JSX.Element;
|
|
643
658
|
|
|
644
659
|
interface IconWrapperProps extends WithClassName, HTMLAttributes<HTMLDivElement> {
|
|
645
660
|
children: ReactNode;
|