@boostdev/design-system-components 2.15.0 → 2.17.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 +22 -15
- package/dist/client.cjs +271 -205
- package/dist/client.css +813 -650
- 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 +813 -650
- 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-3WAV6MDN.js → chunk-3FSGP35V.js} +1 -0
- package/dist/web-components/{chunk-SYNLFKD3.js → chunk-3LQKFSMR.js} +6 -0
- package/dist/web-components/{chunk-KA3VPKMY.js → chunk-4MB2ICSK.js} +1 -0
- package/dist/web-components/{chunk-6G22I2CK.js → chunk-5ATTKUCP.js} +33 -3
- 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-BPYKZVDK.js → chunk-SJLMW2VR.js} +2 -2
- 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-LDIPCTRN.js → chunk-WWWJCSXN.js} +50 -4
- 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 +35 -30
- 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-badge.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-rating.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/Rating/Rating.mdx +4 -1
- package/src/components/interaction/Rating/Rating.module.css +9 -0
- package/src/components/interaction/Rating/Rating.spec.tsx +9 -0
- 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 +2 -1
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css +8 -1
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.spec.tsx +27 -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 +2 -1
- package/src/components/interaction/form/RadioGroup/RadioGroup.module.css +8 -1
- package/src/components/interaction/form/RadioGroup/RadioGroup.spec.tsx +27 -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 +12 -1
- package/src/components/ui/Alert/Alert.module.css +32 -3
- package/src/components/ui/Alert/Alert.spec.tsx +27 -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/Badge/Badge.mdx +1 -1
- package/src/components/ui/Badge/Badge.module.css +2 -2
- package/src/components/ui/Badge/Badge.spec.tsx +8 -0
- package/src/components/ui/Collapsible/Collapsible.module.css +1 -2
- package/src/components/ui/NotificationBanner/NotificationBanner.mdx +27 -1
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +33 -3
- package/src/components/ui/NotificationBanner/NotificationBanner.spec.tsx +35 -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/test/token-contract.spec.ts +1 -0
- 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 +20 -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 +2 -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 +11 -2
- 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 +5 -2
- 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 +34 -0
- package/src/web-components/ui/bds-alert.ts +36 -3
- 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-badge.spec.ts +6 -0
- package/src/web-components/ui/bds-badge.ts +2 -2
- package/src/web-components/ui/bds-notification-banner.spec.ts +52 -0
- package/src/web-components/ui/bds-notification-banner.ts +55 -3
- package/src/web-components/ui/bds-rating.spec.ts +7 -0
- package/src/web-components/ui/bds-rating.ts +6 -0
- 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
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fieldMessageStyles,
|
|
3
|
+
renderFieldMessage
|
|
4
|
+
} from "./chunk-SRKQ6GST.js";
|
|
1
5
|
import {
|
|
2
6
|
A,
|
|
3
7
|
T,
|
|
@@ -47,19 +51,10 @@ var BdsRadioGroup = class extends i2 {
|
|
|
47
51
|
gap: var(--bds-space_xs);
|
|
48
52
|
}
|
|
49
53
|
|
|
54
|
+
${fieldMessageStyles}
|
|
55
|
+
|
|
50
56
|
.message {
|
|
51
57
|
margin-block-start: var(--bds-space_xs);
|
|
52
|
-
font-size: var(--bds-font_size--body--s);
|
|
53
|
-
font-family: var(--bds-font_family--body);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.message--error {
|
|
57
|
-
color: var(--bds-color_error);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.message--hint {
|
|
61
|
-
color: var(--bds-color_on-bg--subtle);
|
|
62
|
-
font-style: italic;
|
|
63
58
|
}
|
|
64
59
|
`;
|
|
65
60
|
static properties = {
|
|
@@ -103,9 +98,28 @@ var BdsRadioGroup = class extends i2 {
|
|
|
103
98
|
}
|
|
104
99
|
});
|
|
105
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* Propagates the group's `error` to slotted `<bds-radio>` elements so they show
|
|
103
|
+
* the error ring. A radio individually marked `error` in markup keeps it.
|
|
104
|
+
*/
|
|
105
|
+
_propagateError = () => {
|
|
106
|
+
this.querySelectorAll("bds-radio").forEach((radio) => {
|
|
107
|
+
const el = radio;
|
|
108
|
+
if (this.error) {
|
|
109
|
+
if (!el.hasAttribute("error")) {
|
|
110
|
+
el.setAttribute("data-bds-group-error", "");
|
|
111
|
+
}
|
|
112
|
+
el.setAttribute("error", "");
|
|
113
|
+
} else if (el.hasAttribute("data-bds-group-error")) {
|
|
114
|
+
el.removeAttribute("error");
|
|
115
|
+
el.removeAttribute("data-bds-group-error");
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
};
|
|
106
119
|
_propagateToRadios = () => {
|
|
107
120
|
this._propagateName();
|
|
108
121
|
this._propagateDisabled();
|
|
122
|
+
this._propagateError();
|
|
109
123
|
};
|
|
110
124
|
connectedCallback() {
|
|
111
125
|
super.connectedCallback();
|
|
@@ -113,7 +127,7 @@ var BdsRadioGroup = class extends i2 {
|
|
|
113
127
|
}
|
|
114
128
|
updated(changed) {
|
|
115
129
|
super.updated(changed);
|
|
116
|
-
if (changed.has("name") || changed.has("disabled")) {
|
|
130
|
+
if (changed.has("name") || changed.has("disabled") || changed.has("error")) {
|
|
117
131
|
this._propagateToRadios();
|
|
118
132
|
}
|
|
119
133
|
}
|
|
@@ -134,7 +148,7 @@ var BdsRadioGroup = class extends i2 {
|
|
|
134
148
|
<div class="items">
|
|
135
149
|
<slot @slotchange=${this._propagateToRadios}></slot>
|
|
136
150
|
</div>
|
|
137
|
-
${this.error ?
|
|
151
|
+
${this.error ? renderFieldMessage("error", errorId, this.error) : this.hint ? renderFieldMessage("hint", hintId, this.hint) : ""}
|
|
138
152
|
</fieldset>
|
|
139
153
|
`;
|
|
140
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-7VXRMCAL.js";
|
|
@@ -54,6 +54,7 @@ import * as lit from 'lit';
|
|
|
54
54
|
import { LitElement } from 'lit';
|
|
55
55
|
export { BdsDropdownMenu } from './interaction/bds-dropdown-menu.js';
|
|
56
56
|
export { BdsDropdownMenuItem } from './interaction/bds-dropdown-menu-item.js';
|
|
57
|
+
export { BdsDropdownMenuGroup } from './interaction/bds-dropdown-menu-group.js';
|
|
57
58
|
|
|
58
59
|
/**
|
|
59
60
|
* `<bds-calendar-range>` — form-associated range date picker.
|
|
@@ -1,36 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BdsGridItem
|
|
3
|
+
} from "./chunk-W6H5ID2U.js";
|
|
4
|
+
import {
|
|
5
|
+
BdsRadio
|
|
6
|
+
} from "./chunk-3FSGP35V.js";
|
|
1
7
|
import {
|
|
2
8
|
BdsRadioGroup
|
|
3
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YLDQOESI.js";
|
|
4
10
|
import {
|
|
5
11
|
BdsSegmentedControl
|
|
6
12
|
} from "./chunk-NTQ4TCUT.js";
|
|
7
13
|
import {
|
|
8
14
|
BdsSelect
|
|
9
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XJU7KITO.js";
|
|
10
16
|
import {
|
|
11
17
|
BdsSlider
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LHFUXZ52.js";
|
|
13
19
|
import {
|
|
14
20
|
BdsSwitch
|
|
15
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CKCPV347.js";
|
|
16
22
|
import {
|
|
17
23
|
BdsTextarea
|
|
18
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EYCW7TKB.js";
|
|
19
25
|
import {
|
|
20
26
|
BdsGrid
|
|
21
27
|
} from "./chunk-ITD2MV5K.js";
|
|
22
28
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./chunk-
|
|
29
|
+
BdsTooltip
|
|
30
|
+
} from "./chunk-RBF7WPLI.js";
|
|
25
31
|
import {
|
|
26
32
|
BdsCheckbox
|
|
27
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4MB2ICSK.js";
|
|
28
34
|
import {
|
|
29
35
|
BdsCheckboxGroup
|
|
30
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GPJWLAKU.js";
|
|
31
37
|
import {
|
|
32
38
|
BdsCombobox
|
|
33
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XI2U6U26.js";
|
|
34
40
|
import {
|
|
35
41
|
BdsFieldGroup
|
|
36
42
|
} from "./chunk-SEO2F5KJ.js";
|
|
@@ -39,16 +45,17 @@ import {
|
|
|
39
45
|
} from "./chunk-KZPRFY5P.js";
|
|
40
46
|
import {
|
|
41
47
|
BdsFormInput
|
|
42
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-AGI6YQRC.js";
|
|
43
49
|
import {
|
|
44
50
|
BdsNumberInput
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import
|
|
47
|
-
BdsRadio
|
|
48
|
-
} from "./chunk-3WAV6MDN.js";
|
|
51
|
+
} from "./chunk-GQNQBEYR.js";
|
|
52
|
+
import "./chunk-SRKQ6GST.js";
|
|
49
53
|
import {
|
|
50
54
|
BdsDropdownMenuItem
|
|
51
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2DHW2WJZ.js";
|
|
56
|
+
import {
|
|
57
|
+
BdsDropdownMenuGroup
|
|
58
|
+
} from "./chunk-BDRV452N.js";
|
|
52
59
|
import {
|
|
53
60
|
BdsPopover
|
|
54
61
|
} from "./chunk-PLWCDDP6.js";
|
|
@@ -57,7 +64,7 @@ import {
|
|
|
57
64
|
} from "./chunk-66M6ETWD.js";
|
|
58
65
|
import {
|
|
59
66
|
BdsTab
|
|
60
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-KSK4RZZQ.js";
|
|
61
68
|
import {
|
|
62
69
|
BdsTabPanel
|
|
63
70
|
} from "./chunk-WIBAN7KP.js";
|
|
@@ -67,9 +74,6 @@ import {
|
|
|
67
74
|
import {
|
|
68
75
|
BdsToastProvider
|
|
69
76
|
} from "./chunk-HRD3NOA3.js";
|
|
70
|
-
import {
|
|
71
|
-
BdsTooltip
|
|
72
|
-
} from "./chunk-M3ECULRH.js";
|
|
73
77
|
import {
|
|
74
78
|
BdsTypography
|
|
75
79
|
} from "./chunk-IPGHUCJT.js";
|
|
@@ -93,7 +97,7 @@ import {
|
|
|
93
97
|
} from "./chunk-SOYAOLKR.js";
|
|
94
98
|
import {
|
|
95
99
|
BdsDropdownMenu
|
|
96
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-6XL5P76D.js";
|
|
97
101
|
import {
|
|
98
102
|
BdsPagination
|
|
99
103
|
} from "./chunk-TMWXRHGF.js";
|
|
@@ -105,20 +109,20 @@ import {
|
|
|
105
109
|
} from "./chunk-7ZOJ7N4E.js";
|
|
106
110
|
import {
|
|
107
111
|
BdsRating
|
|
108
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-3LQKFSMR.js";
|
|
109
113
|
import {
|
|
110
114
|
BdsSectionHeader
|
|
111
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-DGOCPKHI.js";
|
|
112
116
|
import "./chunk-QPOKHLMQ.js";
|
|
113
117
|
import {
|
|
114
118
|
BdsSeparator
|
|
115
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-TJV7UIXC.js";
|
|
116
120
|
import {
|
|
117
121
|
BdsSkeleton
|
|
118
122
|
} from "./chunk-EF7IVYTY.js";
|
|
119
123
|
import {
|
|
120
124
|
BdsTable
|
|
121
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-DD3OUXNG.js";
|
|
122
126
|
import {
|
|
123
127
|
BdsCalendar,
|
|
124
128
|
buildMonthGrid,
|
|
@@ -154,17 +158,17 @@ import {
|
|
|
154
158
|
} from "./chunk-AIBOHNDU.js";
|
|
155
159
|
import {
|
|
156
160
|
BdsNotificationBanner
|
|
157
|
-
} from "./chunk-
|
|
158
|
-
import "./chunk-
|
|
161
|
+
} from "./chunk-WWWJCSXN.js";
|
|
162
|
+
import "./chunk-7VXRMCAL.js";
|
|
159
163
|
import {
|
|
160
164
|
BdsAlert
|
|
161
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-5ATTKUCP.js";
|
|
162
166
|
import {
|
|
163
167
|
BdsAvatar
|
|
164
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-IKAJLROF.js";
|
|
165
169
|
import {
|
|
166
170
|
BdsBadge
|
|
167
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-SJLMW2VR.js";
|
|
168
172
|
import {
|
|
169
173
|
BdsBreadcrumb
|
|
170
174
|
} from "./chunk-62NK3ZSC.js";
|
|
@@ -460,6 +464,7 @@ export {
|
|
|
460
464
|
BdsDialog,
|
|
461
465
|
BdsDrawer,
|
|
462
466
|
BdsDropdownMenu,
|
|
467
|
+
BdsDropdownMenuGroup,
|
|
463
468
|
BdsDropdownMenuItem,
|
|
464
469
|
BdsFieldGroup,
|
|
465
470
|
BdsFileInput,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as lit from 'lit';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `<bds-dropdown-menu-group>` — a labelled group of `<bds-dropdown-menu-item>`
|
|
6
|
+
* elements inside a `<bds-dropdown-menu>`.
|
|
7
|
+
*
|
|
8
|
+
* The shadow root renders a `role="group"` element named by the visible label
|
|
9
|
+
* (`aria-labelledby` inside the same shadow root). The label is not focusable;
|
|
10
|
+
* keyboard navigation in the menu only visits the items.
|
|
11
|
+
*
|
|
12
|
+
* Attributes:
|
|
13
|
+
* label — visible group label, also the accessible name of the group
|
|
14
|
+
*
|
|
15
|
+
* Slots:
|
|
16
|
+
* (default) — `<bds-dropdown-menu-item>` elements
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <bds-dropdown-menu-group label="Edit">
|
|
20
|
+
* <bds-dropdown-menu-item value="edit">Edit</bds-dropdown-menu-item>
|
|
21
|
+
* </bds-dropdown-menu-group>
|
|
22
|
+
*/
|
|
23
|
+
declare class BdsDropdownMenuGroup extends LitElement {
|
|
24
|
+
static styles: lit.CSSResult;
|
|
25
|
+
static properties: {
|
|
26
|
+
label: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
reflect: boolean;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
label: string;
|
|
32
|
+
constructor();
|
|
33
|
+
render(): lit.TemplateResult<1>;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'bds-dropdown-menu-group': BdsDropdownMenuGroup;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { BdsDropdownMenuGroup };
|
|
@@ -7,9 +7,12 @@ import { LitElement } from 'lit';
|
|
|
7
7
|
* Attributes:
|
|
8
8
|
* value — value associated with this item
|
|
9
9
|
* disabled — disables this item
|
|
10
|
-
* destructive — renders the item in a destructive (
|
|
10
|
+
* destructive — renders the item in a destructive (error colour) style
|
|
11
|
+
* shortcut — keyboard shortcut as display text (decorative, `aria-hidden`);
|
|
12
|
+
* the consumer wires the actual key
|
|
11
13
|
*
|
|
12
14
|
* Slots:
|
|
15
|
+
* icon — optional icon shown before the label (decorative)
|
|
13
16
|
* (default) — item label text
|
|
14
17
|
*
|
|
15
18
|
* Events:
|
|
@@ -33,11 +36,21 @@ declare class BdsDropdownMenuItem extends LitElement {
|
|
|
33
36
|
type: BooleanConstructor;
|
|
34
37
|
reflect: boolean;
|
|
35
38
|
};
|
|
39
|
+
shortcut: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
reflect: boolean;
|
|
42
|
+
};
|
|
43
|
+
_hasIcon: {
|
|
44
|
+
state: boolean;
|
|
45
|
+
};
|
|
36
46
|
};
|
|
37
47
|
value: string;
|
|
38
48
|
disabled: boolean;
|
|
39
49
|
destructive: boolean;
|
|
50
|
+
shortcut: string;
|
|
51
|
+
_hasIcon: boolean;
|
|
40
52
|
constructor();
|
|
53
|
+
private _onIconSlotChange;
|
|
41
54
|
private _handleClick;
|
|
42
55
|
private _handleKeydown;
|
|
43
56
|
render(): lit.TemplateResult<1>;
|
|
@@ -18,7 +18,8 @@ type DropdownMenuPlacement = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-
|
|
|
18
18
|
*
|
|
19
19
|
* Slots:
|
|
20
20
|
* trigger — the activating element (button or similar)
|
|
21
|
-
* (default) — `<bds-dropdown-menu-item>` elements
|
|
21
|
+
* (default) — `<bds-dropdown-menu-item>` elements, optionally wrapped in
|
|
22
|
+
* `<bds-dropdown-menu-group label="...">`
|
|
22
23
|
*
|
|
23
24
|
* Events:
|
|
24
25
|
* bds-open — fired when the menu opens
|
|
@@ -27,12 +27,17 @@ declare class BdsTab extends LitElement {
|
|
|
27
27
|
type: BooleanConstructor;
|
|
28
28
|
reflect: boolean;
|
|
29
29
|
};
|
|
30
|
+
_label: {
|
|
31
|
+
state: boolean;
|
|
32
|
+
};
|
|
30
33
|
};
|
|
31
34
|
selected: boolean;
|
|
32
35
|
disabled: boolean;
|
|
36
|
+
private _label;
|
|
33
37
|
constructor();
|
|
34
38
|
/** Called by `bds-tabs` to focus the inner button for keyboard navigation. */
|
|
35
39
|
focusButton(): void;
|
|
40
|
+
private _handleSlotChange;
|
|
36
41
|
private _handleClick;
|
|
37
42
|
render(): lit.TemplateResult<1>;
|
|
38
43
|
}
|
|
@@ -70,6 +70,12 @@ declare class BdsCheckboxGroup extends LitElement {
|
|
|
70
70
|
* stays disabled.
|
|
71
71
|
*/
|
|
72
72
|
private _propagateDisabled;
|
|
73
|
+
/**
|
|
74
|
+
* Propagates the group's `error` to slotted `<bds-checkbox>` elements so they
|
|
75
|
+
* show the error ring. A checkbox individually marked `error` in markup keeps it.
|
|
76
|
+
*/
|
|
77
|
+
private _propagateError;
|
|
78
|
+
private _propagateToCheckboxes;
|
|
73
79
|
connectedCallback(): void;
|
|
74
80
|
updated(changed: Map<string, unknown>): void;
|
|
75
81
|
render(): lit.TemplateResult<1>;
|
|
@@ -67,6 +67,11 @@ declare class BdsRadioGroup extends LitElement {
|
|
|
67
67
|
* a radio individually marked `disabled` in markup stays disabled.
|
|
68
68
|
*/
|
|
69
69
|
private _propagateDisabled;
|
|
70
|
+
/**
|
|
71
|
+
* Propagates the group's `error` to slotted `<bds-radio>` elements so they show
|
|
72
|
+
* the error ring. A radio individually marked `error` in markup keeps it.
|
|
73
|
+
*/
|
|
74
|
+
private _propagateError;
|
|
70
75
|
private _propagateToRadios;
|
|
71
76
|
connectedCallback(): void;
|
|
72
77
|
updated(changed: Map<string, unknown>): void;
|
|
@@ -2,11 +2,13 @@ import * as lit from 'lit';
|
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
|
|
4
4
|
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
type AlertAppearance = 'default' | 'gradient';
|
|
5
6
|
/**
|
|
6
7
|
* `<bds-alert>` — framework-agnostic Alert custom element.
|
|
7
8
|
*
|
|
8
9
|
* Attributes:
|
|
9
10
|
* variant — "info" (default) | "success" | "warning" | "error"
|
|
11
|
+
* appearance — "default" | "gradient" (fades the tint to the surface, 3px accent line, shadow)
|
|
10
12
|
* heading — optional heading above the body text
|
|
11
13
|
* title — deprecated alias for `heading`. Collides with the global HTML
|
|
12
14
|
* `title` attribute, which triggers a native browser tooltip on
|
|
@@ -40,6 +42,10 @@ declare class BdsAlert extends LitElement {
|
|
|
40
42
|
type: StringConstructor;
|
|
41
43
|
reflect: boolean;
|
|
42
44
|
};
|
|
45
|
+
appearance: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
reflect: boolean;
|
|
48
|
+
};
|
|
43
49
|
heading: {
|
|
44
50
|
type: StringConstructor;
|
|
45
51
|
};
|
|
@@ -55,6 +61,7 @@ declare class BdsAlert extends LitElement {
|
|
|
55
61
|
};
|
|
56
62
|
};
|
|
57
63
|
variant: AlertVariant;
|
|
64
|
+
appearance: AlertAppearance;
|
|
58
65
|
heading: string;
|
|
59
66
|
/**
|
|
60
67
|
* @deprecated Use `heading` instead. Sharing the name with the global HTML
|
|
@@ -77,4 +84,4 @@ declare global {
|
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
|
|
80
|
-
export { type AlertVariant, BdsAlert };
|
|
87
|
+
export { type AlertAppearance, type AlertVariant, BdsAlert };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { LitElement } from 'lit';
|
|
3
3
|
|
|
4
|
+
declare const AVATAR_TONES: readonly ["primary", "accent-1", "accent-2", "accent-3", "secondary"];
|
|
5
|
+
type AvatarToneName = (typeof AVATAR_TONES)[number];
|
|
6
|
+
type AvatarTone = 'auto' | AvatarToneName;
|
|
7
|
+
|
|
4
8
|
/**
|
|
5
9
|
* `<bds-avatar>` — framework-agnostic Avatar custom element.
|
|
6
10
|
*
|
|
@@ -12,6 +16,8 @@ import { LitElement } from 'lit';
|
|
|
12
16
|
* explicitly to mark the image as decorative (silences the accessible name).
|
|
13
17
|
* name — full name; used to compute initials and as fallback aria-label
|
|
14
18
|
* size — "small" | "medium" (default) | "large"
|
|
19
|
+
* tone — "auto" (default, picked from `name`) | "primary" | "secondary" |
|
|
20
|
+
* "accent-1" | "accent-2" | "accent-3"; colours the initials fallback
|
|
15
21
|
*
|
|
16
22
|
* @example
|
|
17
23
|
* <bds-avatar src="/photo.jpg" name="Jane Doe"></bds-avatar>
|
|
@@ -33,11 +39,16 @@ declare class BdsAvatar extends LitElement {
|
|
|
33
39
|
type: StringConstructor;
|
|
34
40
|
reflect: boolean;
|
|
35
41
|
};
|
|
42
|
+
tone: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
reflect: boolean;
|
|
45
|
+
};
|
|
36
46
|
};
|
|
37
47
|
src: string;
|
|
38
48
|
alt: string;
|
|
39
49
|
name: string;
|
|
40
50
|
size: 'small' | 'medium' | 'large';
|
|
51
|
+
tone: AvatarTone;
|
|
41
52
|
constructor();
|
|
42
53
|
private get _initials();
|
|
43
54
|
render(): lit.TemplateResult<1>;
|