@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
package/dist/index.cjs
CHANGED
|
@@ -92,7 +92,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
92
92
|
var import_react = require("react");
|
|
93
93
|
|
|
94
94
|
// src/components/ui/Accordion/Accordion.module.css
|
|
95
|
-
var Accordion_default = {"component":"
|
|
95
|
+
var Accordion_default = {"component":"bds2170Accordion-component","accordion":"bds2170Accordion-accordion","item":"bds2170Accordion-item","heading":"bds2170Accordion-heading","trigger":"bds2170Accordion-trigger","triggerLabel":"bds2170Accordion-triggerLabel","chevron":"bds2170Accordion-chevron","--open":"bds2170Accordion---open","panel":"bds2170Accordion-panel","panelContent":"bds2170Accordion-panelContent"};
|
|
96
96
|
|
|
97
97
|
// src/components/ui/Accordion/Accordion.tsx
|
|
98
98
|
var import_design_system_foundation = require("@boostdev/design-system-foundation");
|
|
@@ -161,13 +161,14 @@ function Accordion({
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
// src/components/ui/Alert/Alert.module.css
|
|
164
|
-
var Alert_default = {"component":"
|
|
164
|
+
var Alert_default = {"component":"bds2170Alert-component","alert":"bds2170Alert-alert","--variant_info":"bds2170Alert---variant_info","--variant_success":"bds2170Alert---variant_success","--variant_warning":"bds2170Alert---variant_warning","--variant_error":"bds2170Alert---variant_error","--appearance_gradient":"bds2170Alert---appearance_gradient","icon":"bds2170Alert-icon","content":"bds2170Alert-content","title":"bds2170Alert-title","dismiss":"bds2170Alert-dismiss"};
|
|
165
165
|
|
|
166
166
|
// src/components/ui/Alert/Alert.tsx
|
|
167
167
|
var import_design_system_foundation2 = require("@boostdev/design-system-foundation");
|
|
168
168
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
169
169
|
function Alert({
|
|
170
170
|
variant = "info",
|
|
171
|
+
appearance = "default",
|
|
171
172
|
icon,
|
|
172
173
|
title,
|
|
173
174
|
children,
|
|
@@ -183,7 +184,12 @@ function Alert({
|
|
|
183
184
|
role: isUrgent ? "alert" : "status",
|
|
184
185
|
"aria-live": isUrgent ? "assertive" : "polite",
|
|
185
186
|
"aria-atomic": "true",
|
|
186
|
-
className: (0, import_design_system_foundation2.cn)(
|
|
187
|
+
className: (0, import_design_system_foundation2.cn)(
|
|
188
|
+
Alert_default.alert,
|
|
189
|
+
Alert_default[`--variant_${variant}`],
|
|
190
|
+
appearance === "gradient" && Alert_default["--appearance_gradient"],
|
|
191
|
+
className
|
|
192
|
+
),
|
|
187
193
|
children: [
|
|
188
194
|
icon && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: Alert_default.icon, "aria-hidden": "true", children: icon }),
|
|
189
195
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: Alert_default.content, children: [
|
|
@@ -206,15 +212,33 @@ function Alert({
|
|
|
206
212
|
}
|
|
207
213
|
|
|
208
214
|
// src/components/ui/Avatar/Avatar.module.css
|
|
209
|
-
var Avatar_default = {"component":"
|
|
215
|
+
var Avatar_default = {"component":"bds2170Avatar-component","avatar":"bds2170Avatar-avatar","--fallback":"bds2170Avatar---fallback","--tone_primary":"bds2170Avatar---tone_primary","--tone_secondary":"bds2170Avatar---tone_secondary","--tone_accent-1":"bds2170Avatar---tone_accent-1","--tone_accent-2":"bds2170Avatar---tone_accent-2","--tone_accent-3":"bds2170Avatar---tone_accent-3","--size_small":"bds2170Avatar---size_small","--size_medium":"bds2170Avatar---size_medium","--size_large":"bds2170Avatar---size_large","image":"bds2170Avatar-image","initials":"bds2170Avatar-initials"};
|
|
210
216
|
|
|
211
217
|
// src/components/ui/Avatar/Avatar.tsx
|
|
212
218
|
var import_design_system_foundation3 = require("@boostdev/design-system-foundation");
|
|
219
|
+
|
|
220
|
+
// src/components/ui/Avatar/avatarTone.ts
|
|
221
|
+
var AVATAR_TONES = ["primary", "accent-1", "accent-2", "accent-3", "secondary"];
|
|
222
|
+
function toneFromName(name) {
|
|
223
|
+
const normalised = (name ?? "").trim().toLowerCase();
|
|
224
|
+
if (!normalised) return "primary";
|
|
225
|
+
const hash = [...normalised].reduce(
|
|
226
|
+
(h, ch) => Math.imul(h, 31) + (ch.codePointAt(0) ?? 0) >>> 0,
|
|
227
|
+
0
|
|
228
|
+
);
|
|
229
|
+
return AVATAR_TONES[hash % AVATAR_TONES.length];
|
|
230
|
+
}
|
|
231
|
+
function resolveAvatarTone(tone, name) {
|
|
232
|
+
const isKnownTone = (value) => AVATAR_TONES.some((known) => known === value);
|
|
233
|
+
return tone && isKnownTone(tone) ? tone : toneFromName(name);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// src/components/ui/Avatar/Avatar.tsx
|
|
213
237
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
214
238
|
function getInitials(name) {
|
|
215
239
|
return name.split(" ").filter(Boolean).slice(0, 2).map((word) => word[0].toUpperCase()).join("");
|
|
216
240
|
}
|
|
217
|
-
function Avatar({ src, alt, name, size = "medium", className, ...rest }) {
|
|
241
|
+
function Avatar({ src, alt, name, size = "medium", tone = "auto", className, ...rest }) {
|
|
218
242
|
const sizeClass = Avatar_default[`--size_${size}`];
|
|
219
243
|
if (src) {
|
|
220
244
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { ...rest, className: (0, import_design_system_foundation3.cn)(Avatar_default.avatar, sizeClass, className), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src, alt: alt ?? name ?? "User avatar", className: Avatar_default.image }) });
|
|
@@ -226,14 +250,14 @@ function Avatar({ src, alt, name, size = "medium", className, ...rest }) {
|
|
|
226
250
|
...rest,
|
|
227
251
|
role: "img",
|
|
228
252
|
"aria-label": name ?? "User avatar",
|
|
229
|
-
className: (0, import_design_system_foundation3.cn)(Avatar_default.avatar, Avatar_default["--fallback"], sizeClass, className),
|
|
253
|
+
className: (0, import_design_system_foundation3.cn)(Avatar_default.avatar, Avatar_default["--fallback"], Avatar_default[`--tone_${resolveAvatarTone(tone, name)}`], sizeClass, className),
|
|
230
254
|
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: Avatar_default.initials, "aria-hidden": "true", children: initials })
|
|
231
255
|
}
|
|
232
256
|
);
|
|
233
257
|
}
|
|
234
258
|
|
|
235
259
|
// src/components/ui/Badge/Badge.module.css
|
|
236
|
-
var Badge_default = {"component":"
|
|
260
|
+
var Badge_default = {"component":"bds2170Badge-component","badge":"bds2170Badge-badge","--variant_primary":"bds2170Badge---variant_primary","--variant_secondary":"bds2170Badge---variant_secondary","--variant_success":"bds2170Badge---variant_success","--variant_error":"bds2170Badge---variant_error","--variant_warning":"bds2170Badge---variant_warning"};
|
|
237
261
|
|
|
238
262
|
// src/components/ui/Badge/Badge.tsx
|
|
239
263
|
var import_design_system_foundation4 = require("@boostdev/design-system-foundation");
|
|
@@ -243,7 +267,7 @@ function Badge({ children, variant = "primary", className, ...rest }) {
|
|
|
243
267
|
}
|
|
244
268
|
|
|
245
269
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
246
|
-
var Breadcrumb_default = {"component":"
|
|
270
|
+
var Breadcrumb_default = {"component":"bds2170Breadcrumb-component","breadcrumb":"bds2170Breadcrumb-breadcrumb","list":"bds2170Breadcrumb-list","item":"bds2170Breadcrumb-item","link":"bds2170Breadcrumb-link","separator":"bds2170Breadcrumb-separator","text":"bds2170Breadcrumb-text","current":"bds2170Breadcrumb-current"};
|
|
247
271
|
|
|
248
272
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
249
273
|
var import_design_system_foundation5 = require("@boostdev/design-system-foundation");
|
|
@@ -259,7 +283,7 @@ function Breadcrumb({ items, className, ...rest }) {
|
|
|
259
283
|
}
|
|
260
284
|
|
|
261
285
|
// src/components/ui/Collapsible/Collapsible.module.css
|
|
262
|
-
var Collapsible_default = {"component":"
|
|
286
|
+
var Collapsible_default = {"component":"bds2170Collapsible-component","collapsible":"bds2170Collapsible-collapsible","summary":"bds2170Collapsible-summary","summaryContent":"bds2170Collapsible-summaryContent","icon":"bds2170Collapsible-icon","content":"bds2170Collapsible-content"};
|
|
263
287
|
|
|
264
288
|
// src/components/ui/Collapsible/Collapsible.tsx
|
|
265
289
|
var import_design_system_foundation6 = require("@boostdev/design-system-foundation");
|
|
@@ -308,7 +332,7 @@ var import_react2 = require("react");
|
|
|
308
332
|
var import_design_system_foundation8 = require("@boostdev/design-system-foundation");
|
|
309
333
|
|
|
310
334
|
// src/components/ui/Calendar/Calendar.module.css
|
|
311
|
-
var Calendar_default = {"component":"
|
|
335
|
+
var Calendar_default = {"component":"bds2170Calendar-component","calendar":"bds2170Calendar-calendar","months":"bds2170Calendar-months","month":"bds2170Calendar-month","monthHeader":"bds2170Calendar-monthHeader","navSlot":"bds2170Calendar-navSlot","monthYear":"bds2170Calendar-monthYear","navBtn":"bds2170Calendar-navBtn","grid":"bds2170Calendar-grid","row":"bds2170Calendar-row","weekday":"bds2170Calendar-weekday","cell":"bds2170Calendar-cell","day":"bds2170Calendar-day","disabled":"bds2170Calendar-disabled","selected":"bds2170Calendar-selected","rangeStart":"bds2170Calendar-rangeStart","rangeEnd":"bds2170Calendar-rangeEnd","outside":"bds2170Calendar-outside","today":"bds2170Calendar-today","inRange":"bds2170Calendar-inRange"};
|
|
312
336
|
|
|
313
337
|
// src/components/ui/Calendar/MonthGrid.tsx
|
|
314
338
|
var import_design_system_foundation7 = require("@boostdev/design-system-foundation");
|
|
@@ -797,7 +821,7 @@ function CalendarRange({
|
|
|
797
821
|
var import_react4 = require("react");
|
|
798
822
|
|
|
799
823
|
// src/components/ui/Carousel/Carousel.module.css
|
|
800
|
-
var Carousel_default = {"component":"
|
|
824
|
+
var Carousel_default = {"component":"bds2170Carousel-component","carousel":"bds2170Carousel-carousel","track":"bds2170Carousel-track","slide":"bds2170Carousel-slide","navBtn":"bds2170Carousel-navBtn"};
|
|
801
825
|
|
|
802
826
|
// src/components/ui/Carousel/Carousel.tsx
|
|
803
827
|
var import_design_system_foundation10 = require("@boostdev/design-system-foundation");
|
|
@@ -855,7 +879,7 @@ function Carousel({ items, label, className, ...rest }) {
|
|
|
855
879
|
}
|
|
856
880
|
|
|
857
881
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
858
|
-
var DescriptionList_default = {"component":"
|
|
882
|
+
var DescriptionList_default = {"component":"bds2170DescriptionList-component","list":"bds2170DescriptionList-list","group":"bds2170DescriptionList-group","term":"bds2170DescriptionList-term","details":"bds2170DescriptionList-details","--layout_inline":"bds2170DescriptionList---layout_inline"};
|
|
859
883
|
|
|
860
884
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
861
885
|
var import_design_system_foundation11 = require("@boostdev/design-system-foundation");
|
|
@@ -868,7 +892,7 @@ function DescriptionList({ items, layout = "stacked", className, ...rest }) {
|
|
|
868
892
|
}
|
|
869
893
|
|
|
870
894
|
// src/components/ui/Link/Link.module.css
|
|
871
|
-
var Link_default = {"component":"
|
|
895
|
+
var Link_default = {"component":"bds2170Link-component","link":"bds2170Link-link","--variant_default":"bds2170Link---variant_default","--variant_subtle":"bds2170Link---variant_subtle","--variant_standalone":"bds2170Link---variant_standalone","externalLabel":"bds2170Link-externalLabel"};
|
|
872
896
|
|
|
873
897
|
// src/components/ui/Link/Link.tsx
|
|
874
898
|
var import_design_system_foundation12 = require("@boostdev/design-system-foundation");
|
|
@@ -899,7 +923,7 @@ function Link({
|
|
|
899
923
|
}
|
|
900
924
|
|
|
901
925
|
// src/components/ui/Loading/Loading.module.css
|
|
902
|
-
var Loading_default = {"component":"
|
|
926
|
+
var Loading_default = {"component":"bds2170Loading-component","loading":"bds2170Loading-loading","spinner":"bds2170Loading-spinner","--size_small":"bds2170Loading---size_small","--size_large":"bds2170Loading---size_large"};
|
|
903
927
|
|
|
904
928
|
// src/components/ui/Loading/Loading.tsx
|
|
905
929
|
var import_design_system_foundation13 = require("@boostdev/design-system-foundation");
|
|
@@ -918,13 +942,15 @@ function Loading({ size = "medium", className, "aria-label": ariaLabel, ...rest
|
|
|
918
942
|
}
|
|
919
943
|
|
|
920
944
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
921
|
-
var NotificationBanner_default = {"component":"
|
|
945
|
+
var NotificationBanner_default = {"component":"bds2170NotificationBanner-component","banner":"bds2170NotificationBanner-banner","--variant_info":"bds2170NotificationBanner---variant_info","--variant_success":"bds2170NotificationBanner---variant_success","--variant_warning":"bds2170NotificationBanner---variant_warning","--variant_error":"bds2170NotificationBanner---variant_error","--appearance_gradient":"bds2170NotificationBanner---appearance_gradient","icon":"bds2170NotificationBanner-icon","content":"bds2170NotificationBanner-content","action":"bds2170NotificationBanner-action","dismiss":"bds2170NotificationBanner-dismiss"};
|
|
922
946
|
|
|
923
947
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
924
948
|
var import_design_system_foundation14 = require("@boostdev/design-system-foundation");
|
|
925
949
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
926
950
|
function NotificationBanner({
|
|
927
951
|
variant = "info",
|
|
952
|
+
appearance = "default",
|
|
953
|
+
icon,
|
|
928
954
|
children,
|
|
929
955
|
action,
|
|
930
956
|
onDismiss,
|
|
@@ -939,8 +965,14 @@ function NotificationBanner({
|
|
|
939
965
|
role: isUrgent ? "alert" : "status",
|
|
940
966
|
"aria-live": isUrgent ? "assertive" : "polite",
|
|
941
967
|
"aria-atomic": "true",
|
|
942
|
-
className: (0, import_design_system_foundation14.cn)(
|
|
968
|
+
className: (0, import_design_system_foundation14.cn)(
|
|
969
|
+
NotificationBanner_default.banner,
|
|
970
|
+
NotificationBanner_default[`--variant_${variant}`],
|
|
971
|
+
appearance === "gradient" && NotificationBanner_default["--appearance_gradient"],
|
|
972
|
+
className
|
|
973
|
+
),
|
|
943
974
|
children: [
|
|
975
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: NotificationBanner_default.icon, "aria-hidden": "true", children: icon }),
|
|
944
976
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: NotificationBanner_default.content, children }),
|
|
945
977
|
action && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: NotificationBanner_default.action, children: action }),
|
|
946
978
|
onDismiss && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
@@ -959,7 +991,7 @@ function NotificationBanner({
|
|
|
959
991
|
}
|
|
960
992
|
|
|
961
993
|
// src/components/ui/Pagination/Pagination.module.css
|
|
962
|
-
var Pagination_default = {"component":"
|
|
994
|
+
var Pagination_default = {"component":"bds2170Pagination-component","pagination":"bds2170Pagination-pagination","list":"bds2170Pagination-list","button":"bds2170Pagination-button","--active":"bds2170Pagination---active","--nav":"bds2170Pagination---nav","ellipsis":"bds2170Pagination-ellipsis"};
|
|
963
995
|
|
|
964
996
|
// src/components/ui/Pagination/Pagination.tsx
|
|
965
997
|
var import_design_system_foundation15 = require("@boostdev/design-system-foundation");
|
|
@@ -1024,7 +1056,7 @@ function Pagination({
|
|
|
1024
1056
|
}
|
|
1025
1057
|
|
|
1026
1058
|
// src/components/ui/Progress/Progress.module.css
|
|
1027
|
-
var Progress_default = {"component":"
|
|
1059
|
+
var Progress_default = {"component":"bds2170Progress-component","container":"bds2170Progress-container","labelRow":"bds2170Progress-labelRow","value":"bds2170Progress-value","track":"bds2170Progress-track","--size_small":"bds2170Progress---size_small","--size_medium":"bds2170Progress---size_medium","--size_large":"bds2170Progress---size_large","fill":"bds2170Progress-fill"};
|
|
1028
1060
|
|
|
1029
1061
|
// src/components/ui/Progress/Progress.tsx
|
|
1030
1062
|
var import_design_system_foundation16 = require("@boostdev/design-system-foundation");
|
|
@@ -1063,7 +1095,7 @@ function Progress({
|
|
|
1063
1095
|
}
|
|
1064
1096
|
|
|
1065
1097
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
1066
|
-
var ProgressCircle_default = {"component":"
|
|
1098
|
+
var ProgressCircle_default = {"component":"bds2170ProgressCircle-component","wrapper":"bds2170ProgressCircle-wrapper","svg":"bds2170ProgressCircle-svg","track":"bds2170ProgressCircle-track","fill":"bds2170ProgressCircle-fill","value":"bds2170ProgressCircle-value","--size_small":"bds2170ProgressCircle---size_small","--size_medium":"bds2170ProgressCircle---size_medium","--size_large":"bds2170ProgressCircle---size_large"};
|
|
1067
1099
|
|
|
1068
1100
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
1069
1101
|
var import_design_system_foundation17 = require("@boostdev/design-system-foundation");
|
|
@@ -1144,7 +1176,7 @@ function ProgressCircle({
|
|
|
1144
1176
|
}
|
|
1145
1177
|
|
|
1146
1178
|
// src/components/ui/Separator/Separator.module.css
|
|
1147
|
-
var Separator_default = {"component":"
|
|
1179
|
+
var Separator_default = {"component":"bds2170Separator-component","separator":"bds2170Separator-separator","--horizontal":"bds2170Separator---horizontal","--vertical":"bds2170Separator---vertical"};
|
|
1148
1180
|
|
|
1149
1181
|
// src/components/ui/Separator/Separator.tsx
|
|
1150
1182
|
var import_design_system_foundation18 = require("@boostdev/design-system-foundation");
|
|
@@ -1168,7 +1200,7 @@ function Separator({ orientation = "horizontal", className, ...rest }) {
|
|
|
1168
1200
|
var import_design_system_foundation19 = require("@boostdev/design-system-foundation");
|
|
1169
1201
|
|
|
1170
1202
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
1171
|
-
var Skeleton_default = {"component":"
|
|
1203
|
+
var Skeleton_default = {"component":"bds2170Skeleton-component","skeleton":"bds2170Skeleton-skeleton"};
|
|
1172
1204
|
|
|
1173
1205
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
1174
1206
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
@@ -1177,7 +1209,7 @@ function Skeleton({ className, ...rest }) {
|
|
|
1177
1209
|
}
|
|
1178
1210
|
|
|
1179
1211
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
1180
|
-
var SkipLink_default = {"component":"
|
|
1212
|
+
var SkipLink_default = {"component":"bds2170SkipLink-component","skipLink":"bds2170SkipLink-skipLink"};
|
|
1181
1213
|
|
|
1182
1214
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
1183
1215
|
var import_design_system_foundation20 = require("@boostdev/design-system-foundation");
|
|
@@ -1190,7 +1222,7 @@ function SkipLink({ href = "#main", children = "Skip to main content", className
|
|
|
1190
1222
|
var import_react5 = require("react");
|
|
1191
1223
|
|
|
1192
1224
|
// src/components/ui/Table/Table.module.css
|
|
1193
|
-
var Table_default = {"component":"
|
|
1225
|
+
var Table_default = {"component":"bds2170Table-component","wrapper":"bds2170Table-wrapper","table":"bds2170Table-table","caption":"bds2170Table-caption","thead":"bds2170Table-thead","th":"bds2170Table-th","--sortable":"bds2170Table---sortable","sortButton":"bds2170Table-sortButton","sortIcon":"bds2170Table-sortIcon","--sort-active":"bds2170Table---sort-active","--sort-desc":"bds2170Table---sort-desc","tbody":"bds2170Table-tbody","tr":"bds2170Table-tr","td":"bds2170Table-td"};
|
|
1194
1226
|
|
|
1195
1227
|
// src/components/ui/Table/Table.tsx
|
|
1196
1228
|
var import_design_system_foundation21 = require("@boostdev/design-system-foundation");
|
|
@@ -1279,21 +1311,32 @@ function Table({
|
|
|
1279
1311
|
}
|
|
1280
1312
|
|
|
1281
1313
|
// src/components/ui/Tabs/Tabs.tsx
|
|
1282
|
-
var
|
|
1314
|
+
var import_react7 = require("react");
|
|
1283
1315
|
|
|
1284
1316
|
// src/components/ui/Tabs/Tabs.module.css
|
|
1285
|
-
var Tabs_default = {"component":"
|
|
1317
|
+
var Tabs_default = {"component":"bds2170Tabs-component","tabs":"bds2170Tabs-tabs","tabList":"bds2170Tabs-tabList","tab":"bds2170Tabs-tab","label":"bds2170Tabs-label","--active":"bds2170Tabs---active","panel":"bds2170Tabs-panel"};
|
|
1286
1318
|
|
|
1287
1319
|
// src/components/ui/Tabs/Tabs.tsx
|
|
1288
1320
|
var import_design_system_foundation22 = require("@boostdev/design-system-foundation");
|
|
1321
|
+
|
|
1322
|
+
// src/components/ui/Tabs/getNodeText.ts
|
|
1323
|
+
var import_react6 = require("react");
|
|
1324
|
+
function getNodeText(node) {
|
|
1325
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
1326
|
+
if (Array.isArray(node)) return node.map(getNodeText).join("");
|
|
1327
|
+
if ((0, import_react6.isValidElement)(node)) return getNodeText(node.props.children);
|
|
1328
|
+
return "";
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
// src/components/ui/Tabs/Tabs.tsx
|
|
1289
1332
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1290
1333
|
function Tabs({ tabs, defaultTab, className, ...rest }) {
|
|
1291
|
-
const baseId = (0,
|
|
1292
|
-
const [activeTab, setActiveTab] = (0,
|
|
1334
|
+
const baseId = (0, import_react7.useId)();
|
|
1335
|
+
const [activeTab, setActiveTab] = (0, import_react7.useState)(() => {
|
|
1293
1336
|
const initialTab = tabs.find((tab) => tab.id === defaultTab && !tab.disabled) ?? tabs.find((tab) => !tab.disabled);
|
|
1294
1337
|
return initialTab?.id;
|
|
1295
1338
|
});
|
|
1296
|
-
const tabRefs = (0,
|
|
1339
|
+
const tabRefs = (0, import_react7.useRef)([]);
|
|
1297
1340
|
const enabledIndexes = tabs.map((tab, i) => ({ tab, i })).filter(({ tab }) => !tab.disabled).map(({ i }) => i);
|
|
1298
1341
|
const handleKeyDown = (e, index) => {
|
|
1299
1342
|
const pos = enabledIndexes.indexOf(index);
|
|
@@ -1336,7 +1379,7 @@ function Tabs({ tabs, defaultTab, className, ...rest }) {
|
|
|
1336
1379
|
className: (0, import_design_system_foundation22.cn)(Tabs_default.tab, isActive ? Tabs_default["--active"] : void 0),
|
|
1337
1380
|
onClick: () => setActiveTab(tab.id),
|
|
1338
1381
|
onKeyDown: (e) => handleKeyDown(e, i),
|
|
1339
|
-
children: tab.label
|
|
1382
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: Tabs_default.label, "data-label": getNodeText(tab.label), children: tab.label })
|
|
1340
1383
|
},
|
|
1341
1384
|
tab.id
|
|
1342
1385
|
);
|
|
@@ -1363,10 +1406,10 @@ function Tabs({ tabs, defaultTab, className, ...rest }) {
|
|
|
1363
1406
|
}
|
|
1364
1407
|
|
|
1365
1408
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
1366
|
-
var
|
|
1409
|
+
var import_react8 = require("react");
|
|
1367
1410
|
|
|
1368
1411
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
1369
|
-
var Tooltip_default = {"component":"
|
|
1412
|
+
var Tooltip_default = {"component":"bds2170Tooltip-component","wrapper":"bds2170Tooltip-wrapper","tooltip":"bds2170Tooltip-tooltip","--visible":"bds2170Tooltip---visible","--placement_top":"bds2170Tooltip---placement_top","--placement_bottom":"bds2170Tooltip---placement_bottom","--placement_left":"bds2170Tooltip---placement_left","--placement_right":"bds2170Tooltip---placement_right"};
|
|
1370
1413
|
|
|
1371
1414
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
1372
1415
|
var import_design_system_foundation23 = require("@boostdev/design-system-foundation");
|
|
@@ -1378,8 +1421,8 @@ function Tooltip({
|
|
|
1378
1421
|
className,
|
|
1379
1422
|
...rest
|
|
1380
1423
|
}) {
|
|
1381
|
-
const tooltipId = (0,
|
|
1382
|
-
const [isVisible, setIsVisible] = (0,
|
|
1424
|
+
const tooltipId = (0, import_react8.useId)();
|
|
1425
|
+
const [isVisible, setIsVisible] = (0, import_react8.useState)(false);
|
|
1383
1426
|
const show = () => setIsVisible(true);
|
|
1384
1427
|
const hide = () => setIsVisible(false);
|
|
1385
1428
|
const handleKeyDown = (event) => {
|
|
@@ -1387,7 +1430,7 @@ function Tooltip({
|
|
|
1387
1430
|
hide();
|
|
1388
1431
|
}
|
|
1389
1432
|
};
|
|
1390
|
-
const trigger = (0,
|
|
1433
|
+
const trigger = (0, import_react8.isValidElement)(children) ? (0, import_react8.cloneElement)(children, {
|
|
1391
1434
|
"aria-describedby": tooltipId
|
|
1392
1435
|
}) : children;
|
|
1393
1436
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
@@ -1418,7 +1461,7 @@ function Tooltip({
|
|
|
1418
1461
|
}
|
|
1419
1462
|
|
|
1420
1463
|
// src/components/ui/Typography/Typography.module.css
|
|
1421
|
-
var Typography_default = {"component":"
|
|
1464
|
+
var Typography_default = {"component":"bds2170Typography-component","typography":"bds2170Typography-typography","--h1":"bds2170Typography---h1","--h2":"bds2170Typography---h2","--h3":"bds2170Typography---h3","--body":"bds2170Typography---body","--body_s":"bds2170Typography---body_s"};
|
|
1422
1465
|
|
|
1423
1466
|
// src/components/ui/Typography/Typography.tsx
|
|
1424
1467
|
var import_design_system_foundation24 = require("@boostdev/design-system-foundation");
|
|
@@ -1436,7 +1479,7 @@ function Typography({ variant = "body", component, children, className, ...rest
|
|
|
1436
1479
|
}
|
|
1437
1480
|
|
|
1438
1481
|
// src/components/interaction/Button/Button.module.css
|
|
1439
|
-
var Button_default = {"component":"
|
|
1482
|
+
var Button_default = {"component":"bds2170Button-component","button":"bds2170Button-button","--default":"bds2170Button---default","--outline":"bds2170Button---outline","--ghost":"bds2170Button---ghost","--size_small":"bds2170Button---size_small","--size_medium":"bds2170Button---size_medium","--size_large":"bds2170Button---size_large","--hasPulse":"bds2170Button---hasPulse","iconStart":"bds2170Button-iconStart","iconEnd":"bds2170Button-iconEnd","--iconOnly":"bds2170Button---iconOnly"};
|
|
1440
1483
|
|
|
1441
1484
|
// src/components/interaction/Button/Button.tsx
|
|
1442
1485
|
var import_design_system_foundation25 = require("@boostdev/design-system-foundation");
|
|
@@ -1511,7 +1554,7 @@ function Button({
|
|
|
1511
1554
|
}
|
|
1512
1555
|
|
|
1513
1556
|
// src/components/interaction/Command/Command.tsx
|
|
1514
|
-
var
|
|
1557
|
+
var import_react9 = require("react");
|
|
1515
1558
|
|
|
1516
1559
|
// src/polyfill-invoker-commands.ts
|
|
1517
1560
|
var installed = false;
|
|
@@ -1553,7 +1596,7 @@ function installInvokerCommandsPolyfill() {
|
|
|
1553
1596
|
}
|
|
1554
1597
|
|
|
1555
1598
|
// src/components/interaction/Command/Command.module.css
|
|
1556
|
-
var Command_default = {"component":"
|
|
1599
|
+
var Command_default = {"component":"bds2170Command-component","dialog":"bds2170Command-dialog","palette":"bds2170Command-palette","searchRow":"bds2170Command-searchRow","searchIcon":"bds2170Command-searchIcon","search":"bds2170Command-search","escHint":"bds2170Command-escHint","list":"bds2170Command-list","groupList":"bds2170Command-groupList","group":"bds2170Command-group","item":"bds2170Command-item","itemActive":"bds2170Command-itemActive","itemLabel":"bds2170Command-itemLabel","itemDesc":"bds2170Command-itemDesc","shortcut":"bds2170Command-shortcut","empty":"bds2170Command-empty","srOnly":"bds2170Command-srOnly"};
|
|
1557
1600
|
|
|
1558
1601
|
// src/components/interaction/Command/Command.tsx
|
|
1559
1602
|
var import_design_system_foundation26 = require("@boostdev/design-system-foundation");
|
|
@@ -1569,20 +1612,20 @@ function Command({
|
|
|
1569
1612
|
className,
|
|
1570
1613
|
...rest
|
|
1571
1614
|
}) {
|
|
1572
|
-
const [query, setQuery] = (0,
|
|
1573
|
-
const [activeIndex, setActiveIndex] = (0,
|
|
1574
|
-
const generatedId = (0,
|
|
1615
|
+
const [query, setQuery] = (0, import_react9.useState)("");
|
|
1616
|
+
const [activeIndex, setActiveIndex] = (0, import_react9.useState)(0);
|
|
1617
|
+
const generatedId = (0, import_react9.useId)();
|
|
1575
1618
|
const dialogId = idProp ?? generatedId;
|
|
1576
|
-
const dialogRef = (0,
|
|
1577
|
-
const inputRef = (0,
|
|
1578
|
-
const listboxId = (0,
|
|
1579
|
-
const filtered = (0,
|
|
1619
|
+
const dialogRef = (0, import_react9.useRef)(null);
|
|
1620
|
+
const inputRef = (0, import_react9.useRef)(null);
|
|
1621
|
+
const listboxId = (0, import_react9.useId)();
|
|
1622
|
+
const filtered = (0, import_react9.useMemo)(() => {
|
|
1580
1623
|
const q = query.toLowerCase().trim();
|
|
1581
1624
|
return q ? items.filter(
|
|
1582
1625
|
(item) => item.label.toLowerCase().includes(q) || item.description?.toLowerCase().includes(q)
|
|
1583
1626
|
) : items;
|
|
1584
1627
|
}, [query, items]);
|
|
1585
|
-
const groups = (0,
|
|
1628
|
+
const groups = (0, import_react9.useMemo)(() => {
|
|
1586
1629
|
const map = /* @__PURE__ */ new Map();
|
|
1587
1630
|
filtered.forEach((item) => {
|
|
1588
1631
|
const g = item.group ?? "";
|
|
@@ -1592,8 +1635,8 @@ function Command({
|
|
|
1592
1635
|
});
|
|
1593
1636
|
return map;
|
|
1594
1637
|
}, [filtered]);
|
|
1595
|
-
const triggerRef = (0,
|
|
1596
|
-
(0,
|
|
1638
|
+
const triggerRef = (0, import_react9.useRef)(null);
|
|
1639
|
+
(0, import_react9.useEffect)(() => {
|
|
1597
1640
|
const dialog = dialogRef.current;
|
|
1598
1641
|
if (!dialog) return;
|
|
1599
1642
|
if (isOpen && !dialog.open) {
|
|
@@ -1612,10 +1655,10 @@ function Command({
|
|
|
1612
1655
|
document.body.style.overflow = "";
|
|
1613
1656
|
};
|
|
1614
1657
|
}, [isOpen]);
|
|
1615
|
-
(0,
|
|
1658
|
+
(0, import_react9.useEffect)(() => {
|
|
1616
1659
|
setActiveIndex(0);
|
|
1617
1660
|
}, [query]);
|
|
1618
|
-
(0,
|
|
1661
|
+
(0, import_react9.useEffect)(() => {
|
|
1619
1662
|
const dialog = dialogRef.current;
|
|
1620
1663
|
if (!dialog) return;
|
|
1621
1664
|
const handleCommand = (e) => {
|
|
@@ -1732,10 +1775,10 @@ function Command({
|
|
|
1732
1775
|
}
|
|
1733
1776
|
|
|
1734
1777
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1735
|
-
var
|
|
1778
|
+
var import_react10 = require("react");
|
|
1736
1779
|
|
|
1737
1780
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1738
|
-
var Dialog_default = {"component":"
|
|
1781
|
+
var Dialog_default = {"component":"bds2170Dialog-component","dialog":"bds2170Dialog-dialog","dialogContent":"bds2170Dialog-dialogContent","closeButton":"bds2170Dialog-closeButton"};
|
|
1739
1782
|
|
|
1740
1783
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1741
1784
|
var import_design_system_foundation27 = require("@boostdev/design-system-foundation");
|
|
@@ -1743,11 +1786,11 @@ var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
|
1743
1786
|
installInvokerCommandsPolyfill();
|
|
1744
1787
|
var FOCUSABLE_SELECTOR = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
1745
1788
|
function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClose, ...rest }) {
|
|
1746
|
-
const generatedId = (0,
|
|
1789
|
+
const generatedId = (0, import_react10.useId)();
|
|
1747
1790
|
const id = idProp ?? generatedId;
|
|
1748
|
-
const dialogRef = (0,
|
|
1749
|
-
const triggerRef = (0,
|
|
1750
|
-
(0,
|
|
1791
|
+
const dialogRef = (0, import_react10.useRef)(null);
|
|
1792
|
+
const triggerRef = (0, import_react10.useRef)(null);
|
|
1793
|
+
(0, import_react10.useEffect)(() => {
|
|
1751
1794
|
const dialog = dialogRef.current;
|
|
1752
1795
|
if (!dialog) return;
|
|
1753
1796
|
if (isOpen && !dialog.open) {
|
|
@@ -1763,7 +1806,7 @@ function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClo
|
|
|
1763
1806
|
document.body.style.overflow = "";
|
|
1764
1807
|
};
|
|
1765
1808
|
}, [isOpen]);
|
|
1766
|
-
(0,
|
|
1809
|
+
(0, import_react10.useEffect)(() => {
|
|
1767
1810
|
const dialog = dialogRef.current;
|
|
1768
1811
|
if (!dialog) return;
|
|
1769
1812
|
const handleCommand = (e) => {
|
|
@@ -1840,10 +1883,10 @@ function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClo
|
|
|
1840
1883
|
}
|
|
1841
1884
|
|
|
1842
1885
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1843
|
-
var
|
|
1886
|
+
var import_react11 = require("react");
|
|
1844
1887
|
|
|
1845
1888
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1846
|
-
var Drawer_default = {"component":"
|
|
1889
|
+
var Drawer_default = {"component":"bds2170Drawer-component","drawer":"bds2170Drawer-drawer","--side_left":"bds2170Drawer---side_left","header":"bds2170Drawer-header","closeButton":"bds2170Drawer-closeButton","body":"bds2170Drawer-body"};
|
|
1847
1890
|
|
|
1848
1891
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1849
1892
|
var import_design_system_foundation28 = require("@boostdev/design-system-foundation");
|
|
@@ -1861,13 +1904,13 @@ function Drawer({
|
|
|
1861
1904
|
className,
|
|
1862
1905
|
...rest
|
|
1863
1906
|
}) {
|
|
1864
|
-
const generatedId = (0,
|
|
1907
|
+
const generatedId = (0, import_react11.useId)();
|
|
1865
1908
|
const id = idProp ?? generatedId;
|
|
1866
|
-
const titleId = (0,
|
|
1909
|
+
const titleId = (0, import_react11.useId)();
|
|
1867
1910
|
const hasCustomLabel = "aria-label" in rest || "aria-labelledby" in rest;
|
|
1868
|
-
const dialogRef = (0,
|
|
1869
|
-
const triggerRef = (0,
|
|
1870
|
-
(0,
|
|
1911
|
+
const dialogRef = (0, import_react11.useRef)(null);
|
|
1912
|
+
const triggerRef = (0, import_react11.useRef)(null);
|
|
1913
|
+
(0, import_react11.useEffect)(() => {
|
|
1871
1914
|
const dialog = dialogRef.current;
|
|
1872
1915
|
if (!dialog) return;
|
|
1873
1916
|
if (isOpen && !dialog.open) {
|
|
@@ -1883,7 +1926,7 @@ function Drawer({
|
|
|
1883
1926
|
document.body.style.overflow = "";
|
|
1884
1927
|
};
|
|
1885
1928
|
}, [isOpen]);
|
|
1886
|
-
(0,
|
|
1929
|
+
(0, import_react11.useEffect)(() => {
|
|
1887
1930
|
const dialog = dialogRef.current;
|
|
1888
1931
|
if (!dialog) return;
|
|
1889
1932
|
const handleCommand = (e) => {
|
|
@@ -1962,14 +2005,19 @@ function Drawer({
|
|
|
1962
2005
|
}
|
|
1963
2006
|
|
|
1964
2007
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1965
|
-
var
|
|
2008
|
+
var import_react12 = require("react");
|
|
1966
2009
|
|
|
1967
2010
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1968
|
-
var DropdownMenu_default = {"component":"
|
|
2011
|
+
var DropdownMenu_default = {"component":"bds2170DropdownMenu-component","wrapper":"bds2170DropdownMenu-wrapper","menu":"bds2170DropdownMenu-menu","--placement_bottom-start":"bds2170DropdownMenu---placement_bottom-start","--placement_bottom-end":"bds2170DropdownMenu---placement_bottom-end","separatorRow":"bds2170DropdownMenu-separatorRow","separator":"bds2170DropdownMenu-separator","group":"bds2170DropdownMenu-group","groupLabel":"bds2170DropdownMenu-groupLabel","item":"bds2170DropdownMenu-item","--destructive":"bds2170DropdownMenu---destructive","label":"bds2170DropdownMenu-label","shortcut":"bds2170DropdownMenu-shortcut","icon":"bds2170DropdownMenu-icon"};
|
|
1969
2012
|
|
|
1970
2013
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1971
2014
|
var import_design_system_foundation29 = require("@boostdev/design-system-foundation");
|
|
1972
2015
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
2016
|
+
var toSegments = (items) => items.reduce((segments, item, index) => {
|
|
2017
|
+
const last = segments[segments.length - 1];
|
|
2018
|
+
const startsNewSegment = !last || item.group === void 0 || last[0].item.group !== item.group;
|
|
2019
|
+
return startsNewSegment ? [...segments, [{ item, index }]] : [...segments.slice(0, -1), [...last, { item, index }]];
|
|
2020
|
+
}, []);
|
|
1973
2021
|
function DropdownMenu({
|
|
1974
2022
|
trigger,
|
|
1975
2023
|
items,
|
|
@@ -1977,11 +2025,11 @@ function DropdownMenu({
|
|
|
1977
2025
|
className,
|
|
1978
2026
|
...rest
|
|
1979
2027
|
}) {
|
|
1980
|
-
const [isOpen, setIsOpen] = (0,
|
|
1981
|
-
const containerRef = (0,
|
|
1982
|
-
const menuId = (0,
|
|
1983
|
-
const itemRefs = (0,
|
|
1984
|
-
const triggerRef = (0,
|
|
2028
|
+
const [isOpen, setIsOpen] = (0, import_react12.useState)(false);
|
|
2029
|
+
const containerRef = (0, import_react12.useRef)(null);
|
|
2030
|
+
const menuId = (0, import_react12.useId)();
|
|
2031
|
+
const itemRefs = (0, import_react12.useRef)([]);
|
|
2032
|
+
const triggerRef = (0, import_react12.useRef)(null);
|
|
1985
2033
|
const open = () => {
|
|
1986
2034
|
triggerRef.current = document.activeElement;
|
|
1987
2035
|
setIsOpen(true);
|
|
@@ -1992,7 +2040,7 @@ function DropdownMenu({
|
|
|
1992
2040
|
triggerRef.current?.focus();
|
|
1993
2041
|
}
|
|
1994
2042
|
};
|
|
1995
|
-
(0,
|
|
2043
|
+
(0, import_react12.useEffect)(() => {
|
|
1996
2044
|
if (isOpen) {
|
|
1997
2045
|
const firstEnabledIndex = items.findIndex((item) => !item.disabled);
|
|
1998
2046
|
if (firstEnabledIndex !== -1) {
|
|
@@ -2000,7 +2048,7 @@ function DropdownMenu({
|
|
|
2000
2048
|
}
|
|
2001
2049
|
}
|
|
2002
2050
|
}, [isOpen]);
|
|
2003
|
-
(0,
|
|
2051
|
+
(0, import_react12.useEffect)(() => {
|
|
2004
2052
|
if (!isOpen) return;
|
|
2005
2053
|
const handlePointerDown = (e) => {
|
|
2006
2054
|
if (!containerRef.current?.contains(e.target)) close();
|
|
@@ -2034,7 +2082,7 @@ function DropdownMenu({
|
|
|
2034
2082
|
close();
|
|
2035
2083
|
}
|
|
2036
2084
|
};
|
|
2037
|
-
const triggerEl = (0,
|
|
2085
|
+
const triggerEl = (0, import_react12.isValidElement)(trigger) ? (0, import_react12.cloneElement)(trigger, {
|
|
2038
2086
|
"aria-haspopup": "menu",
|
|
2039
2087
|
"aria-expanded": isOpen,
|
|
2040
2088
|
"aria-controls": menuId,
|
|
@@ -2056,40 +2104,54 @@ function DropdownMenu({
|
|
|
2056
2104
|
id: menuId,
|
|
2057
2105
|
role: "menu",
|
|
2058
2106
|
className: (0, import_design_system_foundation29.cn)(DropdownMenu_default.menu, DropdownMenu_default[`--placement_${placement}`]),
|
|
2059
|
-
children: items.map((
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2107
|
+
children: toSegments(items).map((segment) => {
|
|
2108
|
+
const { item: first } = segment[0];
|
|
2109
|
+
const groupLabel = first.group;
|
|
2110
|
+
const renderSeparator = () => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { role: "presentation", className: DropdownMenu_default.separatorRow, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("hr", { className: DropdownMenu_default.separator, role: "separator" }) });
|
|
2111
|
+
const leadingSeparator = groupLabel !== void 0 && first.separator;
|
|
2112
|
+
const rows = segment.map(({ item, index }, position) => /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react12.Fragment, { children: [
|
|
2113
|
+
item.separator && !(leadingSeparator && position === 0) && renderSeparator(),
|
|
2114
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { role: "presentation", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2115
|
+
"button",
|
|
2116
|
+
{
|
|
2117
|
+
ref: (el) => {
|
|
2118
|
+
itemRefs.current[index] = el;
|
|
2119
|
+
},
|
|
2120
|
+
type: "button",
|
|
2121
|
+
role: "menuitem",
|
|
2122
|
+
disabled: item.disabled,
|
|
2123
|
+
className: (0, import_design_system_foundation29.cn)(DropdownMenu_default.item, item.destructive && DropdownMenu_default["--destructive"]),
|
|
2124
|
+
onClick: () => {
|
|
2125
|
+
item.onClick?.();
|
|
2126
|
+
close(true);
|
|
2127
|
+
},
|
|
2128
|
+
onKeyDown: (e) => handleItemKeyDown(e, index),
|
|
2129
|
+
children: [
|
|
2130
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: DropdownMenu_default.icon, "aria-hidden": "true", children: item.icon }),
|
|
2131
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: DropdownMenu_default.label, children: item.label }),
|
|
2132
|
+
item.shortcut && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: DropdownMenu_default.shortcut, "aria-hidden": "true", children: item.shortcut })
|
|
2133
|
+
]
|
|
2134
|
+
}
|
|
2135
|
+
) })
|
|
2136
|
+
] }, item.id));
|
|
2137
|
+
return groupLabel === void 0 ? rows : /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_react12.Fragment, { children: [
|
|
2138
|
+
leadingSeparator && renderSeparator(),
|
|
2139
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { role: "presentation", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("ul", { role: "group", "aria-labelledby": `${menuId}-group-${first.id}`, className: DropdownMenu_default.group, children: [
|
|
2140
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", { role: "presentation", id: `${menuId}-group-${first.id}`, className: DropdownMenu_default.groupLabel, children: groupLabel }),
|
|
2141
|
+
rows
|
|
2142
|
+
] }) })
|
|
2143
|
+
] }, `group-${first.id}`);
|
|
2144
|
+
})
|
|
2083
2145
|
}
|
|
2084
2146
|
)
|
|
2085
2147
|
] });
|
|
2086
2148
|
}
|
|
2087
2149
|
|
|
2088
2150
|
// src/components/interaction/Popover/Popover.tsx
|
|
2089
|
-
var
|
|
2151
|
+
var import_react13 = require("react");
|
|
2090
2152
|
|
|
2091
2153
|
// src/components/interaction/Popover/Popover.module.css
|
|
2092
|
-
var Popover_default = {"component":"
|
|
2154
|
+
var Popover_default = {"component":"bds2170Popover-component","wrapper":"bds2170Popover-wrapper","panel":"bds2170Popover-panel","g":"bds2170Popover-g"};
|
|
2093
2155
|
|
|
2094
2156
|
// src/components/interaction/Popover/Popover.tsx
|
|
2095
2157
|
var import_design_system_foundation30 = require("@boostdev/design-system-foundation");
|
|
@@ -2107,13 +2169,13 @@ function Popover({
|
|
|
2107
2169
|
"aria-label": ariaLabel,
|
|
2108
2170
|
...rest
|
|
2109
2171
|
}) {
|
|
2110
|
-
const [isOpen, setIsOpen] = (0,
|
|
2111
|
-
const containerRef = (0,
|
|
2112
|
-
const panelRef = (0,
|
|
2113
|
-
const rawId = (0,
|
|
2172
|
+
const [isOpen, setIsOpen] = (0, import_react13.useState)(false);
|
|
2173
|
+
const containerRef = (0, import_react13.useRef)(null);
|
|
2174
|
+
const panelRef = (0, import_react13.useRef)(null);
|
|
2175
|
+
const rawId = (0, import_react13.useId)();
|
|
2114
2176
|
const anchorName = `--popover-${rawId.replace(/\W/g, "") || "a"}`;
|
|
2115
2177
|
const panelId = rawId;
|
|
2116
|
-
(0,
|
|
2178
|
+
(0, import_react13.useEffect)(() => {
|
|
2117
2179
|
const panel = panelRef.current;
|
|
2118
2180
|
if (!panel) return;
|
|
2119
2181
|
const handleToggle = (e) => {
|
|
@@ -2122,7 +2184,7 @@ function Popover({
|
|
|
2122
2184
|
panel.addEventListener("toggle", handleToggle);
|
|
2123
2185
|
return () => panel.removeEventListener("toggle", handleToggle);
|
|
2124
2186
|
}, []);
|
|
2125
|
-
(0,
|
|
2187
|
+
(0, import_react13.useEffect)(() => {
|
|
2126
2188
|
if (!isOpen) return;
|
|
2127
2189
|
const handleScroll = () => {
|
|
2128
2190
|
const rect = containerRef.current?.getBoundingClientRect();
|
|
@@ -2139,7 +2201,7 @@ function Popover({
|
|
|
2139
2201
|
window.removeEventListener("resize", handleScroll);
|
|
2140
2202
|
};
|
|
2141
2203
|
}, [isOpen]);
|
|
2142
|
-
const trigger = (0,
|
|
2204
|
+
const trigger = (0, import_react13.isValidElement)(children) ? (0, import_react13.cloneElement)(children, {
|
|
2143
2205
|
"aria-expanded": isOpen,
|
|
2144
2206
|
"aria-controls": panelId,
|
|
2145
2207
|
commandfor: panelId,
|
|
@@ -2185,7 +2247,7 @@ function Popover({
|
|
|
2185
2247
|
}
|
|
2186
2248
|
|
|
2187
2249
|
// src/components/interaction/Rating/Rating.module.css
|
|
2188
|
-
var Rating_default = {"component":"
|
|
2250
|
+
var Rating_default = {"component":"bds2170Rating-component","rating":"bds2170Rating-rating","star":"bds2170Rating-star","--filled":"bds2170Rating---filled"};
|
|
2189
2251
|
|
|
2190
2252
|
// src/components/interaction/Rating/Rating.tsx
|
|
2191
2253
|
var import_design_system_foundation31 = require("@boostdev/design-system-foundation");
|
|
@@ -2214,31 +2276,31 @@ function Rating({ value, max = 5, className, ...rest }) {
|
|
|
2214
2276
|
}
|
|
2215
2277
|
|
|
2216
2278
|
// src/components/interaction/Toast/Toast.tsx
|
|
2217
|
-
var
|
|
2279
|
+
var import_react14 = require("react");
|
|
2218
2280
|
|
|
2219
2281
|
// src/components/interaction/Toast/Toast.module.css
|
|
2220
|
-
var Toast_default = {"component":"
|
|
2282
|
+
var Toast_default = {"component":"bds2170Toast-component","toastContainer":"bds2170Toast-toastContainer","toast":"bds2170Toast-toast","md":"bds2170Toast-md","--variant_success":"bds2170Toast---variant_success","--variant_warning":"bds2170Toast---variant_warning","--variant_info":"bds2170Toast---variant_info","--variant_error":"bds2170Toast---variant_error","message":"bds2170Toast-message","closeButton":"bds2170Toast-closeButton"};
|
|
2221
2283
|
|
|
2222
2284
|
// src/components/interaction/Toast/Toast.tsx
|
|
2223
2285
|
var import_design_system_foundation32 = require("@boostdev/design-system-foundation");
|
|
2224
2286
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2225
2287
|
var _ToastContext;
|
|
2226
2288
|
function getToastContext() {
|
|
2227
|
-
_ToastContext ??= (0,
|
|
2289
|
+
_ToastContext ??= (0, import_react14.createContext)(void 0);
|
|
2228
2290
|
return _ToastContext;
|
|
2229
2291
|
}
|
|
2230
2292
|
function ToastProvider({ children }) {
|
|
2231
2293
|
const ToastContext = getToastContext();
|
|
2232
|
-
const [toasts, setToasts] = (0,
|
|
2233
|
-
const containerRef = (0,
|
|
2234
|
-
const showToast = (0,
|
|
2294
|
+
const [toasts, setToasts] = (0, import_react14.useState)([]);
|
|
2295
|
+
const containerRef = (0, import_react14.useRef)(null);
|
|
2296
|
+
const showToast = (0, import_react14.useCallback)((message, variant) => {
|
|
2235
2297
|
const id = Math.random().toString(36).substring(2, 9);
|
|
2236
2298
|
setToasts((prev) => [...prev, { id, message, variant }]);
|
|
2237
2299
|
}, []);
|
|
2238
|
-
const removeToast = (0,
|
|
2300
|
+
const removeToast = (0, import_react14.useCallback)((id) => {
|
|
2239
2301
|
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
2240
2302
|
}, []);
|
|
2241
|
-
(0,
|
|
2303
|
+
(0, import_react14.useEffect)(() => {
|
|
2242
2304
|
const container = containerRef.current;
|
|
2243
2305
|
if (!container) return;
|
|
2244
2306
|
if (toasts.length > 0) {
|
|
@@ -2253,7 +2315,7 @@ function ToastProvider({ children }) {
|
|
|
2253
2315
|
}
|
|
2254
2316
|
}
|
|
2255
2317
|
}, [toasts.length]);
|
|
2256
|
-
const value = (0,
|
|
2318
|
+
const value = (0, import_react14.useMemo)(() => ({ showToast }), [showToast]);
|
|
2257
2319
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(ToastContext.Provider, { value, children: [
|
|
2258
2320
|
children,
|
|
2259
2321
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
@@ -2277,7 +2339,7 @@ function ToastProvider({ children }) {
|
|
|
2277
2339
|
] });
|
|
2278
2340
|
}
|
|
2279
2341
|
function ToastItem({ toast, onRemove }) {
|
|
2280
|
-
(0,
|
|
2342
|
+
(0, import_react14.useEffect)(() => {
|
|
2281
2343
|
const timer = setTimeout(() => onRemove(toast.id), 5e3);
|
|
2282
2344
|
return () => clearTimeout(timer);
|
|
2283
2345
|
}, [onRemove, toast.id]);
|
|
@@ -2287,7 +2349,7 @@ function ToastItem({ toast, onRemove }) {
|
|
|
2287
2349
|
] });
|
|
2288
2350
|
}
|
|
2289
2351
|
function useToast() {
|
|
2290
|
-
const context = (0,
|
|
2352
|
+
const context = (0, import_react14.useContext)(getToastContext());
|
|
2291
2353
|
if (!context) {
|
|
2292
2354
|
throw new Error("useToast must be used within a ToastProvider");
|
|
2293
2355
|
}
|
|
@@ -2295,24 +2357,27 @@ function useToast() {
|
|
|
2295
2357
|
}
|
|
2296
2358
|
|
|
2297
2359
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
2298
|
-
var
|
|
2360
|
+
var import_react15 = require("react");
|
|
2299
2361
|
|
|
2300
2362
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
2301
|
-
var Checkbox_default = {"component":"
|
|
2363
|
+
var Checkbox_default = {"component":"bds2170Checkbox-component","checkboxGroup":"bds2170Checkbox-checkboxGroup","inputWrapper":"bds2170Checkbox-inputWrapper","checkbox":"bds2170Checkbox-checkbox","checkboxError":"bds2170Checkbox-checkboxError"};
|
|
2302
2364
|
|
|
2303
2365
|
// src/components/interaction/form/atoms/Message.module.css
|
|
2304
|
-
var Message_default = {"component":"
|
|
2366
|
+
var Message_default = {"component":"bds2170Message-component","error":"bds2170Message-error","hint":"bds2170Message-hint","icon":"bds2170Message-icon"};
|
|
2305
2367
|
|
|
2306
2368
|
// src/components/interaction/form/atoms/Message.tsx
|
|
2307
2369
|
var import_design_system_foundation33 = require("@boostdev/design-system-foundation");
|
|
2308
2370
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2309
2371
|
var Message = ({ message, type, inputId, className }) => {
|
|
2310
2372
|
if (!message) return null;
|
|
2311
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.
|
|
2373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("p", { id: inputId + type, role: type === "error" ? "alert" : void 0, className: (0, import_design_system_foundation33.cn)(Message_default[type], className), children: [
|
|
2374
|
+
type === "error" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("svg", { className: Message_default.icon, "aria-hidden": "true", viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("path", { d: "M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z" }) }),
|
|
2375
|
+
message
|
|
2376
|
+
] });
|
|
2312
2377
|
};
|
|
2313
2378
|
|
|
2314
2379
|
// src/components/interaction/form/atoms/Label.module.css
|
|
2315
|
-
var Label_default = {"component":"
|
|
2380
|
+
var Label_default = {"component":"bds2170Label-component","label":"bds2170Label-label"};
|
|
2316
2381
|
|
|
2317
2382
|
// src/components/interaction/form/atoms/Label.tsx
|
|
2318
2383
|
var import_design_system_foundation34 = require("@boostdev/design-system-foundation");
|
|
@@ -2325,7 +2390,7 @@ var Label = ({ label, id, className }) => {
|
|
|
2325
2390
|
var import_design_system_foundation36 = require("@boostdev/design-system-foundation");
|
|
2326
2391
|
|
|
2327
2392
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
2328
|
-
var InputContainer_default = {"component":"
|
|
2393
|
+
var InputContainer_default = {"component":"bds2170InputContainer-component","container":"bds2170InputContainer-container"};
|
|
2329
2394
|
|
|
2330
2395
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
2331
2396
|
var import_design_system_foundation35 = require("@boostdev/design-system-foundation");
|
|
@@ -2337,7 +2402,7 @@ var InputContainer = ({ children, className, ...rest }) => {
|
|
|
2337
2402
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
2338
2403
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2339
2404
|
function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
2340
|
-
const id = name + (0,
|
|
2405
|
+
const id = name + (0, import_react15.useId)();
|
|
2341
2406
|
const hintId = id + "hint";
|
|
2342
2407
|
const errorId = id + "error";
|
|
2343
2408
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2363,10 +2428,10 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
2363
2428
|
}
|
|
2364
2429
|
|
|
2365
2430
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
2366
|
-
var
|
|
2431
|
+
var import_react16 = require("react");
|
|
2367
2432
|
|
|
2368
2433
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
2369
|
-
var CheckboxGroup_default = {"component":"
|
|
2434
|
+
var CheckboxGroup_default = {"component":"bds2170CheckboxGroup-component","group":"bds2170CheckboxGroup-group","legend":"bds2170CheckboxGroup-legend","required":"bds2170CheckboxGroup-required","requiredLabel":"bds2170CheckboxGroup-requiredLabel","items":"bds2170CheckboxGroup-items","groupError":"bds2170CheckboxGroup-groupError"};
|
|
2370
2435
|
|
|
2371
2436
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
2372
2437
|
var import_design_system_foundation37 = require("@boostdev/design-system-foundation");
|
|
@@ -2380,7 +2445,7 @@ function CheckboxGroup({
|
|
|
2380
2445
|
className,
|
|
2381
2446
|
...rest
|
|
2382
2447
|
}) {
|
|
2383
|
-
const id = (0,
|
|
2448
|
+
const id = (0, import_react16.useId)();
|
|
2384
2449
|
const hintId = id + "hint";
|
|
2385
2450
|
const errorId = id + "error";
|
|
2386
2451
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2388,7 +2453,7 @@ function CheckboxGroup({
|
|
|
2388
2453
|
"fieldset",
|
|
2389
2454
|
{
|
|
2390
2455
|
...rest,
|
|
2391
|
-
className: (0, import_design_system_foundation37.cn)(CheckboxGroup_default.group, className),
|
|
2456
|
+
className: (0, import_design_system_foundation37.cn)(CheckboxGroup_default.group, error && CheckboxGroup_default.groupError, className),
|
|
2392
2457
|
"aria-describedby": describedBy,
|
|
2393
2458
|
children: [
|
|
2394
2459
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("legend", { className: CheckboxGroup_default.legend, children: [
|
|
@@ -2408,10 +2473,10 @@ function CheckboxGroup({
|
|
|
2408
2473
|
}
|
|
2409
2474
|
|
|
2410
2475
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
2411
|
-
var
|
|
2476
|
+
var import_react17 = require("react");
|
|
2412
2477
|
|
|
2413
2478
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
2414
|
-
var Combobox_default = {"component":"
|
|
2479
|
+
var Combobox_default = {"component":"bds2170Combobox-component","formGroup":"bds2170Combobox-formGroup","inputWrapper":"bds2170Combobox-inputWrapper","input":"bds2170Combobox-input","inputError":"bds2170Combobox-inputError","chevron":"bds2170Combobox-chevron","listbox":"bds2170Combobox-listbox","option":"bds2170Combobox-option","--highlighted":"bds2170Combobox---highlighted","--selected":"bds2170Combobox---selected","--disabled":"bds2170Combobox---disabled"};
|
|
2415
2480
|
|
|
2416
2481
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
2417
2482
|
var import_design_system_foundation38 = require("@boostdev/design-system-foundation");
|
|
@@ -2429,25 +2494,25 @@ function Combobox({
|
|
|
2429
2494
|
className,
|
|
2430
2495
|
...rest
|
|
2431
2496
|
}) {
|
|
2432
|
-
const id = name + (0,
|
|
2497
|
+
const id = name + (0, import_react17.useId)();
|
|
2433
2498
|
const listboxId = id + "listbox";
|
|
2434
2499
|
const hintId = id + "hint";
|
|
2435
2500
|
const errorId = id + "error";
|
|
2436
2501
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2437
|
-
const selectedOption = (0,
|
|
2438
|
-
const [inputValue, setInputValue] = (0,
|
|
2439
|
-
(0,
|
|
2502
|
+
const selectedOption = (0, import_react17.useMemo)(() => options.find((o) => o.value === value), [options, value]);
|
|
2503
|
+
const [inputValue, setInputValue] = (0, import_react17.useState)(selectedOption?.label ?? "");
|
|
2504
|
+
(0, import_react17.useEffect)(() => {
|
|
2440
2505
|
setInputValue(selectedOption?.label ?? "");
|
|
2441
2506
|
}, [selectedOption]);
|
|
2442
|
-
const [isOpen, setIsOpen] = (0,
|
|
2443
|
-
const [highlightedIndex, setHighlightedIndex] = (0,
|
|
2444
|
-
const containerRef = (0,
|
|
2445
|
-
const inputRef = (0,
|
|
2507
|
+
const [isOpen, setIsOpen] = (0, import_react17.useState)(false);
|
|
2508
|
+
const [highlightedIndex, setHighlightedIndex] = (0, import_react17.useState)(-1);
|
|
2509
|
+
const containerRef = (0, import_react17.useRef)(null);
|
|
2510
|
+
const inputRef = (0, import_react17.useRef)(null);
|
|
2446
2511
|
const filtered = options.filter(
|
|
2447
2512
|
(o) => o.label.toLowerCase().includes(inputValue.toLowerCase())
|
|
2448
2513
|
);
|
|
2449
2514
|
const getOptionId = (index) => `${id}-option-${index}`;
|
|
2450
|
-
(0,
|
|
2515
|
+
(0, import_react17.useEffect)(() => {
|
|
2451
2516
|
if (!isOpen) return;
|
|
2452
2517
|
const handlePointerDown = (e) => {
|
|
2453
2518
|
if (!containerRef.current?.contains(e.target)) setIsOpen(false);
|
|
@@ -2573,11 +2638,11 @@ function Combobox({
|
|
|
2573
2638
|
}
|
|
2574
2639
|
|
|
2575
2640
|
// src/components/interaction/form/FieldGroup/FieldGroup.tsx
|
|
2576
|
-
var
|
|
2641
|
+
var import_react18 = require("react");
|
|
2577
2642
|
var import_design_system_foundation39 = require("@boostdev/design-system-foundation");
|
|
2578
2643
|
|
|
2579
2644
|
// src/components/interaction/form/FieldGroup/FieldGroup.module.css
|
|
2580
|
-
var FieldGroup_default = {"component":"
|
|
2645
|
+
var FieldGroup_default = {"component":"bds2170FieldGroup-component","fieldGroup":"bds2170FieldGroup-fieldGroup","legend":"bds2170FieldGroup-legend","fields":"bds2170FieldGroup-fields","--variant_horizontal":"bds2170FieldGroup---variant_horizontal","probe":"bds2170FieldGroup-probe","tsx":"bds2170FieldGroup-tsx","probeContainer":"bds2170FieldGroup-probeContainer"};
|
|
2581
2646
|
|
|
2582
2647
|
// src/components/interaction/form/FieldGroup/FieldGroup.tsx
|
|
2583
2648
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
@@ -2590,15 +2655,15 @@ function FieldGroup({
|
|
|
2590
2655
|
style,
|
|
2591
2656
|
...rest
|
|
2592
2657
|
}) {
|
|
2593
|
-
const fieldCount =
|
|
2658
|
+
const fieldCount = import_react18.Children.toArray(children).length;
|
|
2594
2659
|
const styleWithCount = {
|
|
2595
2660
|
...style,
|
|
2596
2661
|
"--fieldGroup_field-count": fieldCount
|
|
2597
2662
|
};
|
|
2598
|
-
const fieldsetRef = (0,
|
|
2599
|
-
const probeRef = (0,
|
|
2600
|
-
const [isCollapsed, setIsCollapsed] = (0,
|
|
2601
|
-
(0,
|
|
2663
|
+
const fieldsetRef = (0, import_react18.useRef)(null);
|
|
2664
|
+
const probeRef = (0, import_react18.useRef)(null);
|
|
2665
|
+
const [isCollapsed, setIsCollapsed] = (0, import_react18.useState)(false);
|
|
2666
|
+
(0, import_react18.useEffect)(() => {
|
|
2602
2667
|
const fieldsetEl = fieldsetRef.current;
|
|
2603
2668
|
const probeEl = probeRef.current;
|
|
2604
2669
|
if (variant !== "horizontal" || !fieldsetEl || !probeEl || typeof ResizeObserver === "undefined") {
|
|
@@ -2637,10 +2702,10 @@ function FieldGroup({
|
|
|
2637
2702
|
}
|
|
2638
2703
|
|
|
2639
2704
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
2640
|
-
var
|
|
2705
|
+
var import_react19 = require("react");
|
|
2641
2706
|
|
|
2642
2707
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
2643
|
-
var FileInput_default = {"component":"
|
|
2708
|
+
var FileInput_default = {"component":"bds2170FileInput-component","formGroup":"bds2170FileInput-formGroup","fieldLabel":"bds2170FileInput-fieldLabel","dropZone":"bds2170FileInput-dropZone","isDragging":"bds2170FileInput-isDragging","hasError":"bds2170FileInput-hasError","isDisabled":"bds2170FileInput-isDisabled","icon":"bds2170FileInput-icon","prompt":"bds2170FileInput-prompt","acceptHint":"bds2170FileInput-acceptHint","hiddenInput":"bds2170FileInput-hiddenInput"};
|
|
2644
2709
|
|
|
2645
2710
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
2646
2711
|
var import_design_system_foundation40 = require("@boostdev/design-system-foundation");
|
|
@@ -2658,13 +2723,13 @@ function FileInput({
|
|
|
2658
2723
|
className,
|
|
2659
2724
|
...rest
|
|
2660
2725
|
}) {
|
|
2661
|
-
const uid = name + (0,
|
|
2726
|
+
const uid = name + (0, import_react19.useId)();
|
|
2662
2727
|
const hintId = uid + "hint";
|
|
2663
2728
|
const errorId = uid + "error";
|
|
2664
2729
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2665
|
-
const inputRef = (0,
|
|
2666
|
-
const [isDragging, setIsDragging] = (0,
|
|
2667
|
-
const [fileNames, setFileNames] = (0,
|
|
2730
|
+
const inputRef = (0, import_react19.useRef)(null);
|
|
2731
|
+
const [isDragging, setIsDragging] = (0, import_react19.useState)(false);
|
|
2732
|
+
const [fileNames, setFileNames] = (0, import_react19.useState)([]);
|
|
2668
2733
|
const isFileAccepted = (file) => {
|
|
2669
2734
|
if (!accept) return true;
|
|
2670
2735
|
return accept.split(",").some((token) => {
|
|
@@ -2742,10 +2807,10 @@ function FileInput({
|
|
|
2742
2807
|
}
|
|
2743
2808
|
|
|
2744
2809
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2745
|
-
var
|
|
2810
|
+
var import_react20 = require("react");
|
|
2746
2811
|
|
|
2747
2812
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
2748
|
-
var FormInput_default = {"component":"
|
|
2813
|
+
var FormInput_default = {"component":"bds2170FormInput-component","formGroup":"bds2170FormInput-formGroup","input":"bds2170FormInput-input","g":"bds2170FormInput-g","inputError":"bds2170FormInput-inputError"};
|
|
2749
2814
|
|
|
2750
2815
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2751
2816
|
var import_design_system_foundation41 = require("@boostdev/design-system-foundation");
|
|
@@ -2761,7 +2826,7 @@ function FormInput({
|
|
|
2761
2826
|
"aria-label": nativeAriaLabel,
|
|
2762
2827
|
...props
|
|
2763
2828
|
}) {
|
|
2764
|
-
const id = name + (0,
|
|
2829
|
+
const id = name + (0, import_react20.useId)();
|
|
2765
2830
|
const hintId = id + "hint";
|
|
2766
2831
|
const errorId = id + "error";
|
|
2767
2832
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2787,10 +2852,10 @@ function FormInput({
|
|
|
2787
2852
|
}
|
|
2788
2853
|
|
|
2789
2854
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2790
|
-
var
|
|
2855
|
+
var import_react21 = require("react");
|
|
2791
2856
|
|
|
2792
2857
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2793
|
-
var NumberInput_default = {"component":"
|
|
2858
|
+
var NumberInput_default = {"component":"bds2170NumberInput-component","formGroup":"bds2170NumberInput-formGroup","inputRow":"bds2170NumberInput-inputRow","input":"bds2170NumberInput-input","inputError":"bds2170NumberInput-inputError","stepper":"bds2170NumberInput-stepper"};
|
|
2794
2859
|
|
|
2795
2860
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2796
2861
|
var import_design_system_foundation42 = require("@boostdev/design-system-foundation");
|
|
@@ -2812,16 +2877,16 @@ function NumberInput({
|
|
|
2812
2877
|
increaseLabel = "Increase",
|
|
2813
2878
|
...rest
|
|
2814
2879
|
}) {
|
|
2815
|
-
const uid = name + (0,
|
|
2880
|
+
const uid = name + (0, import_react21.useId)();
|
|
2816
2881
|
const hintId = uid + "hint";
|
|
2817
2882
|
const errorId = uid + "error";
|
|
2818
2883
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2819
|
-
const inputRef = (0,
|
|
2884
|
+
const inputRef = (0, import_react21.useRef)(null);
|
|
2820
2885
|
const isControlled = value !== void 0;
|
|
2821
|
-
const [internalValue, setInternalValue] = (0,
|
|
2886
|
+
const [internalValue, setInternalValue] = (0, import_react21.useState)(defaultValue ?? 0);
|
|
2822
2887
|
const currentValue = isControlled ? value : internalValue;
|
|
2823
|
-
const [controlledDraft, setControlledDraft] = (0,
|
|
2824
|
-
(0,
|
|
2888
|
+
const [controlledDraft, setControlledDraft] = (0, import_react21.useState)(() => isControlled ? String(value) : "");
|
|
2889
|
+
(0, import_react21.useEffect)(() => {
|
|
2825
2890
|
if (!isControlled) return;
|
|
2826
2891
|
setControlledDraft((prev) => parseFloat(prev) === value ? prev : String(value));
|
|
2827
2892
|
}, [isControlled, value]);
|
|
@@ -2905,16 +2970,16 @@ function NumberInput({
|
|
|
2905
2970
|
}
|
|
2906
2971
|
|
|
2907
2972
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2908
|
-
var
|
|
2973
|
+
var import_react22 = require("react");
|
|
2909
2974
|
|
|
2910
2975
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2911
|
-
var Radio_default = {"component":"
|
|
2976
|
+
var Radio_default = {"component":"bds2170Radio-component","radioGroup":"bds2170Radio-radioGroup","inputWrapper":"bds2170Radio-inputWrapper","textWrapper":"bds2170Radio-textWrapper","description":"bds2170Radio-description","radio":"bds2170Radio-radio","g":"bds2170Radio-g","radioError":"bds2170Radio-radioError"};
|
|
2912
2977
|
|
|
2913
2978
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2914
2979
|
var import_design_system_foundation43 = require("@boostdev/design-system-foundation");
|
|
2915
2980
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2916
2981
|
function Radio({ label, name, description, error, hint, className, id: consumerId, ...props }) {
|
|
2917
|
-
const id = consumerId ?? name + (0,
|
|
2982
|
+
const id = consumerId ?? name + (0, import_react22.useId)();
|
|
2918
2983
|
const descriptionId = id + "description";
|
|
2919
2984
|
const hintId = id + "hint";
|
|
2920
2985
|
const errorId = id + "error";
|
|
@@ -2944,10 +3009,10 @@ function Radio({ label, name, description, error, hint, className, id: consumerI
|
|
|
2944
3009
|
}
|
|
2945
3010
|
|
|
2946
3011
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2947
|
-
var
|
|
3012
|
+
var import_react23 = require("react");
|
|
2948
3013
|
|
|
2949
3014
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2950
|
-
var RadioGroup_default = {"component":"
|
|
3015
|
+
var RadioGroup_default = {"component":"bds2170RadioGroup-component","group":"bds2170RadioGroup-group","legend":"bds2170RadioGroup-legend","required":"bds2170RadioGroup-required","requiredLabel":"bds2170RadioGroup-requiredLabel","items":"bds2170RadioGroup-items","groupError":"bds2170RadioGroup-groupError"};
|
|
2951
3016
|
|
|
2952
3017
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2953
3018
|
var import_design_system_foundation44 = require("@boostdev/design-system-foundation");
|
|
@@ -2961,7 +3026,7 @@ function RadioGroup({
|
|
|
2961
3026
|
className,
|
|
2962
3027
|
...rest
|
|
2963
3028
|
}) {
|
|
2964
|
-
const id = (0,
|
|
3029
|
+
const id = (0, import_react23.useId)();
|
|
2965
3030
|
const hintId = id + "hint";
|
|
2966
3031
|
const errorId = id + "error";
|
|
2967
3032
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2969,7 +3034,7 @@ function RadioGroup({
|
|
|
2969
3034
|
"fieldset",
|
|
2970
3035
|
{
|
|
2971
3036
|
...rest,
|
|
2972
|
-
className: (0, import_design_system_foundation44.cn)(RadioGroup_default.group, className),
|
|
3037
|
+
className: (0, import_design_system_foundation44.cn)(RadioGroup_default.group, error && RadioGroup_default.groupError, className),
|
|
2973
3038
|
"aria-describedby": describedBy,
|
|
2974
3039
|
children: [
|
|
2975
3040
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("legend", { className: RadioGroup_default.legend, children: [
|
|
@@ -2989,10 +3054,10 @@ function RadioGroup({
|
|
|
2989
3054
|
}
|
|
2990
3055
|
|
|
2991
3056
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2992
|
-
var
|
|
3057
|
+
var import_react24 = require("react");
|
|
2993
3058
|
|
|
2994
3059
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2995
|
-
var SegmentedControl_default = {"component":"
|
|
3060
|
+
var SegmentedControl_default = {"component":"bds2170SegmentedControl-component","control":"bds2170SegmentedControl-control","thumb":"bds2170SegmentedControl-thumb","indicator":"bds2170SegmentedControl-indicator","item":"bds2170SegmentedControl-item","--active":"bds2170SegmentedControl---active","--disabled":"bds2170SegmentedControl---disabled","--size_small":"bds2170SegmentedControl---size_small","--size_large":"bds2170SegmentedControl---size_large","--variant_outline":"bds2170SegmentedControl---variant_outline","--no-selection":"bds2170SegmentedControl---no-selection"};
|
|
2996
3061
|
|
|
2997
3062
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2998
3063
|
var import_design_system_foundation45 = require("@boostdev/design-system-foundation");
|
|
@@ -3009,7 +3074,7 @@ function SegmentedControl({
|
|
|
3009
3074
|
className,
|
|
3010
3075
|
...rest
|
|
3011
3076
|
}) {
|
|
3012
|
-
const validChildren =
|
|
3077
|
+
const validChildren = import_react24.Children.toArray(children).filter(import_react24.isValidElement);
|
|
3013
3078
|
const autoIndex = selectedIndexProp === void 0 ? validChildren.findIndex((child) => {
|
|
3014
3079
|
const p = child.props;
|
|
3015
3080
|
return p["aria-current"] === "page" || p["aria-pressed"] === true || p["aria-selected"] === true;
|
|
@@ -3051,7 +3116,7 @@ function SegmentedControl({
|
|
|
3051
3116
|
} else if (isActive && selectedIndexProp !== void 0 && !hasAriaState) {
|
|
3052
3117
|
stateProps[child.type === "a" ? "aria-current" : "aria-pressed"] = child.type === "a" ? "page" : true;
|
|
3053
3118
|
}
|
|
3054
|
-
return (0,
|
|
3119
|
+
return (0, import_react24.cloneElement)(child, {
|
|
3055
3120
|
key: child.key ?? index,
|
|
3056
3121
|
...stateProps,
|
|
3057
3122
|
className: (0, import_design_system_foundation45.cn)(
|
|
@@ -3068,10 +3133,10 @@ function SegmentedControl({
|
|
|
3068
3133
|
}
|
|
3069
3134
|
|
|
3070
3135
|
// src/components/interaction/form/Select/Select.tsx
|
|
3071
|
-
var
|
|
3136
|
+
var import_react25 = require("react");
|
|
3072
3137
|
|
|
3073
3138
|
// src/components/interaction/form/Select/Select.module.css
|
|
3074
|
-
var Select_default = {"component":"
|
|
3139
|
+
var Select_default = {"component":"bds2170Select-component","formGroup":"bds2170Select-formGroup","selectWrapper":"bds2170Select-selectWrapper","select":"bds2170Select-select","selectError":"bds2170Select-selectError","chevron":"bds2170Select-chevron"};
|
|
3075
3140
|
|
|
3076
3141
|
// src/components/interaction/form/Select/Select.tsx
|
|
3077
3142
|
var import_design_system_foundation46 = require("@boostdev/design-system-foundation");
|
|
@@ -3090,7 +3155,7 @@ function Select({
|
|
|
3090
3155
|
defaultValue,
|
|
3091
3156
|
...rest
|
|
3092
3157
|
}) {
|
|
3093
|
-
const generatedId = name + (0,
|
|
3158
|
+
const generatedId = name + (0, import_react25.useId)();
|
|
3094
3159
|
const selectId = id ?? generatedId;
|
|
3095
3160
|
const hintId = selectId + "hint";
|
|
3096
3161
|
const errorId = selectId + "error";
|
|
@@ -3126,10 +3191,10 @@ function Select({
|
|
|
3126
3191
|
}
|
|
3127
3192
|
|
|
3128
3193
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
3129
|
-
var
|
|
3194
|
+
var import_react26 = require("react");
|
|
3130
3195
|
|
|
3131
3196
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
3132
|
-
var Slider_default = {"component":"
|
|
3197
|
+
var Slider_default = {"component":"bds2170Slider-component","formGroup":"bds2170Slider-formGroup","labelRow":"bds2170Slider-labelRow","value":"bds2170Slider-value","slider":"bds2170Slider-slider","sliderError":"bds2170Slider-sliderError"};
|
|
3133
3198
|
|
|
3134
3199
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
3135
3200
|
var import_design_system_foundation47 = require("@boostdev/design-system-foundation");
|
|
@@ -3146,12 +3211,12 @@ function Slider({
|
|
|
3146
3211
|
onChange,
|
|
3147
3212
|
...props
|
|
3148
3213
|
}) {
|
|
3149
|
-
const id = name + (0,
|
|
3214
|
+
const id = name + (0, import_react26.useId)();
|
|
3150
3215
|
const hintId = id + "hint";
|
|
3151
3216
|
const errorId = id + "error";
|
|
3152
3217
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
3153
3218
|
const isControlled = props.value !== void 0;
|
|
3154
|
-
const [internalValue, setInternalValue] = (0,
|
|
3219
|
+
const [internalValue, setInternalValue] = (0, import_react26.useState)(
|
|
3155
3220
|
Number(props.defaultValue ?? min + (max - min) / 2)
|
|
3156
3221
|
);
|
|
3157
3222
|
const currentValue = isControlled ? Number(props.value) : internalValue;
|
|
@@ -3187,10 +3252,10 @@ function Slider({
|
|
|
3187
3252
|
}
|
|
3188
3253
|
|
|
3189
3254
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
3190
|
-
var
|
|
3255
|
+
var import_react27 = require("react");
|
|
3191
3256
|
|
|
3192
3257
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
3193
|
-
var Switch_default = {"component":"
|
|
3258
|
+
var Switch_default = {"component":"bds2170Switch-component","switchGroup":"bds2170Switch-switchGroup","--size_small":"bds2170Switch---size_small","--size_medium":"bds2170Switch---size_medium","--size_large":"bds2170Switch---size_large","inputWrapper":"bds2170Switch-inputWrapper","trackWrapper":"bds2170Switch-trackWrapper","switch":"bds2170Switch-switch","track":"bds2170Switch-track","thumb":"bds2170Switch-thumb","switchError":"bds2170Switch-switchError"};
|
|
3194
3259
|
|
|
3195
3260
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
3196
3261
|
var import_design_system_foundation48 = require("@boostdev/design-system-foundation");
|
|
@@ -3205,7 +3270,7 @@ function Switch({
|
|
|
3205
3270
|
prefix,
|
|
3206
3271
|
...props
|
|
3207
3272
|
}) {
|
|
3208
|
-
const id = name + (0,
|
|
3273
|
+
const id = name + (0, import_react27.useId)();
|
|
3209
3274
|
const hintId = id + "hint";
|
|
3210
3275
|
const errorId = id + "error";
|
|
3211
3276
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -3236,10 +3301,10 @@ function Switch({
|
|
|
3236
3301
|
}
|
|
3237
3302
|
|
|
3238
3303
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
3239
|
-
var
|
|
3304
|
+
var import_react28 = require("react");
|
|
3240
3305
|
|
|
3241
3306
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
3242
|
-
var Textarea_default = {"component":"
|
|
3307
|
+
var Textarea_default = {"component":"bds2170Textarea-component","formGroup":"bds2170Textarea-formGroup","textarea":"bds2170Textarea-textarea","textareaError":"bds2170Textarea-textareaError"};
|
|
3243
3308
|
|
|
3244
3309
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
3245
3310
|
var import_design_system_foundation49 = require("@boostdev/design-system-foundation");
|
|
@@ -3254,7 +3319,7 @@ function Textarea({
|
|
|
3254
3319
|
id: idProp,
|
|
3255
3320
|
...props
|
|
3256
3321
|
}) {
|
|
3257
|
-
const generatedId = (0,
|
|
3322
|
+
const generatedId = (0, import_react28.useId)();
|
|
3258
3323
|
const id = idProp ?? name + generatedId;
|
|
3259
3324
|
const hintId = id + "hint";
|
|
3260
3325
|
const errorId = id + "error";
|
|
@@ -3280,7 +3345,7 @@ function Textarea({
|
|
|
3280
3345
|
}
|
|
3281
3346
|
|
|
3282
3347
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
3283
|
-
var ButtonGroup_default = {"component":"
|
|
3348
|
+
var ButtonGroup_default = {"component":"bds2170ButtonGroup-component","buttonGroup":"bds2170ButtonGroup-buttonGroup","container":"bds2170ButtonGroup-container","--variant_card":"bds2170ButtonGroup---variant_card","--variant_flow":"bds2170ButtonGroup---variant_flow","--variant_modal":"bds2170ButtonGroup---variant_modal","--variant_content":"bds2170ButtonGroup---variant_content"};
|
|
3284
3349
|
|
|
3285
3350
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
3286
3351
|
var import_design_system_foundation50 = require("@boostdev/design-system-foundation");
|
|
@@ -3299,7 +3364,7 @@ function ButtonContainer({ children, className, variant, ...rest }) {
|
|
|
3299
3364
|
var ButtonGroup = ButtonContainer;
|
|
3300
3365
|
|
|
3301
3366
|
// src/components/layout/Card/Card.module.css
|
|
3302
|
-
var Card_default = {"component":"
|
|
3367
|
+
var Card_default = {"component":"bds2170Card-component","card":"bds2170Card-card","--default":"bds2170Card---default","--elevated":"bds2170Card---elevated","--outlined":"bds2170Card---outlined","--clickable":"bds2170Card---clickable","--padding-none":"bds2170Card---padding-none","--padding-small":"bds2170Card---padding-small","--padding-medium":"bds2170Card---padding-medium","--padding-large":"bds2170Card---padding-large","--padding-extra-large":"bds2170Card---padding-extra-large","--text-start":"bds2170Card---text-start","--text-center":"bds2170Card---text-center","--text-end":"bds2170Card---text-end"};
|
|
3303
3368
|
|
|
3304
3369
|
// src/components/layout/Card/Card.tsx
|
|
3305
3370
|
var import_design_system_foundation51 = require("@boostdev/design-system-foundation");
|
|
@@ -3336,17 +3401,17 @@ function Card({
|
|
|
3336
3401
|
}
|
|
3337
3402
|
|
|
3338
3403
|
// src/components/layout/Grid/Grid.tsx
|
|
3339
|
-
var
|
|
3404
|
+
var import_react30 = require("react");
|
|
3340
3405
|
|
|
3341
3406
|
// src/components/layout/Grid/Grid.module.css
|
|
3342
|
-
var Grid_default = {"component":"
|
|
3407
|
+
var Grid_default = {"component":"bds2170Grid-component","grid":"bds2170Grid-grid","--main":"bds2170Grid---main","--page":"bds2170Grid---page","--funnel":"bds2170Grid---funnel","--custom":"bds2170Grid---custom","--centered":"bds2170Grid---centered","item":"bds2170Grid-item","w3":"bds2170Grid-w3","org":"bds2170Grid-org","ts":"bds2170Grid-ts","--masonry":"bds2170Grid---masonry"};
|
|
3343
3408
|
|
|
3344
3409
|
// src/components/layout/Grid/Grid.tsx
|
|
3345
3410
|
var import_design_system_foundation52 = require("@boostdev/design-system-foundation");
|
|
3346
3411
|
|
|
3347
3412
|
// src/components/layout/Grid/useIsomorphicLayoutEffect.ts
|
|
3348
|
-
var
|
|
3349
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ?
|
|
3413
|
+
var import_react29 = require("react");
|
|
3414
|
+
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react29.useLayoutEffect : import_react29.useEffect;
|
|
3350
3415
|
|
|
3351
3416
|
// src/components/layout/Grid/masonry.ts
|
|
3352
3417
|
var NAMED_SPAN_VAR = {
|
|
@@ -3581,7 +3646,7 @@ function useMasonry(ref, enabled, options = {}) {
|
|
|
3581
3646
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3582
3647
|
var _GridContext;
|
|
3583
3648
|
function getGridContext() {
|
|
3584
|
-
_GridContext ??= (0,
|
|
3649
|
+
_GridContext ??= (0, import_react30.createContext)({ autoSpanMedia: false });
|
|
3585
3650
|
return _GridContext;
|
|
3586
3651
|
}
|
|
3587
3652
|
function Grid({
|
|
@@ -3598,7 +3663,7 @@ function Grid({
|
|
|
3598
3663
|
style,
|
|
3599
3664
|
...rest
|
|
3600
3665
|
}) {
|
|
3601
|
-
const ref = (0,
|
|
3666
|
+
const ref = (0, import_react30.useRef)(null);
|
|
3602
3667
|
useMasonry(ref, isMasonry, {
|
|
3603
3668
|
preferredColumnSpan: masonryPreferredColumnSpan,
|
|
3604
3669
|
rowUnitPx: masonryRowUnitPx
|
|
@@ -3613,12 +3678,12 @@ function Grid({
|
|
|
3613
3678
|
const composedStyle = variant === "custom" && columns !== void 0 ? { ...style, ["--grid_columns"]: columns } : style;
|
|
3614
3679
|
const Component = as ?? "div";
|
|
3615
3680
|
const GridContext = getGridContext();
|
|
3616
|
-
const ctx = (0,
|
|
3681
|
+
const ctx = (0, import_react30.useMemo)(() => ({ autoSpanMedia }), [autoSpanMedia]);
|
|
3617
3682
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Component, { ref, ...rest, className: classNames, style: composedStyle, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(GridContext.Provider, { value: ctx, children }) });
|
|
3618
3683
|
}
|
|
3619
3684
|
|
|
3620
3685
|
// src/components/layout/Grid/GridItem.tsx
|
|
3621
|
-
var
|
|
3686
|
+
var import_react31 = require("react");
|
|
3622
3687
|
var import_design_system_foundation53 = require("@boostdev/design-system-foundation");
|
|
3623
3688
|
|
|
3624
3689
|
// src/components/layout/Grid/autoSpan.ts
|
|
@@ -3684,10 +3749,10 @@ function GridItem({
|
|
|
3684
3749
|
style,
|
|
3685
3750
|
...rest
|
|
3686
3751
|
}) {
|
|
3687
|
-
const { autoSpanMedia } = (0,
|
|
3752
|
+
const { autoSpanMedia } = (0, import_react31.useContext)(getGridContext());
|
|
3688
3753
|
const effectiveSpan = columnSpan ?? (autoSpanMedia ? "auto" : "full");
|
|
3689
|
-
const ref = (0,
|
|
3690
|
-
const [autoSpan, setAutoSpan] = (0,
|
|
3754
|
+
const ref = (0, import_react31.useRef)(null);
|
|
3755
|
+
const [autoSpan, setAutoSpan] = (0, import_react31.useState)("one-quarter");
|
|
3691
3756
|
useIsomorphicLayoutEffect(() => {
|
|
3692
3757
|
if (effectiveSpan !== "auto") return;
|
|
3693
3758
|
const el = ref.current;
|
|
@@ -3747,7 +3812,7 @@ function GridItem({
|
|
|
3747
3812
|
}
|
|
3748
3813
|
|
|
3749
3814
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
3750
|
-
var SectionHeader_default = {"component":"
|
|
3815
|
+
var SectionHeader_default = {"component":"bds2170SectionHeader-component","sectionHeader":"bds2170SectionHeader-sectionHeader","title":"bds2170SectionHeader-title","subtitle":"bds2170SectionHeader-subtitle","--start":"bds2170SectionHeader---start","--center":"bds2170SectionHeader---center","--end":"bds2170SectionHeader---end","--medium":"bds2170SectionHeader---medium","--xs":"bds2170SectionHeader---xs","--small":"bds2170SectionHeader---small","--large":"bds2170SectionHeader---large","--gradient":"bds2170SectionHeader---gradient"};
|
|
3751
3816
|
|
|
3752
3817
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
3753
3818
|
var import_design_system_foundation54 = require("@boostdev/design-system-foundation");
|
|
@@ -3758,18 +3823,19 @@ function SectionHeader({
|
|
|
3758
3823
|
className,
|
|
3759
3824
|
alignment = "start",
|
|
3760
3825
|
size = "medium",
|
|
3826
|
+
appearance = "default",
|
|
3761
3827
|
titleAs = "h2",
|
|
3762
3828
|
...rest
|
|
3763
3829
|
}) {
|
|
3764
3830
|
const Title = titleAs;
|
|
3765
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { ...rest, className: (0, import_design_system_foundation54.cn)(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], className), children: [
|
|
3831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { ...rest, className: (0, import_design_system_foundation54.cn)(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], appearance === "gradient" && SectionHeader_default["--gradient"], className), children: [
|
|
3766
3832
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Title, { className: SectionHeader_default.title, children: title }),
|
|
3767
3833
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
3768
3834
|
] });
|
|
3769
3835
|
}
|
|
3770
3836
|
|
|
3771
3837
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
3772
|
-
var IconWrapper_default = {"component":"
|
|
3838
|
+
var IconWrapper_default = {"component":"bds2170IconWrapper-component","wrapper":"bds2170IconWrapper-wrapper"};
|
|
3773
3839
|
|
|
3774
3840
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
3775
3841
|
var import_design_system_foundation55 = require("@boostdev/design-system-foundation");
|