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