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