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