@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.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/index.ts
|
|
@@ -67,7 +77,7 @@ __export(index_exports, {
|
|
|
67
77
|
ToastProvider: () => ToastProvider,
|
|
68
78
|
Tooltip: () => Tooltip,
|
|
69
79
|
Typography: () => Typography,
|
|
70
|
-
cn: () =>
|
|
80
|
+
cn: () => import_design_system_foundation51.cn,
|
|
71
81
|
useToast: () => useToast
|
|
72
82
|
});
|
|
73
83
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -76,7 +86,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
76
86
|
var import_react = require("react");
|
|
77
87
|
|
|
78
88
|
// src/components/ui/Accordion/Accordion.module.css
|
|
79
|
-
var Accordion_default = {"accordion":"
|
|
89
|
+
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"};
|
|
80
90
|
|
|
81
91
|
// src/components/ui/Accordion/Accordion.tsx
|
|
82
92
|
var import_design_system_foundation = require("@boostdev/design-system-foundation");
|
|
@@ -144,7 +154,7 @@ function Accordion({
|
|
|
144
154
|
}
|
|
145
155
|
|
|
146
156
|
// src/components/ui/Alert/Alert.module.css
|
|
147
|
-
var Alert_default = {"alert":"
|
|
157
|
+
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"};
|
|
148
158
|
|
|
149
159
|
// src/components/ui/Alert/Alert.tsx
|
|
150
160
|
var import_design_system_foundation2 = require("@boostdev/design-system-foundation");
|
|
@@ -187,7 +197,7 @@ function Alert({
|
|
|
187
197
|
}
|
|
188
198
|
|
|
189
199
|
// src/components/ui/Avatar/Avatar.module.css
|
|
190
|
-
var Avatar_default = {"avatar":"
|
|
200
|
+
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"};
|
|
191
201
|
|
|
192
202
|
// src/components/ui/Avatar/Avatar.tsx
|
|
193
203
|
var import_design_system_foundation3 = require("@boostdev/design-system-foundation");
|
|
@@ -213,7 +223,7 @@ function Avatar({ src, alt, name, size = "medium", className }) {
|
|
|
213
223
|
}
|
|
214
224
|
|
|
215
225
|
// src/components/ui/Badge/Badge.module.css
|
|
216
|
-
var Badge_default = {"badge":"
|
|
226
|
+
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"};
|
|
217
227
|
|
|
218
228
|
// src/components/ui/Badge/Badge.tsx
|
|
219
229
|
var import_design_system_foundation4 = require("@boostdev/design-system-foundation");
|
|
@@ -223,7 +233,7 @@ function Badge({ children, variant = "primary", className }) {
|
|
|
223
233
|
}
|
|
224
234
|
|
|
225
235
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
226
|
-
var Breadcrumb_default = {"breadcrumb":"
|
|
236
|
+
var Breadcrumb_default = {"breadcrumb":"bds111Breadcrumb-breadcrumb","list":"bds111Breadcrumb-list","item":"bds111Breadcrumb-item","link":"bds111Breadcrumb-link","separator":"bds111Breadcrumb-separator","current":"bds111Breadcrumb-current"};
|
|
227
237
|
|
|
228
238
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
229
239
|
var import_design_system_foundation5 = require("@boostdev/design-system-foundation");
|
|
@@ -239,7 +249,7 @@ function Breadcrumb({ items, className }) {
|
|
|
239
249
|
}
|
|
240
250
|
|
|
241
251
|
// src/components/ui/Collapsible/Collapsible.module.css
|
|
242
|
-
var Collapsible_default = {"collapsible":"
|
|
252
|
+
var Collapsible_default = {"collapsible":"bds111Collapsible-collapsible","summary":"bds111Collapsible-summary","summaryContent":"bds111Collapsible-summaryContent","icon":"bds111Collapsible-icon","content":"bds111Collapsible-content"};
|
|
243
253
|
|
|
244
254
|
// src/components/ui/Collapsible/Collapsible.tsx
|
|
245
255
|
var import_design_system_foundation6 = require("@boostdev/design-system-foundation");
|
|
@@ -280,7 +290,7 @@ function Collapsible({
|
|
|
280
290
|
var import_react2 = require("react");
|
|
281
291
|
|
|
282
292
|
// src/components/ui/Calendar/Calendar.module.css
|
|
283
|
-
var Calendar_default = {"calendar":"
|
|
293
|
+
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"};
|
|
284
294
|
|
|
285
295
|
// src/components/ui/Calendar/Calendar.tsx
|
|
286
296
|
var import_design_system_foundation7 = require("@boostdev/design-system-foundation");
|
|
@@ -455,7 +465,7 @@ function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
|
455
465
|
var import_react3 = require("react");
|
|
456
466
|
|
|
457
467
|
// src/components/ui/Carousel/Carousel.module.css
|
|
458
|
-
var Carousel_default = {"carousel":"
|
|
468
|
+
var Carousel_default = {"carousel":"bds111Carousel-carousel","track":"bds111Carousel-track","slide":"bds111Carousel-slide","navBtn":"bds111Carousel-navBtn"};
|
|
459
469
|
|
|
460
470
|
// src/components/ui/Carousel/Carousel.tsx
|
|
461
471
|
var import_design_system_foundation8 = require("@boostdev/design-system-foundation");
|
|
@@ -508,7 +518,7 @@ function Carousel({ items, label, className }) {
|
|
|
508
518
|
}
|
|
509
519
|
|
|
510
520
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
511
|
-
var DescriptionList_default = {"list":"
|
|
521
|
+
var DescriptionList_default = {"list":"bds111DescriptionList-list","group":"bds111DescriptionList-group","term":"bds111DescriptionList-term","details":"bds111DescriptionList-details","--layout_inline":"bds111DescriptionList---layout_inline"};
|
|
512
522
|
|
|
513
523
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
514
524
|
var import_design_system_foundation9 = require("@boostdev/design-system-foundation");
|
|
@@ -521,7 +531,7 @@ function DescriptionList({ items, layout = "stacked", className }) {
|
|
|
521
531
|
}
|
|
522
532
|
|
|
523
533
|
// src/components/ui/Link/Link.module.css
|
|
524
|
-
var Link_default = {"link":"
|
|
534
|
+
var Link_default = {"link":"bds111Link-link","--variant_default":"bds111Link---variant_default","--variant_subtle":"bds111Link---variant_subtle","--variant_standalone":"bds111Link---variant_standalone","externalLabel":"bds111Link-externalLabel"};
|
|
525
535
|
|
|
526
536
|
// src/components/ui/Link/Link.tsx
|
|
527
537
|
var import_design_system_foundation10 = require("@boostdev/design-system-foundation");
|
|
@@ -552,7 +562,7 @@ function Link({
|
|
|
552
562
|
}
|
|
553
563
|
|
|
554
564
|
// src/components/ui/Loading/Loading.module.css
|
|
555
|
-
var Loading_default = {"loading":"
|
|
565
|
+
var Loading_default = {"loading":"bds111Loading-loading","spinner":"bds111Loading-spinner","--size_small":"bds111Loading---size_small","--size_large":"bds111Loading---size_large"};
|
|
556
566
|
|
|
557
567
|
// src/components/ui/Loading/Loading.tsx
|
|
558
568
|
var import_design_system_foundation11 = require("@boostdev/design-system-foundation");
|
|
@@ -562,7 +572,7 @@ function Loading({ size = "medium", className }) {
|
|
|
562
572
|
}
|
|
563
573
|
|
|
564
574
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
565
|
-
var NotificationBanner_default = {"banner":"
|
|
575
|
+
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"};
|
|
566
576
|
|
|
567
577
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
568
578
|
var import_design_system_foundation12 = require("@boostdev/design-system-foundation");
|
|
@@ -601,7 +611,7 @@ function NotificationBanner({
|
|
|
601
611
|
}
|
|
602
612
|
|
|
603
613
|
// src/components/ui/Pagination/Pagination.module.css
|
|
604
|
-
var Pagination_default = {"pagination":"
|
|
614
|
+
var Pagination_default = {"pagination":"bds111Pagination-pagination","list":"bds111Pagination-list","button":"bds111Pagination-button","--active":"bds111Pagination---active","--nav":"bds111Pagination---nav","ellipsis":"bds111Pagination-ellipsis"};
|
|
605
615
|
|
|
606
616
|
// src/components/ui/Pagination/Pagination.tsx
|
|
607
617
|
var import_design_system_foundation13 = require("@boostdev/design-system-foundation");
|
|
@@ -665,7 +675,7 @@ function Pagination({
|
|
|
665
675
|
}
|
|
666
676
|
|
|
667
677
|
// src/components/ui/Progress/Progress.module.css
|
|
668
|
-
var Progress_default = {"container":"
|
|
678
|
+
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"};
|
|
669
679
|
|
|
670
680
|
// src/components/ui/Progress/Progress.tsx
|
|
671
681
|
var import_design_system_foundation14 = require("@boostdev/design-system-foundation");
|
|
@@ -703,7 +713,7 @@ function Progress({
|
|
|
703
713
|
}
|
|
704
714
|
|
|
705
715
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
706
|
-
var ProgressCircle_default = {"wrapper":"
|
|
716
|
+
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"};
|
|
707
717
|
|
|
708
718
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
709
719
|
var import_design_system_foundation15 = require("@boostdev/design-system-foundation");
|
|
@@ -782,7 +792,7 @@ function ProgressCircle({
|
|
|
782
792
|
}
|
|
783
793
|
|
|
784
794
|
// src/components/ui/Separator/Separator.module.css
|
|
785
|
-
var Separator_default = {"separator":"
|
|
795
|
+
var Separator_default = {"separator":"bds111Separator-separator","--horizontal":"bds111Separator---horizontal","--vertical":"bds111Separator---vertical"};
|
|
786
796
|
|
|
787
797
|
// src/components/ui/Separator/Separator.tsx
|
|
788
798
|
var import_design_system_foundation16 = require("@boostdev/design-system-foundation");
|
|
@@ -805,7 +815,7 @@ function Separator({ orientation = "horizontal", className }) {
|
|
|
805
815
|
var import_design_system_foundation17 = require("@boostdev/design-system-foundation");
|
|
806
816
|
|
|
807
817
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
808
|
-
var Skeleton_default = {"skeleton":"
|
|
818
|
+
var Skeleton_default = {"skeleton":"bds111Skeleton-skeleton"};
|
|
809
819
|
|
|
810
820
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
811
821
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
@@ -814,19 +824,20 @@ function Skeleton({ className }) {
|
|
|
814
824
|
}
|
|
815
825
|
|
|
816
826
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
817
|
-
var SkipLink_default = {"skipLink":"
|
|
827
|
+
var SkipLink_default = {"skipLink":"bds111SkipLink-skipLink"};
|
|
818
828
|
|
|
819
829
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
830
|
+
var import_design_system_foundation18 = require("@boostdev/design-system-foundation");
|
|
820
831
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
821
|
-
function SkipLink({ href = "#main", children = "Skip to main content" }) {
|
|
822
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("a", { href, className: SkipLink_default.skipLink, children });
|
|
832
|
+
function SkipLink({ href = "#main", children = "Skip to main content", className }) {
|
|
833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("a", { href, className: (0, import_design_system_foundation18.cn)(SkipLink_default.skipLink, className), children });
|
|
823
834
|
}
|
|
824
835
|
|
|
825
836
|
// src/components/ui/Table/Table.module.css
|
|
826
|
-
var Table_default = {"wrapper":"
|
|
837
|
+
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"};
|
|
827
838
|
|
|
828
839
|
// src/components/ui/Table/Table.tsx
|
|
829
|
-
var
|
|
840
|
+
var import_design_system_foundation19 = require("@boostdev/design-system-foundation");
|
|
830
841
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
831
842
|
function Table({
|
|
832
843
|
columns,
|
|
@@ -846,14 +857,14 @@ function Table({
|
|
|
846
857
|
if (sortKey !== key) return "none";
|
|
847
858
|
return sortDirection === "asc" ? "ascending" : "descending";
|
|
848
859
|
};
|
|
849
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0,
|
|
860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0, import_design_system_foundation19.cn)(Table_default.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("table", { className: Table_default.table, children: [
|
|
850
861
|
caption && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("caption", { className: Table_default.caption, children: caption }),
|
|
851
862
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("thead", { className: Table_default.thead, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("tr", { children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
852
863
|
"th",
|
|
853
864
|
{
|
|
854
865
|
scope: "col",
|
|
855
866
|
"aria-sort": col.sortable ? getAriaSort(col.key) : void 0,
|
|
856
|
-
className: (0,
|
|
867
|
+
className: (0, import_design_system_foundation19.cn)(Table_default.th, col.sortable ? Table_default["--sortable"] : void 0),
|
|
857
868
|
children: col.sortable ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
858
869
|
"button",
|
|
859
870
|
{
|
|
@@ -867,7 +878,7 @@ function Table({
|
|
|
867
878
|
"svg",
|
|
868
879
|
{
|
|
869
880
|
"aria-hidden": "true",
|
|
870
|
-
className: (0,
|
|
881
|
+
className: (0, import_design_system_foundation19.cn)(
|
|
871
882
|
Table_default.sortIcon,
|
|
872
883
|
sortKey === col.key ? Table_default["--sort-active"] : void 0,
|
|
873
884
|
sortKey === col.key && sortDirection === "desc" ? Table_default["--sort-desc"] : void 0
|
|
@@ -893,10 +904,10 @@ function Table({
|
|
|
893
904
|
var import_react4 = require("react");
|
|
894
905
|
|
|
895
906
|
// src/components/ui/Tabs/Tabs.module.css
|
|
896
|
-
var Tabs_default = {"tabs":"
|
|
907
|
+
var Tabs_default = {"tabs":"bds111Tabs-tabs","tabList":"bds111Tabs-tabList","tab":"bds111Tabs-tab","--active":"bds111Tabs---active","panel":"bds111Tabs-panel"};
|
|
897
908
|
|
|
898
909
|
// src/components/ui/Tabs/Tabs.tsx
|
|
899
|
-
var
|
|
910
|
+
var import_design_system_foundation20 = require("@boostdev/design-system-foundation");
|
|
900
911
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
901
912
|
function Tabs({ tabs, defaultTab, className }) {
|
|
902
913
|
const baseId = (0, import_react4.useId)();
|
|
@@ -923,7 +934,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
923
934
|
focusAt(enabledIndexes[enabledIndexes.length - 1]);
|
|
924
935
|
}
|
|
925
936
|
};
|
|
926
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0,
|
|
937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0, import_design_system_foundation20.cn)(Tabs_default.tabs, className), children: [
|
|
927
938
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { role: "tablist", className: Tabs_default.tabList, children: tabs.map((tab, i) => {
|
|
928
939
|
const tabId = `${baseId}-tab-${tab.id}`;
|
|
929
940
|
const panelId = `${baseId}-panel-${tab.id}`;
|
|
@@ -941,7 +952,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
941
952
|
"aria-controls": panelId,
|
|
942
953
|
tabIndex: isActive ? 0 : -1,
|
|
943
954
|
disabled: tab.disabled,
|
|
944
|
-
className: (0,
|
|
955
|
+
className: (0, import_design_system_foundation20.cn)(Tabs_default.tab, isActive ? Tabs_default["--active"] : void 0),
|
|
945
956
|
onClick: () => setActiveTab(tab.id),
|
|
946
957
|
onKeyDown: (e) => handleKeyDown(e, i),
|
|
947
958
|
children: tab.label
|
|
@@ -973,10 +984,10 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
973
984
|
var import_react5 = require("react");
|
|
974
985
|
|
|
975
986
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
976
|
-
var Tooltip_default = {"wrapper":"
|
|
987
|
+
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"};
|
|
977
988
|
|
|
978
989
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
979
|
-
var
|
|
990
|
+
var import_design_system_foundation21 = require("@boostdev/design-system-foundation");
|
|
980
991
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
981
992
|
function Tooltip({
|
|
982
993
|
content,
|
|
@@ -992,7 +1003,7 @@ function Tooltip({
|
|
|
992
1003
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
993
1004
|
"span",
|
|
994
1005
|
{
|
|
995
|
-
className: (0,
|
|
1006
|
+
className: (0, import_design_system_foundation21.cn)(Tooltip_default.wrapper, className),
|
|
996
1007
|
onMouseEnter: () => setIsVisible(true),
|
|
997
1008
|
onMouseLeave: () => setIsVisible(false),
|
|
998
1009
|
onFocus: () => setIsVisible(true),
|
|
@@ -1005,7 +1016,7 @@ function Tooltip({
|
|
|
1005
1016
|
id: tooltipId,
|
|
1006
1017
|
role: "tooltip",
|
|
1007
1018
|
"aria-hidden": !isVisible,
|
|
1008
|
-
className: (0,
|
|
1019
|
+
className: (0, import_design_system_foundation21.cn)(Tooltip_default.tooltip, Tooltip_default[`--placement_${placement}`]),
|
|
1009
1020
|
children: content
|
|
1010
1021
|
}
|
|
1011
1022
|
)
|
|
@@ -1015,10 +1026,10 @@ function Tooltip({
|
|
|
1015
1026
|
}
|
|
1016
1027
|
|
|
1017
1028
|
// src/components/ui/Typography/Typography.module.css
|
|
1018
|
-
var Typography_default = {"typography":"
|
|
1029
|
+
var Typography_default = {"typography":"bds111Typography-typography","--h1":"bds111Typography---h1","--h2":"bds111Typography---h2","--h3":"bds111Typography---h3","--body":"bds111Typography---body","--body_s":"bds111Typography---body_s"};
|
|
1019
1030
|
|
|
1020
1031
|
// src/components/ui/Typography/Typography.tsx
|
|
1021
|
-
var
|
|
1032
|
+
var import_design_system_foundation22 = require("@boostdev/design-system-foundation");
|
|
1022
1033
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1023
1034
|
var variantToElement = {
|
|
1024
1035
|
h1: "h1",
|
|
@@ -1029,14 +1040,14 @@ var variantToElement = {
|
|
|
1029
1040
|
};
|
|
1030
1041
|
function Typography({ variant = "body", component, children, className }) {
|
|
1031
1042
|
const Component = component || variantToElement[variant];
|
|
1032
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Component, { className: (0,
|
|
1043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Component, { className: (0, import_design_system_foundation22.cn)(Typography_default.typography, Typography_default[`--${variant}`], className), children });
|
|
1033
1044
|
}
|
|
1034
1045
|
|
|
1035
1046
|
// src/components/interaction/Button/Button.module.css
|
|
1036
|
-
var Button_default = {"button":"
|
|
1047
|
+
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"};
|
|
1037
1048
|
|
|
1038
1049
|
// src/components/interaction/Button/Button.tsx
|
|
1039
|
-
var
|
|
1050
|
+
var import_design_system_foundation23 = require("@boostdev/design-system-foundation");
|
|
1040
1051
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1041
1052
|
function Button({
|
|
1042
1053
|
children,
|
|
@@ -1054,7 +1065,7 @@ function Button({
|
|
|
1054
1065
|
onClick,
|
|
1055
1066
|
...rest
|
|
1056
1067
|
}) {
|
|
1057
|
-
const classNames = (0,
|
|
1068
|
+
const classNames = (0, import_design_system_foundation23.cn)(
|
|
1058
1069
|
Button_default.button,
|
|
1059
1070
|
Button_default[`--${variant}`],
|
|
1060
1071
|
Button_default[`--size_${size}`],
|
|
@@ -1108,14 +1119,56 @@ function Button({
|
|
|
1108
1119
|
// src/components/interaction/Command/Command.tsx
|
|
1109
1120
|
var import_react6 = require("react");
|
|
1110
1121
|
|
|
1122
|
+
// src/polyfill-invoker-commands.ts
|
|
1123
|
+
var installed = false;
|
|
1124
|
+
function installInvokerCommandsPolyfill() {
|
|
1125
|
+
if (installed) return;
|
|
1126
|
+
if (typeof window === "undefined") return;
|
|
1127
|
+
if ("command" in HTMLButtonElement.prototype) return;
|
|
1128
|
+
installed = true;
|
|
1129
|
+
document.addEventListener("click", (e) => {
|
|
1130
|
+
const button = e.target?.closest("button[commandfor]");
|
|
1131
|
+
if (!button) return;
|
|
1132
|
+
const targetId = button.getAttribute("commandfor");
|
|
1133
|
+
const command = button.getAttribute("command");
|
|
1134
|
+
if (!targetId || !command) return;
|
|
1135
|
+
const target = document.getElementById(targetId);
|
|
1136
|
+
if (!target) return;
|
|
1137
|
+
const commandEvent = new Event("command", { cancelable: true, bubbles: false });
|
|
1138
|
+
Object.defineProperty(commandEvent, "command", { value: command, configurable: true });
|
|
1139
|
+
Object.defineProperty(commandEvent, "source", { value: button, configurable: true });
|
|
1140
|
+
const notCancelled = target.dispatchEvent(commandEvent);
|
|
1141
|
+
if (!notCancelled) return;
|
|
1142
|
+
if (target instanceof HTMLDialogElement) {
|
|
1143
|
+
if (command === "show-modal" && !target.open) {
|
|
1144
|
+
target.showModal();
|
|
1145
|
+
} else if (command === "close" && target.open) {
|
|
1146
|
+
target.close();
|
|
1147
|
+
}
|
|
1148
|
+
} else if (target.hasAttribute("popover") && "showPopover" in target) {
|
|
1149
|
+
const popover = target;
|
|
1150
|
+
if (command === "toggle-popover") {
|
|
1151
|
+
popover.togglePopover();
|
|
1152
|
+
} else if (command === "show-popover") {
|
|
1153
|
+
popover.showPopover();
|
|
1154
|
+
} else if (command === "hide-popover") {
|
|
1155
|
+
popover.hidePopover();
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1111
1161
|
// src/components/interaction/Command/Command.module.css
|
|
1112
|
-
var Command_default = {"dialog":"
|
|
1162
|
+
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"};
|
|
1113
1163
|
|
|
1114
1164
|
// src/components/interaction/Command/Command.tsx
|
|
1115
|
-
var
|
|
1165
|
+
var import_design_system_foundation24 = require("@boostdev/design-system-foundation");
|
|
1116
1166
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1167
|
+
installInvokerCommandsPolyfill();
|
|
1117
1168
|
function Command({
|
|
1169
|
+
id: idProp,
|
|
1118
1170
|
isOpen,
|
|
1171
|
+
onOpen,
|
|
1119
1172
|
onClose,
|
|
1120
1173
|
items,
|
|
1121
1174
|
placeholder = "Search commands\u2026",
|
|
@@ -1123,6 +1176,8 @@ function Command({
|
|
|
1123
1176
|
}) {
|
|
1124
1177
|
const [query, setQuery] = (0, import_react6.useState)("");
|
|
1125
1178
|
const [activeIndex, setActiveIndex] = (0, import_react6.useState)(0);
|
|
1179
|
+
const generatedId = (0, import_react6.useId)();
|
|
1180
|
+
const dialogId = idProp ?? generatedId;
|
|
1126
1181
|
const dialogRef = (0, import_react6.useRef)(null);
|
|
1127
1182
|
const inputRef = (0, import_react6.useRef)(null);
|
|
1128
1183
|
const listboxId = (0, import_react6.useId)();
|
|
@@ -1146,14 +1201,14 @@ function Command({
|
|
|
1146
1201
|
(0, import_react6.useEffect)(() => {
|
|
1147
1202
|
const dialog = dialogRef.current;
|
|
1148
1203
|
if (!dialog) return;
|
|
1149
|
-
if (isOpen) {
|
|
1204
|
+
if (isOpen && !dialog.open) {
|
|
1150
1205
|
triggerRef.current = document.activeElement;
|
|
1151
1206
|
dialog.showModal();
|
|
1152
1207
|
document.body.style.overflow = "hidden";
|
|
1153
1208
|
setQuery("");
|
|
1154
1209
|
setActiveIndex(0);
|
|
1155
1210
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
1156
|
-
} else if (dialog.open) {
|
|
1211
|
+
} else if (!isOpen && dialog.open) {
|
|
1157
1212
|
dialog.close();
|
|
1158
1213
|
document.body.style.overflow = "";
|
|
1159
1214
|
triggerRef.current?.focus();
|
|
@@ -1165,6 +1220,27 @@ function Command({
|
|
|
1165
1220
|
(0, import_react6.useEffect)(() => {
|
|
1166
1221
|
setActiveIndex(0);
|
|
1167
1222
|
}, [query]);
|
|
1223
|
+
(0, import_react6.useEffect)(() => {
|
|
1224
|
+
const dialog = dialogRef.current;
|
|
1225
|
+
if (!dialog) return;
|
|
1226
|
+
const handleCommand = (e) => {
|
|
1227
|
+
if (e.command === "show-modal") {
|
|
1228
|
+
triggerRef.current = document.activeElement;
|
|
1229
|
+
document.body.style.overflow = "hidden";
|
|
1230
|
+
setQuery("");
|
|
1231
|
+
setActiveIndex(0);
|
|
1232
|
+
setTimeout(() => inputRef.current?.focus(), 0);
|
|
1233
|
+
onOpen?.();
|
|
1234
|
+
} else if (e.command === "close") {
|
|
1235
|
+
document.body.style.overflow = "";
|
|
1236
|
+
const trigger = triggerRef.current;
|
|
1237
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1238
|
+
onClose();
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1241
|
+
dialog.addEventListener("command", handleCommand);
|
|
1242
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1243
|
+
}, [onOpen, onClose]);
|
|
1168
1244
|
const handleCancel = (e) => {
|
|
1169
1245
|
e.preventDefault();
|
|
1170
1246
|
onClose();
|
|
@@ -1192,7 +1268,8 @@ function Command({
|
|
|
1192
1268
|
"dialog",
|
|
1193
1269
|
{
|
|
1194
1270
|
ref: dialogRef,
|
|
1195
|
-
|
|
1271
|
+
id: dialogId,
|
|
1272
|
+
className: (0, import_design_system_foundation24.cn)(Command_default.dialog, className),
|
|
1196
1273
|
"aria-label": "Command palette",
|
|
1197
1274
|
"aria-modal": "true",
|
|
1198
1275
|
onCancel: handleCancel,
|
|
@@ -1231,7 +1308,7 @@ function Command({
|
|
|
1231
1308
|
id: `cmd-${item.id}`,
|
|
1232
1309
|
role: "option",
|
|
1233
1310
|
"aria-selected": isActive,
|
|
1234
|
-
className: (0,
|
|
1311
|
+
className: (0, import_design_system_foundation24.cn)(Command_default.item, isActive && Command_default.itemActive),
|
|
1235
1312
|
onPointerDown: (e) => e.preventDefault(),
|
|
1236
1313
|
onClick: () => selectItem(item),
|
|
1237
1314
|
children: [
|
|
@@ -1257,23 +1334,26 @@ function Command({
|
|
|
1257
1334
|
var import_react7 = require("react");
|
|
1258
1335
|
|
|
1259
1336
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1260
|
-
var Dialog_default = {"dialog":"
|
|
1337
|
+
var Dialog_default = {"dialog":"bds111Dialog-dialog","dialogContent":"bds111Dialog-dialogContent","closeButton":"bds111Dialog-closeButton"};
|
|
1261
1338
|
|
|
1262
1339
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1263
|
-
var
|
|
1340
|
+
var import_design_system_foundation25 = require("@boostdev/design-system-foundation");
|
|
1264
1341
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1342
|
+
installInvokerCommandsPolyfill();
|
|
1265
1343
|
var FOCUSABLE_SELECTOR = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
1266
|
-
function Dialog({ children, isOpen = false, className, onClose }) {
|
|
1344
|
+
function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClose }) {
|
|
1345
|
+
const generatedId = (0, import_react7.useId)();
|
|
1346
|
+
const id = idProp ?? generatedId;
|
|
1267
1347
|
const dialogRef = (0, import_react7.useRef)(null);
|
|
1268
1348
|
const triggerRef = (0, import_react7.useRef)(null);
|
|
1269
1349
|
(0, import_react7.useEffect)(() => {
|
|
1270
1350
|
const dialog = dialogRef.current;
|
|
1271
1351
|
if (!dialog) return;
|
|
1272
|
-
if (isOpen) {
|
|
1352
|
+
if (isOpen && !dialog.open) {
|
|
1273
1353
|
triggerRef.current = document.activeElement;
|
|
1274
1354
|
dialog.showModal();
|
|
1275
1355
|
document.body.style.overflow = "hidden";
|
|
1276
|
-
} else if (dialog.open) {
|
|
1356
|
+
} else if (!isOpen && dialog.open) {
|
|
1277
1357
|
dialog.close();
|
|
1278
1358
|
document.body.style.overflow = "";
|
|
1279
1359
|
triggerRef.current?.focus();
|
|
@@ -1282,6 +1362,24 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1282
1362
|
document.body.style.overflow = "";
|
|
1283
1363
|
};
|
|
1284
1364
|
}, [isOpen]);
|
|
1365
|
+
(0, import_react7.useEffect)(() => {
|
|
1366
|
+
const dialog = dialogRef.current;
|
|
1367
|
+
if (!dialog) return;
|
|
1368
|
+
const handleCommand = (e) => {
|
|
1369
|
+
if (e.command === "show-modal") {
|
|
1370
|
+
triggerRef.current = document.activeElement;
|
|
1371
|
+
document.body.style.overflow = "hidden";
|
|
1372
|
+
onOpen?.();
|
|
1373
|
+
} else if (e.command === "close") {
|
|
1374
|
+
document.body.style.overflow = "";
|
|
1375
|
+
const trigger = triggerRef.current;
|
|
1376
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1377
|
+
onClose?.();
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
dialog.addEventListener("command", handleCommand);
|
|
1381
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1382
|
+
}, [onOpen, onClose]);
|
|
1285
1383
|
const handleBackdropClick = (e) => {
|
|
1286
1384
|
if (e.target === dialogRef.current) onClose?.();
|
|
1287
1385
|
};
|
|
@@ -1313,22 +1411,24 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1313
1411
|
"dialog",
|
|
1314
1412
|
{
|
|
1315
1413
|
ref: dialogRef,
|
|
1316
|
-
|
|
1414
|
+
id,
|
|
1415
|
+
className: (0, import_design_system_foundation25.cn)(className, Dialog_default.dialog),
|
|
1317
1416
|
"aria-modal": "true",
|
|
1318
1417
|
onClick: handleBackdropClick,
|
|
1319
1418
|
onCancel: handleCancel,
|
|
1320
1419
|
onKeyDown: handleKeyDown,
|
|
1321
1420
|
children: [
|
|
1322
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1421
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1323
1422
|
"button",
|
|
1324
1423
|
{
|
|
1325
|
-
type: "
|
|
1424
|
+
type: "button",
|
|
1326
1425
|
className: Dialog_default.closeButton,
|
|
1327
|
-
|
|
1426
|
+
commandfor: id,
|
|
1427
|
+
command: "close",
|
|
1328
1428
|
"aria-label": "Close dialog",
|
|
1329
1429
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
1330
1430
|
}
|
|
1331
|
-
)
|
|
1431
|
+
),
|
|
1332
1432
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: Dialog_default.dialogContent, children })
|
|
1333
1433
|
]
|
|
1334
1434
|
}
|
|
@@ -1339,13 +1439,16 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1339
1439
|
var import_react8 = require("react");
|
|
1340
1440
|
|
|
1341
1441
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1342
|
-
var Drawer_default = {"drawer":"
|
|
1442
|
+
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"};
|
|
1343
1443
|
|
|
1344
1444
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1345
|
-
var
|
|
1445
|
+
var import_design_system_foundation26 = require("@boostdev/design-system-foundation");
|
|
1346
1446
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1447
|
+
installInvokerCommandsPolyfill();
|
|
1347
1448
|
function Drawer({
|
|
1449
|
+
id: idProp,
|
|
1348
1450
|
isOpen,
|
|
1451
|
+
onOpen,
|
|
1349
1452
|
onClose,
|
|
1350
1453
|
title,
|
|
1351
1454
|
children,
|
|
@@ -1353,16 +1456,18 @@ function Drawer({
|
|
|
1353
1456
|
ariaLabel,
|
|
1354
1457
|
className
|
|
1355
1458
|
}) {
|
|
1459
|
+
const generatedId = (0, import_react8.useId)();
|
|
1460
|
+
const id = idProp ?? generatedId;
|
|
1356
1461
|
const dialogRef = (0, import_react8.useRef)(null);
|
|
1357
1462
|
const triggerRef = (0, import_react8.useRef)(null);
|
|
1358
1463
|
(0, import_react8.useEffect)(() => {
|
|
1359
1464
|
const dialog = dialogRef.current;
|
|
1360
1465
|
if (!dialog) return;
|
|
1361
|
-
if (isOpen) {
|
|
1466
|
+
if (isOpen && !dialog.open) {
|
|
1362
1467
|
triggerRef.current = document.activeElement;
|
|
1363
1468
|
dialog.showModal();
|
|
1364
1469
|
document.body.style.overflow = "hidden";
|
|
1365
|
-
} else if (dialog.open) {
|
|
1470
|
+
} else if (!isOpen && dialog.open) {
|
|
1366
1471
|
dialog.close();
|
|
1367
1472
|
document.body.style.overflow = "";
|
|
1368
1473
|
triggerRef.current?.focus();
|
|
@@ -1371,6 +1476,24 @@ function Drawer({
|
|
|
1371
1476
|
document.body.style.overflow = "";
|
|
1372
1477
|
};
|
|
1373
1478
|
}, [isOpen]);
|
|
1479
|
+
(0, import_react8.useEffect)(() => {
|
|
1480
|
+
const dialog = dialogRef.current;
|
|
1481
|
+
if (!dialog) return;
|
|
1482
|
+
const handleCommand = (e) => {
|
|
1483
|
+
if (e.command === "show-modal") {
|
|
1484
|
+
triggerRef.current = document.activeElement;
|
|
1485
|
+
document.body.style.overflow = "hidden";
|
|
1486
|
+
onOpen?.();
|
|
1487
|
+
} else if (e.command === "close") {
|
|
1488
|
+
document.body.style.overflow = "";
|
|
1489
|
+
const trigger = triggerRef.current;
|
|
1490
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1491
|
+
onClose();
|
|
1492
|
+
}
|
|
1493
|
+
};
|
|
1494
|
+
dialog.addEventListener("command", handleCommand);
|
|
1495
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1496
|
+
}, [onOpen, onClose]);
|
|
1374
1497
|
const handleClick = (e) => {
|
|
1375
1498
|
if (e.target === dialogRef.current) onClose();
|
|
1376
1499
|
};
|
|
@@ -1382,7 +1505,8 @@ function Drawer({
|
|
|
1382
1505
|
"dialog",
|
|
1383
1506
|
{
|
|
1384
1507
|
ref: dialogRef,
|
|
1385
|
-
|
|
1508
|
+
id,
|
|
1509
|
+
className: (0, import_design_system_foundation26.cn)(Drawer_default.drawer, Drawer_default[`--side_${side}`], className),
|
|
1386
1510
|
"aria-label": ariaLabel,
|
|
1387
1511
|
"aria-modal": "true",
|
|
1388
1512
|
onClick: handleClick,
|
|
@@ -1395,7 +1519,8 @@ function Drawer({
|
|
|
1395
1519
|
{
|
|
1396
1520
|
type: "button",
|
|
1397
1521
|
className: Drawer_default.closeButton,
|
|
1398
|
-
|
|
1522
|
+
commandfor: id,
|
|
1523
|
+
command: "close",
|
|
1399
1524
|
"aria-label": "Close drawer",
|
|
1400
1525
|
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
1401
1526
|
}
|
|
@@ -1411,10 +1536,10 @@ function Drawer({
|
|
|
1411
1536
|
var import_react9 = require("react");
|
|
1412
1537
|
|
|
1413
1538
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1414
|
-
var DropdownMenu_default = {"wrapper":"
|
|
1539
|
+
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"};
|
|
1415
1540
|
|
|
1416
1541
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1417
|
-
var
|
|
1542
|
+
var import_design_system_foundation27 = require("@boostdev/design-system-foundation");
|
|
1418
1543
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1419
1544
|
function DropdownMenu({
|
|
1420
1545
|
trigger,
|
|
@@ -1483,14 +1608,14 @@ function DropdownMenu({
|
|
|
1483
1608
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1484
1609
|
}
|
|
1485
1610
|
}) : trigger;
|
|
1486
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref: containerRef, className: (0,
|
|
1611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref: containerRef, className: (0, import_design_system_foundation27.cn)(DropdownMenu_default.wrapper, className), children: [
|
|
1487
1612
|
triggerEl,
|
|
1488
1613
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1489
1614
|
"ul",
|
|
1490
1615
|
{
|
|
1491
1616
|
id: menuId,
|
|
1492
1617
|
role: "menu",
|
|
1493
|
-
className: (0,
|
|
1618
|
+
className: (0, import_design_system_foundation27.cn)(DropdownMenu_default.menu, DropdownMenu_default[`--placement_${placement}`]),
|
|
1494
1619
|
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("li", { role: "presentation", children: [
|
|
1495
1620
|
item.separator && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("hr", { className: DropdownMenu_default.separator, role: "separator" }),
|
|
1496
1621
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
@@ -1524,11 +1649,16 @@ function DropdownMenu({
|
|
|
1524
1649
|
var import_react10 = require("react");
|
|
1525
1650
|
|
|
1526
1651
|
// src/components/interaction/Popover/Popover.module.css
|
|
1527
|
-
var Popover_default = {"wrapper":"
|
|
1652
|
+
var Popover_default = {"wrapper":"bds111Popover-wrapper","panel":"bds111Popover-panel","g":"bds111Popover-g"};
|
|
1528
1653
|
|
|
1529
1654
|
// src/components/interaction/Popover/Popover.tsx
|
|
1530
|
-
var
|
|
1655
|
+
var import_design_system_foundation28 = require("@boostdev/design-system-foundation");
|
|
1531
1656
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1657
|
+
installInvokerCommandsPolyfill();
|
|
1658
|
+
if (typeof window !== "undefined" && !(typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name: --a"))) {
|
|
1659
|
+
import("@oddbird/css-anchor-positioning").catch(() => {
|
|
1660
|
+
});
|
|
1661
|
+
}
|
|
1532
1662
|
function Popover({
|
|
1533
1663
|
children,
|
|
1534
1664
|
content,
|
|
@@ -1538,43 +1668,64 @@ function Popover({
|
|
|
1538
1668
|
}) {
|
|
1539
1669
|
const [isOpen, setIsOpen] = (0, import_react10.useState)(false);
|
|
1540
1670
|
const containerRef = (0, import_react10.useRef)(null);
|
|
1541
|
-
const
|
|
1671
|
+
const panelRef = (0, import_react10.useRef)(null);
|
|
1672
|
+
const rawId = (0, import_react10.useId)();
|
|
1673
|
+
const anchorName = `--popover-${rawId.replace(/\W/g, "") || "a"}`;
|
|
1674
|
+
const panelId = rawId;
|
|
1675
|
+
(0, import_react10.useEffect)(() => {
|
|
1676
|
+
const panel = panelRef.current;
|
|
1677
|
+
if (!panel) return;
|
|
1678
|
+
const handleToggle = (e) => {
|
|
1679
|
+
setIsOpen(e.newState === "open");
|
|
1680
|
+
};
|
|
1681
|
+
panel.addEventListener("toggle", handleToggle);
|
|
1682
|
+
return () => panel.removeEventListener("toggle", handleToggle);
|
|
1683
|
+
}, []);
|
|
1542
1684
|
(0, import_react10.useEffect)(() => {
|
|
1543
1685
|
if (!isOpen) return;
|
|
1544
|
-
const
|
|
1545
|
-
|
|
1546
|
-
|
|
1686
|
+
const handleScroll = () => {
|
|
1687
|
+
const rect = containerRef.current?.getBoundingClientRect();
|
|
1688
|
+
if (!rect) return;
|
|
1689
|
+
const { innerWidth: vw, innerHeight: vh } = window;
|
|
1690
|
+
if (rect.bottom < 0 || rect.top > vh || rect.right < 0 || rect.left > vw) {
|
|
1691
|
+
panelRef.current?.hidePopover();
|
|
1547
1692
|
}
|
|
1548
1693
|
};
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
};
|
|
1552
|
-
document.addEventListener("pointerdown", handlePointerDown);
|
|
1553
|
-
document.addEventListener("keydown", handleKeyDown);
|
|
1694
|
+
window.addEventListener("scroll", handleScroll, { capture: true, passive: true });
|
|
1695
|
+
window.addEventListener("resize", handleScroll, { passive: true });
|
|
1554
1696
|
return () => {
|
|
1555
|
-
|
|
1556
|
-
|
|
1697
|
+
window.removeEventListener("scroll", handleScroll, { capture: true });
|
|
1698
|
+
window.removeEventListener("resize", handleScroll);
|
|
1557
1699
|
};
|
|
1558
1700
|
}, [isOpen]);
|
|
1559
1701
|
const trigger = (0, import_react10.isValidElement)(children) ? (0, import_react10.cloneElement)(children, {
|
|
1560
1702
|
"aria-expanded": isOpen,
|
|
1561
1703
|
"aria-controls": panelId,
|
|
1562
1704
|
"aria-haspopup": true,
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1705
|
+
commandfor: panelId,
|
|
1706
|
+
command: "toggle-popover",
|
|
1707
|
+
style: {
|
|
1708
|
+
...children.props.style,
|
|
1709
|
+
anchorName
|
|
1710
|
+
},
|
|
1711
|
+
// Forward any existing onClick on the child (for custom side-effects).
|
|
1712
|
+
// Do NOT add our own toggle here — commandfor/command handles it to
|
|
1713
|
+
// avoid a double-toggle when both onClick and invoker fire.
|
|
1714
|
+
onClick: children.props.onClick
|
|
1568
1715
|
}) : children;
|
|
1569
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { ref: containerRef, className: (0,
|
|
1716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { ref: containerRef, className: (0, import_design_system_foundation28.cn)(Popover_default.wrapper, className), children: [
|
|
1570
1717
|
trigger,
|
|
1571
|
-
|
|
1718
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1572
1719
|
"div",
|
|
1573
1720
|
{
|
|
1721
|
+
ref: panelRef,
|
|
1574
1722
|
id: panelId,
|
|
1723
|
+
popover: "auto",
|
|
1724
|
+
"data-placement": placement,
|
|
1575
1725
|
role: ariaLabel ? "region" : void 0,
|
|
1576
1726
|
"aria-label": ariaLabel,
|
|
1577
|
-
className:
|
|
1727
|
+
className: Popover_default.panel,
|
|
1728
|
+
style: { positionAnchor: anchorName },
|
|
1578
1729
|
children: content
|
|
1579
1730
|
}
|
|
1580
1731
|
)
|
|
@@ -1582,23 +1733,23 @@ function Popover({
|
|
|
1582
1733
|
}
|
|
1583
1734
|
|
|
1584
1735
|
// src/components/interaction/Rating/Rating.module.css
|
|
1585
|
-
var Rating_default = {"rating":"
|
|
1736
|
+
var Rating_default = {"rating":"bds111Rating-rating","star":"bds111Rating-star","--filled":"bds111Rating---filled"};
|
|
1586
1737
|
|
|
1587
1738
|
// src/components/interaction/Rating/Rating.tsx
|
|
1588
|
-
var
|
|
1739
|
+
var import_design_system_foundation29 = require("@boostdev/design-system-foundation");
|
|
1589
1740
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1590
1741
|
function Rating({ value, max = 5, className }) {
|
|
1591
1742
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1592
1743
|
"div",
|
|
1593
1744
|
{
|
|
1594
|
-
className: (0,
|
|
1745
|
+
className: (0, import_design_system_foundation29.cn)(Rating_default.rating, className),
|
|
1595
1746
|
role: "img",
|
|
1596
1747
|
"aria-label": `${value} out of ${max} stars`,
|
|
1597
1748
|
children: Array.from({ length: max }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1598
1749
|
"svg",
|
|
1599
1750
|
{
|
|
1600
1751
|
"aria-hidden": "true",
|
|
1601
|
-
className: (0,
|
|
1752
|
+
className: (0, import_design_system_foundation29.cn)(Rating_default.star, i < value && Rating_default["--filled"]),
|
|
1602
1753
|
fill: "currentColor",
|
|
1603
1754
|
viewBox: "0 0 24 24",
|
|
1604
1755
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("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" })
|
|
@@ -1613,14 +1764,15 @@ function Rating({ value, max = 5, className }) {
|
|
|
1613
1764
|
var import_react11 = require("react");
|
|
1614
1765
|
|
|
1615
1766
|
// src/components/interaction/Toast/Toast.module.css
|
|
1616
|
-
var Toast_default = {"toastContainer":"
|
|
1767
|
+
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"};
|
|
1617
1768
|
|
|
1618
1769
|
// src/components/interaction/Toast/Toast.tsx
|
|
1619
|
-
var
|
|
1770
|
+
var import_design_system_foundation30 = require("@boostdev/design-system-foundation");
|
|
1620
1771
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1621
1772
|
var ToastContext = (0, import_react11.createContext)(void 0);
|
|
1622
1773
|
function ToastProvider({ children }) {
|
|
1623
1774
|
const [toasts, setToasts] = (0, import_react11.useState)([]);
|
|
1775
|
+
const containerRef = (0, import_react11.useRef)(null);
|
|
1624
1776
|
const showToast = (0, import_react11.useCallback)((message, variant) => {
|
|
1625
1777
|
const id = Math.random().toString(36).substring(2, 9);
|
|
1626
1778
|
setToasts((prev) => [...prev, { id, message, variant }]);
|
|
@@ -1628,17 +1780,39 @@ function ToastProvider({ children }) {
|
|
|
1628
1780
|
const removeToast = (0, import_react11.useCallback)((id) => {
|
|
1629
1781
|
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
1630
1782
|
}, []);
|
|
1783
|
+
(0, import_react11.useEffect)(() => {
|
|
1784
|
+
const container = containerRef.current;
|
|
1785
|
+
if (!container) return;
|
|
1786
|
+
if (toasts.length > 0) {
|
|
1787
|
+
container.showPopover?.();
|
|
1788
|
+
} else {
|
|
1789
|
+
try {
|
|
1790
|
+
container.hidePopover?.();
|
|
1791
|
+
} catch {
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
}, [toasts.length]);
|
|
1631
1795
|
const value = (0, import_react11.useMemo)(() => ({ showToast }), [showToast]);
|
|
1632
1796
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ToastContext.Provider, { value, children: [
|
|
1633
1797
|
children,
|
|
1634
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1635
|
-
|
|
1798
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1799
|
+
"div",
|
|
1636
1800
|
{
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1801
|
+
ref: containerRef,
|
|
1802
|
+
popover: "manual",
|
|
1803
|
+
role: "region",
|
|
1804
|
+
"aria-label": "Notifications",
|
|
1805
|
+
className: Toast_default.toastContainer,
|
|
1806
|
+
children: toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1807
|
+
ToastItem,
|
|
1808
|
+
{
|
|
1809
|
+
toast,
|
|
1810
|
+
onRemove: () => removeToast(toast.id)
|
|
1811
|
+
},
|
|
1812
|
+
toast.id
|
|
1813
|
+
))
|
|
1814
|
+
}
|
|
1815
|
+
)
|
|
1642
1816
|
] });
|
|
1643
1817
|
}
|
|
1644
1818
|
function ToastItem({ toast, onRemove }) {
|
|
@@ -1646,7 +1820,7 @@ function ToastItem({ toast, onRemove }) {
|
|
|
1646
1820
|
const timer = setTimeout(onRemove, 5e3);
|
|
1647
1821
|
return () => clearTimeout(timer);
|
|
1648
1822
|
}, [onRemove]);
|
|
1649
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0,
|
|
1823
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_design_system_foundation30.cn)(Toast_default.toast, Toast_default[`--variant_${toast.variant}`]), role: "status", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
1650
1824
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: Toast_default.message, children: toast.message }),
|
|
1651
1825
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", className: Toast_default.closeButton, onClick: onRemove, "aria-label": "Dismiss", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) }) })
|
|
1652
1826
|
] });
|
|
@@ -1663,38 +1837,40 @@ function useToast() {
|
|
|
1663
1837
|
var import_react12 = require("react");
|
|
1664
1838
|
|
|
1665
1839
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1666
|
-
var Checkbox_default = {"checkboxGroup":"
|
|
1840
|
+
var Checkbox_default = {"checkboxGroup":"bds111Checkbox-checkboxGroup","inputWrapper":"bds111Checkbox-inputWrapper","checkbox":"bds111Checkbox-checkbox","checkboxError":"bds111Checkbox-checkboxError"};
|
|
1667
1841
|
|
|
1668
1842
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1669
|
-
var Message_default = {"error":"
|
|
1843
|
+
var Message_default = {"error":"bds111Message-error","hint":"bds111Message-hint"};
|
|
1670
1844
|
|
|
1671
1845
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1846
|
+
var import_design_system_foundation31 = require("@boostdev/design-system-foundation");
|
|
1672
1847
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1673
|
-
var Message = ({ message, type, inputId }) => {
|
|
1848
|
+
var Message = ({ message, type, inputId, className }) => {
|
|
1674
1849
|
if (!message) return null;
|
|
1675
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { id: inputId + type, className: Message_default[type], children: message });
|
|
1850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { id: inputId + type, className: (0, import_design_system_foundation31.cn)(Message_default[type], className), children: message });
|
|
1676
1851
|
};
|
|
1677
1852
|
|
|
1678
1853
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1679
|
-
var Label_default = {"label":"
|
|
1854
|
+
var Label_default = {"label":"bds111Label-label"};
|
|
1680
1855
|
|
|
1681
1856
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1857
|
+
var import_design_system_foundation32 = require("@boostdev/design-system-foundation");
|
|
1682
1858
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1683
|
-
var Label = ({ label, id }) => {
|
|
1684
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { htmlFor: id, className: Label_default.label, children: label });
|
|
1859
|
+
var Label = ({ label, id, className }) => {
|
|
1860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { htmlFor: id, className: (0, import_design_system_foundation32.cn)(Label_default.label, className), children: label });
|
|
1685
1861
|
};
|
|
1686
1862
|
|
|
1687
1863
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1688
|
-
var
|
|
1864
|
+
var import_design_system_foundation34 = require("@boostdev/design-system-foundation");
|
|
1689
1865
|
|
|
1690
1866
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1691
|
-
var InputContainer_default = {"container":"
|
|
1867
|
+
var InputContainer_default = {"container":"bds111InputContainer-container"};
|
|
1692
1868
|
|
|
1693
1869
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1694
|
-
var
|
|
1870
|
+
var import_design_system_foundation33 = require("@boostdev/design-system-foundation");
|
|
1695
1871
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1696
1872
|
var InputContainer = ({ children, className }) => {
|
|
1697
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0,
|
|
1873
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0, import_design_system_foundation33.cn)(InputContainer_default.container, className), children });
|
|
1698
1874
|
};
|
|
1699
1875
|
|
|
1700
1876
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
@@ -1704,7 +1880,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1704
1880
|
const hintId = id + "hint";
|
|
1705
1881
|
const errorId = id + "error";
|
|
1706
1882
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1707
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(InputContainer, { className: (0,
|
|
1883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(InputContainer, { className: (0, import_design_system_foundation34.cn)(Checkbox_default.checkboxGroup, className), children: [
|
|
1708
1884
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: Checkbox_default.inputWrapper, children: [
|
|
1709
1885
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1710
1886
|
"input",
|
|
@@ -1714,7 +1890,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1714
1890
|
type: "checkbox",
|
|
1715
1891
|
id,
|
|
1716
1892
|
name,
|
|
1717
|
-
className: (0,
|
|
1893
|
+
className: (0, import_design_system_foundation34.cn)(Checkbox_default.checkbox, error && Checkbox_default.checkboxError),
|
|
1718
1894
|
...props
|
|
1719
1895
|
}
|
|
1720
1896
|
),
|
|
@@ -1729,10 +1905,10 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1729
1905
|
var import_react13 = require("react");
|
|
1730
1906
|
|
|
1731
1907
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
1732
|
-
var CheckboxGroup_default = {"group":"
|
|
1908
|
+
var CheckboxGroup_default = {"group":"bds111CheckboxGroup-group","legend":"bds111CheckboxGroup-legend","required":"bds111CheckboxGroup-required","items":"bds111CheckboxGroup-items"};
|
|
1733
1909
|
|
|
1734
1910
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1735
|
-
var
|
|
1911
|
+
var import_design_system_foundation35 = require("@boostdev/design-system-foundation");
|
|
1736
1912
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1737
1913
|
function CheckboxGroup({
|
|
1738
1914
|
legend,
|
|
@@ -1750,7 +1926,7 @@ function CheckboxGroup({
|
|
|
1750
1926
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1751
1927
|
"fieldset",
|
|
1752
1928
|
{
|
|
1753
|
-
className: (0,
|
|
1929
|
+
className: (0, import_design_system_foundation35.cn)(CheckboxGroup_default.group, className),
|
|
1754
1930
|
disabled,
|
|
1755
1931
|
"aria-required": required || void 0,
|
|
1756
1932
|
"aria-describedby": describedBy,
|
|
@@ -1771,10 +1947,10 @@ function CheckboxGroup({
|
|
|
1771
1947
|
var import_react14 = require("react");
|
|
1772
1948
|
|
|
1773
1949
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1774
|
-
var Combobox_default = {"formGroup":"
|
|
1950
|
+
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"};
|
|
1775
1951
|
|
|
1776
1952
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1777
|
-
var
|
|
1953
|
+
var import_design_system_foundation36 = require("@boostdev/design-system-foundation");
|
|
1778
1954
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1779
1955
|
function Combobox({
|
|
1780
1956
|
label,
|
|
@@ -1853,7 +2029,7 @@ function Combobox({
|
|
|
1853
2029
|
setIsOpen(false);
|
|
1854
2030
|
}
|
|
1855
2031
|
};
|
|
1856
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(InputContainer, { className: (0,
|
|
2032
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(InputContainer, { className: (0, import_design_system_foundation36.cn)(Combobox_default.formGroup, className), children: [
|
|
1857
2033
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Label, { id, label }),
|
|
1858
2034
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ref: containerRef, className: Combobox_default.inputWrapper, children: [
|
|
1859
2035
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1875,7 +2051,7 @@ function Combobox({
|
|
|
1875
2051
|
placeholder,
|
|
1876
2052
|
value: inputValue,
|
|
1877
2053
|
disabled,
|
|
1878
|
-
className: (0,
|
|
2054
|
+
className: (0, import_design_system_foundation36.cn)(Combobox_default.input, error ? Combobox_default.inputError : void 0),
|
|
1879
2055
|
onChange: handleInputChange,
|
|
1880
2056
|
onKeyDown: handleKeyDown,
|
|
1881
2057
|
onFocus: () => setIsOpen(true)
|
|
@@ -1895,7 +2071,7 @@ function Combobox({
|
|
|
1895
2071
|
role: "option",
|
|
1896
2072
|
"aria-selected": option.value === value,
|
|
1897
2073
|
"aria-disabled": option.disabled,
|
|
1898
|
-
className: (0,
|
|
2074
|
+
className: (0, import_design_system_foundation36.cn)(
|
|
1899
2075
|
Combobox_default.option,
|
|
1900
2076
|
index === highlightedIndex ? Combobox_default["--highlighted"] : void 0,
|
|
1901
2077
|
option.value === value ? Combobox_default["--selected"] : void 0,
|
|
@@ -1921,10 +2097,10 @@ function Combobox({
|
|
|
1921
2097
|
var import_react15 = require("react");
|
|
1922
2098
|
|
|
1923
2099
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
1924
|
-
var FileInput_default = {"formGroup":"
|
|
2100
|
+
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"};
|
|
1925
2101
|
|
|
1926
2102
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1927
|
-
var
|
|
2103
|
+
var import_design_system_foundation37 = require("@boostdev/design-system-foundation");
|
|
1928
2104
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1929
2105
|
function FileInput({
|
|
1930
2106
|
label,
|
|
@@ -1974,12 +2150,12 @@ function FileInput({
|
|
|
1974
2150
|
if (!disabled) setIsDragging(true);
|
|
1975
2151
|
};
|
|
1976
2152
|
const handleDragLeave = () => setIsDragging(false);
|
|
1977
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputContainer, { className: (0,
|
|
2153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputContainer, { className: (0, import_design_system_foundation37.cn)(FileInput_default.formGroup, className), children: [
|
|
1978
2154
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1979
2155
|
"label",
|
|
1980
2156
|
{
|
|
1981
2157
|
htmlFor: uid,
|
|
1982
|
-
className: (0,
|
|
2158
|
+
className: (0, import_design_system_foundation37.cn)(FileInput_default.dropZone, isDragging && FileInput_default.isDragging, error && FileInput_default.hasError, disabled && FileInput_default.isDisabled),
|
|
1983
2159
|
onDrop: handleDrop,
|
|
1984
2160
|
onDragOver: handleDragOver,
|
|
1985
2161
|
onDragLeave: handleDragLeave,
|
|
@@ -2021,10 +2197,10 @@ function FileInput({
|
|
|
2021
2197
|
var import_react16 = require("react");
|
|
2022
2198
|
|
|
2023
2199
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
2024
|
-
var FormInput_default = {"formGroup":"
|
|
2200
|
+
var FormInput_default = {"formGroup":"bds111FormInput-formGroup","input":"bds111FormInput-input","inputError":"bds111FormInput-inputError"};
|
|
2025
2201
|
|
|
2026
2202
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2027
|
-
var
|
|
2203
|
+
var import_design_system_foundation38 = require("@boostdev/design-system-foundation");
|
|
2028
2204
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2029
2205
|
function FormInput({
|
|
2030
2206
|
label,
|
|
@@ -2040,7 +2216,7 @@ function FormInput({
|
|
|
2040
2216
|
const hintId = id + "hint";
|
|
2041
2217
|
const errorId = id + "error";
|
|
2042
2218
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2043
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(InputContainer, { className: (0,
|
|
2219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(InputContainer, { className: (0, import_design_system_foundation38.cn)(FormInput_default.formGroup, className), children: [
|
|
2044
2220
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Label, { id, label }),
|
|
2045
2221
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2046
2222
|
"input",
|
|
@@ -2052,7 +2228,7 @@ function FormInput({
|
|
|
2052
2228
|
id,
|
|
2053
2229
|
name,
|
|
2054
2230
|
required,
|
|
2055
|
-
className: (0,
|
|
2231
|
+
className: (0, import_design_system_foundation38.cn)(FormInput_default.input, error && FormInput_default.inputError),
|
|
2056
2232
|
...props
|
|
2057
2233
|
}
|
|
2058
2234
|
),
|
|
@@ -2065,10 +2241,10 @@ function FormInput({
|
|
|
2065
2241
|
var import_react17 = require("react");
|
|
2066
2242
|
|
|
2067
2243
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2068
|
-
var NumberInput_default = {"formGroup":"
|
|
2244
|
+
var NumberInput_default = {"formGroup":"bds111NumberInput-formGroup","inputRow":"bds111NumberInput-inputRow","input":"bds111NumberInput-input","inputError":"bds111NumberInput-inputError","stepper":"bds111NumberInput-stepper"};
|
|
2069
2245
|
|
|
2070
2246
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2071
|
-
var
|
|
2247
|
+
var import_design_system_foundation39 = require("@boostdev/design-system-foundation");
|
|
2072
2248
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2073
2249
|
function NumberInput({
|
|
2074
2250
|
label,
|
|
@@ -2107,7 +2283,7 @@ function NumberInput({
|
|
|
2107
2283
|
}
|
|
2108
2284
|
onChange?.(next);
|
|
2109
2285
|
};
|
|
2110
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(InputContainer, { className: (0,
|
|
2286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(InputContainer, { className: (0, import_design_system_foundation39.cn)(NumberInput_default.formGroup, className), children: [
|
|
2111
2287
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Label, { id: uid, label }),
|
|
2112
2288
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: NumberInput_default.inputRow, children: [
|
|
2113
2289
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
@@ -2137,7 +2313,7 @@ function NumberInput({
|
|
|
2137
2313
|
disabled,
|
|
2138
2314
|
"aria-invalid": !!error,
|
|
2139
2315
|
"aria-describedby": describedBy,
|
|
2140
|
-
className: (0,
|
|
2316
|
+
className: (0, import_design_system_foundation39.cn)(NumberInput_default.input, error ? NumberInput_default.inputError : void 0),
|
|
2141
2317
|
onChange: (e) => {
|
|
2142
2318
|
const v = parseFloat(e.target.value);
|
|
2143
2319
|
const safe = isNaN(v) ? 0 : v;
|
|
@@ -2169,17 +2345,17 @@ function NumberInput({
|
|
|
2169
2345
|
var import_react18 = require("react");
|
|
2170
2346
|
|
|
2171
2347
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2172
|
-
var Radio_default = {"radioGroup":"
|
|
2348
|
+
var Radio_default = {"radioGroup":"bds111Radio-radioGroup","inputWrapper":"bds111Radio-inputWrapper","textWrapper":"bds111Radio-textWrapper","description":"bds111Radio-description","radio":"bds111Radio-radio","radioError":"bds111Radio-radioError"};
|
|
2173
2349
|
|
|
2174
2350
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2175
|
-
var
|
|
2351
|
+
var import_design_system_foundation40 = require("@boostdev/design-system-foundation");
|
|
2176
2352
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2177
2353
|
function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
2178
2354
|
const id = name + (0, import_react18.useId)();
|
|
2179
2355
|
const hintId = id + "hint";
|
|
2180
2356
|
const errorId = id + "error";
|
|
2181
2357
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2182
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(InputContainer, { className: (0,
|
|
2358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(InputContainer, { className: (0, import_design_system_foundation40.cn)(Radio_default.radioGroup, className), children: [
|
|
2183
2359
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: Radio_default.inputWrapper, children: [
|
|
2184
2360
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2185
2361
|
"input",
|
|
@@ -2189,7 +2365,7 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2189
2365
|
type: "radio",
|
|
2190
2366
|
id,
|
|
2191
2367
|
name,
|
|
2192
|
-
className: (0,
|
|
2368
|
+
className: (0, import_design_system_foundation40.cn)(Radio_default.radio, error && Radio_default.radioError),
|
|
2193
2369
|
...props
|
|
2194
2370
|
}
|
|
2195
2371
|
),
|
|
@@ -2207,10 +2383,10 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2207
2383
|
var import_react19 = require("react");
|
|
2208
2384
|
|
|
2209
2385
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2210
|
-
var RadioGroup_default = {"group":"
|
|
2386
|
+
var RadioGroup_default = {"group":"bds111RadioGroup-group","legend":"bds111RadioGroup-legend","required":"bds111RadioGroup-required","items":"bds111RadioGroup-items"};
|
|
2211
2387
|
|
|
2212
2388
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2213
|
-
var
|
|
2389
|
+
var import_design_system_foundation41 = require("@boostdev/design-system-foundation");
|
|
2214
2390
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2215
2391
|
function RadioGroup({
|
|
2216
2392
|
legend,
|
|
@@ -2228,7 +2404,7 @@ function RadioGroup({
|
|
|
2228
2404
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2229
2405
|
"fieldset",
|
|
2230
2406
|
{
|
|
2231
|
-
className: (0,
|
|
2407
|
+
className: (0, import_design_system_foundation41.cn)(RadioGroup_default.group, className),
|
|
2232
2408
|
disabled,
|
|
2233
2409
|
"aria-required": required || void 0,
|
|
2234
2410
|
"aria-describedby": describedBy,
|
|
@@ -2249,10 +2425,10 @@ function RadioGroup({
|
|
|
2249
2425
|
var import_react20 = require("react");
|
|
2250
2426
|
|
|
2251
2427
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2252
|
-
var SegmentedControl_default = {"control":"
|
|
2428
|
+
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"};
|
|
2253
2429
|
|
|
2254
2430
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2255
|
-
var
|
|
2431
|
+
var import_design_system_foundation42 = require("@boostdev/design-system-foundation");
|
|
2256
2432
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2257
2433
|
function SegmentedControl({
|
|
2258
2434
|
name,
|
|
@@ -2281,7 +2457,7 @@ function SegmentedControl({
|
|
|
2281
2457
|
{
|
|
2282
2458
|
role: "group",
|
|
2283
2459
|
"aria-label": ariaLabel,
|
|
2284
|
-
className: (0,
|
|
2460
|
+
className: (0, import_design_system_foundation42.cn)(SegmentedControl_default.control, SegmentedControl_default[`--size_${size}`], className),
|
|
2285
2461
|
style: {
|
|
2286
2462
|
"--control_count": options.length,
|
|
2287
2463
|
"--control_selected-index": Math.max(0, selectedIndex)
|
|
@@ -2296,7 +2472,7 @@ function SegmentedControl({
|
|
|
2296
2472
|
"label",
|
|
2297
2473
|
{
|
|
2298
2474
|
htmlFor: id,
|
|
2299
|
-
className: (0,
|
|
2475
|
+
className: (0, import_design_system_foundation42.cn)(SegmentedControl_default.item, isChecked && SegmentedControl_default["--active"], isDisabled && SegmentedControl_default["--disabled"]),
|
|
2300
2476
|
children: [
|
|
2301
2477
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2302
2478
|
"input",
|
|
@@ -2327,10 +2503,10 @@ function SegmentedControl({
|
|
|
2327
2503
|
var import_react21 = require("react");
|
|
2328
2504
|
|
|
2329
2505
|
// src/components/interaction/form/Select/Select.module.css
|
|
2330
|
-
var Select_default = {"formGroup":"
|
|
2506
|
+
var Select_default = {"formGroup":"bds111Select-formGroup","selectWrapper":"bds111Select-selectWrapper","select":"bds111Select-select","selectError":"bds111Select-selectError","chevron":"bds111Select-chevron"};
|
|
2331
2507
|
|
|
2332
2508
|
// src/components/interaction/form/Select/Select.tsx
|
|
2333
|
-
var
|
|
2509
|
+
var import_design_system_foundation43 = require("@boostdev/design-system-foundation");
|
|
2334
2510
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2335
2511
|
function Select({
|
|
2336
2512
|
label,
|
|
@@ -2347,7 +2523,7 @@ function Select({
|
|
|
2347
2523
|
const hintId = id + "hint";
|
|
2348
2524
|
const errorId = id + "error";
|
|
2349
2525
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2350
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(InputContainer, { className: (0,
|
|
2526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(InputContainer, { className: (0, import_design_system_foundation43.cn)(Select_default.formGroup, className), children: [
|
|
2351
2527
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Label, { id, label }),
|
|
2352
2528
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: Select_default.selectWrapper, children: [
|
|
2353
2529
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
@@ -2359,7 +2535,7 @@ function Select({
|
|
|
2359
2535
|
"aria-required": required || void 0,
|
|
2360
2536
|
"aria-describedby": describedBy,
|
|
2361
2537
|
required,
|
|
2362
|
-
className: (0,
|
|
2538
|
+
className: (0, import_design_system_foundation43.cn)(Select_default.select, error ? Select_default.selectError : void 0),
|
|
2363
2539
|
...props,
|
|
2364
2540
|
children: [
|
|
2365
2541
|
placeholder && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
@@ -2378,10 +2554,10 @@ function Select({
|
|
|
2378
2554
|
var import_react22 = require("react");
|
|
2379
2555
|
|
|
2380
2556
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2381
|
-
var Slider_default = {"formGroup":"
|
|
2557
|
+
var Slider_default = {"formGroup":"bds111Slider-formGroup","labelRow":"bds111Slider-labelRow","value":"bds111Slider-value","slider":"bds111Slider-slider","sliderError":"bds111Slider-sliderError"};
|
|
2382
2558
|
|
|
2383
2559
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2384
|
-
var
|
|
2560
|
+
var import_design_system_foundation44 = require("@boostdev/design-system-foundation");
|
|
2385
2561
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2386
2562
|
function Slider({
|
|
2387
2563
|
label,
|
|
@@ -2407,7 +2583,7 @@ function Slider({
|
|
|
2407
2583
|
if (!isControlled) setInternalValue(Number(e.target.value));
|
|
2408
2584
|
onChange?.(e);
|
|
2409
2585
|
};
|
|
2410
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(InputContainer, { className: (0,
|
|
2586
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(InputContainer, { className: (0, import_design_system_foundation44.cn)(Slider_default.formGroup, className), children: [
|
|
2411
2587
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: Slider_default.labelRow, children: [
|
|
2412
2588
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Label, { id, label }),
|
|
2413
2589
|
showValue && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: Slider_default.value, children: currentValue })
|
|
@@ -2425,7 +2601,7 @@ function Slider({
|
|
|
2425
2601
|
"aria-valuemax": max,
|
|
2426
2602
|
"aria-valuenow": currentValue,
|
|
2427
2603
|
"aria-valuetext": String(currentValue),
|
|
2428
|
-
className: (0,
|
|
2604
|
+
className: (0, import_design_system_foundation44.cn)(Slider_default.slider, error ? Slider_default.sliderError : void 0),
|
|
2429
2605
|
style: { "--slider_fill": `${fillPct}%` },
|
|
2430
2606
|
onChange: handleChange,
|
|
2431
2607
|
...props
|
|
@@ -2440,10 +2616,10 @@ function Slider({
|
|
|
2440
2616
|
var import_react23 = require("react");
|
|
2441
2617
|
|
|
2442
2618
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2443
|
-
var Switch_default = {"switchGroup":"
|
|
2619
|
+
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"};
|
|
2444
2620
|
|
|
2445
2621
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2446
|
-
var
|
|
2622
|
+
var import_design_system_foundation45 = require("@boostdev/design-system-foundation");
|
|
2447
2623
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2448
2624
|
function Switch({
|
|
2449
2625
|
label,
|
|
@@ -2459,7 +2635,7 @@ function Switch({
|
|
|
2459
2635
|
const hintId = id + "hint";
|
|
2460
2636
|
const errorId = id + "error";
|
|
2461
2637
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2462
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(InputContainer, { className: (0,
|
|
2638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(InputContainer, { className: (0, import_design_system_foundation45.cn)(Switch_default.switchGroup, Switch_default[`--size_${size}`], className), children: [
|
|
2463
2639
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: Switch_default.inputWrapper, children: [
|
|
2464
2640
|
prefix && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: prefix }),
|
|
2465
2641
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: Switch_default.trackWrapper, children: [
|
|
@@ -2471,7 +2647,7 @@ function Switch({
|
|
|
2471
2647
|
id,
|
|
2472
2648
|
name,
|
|
2473
2649
|
"aria-describedby": describedBy,
|
|
2474
|
-
className: (0,
|
|
2650
|
+
className: (0, import_design_system_foundation45.cn)(Switch_default.switch, error ? Switch_default.switchError : void 0),
|
|
2475
2651
|
...props
|
|
2476
2652
|
}
|
|
2477
2653
|
),
|
|
@@ -2488,10 +2664,10 @@ function Switch({
|
|
|
2488
2664
|
var import_react24 = require("react");
|
|
2489
2665
|
|
|
2490
2666
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2491
|
-
var Textarea_default = {"formGroup":"
|
|
2667
|
+
var Textarea_default = {"formGroup":"bds111Textarea-formGroup","textarea":"bds111Textarea-textarea","textareaError":"bds111Textarea-textareaError"};
|
|
2492
2668
|
|
|
2493
2669
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2494
|
-
var
|
|
2670
|
+
var import_design_system_foundation46 = require("@boostdev/design-system-foundation");
|
|
2495
2671
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2496
2672
|
function Textarea({
|
|
2497
2673
|
label,
|
|
@@ -2506,7 +2682,7 @@ function Textarea({
|
|
|
2506
2682
|
const hintId = id + "hint";
|
|
2507
2683
|
const errorId = id + "error";
|
|
2508
2684
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2509
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(InputContainer, { className: (0,
|
|
2685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(InputContainer, { className: (0, import_design_system_foundation46.cn)(Textarea_default.formGroup, className), children: [
|
|
2510
2686
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Label, { id, label }),
|
|
2511
2687
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2512
2688
|
"textarea",
|
|
@@ -2517,7 +2693,7 @@ function Textarea({
|
|
|
2517
2693
|
"aria-describedby": describedBy,
|
|
2518
2694
|
"aria-required": required || void 0,
|
|
2519
2695
|
required,
|
|
2520
|
-
className: (0,
|
|
2696
|
+
className: (0, import_design_system_foundation46.cn)(Textarea_default.textarea, error ? Textarea_default.textareaError : void 0),
|
|
2521
2697
|
...props
|
|
2522
2698
|
}
|
|
2523
2699
|
),
|
|
@@ -2527,10 +2703,10 @@ function Textarea({
|
|
|
2527
2703
|
}
|
|
2528
2704
|
|
|
2529
2705
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2530
|
-
var ButtonGroup_default = {"buttonGroup":"
|
|
2706
|
+
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"};
|
|
2531
2707
|
|
|
2532
2708
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2533
|
-
var
|
|
2709
|
+
var import_design_system_foundation47 = require("@boostdev/design-system-foundation");
|
|
2534
2710
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2535
2711
|
function ButtonGroup({ children, className, variant, "aria-label": ariaLabel }) {
|
|
2536
2712
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
@@ -2538,17 +2714,17 @@ function ButtonGroup({ children, className, variant, "aria-label": ariaLabel })
|
|
|
2538
2714
|
{
|
|
2539
2715
|
role: "group",
|
|
2540
2716
|
"aria-label": ariaLabel,
|
|
2541
|
-
className: (0,
|
|
2717
|
+
className: (0, import_design_system_foundation47.cn)(ButtonGroup_default.buttonGroup, className, variant && ButtonGroup_default[`--variant_${variant}`]),
|
|
2542
2718
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: ButtonGroup_default.container, children })
|
|
2543
2719
|
}
|
|
2544
2720
|
);
|
|
2545
2721
|
}
|
|
2546
2722
|
|
|
2547
2723
|
// src/components/layout/Card/Card.module.css
|
|
2548
|
-
var Card_default = {"card":"
|
|
2724
|
+
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"};
|
|
2549
2725
|
|
|
2550
2726
|
// src/components/layout/Card/Card.tsx
|
|
2551
|
-
var
|
|
2727
|
+
var import_design_system_foundation48 = require("@boostdev/design-system-foundation");
|
|
2552
2728
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2553
2729
|
function Card({
|
|
2554
2730
|
children,
|
|
@@ -2560,7 +2736,7 @@ function Card({
|
|
|
2560
2736
|
onClick,
|
|
2561
2737
|
"aria-label": ariaLabel
|
|
2562
2738
|
}) {
|
|
2563
|
-
const classNames = (0,
|
|
2739
|
+
const classNames = (0, import_design_system_foundation48.cn)(
|
|
2564
2740
|
Card_default.card,
|
|
2565
2741
|
Card_default[`--${variant}`],
|
|
2566
2742
|
Card_default[`--padding-${padding}`],
|
|
@@ -2583,10 +2759,10 @@ function Card({
|
|
|
2583
2759
|
}
|
|
2584
2760
|
|
|
2585
2761
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2586
|
-
var SectionHeader_default = {"sectionHeader":"
|
|
2762
|
+
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"};
|
|
2587
2763
|
|
|
2588
2764
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2589
|
-
var
|
|
2765
|
+
var import_design_system_foundation49 = require("@boostdev/design-system-foundation");
|
|
2590
2766
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2591
2767
|
function SectionHeader({
|
|
2592
2768
|
title,
|
|
@@ -2597,24 +2773,24 @@ function SectionHeader({
|
|
|
2597
2773
|
titleAs = "h2"
|
|
2598
2774
|
}) {
|
|
2599
2775
|
const Title = titleAs;
|
|
2600
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: (0,
|
|
2776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: (0, import_design_system_foundation49.cn)(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], className), children: [
|
|
2601
2777
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Title, { className: SectionHeader_default.title, children: title }),
|
|
2602
2778
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
2603
2779
|
] });
|
|
2604
2780
|
}
|
|
2605
2781
|
|
|
2606
2782
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2607
|
-
var IconWrapper_default = {"wrapper":"
|
|
2783
|
+
var IconWrapper_default = {"wrapper":"bds111IconWrapper-wrapper"};
|
|
2608
2784
|
|
|
2609
2785
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2610
|
-
var
|
|
2786
|
+
var import_design_system_foundation50 = require("@boostdev/design-system-foundation");
|
|
2611
2787
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2612
2788
|
function IconWrapper({ children, className, "aria-hidden": ariaHidden }) {
|
|
2613
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: (0,
|
|
2789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: (0, import_design_system_foundation50.cn)(className, IconWrapper_default.wrapper), "aria-hidden": ariaHidden, children });
|
|
2614
2790
|
}
|
|
2615
2791
|
|
|
2616
2792
|
// src/index.ts
|
|
2617
|
-
var
|
|
2793
|
+
var import_design_system_foundation51 = require("@boostdev/design-system-foundation");
|
|
2618
2794
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2619
2795
|
0 && (module.exports = {
|
|
2620
2796
|
Accordion,
|