@boostdev/design-system-components 1.0.3 → 1.1.1
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 +51 -10
- package/dist/client.cjs +350 -174
- package/dist/client.css +751 -647
- package/dist/client.d.cts +62 -97
- package/dist/client.d.ts +62 -97
- package/dist/client.js +377 -211
- package/dist/index.cjs +350 -174
- package/dist/index.css +751 -647
- package/dist/index.d.cts +62 -97
- package/dist/index.d.ts +62 -97
- package/dist/index.js +377 -211
- package/dist/native/index.cjs +991 -0
- package/dist/native/index.d.cts +208 -0
- package/dist/native/index.d.ts +208 -0
- package/dist/native/index.js +968 -0
- package/dist/web-components.d.ts +304 -0
- package/dist/web-components.js +1978 -0
- package/package.json +27 -5
- package/src/components/interaction/Button/Button.module.css +11 -8
- package/src/components/interaction/Button/Button.native.mdx +72 -0
- package/src/components/interaction/Button/Button.native.spec.tsx +35 -0
- package/src/components/interaction/Button/Button.native.stories.tsx +42 -0
- package/src/components/interaction/Button/Button.native.tsx +95 -0
- package/src/components/interaction/Button/Button.stories.tsx +1 -1
- package/src/components/interaction/Button/Button.tsx +2 -2
- package/src/components/interaction/Command/Command.mdx +16 -0
- package/src/components/interaction/Command/Command.module.css +7 -7
- package/src/components/interaction/Command/Command.spec.tsx +37 -0
- package/src/components/interaction/Command/Command.stories.tsx +1 -1
- package/src/components/interaction/Command/Command.tsx +39 -4
- package/src/components/interaction/Dialog/Dialog.module.css +10 -13
- package/src/components/interaction/Dialog/Dialog.spec.tsx +53 -1
- package/src/components/interaction/Dialog/Dialog.stories.tsx +18 -1
- package/src/components/interaction/Dialog/Dialog.tsx +52 -18
- package/src/components/interaction/Drawer/Drawer.mdx +14 -0
- package/src/components/interaction/Drawer/Drawer.module.css +11 -11
- package/src/components/interaction/Drawer/Drawer.spec.tsx +48 -1
- package/src/components/interaction/Drawer/Drawer.stories.tsx +1 -1
- package/src/components/interaction/Drawer/Drawer.tsx +40 -6
- package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +6 -6
- package/src/components/interaction/DropdownMenu/DropdownMenu.stories.tsx +1 -1
- package/src/components/interaction/DropdownMenu/DropdownMenu.tsx +2 -2
- package/src/components/interaction/Popover/Popover.mdx +17 -0
- package/src/components/interaction/Popover/Popover.module.css +132 -16
- package/src/components/interaction/Popover/Popover.spec.tsx +119 -20
- package/src/components/interaction/Popover/Popover.stories.tsx +1 -1
- package/src/components/interaction/Popover/Popover.tsx +69 -29
- package/src/components/interaction/Rating/Rating.stories.tsx +1 -1
- package/src/components/interaction/Rating/Rating.tsx +2 -2
- package/src/components/interaction/Toast/Toast.module.css +13 -8
- package/src/components/interaction/Toast/Toast.spec.tsx +21 -0
- package/src/components/interaction/Toast/Toast.stories.tsx +1 -1
- package/src/components/interaction/Toast/Toast.tsx +22 -2
- package/src/components/interaction/form/Checkbox/Checkbox.mdx +2 -2
- package/src/components/interaction/form/Checkbox/Checkbox.module.css +9 -9
- package/src/components/interaction/form/Checkbox/Checkbox.native.mdx +74 -0
- package/src/components/interaction/form/Checkbox/Checkbox.native.spec.tsx +42 -0
- package/src/components/interaction/form/Checkbox/Checkbox.native.stories.tsx +36 -0
- package/src/components/interaction/form/Checkbox/Checkbox.native.tsx +80 -0
- package/src/components/interaction/form/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/components/interaction/form/Checkbox/Checkbox.tsx +2 -2
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.mdx +44 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.stories.tsx +1 -1
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx +2 -2
- package/src/components/interaction/form/Combobox/Combobox.mdx +21 -0
- package/src/components/interaction/form/Combobox/Combobox.module.css +8 -9
- package/src/components/interaction/form/Combobox/Combobox.stories.tsx +1 -1
- package/src/components/interaction/form/Combobox/Combobox.tsx +2 -2
- package/src/components/interaction/form/FileInput/FileInput.mdx +14 -0
- package/src/components/interaction/form/FileInput/FileInput.module.css +5 -5
- package/src/components/interaction/form/FileInput/FileInput.stories.tsx +1 -1
- package/src/components/interaction/form/FileInput/FileInput.tsx +2 -2
- package/src/components/interaction/form/FormInput/FormInput.stories.tsx +1 -1
- package/src/components/interaction/form/FormInput/FormInput.tsx +2 -2
- package/src/components/interaction/form/NumberInput/NumberInput.mdx +16 -0
- package/src/components/interaction/form/NumberInput/NumberInput.module.css +1 -1
- package/src/components/interaction/form/NumberInput/NumberInput.stories.tsx +1 -1
- package/src/components/interaction/form/NumberInput/NumberInput.tsx +2 -2
- package/src/components/interaction/form/Radio/Radio.mdx +3 -3
- package/src/components/interaction/form/Radio/Radio.module.css +9 -9
- package/src/components/interaction/form/Radio/Radio.native.stories.tsx +46 -0
- package/src/components/interaction/form/Radio/Radio.native.tsx +79 -0
- package/src/components/interaction/form/Radio/Radio.stories.tsx +1 -1
- package/src/components/interaction/form/Radio/Radio.tsx +2 -2
- package/src/components/interaction/form/RadioGroup/RadioGroup.mdx +45 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.stories.tsx +1 -1
- package/src/components/interaction/form/RadioGroup/RadioGroup.tsx +2 -2
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +5 -6
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.stories.tsx +1 -1
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.tsx +2 -2
- package/src/components/interaction/form/Select/Select.module.css +3 -3
- package/src/components/interaction/form/Select/Select.stories.tsx +1 -1
- package/src/components/interaction/form/Select/Select.tsx +2 -2
- package/src/components/interaction/form/Slider/Slider.mdx +1 -1
- package/src/components/interaction/form/Slider/Slider.module.css +10 -10
- package/src/components/interaction/form/Slider/Slider.stories.tsx +1 -1
- package/src/components/interaction/form/Slider/Slider.tsx +2 -2
- package/src/components/interaction/form/Switch/Switch.mdx +4 -4
- package/src/components/interaction/form/Switch/Switch.module.css +11 -11
- package/src/components/interaction/form/Switch/Switch.native.spec.tsx +60 -0
- package/src/components/interaction/form/Switch/Switch.native.stories.tsx +35 -0
- package/src/components/interaction/form/Switch/Switch.native.tsx +59 -0
- package/src/components/interaction/form/Switch/Switch.stories.tsx +1 -1
- package/src/components/interaction/form/Switch/Switch.tsx +2 -2
- package/src/components/interaction/form/Textarea/Textarea.mdx +17 -0
- package/src/components/interaction/form/Textarea/Textarea.module.css +1 -1
- package/src/components/interaction/form/Textarea/Textarea.stories.tsx +1 -1
- package/src/components/interaction/form/Textarea/Textarea.tsx +2 -2
- package/src/components/interaction/form/atoms/InputContainer.tsx +2 -1
- package/src/components/interaction/form/atoms/Label.native.stories.tsx +18 -0
- package/src/components/interaction/form/atoms/Label.native.tsx +29 -0
- package/src/components/interaction/form/atoms/Label.tsx +5 -3
- package/src/components/interaction/form/atoms/Message.native.spec.tsx +30 -0
- package/src/components/interaction/form/atoms/Message.native.stories.tsx +22 -0
- package/src/components/interaction/form/atoms/Message.native.tsx +34 -0
- package/src/components/interaction/form/atoms/Message.tsx +5 -3
- package/src/components/layout/ButtonGroup/ButtonGroup.native.stories.tsx +50 -0
- package/src/components/layout/ButtonGroup/ButtonGroup.native.tsx +34 -0
- package/src/components/layout/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/src/components/layout/ButtonGroup/ButtonGroup.tsx +2 -2
- package/src/components/layout/Card/Card.native.stories.tsx +53 -0
- package/src/components/layout/Card/Card.native.tsx +89 -0
- package/src/components/layout/Card/Card.stories.tsx +1 -1
- package/src/components/layout/Card/Card.tsx +2 -2
- package/src/components/layout/IconWrapper/IconWrapper.mdx +2 -2
- package/src/components/layout/IconWrapper/IconWrapper.module.css +2 -2
- package/src/components/layout/IconWrapper/IconWrapper.native.spec.tsx +39 -0
- package/src/components/layout/IconWrapper/IconWrapper.native.stories.tsx +41 -0
- package/src/components/layout/IconWrapper/IconWrapper.native.tsx +20 -0
- package/src/components/layout/IconWrapper/IconWrapper.stories.tsx +1 -1
- package/src/components/layout/IconWrapper/IconWrapper.tsx +2 -2
- package/src/components/layout/SectionHeader/SectionHeader.mdx +13 -0
- package/src/components/layout/SectionHeader/SectionHeader.native.stories.tsx +38 -0
- package/src/components/layout/SectionHeader/SectionHeader.native.tsx +79 -0
- package/src/components/layout/SectionHeader/SectionHeader.stories.tsx +1 -1
- package/src/components/layout/SectionHeader/SectionHeader.tsx +2 -2
- package/src/components/ui/Accordion/Accordion.mdx +14 -0
- package/src/components/ui/Accordion/Accordion.module.css +5 -5
- package/src/components/ui/Accordion/Accordion.stories.tsx +1 -1
- package/src/components/ui/Accordion/Accordion.tsx +2 -2
- package/src/components/ui/Alert/Alert.native.mdx +62 -0
- package/src/components/ui/Alert/Alert.native.stories.tsx +43 -0
- package/src/components/ui/Alert/Alert.native.tsx +94 -0
- package/src/components/ui/Alert/Alert.stories.tsx +1 -1
- package/src/components/ui/Alert/Alert.tsx +2 -2
- package/src/components/ui/Avatar/Avatar.native.mdx +50 -0
- package/src/components/ui/Avatar/Avatar.native.spec.tsx +47 -0
- package/src/components/ui/Avatar/Avatar.native.stories.tsx +34 -0
- package/src/components/ui/Avatar/Avatar.native.tsx +85 -0
- package/src/components/ui/Avatar/Avatar.stories.tsx +1 -1
- package/src/components/ui/Avatar/Avatar.tsx +2 -2
- package/src/components/ui/Badge/Badge.mdx +2 -2
- package/src/components/ui/Badge/Badge.native.mdx +54 -0
- package/src/components/ui/Badge/Badge.native.stories.tsx +36 -0
- package/src/components/ui/Badge/Badge.native.tsx +50 -0
- package/src/components/ui/Badge/Badge.stories.tsx +1 -1
- package/src/components/ui/Badge/Badge.tsx +2 -2
- package/src/components/ui/Breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +2 -2
- package/src/components/ui/Calendar/Calendar.mdx +16 -0
- package/src/components/ui/Calendar/Calendar.module.css +7 -7
- package/src/components/ui/Calendar/Calendar.stories.tsx +1 -1
- package/src/components/ui/Calendar/Calendar.tsx +2 -2
- package/src/components/ui/Carousel/Carousel.module.css +5 -5
- package/src/components/ui/Carousel/Carousel.stories.tsx +1 -1
- package/src/components/ui/Carousel/Carousel.tsx +2 -2
- package/src/components/ui/Collapsible/Collapsible.module.css +4 -4
- package/src/components/ui/Collapsible/Collapsible.stories.tsx +1 -1
- package/src/components/ui/Collapsible/Collapsible.tsx +2 -2
- package/src/components/ui/DescriptionList/DescriptionList.stories.tsx +1 -1
- package/src/components/ui/DescriptionList/DescriptionList.tsx +2 -2
- package/src/components/ui/Link/Link.mdx +14 -0
- package/src/components/ui/Link/Link.module.css +2 -2
- package/src/components/ui/Link/Link.stories.tsx +1 -1
- package/src/components/ui/Link/Link.tsx +2 -2
- package/src/components/ui/Loading/Loading.module.css +7 -7
- package/src/components/ui/Loading/Loading.native.spec.tsx +24 -0
- package/src/components/ui/Loading/Loading.native.stories.tsx +33 -0
- package/src/components/ui/Loading/Loading.native.tsx +29 -0
- package/src/components/ui/Loading/Loading.stories.tsx +1 -1
- package/src/components/ui/Loading/Loading.tsx +2 -2
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +3 -3
- package/src/components/ui/NotificationBanner/NotificationBanner.native.stories.tsx +39 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.native.tsx +76 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.stories.tsx +1 -1
- package/src/components/ui/NotificationBanner/NotificationBanner.tsx +2 -2
- package/src/components/ui/Pagination/Pagination.module.css +7 -7
- package/src/components/ui/Pagination/Pagination.stories.tsx +1 -1
- package/src/components/ui/Pagination/Pagination.tsx +2 -2
- package/src/components/ui/Progress/Progress.mdx +1 -1
- package/src/components/ui/Progress/Progress.module.css +6 -6
- package/src/components/ui/Progress/Progress.native.stories.tsx +34 -0
- package/src/components/ui/Progress/Progress.native.tsx +84 -0
- package/src/components/ui/Progress/Progress.stories.tsx +1 -1
- package/src/components/ui/Progress/Progress.tsx +2 -2
- package/src/components/ui/ProgressCircle/ProgressCircle.module.css +1 -1
- package/src/components/ui/ProgressCircle/ProgressCircle.stories.tsx +1 -1
- package/src/components/ui/ProgressCircle/ProgressCircle.tsx +2 -2
- package/src/components/ui/Separator/Separator.mdx +14 -0
- package/src/components/ui/Separator/Separator.module.css +3 -3
- package/src/components/ui/Separator/Separator.native.stories.tsx +42 -0
- package/src/components/ui/Separator/Separator.native.tsx +32 -0
- package/src/components/ui/Separator/Separator.stories.tsx +1 -1
- package/src/components/ui/Separator/Separator.tsx +2 -2
- package/src/components/ui/Skeleton/Skeleton.module.css +1 -1
- package/src/components/ui/Skeleton/Skeleton.native.stories.tsx +33 -0
- package/src/components/ui/Skeleton/Skeleton.native.tsx +41 -0
- package/src/components/ui/Skeleton/Skeleton.stories.tsx +1 -1
- package/src/components/ui/Skeleton/Skeleton.tsx +2 -3
- package/src/components/ui/SkipLink/SkipLink.stories.tsx +1 -1
- package/src/components/ui/SkipLink/SkipLink.tsx +5 -3
- package/src/components/ui/Table/Table.mdx +14 -0
- package/src/components/ui/Table/Table.module.css +9 -9
- package/src/components/ui/Table/Table.stories.tsx +1 -1
- package/src/components/ui/Table/Table.tsx +2 -2
- package/src/components/ui/Tabs/Tabs.module.css +3 -3
- package/src/components/ui/Tabs/Tabs.stories.tsx +1 -1
- package/src/components/ui/Tabs/Tabs.tsx +2 -2
- package/src/components/ui/Tooltip/Tooltip.mdx +14 -0
- package/src/components/ui/Tooltip/Tooltip.module.css +8 -8
- package/src/components/ui/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/components/ui/Tooltip/Tooltip.tsx +2 -2
- package/src/components/ui/Typography/Typography.mdx +13 -0
- package/src/components/ui/Typography/Typography.native.mdx +56 -0
- package/src/components/ui/Typography/Typography.native.stories.tsx +38 -0
- package/src/components/ui/Typography/Typography.native.tsx +65 -0
- package/src/components/ui/Typography/Typography.stories.tsx +1 -1
- package/src/components/ui/Typography/Typography.tsx +2 -2
- package/src/css/bdc.css +8 -0
- package/src/index.ts +1 -0
- package/src/native/ThemeContext.tsx +28 -0
- package/src/native/tokens.ts +13 -0
- package/src/native.ts +39 -0
- package/src/polyfill-invoker-commands.ts +68 -0
- package/src/react-augment.d.ts +32 -0
- package/src/stories/DesignSystem/DarkMode.mdx +130 -0
- package/src/stories/ReactNative.mdx +121 -0
- package/src/types.ts +2 -0
- package/src/typings.d.ts +3 -0
- package/src/web-components/globals.ts +61 -0
- package/src/web-components/index.ts +12 -0
- package/src/web-components/interaction/BdsButton.mdx +106 -0
- package/src/web-components/interaction/BdsButton.stories.tsx +60 -0
- package/src/web-components/interaction/BdsPopover.mdx +120 -0
- package/src/web-components/interaction/BdsPopover.stories.tsx +70 -0
- package/src/web-components/interaction/BdsToastProvider.mdx +94 -0
- package/src/web-components/interaction/BdsToastProvider.stories.tsx +73 -0
- package/src/web-components/interaction/bds-button.spec.ts +95 -0
- package/src/web-components/interaction/bds-button.ts +293 -0
- package/src/web-components/interaction/bds-popover.spec.ts +174 -0
- package/src/web-components/interaction/bds-popover.ts +229 -0
- package/src/web-components/interaction/bds-toast-provider.spec.ts +122 -0
- package/src/web-components/interaction/bds-toast-provider.ts +211 -0
- package/src/web-components/test/helpers.ts +22 -0
- package/src/web-components/ui/BdsAlert.mdx +90 -0
- package/src/web-components/ui/BdsAlert.stories.tsx +60 -0
- package/src/web-components/ui/BdsBadge.mdx +74 -0
- package/src/web-components/ui/BdsBadge.stories.tsx +37 -0
- package/src/web-components/ui/bds-alert.spec.ts +109 -0
- package/src/web-components/ui/bds-alert.ts +209 -0
- package/src/web-components/ui/bds-badge.spec.ts +51 -0
- package/src/web-components/ui/bds-badge.ts +88 -0
package/dist/client.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useId, useState } from "react";
|
|
5
5
|
|
|
6
6
|
// src/components/ui/Accordion/Accordion.module.css
|
|
7
|
-
var Accordion_default = {"accordion":"
|
|
7
|
+
var Accordion_default = {"accordion":"bds111Accordion-accordion","item":"bds111Accordion-item","heading":"bds111Accordion-heading","trigger":"bds111Accordion-trigger","triggerLabel":"bds111Accordion-triggerLabel","chevron":"bds111Accordion-chevron","--open":"bds111Accordion---open","panel":"bds111Accordion-panel","panelContent":"bds111Accordion-panelContent"};
|
|
8
8
|
|
|
9
9
|
// src/components/ui/Accordion/Accordion.tsx
|
|
10
10
|
import { cn } from "@boostdev/design-system-foundation";
|
|
@@ -72,7 +72,7 @@ function Accordion({
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// src/components/ui/Alert/Alert.module.css
|
|
75
|
-
var Alert_default = {"alert":"
|
|
75
|
+
var Alert_default = {"alert":"bds111Alert-alert","--variant_info":"bds111Alert---variant_info","--variant_success":"bds111Alert---variant_success","--variant_warning":"bds111Alert---variant_warning","--variant_error":"bds111Alert---variant_error","icon":"bds111Alert-icon","content":"bds111Alert-content","title":"bds111Alert-title","dismiss":"bds111Alert-dismiss"};
|
|
76
76
|
|
|
77
77
|
// src/components/ui/Alert/Alert.tsx
|
|
78
78
|
import { cn as cn2 } from "@boostdev/design-system-foundation";
|
|
@@ -115,7 +115,7 @@ function Alert({
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
// src/components/ui/Avatar/Avatar.module.css
|
|
118
|
-
var Avatar_default = {"avatar":"
|
|
118
|
+
var Avatar_default = {"avatar":"bds111Avatar-avatar","--fallback":"bds111Avatar---fallback","--size_small":"bds111Avatar---size_small","--size_medium":"bds111Avatar---size_medium","--size_large":"bds111Avatar---size_large","image":"bds111Avatar-image","initials":"bds111Avatar-initials"};
|
|
119
119
|
|
|
120
120
|
// src/components/ui/Avatar/Avatar.tsx
|
|
121
121
|
import { cn as cn3 } from "@boostdev/design-system-foundation";
|
|
@@ -141,7 +141,7 @@ function Avatar({ src, alt, name, size = "medium", className }) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
// src/components/ui/Badge/Badge.module.css
|
|
144
|
-
var Badge_default = {"badge":"
|
|
144
|
+
var Badge_default = {"badge":"bds111Badge-badge","--variant_primary":"bds111Badge---variant_primary","--variant_secondary":"bds111Badge---variant_secondary","--variant_success":"bds111Badge---variant_success","--variant_error":"bds111Badge---variant_error","--variant_warning":"bds111Badge---variant_warning"};
|
|
145
145
|
|
|
146
146
|
// src/components/ui/Badge/Badge.tsx
|
|
147
147
|
import { cn as cn4 } from "@boostdev/design-system-foundation";
|
|
@@ -151,7 +151,7 @@ function Badge({ children, variant = "primary", className }) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
154
|
-
var Breadcrumb_default = {"breadcrumb":"
|
|
154
|
+
var Breadcrumb_default = {"breadcrumb":"bds111Breadcrumb-breadcrumb","list":"bds111Breadcrumb-list","item":"bds111Breadcrumb-item","link":"bds111Breadcrumb-link","separator":"bds111Breadcrumb-separator","current":"bds111Breadcrumb-current"};
|
|
155
155
|
|
|
156
156
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
157
157
|
import { cn as cn5 } from "@boostdev/design-system-foundation";
|
|
@@ -167,7 +167,7 @@ function Breadcrumb({ items, className }) {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// src/components/ui/Collapsible/Collapsible.module.css
|
|
170
|
-
var Collapsible_default = {"collapsible":"
|
|
170
|
+
var Collapsible_default = {"collapsible":"bds111Collapsible-collapsible","summary":"bds111Collapsible-summary","summaryContent":"bds111Collapsible-summaryContent","icon":"bds111Collapsible-icon","content":"bds111Collapsible-content"};
|
|
171
171
|
|
|
172
172
|
// src/components/ui/Collapsible/Collapsible.tsx
|
|
173
173
|
import { cn as cn6 } from "@boostdev/design-system-foundation";
|
|
@@ -208,7 +208,7 @@ function Collapsible({
|
|
|
208
208
|
import { useState as useState2, useId as useId2 } from "react";
|
|
209
209
|
|
|
210
210
|
// src/components/ui/Calendar/Calendar.module.css
|
|
211
|
-
var Calendar_default = {"calendar":"
|
|
211
|
+
var Calendar_default = {"calendar":"bds111Calendar-calendar","header":"bds111Calendar-header","monthYear":"bds111Calendar-monthYear","navBtn":"bds111Calendar-navBtn","grid":"bds111Calendar-grid","weekday":"bds111Calendar-weekday","empty":"bds111Calendar-empty","day":"bds111Calendar-day","disabled":"bds111Calendar-disabled","selected":"bds111Calendar-selected","today":"bds111Calendar-today"};
|
|
212
212
|
|
|
213
213
|
// src/components/ui/Calendar/Calendar.tsx
|
|
214
214
|
import { cn as cn7 } from "@boostdev/design-system-foundation";
|
|
@@ -383,7 +383,7 @@ function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
|
383
383
|
import { useRef, useId as useId3 } from "react";
|
|
384
384
|
|
|
385
385
|
// src/components/ui/Carousel/Carousel.module.css
|
|
386
|
-
var Carousel_default = {"carousel":"
|
|
386
|
+
var Carousel_default = {"carousel":"bds111Carousel-carousel","track":"bds111Carousel-track","slide":"bds111Carousel-slide","navBtn":"bds111Carousel-navBtn"};
|
|
387
387
|
|
|
388
388
|
// src/components/ui/Carousel/Carousel.tsx
|
|
389
389
|
import { cn as cn8 } from "@boostdev/design-system-foundation";
|
|
@@ -436,7 +436,7 @@ function Carousel({ items, label, className }) {
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
439
|
-
var DescriptionList_default = {"list":"
|
|
439
|
+
var DescriptionList_default = {"list":"bds111DescriptionList-list","group":"bds111DescriptionList-group","term":"bds111DescriptionList-term","details":"bds111DescriptionList-details","--layout_inline":"bds111DescriptionList---layout_inline"};
|
|
440
440
|
|
|
441
441
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
442
442
|
import { cn as cn9 } from "@boostdev/design-system-foundation";
|
|
@@ -449,7 +449,7 @@ function DescriptionList({ items, layout = "stacked", className }) {
|
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
// src/components/ui/Link/Link.module.css
|
|
452
|
-
var Link_default = {"link":"
|
|
452
|
+
var Link_default = {"link":"bds111Link-link","--variant_default":"bds111Link---variant_default","--variant_subtle":"bds111Link---variant_subtle","--variant_standalone":"bds111Link---variant_standalone","externalLabel":"bds111Link-externalLabel"};
|
|
453
453
|
|
|
454
454
|
// src/components/ui/Link/Link.tsx
|
|
455
455
|
import { cn as cn10 } from "@boostdev/design-system-foundation";
|
|
@@ -480,7 +480,7 @@ function Link({
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
// src/components/ui/Loading/Loading.module.css
|
|
483
|
-
var Loading_default = {"loading":"
|
|
483
|
+
var Loading_default = {"loading":"bds111Loading-loading","spinner":"bds111Loading-spinner","--size_small":"bds111Loading---size_small","--size_large":"bds111Loading---size_large"};
|
|
484
484
|
|
|
485
485
|
// src/components/ui/Loading/Loading.tsx
|
|
486
486
|
import { cn as cn11 } from "@boostdev/design-system-foundation";
|
|
@@ -490,7 +490,7 @@ function Loading({ size = "medium", className }) {
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
493
|
-
var NotificationBanner_default = {"banner":"
|
|
493
|
+
var NotificationBanner_default = {"banner":"bds111NotificationBanner-banner","--variant_info":"bds111NotificationBanner---variant_info","--variant_success":"bds111NotificationBanner---variant_success","--variant_warning":"bds111NotificationBanner---variant_warning","--variant_error":"bds111NotificationBanner---variant_error","content":"bds111NotificationBanner-content","action":"bds111NotificationBanner-action","dismiss":"bds111NotificationBanner-dismiss"};
|
|
494
494
|
|
|
495
495
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
496
496
|
import { cn as cn12 } from "@boostdev/design-system-foundation";
|
|
@@ -529,7 +529,7 @@ function NotificationBanner({
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
// src/components/ui/Pagination/Pagination.module.css
|
|
532
|
-
var Pagination_default = {"pagination":"
|
|
532
|
+
var Pagination_default = {"pagination":"bds111Pagination-pagination","list":"bds111Pagination-list","button":"bds111Pagination-button","--active":"bds111Pagination---active","--nav":"bds111Pagination---nav","ellipsis":"bds111Pagination-ellipsis"};
|
|
533
533
|
|
|
534
534
|
// src/components/ui/Pagination/Pagination.tsx
|
|
535
535
|
import { cn as cn13 } from "@boostdev/design-system-foundation";
|
|
@@ -593,7 +593,7 @@ function Pagination({
|
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
// src/components/ui/Progress/Progress.module.css
|
|
596
|
-
var Progress_default = {"container":"
|
|
596
|
+
var Progress_default = {"container":"bds111Progress-container","labelRow":"bds111Progress-labelRow","value":"bds111Progress-value","track":"bds111Progress-track","--size_small":"bds111Progress---size_small","--size_medium":"bds111Progress---size_medium","--size_large":"bds111Progress---size_large","fill":"bds111Progress-fill"};
|
|
597
597
|
|
|
598
598
|
// src/components/ui/Progress/Progress.tsx
|
|
599
599
|
import { cn as cn14 } from "@boostdev/design-system-foundation";
|
|
@@ -631,7 +631,7 @@ function Progress({
|
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
634
|
-
var ProgressCircle_default = {"wrapper":"
|
|
634
|
+
var ProgressCircle_default = {"wrapper":"bds111ProgressCircle-wrapper","svg":"bds111ProgressCircle-svg","track":"bds111ProgressCircle-track","fill":"bds111ProgressCircle-fill","value":"bds111ProgressCircle-value","--size_small":"bds111ProgressCircle---size_small","--size_medium":"bds111ProgressCircle---size_medium","--size_large":"bds111ProgressCircle---size_large"};
|
|
635
635
|
|
|
636
636
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
637
637
|
import { cn as cn15 } from "@boostdev/design-system-foundation";
|
|
@@ -710,7 +710,7 @@ function ProgressCircle({
|
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
// src/components/ui/Separator/Separator.module.css
|
|
713
|
-
var Separator_default = {"separator":"
|
|
713
|
+
var Separator_default = {"separator":"bds111Separator-separator","--horizontal":"bds111Separator---horizontal","--vertical":"bds111Separator---vertical"};
|
|
714
714
|
|
|
715
715
|
// src/components/ui/Separator/Separator.tsx
|
|
716
716
|
import { cn as cn16 } from "@boostdev/design-system-foundation";
|
|
@@ -733,7 +733,7 @@ function Separator({ orientation = "horizontal", className }) {
|
|
|
733
733
|
import { cn as cn17 } from "@boostdev/design-system-foundation";
|
|
734
734
|
|
|
735
735
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
736
|
-
var Skeleton_default = {"skeleton":"
|
|
736
|
+
var Skeleton_default = {"skeleton":"bds111Skeleton-skeleton"};
|
|
737
737
|
|
|
738
738
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
739
739
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
@@ -742,19 +742,20 @@ function Skeleton({ className }) {
|
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
745
|
-
var SkipLink_default = {"skipLink":"
|
|
745
|
+
var SkipLink_default = {"skipLink":"bds111SkipLink-skipLink"};
|
|
746
746
|
|
|
747
747
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
748
|
+
import { cn as cn18 } from "@boostdev/design-system-foundation";
|
|
748
749
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
749
|
-
function SkipLink({ href = "#main", children = "Skip to main content" }) {
|
|
750
|
-
return /* @__PURE__ */ jsx18("a", { href, className: SkipLink_default.skipLink, children });
|
|
750
|
+
function SkipLink({ href = "#main", children = "Skip to main content", className }) {
|
|
751
|
+
return /* @__PURE__ */ jsx18("a", { href, className: cn18(SkipLink_default.skipLink, className), children });
|
|
751
752
|
}
|
|
752
753
|
|
|
753
754
|
// src/components/ui/Table/Table.module.css
|
|
754
|
-
var Table_default = {"wrapper":"
|
|
755
|
+
var Table_default = {"wrapper":"bds111Table-wrapper","table":"bds111Table-table","caption":"bds111Table-caption","thead":"bds111Table-thead","th":"bds111Table-th","--sortable":"bds111Table---sortable","sortButton":"bds111Table-sortButton","sortIcon":"bds111Table-sortIcon","--sort-active":"bds111Table---sort-active","--sort-desc":"bds111Table---sort-desc","tbody":"bds111Table-tbody","tr":"bds111Table-tr","td":"bds111Table-td"};
|
|
755
756
|
|
|
756
757
|
// src/components/ui/Table/Table.tsx
|
|
757
|
-
import { cn as
|
|
758
|
+
import { cn as cn19 } from "@boostdev/design-system-foundation";
|
|
758
759
|
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
759
760
|
function Table({
|
|
760
761
|
columns,
|
|
@@ -774,14 +775,14 @@ function Table({
|
|
|
774
775
|
if (sortKey !== key) return "none";
|
|
775
776
|
return sortDirection === "asc" ? "ascending" : "descending";
|
|
776
777
|
};
|
|
777
|
-
return /* @__PURE__ */ jsx19("div", { className:
|
|
778
|
+
return /* @__PURE__ */ jsx19("div", { className: cn19(Table_default.wrapper, className), children: /* @__PURE__ */ jsxs13("table", { className: Table_default.table, children: [
|
|
778
779
|
caption && /* @__PURE__ */ jsx19("caption", { className: Table_default.caption, children: caption }),
|
|
779
780
|
/* @__PURE__ */ jsx19("thead", { className: Table_default.thead, children: /* @__PURE__ */ jsx19("tr", { children: columns.map((col) => /* @__PURE__ */ jsx19(
|
|
780
781
|
"th",
|
|
781
782
|
{
|
|
782
783
|
scope: "col",
|
|
783
784
|
"aria-sort": col.sortable ? getAriaSort(col.key) : void 0,
|
|
784
|
-
className:
|
|
785
|
+
className: cn19(Table_default.th, col.sortable ? Table_default["--sortable"] : void 0),
|
|
785
786
|
children: col.sortable ? /* @__PURE__ */ jsxs13(
|
|
786
787
|
"button",
|
|
787
788
|
{
|
|
@@ -795,7 +796,7 @@ function Table({
|
|
|
795
796
|
"svg",
|
|
796
797
|
{
|
|
797
798
|
"aria-hidden": "true",
|
|
798
|
-
className:
|
|
799
|
+
className: cn19(
|
|
799
800
|
Table_default.sortIcon,
|
|
800
801
|
sortKey === col.key ? Table_default["--sort-active"] : void 0,
|
|
801
802
|
sortKey === col.key && sortDirection === "desc" ? Table_default["--sort-desc"] : void 0
|
|
@@ -821,10 +822,10 @@ function Table({
|
|
|
821
822
|
import { useId as useId4, useRef as useRef2, useState as useState3 } from "react";
|
|
822
823
|
|
|
823
824
|
// src/components/ui/Tabs/Tabs.module.css
|
|
824
|
-
var Tabs_default = {"tabs":"
|
|
825
|
+
var Tabs_default = {"tabs":"bds111Tabs-tabs","tabList":"bds111Tabs-tabList","tab":"bds111Tabs-tab","--active":"bds111Tabs---active","panel":"bds111Tabs-panel"};
|
|
825
826
|
|
|
826
827
|
// src/components/ui/Tabs/Tabs.tsx
|
|
827
|
-
import { cn as
|
|
828
|
+
import { cn as cn20 } from "@boostdev/design-system-foundation";
|
|
828
829
|
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
829
830
|
function Tabs({ tabs, defaultTab, className }) {
|
|
830
831
|
const baseId = useId4();
|
|
@@ -851,7 +852,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
851
852
|
focusAt(enabledIndexes[enabledIndexes.length - 1]);
|
|
852
853
|
}
|
|
853
854
|
};
|
|
854
|
-
return /* @__PURE__ */ jsxs14("div", { className:
|
|
855
|
+
return /* @__PURE__ */ jsxs14("div", { className: cn20(Tabs_default.tabs, className), children: [
|
|
855
856
|
/* @__PURE__ */ jsx20("div", { role: "tablist", className: Tabs_default.tabList, children: tabs.map((tab, i) => {
|
|
856
857
|
const tabId = `${baseId}-tab-${tab.id}`;
|
|
857
858
|
const panelId = `${baseId}-panel-${tab.id}`;
|
|
@@ -869,7 +870,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
869
870
|
"aria-controls": panelId,
|
|
870
871
|
tabIndex: isActive ? 0 : -1,
|
|
871
872
|
disabled: tab.disabled,
|
|
872
|
-
className:
|
|
873
|
+
className: cn20(Tabs_default.tab, isActive ? Tabs_default["--active"] : void 0),
|
|
873
874
|
onClick: () => setActiveTab(tab.id),
|
|
874
875
|
onKeyDown: (e) => handleKeyDown(e, i),
|
|
875
876
|
children: tab.label
|
|
@@ -901,10 +902,10 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
901
902
|
import { cloneElement, isValidElement, useId as useId5, useState as useState4 } from "react";
|
|
902
903
|
|
|
903
904
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
904
|
-
var Tooltip_default = {"wrapper":"
|
|
905
|
+
var Tooltip_default = {"wrapper":"bds111Tooltip-wrapper","tooltip":"bds111Tooltip-tooltip","--placement_top":"bds111Tooltip---placement_top","--placement_bottom":"bds111Tooltip---placement_bottom","--placement_left":"bds111Tooltip---placement_left","--placement_right":"bds111Tooltip---placement_right"};
|
|
905
906
|
|
|
906
907
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
907
|
-
import { cn as
|
|
908
|
+
import { cn as cn21 } from "@boostdev/design-system-foundation";
|
|
908
909
|
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
909
910
|
function Tooltip({
|
|
910
911
|
content,
|
|
@@ -920,7 +921,7 @@ function Tooltip({
|
|
|
920
921
|
return /* @__PURE__ */ jsxs15(
|
|
921
922
|
"span",
|
|
922
923
|
{
|
|
923
|
-
className:
|
|
924
|
+
className: cn21(Tooltip_default.wrapper, className),
|
|
924
925
|
onMouseEnter: () => setIsVisible(true),
|
|
925
926
|
onMouseLeave: () => setIsVisible(false),
|
|
926
927
|
onFocus: () => setIsVisible(true),
|
|
@@ -933,7 +934,7 @@ function Tooltip({
|
|
|
933
934
|
id: tooltipId,
|
|
934
935
|
role: "tooltip",
|
|
935
936
|
"aria-hidden": !isVisible,
|
|
936
|
-
className:
|
|
937
|
+
className: cn21(Tooltip_default.tooltip, Tooltip_default[`--placement_${placement}`]),
|
|
937
938
|
children: content
|
|
938
939
|
}
|
|
939
940
|
)
|
|
@@ -943,10 +944,10 @@ function Tooltip({
|
|
|
943
944
|
}
|
|
944
945
|
|
|
945
946
|
// src/components/ui/Typography/Typography.module.css
|
|
946
|
-
var Typography_default = {"typography":"
|
|
947
|
+
var Typography_default = {"typography":"bds111Typography-typography","--h1":"bds111Typography---h1","--h2":"bds111Typography---h2","--h3":"bds111Typography---h3","--body":"bds111Typography---body","--body_s":"bds111Typography---body_s"};
|
|
947
948
|
|
|
948
949
|
// src/components/ui/Typography/Typography.tsx
|
|
949
|
-
import { cn as
|
|
950
|
+
import { cn as cn22 } from "@boostdev/design-system-foundation";
|
|
950
951
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
951
952
|
var variantToElement = {
|
|
952
953
|
h1: "h1",
|
|
@@ -957,14 +958,14 @@ var variantToElement = {
|
|
|
957
958
|
};
|
|
958
959
|
function Typography({ variant = "body", component, children, className }) {
|
|
959
960
|
const Component = component || variantToElement[variant];
|
|
960
|
-
return /* @__PURE__ */ jsx22(Component, { className:
|
|
961
|
+
return /* @__PURE__ */ jsx22(Component, { className: cn22(Typography_default.typography, Typography_default[`--${variant}`], className), children });
|
|
961
962
|
}
|
|
962
963
|
|
|
963
964
|
// src/components/interaction/Button/Button.module.css
|
|
964
|
-
var Button_default = {"button":"
|
|
965
|
+
var Button_default = {"button":"bds111Button-button","--default":"bds111Button---default","--ghost":"bds111Button---ghost","--size_small":"bds111Button---size_small","--size_medium":"bds111Button---size_medium","--size_large":"bds111Button---size_large","--hasPulse":"bds111Button---hasPulse","iconStart":"bds111Button-iconStart","iconEnd":"bds111Button-iconEnd"};
|
|
965
966
|
|
|
966
967
|
// src/components/interaction/Button/Button.tsx
|
|
967
|
-
import { cn as
|
|
968
|
+
import { cn as cn23 } from "@boostdev/design-system-foundation";
|
|
968
969
|
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
969
970
|
function Button({
|
|
970
971
|
children,
|
|
@@ -982,7 +983,7 @@ function Button({
|
|
|
982
983
|
onClick,
|
|
983
984
|
...rest
|
|
984
985
|
}) {
|
|
985
|
-
const classNames =
|
|
986
|
+
const classNames = cn23(
|
|
986
987
|
Button_default.button,
|
|
987
988
|
Button_default[`--${variant}`],
|
|
988
989
|
Button_default[`--size_${size}`],
|
|
@@ -1036,14 +1037,56 @@ function Button({
|
|
|
1036
1037
|
// src/components/interaction/Command/Command.tsx
|
|
1037
1038
|
import { useState as useState5, useEffect, useRef as useRef3, useId as useId6, useMemo } from "react";
|
|
1038
1039
|
|
|
1040
|
+
// src/polyfill-invoker-commands.ts
|
|
1041
|
+
var installed = false;
|
|
1042
|
+
function installInvokerCommandsPolyfill() {
|
|
1043
|
+
if (installed) return;
|
|
1044
|
+
if (typeof window === "undefined") return;
|
|
1045
|
+
if ("command" in HTMLButtonElement.prototype) return;
|
|
1046
|
+
installed = true;
|
|
1047
|
+
document.addEventListener("click", (e) => {
|
|
1048
|
+
const button = e.target?.closest("button[commandfor]");
|
|
1049
|
+
if (!button) return;
|
|
1050
|
+
const targetId = button.getAttribute("commandfor");
|
|
1051
|
+
const command = button.getAttribute("command");
|
|
1052
|
+
if (!targetId || !command) return;
|
|
1053
|
+
const target = document.getElementById(targetId);
|
|
1054
|
+
if (!target) return;
|
|
1055
|
+
const commandEvent = new Event("command", { cancelable: true, bubbles: false });
|
|
1056
|
+
Object.defineProperty(commandEvent, "command", { value: command, configurable: true });
|
|
1057
|
+
Object.defineProperty(commandEvent, "source", { value: button, configurable: true });
|
|
1058
|
+
const notCancelled = target.dispatchEvent(commandEvent);
|
|
1059
|
+
if (!notCancelled) return;
|
|
1060
|
+
if (target instanceof HTMLDialogElement) {
|
|
1061
|
+
if (command === "show-modal" && !target.open) {
|
|
1062
|
+
target.showModal();
|
|
1063
|
+
} else if (command === "close" && target.open) {
|
|
1064
|
+
target.close();
|
|
1065
|
+
}
|
|
1066
|
+
} else if (target.hasAttribute("popover") && "showPopover" in target) {
|
|
1067
|
+
const popover = target;
|
|
1068
|
+
if (command === "toggle-popover") {
|
|
1069
|
+
popover.togglePopover();
|
|
1070
|
+
} else if (command === "show-popover") {
|
|
1071
|
+
popover.showPopover();
|
|
1072
|
+
} else if (command === "hide-popover") {
|
|
1073
|
+
popover.hidePopover();
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1039
1079
|
// src/components/interaction/Command/Command.module.css
|
|
1040
|
-
var Command_default = {"dialog":"
|
|
1080
|
+
var Command_default = {"dialog":"bds111Command-dialog","palette":"bds111Command-palette","searchRow":"bds111Command-searchRow","searchIcon":"bds111Command-searchIcon","search":"bds111Command-search","escHint":"bds111Command-escHint","list":"bds111Command-list","groupList":"bds111Command-groupList","group":"bds111Command-group","item":"bds111Command-item","itemActive":"bds111Command-itemActive","itemLabel":"bds111Command-itemLabel","itemDesc":"bds111Command-itemDesc","shortcut":"bds111Command-shortcut","empty":"bds111Command-empty"};
|
|
1041
1081
|
|
|
1042
1082
|
// src/components/interaction/Command/Command.tsx
|
|
1043
|
-
import { cn as
|
|
1083
|
+
import { cn as cn24 } from "@boostdev/design-system-foundation";
|
|
1044
1084
|
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1085
|
+
installInvokerCommandsPolyfill();
|
|
1045
1086
|
function Command({
|
|
1087
|
+
id: idProp,
|
|
1046
1088
|
isOpen,
|
|
1089
|
+
onOpen,
|
|
1047
1090
|
onClose,
|
|
1048
1091
|
items,
|
|
1049
1092
|
placeholder = "Search commands\u2026",
|
|
@@ -1051,6 +1094,8 @@ function Command({
|
|
|
1051
1094
|
}) {
|
|
1052
1095
|
const [query, setQuery] = useState5("");
|
|
1053
1096
|
const [activeIndex, setActiveIndex] = useState5(0);
|
|
1097
|
+
const generatedId = useId6();
|
|
1098
|
+
const dialogId = idProp ?? generatedId;
|
|
1054
1099
|
const dialogRef = useRef3(null);
|
|
1055
1100
|
const inputRef = useRef3(null);
|
|
1056
1101
|
const listboxId = useId6();
|
|
@@ -1074,14 +1119,14 @@ function Command({
|
|
|
1074
1119
|
useEffect(() => {
|
|
1075
1120
|
const dialog = dialogRef.current;
|
|
1076
1121
|
if (!dialog) return;
|
|
1077
|
-
if (isOpen) {
|
|
1122
|
+
if (isOpen && !dialog.open) {
|
|
1078
1123
|
triggerRef.current = document.activeElement;
|
|
1079
1124
|
dialog.showModal();
|
|
1080
1125
|
document.body.style.overflow = "hidden";
|
|
1081
1126
|
setQuery("");
|
|
1082
1127
|
setActiveIndex(0);
|
|
1083
1128
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
1084
|
-
} else if (dialog.open) {
|
|
1129
|
+
} else if (!isOpen && dialog.open) {
|
|
1085
1130
|
dialog.close();
|
|
1086
1131
|
document.body.style.overflow = "";
|
|
1087
1132
|
triggerRef.current?.focus();
|
|
@@ -1093,6 +1138,27 @@ function Command({
|
|
|
1093
1138
|
useEffect(() => {
|
|
1094
1139
|
setActiveIndex(0);
|
|
1095
1140
|
}, [query]);
|
|
1141
|
+
useEffect(() => {
|
|
1142
|
+
const dialog = dialogRef.current;
|
|
1143
|
+
if (!dialog) return;
|
|
1144
|
+
const handleCommand = (e) => {
|
|
1145
|
+
if (e.command === "show-modal") {
|
|
1146
|
+
triggerRef.current = document.activeElement;
|
|
1147
|
+
document.body.style.overflow = "hidden";
|
|
1148
|
+
setQuery("");
|
|
1149
|
+
setActiveIndex(0);
|
|
1150
|
+
setTimeout(() => inputRef.current?.focus(), 0);
|
|
1151
|
+
onOpen?.();
|
|
1152
|
+
} else if (e.command === "close") {
|
|
1153
|
+
document.body.style.overflow = "";
|
|
1154
|
+
const trigger = triggerRef.current;
|
|
1155
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1156
|
+
onClose();
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
dialog.addEventListener("command", handleCommand);
|
|
1160
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1161
|
+
}, [onOpen, onClose]);
|
|
1096
1162
|
const handleCancel = (e) => {
|
|
1097
1163
|
e.preventDefault();
|
|
1098
1164
|
onClose();
|
|
@@ -1120,7 +1186,8 @@ function Command({
|
|
|
1120
1186
|
"dialog",
|
|
1121
1187
|
{
|
|
1122
1188
|
ref: dialogRef,
|
|
1123
|
-
|
|
1189
|
+
id: dialogId,
|
|
1190
|
+
className: cn24(Command_default.dialog, className),
|
|
1124
1191
|
"aria-label": "Command palette",
|
|
1125
1192
|
"aria-modal": "true",
|
|
1126
1193
|
onCancel: handleCancel,
|
|
@@ -1159,7 +1226,7 @@ function Command({
|
|
|
1159
1226
|
id: `cmd-${item.id}`,
|
|
1160
1227
|
role: "option",
|
|
1161
1228
|
"aria-selected": isActive,
|
|
1162
|
-
className:
|
|
1229
|
+
className: cn24(Command_default.item, isActive && Command_default.itemActive),
|
|
1163
1230
|
onPointerDown: (e) => e.preventDefault(),
|
|
1164
1231
|
onClick: () => selectItem(item),
|
|
1165
1232
|
children: [
|
|
@@ -1182,26 +1249,29 @@ function Command({
|
|
|
1182
1249
|
}
|
|
1183
1250
|
|
|
1184
1251
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1185
|
-
import { useEffect as useEffect2, useRef as useRef4 } from "react";
|
|
1252
|
+
import { useEffect as useEffect2, useId as useId7, useRef as useRef4 } from "react";
|
|
1186
1253
|
|
|
1187
1254
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1188
|
-
var Dialog_default = {"dialog":"
|
|
1255
|
+
var Dialog_default = {"dialog":"bds111Dialog-dialog","dialogContent":"bds111Dialog-dialogContent","closeButton":"bds111Dialog-closeButton"};
|
|
1189
1256
|
|
|
1190
1257
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1191
|
-
import { cn as
|
|
1258
|
+
import { cn as cn25 } from "@boostdev/design-system-foundation";
|
|
1192
1259
|
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1260
|
+
installInvokerCommandsPolyfill();
|
|
1193
1261
|
var FOCUSABLE_SELECTOR = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
1194
|
-
function Dialog({ children, isOpen = false, className, onClose }) {
|
|
1262
|
+
function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClose }) {
|
|
1263
|
+
const generatedId = useId7();
|
|
1264
|
+
const id = idProp ?? generatedId;
|
|
1195
1265
|
const dialogRef = useRef4(null);
|
|
1196
1266
|
const triggerRef = useRef4(null);
|
|
1197
1267
|
useEffect2(() => {
|
|
1198
1268
|
const dialog = dialogRef.current;
|
|
1199
1269
|
if (!dialog) return;
|
|
1200
|
-
if (isOpen) {
|
|
1270
|
+
if (isOpen && !dialog.open) {
|
|
1201
1271
|
triggerRef.current = document.activeElement;
|
|
1202
1272
|
dialog.showModal();
|
|
1203
1273
|
document.body.style.overflow = "hidden";
|
|
1204
|
-
} else if (dialog.open) {
|
|
1274
|
+
} else if (!isOpen && dialog.open) {
|
|
1205
1275
|
dialog.close();
|
|
1206
1276
|
document.body.style.overflow = "";
|
|
1207
1277
|
triggerRef.current?.focus();
|
|
@@ -1210,6 +1280,24 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1210
1280
|
document.body.style.overflow = "";
|
|
1211
1281
|
};
|
|
1212
1282
|
}, [isOpen]);
|
|
1283
|
+
useEffect2(() => {
|
|
1284
|
+
const dialog = dialogRef.current;
|
|
1285
|
+
if (!dialog) return;
|
|
1286
|
+
const handleCommand = (e) => {
|
|
1287
|
+
if (e.command === "show-modal") {
|
|
1288
|
+
triggerRef.current = document.activeElement;
|
|
1289
|
+
document.body.style.overflow = "hidden";
|
|
1290
|
+
onOpen?.();
|
|
1291
|
+
} else if (e.command === "close") {
|
|
1292
|
+
document.body.style.overflow = "";
|
|
1293
|
+
const trigger = triggerRef.current;
|
|
1294
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1295
|
+
onClose?.();
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
dialog.addEventListener("command", handleCommand);
|
|
1299
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1300
|
+
}, [onOpen, onClose]);
|
|
1213
1301
|
const handleBackdropClick = (e) => {
|
|
1214
1302
|
if (e.target === dialogRef.current) onClose?.();
|
|
1215
1303
|
};
|
|
@@ -1241,22 +1329,24 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1241
1329
|
"dialog",
|
|
1242
1330
|
{
|
|
1243
1331
|
ref: dialogRef,
|
|
1244
|
-
|
|
1332
|
+
id,
|
|
1333
|
+
className: cn25(className, Dialog_default.dialog),
|
|
1245
1334
|
"aria-modal": "true",
|
|
1246
1335
|
onClick: handleBackdropClick,
|
|
1247
1336
|
onCancel: handleCancel,
|
|
1248
1337
|
onKeyDown: handleKeyDown,
|
|
1249
1338
|
children: [
|
|
1250
|
-
/* @__PURE__ */ jsx25(
|
|
1339
|
+
/* @__PURE__ */ jsx25(
|
|
1251
1340
|
"button",
|
|
1252
1341
|
{
|
|
1253
|
-
type: "
|
|
1342
|
+
type: "button",
|
|
1254
1343
|
className: Dialog_default.closeButton,
|
|
1255
|
-
|
|
1344
|
+
commandfor: id,
|
|
1345
|
+
command: "close",
|
|
1256
1346
|
"aria-label": "Close dialog",
|
|
1257
1347
|
children: /* @__PURE__ */ jsx25("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx25("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
1258
1348
|
}
|
|
1259
|
-
)
|
|
1349
|
+
),
|
|
1260
1350
|
/* @__PURE__ */ jsx25("div", { className: Dialog_default.dialogContent, children })
|
|
1261
1351
|
]
|
|
1262
1352
|
}
|
|
@@ -1264,16 +1354,19 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1264
1354
|
}
|
|
1265
1355
|
|
|
1266
1356
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1267
|
-
import { useEffect as useEffect3, useRef as useRef5 } from "react";
|
|
1357
|
+
import { useEffect as useEffect3, useId as useId8, useRef as useRef5 } from "react";
|
|
1268
1358
|
|
|
1269
1359
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1270
|
-
var Drawer_default = {"drawer":"
|
|
1360
|
+
var Drawer_default = {"drawer":"bds111Drawer-drawer","panel":"bds111Drawer-panel","--side_right":"bds111Drawer---side_right","--side_left":"bds111Drawer---side_left","header":"bds111Drawer-header","closeButton":"bds111Drawer-closeButton","body":"bds111Drawer-body"};
|
|
1271
1361
|
|
|
1272
1362
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1273
|
-
import { cn as
|
|
1363
|
+
import { cn as cn26 } from "@boostdev/design-system-foundation";
|
|
1274
1364
|
import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1365
|
+
installInvokerCommandsPolyfill();
|
|
1275
1366
|
function Drawer({
|
|
1367
|
+
id: idProp,
|
|
1276
1368
|
isOpen,
|
|
1369
|
+
onOpen,
|
|
1277
1370
|
onClose,
|
|
1278
1371
|
title,
|
|
1279
1372
|
children,
|
|
@@ -1281,16 +1374,18 @@ function Drawer({
|
|
|
1281
1374
|
ariaLabel,
|
|
1282
1375
|
className
|
|
1283
1376
|
}) {
|
|
1377
|
+
const generatedId = useId8();
|
|
1378
|
+
const id = idProp ?? generatedId;
|
|
1284
1379
|
const dialogRef = useRef5(null);
|
|
1285
1380
|
const triggerRef = useRef5(null);
|
|
1286
1381
|
useEffect3(() => {
|
|
1287
1382
|
const dialog = dialogRef.current;
|
|
1288
1383
|
if (!dialog) return;
|
|
1289
|
-
if (isOpen) {
|
|
1384
|
+
if (isOpen && !dialog.open) {
|
|
1290
1385
|
triggerRef.current = document.activeElement;
|
|
1291
1386
|
dialog.showModal();
|
|
1292
1387
|
document.body.style.overflow = "hidden";
|
|
1293
|
-
} else if (dialog.open) {
|
|
1388
|
+
} else if (!isOpen && dialog.open) {
|
|
1294
1389
|
dialog.close();
|
|
1295
1390
|
document.body.style.overflow = "";
|
|
1296
1391
|
triggerRef.current?.focus();
|
|
@@ -1299,6 +1394,24 @@ function Drawer({
|
|
|
1299
1394
|
document.body.style.overflow = "";
|
|
1300
1395
|
};
|
|
1301
1396
|
}, [isOpen]);
|
|
1397
|
+
useEffect3(() => {
|
|
1398
|
+
const dialog = dialogRef.current;
|
|
1399
|
+
if (!dialog) return;
|
|
1400
|
+
const handleCommand = (e) => {
|
|
1401
|
+
if (e.command === "show-modal") {
|
|
1402
|
+
triggerRef.current = document.activeElement;
|
|
1403
|
+
document.body.style.overflow = "hidden";
|
|
1404
|
+
onOpen?.();
|
|
1405
|
+
} else if (e.command === "close") {
|
|
1406
|
+
document.body.style.overflow = "";
|
|
1407
|
+
const trigger = triggerRef.current;
|
|
1408
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1409
|
+
onClose();
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
dialog.addEventListener("command", handleCommand);
|
|
1413
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1414
|
+
}, [onOpen, onClose]);
|
|
1302
1415
|
const handleClick = (e) => {
|
|
1303
1416
|
if (e.target === dialogRef.current) onClose();
|
|
1304
1417
|
};
|
|
@@ -1310,7 +1423,8 @@ function Drawer({
|
|
|
1310
1423
|
"dialog",
|
|
1311
1424
|
{
|
|
1312
1425
|
ref: dialogRef,
|
|
1313
|
-
|
|
1426
|
+
id,
|
|
1427
|
+
className: cn26(Drawer_default.drawer, Drawer_default[`--side_${side}`], className),
|
|
1314
1428
|
"aria-label": ariaLabel,
|
|
1315
1429
|
"aria-modal": "true",
|
|
1316
1430
|
onClick: handleClick,
|
|
@@ -1323,7 +1437,8 @@ function Drawer({
|
|
|
1323
1437
|
{
|
|
1324
1438
|
type: "button",
|
|
1325
1439
|
className: Drawer_default.closeButton,
|
|
1326
|
-
|
|
1440
|
+
commandfor: id,
|
|
1441
|
+
command: "close",
|
|
1327
1442
|
"aria-label": "Close drawer",
|
|
1328
1443
|
children: /* @__PURE__ */ jsx26("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx26("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
1329
1444
|
}
|
|
@@ -1340,16 +1455,16 @@ import {
|
|
|
1340
1455
|
cloneElement as cloneElement2,
|
|
1341
1456
|
isValidElement as isValidElement2,
|
|
1342
1457
|
useEffect as useEffect4,
|
|
1343
|
-
useId as
|
|
1458
|
+
useId as useId9,
|
|
1344
1459
|
useRef as useRef6,
|
|
1345
1460
|
useState as useState6
|
|
1346
1461
|
} from "react";
|
|
1347
1462
|
|
|
1348
1463
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1349
|
-
var DropdownMenu_default = {"wrapper":"
|
|
1464
|
+
var DropdownMenu_default = {"wrapper":"bds111DropdownMenu-wrapper","menu":"bds111DropdownMenu-menu","--placement_bottom-start":"bds111DropdownMenu---placement_bottom-start","--placement_bottom-end":"bds111DropdownMenu---placement_bottom-end","separator":"bds111DropdownMenu-separator","item":"bds111DropdownMenu-item","icon":"bds111DropdownMenu-icon"};
|
|
1350
1465
|
|
|
1351
1466
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1352
|
-
import { cn as
|
|
1467
|
+
import { cn as cn27 } from "@boostdev/design-system-foundation";
|
|
1353
1468
|
import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1354
1469
|
function DropdownMenu({
|
|
1355
1470
|
trigger,
|
|
@@ -1359,7 +1474,7 @@ function DropdownMenu({
|
|
|
1359
1474
|
}) {
|
|
1360
1475
|
const [isOpen, setIsOpen] = useState6(false);
|
|
1361
1476
|
const containerRef = useRef6(null);
|
|
1362
|
-
const menuId =
|
|
1477
|
+
const menuId = useId9();
|
|
1363
1478
|
const itemRefs = useRef6([]);
|
|
1364
1479
|
const open = () => {
|
|
1365
1480
|
setIsOpen(true);
|
|
@@ -1418,14 +1533,14 @@ function DropdownMenu({
|
|
|
1418
1533
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1419
1534
|
}
|
|
1420
1535
|
}) : trigger;
|
|
1421
|
-
return /* @__PURE__ */ jsxs20("div", { ref: containerRef, className:
|
|
1536
|
+
return /* @__PURE__ */ jsxs20("div", { ref: containerRef, className: cn27(DropdownMenu_default.wrapper, className), children: [
|
|
1422
1537
|
triggerEl,
|
|
1423
1538
|
isOpen && /* @__PURE__ */ jsx27(
|
|
1424
1539
|
"ul",
|
|
1425
1540
|
{
|
|
1426
1541
|
id: menuId,
|
|
1427
1542
|
role: "menu",
|
|
1428
|
-
className:
|
|
1543
|
+
className: cn27(DropdownMenu_default.menu, DropdownMenu_default[`--placement_${placement}`]),
|
|
1429
1544
|
children: items.map((item, index) => /* @__PURE__ */ jsxs20("li", { role: "presentation", children: [
|
|
1430
1545
|
item.separator && /* @__PURE__ */ jsx27("hr", { className: DropdownMenu_default.separator, role: "separator" }),
|
|
1431
1546
|
/* @__PURE__ */ jsxs20(
|
|
@@ -1460,17 +1575,22 @@ import {
|
|
|
1460
1575
|
cloneElement as cloneElement3,
|
|
1461
1576
|
isValidElement as isValidElement3,
|
|
1462
1577
|
useEffect as useEffect5,
|
|
1463
|
-
useId as
|
|
1578
|
+
useId as useId10,
|
|
1464
1579
|
useRef as useRef7,
|
|
1465
1580
|
useState as useState7
|
|
1466
1581
|
} from "react";
|
|
1467
1582
|
|
|
1468
1583
|
// src/components/interaction/Popover/Popover.module.css
|
|
1469
|
-
var Popover_default = {"wrapper":"
|
|
1584
|
+
var Popover_default = {"wrapper":"bds111Popover-wrapper","panel":"bds111Popover-panel","g":"bds111Popover-g"};
|
|
1470
1585
|
|
|
1471
1586
|
// src/components/interaction/Popover/Popover.tsx
|
|
1472
|
-
import { cn as
|
|
1587
|
+
import { cn as cn28 } from "@boostdev/design-system-foundation";
|
|
1473
1588
|
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1589
|
+
installInvokerCommandsPolyfill();
|
|
1590
|
+
if (typeof window !== "undefined" && !(typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name: --a"))) {
|
|
1591
|
+
import("@oddbird/css-anchor-positioning").catch(() => {
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1474
1594
|
function Popover({
|
|
1475
1595
|
children,
|
|
1476
1596
|
content,
|
|
@@ -1480,43 +1600,64 @@ function Popover({
|
|
|
1480
1600
|
}) {
|
|
1481
1601
|
const [isOpen, setIsOpen] = useState7(false);
|
|
1482
1602
|
const containerRef = useRef7(null);
|
|
1483
|
-
const
|
|
1603
|
+
const panelRef = useRef7(null);
|
|
1604
|
+
const rawId = useId10();
|
|
1605
|
+
const anchorName = `--popover-${rawId.replace(/\W/g, "") || "a"}`;
|
|
1606
|
+
const panelId = rawId;
|
|
1607
|
+
useEffect5(() => {
|
|
1608
|
+
const panel = panelRef.current;
|
|
1609
|
+
if (!panel) return;
|
|
1610
|
+
const handleToggle = (e) => {
|
|
1611
|
+
setIsOpen(e.newState === "open");
|
|
1612
|
+
};
|
|
1613
|
+
panel.addEventListener("toggle", handleToggle);
|
|
1614
|
+
return () => panel.removeEventListener("toggle", handleToggle);
|
|
1615
|
+
}, []);
|
|
1484
1616
|
useEffect5(() => {
|
|
1485
1617
|
if (!isOpen) return;
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
|
|
1618
|
+
const handleScroll = () => {
|
|
1619
|
+
const rect = containerRef.current?.getBoundingClientRect();
|
|
1620
|
+
if (!rect) return;
|
|
1621
|
+
const { innerWidth: vw, innerHeight: vh } = window;
|
|
1622
|
+
if (rect.bottom < 0 || rect.top > vh || rect.right < 0 || rect.left > vw) {
|
|
1623
|
+
panelRef.current?.hidePopover();
|
|
1489
1624
|
}
|
|
1490
1625
|
};
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
};
|
|
1494
|
-
document.addEventListener("pointerdown", handlePointerDown);
|
|
1495
|
-
document.addEventListener("keydown", handleKeyDown);
|
|
1626
|
+
window.addEventListener("scroll", handleScroll, { capture: true, passive: true });
|
|
1627
|
+
window.addEventListener("resize", handleScroll, { passive: true });
|
|
1496
1628
|
return () => {
|
|
1497
|
-
|
|
1498
|
-
|
|
1629
|
+
window.removeEventListener("scroll", handleScroll, { capture: true });
|
|
1630
|
+
window.removeEventListener("resize", handleScroll);
|
|
1499
1631
|
};
|
|
1500
1632
|
}, [isOpen]);
|
|
1501
1633
|
const trigger = isValidElement3(children) ? cloneElement3(children, {
|
|
1502
1634
|
"aria-expanded": isOpen,
|
|
1503
1635
|
"aria-controls": panelId,
|
|
1504
1636
|
"aria-haspopup": true,
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1637
|
+
commandfor: panelId,
|
|
1638
|
+
command: "toggle-popover",
|
|
1639
|
+
style: {
|
|
1640
|
+
...children.props.style,
|
|
1641
|
+
anchorName
|
|
1642
|
+
},
|
|
1643
|
+
// Forward any existing onClick on the child (for custom side-effects).
|
|
1644
|
+
// Do NOT add our own toggle here — commandfor/command handles it to
|
|
1645
|
+
// avoid a double-toggle when both onClick and invoker fire.
|
|
1646
|
+
onClick: children.props.onClick
|
|
1510
1647
|
}) : children;
|
|
1511
|
-
return /* @__PURE__ */ jsxs21("span", { ref: containerRef, className:
|
|
1648
|
+
return /* @__PURE__ */ jsxs21("span", { ref: containerRef, className: cn28(Popover_default.wrapper, className), children: [
|
|
1512
1649
|
trigger,
|
|
1513
|
-
|
|
1650
|
+
/* @__PURE__ */ jsx28(
|
|
1514
1651
|
"div",
|
|
1515
1652
|
{
|
|
1653
|
+
ref: panelRef,
|
|
1516
1654
|
id: panelId,
|
|
1655
|
+
popover: "auto",
|
|
1656
|
+
"data-placement": placement,
|
|
1517
1657
|
role: ariaLabel ? "region" : void 0,
|
|
1518
1658
|
"aria-label": ariaLabel,
|
|
1519
|
-
className:
|
|
1659
|
+
className: Popover_default.panel,
|
|
1660
|
+
style: { positionAnchor: anchorName },
|
|
1520
1661
|
children: content
|
|
1521
1662
|
}
|
|
1522
1663
|
)
|
|
@@ -1524,23 +1665,23 @@ function Popover({
|
|
|
1524
1665
|
}
|
|
1525
1666
|
|
|
1526
1667
|
// src/components/interaction/Rating/Rating.module.css
|
|
1527
|
-
var Rating_default = {"rating":"
|
|
1668
|
+
var Rating_default = {"rating":"bds111Rating-rating","star":"bds111Rating-star","--filled":"bds111Rating---filled"};
|
|
1528
1669
|
|
|
1529
1670
|
// src/components/interaction/Rating/Rating.tsx
|
|
1530
|
-
import { cn as
|
|
1671
|
+
import { cn as cn29 } from "@boostdev/design-system-foundation";
|
|
1531
1672
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1532
1673
|
function Rating({ value, max = 5, className }) {
|
|
1533
1674
|
return /* @__PURE__ */ jsx29(
|
|
1534
1675
|
"div",
|
|
1535
1676
|
{
|
|
1536
|
-
className:
|
|
1677
|
+
className: cn29(Rating_default.rating, className),
|
|
1537
1678
|
role: "img",
|
|
1538
1679
|
"aria-label": `${value} out of ${max} stars`,
|
|
1539
1680
|
children: Array.from({ length: max }).map((_, i) => /* @__PURE__ */ jsx29(
|
|
1540
1681
|
"svg",
|
|
1541
1682
|
{
|
|
1542
1683
|
"aria-hidden": "true",
|
|
1543
|
-
className:
|
|
1684
|
+
className: cn29(Rating_default.star, i < value && Rating_default["--filled"]),
|
|
1544
1685
|
fill: "currentColor",
|
|
1545
1686
|
viewBox: "0 0 24 24",
|
|
1546
1687
|
children: /* @__PURE__ */ jsx29("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" })
|
|
@@ -1552,17 +1693,18 @@ function Rating({ value, max = 5, className }) {
|
|
|
1552
1693
|
}
|
|
1553
1694
|
|
|
1554
1695
|
// src/components/interaction/Toast/Toast.tsx
|
|
1555
|
-
import { useState as useState8, useEffect as useEffect6, createContext, useContext, useCallback, useMemo as useMemo2 } from "react";
|
|
1696
|
+
import { useState as useState8, useEffect as useEffect6, createContext, useContext, useCallback, useMemo as useMemo2, useRef as useRef8 } from "react";
|
|
1556
1697
|
|
|
1557
1698
|
// src/components/interaction/Toast/Toast.module.css
|
|
1558
|
-
var Toast_default = {"toastContainer":"
|
|
1699
|
+
var Toast_default = {"toastContainer":"bds111Toast-toastContainer","toast":"bds111Toast-toast","--variant_success":"bds111Toast---variant_success","--variant_warning":"bds111Toast---variant_warning","--variant_info":"bds111Toast---variant_info","--variant_error":"bds111Toast---variant_error","message":"bds111Toast-message","closeButton":"bds111Toast-closeButton"};
|
|
1559
1700
|
|
|
1560
1701
|
// src/components/interaction/Toast/Toast.tsx
|
|
1561
|
-
import { cn as
|
|
1702
|
+
import { cn as cn30 } from "@boostdev/design-system-foundation";
|
|
1562
1703
|
import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1563
1704
|
var ToastContext = createContext(void 0);
|
|
1564
1705
|
function ToastProvider({ children }) {
|
|
1565
1706
|
const [toasts, setToasts] = useState8([]);
|
|
1707
|
+
const containerRef = useRef8(null);
|
|
1566
1708
|
const showToast = useCallback((message, variant) => {
|
|
1567
1709
|
const id = Math.random().toString(36).substring(2, 9);
|
|
1568
1710
|
setToasts((prev) => [...prev, { id, message, variant }]);
|
|
@@ -1570,17 +1712,39 @@ function ToastProvider({ children }) {
|
|
|
1570
1712
|
const removeToast = useCallback((id) => {
|
|
1571
1713
|
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
1572
1714
|
}, []);
|
|
1715
|
+
useEffect6(() => {
|
|
1716
|
+
const container = containerRef.current;
|
|
1717
|
+
if (!container) return;
|
|
1718
|
+
if (toasts.length > 0) {
|
|
1719
|
+
container.showPopover?.();
|
|
1720
|
+
} else {
|
|
1721
|
+
try {
|
|
1722
|
+
container.hidePopover?.();
|
|
1723
|
+
} catch {
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
}, [toasts.length]);
|
|
1573
1727
|
const value = useMemo2(() => ({ showToast }), [showToast]);
|
|
1574
1728
|
return /* @__PURE__ */ jsxs22(ToastContext.Provider, { value, children: [
|
|
1575
1729
|
children,
|
|
1576
|
-
/* @__PURE__ */ jsx30(
|
|
1577
|
-
|
|
1730
|
+
/* @__PURE__ */ jsx30(
|
|
1731
|
+
"div",
|
|
1578
1732
|
{
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1733
|
+
ref: containerRef,
|
|
1734
|
+
popover: "manual",
|
|
1735
|
+
role: "region",
|
|
1736
|
+
"aria-label": "Notifications",
|
|
1737
|
+
className: Toast_default.toastContainer,
|
|
1738
|
+
children: toasts.map((toast) => /* @__PURE__ */ jsx30(
|
|
1739
|
+
ToastItem,
|
|
1740
|
+
{
|
|
1741
|
+
toast,
|
|
1742
|
+
onRemove: () => removeToast(toast.id)
|
|
1743
|
+
},
|
|
1744
|
+
toast.id
|
|
1745
|
+
))
|
|
1746
|
+
}
|
|
1747
|
+
)
|
|
1584
1748
|
] });
|
|
1585
1749
|
}
|
|
1586
1750
|
function ToastItem({ toast, onRemove }) {
|
|
@@ -1588,7 +1752,7 @@ function ToastItem({ toast, onRemove }) {
|
|
|
1588
1752
|
const timer = setTimeout(onRemove, 5e3);
|
|
1589
1753
|
return () => clearTimeout(timer);
|
|
1590
1754
|
}, [onRemove]);
|
|
1591
|
-
return /* @__PURE__ */ jsxs22("div", { className:
|
|
1755
|
+
return /* @__PURE__ */ jsxs22("div", { className: cn30(Toast_default.toast, Toast_default[`--variant_${toast.variant}`]), role: "status", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
1592
1756
|
/* @__PURE__ */ jsx30("span", { className: Toast_default.message, children: toast.message }),
|
|
1593
1757
|
/* @__PURE__ */ jsx30("button", { type: "button", className: Toast_default.closeButton, onClick: onRemove, "aria-label": "Dismiss", children: /* @__PURE__ */ jsx30("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx30("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) }) })
|
|
1594
1758
|
] });
|
|
@@ -1602,51 +1766,53 @@ function useToast() {
|
|
|
1602
1766
|
}
|
|
1603
1767
|
|
|
1604
1768
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1605
|
-
import { useId as
|
|
1769
|
+
import { useId as useId11 } from "react";
|
|
1606
1770
|
|
|
1607
1771
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1608
|
-
var Checkbox_default = {"checkboxGroup":"
|
|
1772
|
+
var Checkbox_default = {"checkboxGroup":"bds111Checkbox-checkboxGroup","inputWrapper":"bds111Checkbox-inputWrapper","checkbox":"bds111Checkbox-checkbox","checkboxError":"bds111Checkbox-checkboxError"};
|
|
1609
1773
|
|
|
1610
1774
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1611
|
-
var Message_default = {"error":"
|
|
1775
|
+
var Message_default = {"error":"bds111Message-error","hint":"bds111Message-hint"};
|
|
1612
1776
|
|
|
1613
1777
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1778
|
+
import { cn as cn31 } from "@boostdev/design-system-foundation";
|
|
1614
1779
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1615
|
-
var Message = ({ message, type, inputId }) => {
|
|
1780
|
+
var Message = ({ message, type, inputId, className }) => {
|
|
1616
1781
|
if (!message) return null;
|
|
1617
|
-
return /* @__PURE__ */ jsx31("p", { id: inputId + type, className: Message_default[type], children: message });
|
|
1782
|
+
return /* @__PURE__ */ jsx31("p", { id: inputId + type, className: cn31(Message_default[type], className), children: message });
|
|
1618
1783
|
};
|
|
1619
1784
|
|
|
1620
1785
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1621
|
-
var Label_default = {"label":"
|
|
1786
|
+
var Label_default = {"label":"bds111Label-label"};
|
|
1622
1787
|
|
|
1623
1788
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1789
|
+
import { cn as cn32 } from "@boostdev/design-system-foundation";
|
|
1624
1790
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1625
|
-
var Label = ({ label, id }) => {
|
|
1626
|
-
return /* @__PURE__ */ jsx32("label", { htmlFor: id, className: Label_default.label, children: label });
|
|
1791
|
+
var Label = ({ label, id, className }) => {
|
|
1792
|
+
return /* @__PURE__ */ jsx32("label", { htmlFor: id, className: cn32(Label_default.label, className), children: label });
|
|
1627
1793
|
};
|
|
1628
1794
|
|
|
1629
1795
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1630
|
-
import { cn as
|
|
1796
|
+
import { cn as cn34 } from "@boostdev/design-system-foundation";
|
|
1631
1797
|
|
|
1632
1798
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1633
|
-
var InputContainer_default = {"container":"
|
|
1799
|
+
var InputContainer_default = {"container":"bds111InputContainer-container"};
|
|
1634
1800
|
|
|
1635
1801
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1636
|
-
import { cn as
|
|
1802
|
+
import { cn as cn33 } from "@boostdev/design-system-foundation";
|
|
1637
1803
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1638
1804
|
var InputContainer = ({ children, className }) => {
|
|
1639
|
-
return /* @__PURE__ */ jsx33("div", { className:
|
|
1805
|
+
return /* @__PURE__ */ jsx33("div", { className: cn33(InputContainer_default.container, className), children });
|
|
1640
1806
|
};
|
|
1641
1807
|
|
|
1642
1808
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1643
1809
|
import { jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1644
1810
|
function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
1645
|
-
const id = name +
|
|
1811
|
+
const id = name + useId11();
|
|
1646
1812
|
const hintId = id + "hint";
|
|
1647
1813
|
const errorId = id + "error";
|
|
1648
1814
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1649
|
-
return /* @__PURE__ */ jsxs23(InputContainer, { className:
|
|
1815
|
+
return /* @__PURE__ */ jsxs23(InputContainer, { className: cn34(Checkbox_default.checkboxGroup, className), children: [
|
|
1650
1816
|
/* @__PURE__ */ jsxs23("div", { className: Checkbox_default.inputWrapper, children: [
|
|
1651
1817
|
/* @__PURE__ */ jsx34(
|
|
1652
1818
|
"input",
|
|
@@ -1656,7 +1822,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1656
1822
|
type: "checkbox",
|
|
1657
1823
|
id,
|
|
1658
1824
|
name,
|
|
1659
|
-
className:
|
|
1825
|
+
className: cn34(Checkbox_default.checkbox, error && Checkbox_default.checkboxError),
|
|
1660
1826
|
...props
|
|
1661
1827
|
}
|
|
1662
1828
|
),
|
|
@@ -1668,13 +1834,13 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1668
1834
|
}
|
|
1669
1835
|
|
|
1670
1836
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1671
|
-
import { useId as
|
|
1837
|
+
import { useId as useId12 } from "react";
|
|
1672
1838
|
|
|
1673
1839
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
1674
|
-
var CheckboxGroup_default = {"group":"
|
|
1840
|
+
var CheckboxGroup_default = {"group":"bds111CheckboxGroup-group","legend":"bds111CheckboxGroup-legend","required":"bds111CheckboxGroup-required","items":"bds111CheckboxGroup-items"};
|
|
1675
1841
|
|
|
1676
1842
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1677
|
-
import { cn as
|
|
1843
|
+
import { cn as cn35 } from "@boostdev/design-system-foundation";
|
|
1678
1844
|
import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1679
1845
|
function CheckboxGroup({
|
|
1680
1846
|
legend,
|
|
@@ -1685,14 +1851,14 @@ function CheckboxGroup({
|
|
|
1685
1851
|
disabled,
|
|
1686
1852
|
className
|
|
1687
1853
|
}) {
|
|
1688
|
-
const id =
|
|
1854
|
+
const id = useId12();
|
|
1689
1855
|
const hintId = id + "hint";
|
|
1690
1856
|
const errorId = id + "error";
|
|
1691
1857
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1692
1858
|
return /* @__PURE__ */ jsxs24(
|
|
1693
1859
|
"fieldset",
|
|
1694
1860
|
{
|
|
1695
|
-
className:
|
|
1861
|
+
className: cn35(CheckboxGroup_default.group, className),
|
|
1696
1862
|
disabled,
|
|
1697
1863
|
"aria-required": required || void 0,
|
|
1698
1864
|
"aria-describedby": describedBy,
|
|
@@ -1712,17 +1878,17 @@ function CheckboxGroup({
|
|
|
1712
1878
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1713
1879
|
import {
|
|
1714
1880
|
useEffect as useEffect7,
|
|
1715
|
-
useId as
|
|
1716
|
-
useRef as
|
|
1881
|
+
useId as useId13,
|
|
1882
|
+
useRef as useRef9,
|
|
1717
1883
|
useState as useState9,
|
|
1718
1884
|
useMemo as useMemo3
|
|
1719
1885
|
} from "react";
|
|
1720
1886
|
|
|
1721
1887
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1722
|
-
var Combobox_default = {"formGroup":"
|
|
1888
|
+
var Combobox_default = {"formGroup":"bds111Combobox-formGroup","inputWrapper":"bds111Combobox-inputWrapper","input":"bds111Combobox-input","inputError":"bds111Combobox-inputError","chevron":"bds111Combobox-chevron","listbox":"bds111Combobox-listbox","option":"bds111Combobox-option","--highlighted":"bds111Combobox---highlighted","--selected":"bds111Combobox---selected","--disabled":"bds111Combobox---disabled"};
|
|
1723
1889
|
|
|
1724
1890
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1725
|
-
import { cn as
|
|
1891
|
+
import { cn as cn36 } from "@boostdev/design-system-foundation";
|
|
1726
1892
|
import { jsx as jsx36, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1727
1893
|
function Combobox({
|
|
1728
1894
|
label,
|
|
@@ -1736,7 +1902,7 @@ function Combobox({
|
|
|
1736
1902
|
hint,
|
|
1737
1903
|
className
|
|
1738
1904
|
}) {
|
|
1739
|
-
const id = name +
|
|
1905
|
+
const id = name + useId13();
|
|
1740
1906
|
const listboxId = id + "listbox";
|
|
1741
1907
|
const hintId = id + "hint";
|
|
1742
1908
|
const errorId = id + "error";
|
|
@@ -1748,8 +1914,8 @@ function Combobox({
|
|
|
1748
1914
|
}, [selectedOption]);
|
|
1749
1915
|
const [isOpen, setIsOpen] = useState9(false);
|
|
1750
1916
|
const [highlightedIndex, setHighlightedIndex] = useState9(-1);
|
|
1751
|
-
const containerRef =
|
|
1752
|
-
const inputRef =
|
|
1917
|
+
const containerRef = useRef9(null);
|
|
1918
|
+
const inputRef = useRef9(null);
|
|
1753
1919
|
const filtered = options.filter(
|
|
1754
1920
|
(o) => o.label.toLowerCase().includes(inputValue.toLowerCase())
|
|
1755
1921
|
);
|
|
@@ -1801,7 +1967,7 @@ function Combobox({
|
|
|
1801
1967
|
setIsOpen(false);
|
|
1802
1968
|
}
|
|
1803
1969
|
};
|
|
1804
|
-
return /* @__PURE__ */ jsxs25(InputContainer, { className:
|
|
1970
|
+
return /* @__PURE__ */ jsxs25(InputContainer, { className: cn36(Combobox_default.formGroup, className), children: [
|
|
1805
1971
|
/* @__PURE__ */ jsx36(Label, { id, label }),
|
|
1806
1972
|
/* @__PURE__ */ jsxs25("div", { ref: containerRef, className: Combobox_default.inputWrapper, children: [
|
|
1807
1973
|
/* @__PURE__ */ jsx36(
|
|
@@ -1823,7 +1989,7 @@ function Combobox({
|
|
|
1823
1989
|
placeholder,
|
|
1824
1990
|
value: inputValue,
|
|
1825
1991
|
disabled,
|
|
1826
|
-
className:
|
|
1992
|
+
className: cn36(Combobox_default.input, error ? Combobox_default.inputError : void 0),
|
|
1827
1993
|
onChange: handleInputChange,
|
|
1828
1994
|
onKeyDown: handleKeyDown,
|
|
1829
1995
|
onFocus: () => setIsOpen(true)
|
|
@@ -1843,7 +2009,7 @@ function Combobox({
|
|
|
1843
2009
|
role: "option",
|
|
1844
2010
|
"aria-selected": option.value === value,
|
|
1845
2011
|
"aria-disabled": option.disabled,
|
|
1846
|
-
className:
|
|
2012
|
+
className: cn36(
|
|
1847
2013
|
Combobox_default.option,
|
|
1848
2014
|
index === highlightedIndex ? Combobox_default["--highlighted"] : void 0,
|
|
1849
2015
|
option.value === value ? Combobox_default["--selected"] : void 0,
|
|
@@ -1866,13 +2032,13 @@ function Combobox({
|
|
|
1866
2032
|
}
|
|
1867
2033
|
|
|
1868
2034
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1869
|
-
import { useId as
|
|
2035
|
+
import { useId as useId14, useRef as useRef10, useState as useState10 } from "react";
|
|
1870
2036
|
|
|
1871
2037
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
1872
|
-
var FileInput_default = {"formGroup":"
|
|
2038
|
+
var FileInput_default = {"formGroup":"bds111FileInput-formGroup","fieldLabel":"bds111FileInput-fieldLabel","dropZone":"bds111FileInput-dropZone","isDragging":"bds111FileInput-isDragging","hasError":"bds111FileInput-hasError","isDisabled":"bds111FileInput-isDisabled","icon":"bds111FileInput-icon","prompt":"bds111FileInput-prompt","acceptHint":"bds111FileInput-acceptHint","hiddenInput":"bds111FileInput-hiddenInput"};
|
|
1873
2039
|
|
|
1874
2040
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1875
|
-
import { cn as
|
|
2041
|
+
import { cn as cn37 } from "@boostdev/design-system-foundation";
|
|
1876
2042
|
import { Fragment as Fragment3, jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1877
2043
|
function FileInput({
|
|
1878
2044
|
label,
|
|
@@ -1886,11 +2052,11 @@ function FileInput({
|
|
|
1886
2052
|
onChange,
|
|
1887
2053
|
className
|
|
1888
2054
|
}) {
|
|
1889
|
-
const uid = name +
|
|
2055
|
+
const uid = name + useId14();
|
|
1890
2056
|
const hintId = uid + "hint";
|
|
1891
2057
|
const errorId = uid + "error";
|
|
1892
2058
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1893
|
-
const inputRef =
|
|
2059
|
+
const inputRef = useRef10(null);
|
|
1894
2060
|
const [isDragging, setIsDragging] = useState10(false);
|
|
1895
2061
|
const [fileNames, setFileNames] = useState10([]);
|
|
1896
2062
|
const isFileAccepted = (file) => {
|
|
@@ -1922,12 +2088,12 @@ function FileInput({
|
|
|
1922
2088
|
if (!disabled) setIsDragging(true);
|
|
1923
2089
|
};
|
|
1924
2090
|
const handleDragLeave = () => setIsDragging(false);
|
|
1925
|
-
return /* @__PURE__ */ jsxs26(InputContainer, { className:
|
|
2091
|
+
return /* @__PURE__ */ jsxs26(InputContainer, { className: cn37(FileInput_default.formGroup, className), children: [
|
|
1926
2092
|
/* @__PURE__ */ jsxs26(
|
|
1927
2093
|
"label",
|
|
1928
2094
|
{
|
|
1929
2095
|
htmlFor: uid,
|
|
1930
|
-
className:
|
|
2096
|
+
className: cn37(FileInput_default.dropZone, isDragging && FileInput_default.isDragging, error && FileInput_default.hasError, disabled && FileInput_default.isDisabled),
|
|
1931
2097
|
onDrop: handleDrop,
|
|
1932
2098
|
onDragOver: handleDragOver,
|
|
1933
2099
|
onDragLeave: handleDragLeave,
|
|
@@ -1966,13 +2132,13 @@ function FileInput({
|
|
|
1966
2132
|
}
|
|
1967
2133
|
|
|
1968
2134
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
1969
|
-
import { useId as
|
|
2135
|
+
import { useId as useId15 } from "react";
|
|
1970
2136
|
|
|
1971
2137
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
1972
|
-
var FormInput_default = {"formGroup":"
|
|
2138
|
+
var FormInput_default = {"formGroup":"bds111FormInput-formGroup","input":"bds111FormInput-input","inputError":"bds111FormInput-inputError"};
|
|
1973
2139
|
|
|
1974
2140
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
1975
|
-
import { cn as
|
|
2141
|
+
import { cn as cn38 } from "@boostdev/design-system-foundation";
|
|
1976
2142
|
import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1977
2143
|
function FormInput({
|
|
1978
2144
|
label,
|
|
@@ -1984,11 +2150,11 @@ function FormInput({
|
|
|
1984
2150
|
required,
|
|
1985
2151
|
...props
|
|
1986
2152
|
}) {
|
|
1987
|
-
const id = name +
|
|
2153
|
+
const id = name + useId15();
|
|
1988
2154
|
const hintId = id + "hint";
|
|
1989
2155
|
const errorId = id + "error";
|
|
1990
2156
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1991
|
-
return /* @__PURE__ */ jsxs27(InputContainer, { className:
|
|
2157
|
+
return /* @__PURE__ */ jsxs27(InputContainer, { className: cn38(FormInput_default.formGroup, className), children: [
|
|
1992
2158
|
/* @__PURE__ */ jsx38(Label, { id, label }),
|
|
1993
2159
|
/* @__PURE__ */ jsx38(
|
|
1994
2160
|
"input",
|
|
@@ -2000,7 +2166,7 @@ function FormInput({
|
|
|
2000
2166
|
id,
|
|
2001
2167
|
name,
|
|
2002
2168
|
required,
|
|
2003
|
-
className:
|
|
2169
|
+
className: cn38(FormInput_default.input, error && FormInput_default.inputError),
|
|
2004
2170
|
...props
|
|
2005
2171
|
}
|
|
2006
2172
|
),
|
|
@@ -2010,13 +2176,13 @@ function FormInput({
|
|
|
2010
2176
|
}
|
|
2011
2177
|
|
|
2012
2178
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2013
|
-
import { useId as
|
|
2179
|
+
import { useId as useId16, useRef as useRef11, useState as useState11 } from "react";
|
|
2014
2180
|
|
|
2015
2181
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2016
|
-
var NumberInput_default = {"formGroup":"
|
|
2182
|
+
var NumberInput_default = {"formGroup":"bds111NumberInput-formGroup","inputRow":"bds111NumberInput-inputRow","input":"bds111NumberInput-input","inputError":"bds111NumberInput-inputError","stepper":"bds111NumberInput-stepper"};
|
|
2017
2183
|
|
|
2018
2184
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2019
|
-
import { cn as
|
|
2185
|
+
import { cn as cn39 } from "@boostdev/design-system-foundation";
|
|
2020
2186
|
import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2021
2187
|
function NumberInput({
|
|
2022
2188
|
label,
|
|
@@ -2032,11 +2198,11 @@ function NumberInput({
|
|
|
2032
2198
|
onChange,
|
|
2033
2199
|
className
|
|
2034
2200
|
}) {
|
|
2035
|
-
const uid = name +
|
|
2201
|
+
const uid = name + useId16();
|
|
2036
2202
|
const hintId = uid + "hint";
|
|
2037
2203
|
const errorId = uid + "error";
|
|
2038
2204
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2039
|
-
const inputRef =
|
|
2205
|
+
const inputRef = useRef11(null);
|
|
2040
2206
|
const isControlled = value !== void 0;
|
|
2041
2207
|
const [internalValue, setInternalValue] = useState11(defaultValue ?? 0);
|
|
2042
2208
|
const currentValue = isControlled ? value : internalValue;
|
|
@@ -2055,7 +2221,7 @@ function NumberInput({
|
|
|
2055
2221
|
}
|
|
2056
2222
|
onChange?.(next);
|
|
2057
2223
|
};
|
|
2058
|
-
return /* @__PURE__ */ jsxs28(InputContainer, { className:
|
|
2224
|
+
return /* @__PURE__ */ jsxs28(InputContainer, { className: cn39(NumberInput_default.formGroup, className), children: [
|
|
2059
2225
|
/* @__PURE__ */ jsx39(Label, { id: uid, label }),
|
|
2060
2226
|
/* @__PURE__ */ jsxs28("div", { className: NumberInput_default.inputRow, children: [
|
|
2061
2227
|
/* @__PURE__ */ jsx39(
|
|
@@ -2085,7 +2251,7 @@ function NumberInput({
|
|
|
2085
2251
|
disabled,
|
|
2086
2252
|
"aria-invalid": !!error,
|
|
2087
2253
|
"aria-describedby": describedBy,
|
|
2088
|
-
className:
|
|
2254
|
+
className: cn39(NumberInput_default.input, error ? NumberInput_default.inputError : void 0),
|
|
2089
2255
|
onChange: (e) => {
|
|
2090
2256
|
const v = parseFloat(e.target.value);
|
|
2091
2257
|
const safe = isNaN(v) ? 0 : v;
|
|
@@ -2114,20 +2280,20 @@ function NumberInput({
|
|
|
2114
2280
|
}
|
|
2115
2281
|
|
|
2116
2282
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2117
|
-
import { useId as
|
|
2283
|
+
import { useId as useId17 } from "react";
|
|
2118
2284
|
|
|
2119
2285
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2120
|
-
var Radio_default = {"radioGroup":"
|
|
2286
|
+
var Radio_default = {"radioGroup":"bds111Radio-radioGroup","inputWrapper":"bds111Radio-inputWrapper","textWrapper":"bds111Radio-textWrapper","description":"bds111Radio-description","radio":"bds111Radio-radio","radioError":"bds111Radio-radioError"};
|
|
2121
2287
|
|
|
2122
2288
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2123
|
-
import { cn as
|
|
2289
|
+
import { cn as cn40 } from "@boostdev/design-system-foundation";
|
|
2124
2290
|
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2125
2291
|
function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
2126
|
-
const id = name +
|
|
2292
|
+
const id = name + useId17();
|
|
2127
2293
|
const hintId = id + "hint";
|
|
2128
2294
|
const errorId = id + "error";
|
|
2129
2295
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2130
|
-
return /* @__PURE__ */ jsxs29(InputContainer, { className:
|
|
2296
|
+
return /* @__PURE__ */ jsxs29(InputContainer, { className: cn40(Radio_default.radioGroup, className), children: [
|
|
2131
2297
|
/* @__PURE__ */ jsxs29("div", { className: Radio_default.inputWrapper, children: [
|
|
2132
2298
|
/* @__PURE__ */ jsx40(
|
|
2133
2299
|
"input",
|
|
@@ -2137,7 +2303,7 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2137
2303
|
type: "radio",
|
|
2138
2304
|
id,
|
|
2139
2305
|
name,
|
|
2140
|
-
className:
|
|
2306
|
+
className: cn40(Radio_default.radio, error && Radio_default.radioError),
|
|
2141
2307
|
...props
|
|
2142
2308
|
}
|
|
2143
2309
|
),
|
|
@@ -2152,13 +2318,13 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2152
2318
|
}
|
|
2153
2319
|
|
|
2154
2320
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2155
|
-
import { useId as
|
|
2321
|
+
import { useId as useId18 } from "react";
|
|
2156
2322
|
|
|
2157
2323
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2158
|
-
var RadioGroup_default = {"group":"
|
|
2324
|
+
var RadioGroup_default = {"group":"bds111RadioGroup-group","legend":"bds111RadioGroup-legend","required":"bds111RadioGroup-required","items":"bds111RadioGroup-items"};
|
|
2159
2325
|
|
|
2160
2326
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2161
|
-
import { cn as
|
|
2327
|
+
import { cn as cn41 } from "@boostdev/design-system-foundation";
|
|
2162
2328
|
import { jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2163
2329
|
function RadioGroup({
|
|
2164
2330
|
legend,
|
|
@@ -2169,14 +2335,14 @@ function RadioGroup({
|
|
|
2169
2335
|
disabled,
|
|
2170
2336
|
className
|
|
2171
2337
|
}) {
|
|
2172
|
-
const id =
|
|
2338
|
+
const id = useId18();
|
|
2173
2339
|
const hintId = id + "hint";
|
|
2174
2340
|
const errorId = id + "error";
|
|
2175
2341
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2176
2342
|
return /* @__PURE__ */ jsxs30(
|
|
2177
2343
|
"fieldset",
|
|
2178
2344
|
{
|
|
2179
|
-
className:
|
|
2345
|
+
className: cn41(RadioGroup_default.group, className),
|
|
2180
2346
|
disabled,
|
|
2181
2347
|
"aria-required": required || void 0,
|
|
2182
2348
|
"aria-describedby": describedBy,
|
|
@@ -2194,13 +2360,13 @@ function RadioGroup({
|
|
|
2194
2360
|
}
|
|
2195
2361
|
|
|
2196
2362
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2197
|
-
import { useId as
|
|
2363
|
+
import { useId as useId19, useState as useState12 } from "react";
|
|
2198
2364
|
|
|
2199
2365
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2200
|
-
var SegmentedControl_default = {"control":"
|
|
2366
|
+
var SegmentedControl_default = {"control":"bds111SegmentedControl-control","thumb":"bds111SegmentedControl-thumb","item":"bds111SegmentedControl-item","--disabled":"bds111SegmentedControl---disabled","radio":"bds111SegmentedControl-radio","label":"bds111SegmentedControl-label","--size_small":"bds111SegmentedControl---size_small","--size_large":"bds111SegmentedControl---size_large","--active":"bds111SegmentedControl---active"};
|
|
2201
2367
|
|
|
2202
2368
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2203
|
-
import { cn as
|
|
2369
|
+
import { cn as cn42 } from "@boostdev/design-system-foundation";
|
|
2204
2370
|
import { jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2205
2371
|
function SegmentedControl({
|
|
2206
2372
|
name,
|
|
@@ -2214,7 +2380,7 @@ function SegmentedControl({
|
|
|
2214
2380
|
"aria-label": ariaLabel,
|
|
2215
2381
|
...rest
|
|
2216
2382
|
}) {
|
|
2217
|
-
const baseId = name +
|
|
2383
|
+
const baseId = name + useId19();
|
|
2218
2384
|
const [internalValue, setInternalValue] = useState12(
|
|
2219
2385
|
defaultValue ?? options[0]?.value ?? ""
|
|
2220
2386
|
);
|
|
@@ -2229,7 +2395,7 @@ function SegmentedControl({
|
|
|
2229
2395
|
{
|
|
2230
2396
|
role: "group",
|
|
2231
2397
|
"aria-label": ariaLabel,
|
|
2232
|
-
className:
|
|
2398
|
+
className: cn42(SegmentedControl_default.control, SegmentedControl_default[`--size_${size}`], className),
|
|
2233
2399
|
style: {
|
|
2234
2400
|
"--control_count": options.length,
|
|
2235
2401
|
"--control_selected-index": Math.max(0, selectedIndex)
|
|
@@ -2244,7 +2410,7 @@ function SegmentedControl({
|
|
|
2244
2410
|
"label",
|
|
2245
2411
|
{
|
|
2246
2412
|
htmlFor: id,
|
|
2247
|
-
className:
|
|
2413
|
+
className: cn42(SegmentedControl_default.item, isChecked && SegmentedControl_default["--active"], isDisabled && SegmentedControl_default["--disabled"]),
|
|
2248
2414
|
children: [
|
|
2249
2415
|
/* @__PURE__ */ jsx42(
|
|
2250
2416
|
"input",
|
|
@@ -2272,13 +2438,13 @@ function SegmentedControl({
|
|
|
2272
2438
|
}
|
|
2273
2439
|
|
|
2274
2440
|
// src/components/interaction/form/Select/Select.tsx
|
|
2275
|
-
import { useId as
|
|
2441
|
+
import { useId as useId20 } from "react";
|
|
2276
2442
|
|
|
2277
2443
|
// src/components/interaction/form/Select/Select.module.css
|
|
2278
|
-
var Select_default = {"formGroup":"
|
|
2444
|
+
var Select_default = {"formGroup":"bds111Select-formGroup","selectWrapper":"bds111Select-selectWrapper","select":"bds111Select-select","selectError":"bds111Select-selectError","chevron":"bds111Select-chevron"};
|
|
2279
2445
|
|
|
2280
2446
|
// src/components/interaction/form/Select/Select.tsx
|
|
2281
|
-
import { cn as
|
|
2447
|
+
import { cn as cn43 } from "@boostdev/design-system-foundation";
|
|
2282
2448
|
import { jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2283
2449
|
function Select({
|
|
2284
2450
|
label,
|
|
@@ -2291,11 +2457,11 @@ function Select({
|
|
|
2291
2457
|
required,
|
|
2292
2458
|
...props
|
|
2293
2459
|
}) {
|
|
2294
|
-
const id = name +
|
|
2460
|
+
const id = name + useId20();
|
|
2295
2461
|
const hintId = id + "hint";
|
|
2296
2462
|
const errorId = id + "error";
|
|
2297
2463
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2298
|
-
return /* @__PURE__ */ jsxs32(InputContainer, { className:
|
|
2464
|
+
return /* @__PURE__ */ jsxs32(InputContainer, { className: cn43(Select_default.formGroup, className), children: [
|
|
2299
2465
|
/* @__PURE__ */ jsx43(Label, { id, label }),
|
|
2300
2466
|
/* @__PURE__ */ jsxs32("div", { className: Select_default.selectWrapper, children: [
|
|
2301
2467
|
/* @__PURE__ */ jsxs32(
|
|
@@ -2307,7 +2473,7 @@ function Select({
|
|
|
2307
2473
|
"aria-required": required || void 0,
|
|
2308
2474
|
"aria-describedby": describedBy,
|
|
2309
2475
|
required,
|
|
2310
|
-
className:
|
|
2476
|
+
className: cn43(Select_default.select, error ? Select_default.selectError : void 0),
|
|
2311
2477
|
...props,
|
|
2312
2478
|
children: [
|
|
2313
2479
|
placeholder && /* @__PURE__ */ jsx43("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
@@ -2323,13 +2489,13 @@ function Select({
|
|
|
2323
2489
|
}
|
|
2324
2490
|
|
|
2325
2491
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2326
|
-
import { useId as
|
|
2492
|
+
import { useId as useId21, useState as useState13 } from "react";
|
|
2327
2493
|
|
|
2328
2494
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2329
|
-
var Slider_default = {"formGroup":"
|
|
2495
|
+
var Slider_default = {"formGroup":"bds111Slider-formGroup","labelRow":"bds111Slider-labelRow","value":"bds111Slider-value","slider":"bds111Slider-slider","sliderError":"bds111Slider-sliderError"};
|
|
2330
2496
|
|
|
2331
2497
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2332
|
-
import { cn as
|
|
2498
|
+
import { cn as cn44 } from "@boostdev/design-system-foundation";
|
|
2333
2499
|
import { jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2334
2500
|
function Slider({
|
|
2335
2501
|
label,
|
|
@@ -2343,7 +2509,7 @@ function Slider({
|
|
|
2343
2509
|
onChange,
|
|
2344
2510
|
...props
|
|
2345
2511
|
}) {
|
|
2346
|
-
const id = name +
|
|
2512
|
+
const id = name + useId21();
|
|
2347
2513
|
const hintId = id + "hint";
|
|
2348
2514
|
const errorId = id + "error";
|
|
2349
2515
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2355,7 +2521,7 @@ function Slider({
|
|
|
2355
2521
|
if (!isControlled) setInternalValue(Number(e.target.value));
|
|
2356
2522
|
onChange?.(e);
|
|
2357
2523
|
};
|
|
2358
|
-
return /* @__PURE__ */ jsxs33(InputContainer, { className:
|
|
2524
|
+
return /* @__PURE__ */ jsxs33(InputContainer, { className: cn44(Slider_default.formGroup, className), children: [
|
|
2359
2525
|
/* @__PURE__ */ jsxs33("div", { className: Slider_default.labelRow, children: [
|
|
2360
2526
|
/* @__PURE__ */ jsx44(Label, { id, label }),
|
|
2361
2527
|
showValue && /* @__PURE__ */ jsx44("span", { className: Slider_default.value, children: currentValue })
|
|
@@ -2373,7 +2539,7 @@ function Slider({
|
|
|
2373
2539
|
"aria-valuemax": max,
|
|
2374
2540
|
"aria-valuenow": currentValue,
|
|
2375
2541
|
"aria-valuetext": String(currentValue),
|
|
2376
|
-
className:
|
|
2542
|
+
className: cn44(Slider_default.slider, error ? Slider_default.sliderError : void 0),
|
|
2377
2543
|
style: { "--slider_fill": `${fillPct}%` },
|
|
2378
2544
|
onChange: handleChange,
|
|
2379
2545
|
...props
|
|
@@ -2385,13 +2551,13 @@ function Slider({
|
|
|
2385
2551
|
}
|
|
2386
2552
|
|
|
2387
2553
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2388
|
-
import { useId as
|
|
2554
|
+
import { useId as useId22 } from "react";
|
|
2389
2555
|
|
|
2390
2556
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2391
|
-
var Switch_default = {"switchGroup":"
|
|
2557
|
+
var Switch_default = {"switchGroup":"bds111Switch-switchGroup","--size_small":"bds111Switch---size_small","--size_medium":"bds111Switch---size_medium","--size_large":"bds111Switch---size_large","inputWrapper":"bds111Switch-inputWrapper","trackWrapper":"bds111Switch-trackWrapper","switch":"bds111Switch-switch","track":"bds111Switch-track","thumb":"bds111Switch-thumb","switchError":"bds111Switch-switchError"};
|
|
2392
2558
|
|
|
2393
2559
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2394
|
-
import { cn as
|
|
2560
|
+
import { cn as cn45 } from "@boostdev/design-system-foundation";
|
|
2395
2561
|
import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2396
2562
|
function Switch({
|
|
2397
2563
|
label,
|
|
@@ -2403,11 +2569,11 @@ function Switch({
|
|
|
2403
2569
|
prefix,
|
|
2404
2570
|
...props
|
|
2405
2571
|
}) {
|
|
2406
|
-
const id = name +
|
|
2572
|
+
const id = name + useId22();
|
|
2407
2573
|
const hintId = id + "hint";
|
|
2408
2574
|
const errorId = id + "error";
|
|
2409
2575
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2410
|
-
return /* @__PURE__ */ jsxs34(InputContainer, { className:
|
|
2576
|
+
return /* @__PURE__ */ jsxs34(InputContainer, { className: cn45(Switch_default.switchGroup, Switch_default[`--size_${size}`], className), children: [
|
|
2411
2577
|
/* @__PURE__ */ jsxs34("div", { className: Switch_default.inputWrapper, children: [
|
|
2412
2578
|
prefix && /* @__PURE__ */ jsx45("span", { children: prefix }),
|
|
2413
2579
|
/* @__PURE__ */ jsxs34("div", { className: Switch_default.trackWrapper, children: [
|
|
@@ -2419,7 +2585,7 @@ function Switch({
|
|
|
2419
2585
|
id,
|
|
2420
2586
|
name,
|
|
2421
2587
|
"aria-describedby": describedBy,
|
|
2422
|
-
className:
|
|
2588
|
+
className: cn45(Switch_default.switch, error ? Switch_default.switchError : void 0),
|
|
2423
2589
|
...props
|
|
2424
2590
|
}
|
|
2425
2591
|
),
|
|
@@ -2433,13 +2599,13 @@ function Switch({
|
|
|
2433
2599
|
}
|
|
2434
2600
|
|
|
2435
2601
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2436
|
-
import { useId as
|
|
2602
|
+
import { useId as useId23 } from "react";
|
|
2437
2603
|
|
|
2438
2604
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2439
|
-
var Textarea_default = {"formGroup":"
|
|
2605
|
+
var Textarea_default = {"formGroup":"bds111Textarea-formGroup","textarea":"bds111Textarea-textarea","textareaError":"bds111Textarea-textareaError"};
|
|
2440
2606
|
|
|
2441
2607
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2442
|
-
import { cn as
|
|
2608
|
+
import { cn as cn46 } from "@boostdev/design-system-foundation";
|
|
2443
2609
|
import { jsx as jsx46, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2444
2610
|
function Textarea({
|
|
2445
2611
|
label,
|
|
@@ -2450,11 +2616,11 @@ function Textarea({
|
|
|
2450
2616
|
required,
|
|
2451
2617
|
...props
|
|
2452
2618
|
}) {
|
|
2453
|
-
const id = name +
|
|
2619
|
+
const id = name + useId23();
|
|
2454
2620
|
const hintId = id + "hint";
|
|
2455
2621
|
const errorId = id + "error";
|
|
2456
2622
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2457
|
-
return /* @__PURE__ */ jsxs35(InputContainer, { className:
|
|
2623
|
+
return /* @__PURE__ */ jsxs35(InputContainer, { className: cn46(Textarea_default.formGroup, className), children: [
|
|
2458
2624
|
/* @__PURE__ */ jsx46(Label, { id, label }),
|
|
2459
2625
|
/* @__PURE__ */ jsx46(
|
|
2460
2626
|
"textarea",
|
|
@@ -2465,7 +2631,7 @@ function Textarea({
|
|
|
2465
2631
|
"aria-describedby": describedBy,
|
|
2466
2632
|
"aria-required": required || void 0,
|
|
2467
2633
|
required,
|
|
2468
|
-
className:
|
|
2634
|
+
className: cn46(Textarea_default.textarea, error ? Textarea_default.textareaError : void 0),
|
|
2469
2635
|
...props
|
|
2470
2636
|
}
|
|
2471
2637
|
),
|
|
@@ -2475,10 +2641,10 @@ function Textarea({
|
|
|
2475
2641
|
}
|
|
2476
2642
|
|
|
2477
2643
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2478
|
-
var ButtonGroup_default = {"buttonGroup":"
|
|
2644
|
+
var ButtonGroup_default = {"buttonGroup":"bds111ButtonGroup-buttonGroup","container":"bds111ButtonGroup-container","--variant_card":"bds111ButtonGroup---variant_card","--variant_flow":"bds111ButtonGroup---variant_flow","--variant_modal":"bds111ButtonGroup---variant_modal","--variant_content":"bds111ButtonGroup---variant_content","--variant_grid":"bds111ButtonGroup---variant_grid"};
|
|
2479
2645
|
|
|
2480
2646
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2481
|
-
import { cn as
|
|
2647
|
+
import { cn as cn47 } from "@boostdev/design-system-foundation";
|
|
2482
2648
|
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
2483
2649
|
function ButtonGroup({ children, className, variant, "aria-label": ariaLabel }) {
|
|
2484
2650
|
return /* @__PURE__ */ jsx47(
|
|
@@ -2486,17 +2652,17 @@ function ButtonGroup({ children, className, variant, "aria-label": ariaLabel })
|
|
|
2486
2652
|
{
|
|
2487
2653
|
role: "group",
|
|
2488
2654
|
"aria-label": ariaLabel,
|
|
2489
|
-
className:
|
|
2655
|
+
className: cn47(ButtonGroup_default.buttonGroup, className, variant && ButtonGroup_default[`--variant_${variant}`]),
|
|
2490
2656
|
children: /* @__PURE__ */ jsx47("div", { className: ButtonGroup_default.container, children })
|
|
2491
2657
|
}
|
|
2492
2658
|
);
|
|
2493
2659
|
}
|
|
2494
2660
|
|
|
2495
2661
|
// src/components/layout/Card/Card.module.css
|
|
2496
|
-
var Card_default = {"card":"
|
|
2662
|
+
var Card_default = {"card":"bds111Card-card","--default":"bds111Card---default","--elevated":"bds111Card---elevated","--outlined":"bds111Card---outlined","--clickable":"bds111Card---clickable","--padding-none":"bds111Card---padding-none","--padding-small":"bds111Card---padding-small","--padding-medium":"bds111Card---padding-medium","--padding-large":"bds111Card---padding-large","--text-start":"bds111Card---text-start","--text-center":"bds111Card---text-center","--text-end":"bds111Card---text-end"};
|
|
2497
2663
|
|
|
2498
2664
|
// src/components/layout/Card/Card.tsx
|
|
2499
|
-
import { cn as
|
|
2665
|
+
import { cn as cn48 } from "@boostdev/design-system-foundation";
|
|
2500
2666
|
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2501
2667
|
function Card({
|
|
2502
2668
|
children,
|
|
@@ -2508,7 +2674,7 @@ function Card({
|
|
|
2508
2674
|
onClick,
|
|
2509
2675
|
"aria-label": ariaLabel
|
|
2510
2676
|
}) {
|
|
2511
|
-
const classNames =
|
|
2677
|
+
const classNames = cn48(
|
|
2512
2678
|
Card_default.card,
|
|
2513
2679
|
Card_default[`--${variant}`],
|
|
2514
2680
|
Card_default[`--padding-${padding}`],
|
|
@@ -2531,10 +2697,10 @@ function Card({
|
|
|
2531
2697
|
}
|
|
2532
2698
|
|
|
2533
2699
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2534
|
-
var SectionHeader_default = {"sectionHeader":"
|
|
2700
|
+
var SectionHeader_default = {"sectionHeader":"bds111SectionHeader-sectionHeader","title":"bds111SectionHeader-title","subtitle":"bds111SectionHeader-subtitle","--start":"bds111SectionHeader---start","--center":"bds111SectionHeader---center","--end":"bds111SectionHeader---end","--small":"bds111SectionHeader---small","--medium":"bds111SectionHeader---medium","--large":"bds111SectionHeader---large"};
|
|
2535
2701
|
|
|
2536
2702
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2537
|
-
import { cn as
|
|
2703
|
+
import { cn as cn49 } from "@boostdev/design-system-foundation";
|
|
2538
2704
|
import { jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2539
2705
|
function SectionHeader({
|
|
2540
2706
|
title,
|
|
@@ -2545,24 +2711,24 @@ function SectionHeader({
|
|
|
2545
2711
|
titleAs = "h2"
|
|
2546
2712
|
}) {
|
|
2547
2713
|
const Title = titleAs;
|
|
2548
|
-
return /* @__PURE__ */ jsxs36("div", { className:
|
|
2714
|
+
return /* @__PURE__ */ jsxs36("div", { className: cn49(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], className), children: [
|
|
2549
2715
|
/* @__PURE__ */ jsx49(Title, { className: SectionHeader_default.title, children: title }),
|
|
2550
2716
|
subtitle && /* @__PURE__ */ jsx49("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
2551
2717
|
] });
|
|
2552
2718
|
}
|
|
2553
2719
|
|
|
2554
2720
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2555
|
-
var IconWrapper_default = {"wrapper":"
|
|
2721
|
+
var IconWrapper_default = {"wrapper":"bds111IconWrapper-wrapper"};
|
|
2556
2722
|
|
|
2557
2723
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2558
|
-
import { cn as
|
|
2724
|
+
import { cn as cn50 } from "@boostdev/design-system-foundation";
|
|
2559
2725
|
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
2560
2726
|
function IconWrapper({ children, className, "aria-hidden": ariaHidden }) {
|
|
2561
|
-
return /* @__PURE__ */ jsx50("div", { className:
|
|
2727
|
+
return /* @__PURE__ */ jsx50("div", { className: cn50(className, IconWrapper_default.wrapper), "aria-hidden": ariaHidden, children });
|
|
2562
2728
|
}
|
|
2563
2729
|
|
|
2564
2730
|
// src/index.ts
|
|
2565
|
-
import { cn as
|
|
2731
|
+
import { cn as cn51 } from "@boostdev/design-system-foundation";
|
|
2566
2732
|
export {
|
|
2567
2733
|
Accordion,
|
|
2568
2734
|
Alert,
|
|
@@ -2611,6 +2777,6 @@ export {
|
|
|
2611
2777
|
ToastProvider,
|
|
2612
2778
|
Tooltip,
|
|
2613
2779
|
Typography,
|
|
2614
|
-
|
|
2780
|
+
cn51 as cn,
|
|
2615
2781
|
useToast
|
|
2616
2782
|
};
|