@boostdev/design-system-components 2.14.1 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +20 -15
- package/dist/client.cjs +271 -205
- package/dist/client.css +808 -648
- 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 +808 -648
- package/dist/index.d.cts +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +206 -139
- package/dist/web-components/chunk-2DHW2WJZ.js +154 -0
- package/dist/web-components/{chunk-LDIPCTRN.js → chunk-2MJTO2IW.js} +48 -2
- package/dist/web-components/{chunk-3WAV6MDN.js → chunk-3FSGP35V.js} +1 -0
- package/dist/web-components/{chunk-KA3VPKMY.js → chunk-4MB2ICSK.js} +1 -0
- package/dist/web-components/{chunk-IDSM74LM.js → chunk-6XL5P76D.js} +3 -3
- package/dist/web-components/{chunk-P24JYC5V.js → chunk-7VXRMCAL.js} +10 -4
- package/dist/web-components/{chunk-CUKQ2L5B.js → chunk-AGI6YQRC.js} +9 -16
- package/dist/web-components/chunk-BDRV452N.js +51 -0
- package/dist/web-components/{chunk-3AY2YKCM.js → chunk-CKCPV347.js} +1 -0
- package/dist/web-components/{chunk-HBLJ4SLY.js → chunk-DD3OUXNG.js} +5 -5
- package/dist/web-components/{chunk-RVF7W653.js → chunk-DGOCPKHI.js} +30 -10
- package/dist/web-components/{chunk-2OLVQUBU.js → chunk-EYCW7TKB.js} +8 -15
- package/dist/web-components/{chunk-VANAKB6D.js → chunk-GPJWLAKU.js} +33 -16
- package/dist/web-components/{chunk-VED2DFJ6.js → chunk-GQNQBEYR.js} +8 -15
- package/dist/web-components/{chunk-WFVKU4GX.js → chunk-IKAJLROF.js} +49 -4
- package/dist/web-components/{chunk-RSZ3BWBK.js → chunk-KSK4RZZQ.js} +30 -7
- package/dist/web-components/{chunk-FEDABOR5.js → chunk-LHFUXZ52.js} +7 -15
- package/dist/web-components/{chunk-M3ECULRH.js → chunk-RBF7WPLI.js} +10 -8
- package/dist/web-components/{chunk-6G22I2CK.js → chunk-RZH5IVB5.js} +31 -1
- package/dist/web-components/chunk-SRKQ6GST.js +40 -0
- package/dist/web-components/{chunk-5HUAFCU6.js → chunk-TJV7UIXC.js} +7 -0
- package/dist/web-components/{chunk-J3HVUIUH.js → chunk-XI2U6U26.js} +8 -15
- package/dist/web-components/{chunk-JH6LQKLK.js → chunk-XJU7KITO.js} +8 -15
- package/dist/web-components/{chunk-XIZWAWMJ.js → chunk-XTPUKUN5.js} +16 -6
- 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 +34 -29
- package/dist/web-components/interaction/bds-button.js +1 -1
- package/dist/web-components/interaction/bds-dropdown-menu-group.d.ts +41 -0
- package/dist/web-components/interaction/bds-dropdown-menu-group.js +7 -0
- package/dist/web-components/interaction/bds-dropdown-menu-item.d.ts +14 -1
- package/dist/web-components/interaction/bds-dropdown-menu-item.js +1 -1
- package/dist/web-components/interaction/bds-dropdown-menu.d.ts +2 -1
- package/dist/web-components/interaction/bds-dropdown-menu.js +1 -1
- package/dist/web-components/interaction/bds-tab.d.ts +5 -0
- package/dist/web-components/interaction/bds-tab.js +1 -1
- package/dist/web-components/interaction/bds-tooltip.js +1 -1
- package/dist/web-components/interaction/form/bds-checkbox-group.d.ts +6 -0
- package/dist/web-components/interaction/form/bds-checkbox-group.js +2 -1
- package/dist/web-components/interaction/form/bds-checkbox.js +1 -1
- package/dist/web-components/interaction/form/bds-combobox.js +2 -1
- package/dist/web-components/interaction/form/bds-form-input.js +2 -1
- package/dist/web-components/interaction/form/bds-number-input.js +2 -1
- package/dist/web-components/interaction/form/bds-radio-group.d.ts +5 -0
- package/dist/web-components/interaction/form/bds-radio-group.js +2 -1
- package/dist/web-components/interaction/form/bds-radio.js +1 -1
- package/dist/web-components/interaction/form/bds-select.js +2 -1
- package/dist/web-components/interaction/form/bds-slider.js +2 -1
- package/dist/web-components/interaction/form/bds-switch.js +1 -1
- package/dist/web-components/interaction/form/bds-textarea.js +2 -1
- package/dist/web-components/ui/bds-alert.d.ts +8 -1
- package/dist/web-components/ui/bds-alert.js +1 -1
- package/dist/web-components/ui/bds-avatar.d.ts +11 -0
- package/dist/web-components/ui/bds-avatar.js +1 -1
- package/dist/web-components/ui/bds-notification-banner.d.ts +14 -1
- package/dist/web-components/ui/bds-notification-banner.js +1 -1
- package/dist/web-components/ui/bds-section-header.d.ts +6 -0
- package/dist/web-components/ui/bds-section-header.js +1 -1
- package/dist/web-components/ui/bds-separator.js +1 -1
- package/dist/web-components/ui/bds-table.js +1 -1
- package/package.json +6 -2
- package/src/components/interaction/Button/Button.mdx +7 -0
- package/src/components/interaction/Button/Button.module.css +17 -9
- package/src/components/interaction/Button/Button.stories.tsx +28 -0
- package/src/components/interaction/DropdownMenu/DropdownMenu.mdx +35 -4
- package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +58 -10
- package/src/components/interaction/DropdownMenu/DropdownMenu.spec.tsx +114 -1
- package/src/components/interaction/DropdownMenu/DropdownMenu.stories.tsx +25 -0
- package/src/components/interaction/DropdownMenu/DropdownMenu.tsx +69 -17
- package/src/components/interaction/form/Checkbox/Checkbox.module.css +1 -0
- package/src/components/interaction/form/Checkbox/Checkbox.spec.tsx +7 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.mdx +1 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css +7 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.spec.tsx +22 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx +1 -1
- package/src/components/interaction/form/Combobox/Combobox.module.css +1 -0
- package/src/components/interaction/form/Combobox/Combobox.spec.tsx +7 -0
- package/src/components/interaction/form/FormInput/FormInput.mdx +9 -0
- package/src/components/interaction/form/FormInput/FormInput.module.css +1 -0
- package/src/components/interaction/form/FormInput/FormInput.spec.tsx +7 -0
- package/src/components/interaction/form/NumberInput/NumberInput.module.css +1 -0
- package/src/components/interaction/form/NumberInput/NumberInput.spec.tsx +7 -0
- package/src/components/interaction/form/Radio/Radio.module.css +1 -0
- package/src/components/interaction/form/Radio/Radio.spec.tsx +7 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.mdx +1 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.module.css +7 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.spec.tsx +22 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.tsx +1 -1
- package/src/components/interaction/form/Select/Select.module.css +1 -0
- package/src/components/interaction/form/Select/Select.spec.tsx +7 -0
- package/src/components/interaction/form/Switch/Switch.module.css +1 -0
- package/src/components/interaction/form/Switch/Switch.spec.tsx +7 -0
- package/src/components/interaction/form/Textarea/Textarea.module.css +1 -0
- package/src/components/interaction/form/Textarea/Textarea.spec.tsx +7 -0
- package/src/components/interaction/form/atoms/Message.module.css +14 -3
- package/src/components/interaction/form/atoms/Message.spec.tsx +22 -0
- package/src/components/interaction/form/atoms/Message.tsx +5 -0
- package/src/components/layout/SectionHeader/SectionHeader.mdx +18 -5
- package/src/components/layout/SectionHeader/SectionHeader.module.css +35 -14
- package/src/components/layout/SectionHeader/SectionHeader.spec.tsx +44 -0
- package/src/components/layout/SectionHeader/SectionHeader.stories.tsx +5 -0
- package/src/components/layout/SectionHeader/SectionHeader.tsx +3 -1
- package/src/components/ui/Alert/Alert.mdx +11 -0
- package/src/components/ui/Alert/Alert.module.css +30 -1
- package/src/components/ui/Alert/Alert.spec.tsx +21 -0
- package/src/components/ui/Alert/Alert.stories.tsx +20 -0
- package/src/components/ui/Alert/Alert.tsx +8 -1
- package/src/components/ui/Avatar/Avatar.mdx +22 -2
- package/src/components/ui/Avatar/Avatar.module.css +29 -2
- package/src/components/ui/Avatar/Avatar.spec.tsx +26 -0
- package/src/components/ui/Avatar/Avatar.stories.tsx +23 -0
- package/src/components/ui/Avatar/Avatar.tsx +4 -2
- package/src/components/ui/Avatar/avatarTone.spec.ts +41 -0
- package/src/components/ui/Avatar/avatarTone.ts +22 -0
- package/src/components/ui/Collapsible/Collapsible.module.css +1 -2
- package/src/components/ui/NotificationBanner/NotificationBanner.mdx +14 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +31 -1
- package/src/components/ui/NotificationBanner/NotificationBanner.spec.tsx +29 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.stories.tsx +25 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.tsx +15 -1
- package/src/components/ui/Separator/Separator.mdx +1 -0
- package/src/components/ui/Separator/Separator.module.css +6 -0
- package/src/components/ui/Separator/Separator.spec.tsx +19 -0
- package/src/components/ui/Separator/Separator.stories.tsx +15 -0
- package/src/components/ui/Table/Table.mdx +4 -1
- package/src/components/ui/Table/Table.module.css +7 -7
- package/src/components/ui/Table/Table.spec.tsx +11 -0
- package/src/components/ui/Tabs/Tabs.mdx +11 -5
- package/src/components/ui/Tabs/Tabs.module.css +23 -5
- package/src/components/ui/Tabs/Tabs.spec.tsx +39 -0
- package/src/components/ui/Tabs/Tabs.tsx +2 -1
- package/src/components/ui/Tabs/getNodeText.spec.tsx +23 -0
- package/src/components/ui/Tabs/getNodeText.ts +13 -0
- package/src/components/ui/Tooltip/Tooltip.mdx +6 -3
- package/src/components/ui/Tooltip/Tooltip.module.css +6 -2
- package/src/components/ui/Tooltip/Tooltip.spec.tsx +10 -0
- package/src/components/ui/Tooltip/Tooltip.stories.tsx +13 -0
- package/src/css/bdc.css +5 -2
- package/src/css/bdc.spec.ts +65 -0
- package/src/stories/DesignSystem/Borders.mdx +17 -9
- package/src/web-components/globals.ts +10 -4
- package/src/web-components/index.ts +1 -0
- package/src/web-components/interaction/BdsAccordion.mdx +1 -1
- package/src/web-components/interaction/BdsAccordion.stories.tsx +1 -1
- package/src/web-components/interaction/BdsButton.mdx +9 -1
- package/src/web-components/interaction/BdsButton.stories.tsx +42 -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-button.ts +16 -6
- package/src/web-components/interaction/bds-dropdown-menu-group.ts +72 -0
- package/src/web-components/interaction/bds-dropdown-menu-item.ts +65 -17
- package/src/web-components/interaction/bds-dropdown-menu.spec.ts +135 -0
- package/src/web-components/interaction/bds-dropdown-menu.ts +5 -4
- package/src/web-components/interaction/bds-tab.spec.ts +34 -2
- package/src/web-components/interaction/bds-tab.ts +31 -6
- package/src/web-components/interaction/bds-tooltip.spec.ts +16 -0
- package/src/web-components/interaction/bds-tooltip.ts +10 -8
- package/src/web-components/interaction/form/BdsCheckbox.mdx +5 -1
- package/src/web-components/interaction/form/BdsCheckbox.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsCheckboxGroup.mdx +5 -1
- package/src/web-components/interaction/form/BdsCheckboxGroup.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsCombobox.mdx +5 -1
- package/src/web-components/interaction/form/BdsCombobox.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsFieldGroup.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsFileInput.mdx +1 -1
- package/src/web-components/interaction/form/BdsFileInput.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsFormInput.mdx +8 -1
- package/src/web-components/interaction/form/BdsFormInput.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsNumberInput.mdx +5 -1
- package/src/web-components/interaction/form/BdsNumberInput.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsRadio.mdx +5 -1
- package/src/web-components/interaction/form/BdsRadio.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsRadioGroup.mdx +5 -1
- package/src/web-components/interaction/form/BdsRadioGroup.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsSegmentedControl.mdx +1 -1
- package/src/web-components/interaction/form/BdsSegmentedControl.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsSelect.mdx +5 -1
- package/src/web-components/interaction/form/BdsSelect.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsSlider.mdx +5 -1
- package/src/web-components/interaction/form/BdsSlider.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsSwitch.mdx +5 -1
- package/src/web-components/interaction/form/BdsSwitch.stories.tsx +1 -1
- package/src/web-components/interaction/form/BdsTextarea.mdx +5 -1
- package/src/web-components/interaction/form/BdsTextarea.stories.tsx +1 -1
- package/src/web-components/interaction/form/bds-checkbox-group.spec.ts +32 -3
- package/src/web-components/interaction/form/bds-checkbox-group.ts +33 -17
- package/src/web-components/interaction/form/bds-checkbox.ts +1 -0
- package/src/web-components/interaction/form/bds-combobox.ts +6 -16
- package/src/web-components/interaction/form/bds-form-input.ts +6 -16
- package/src/web-components/interaction/form/bds-number-input.ts +6 -16
- package/src/web-components/interaction/form/bds-radio-group.spec.ts +32 -3
- package/src/web-components/interaction/form/bds-radio-group.ts +26 -14
- package/src/web-components/interaction/form/bds-radio.ts +1 -0
- package/src/web-components/interaction/form/bds-select.ts +6 -16
- package/src/web-components/interaction/form/bds-slider.ts +5 -16
- package/src/web-components/interaction/form/bds-switch.ts +1 -0
- package/src/web-components/interaction/form/bds-textarea.ts +6 -16
- package/src/web-components/interaction/form/field-message.spec.ts +62 -0
- package/src/web-components/interaction/form/field-message.ts +55 -0
- package/src/web-components/layout/BdsGrid.mdx +1 -1
- package/src/web-components/layout/BdsGrid.stories.tsx +1 -1
- package/src/web-components/layout/BdsGridItem.mdx +1 -1
- package/src/web-components/layout/BdsGridItem.stories.tsx +1 -1
- package/src/web-components/ui/BdsAlert.mdx +19 -1
- package/src/web-components/ui/BdsAlert.stories.tsx +29 -3
- package/src/web-components/ui/BdsAvatar.mdx +20 -3
- package/src/web-components/ui/BdsAvatar.stories.tsx +25 -2
- package/src/web-components/ui/BdsBadge.mdx +1 -1
- package/src/web-components/ui/BdsBadge.stories.tsx +1 -1
- package/src/web-components/ui/BdsBreadcrumb.mdx +1 -1
- package/src/web-components/ui/BdsBreadcrumb.stories.tsx +1 -1
- package/src/web-components/ui/BdsButtonContainer.mdx +1 -1
- package/src/web-components/ui/BdsButtonContainer.stories.tsx +1 -1
- package/src/web-components/ui/BdsCalendar.mdx +1 -1
- package/src/web-components/ui/BdsCalendar.stories.tsx +1 -1
- package/src/web-components/ui/BdsCalendarRange.mdx +1 -1
- package/src/web-components/ui/BdsCalendarRange.stories.tsx +1 -1
- package/src/web-components/ui/BdsCard.mdx +1 -1
- package/src/web-components/ui/BdsCard.stories.tsx +1 -1
- package/src/web-components/ui/BdsCarousel.mdx +1 -1
- package/src/web-components/ui/BdsCarousel.stories.tsx +1 -1
- package/src/web-components/ui/BdsDescriptionList.mdx +1 -1
- package/src/web-components/ui/BdsDescriptionList.stories.tsx +1 -1
- package/src/web-components/ui/BdsIconWrapper.mdx +1 -1
- package/src/web-components/ui/BdsIconWrapper.stories.tsx +1 -1
- package/src/web-components/ui/BdsLink.mdx +1 -1
- package/src/web-components/ui/BdsLink.stories.tsx +1 -1
- package/src/web-components/ui/BdsLoading.mdx +1 -1
- package/src/web-components/ui/BdsLoading.stories.tsx +1 -1
- package/src/web-components/ui/BdsNotificationBanner.mdx +10 -1
- package/src/web-components/ui/BdsNotificationBanner.stories.tsx +29 -2
- package/src/web-components/ui/BdsPagination.mdx +1 -1
- package/src/web-components/ui/BdsPagination.stories.tsx +1 -1
- package/src/web-components/ui/BdsProgress.mdx +1 -1
- package/src/web-components/ui/BdsProgress.stories.tsx +1 -1
- package/src/web-components/ui/BdsProgressCircle.mdx +1 -1
- package/src/web-components/ui/BdsProgressCircle.stories.tsx +1 -1
- package/src/web-components/ui/BdsRating.mdx +1 -1
- package/src/web-components/ui/BdsRating.stories.tsx +1 -1
- package/src/web-components/ui/BdsSectionHeader.mdx +18 -6
- package/src/web-components/ui/BdsSectionHeader.stories.tsx +10 -2
- package/src/web-components/ui/BdsSeparator.mdx +2 -1
- package/src/web-components/ui/BdsSeparator.stories.tsx +13 -1
- package/src/web-components/ui/BdsSkeleton.mdx +1 -1
- package/src/web-components/ui/BdsSkeleton.stories.tsx +1 -1
- package/src/web-components/ui/BdsTable.mdx +5 -1
- package/src/web-components/ui/BdsTable.stories.tsx +1 -1
- package/src/web-components/ui/BdsTypography.mdx +1 -1
- package/src/web-components/ui/BdsTypography.stories.tsx +1 -1
- package/src/web-components/ui/bds-alert.spec.ts +27 -0
- package/src/web-components/ui/bds-alert.ts +34 -1
- package/src/web-components/ui/bds-avatar.spec.ts +47 -0
- package/src/web-components/ui/bds-avatar.ts +36 -3
- package/src/web-components/ui/bds-notification-banner.spec.ts +45 -0
- package/src/web-components/ui/bds-notification-banner.ts +53 -1
- package/src/web-components/ui/bds-section-header.spec.ts +36 -3
- package/src/web-components/ui/bds-section-header.ts +32 -10
- package/src/web-components/ui/bds-separator.spec.ts +8 -0
- package/src/web-components/ui/bds-separator.ts +7 -0
- package/src/web-components/ui/bds-table.spec.ts +11 -0
- package/src/web-components/ui/bds-table.ts +5 -5
- package/dist/web-components/chunk-QZAIRJ75.js +0 -111
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useId, useState } from "react";
|
|
3
3
|
|
|
4
4
|
// src/components/ui/Accordion/Accordion.module.css
|
|
5
|
-
var Accordion_default = {"component":"
|
|
5
|
+
var Accordion_default = {"component":"bds2160Accordion-component","accordion":"bds2160Accordion-accordion","item":"bds2160Accordion-item","heading":"bds2160Accordion-heading","trigger":"bds2160Accordion-trigger","triggerLabel":"bds2160Accordion-triggerLabel","chevron":"bds2160Accordion-chevron","--open":"bds2160Accordion---open","panel":"bds2160Accordion-panel","panelContent":"bds2160Accordion-panelContent"};
|
|
6
6
|
|
|
7
7
|
// src/components/ui/Accordion/Accordion.tsx
|
|
8
8
|
import { cn } from "@boostdev/design-system-foundation";
|
|
@@ -71,13 +71,14 @@ function Accordion({
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// src/components/ui/Alert/Alert.module.css
|
|
74
|
-
var Alert_default = {"component":"
|
|
74
|
+
var Alert_default = {"component":"bds2160Alert-component","alert":"bds2160Alert-alert","--variant_info":"bds2160Alert---variant_info","--variant_success":"bds2160Alert---variant_success","--variant_warning":"bds2160Alert---variant_warning","--variant_error":"bds2160Alert---variant_error","--appearance_gradient":"bds2160Alert---appearance_gradient","icon":"bds2160Alert-icon","content":"bds2160Alert-content","title":"bds2160Alert-title","dismiss":"bds2160Alert-dismiss"};
|
|
75
75
|
|
|
76
76
|
// src/components/ui/Alert/Alert.tsx
|
|
77
77
|
import { cn as cn2 } from "@boostdev/design-system-foundation";
|
|
78
78
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
79
79
|
function Alert({
|
|
80
80
|
variant = "info",
|
|
81
|
+
appearance = "default",
|
|
81
82
|
icon,
|
|
82
83
|
title,
|
|
83
84
|
children,
|
|
@@ -93,7 +94,12 @@ function Alert({
|
|
|
93
94
|
role: isUrgent ? "alert" : "status",
|
|
94
95
|
"aria-live": isUrgent ? "assertive" : "polite",
|
|
95
96
|
"aria-atomic": "true",
|
|
96
|
-
className: cn2(
|
|
97
|
+
className: cn2(
|
|
98
|
+
Alert_default.alert,
|
|
99
|
+
Alert_default[`--variant_${variant}`],
|
|
100
|
+
appearance === "gradient" && Alert_default["--appearance_gradient"],
|
|
101
|
+
className
|
|
102
|
+
),
|
|
97
103
|
children: [
|
|
98
104
|
icon && /* @__PURE__ */ jsx2("span", { className: Alert_default.icon, "aria-hidden": "true", children: icon }),
|
|
99
105
|
/* @__PURE__ */ jsxs2("div", { className: Alert_default.content, children: [
|
|
@@ -116,15 +122,33 @@ function Alert({
|
|
|
116
122
|
}
|
|
117
123
|
|
|
118
124
|
// src/components/ui/Avatar/Avatar.module.css
|
|
119
|
-
var Avatar_default = {"component":"
|
|
125
|
+
var Avatar_default = {"component":"bds2160Avatar-component","avatar":"bds2160Avatar-avatar","--fallback":"bds2160Avatar---fallback","--tone_primary":"bds2160Avatar---tone_primary","--tone_secondary":"bds2160Avatar---tone_secondary","--tone_accent-1":"bds2160Avatar---tone_accent-1","--tone_accent-2":"bds2160Avatar---tone_accent-2","--tone_accent-3":"bds2160Avatar---tone_accent-3","--size_small":"bds2160Avatar---size_small","--size_medium":"bds2160Avatar---size_medium","--size_large":"bds2160Avatar---size_large","image":"bds2160Avatar-image","initials":"bds2160Avatar-initials"};
|
|
120
126
|
|
|
121
127
|
// src/components/ui/Avatar/Avatar.tsx
|
|
122
128
|
import { cn as cn3 } from "@boostdev/design-system-foundation";
|
|
129
|
+
|
|
130
|
+
// src/components/ui/Avatar/avatarTone.ts
|
|
131
|
+
var AVATAR_TONES = ["primary", "accent-1", "accent-2", "accent-3", "secondary"];
|
|
132
|
+
function toneFromName(name) {
|
|
133
|
+
const normalised = (name ?? "").trim().toLowerCase();
|
|
134
|
+
if (!normalised) return "primary";
|
|
135
|
+
const hash = [...normalised].reduce(
|
|
136
|
+
(h, ch) => Math.imul(h, 31) + (ch.codePointAt(0) ?? 0) >>> 0,
|
|
137
|
+
0
|
|
138
|
+
);
|
|
139
|
+
return AVATAR_TONES[hash % AVATAR_TONES.length];
|
|
140
|
+
}
|
|
141
|
+
function resolveAvatarTone(tone, name) {
|
|
142
|
+
const isKnownTone = (value) => AVATAR_TONES.some((known) => known === value);
|
|
143
|
+
return tone && isKnownTone(tone) ? tone : toneFromName(name);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// src/components/ui/Avatar/Avatar.tsx
|
|
123
147
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
124
148
|
function getInitials(name) {
|
|
125
149
|
return name.split(" ").filter(Boolean).slice(0, 2).map((word) => word[0].toUpperCase()).join("");
|
|
126
150
|
}
|
|
127
|
-
function Avatar({ src, alt, name, size = "medium", className, ...rest }) {
|
|
151
|
+
function Avatar({ src, alt, name, size = "medium", tone = "auto", className, ...rest }) {
|
|
128
152
|
const sizeClass = Avatar_default[`--size_${size}`];
|
|
129
153
|
if (src) {
|
|
130
154
|
return /* @__PURE__ */ jsx3("span", { ...rest, className: cn3(Avatar_default.avatar, sizeClass, className), children: /* @__PURE__ */ jsx3("img", { src, alt: alt ?? name ?? "User avatar", className: Avatar_default.image }) });
|
|
@@ -136,14 +160,14 @@ function Avatar({ src, alt, name, size = "medium", className, ...rest }) {
|
|
|
136
160
|
...rest,
|
|
137
161
|
role: "img",
|
|
138
162
|
"aria-label": name ?? "User avatar",
|
|
139
|
-
className: cn3(Avatar_default.avatar, Avatar_default["--fallback"], sizeClass, className),
|
|
163
|
+
className: cn3(Avatar_default.avatar, Avatar_default["--fallback"], Avatar_default[`--tone_${resolveAvatarTone(tone, name)}`], sizeClass, className),
|
|
140
164
|
children: /* @__PURE__ */ jsx3("span", { className: Avatar_default.initials, "aria-hidden": "true", children: initials })
|
|
141
165
|
}
|
|
142
166
|
);
|
|
143
167
|
}
|
|
144
168
|
|
|
145
169
|
// src/components/ui/Badge/Badge.module.css
|
|
146
|
-
var Badge_default = {"component":"
|
|
170
|
+
var Badge_default = {"component":"bds2160Badge-component","badge":"bds2160Badge-badge","--variant_primary":"bds2160Badge---variant_primary","--variant_secondary":"bds2160Badge---variant_secondary","--variant_success":"bds2160Badge---variant_success","--variant_error":"bds2160Badge---variant_error","--variant_warning":"bds2160Badge---variant_warning"};
|
|
147
171
|
|
|
148
172
|
// src/components/ui/Badge/Badge.tsx
|
|
149
173
|
import { cn as cn4 } from "@boostdev/design-system-foundation";
|
|
@@ -153,7 +177,7 @@ function Badge({ children, variant = "primary", className, ...rest }) {
|
|
|
153
177
|
}
|
|
154
178
|
|
|
155
179
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
156
|
-
var Breadcrumb_default = {"component":"
|
|
180
|
+
var Breadcrumb_default = {"component":"bds2160Breadcrumb-component","breadcrumb":"bds2160Breadcrumb-breadcrumb","list":"bds2160Breadcrumb-list","item":"bds2160Breadcrumb-item","link":"bds2160Breadcrumb-link","separator":"bds2160Breadcrumb-separator","text":"bds2160Breadcrumb-text","current":"bds2160Breadcrumb-current"};
|
|
157
181
|
|
|
158
182
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
159
183
|
import { cn as cn5 } from "@boostdev/design-system-foundation";
|
|
@@ -169,7 +193,7 @@ function Breadcrumb({ items, className, ...rest }) {
|
|
|
169
193
|
}
|
|
170
194
|
|
|
171
195
|
// src/components/ui/Collapsible/Collapsible.module.css
|
|
172
|
-
var Collapsible_default = {"component":"
|
|
196
|
+
var Collapsible_default = {"component":"bds2160Collapsible-component","collapsible":"bds2160Collapsible-collapsible","summary":"bds2160Collapsible-summary","summaryContent":"bds2160Collapsible-summaryContent","icon":"bds2160Collapsible-icon","content":"bds2160Collapsible-content"};
|
|
173
197
|
|
|
174
198
|
// src/components/ui/Collapsible/Collapsible.tsx
|
|
175
199
|
import { cn as cn6 } from "@boostdev/design-system-foundation";
|
|
@@ -218,7 +242,7 @@ import { useState as useState2, useId as useId2, useRef, useEffect, useCallback
|
|
|
218
242
|
import { cn as cn8 } from "@boostdev/design-system-foundation";
|
|
219
243
|
|
|
220
244
|
// src/components/ui/Calendar/Calendar.module.css
|
|
221
|
-
var Calendar_default = {"component":"
|
|
245
|
+
var Calendar_default = {"component":"bds2160Calendar-component","calendar":"bds2160Calendar-calendar","months":"bds2160Calendar-months","month":"bds2160Calendar-month","monthHeader":"bds2160Calendar-monthHeader","navSlot":"bds2160Calendar-navSlot","monthYear":"bds2160Calendar-monthYear","navBtn":"bds2160Calendar-navBtn","grid":"bds2160Calendar-grid","row":"bds2160Calendar-row","weekday":"bds2160Calendar-weekday","cell":"bds2160Calendar-cell","day":"bds2160Calendar-day","disabled":"bds2160Calendar-disabled","selected":"bds2160Calendar-selected","rangeStart":"bds2160Calendar-rangeStart","rangeEnd":"bds2160Calendar-rangeEnd","outside":"bds2160Calendar-outside","today":"bds2160Calendar-today","inRange":"bds2160Calendar-inRange"};
|
|
222
246
|
|
|
223
247
|
// src/components/ui/Calendar/MonthGrid.tsx
|
|
224
248
|
import { cn as cn7 } from "@boostdev/design-system-foundation";
|
|
@@ -707,7 +731,7 @@ function CalendarRange({
|
|
|
707
731
|
import { useRef as useRef3, useId as useId4 } from "react";
|
|
708
732
|
|
|
709
733
|
// src/components/ui/Carousel/Carousel.module.css
|
|
710
|
-
var Carousel_default = {"component":"
|
|
734
|
+
var Carousel_default = {"component":"bds2160Carousel-component","carousel":"bds2160Carousel-carousel","track":"bds2160Carousel-track","slide":"bds2160Carousel-slide","navBtn":"bds2160Carousel-navBtn"};
|
|
711
735
|
|
|
712
736
|
// src/components/ui/Carousel/Carousel.tsx
|
|
713
737
|
import { cn as cn10 } from "@boostdev/design-system-foundation";
|
|
@@ -765,7 +789,7 @@ function Carousel({ items, label, className, ...rest }) {
|
|
|
765
789
|
}
|
|
766
790
|
|
|
767
791
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
768
|
-
var DescriptionList_default = {"component":"
|
|
792
|
+
var DescriptionList_default = {"component":"bds2160DescriptionList-component","list":"bds2160DescriptionList-list","group":"bds2160DescriptionList-group","term":"bds2160DescriptionList-term","details":"bds2160DescriptionList-details","--layout_inline":"bds2160DescriptionList---layout_inline"};
|
|
769
793
|
|
|
770
794
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
771
795
|
import { cn as cn11 } from "@boostdev/design-system-foundation";
|
|
@@ -778,7 +802,7 @@ function DescriptionList({ items, layout = "stacked", className, ...rest }) {
|
|
|
778
802
|
}
|
|
779
803
|
|
|
780
804
|
// src/components/ui/Link/Link.module.css
|
|
781
|
-
var Link_default = {"component":"
|
|
805
|
+
var Link_default = {"component":"bds2160Link-component","link":"bds2160Link-link","--variant_default":"bds2160Link---variant_default","--variant_subtle":"bds2160Link---variant_subtle","--variant_standalone":"bds2160Link---variant_standalone","externalLabel":"bds2160Link-externalLabel"};
|
|
782
806
|
|
|
783
807
|
// src/components/ui/Link/Link.tsx
|
|
784
808
|
import { cn as cn12 } from "@boostdev/design-system-foundation";
|
|
@@ -809,7 +833,7 @@ function Link({
|
|
|
809
833
|
}
|
|
810
834
|
|
|
811
835
|
// src/components/ui/Loading/Loading.module.css
|
|
812
|
-
var Loading_default = {"component":"
|
|
836
|
+
var Loading_default = {"component":"bds2160Loading-component","loading":"bds2160Loading-loading","spinner":"bds2160Loading-spinner","--size_small":"bds2160Loading---size_small","--size_large":"bds2160Loading---size_large"};
|
|
813
837
|
|
|
814
838
|
// src/components/ui/Loading/Loading.tsx
|
|
815
839
|
import { cn as cn13 } from "@boostdev/design-system-foundation";
|
|
@@ -828,13 +852,15 @@ function Loading({ size = "medium", className, "aria-label": ariaLabel, ...rest
|
|
|
828
852
|
}
|
|
829
853
|
|
|
830
854
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
831
|
-
var NotificationBanner_default = {"component":"
|
|
855
|
+
var NotificationBanner_default = {"component":"bds2160NotificationBanner-component","banner":"bds2160NotificationBanner-banner","--variant_info":"bds2160NotificationBanner---variant_info","--variant_success":"bds2160NotificationBanner---variant_success","--variant_warning":"bds2160NotificationBanner---variant_warning","--variant_error":"bds2160NotificationBanner---variant_error","--appearance_gradient":"bds2160NotificationBanner---appearance_gradient","icon":"bds2160NotificationBanner-icon","content":"bds2160NotificationBanner-content","action":"bds2160NotificationBanner-action","dismiss":"bds2160NotificationBanner-dismiss"};
|
|
832
856
|
|
|
833
857
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
834
858
|
import { cn as cn14 } from "@boostdev/design-system-foundation";
|
|
835
859
|
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
836
860
|
function NotificationBanner({
|
|
837
861
|
variant = "info",
|
|
862
|
+
appearance = "default",
|
|
863
|
+
icon,
|
|
838
864
|
children,
|
|
839
865
|
action,
|
|
840
866
|
onDismiss,
|
|
@@ -849,8 +875,14 @@ function NotificationBanner({
|
|
|
849
875
|
role: isUrgent ? "alert" : "status",
|
|
850
876
|
"aria-live": isUrgent ? "assertive" : "polite",
|
|
851
877
|
"aria-atomic": "true",
|
|
852
|
-
className: cn14(
|
|
878
|
+
className: cn14(
|
|
879
|
+
NotificationBanner_default.banner,
|
|
880
|
+
NotificationBanner_default[`--variant_${variant}`],
|
|
881
|
+
appearance === "gradient" && NotificationBanner_default["--appearance_gradient"],
|
|
882
|
+
className
|
|
883
|
+
),
|
|
853
884
|
children: [
|
|
885
|
+
icon && /* @__PURE__ */ jsx14("span", { className: NotificationBanner_default.icon, "aria-hidden": "true", children: icon }),
|
|
854
886
|
/* @__PURE__ */ jsx14("div", { className: NotificationBanner_default.content, children }),
|
|
855
887
|
action && /* @__PURE__ */ jsx14("div", { className: NotificationBanner_default.action, children: action }),
|
|
856
888
|
onDismiss && /* @__PURE__ */ jsx14(
|
|
@@ -869,7 +901,7 @@ function NotificationBanner({
|
|
|
869
901
|
}
|
|
870
902
|
|
|
871
903
|
// src/components/ui/Pagination/Pagination.module.css
|
|
872
|
-
var Pagination_default = {"component":"
|
|
904
|
+
var Pagination_default = {"component":"bds2160Pagination-component","pagination":"bds2160Pagination-pagination","list":"bds2160Pagination-list","button":"bds2160Pagination-button","--active":"bds2160Pagination---active","--nav":"bds2160Pagination---nav","ellipsis":"bds2160Pagination-ellipsis"};
|
|
873
905
|
|
|
874
906
|
// src/components/ui/Pagination/Pagination.tsx
|
|
875
907
|
import { cn as cn15 } from "@boostdev/design-system-foundation";
|
|
@@ -934,7 +966,7 @@ function Pagination({
|
|
|
934
966
|
}
|
|
935
967
|
|
|
936
968
|
// src/components/ui/Progress/Progress.module.css
|
|
937
|
-
var Progress_default = {"component":"
|
|
969
|
+
var Progress_default = {"component":"bds2160Progress-component","container":"bds2160Progress-container","labelRow":"bds2160Progress-labelRow","value":"bds2160Progress-value","track":"bds2160Progress-track","--size_small":"bds2160Progress---size_small","--size_medium":"bds2160Progress---size_medium","--size_large":"bds2160Progress---size_large","fill":"bds2160Progress-fill"};
|
|
938
970
|
|
|
939
971
|
// src/components/ui/Progress/Progress.tsx
|
|
940
972
|
import { cn as cn16 } from "@boostdev/design-system-foundation";
|
|
@@ -973,7 +1005,7 @@ function Progress({
|
|
|
973
1005
|
}
|
|
974
1006
|
|
|
975
1007
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
976
|
-
var ProgressCircle_default = {"component":"
|
|
1008
|
+
var ProgressCircle_default = {"component":"bds2160ProgressCircle-component","wrapper":"bds2160ProgressCircle-wrapper","svg":"bds2160ProgressCircle-svg","track":"bds2160ProgressCircle-track","fill":"bds2160ProgressCircle-fill","value":"bds2160ProgressCircle-value","--size_small":"bds2160ProgressCircle---size_small","--size_medium":"bds2160ProgressCircle---size_medium","--size_large":"bds2160ProgressCircle---size_large"};
|
|
977
1009
|
|
|
978
1010
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
979
1011
|
import { cn as cn17 } from "@boostdev/design-system-foundation";
|
|
@@ -1054,7 +1086,7 @@ function ProgressCircle({
|
|
|
1054
1086
|
}
|
|
1055
1087
|
|
|
1056
1088
|
// src/components/ui/Separator/Separator.module.css
|
|
1057
|
-
var Separator_default = {"component":"
|
|
1089
|
+
var Separator_default = {"component":"bds2160Separator-component","separator":"bds2160Separator-separator","--horizontal":"bds2160Separator---horizontal","--vertical":"bds2160Separator---vertical"};
|
|
1058
1090
|
|
|
1059
1091
|
// src/components/ui/Separator/Separator.tsx
|
|
1060
1092
|
import { cn as cn18 } from "@boostdev/design-system-foundation";
|
|
@@ -1078,7 +1110,7 @@ function Separator({ orientation = "horizontal", className, ...rest }) {
|
|
|
1078
1110
|
import { cn as cn19 } from "@boostdev/design-system-foundation";
|
|
1079
1111
|
|
|
1080
1112
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
1081
|
-
var Skeleton_default = {"component":"
|
|
1113
|
+
var Skeleton_default = {"component":"bds2160Skeleton-component","skeleton":"bds2160Skeleton-skeleton"};
|
|
1082
1114
|
|
|
1083
1115
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
1084
1116
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
@@ -1087,7 +1119,7 @@ function Skeleton({ className, ...rest }) {
|
|
|
1087
1119
|
}
|
|
1088
1120
|
|
|
1089
1121
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
1090
|
-
var SkipLink_default = {"component":"
|
|
1122
|
+
var SkipLink_default = {"component":"bds2160SkipLink-component","skipLink":"bds2160SkipLink-skipLink"};
|
|
1091
1123
|
|
|
1092
1124
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
1093
1125
|
import { cn as cn20 } from "@boostdev/design-system-foundation";
|
|
@@ -1100,7 +1132,7 @@ function SkipLink({ href = "#main", children = "Skip to main content", className
|
|
|
1100
1132
|
import { useId as useId5 } from "react";
|
|
1101
1133
|
|
|
1102
1134
|
// src/components/ui/Table/Table.module.css
|
|
1103
|
-
var Table_default = {"component":"
|
|
1135
|
+
var Table_default = {"component":"bds2160Table-component","wrapper":"bds2160Table-wrapper","table":"bds2160Table-table","caption":"bds2160Table-caption","thead":"bds2160Table-thead","th":"bds2160Table-th","--sortable":"bds2160Table---sortable","sortButton":"bds2160Table-sortButton","sortIcon":"bds2160Table-sortIcon","--sort-active":"bds2160Table---sort-active","--sort-desc":"bds2160Table---sort-desc","tbody":"bds2160Table-tbody","tr":"bds2160Table-tr","td":"bds2160Table-td"};
|
|
1104
1136
|
|
|
1105
1137
|
// src/components/ui/Table/Table.tsx
|
|
1106
1138
|
import { cn as cn21 } from "@boostdev/design-system-foundation";
|
|
@@ -1192,10 +1224,21 @@ function Table({
|
|
|
1192
1224
|
import { useId as useId6, useRef as useRef4, useState as useState4 } from "react";
|
|
1193
1225
|
|
|
1194
1226
|
// src/components/ui/Tabs/Tabs.module.css
|
|
1195
|
-
var Tabs_default = {"component":"
|
|
1227
|
+
var Tabs_default = {"component":"bds2160Tabs-component","tabs":"bds2160Tabs-tabs","tabList":"bds2160Tabs-tabList","tab":"bds2160Tabs-tab","label":"bds2160Tabs-label","--active":"bds2160Tabs---active","panel":"bds2160Tabs-panel"};
|
|
1196
1228
|
|
|
1197
1229
|
// src/components/ui/Tabs/Tabs.tsx
|
|
1198
1230
|
import { cn as cn22 } from "@boostdev/design-system-foundation";
|
|
1231
|
+
|
|
1232
|
+
// src/components/ui/Tabs/getNodeText.ts
|
|
1233
|
+
import { isValidElement } from "react";
|
|
1234
|
+
function getNodeText(node) {
|
|
1235
|
+
if (typeof node === "string" || typeof node === "number") return String(node);
|
|
1236
|
+
if (Array.isArray(node)) return node.map(getNodeText).join("");
|
|
1237
|
+
if (isValidElement(node)) return getNodeText(node.props.children);
|
|
1238
|
+
return "";
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
// src/components/ui/Tabs/Tabs.tsx
|
|
1199
1242
|
import { jsx as jsx22, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1200
1243
|
function Tabs({ tabs, defaultTab, className, ...rest }) {
|
|
1201
1244
|
const baseId = useId6();
|
|
@@ -1246,7 +1289,7 @@ function Tabs({ tabs, defaultTab, className, ...rest }) {
|
|
|
1246
1289
|
className: cn22(Tabs_default.tab, isActive ? Tabs_default["--active"] : void 0),
|
|
1247
1290
|
onClick: () => setActiveTab(tab.id),
|
|
1248
1291
|
onKeyDown: (e) => handleKeyDown(e, i),
|
|
1249
|
-
children: tab.label
|
|
1292
|
+
children: /* @__PURE__ */ jsx22("span", { className: Tabs_default.label, "data-label": getNodeText(tab.label), children: tab.label })
|
|
1250
1293
|
},
|
|
1251
1294
|
tab.id
|
|
1252
1295
|
);
|
|
@@ -1275,13 +1318,13 @@ function Tabs({ tabs, defaultTab, className, ...rest }) {
|
|
|
1275
1318
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
1276
1319
|
import {
|
|
1277
1320
|
cloneElement,
|
|
1278
|
-
isValidElement,
|
|
1321
|
+
isValidElement as isValidElement2,
|
|
1279
1322
|
useId as useId7,
|
|
1280
1323
|
useState as useState5
|
|
1281
1324
|
} from "react";
|
|
1282
1325
|
|
|
1283
1326
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
1284
|
-
var Tooltip_default = {"component":"
|
|
1327
|
+
var Tooltip_default = {"component":"bds2160Tooltip-component","wrapper":"bds2160Tooltip-wrapper","tooltip":"bds2160Tooltip-tooltip","--visible":"bds2160Tooltip---visible","--placement_top":"bds2160Tooltip---placement_top","--placement_bottom":"bds2160Tooltip---placement_bottom","--placement_left":"bds2160Tooltip---placement_left","--placement_right":"bds2160Tooltip---placement_right"};
|
|
1285
1328
|
|
|
1286
1329
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
1287
1330
|
import { cn as cn23 } from "@boostdev/design-system-foundation";
|
|
@@ -1302,7 +1345,7 @@ function Tooltip({
|
|
|
1302
1345
|
hide();
|
|
1303
1346
|
}
|
|
1304
1347
|
};
|
|
1305
|
-
const trigger =
|
|
1348
|
+
const trigger = isValidElement2(children) ? cloneElement(children, {
|
|
1306
1349
|
"aria-describedby": tooltipId
|
|
1307
1350
|
}) : children;
|
|
1308
1351
|
return /* @__PURE__ */ jsxs15(
|
|
@@ -1333,7 +1376,7 @@ function Tooltip({
|
|
|
1333
1376
|
}
|
|
1334
1377
|
|
|
1335
1378
|
// src/components/ui/Typography/Typography.module.css
|
|
1336
|
-
var Typography_default = {"component":"
|
|
1379
|
+
var Typography_default = {"component":"bds2160Typography-component","typography":"bds2160Typography-typography","--h1":"bds2160Typography---h1","--h2":"bds2160Typography---h2","--h3":"bds2160Typography---h3","--body":"bds2160Typography---body","--body_s":"bds2160Typography---body_s"};
|
|
1337
1380
|
|
|
1338
1381
|
// src/components/ui/Typography/Typography.tsx
|
|
1339
1382
|
import { cn as cn24 } from "@boostdev/design-system-foundation";
|
|
@@ -1351,7 +1394,7 @@ function Typography({ variant = "body", component, children, className, ...rest
|
|
|
1351
1394
|
}
|
|
1352
1395
|
|
|
1353
1396
|
// src/components/interaction/Button/Button.module.css
|
|
1354
|
-
var Button_default = {"component":"
|
|
1397
|
+
var Button_default = {"component":"bds2160Button-component","button":"bds2160Button-button","--default":"bds2160Button---default","--outline":"bds2160Button---outline","--ghost":"bds2160Button---ghost","--size_small":"bds2160Button---size_small","--size_medium":"bds2160Button---size_medium","--size_large":"bds2160Button---size_large","--hasPulse":"bds2160Button---hasPulse","iconStart":"bds2160Button-iconStart","iconEnd":"bds2160Button-iconEnd","--iconOnly":"bds2160Button---iconOnly"};
|
|
1355
1398
|
|
|
1356
1399
|
// src/components/interaction/Button/Button.tsx
|
|
1357
1400
|
import { cn as cn25 } from "@boostdev/design-system-foundation";
|
|
@@ -1468,7 +1511,7 @@ function installInvokerCommandsPolyfill() {
|
|
|
1468
1511
|
}
|
|
1469
1512
|
|
|
1470
1513
|
// src/components/interaction/Command/Command.module.css
|
|
1471
|
-
var Command_default = {"component":"
|
|
1514
|
+
var Command_default = {"component":"bds2160Command-component","dialog":"bds2160Command-dialog","palette":"bds2160Command-palette","searchRow":"bds2160Command-searchRow","searchIcon":"bds2160Command-searchIcon","search":"bds2160Command-search","escHint":"bds2160Command-escHint","list":"bds2160Command-list","groupList":"bds2160Command-groupList","group":"bds2160Command-group","item":"bds2160Command-item","itemActive":"bds2160Command-itemActive","itemLabel":"bds2160Command-itemLabel","itemDesc":"bds2160Command-itemDesc","shortcut":"bds2160Command-shortcut","empty":"bds2160Command-empty","srOnly":"bds2160Command-srOnly"};
|
|
1472
1515
|
|
|
1473
1516
|
// src/components/interaction/Command/Command.tsx
|
|
1474
1517
|
import { cn as cn26 } from "@boostdev/design-system-foundation";
|
|
@@ -1650,7 +1693,7 @@ function Command({
|
|
|
1650
1693
|
import { useEffect as useEffect4, useId as useId9, useRef as useRef6 } from "react";
|
|
1651
1694
|
|
|
1652
1695
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1653
|
-
var Dialog_default = {"component":"
|
|
1696
|
+
var Dialog_default = {"component":"bds2160Dialog-component","dialog":"bds2160Dialog-dialog","dialogContent":"bds2160Dialog-dialogContent","closeButton":"bds2160Dialog-closeButton"};
|
|
1654
1697
|
|
|
1655
1698
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1656
1699
|
import { cn as cn27 } from "@boostdev/design-system-foundation";
|
|
@@ -1758,7 +1801,7 @@ function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClo
|
|
|
1758
1801
|
import { useEffect as useEffect5, useId as useId10, useRef as useRef7 } from "react";
|
|
1759
1802
|
|
|
1760
1803
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1761
|
-
var Drawer_default = {"component":"
|
|
1804
|
+
var Drawer_default = {"component":"bds2160Drawer-component","drawer":"bds2160Drawer-drawer","--side_left":"bds2160Drawer---side_left","header":"bds2160Drawer-header","closeButton":"bds2160Drawer-closeButton","body":"bds2160Drawer-body"};
|
|
1762
1805
|
|
|
1763
1806
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1764
1807
|
import { cn as cn28 } from "@boostdev/design-system-foundation";
|
|
@@ -1878,8 +1921,9 @@ function Drawer({
|
|
|
1878
1921
|
|
|
1879
1922
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1880
1923
|
import {
|
|
1924
|
+
Fragment as Fragment3,
|
|
1881
1925
|
cloneElement as cloneElement2,
|
|
1882
|
-
isValidElement as
|
|
1926
|
+
isValidElement as isValidElement3,
|
|
1883
1927
|
useEffect as useEffect6,
|
|
1884
1928
|
useId as useId11,
|
|
1885
1929
|
useRef as useRef8,
|
|
@@ -1887,11 +1931,16 @@ import {
|
|
|
1887
1931
|
} from "react";
|
|
1888
1932
|
|
|
1889
1933
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1890
|
-
var DropdownMenu_default = {"component":"
|
|
1934
|
+
var DropdownMenu_default = {"component":"bds2160DropdownMenu-component","wrapper":"bds2160DropdownMenu-wrapper","menu":"bds2160DropdownMenu-menu","--placement_bottom-start":"bds2160DropdownMenu---placement_bottom-start","--placement_bottom-end":"bds2160DropdownMenu---placement_bottom-end","separatorRow":"bds2160DropdownMenu-separatorRow","separator":"bds2160DropdownMenu-separator","group":"bds2160DropdownMenu-group","groupLabel":"bds2160DropdownMenu-groupLabel","item":"bds2160DropdownMenu-item","--destructive":"bds2160DropdownMenu---destructive","label":"bds2160DropdownMenu-label","shortcut":"bds2160DropdownMenu-shortcut","icon":"bds2160DropdownMenu-icon"};
|
|
1891
1935
|
|
|
1892
1936
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1893
1937
|
import { cn as cn29 } from "@boostdev/design-system-foundation";
|
|
1894
1938
|
import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1939
|
+
var toSegments = (items) => items.reduce((segments, item, index) => {
|
|
1940
|
+
const last = segments[segments.length - 1];
|
|
1941
|
+
const startsNewSegment = !last || item.group === void 0 || last[0].item.group !== item.group;
|
|
1942
|
+
return startsNewSegment ? [...segments, [{ item, index }]] : [...segments.slice(0, -1), [...last, { item, index }]];
|
|
1943
|
+
}, []);
|
|
1895
1944
|
function DropdownMenu({
|
|
1896
1945
|
trigger,
|
|
1897
1946
|
items,
|
|
@@ -1956,7 +2005,7 @@ function DropdownMenu({
|
|
|
1956
2005
|
close();
|
|
1957
2006
|
}
|
|
1958
2007
|
};
|
|
1959
|
-
const triggerEl =
|
|
2008
|
+
const triggerEl = isValidElement3(trigger) ? cloneElement2(trigger, {
|
|
1960
2009
|
"aria-haspopup": "menu",
|
|
1961
2010
|
"aria-expanded": isOpen,
|
|
1962
2011
|
"aria-controls": menuId,
|
|
@@ -1978,30 +2027,44 @@ function DropdownMenu({
|
|
|
1978
2027
|
id: menuId,
|
|
1979
2028
|
role: "menu",
|
|
1980
2029
|
className: cn29(DropdownMenu_default.menu, DropdownMenu_default[`--placement_${placement}`]),
|
|
1981
|
-
children: items.map((
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2030
|
+
children: toSegments(items).map((segment) => {
|
|
2031
|
+
const { item: first } = segment[0];
|
|
2032
|
+
const groupLabel = first.group;
|
|
2033
|
+
const renderSeparator = () => /* @__PURE__ */ jsx29("li", { role: "presentation", className: DropdownMenu_default.separatorRow, children: /* @__PURE__ */ jsx29("hr", { className: DropdownMenu_default.separator, role: "separator" }) });
|
|
2034
|
+
const leadingSeparator = groupLabel !== void 0 && first.separator;
|
|
2035
|
+
const rows = segment.map(({ item, index }, position) => /* @__PURE__ */ jsxs20(Fragment3, { children: [
|
|
2036
|
+
item.separator && !(leadingSeparator && position === 0) && renderSeparator(),
|
|
2037
|
+
/* @__PURE__ */ jsx29("li", { role: "presentation", children: /* @__PURE__ */ jsxs20(
|
|
2038
|
+
"button",
|
|
2039
|
+
{
|
|
2040
|
+
ref: (el) => {
|
|
2041
|
+
itemRefs.current[index] = el;
|
|
2042
|
+
},
|
|
2043
|
+
type: "button",
|
|
2044
|
+
role: "menuitem",
|
|
2045
|
+
disabled: item.disabled,
|
|
2046
|
+
className: cn29(DropdownMenu_default.item, item.destructive && DropdownMenu_default["--destructive"]),
|
|
2047
|
+
onClick: () => {
|
|
2048
|
+
item.onClick?.();
|
|
2049
|
+
close(true);
|
|
2050
|
+
},
|
|
2051
|
+
onKeyDown: (e) => handleItemKeyDown(e, index),
|
|
2052
|
+
children: [
|
|
2053
|
+
item.icon && /* @__PURE__ */ jsx29("span", { className: DropdownMenu_default.icon, "aria-hidden": "true", children: item.icon }),
|
|
2054
|
+
/* @__PURE__ */ jsx29("span", { className: DropdownMenu_default.label, children: item.label }),
|
|
2055
|
+
item.shortcut && /* @__PURE__ */ jsx29("span", { className: DropdownMenu_default.shortcut, "aria-hidden": "true", children: item.shortcut })
|
|
2056
|
+
]
|
|
2057
|
+
}
|
|
2058
|
+
) })
|
|
2059
|
+
] }, item.id));
|
|
2060
|
+
return groupLabel === void 0 ? rows : /* @__PURE__ */ jsxs20(Fragment3, { children: [
|
|
2061
|
+
leadingSeparator && renderSeparator(),
|
|
2062
|
+
/* @__PURE__ */ jsx29("li", { role: "presentation", children: /* @__PURE__ */ jsxs20("ul", { role: "group", "aria-labelledby": `${menuId}-group-${first.id}`, className: DropdownMenu_default.group, children: [
|
|
2063
|
+
/* @__PURE__ */ jsx29("li", { role: "presentation", id: `${menuId}-group-${first.id}`, className: DropdownMenu_default.groupLabel, children: groupLabel }),
|
|
2064
|
+
rows
|
|
2065
|
+
] }) })
|
|
2066
|
+
] }, `group-${first.id}`);
|
|
2067
|
+
})
|
|
2005
2068
|
}
|
|
2006
2069
|
)
|
|
2007
2070
|
] });
|
|
@@ -2010,7 +2073,7 @@ function DropdownMenu({
|
|
|
2010
2073
|
// src/components/interaction/Popover/Popover.tsx
|
|
2011
2074
|
import {
|
|
2012
2075
|
cloneElement as cloneElement3,
|
|
2013
|
-
isValidElement as
|
|
2076
|
+
isValidElement as isValidElement4,
|
|
2014
2077
|
useEffect as useEffect7,
|
|
2015
2078
|
useId as useId12,
|
|
2016
2079
|
useRef as useRef9,
|
|
@@ -2018,7 +2081,7 @@ import {
|
|
|
2018
2081
|
} from "react";
|
|
2019
2082
|
|
|
2020
2083
|
// src/components/interaction/Popover/Popover.module.css
|
|
2021
|
-
var Popover_default = {"component":"
|
|
2084
|
+
var Popover_default = {"component":"bds2160Popover-component","wrapper":"bds2160Popover-wrapper","panel":"bds2160Popover-panel","g":"bds2160Popover-g"};
|
|
2022
2085
|
|
|
2023
2086
|
// src/components/interaction/Popover/Popover.tsx
|
|
2024
2087
|
import { cn as cn30 } from "@boostdev/design-system-foundation";
|
|
@@ -2068,7 +2131,7 @@ function Popover({
|
|
|
2068
2131
|
window.removeEventListener("resize", handleScroll);
|
|
2069
2132
|
};
|
|
2070
2133
|
}, [isOpen]);
|
|
2071
|
-
const trigger =
|
|
2134
|
+
const trigger = isValidElement4(children) ? cloneElement3(children, {
|
|
2072
2135
|
"aria-expanded": isOpen,
|
|
2073
2136
|
"aria-controls": panelId,
|
|
2074
2137
|
commandfor: panelId,
|
|
@@ -2114,7 +2177,7 @@ function Popover({
|
|
|
2114
2177
|
}
|
|
2115
2178
|
|
|
2116
2179
|
// src/components/interaction/Rating/Rating.module.css
|
|
2117
|
-
var Rating_default = {"component":"
|
|
2180
|
+
var Rating_default = {"component":"bds2160Rating-component","rating":"bds2160Rating-rating","star":"bds2160Rating-star","--filled":"bds2160Rating---filled"};
|
|
2118
2181
|
|
|
2119
2182
|
// src/components/interaction/Rating/Rating.tsx
|
|
2120
2183
|
import { cn as cn31 } from "@boostdev/design-system-foundation";
|
|
@@ -2146,7 +2209,7 @@ function Rating({ value, max = 5, className, ...rest }) {
|
|
|
2146
2209
|
import { useState as useState9, useEffect as useEffect8, createContext, useContext, useCallback as useCallback3, useMemo as useMemo2, useRef as useRef10 } from "react";
|
|
2147
2210
|
|
|
2148
2211
|
// src/components/interaction/Toast/Toast.module.css
|
|
2149
|
-
var Toast_default = {"component":"
|
|
2212
|
+
var Toast_default = {"component":"bds2160Toast-component","toastContainer":"bds2160Toast-toastContainer","toast":"bds2160Toast-toast","md":"bds2160Toast-md","--variant_success":"bds2160Toast---variant_success","--variant_warning":"bds2160Toast---variant_warning","--variant_info":"bds2160Toast---variant_info","--variant_error":"bds2160Toast---variant_error","message":"bds2160Toast-message","closeButton":"bds2160Toast-closeButton"};
|
|
2150
2213
|
|
|
2151
2214
|
// src/components/interaction/Toast/Toast.tsx
|
|
2152
2215
|
import { cn as cn32 } from "@boostdev/design-system-foundation";
|
|
@@ -2227,21 +2290,24 @@ function useToast() {
|
|
|
2227
2290
|
import { useId as useId13 } from "react";
|
|
2228
2291
|
|
|
2229
2292
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
2230
|
-
var Checkbox_default = {"component":"
|
|
2293
|
+
var Checkbox_default = {"component":"bds2160Checkbox-component","checkboxGroup":"bds2160Checkbox-checkboxGroup","inputWrapper":"bds2160Checkbox-inputWrapper","checkbox":"bds2160Checkbox-checkbox","checkboxError":"bds2160Checkbox-checkboxError"};
|
|
2231
2294
|
|
|
2232
2295
|
// src/components/interaction/form/atoms/Message.module.css
|
|
2233
|
-
var Message_default = {"component":"
|
|
2296
|
+
var Message_default = {"component":"bds2160Message-component","error":"bds2160Message-error","hint":"bds2160Message-hint","icon":"bds2160Message-icon"};
|
|
2234
2297
|
|
|
2235
2298
|
// src/components/interaction/form/atoms/Message.tsx
|
|
2236
2299
|
import { cn as cn33 } from "@boostdev/design-system-foundation";
|
|
2237
|
-
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2300
|
+
import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2238
2301
|
var Message = ({ message, type, inputId, className }) => {
|
|
2239
2302
|
if (!message) return null;
|
|
2240
|
-
return /* @__PURE__ */
|
|
2303
|
+
return /* @__PURE__ */ jsxs23("p", { id: inputId + type, role: type === "error" ? "alert" : void 0, className: cn33(Message_default[type], className), children: [
|
|
2304
|
+
type === "error" && /* @__PURE__ */ jsx33("svg", { className: Message_default.icon, "aria-hidden": "true", viewBox: "0 0 256 256", fill: "currentColor", children: /* @__PURE__ */ jsx33("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" }) }),
|
|
2305
|
+
message
|
|
2306
|
+
] });
|
|
2241
2307
|
};
|
|
2242
2308
|
|
|
2243
2309
|
// src/components/interaction/form/atoms/Label.module.css
|
|
2244
|
-
var Label_default = {"component":"
|
|
2310
|
+
var Label_default = {"component":"bds2160Label-component","label":"bds2160Label-label"};
|
|
2245
2311
|
|
|
2246
2312
|
// src/components/interaction/form/atoms/Label.tsx
|
|
2247
2313
|
import { cn as cn34 } from "@boostdev/design-system-foundation";
|
|
@@ -2254,7 +2320,7 @@ var Label = ({ label, id, className }) => {
|
|
|
2254
2320
|
import { cn as cn36 } from "@boostdev/design-system-foundation";
|
|
2255
2321
|
|
|
2256
2322
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
2257
|
-
var InputContainer_default = {"component":"
|
|
2323
|
+
var InputContainer_default = {"component":"bds2160InputContainer-component","container":"bds2160InputContainer-container"};
|
|
2258
2324
|
|
|
2259
2325
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
2260
2326
|
import { cn as cn35 } from "@boostdev/design-system-foundation";
|
|
@@ -2264,14 +2330,14 @@ var InputContainer = ({ children, className, ...rest }) => {
|
|
|
2264
2330
|
};
|
|
2265
2331
|
|
|
2266
2332
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
2267
|
-
import { jsx as jsx36, jsxs as
|
|
2333
|
+
import { jsx as jsx36, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2268
2334
|
function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
2269
2335
|
const id = name + useId13();
|
|
2270
2336
|
const hintId = id + "hint";
|
|
2271
2337
|
const errorId = id + "error";
|
|
2272
2338
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2273
|
-
return /* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
2339
|
+
return /* @__PURE__ */ jsxs24(InputContainer, { className: cn36(Checkbox_default.checkboxGroup, className), children: [
|
|
2340
|
+
/* @__PURE__ */ jsxs24("div", { className: Checkbox_default.inputWrapper, children: [
|
|
2275
2341
|
/* @__PURE__ */ jsx36(
|
|
2276
2342
|
"input",
|
|
2277
2343
|
{
|
|
@@ -2295,11 +2361,11 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
2295
2361
|
import { useId as useId14 } from "react";
|
|
2296
2362
|
|
|
2297
2363
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
2298
|
-
var CheckboxGroup_default = {"component":"
|
|
2364
|
+
var CheckboxGroup_default = {"component":"bds2160CheckboxGroup-component","group":"bds2160CheckboxGroup-group","legend":"bds2160CheckboxGroup-legend","required":"bds2160CheckboxGroup-required","requiredLabel":"bds2160CheckboxGroup-requiredLabel","items":"bds2160CheckboxGroup-items","groupError":"bds2160CheckboxGroup-groupError"};
|
|
2299
2365
|
|
|
2300
2366
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
2301
2367
|
import { cn as cn37 } from "@boostdev/design-system-foundation";
|
|
2302
|
-
import { Fragment as
|
|
2368
|
+
import { Fragment as Fragment4, jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2303
2369
|
function CheckboxGroup({
|
|
2304
2370
|
legend,
|
|
2305
2371
|
children,
|
|
@@ -2313,16 +2379,16 @@ function CheckboxGroup({
|
|
|
2313
2379
|
const hintId = id + "hint";
|
|
2314
2380
|
const errorId = id + "error";
|
|
2315
2381
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2316
|
-
return /* @__PURE__ */
|
|
2382
|
+
return /* @__PURE__ */ jsxs25(
|
|
2317
2383
|
"fieldset",
|
|
2318
2384
|
{
|
|
2319
2385
|
...rest,
|
|
2320
|
-
className: cn37(CheckboxGroup_default.group, className),
|
|
2386
|
+
className: cn37(CheckboxGroup_default.group, error && CheckboxGroup_default.groupError, className),
|
|
2321
2387
|
"aria-describedby": describedBy,
|
|
2322
2388
|
children: [
|
|
2323
|
-
/* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ jsxs25("legend", { className: CheckboxGroup_default.legend, children: [
|
|
2324
2390
|
legend,
|
|
2325
|
-
required && /* @__PURE__ */
|
|
2391
|
+
required && /* @__PURE__ */ jsxs25(Fragment4, { children: [
|
|
2326
2392
|
/* @__PURE__ */ jsx37("span", { className: CheckboxGroup_default.required, "aria-hidden": "true", children: " *" }),
|
|
2327
2393
|
" ",
|
|
2328
2394
|
/* @__PURE__ */ jsx37("span", { className: CheckboxGroup_default.requiredLabel, children: "(required)" })
|
|
@@ -2346,11 +2412,11 @@ import {
|
|
|
2346
2412
|
} from "react";
|
|
2347
2413
|
|
|
2348
2414
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
2349
|
-
var Combobox_default = {"component":"
|
|
2415
|
+
var Combobox_default = {"component":"bds2160Combobox-component","formGroup":"bds2160Combobox-formGroup","inputWrapper":"bds2160Combobox-inputWrapper","input":"bds2160Combobox-input","inputError":"bds2160Combobox-inputError","chevron":"bds2160Combobox-chevron","listbox":"bds2160Combobox-listbox","option":"bds2160Combobox-option","--highlighted":"bds2160Combobox---highlighted","--selected":"bds2160Combobox---selected","--disabled":"bds2160Combobox---disabled"};
|
|
2350
2416
|
|
|
2351
2417
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
2352
2418
|
import { cn as cn38 } from "@boostdev/design-system-foundation";
|
|
2353
|
-
import { jsx as jsx38, jsxs as
|
|
2419
|
+
import { jsx as jsx38, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2354
2420
|
function Combobox({
|
|
2355
2421
|
label,
|
|
2356
2422
|
name,
|
|
@@ -2442,9 +2508,9 @@ function Combobox({
|
|
|
2442
2508
|
setIsOpen(false);
|
|
2443
2509
|
}
|
|
2444
2510
|
};
|
|
2445
|
-
return /* @__PURE__ */
|
|
2511
|
+
return /* @__PURE__ */ jsxs26(InputContainer, { ...rest, className: cn38(Combobox_default.formGroup, className), children: [
|
|
2446
2512
|
/* @__PURE__ */ jsx38(Label, { id, label }),
|
|
2447
|
-
/* @__PURE__ */
|
|
2513
|
+
/* @__PURE__ */ jsxs26("div", { ref: containerRef, className: Combobox_default.inputWrapper, children: [
|
|
2448
2514
|
/* @__PURE__ */ jsx38(
|
|
2449
2515
|
"input",
|
|
2450
2516
|
{
|
|
@@ -2517,10 +2583,10 @@ import {
|
|
|
2517
2583
|
import { cn as cn39 } from "@boostdev/design-system-foundation";
|
|
2518
2584
|
|
|
2519
2585
|
// src/components/interaction/form/FieldGroup/FieldGroup.module.css
|
|
2520
|
-
var FieldGroup_default = {"component":"
|
|
2586
|
+
var FieldGroup_default = {"component":"bds2160FieldGroup-component","fieldGroup":"bds2160FieldGroup-fieldGroup","legend":"bds2160FieldGroup-legend","fields":"bds2160FieldGroup-fields","--variant_horizontal":"bds2160FieldGroup---variant_horizontal","probe":"bds2160FieldGroup-probe","tsx":"bds2160FieldGroup-tsx","probeContainer":"bds2160FieldGroup-probeContainer"};
|
|
2521
2587
|
|
|
2522
2588
|
// src/components/interaction/form/FieldGroup/FieldGroup.tsx
|
|
2523
|
-
import { jsx as jsx39, jsxs as
|
|
2589
|
+
import { jsx as jsx39, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2524
2590
|
var getInlineSize = (entry) => entry.contentBoxSize?.[0]?.inlineSize ?? entry.contentRect.width;
|
|
2525
2591
|
function FieldGroup({
|
|
2526
2592
|
variant = "horizontal",
|
|
@@ -2559,7 +2625,7 @@ function FieldGroup({
|
|
|
2559
2625
|
observer.observe(probeEl);
|
|
2560
2626
|
return () => observer.disconnect();
|
|
2561
2627
|
}, [variant]);
|
|
2562
|
-
return /* @__PURE__ */
|
|
2628
|
+
return /* @__PURE__ */ jsxs27(
|
|
2563
2629
|
"fieldset",
|
|
2564
2630
|
{
|
|
2565
2631
|
...rest,
|
|
@@ -2580,11 +2646,11 @@ function FieldGroup({
|
|
|
2580
2646
|
import { useId as useId16, useRef as useRef13, useState as useState12 } from "react";
|
|
2581
2647
|
|
|
2582
2648
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
2583
|
-
var FileInput_default = {"component":"
|
|
2649
|
+
var FileInput_default = {"component":"bds2160FileInput-component","formGroup":"bds2160FileInput-formGroup","fieldLabel":"bds2160FileInput-fieldLabel","dropZone":"bds2160FileInput-dropZone","isDragging":"bds2160FileInput-isDragging","hasError":"bds2160FileInput-hasError","isDisabled":"bds2160FileInput-isDisabled","icon":"bds2160FileInput-icon","prompt":"bds2160FileInput-prompt","acceptHint":"bds2160FileInput-acceptHint","hiddenInput":"bds2160FileInput-hiddenInput"};
|
|
2584
2650
|
|
|
2585
2651
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
2586
2652
|
import { cn as cn40 } from "@boostdev/design-system-foundation";
|
|
2587
|
-
import { Fragment as
|
|
2653
|
+
import { Fragment as Fragment5, jsx as jsx40, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2588
2654
|
function FileInput({
|
|
2589
2655
|
label,
|
|
2590
2656
|
name,
|
|
@@ -2638,8 +2704,8 @@ function FileInput({
|
|
|
2638
2704
|
const handleDragLeave = (e) => {
|
|
2639
2705
|
if (!e.currentTarget.contains(e.relatedTarget)) setIsDragging(false);
|
|
2640
2706
|
};
|
|
2641
|
-
return /* @__PURE__ */
|
|
2642
|
-
/* @__PURE__ */
|
|
2707
|
+
return /* @__PURE__ */ jsxs28(InputContainer, { ...rest, className: cn40(FileInput_default.formGroup, className), children: [
|
|
2708
|
+
/* @__PURE__ */ jsxs28(
|
|
2643
2709
|
"label",
|
|
2644
2710
|
{
|
|
2645
2711
|
htmlFor: uid,
|
|
@@ -2650,7 +2716,7 @@ function FileInput({
|
|
|
2650
2716
|
children: [
|
|
2651
2717
|
/* @__PURE__ */ jsx40("span", { className: FileInput_default.fieldLabel, children: label }),
|
|
2652
2718
|
/* @__PURE__ */ jsx40("svg", { "aria-hidden": "true", className: FileInput_default.icon, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ jsx40("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5" }) }),
|
|
2653
|
-
/* @__PURE__ */ jsx40("span", { className: FileInput_default.prompt, children: fileNames.length > 0 ? fileNames.join(", ") : /* @__PURE__ */
|
|
2719
|
+
/* @__PURE__ */ jsx40("span", { className: FileInput_default.prompt, children: fileNames.length > 0 ? fileNames.join(", ") : /* @__PURE__ */ jsxs28(Fragment5, { children: [
|
|
2654
2720
|
/* @__PURE__ */ jsx40("strong", { children: "Click to upload" }),
|
|
2655
2721
|
" or drag and drop"
|
|
2656
2722
|
] }) }),
|
|
@@ -2685,11 +2751,11 @@ function FileInput({
|
|
|
2685
2751
|
import { useId as useId17 } from "react";
|
|
2686
2752
|
|
|
2687
2753
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
2688
|
-
var FormInput_default = {"component":"
|
|
2754
|
+
var FormInput_default = {"component":"bds2160FormInput-component","formGroup":"bds2160FormInput-formGroup","input":"bds2160FormInput-input","g":"bds2160FormInput-g","inputError":"bds2160FormInput-inputError"};
|
|
2689
2755
|
|
|
2690
2756
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2691
2757
|
import { cn as cn41 } from "@boostdev/design-system-foundation";
|
|
2692
|
-
import { jsx as jsx41, jsxs as
|
|
2758
|
+
import { jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2693
2759
|
function FormInput({
|
|
2694
2760
|
label,
|
|
2695
2761
|
name,
|
|
@@ -2705,7 +2771,7 @@ function FormInput({
|
|
|
2705
2771
|
const hintId = id + "hint";
|
|
2706
2772
|
const errorId = id + "error";
|
|
2707
2773
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2708
|
-
return /* @__PURE__ */
|
|
2774
|
+
return /* @__PURE__ */ jsxs29(InputContainer, { className: cn41(FormInput_default.formGroup, className), children: [
|
|
2709
2775
|
/* @__PURE__ */ jsx41(Label, { id, label }),
|
|
2710
2776
|
/* @__PURE__ */ jsx41(
|
|
2711
2777
|
"input",
|
|
@@ -2730,11 +2796,11 @@ function FormInput({
|
|
|
2730
2796
|
import { useEffect as useEffect11, useId as useId18, useRef as useRef14, useState as useState13 } from "react";
|
|
2731
2797
|
|
|
2732
2798
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2733
|
-
var NumberInput_default = {"component":"
|
|
2799
|
+
var NumberInput_default = {"component":"bds2160NumberInput-component","formGroup":"bds2160NumberInput-formGroup","inputRow":"bds2160NumberInput-inputRow","input":"bds2160NumberInput-input","inputError":"bds2160NumberInput-inputError","stepper":"bds2160NumberInput-stepper"};
|
|
2734
2800
|
|
|
2735
2801
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2736
2802
|
import { cn as cn42 } from "@boostdev/design-system-foundation";
|
|
2737
|
-
import { jsx as jsx42, jsxs as
|
|
2803
|
+
import { jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2738
2804
|
function NumberInput({
|
|
2739
2805
|
label,
|
|
2740
2806
|
name,
|
|
@@ -2782,9 +2848,9 @@ function NumberInput({
|
|
|
2782
2848
|
}
|
|
2783
2849
|
onChange?.(next);
|
|
2784
2850
|
};
|
|
2785
|
-
return /* @__PURE__ */
|
|
2851
|
+
return /* @__PURE__ */ jsxs30(InputContainer, { ...rest, className: cn42(NumberInput_default.formGroup, className), children: [
|
|
2786
2852
|
/* @__PURE__ */ jsx42(Label, { id: uid, label }),
|
|
2787
|
-
/* @__PURE__ */
|
|
2853
|
+
/* @__PURE__ */ jsxs30("div", { className: NumberInput_default.inputRow, children: [
|
|
2788
2854
|
/* @__PURE__ */ jsx42(
|
|
2789
2855
|
"button",
|
|
2790
2856
|
{
|
|
@@ -2848,19 +2914,19 @@ function NumberInput({
|
|
|
2848
2914
|
import { useId as useId19 } from "react";
|
|
2849
2915
|
|
|
2850
2916
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2851
|
-
var Radio_default = {"component":"
|
|
2917
|
+
var Radio_default = {"component":"bds2160Radio-component","radioGroup":"bds2160Radio-radioGroup","inputWrapper":"bds2160Radio-inputWrapper","textWrapper":"bds2160Radio-textWrapper","description":"bds2160Radio-description","radio":"bds2160Radio-radio","g":"bds2160Radio-g","radioError":"bds2160Radio-radioError"};
|
|
2852
2918
|
|
|
2853
2919
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2854
2920
|
import { cn as cn43 } from "@boostdev/design-system-foundation";
|
|
2855
|
-
import { jsx as jsx43, jsxs as
|
|
2921
|
+
import { jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2856
2922
|
function Radio({ label, name, description, error, hint, className, id: consumerId, ...props }) {
|
|
2857
2923
|
const id = consumerId ?? name + useId19();
|
|
2858
2924
|
const descriptionId = id + "description";
|
|
2859
2925
|
const hintId = id + "hint";
|
|
2860
2926
|
const errorId = id + "error";
|
|
2861
2927
|
const describedBy = [description && descriptionId, error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2862
|
-
return /* @__PURE__ */
|
|
2863
|
-
/* @__PURE__ */
|
|
2928
|
+
return /* @__PURE__ */ jsxs31(InputContainer, { className: cn43(Radio_default.radioGroup, className), children: [
|
|
2929
|
+
/* @__PURE__ */ jsxs31("div", { className: Radio_default.inputWrapper, children: [
|
|
2864
2930
|
/* @__PURE__ */ jsx43(
|
|
2865
2931
|
"input",
|
|
2866
2932
|
{
|
|
@@ -2873,7 +2939,7 @@ function Radio({ label, name, description, error, hint, className, id: consumerI
|
|
|
2873
2939
|
...props
|
|
2874
2940
|
}
|
|
2875
2941
|
),
|
|
2876
|
-
/* @__PURE__ */
|
|
2942
|
+
/* @__PURE__ */ jsxs31("div", { className: Radio_default.textWrapper, children: [
|
|
2877
2943
|
/* @__PURE__ */ jsx43(Label, { id, label }),
|
|
2878
2944
|
description && /* @__PURE__ */ jsx43("span", { id: descriptionId, className: Radio_default.description, children: description })
|
|
2879
2945
|
] })
|
|
@@ -2887,11 +2953,11 @@ function Radio({ label, name, description, error, hint, className, id: consumerI
|
|
|
2887
2953
|
import { useId as useId20 } from "react";
|
|
2888
2954
|
|
|
2889
2955
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2890
|
-
var RadioGroup_default = {"component":"
|
|
2956
|
+
var RadioGroup_default = {"component":"bds2160RadioGroup-component","group":"bds2160RadioGroup-group","legend":"bds2160RadioGroup-legend","required":"bds2160RadioGroup-required","requiredLabel":"bds2160RadioGroup-requiredLabel","items":"bds2160RadioGroup-items","groupError":"bds2160RadioGroup-groupError"};
|
|
2891
2957
|
|
|
2892
2958
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2893
2959
|
import { cn as cn44 } from "@boostdev/design-system-foundation";
|
|
2894
|
-
import { Fragment as
|
|
2960
|
+
import { Fragment as Fragment6, jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2895
2961
|
function RadioGroup({
|
|
2896
2962
|
legend,
|
|
2897
2963
|
children,
|
|
@@ -2905,16 +2971,16 @@ function RadioGroup({
|
|
|
2905
2971
|
const hintId = id + "hint";
|
|
2906
2972
|
const errorId = id + "error";
|
|
2907
2973
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2908
|
-
return /* @__PURE__ */
|
|
2974
|
+
return /* @__PURE__ */ jsxs32(
|
|
2909
2975
|
"fieldset",
|
|
2910
2976
|
{
|
|
2911
2977
|
...rest,
|
|
2912
|
-
className: cn44(RadioGroup_default.group, className),
|
|
2978
|
+
className: cn44(RadioGroup_default.group, error && RadioGroup_default.groupError, className),
|
|
2913
2979
|
"aria-describedby": describedBy,
|
|
2914
2980
|
children: [
|
|
2915
|
-
/* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ jsxs32("legend", { className: RadioGroup_default.legend, children: [
|
|
2916
2982
|
legend,
|
|
2917
|
-
required && /* @__PURE__ */
|
|
2983
|
+
required && /* @__PURE__ */ jsxs32(Fragment6, { children: [
|
|
2918
2984
|
/* @__PURE__ */ jsx44("span", { className: RadioGroup_default.required, "aria-hidden": "true", children: " *" }),
|
|
2919
2985
|
" ",
|
|
2920
2986
|
/* @__PURE__ */ jsx44("span", { className: RadioGroup_default.requiredLabel, children: "(required)" })
|
|
@@ -2929,14 +2995,14 @@ function RadioGroup({
|
|
|
2929
2995
|
}
|
|
2930
2996
|
|
|
2931
2997
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2932
|
-
import { Children as Children2, cloneElement as cloneElement4, isValidElement as
|
|
2998
|
+
import { Children as Children2, cloneElement as cloneElement4, isValidElement as isValidElement5 } from "react";
|
|
2933
2999
|
|
|
2934
3000
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2935
|
-
var SegmentedControl_default = {"component":"
|
|
3001
|
+
var SegmentedControl_default = {"component":"bds2160SegmentedControl-component","control":"bds2160SegmentedControl-control","thumb":"bds2160SegmentedControl-thumb","indicator":"bds2160SegmentedControl-indicator","item":"bds2160SegmentedControl-item","--active":"bds2160SegmentedControl---active","--disabled":"bds2160SegmentedControl---disabled","--size_small":"bds2160SegmentedControl---size_small","--size_large":"bds2160SegmentedControl---size_large","--variant_outline":"bds2160SegmentedControl---variant_outline","--no-selection":"bds2160SegmentedControl---no-selection"};
|
|
2936
3002
|
|
|
2937
3003
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2938
3004
|
import { cn as cn45 } from "@boostdev/design-system-foundation";
|
|
2939
|
-
import { jsx as jsx45, jsxs as
|
|
3005
|
+
import { jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2940
3006
|
var preventDisabledActivation = (event) => {
|
|
2941
3007
|
event.preventDefault();
|
|
2942
3008
|
};
|
|
@@ -2949,13 +3015,13 @@ function SegmentedControl({
|
|
|
2949
3015
|
className,
|
|
2950
3016
|
...rest
|
|
2951
3017
|
}) {
|
|
2952
|
-
const validChildren = Children2.toArray(children).filter(
|
|
3018
|
+
const validChildren = Children2.toArray(children).filter(isValidElement5);
|
|
2953
3019
|
const autoIndex = selectedIndexProp === void 0 ? validChildren.findIndex((child) => {
|
|
2954
3020
|
const p = child.props;
|
|
2955
3021
|
return p["aria-current"] === "page" || p["aria-pressed"] === true || p["aria-selected"] === true;
|
|
2956
3022
|
}) : -1;
|
|
2957
3023
|
const activeIndex = validChildren.length === 0 ? void 0 : selectedIndexProp !== void 0 ? Math.min(Math.max(selectedIndexProp, 0), validChildren.length - 1) : autoIndex >= 0 ? autoIndex : void 0;
|
|
2958
|
-
return /* @__PURE__ */
|
|
3024
|
+
return /* @__PURE__ */ jsxs33(
|
|
2959
3025
|
"div",
|
|
2960
3026
|
{
|
|
2961
3027
|
...rest,
|
|
@@ -3011,11 +3077,11 @@ function SegmentedControl({
|
|
|
3011
3077
|
import { useId as useId21 } from "react";
|
|
3012
3078
|
|
|
3013
3079
|
// src/components/interaction/form/Select/Select.module.css
|
|
3014
|
-
var Select_default = {"component":"
|
|
3080
|
+
var Select_default = {"component":"bds2160Select-component","formGroup":"bds2160Select-formGroup","selectWrapper":"bds2160Select-selectWrapper","select":"bds2160Select-select","selectError":"bds2160Select-selectError","chevron":"bds2160Select-chevron"};
|
|
3015
3081
|
|
|
3016
3082
|
// src/components/interaction/form/Select/Select.tsx
|
|
3017
3083
|
import { cn as cn46 } from "@boostdev/design-system-foundation";
|
|
3018
|
-
import { jsx as jsx46, jsxs as
|
|
3084
|
+
import { jsx as jsx46, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3019
3085
|
function Select({
|
|
3020
3086
|
label,
|
|
3021
3087
|
name,
|
|
@@ -3037,10 +3103,10 @@ function Select({
|
|
|
3037
3103
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
3038
3104
|
const isControlled = value !== void 0;
|
|
3039
3105
|
const initialValueProps = isControlled ? { value } : { defaultValue: defaultValue ?? (placeholder ? "" : void 0) };
|
|
3040
|
-
return /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ jsxs34(InputContainer, { className: cn46(Select_default.formGroup, className), children: [
|
|
3041
3107
|
/* @__PURE__ */ jsx46(Label, { id: selectId, label }),
|
|
3042
|
-
/* @__PURE__ */
|
|
3043
|
-
/* @__PURE__ */
|
|
3108
|
+
/* @__PURE__ */ jsxs34("div", { className: Select_default.selectWrapper, children: [
|
|
3109
|
+
/* @__PURE__ */ jsxs34(
|
|
3044
3110
|
"select",
|
|
3045
3111
|
{
|
|
3046
3112
|
...rest,
|
|
@@ -3069,11 +3135,11 @@ function Select({
|
|
|
3069
3135
|
import { useId as useId22, useState as useState14 } from "react";
|
|
3070
3136
|
|
|
3071
3137
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
3072
|
-
var Slider_default = {"component":"
|
|
3138
|
+
var Slider_default = {"component":"bds2160Slider-component","formGroup":"bds2160Slider-formGroup","labelRow":"bds2160Slider-labelRow","value":"bds2160Slider-value","slider":"bds2160Slider-slider","sliderError":"bds2160Slider-sliderError"};
|
|
3073
3139
|
|
|
3074
3140
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
3075
3141
|
import { cn as cn47 } from "@boostdev/design-system-foundation";
|
|
3076
|
-
import { jsx as jsx47, jsxs as
|
|
3142
|
+
import { jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
3077
3143
|
function Slider({
|
|
3078
3144
|
label,
|
|
3079
3145
|
name,
|
|
@@ -3100,8 +3166,8 @@ function Slider({
|
|
|
3100
3166
|
if (!isControlled) setInternalValue(Number(e.target.value));
|
|
3101
3167
|
onChange?.(e);
|
|
3102
3168
|
};
|
|
3103
|
-
return /* @__PURE__ */
|
|
3104
|
-
/* @__PURE__ */
|
|
3169
|
+
return /* @__PURE__ */ jsxs35(InputContainer, { className: cn47(Slider_default.formGroup, className), children: [
|
|
3170
|
+
/* @__PURE__ */ jsxs35("div", { className: Slider_default.labelRow, children: [
|
|
3105
3171
|
/* @__PURE__ */ jsx47(Label, { id, label }),
|
|
3106
3172
|
showValue && /* @__PURE__ */ jsx47("span", { className: Slider_default.value, children: currentValue })
|
|
3107
3173
|
] }),
|
|
@@ -3130,11 +3196,11 @@ function Slider({
|
|
|
3130
3196
|
import { useId as useId23 } from "react";
|
|
3131
3197
|
|
|
3132
3198
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
3133
|
-
var Switch_default = {"component":"
|
|
3199
|
+
var Switch_default = {"component":"bds2160Switch-component","switchGroup":"bds2160Switch-switchGroup","--size_small":"bds2160Switch---size_small","--size_medium":"bds2160Switch---size_medium","--size_large":"bds2160Switch---size_large","inputWrapper":"bds2160Switch-inputWrapper","trackWrapper":"bds2160Switch-trackWrapper","switch":"bds2160Switch-switch","track":"bds2160Switch-track","thumb":"bds2160Switch-thumb","switchError":"bds2160Switch-switchError"};
|
|
3134
3200
|
|
|
3135
3201
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
3136
3202
|
import { cn as cn48 } from "@boostdev/design-system-foundation";
|
|
3137
|
-
import { jsx as jsx48, jsxs as
|
|
3203
|
+
import { jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
3138
3204
|
function Switch({
|
|
3139
3205
|
label,
|
|
3140
3206
|
name,
|
|
@@ -3149,10 +3215,10 @@ function Switch({
|
|
|
3149
3215
|
const hintId = id + "hint";
|
|
3150
3216
|
const errorId = id + "error";
|
|
3151
3217
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
3152
|
-
return /* @__PURE__ */
|
|
3153
|
-
/* @__PURE__ */
|
|
3218
|
+
return /* @__PURE__ */ jsxs36(InputContainer, { className: cn48(Switch_default.switchGroup, Switch_default[`--size_${size}`], className), children: [
|
|
3219
|
+
/* @__PURE__ */ jsxs36("div", { className: Switch_default.inputWrapper, children: [
|
|
3154
3220
|
prefix && /* @__PURE__ */ jsx48("span", { children: prefix }),
|
|
3155
|
-
/* @__PURE__ */
|
|
3221
|
+
/* @__PURE__ */ jsxs36("div", { className: Switch_default.trackWrapper, children: [
|
|
3156
3222
|
/* @__PURE__ */ jsx48(
|
|
3157
3223
|
"input",
|
|
3158
3224
|
{
|
|
@@ -3179,11 +3245,11 @@ function Switch({
|
|
|
3179
3245
|
import { useId as useId24 } from "react";
|
|
3180
3246
|
|
|
3181
3247
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
3182
|
-
var Textarea_default = {"component":"
|
|
3248
|
+
var Textarea_default = {"component":"bds2160Textarea-component","formGroup":"bds2160Textarea-formGroup","textarea":"bds2160Textarea-textarea","textareaError":"bds2160Textarea-textareaError"};
|
|
3183
3249
|
|
|
3184
3250
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
3185
3251
|
import { cn as cn49 } from "@boostdev/design-system-foundation";
|
|
3186
|
-
import { jsx as jsx49, jsxs as
|
|
3252
|
+
import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
3187
3253
|
function Textarea({
|
|
3188
3254
|
label,
|
|
3189
3255
|
name,
|
|
@@ -3199,7 +3265,7 @@ function Textarea({
|
|
|
3199
3265
|
const hintId = id + "hint";
|
|
3200
3266
|
const errorId = id + "error";
|
|
3201
3267
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
3202
|
-
return /* @__PURE__ */
|
|
3268
|
+
return /* @__PURE__ */ jsxs37(InputContainer, { className: cn49(Textarea_default.formGroup, className), children: [
|
|
3203
3269
|
/* @__PURE__ */ jsx49(Label, { id, label }),
|
|
3204
3270
|
/* @__PURE__ */ jsx49(
|
|
3205
3271
|
"textarea",
|
|
@@ -3220,7 +3286,7 @@ function Textarea({
|
|
|
3220
3286
|
}
|
|
3221
3287
|
|
|
3222
3288
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
3223
|
-
var ButtonGroup_default = {"component":"
|
|
3289
|
+
var ButtonGroup_default = {"component":"bds2160ButtonGroup-component","buttonGroup":"bds2160ButtonGroup-buttonGroup","container":"bds2160ButtonGroup-container","--variant_card":"bds2160ButtonGroup---variant_card","--variant_flow":"bds2160ButtonGroup---variant_flow","--variant_modal":"bds2160ButtonGroup---variant_modal","--variant_content":"bds2160ButtonGroup---variant_content"};
|
|
3224
3290
|
|
|
3225
3291
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
3226
3292
|
import { cn as cn50 } from "@boostdev/design-system-foundation";
|
|
@@ -3239,7 +3305,7 @@ function ButtonContainer({ children, className, variant, ...rest }) {
|
|
|
3239
3305
|
var ButtonGroup = ButtonContainer;
|
|
3240
3306
|
|
|
3241
3307
|
// src/components/layout/Card/Card.module.css
|
|
3242
|
-
var Card_default = {"component":"
|
|
3308
|
+
var Card_default = {"component":"bds2160Card-component","card":"bds2160Card-card","--default":"bds2160Card---default","--elevated":"bds2160Card---elevated","--outlined":"bds2160Card---outlined","--clickable":"bds2160Card---clickable","--padding-none":"bds2160Card---padding-none","--padding-small":"bds2160Card---padding-small","--padding-medium":"bds2160Card---padding-medium","--padding-large":"bds2160Card---padding-large","--padding-extra-large":"bds2160Card---padding-extra-large","--text-start":"bds2160Card---text-start","--text-center":"bds2160Card---text-center","--text-end":"bds2160Card---text-end"};
|
|
3243
3309
|
|
|
3244
3310
|
// src/components/layout/Card/Card.tsx
|
|
3245
3311
|
import { cn as cn51 } from "@boostdev/design-system-foundation";
|
|
@@ -3283,7 +3349,7 @@ import {
|
|
|
3283
3349
|
} from "react";
|
|
3284
3350
|
|
|
3285
3351
|
// src/components/layout/Grid/Grid.module.css
|
|
3286
|
-
var Grid_default = {"component":"
|
|
3352
|
+
var Grid_default = {"component":"bds2160Grid-component","grid":"bds2160Grid-grid","--main":"bds2160Grid---main","--page":"bds2160Grid---page","--funnel":"bds2160Grid---funnel","--custom":"bds2160Grid---custom","--centered":"bds2160Grid---centered","item":"bds2160Grid-item","w3":"bds2160Grid-w3","org":"bds2160Grid-org","ts":"bds2160Grid-ts","--masonry":"bds2160Grid---masonry"};
|
|
3287
3353
|
|
|
3288
3354
|
// src/components/layout/Grid/Grid.tsx
|
|
3289
3355
|
import { cn as cn52 } from "@boostdev/design-system-foundation";
|
|
@@ -3695,29 +3761,30 @@ function GridItem({
|
|
|
3695
3761
|
}
|
|
3696
3762
|
|
|
3697
3763
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
3698
|
-
var SectionHeader_default = {"component":"
|
|
3764
|
+
var SectionHeader_default = {"component":"bds2160SectionHeader-component","sectionHeader":"bds2160SectionHeader-sectionHeader","title":"bds2160SectionHeader-title","subtitle":"bds2160SectionHeader-subtitle","--start":"bds2160SectionHeader---start","--center":"bds2160SectionHeader---center","--end":"bds2160SectionHeader---end","--medium":"bds2160SectionHeader---medium","--xs":"bds2160SectionHeader---xs","--small":"bds2160SectionHeader---small","--large":"bds2160SectionHeader---large","--gradient":"bds2160SectionHeader---gradient"};
|
|
3699
3765
|
|
|
3700
3766
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
3701
3767
|
import { cn as cn54 } from "@boostdev/design-system-foundation";
|
|
3702
|
-
import { jsx as jsx54, jsxs as
|
|
3768
|
+
import { jsx as jsx54, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
3703
3769
|
function SectionHeader({
|
|
3704
3770
|
title,
|
|
3705
3771
|
subtitle,
|
|
3706
3772
|
className,
|
|
3707
3773
|
alignment = "start",
|
|
3708
3774
|
size = "medium",
|
|
3775
|
+
appearance = "default",
|
|
3709
3776
|
titleAs = "h2",
|
|
3710
3777
|
...rest
|
|
3711
3778
|
}) {
|
|
3712
3779
|
const Title = titleAs;
|
|
3713
|
-
return /* @__PURE__ */
|
|
3780
|
+
return /* @__PURE__ */ jsxs38("div", { ...rest, className: cn54(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], appearance === "gradient" && SectionHeader_default["--gradient"], className), children: [
|
|
3714
3781
|
/* @__PURE__ */ jsx54(Title, { className: SectionHeader_default.title, children: title }),
|
|
3715
3782
|
subtitle && /* @__PURE__ */ jsx54("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
3716
3783
|
] });
|
|
3717
3784
|
}
|
|
3718
3785
|
|
|
3719
3786
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
3720
|
-
var IconWrapper_default = {"component":"
|
|
3787
|
+
var IconWrapper_default = {"component":"bds2160IconWrapper-component","wrapper":"bds2160IconWrapper-wrapper"};
|
|
3721
3788
|
|
|
3722
3789
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
3723
3790
|
import { cn as cn55 } from "@boostdev/design-system-foundation";
|