@boostdev/design-system-components 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +20 -18
- package/dist/client.cjs +236 -153
- package/dist/client.css +785 -702
- package/dist/client.d.cts +53 -94
- package/dist/client.d.ts +53 -94
- package/dist/client.js +237 -163
- package/dist/index.cjs +236 -153
- package/dist/index.css +785 -702
- package/dist/index.d.cts +53 -94
- package/dist/index.d.ts +53 -94
- package/dist/index.js +237 -163
- 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 +303 -0
- package/dist/web-components.js +1968 -0
- package/package.json +29 -7
- package/src/components/interaction/Button/Button.module.css +14 -11
- 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 +12 -12
- package/src/components/interaction/Command/Command.stories.tsx +1 -1
- package/src/components/interaction/Command/Command.tsx +2 -2
- package/src/components/interaction/Dialog/Dialog.module.css +3 -3
- package/src/components/interaction/Dialog/Dialog.stories.tsx +1 -1
- package/src/components/interaction/Dialog/Dialog.tsx +2 -2
- package/src/components/interaction/Drawer/Drawer.mdx +14 -0
- package/src/components/interaction/Drawer/Drawer.module.css +3 -3
- package/src/components/interaction/Drawer/Drawer.stories.tsx +1 -1
- package/src/components/interaction/Drawer/Drawer.tsx +2 -2
- package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +3 -3
- 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 +72 -15
- package/src/components/interaction/Popover/Popover.spec.tsx +68 -4
- package/src/components/interaction/Popover/Popover.stories.tsx +1 -1
- package/src/components/interaction/Popover/Popover.tsx +76 -20
- package/src/components/interaction/Rating/Rating.module.css +2 -2
- 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 +16 -11
- 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 +5 -5
- 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.module.css +2 -2
- 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 -8
- 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 +8 -8
- 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.module.css +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 +4 -4
- 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 +6 -6
- 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.module.css +2 -2
- 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 -5
- 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 +14 -14
- 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 +8 -8
- 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 +2 -2
- 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.module.css +1 -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.module.css +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 +3 -3
- 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.module.css +2 -2
- 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.module.css +15 -15
- 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.module.css +2 -2
- 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.module.css +12 -12
- 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.module.css +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 +11 -11
- 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 +4 -4
- 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 +6 -6
- 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.module.css +3 -3
- 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 +4 -4
- 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 +2 -2
- 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 +15 -15
- 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 +8 -8
- 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 +3 -3
- 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 +3 -3
- 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 +1 -1
- 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 +3 -3
- 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.module.css +3 -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 +11 -11
- 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 +2 -2
- 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.module.css +1 -1
- 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 +10 -2
- package/src/index.ts +3 -0
- package/src/native/ThemeContext.tsx +28 -0
- package/src/native/tokens.ts +13 -0
- package/src/native.ts +39 -0
- package/src/react-augment.d.ts +13 -0
- package/src/stories/DesignSystem/Borders.mdx +7 -7
- package/src/stories/DesignSystem/Colors.mdx +28 -29
- package/src/stories/DesignSystem/DarkMode.mdx +130 -0
- package/src/stories/DesignSystem/Elevation.mdx +4 -4
- package/src/stories/DesignSystem/Grid.mdx +5 -5
- package/src/stories/DesignSystem/Motion.mdx +2 -2
- package/src/stories/DesignSystem/Overview.mdx +1 -1
- package/src/stories/DesignSystem/Spacing.mdx +3 -3
- package/src/stories/DesignSystem/Typography.mdx +6 -6
- 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.stories.tsx +60 -0
- package/src/web-components/interaction/BdsPopover.stories.tsx +70 -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 +126 -0
- package/src/web-components/interaction/bds-popover.ts +217 -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 +14 -0
- package/src/web-components/ui/BdsAlert.stories.tsx +60 -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":"bds110Accordion-accordion","item":"bds110Accordion-item","heading":"bds110Accordion-heading","trigger":"bds110Accordion-trigger","triggerLabel":"bds110Accordion-triggerLabel","chevron":"bds110Accordion-chevron","--open":"bds110Accordion---open","panel":"bds110Accordion-panel","panelContent":"bds110Accordion-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":"bds110Alert-alert","--variant_info":"bds110Alert---variant_info","--variant_success":"bds110Alert---variant_success","--variant_warning":"bds110Alert---variant_warning","--variant_error":"bds110Alert---variant_error","icon":"bds110Alert-icon","content":"bds110Alert-content","title":"bds110Alert-title","dismiss":"bds110Alert-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":"bds110Avatar-avatar","--fallback":"bds110Avatar---fallback","--size_small":"bds110Avatar---size_small","--size_medium":"bds110Avatar---size_medium","--size_large":"bds110Avatar---size_large","image":"bds110Avatar-image","initials":"bds110Avatar-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":"bds110Badge-badge","--variant_primary":"bds110Badge---variant_primary","--variant_secondary":"bds110Badge---variant_secondary","--variant_success":"bds110Badge---variant_success","--variant_error":"bds110Badge---variant_error","--variant_warning":"bds110Badge---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":"bds110Breadcrumb-breadcrumb","list":"bds110Breadcrumb-list","item":"bds110Breadcrumb-item","link":"bds110Breadcrumb-link","separator":"bds110Breadcrumb-separator","current":"bds110Breadcrumb-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":"bds110Collapsible-collapsible","summary":"bds110Collapsible-summary","summaryContent":"bds110Collapsible-summaryContent","icon":"bds110Collapsible-icon","content":"bds110Collapsible-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":"bds110Calendar-calendar","header":"bds110Calendar-header","monthYear":"bds110Calendar-monthYear","navBtn":"bds110Calendar-navBtn","grid":"bds110Calendar-grid","weekday":"bds110Calendar-weekday","empty":"bds110Calendar-empty","day":"bds110Calendar-day","disabled":"bds110Calendar-disabled","selected":"bds110Calendar-selected","today":"bds110Calendar-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":"bds110Carousel-carousel","track":"bds110Carousel-track","slide":"bds110Carousel-slide","navBtn":"bds110Carousel-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":"bds110DescriptionList-list","group":"bds110DescriptionList-group","term":"bds110DescriptionList-term","details":"bds110DescriptionList-details","--layout_inline":"bds110DescriptionList---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":"bds110Link-link","--variant_default":"bds110Link---variant_default","--variant_subtle":"bds110Link---variant_subtle","--variant_standalone":"bds110Link---variant_standalone","externalLabel":"bds110Link-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":"bds110Loading-loading","spinner":"bds110Loading-spinner","--size_small":"bds110Loading---size_small","--size_large":"bds110Loading---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":"bds110NotificationBanner-banner","--variant_info":"bds110NotificationBanner---variant_info","--variant_success":"bds110NotificationBanner---variant_success","--variant_warning":"bds110NotificationBanner---variant_warning","--variant_error":"bds110NotificationBanner---variant_error","content":"bds110NotificationBanner-content","action":"bds110NotificationBanner-action","dismiss":"bds110NotificationBanner-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":"bds110Pagination-pagination","list":"bds110Pagination-list","button":"bds110Pagination-button","--active":"bds110Pagination---active","--nav":"bds110Pagination---nav","ellipsis":"bds110Pagination-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":"bds110Progress-container","labelRow":"bds110Progress-labelRow","value":"bds110Progress-value","track":"bds110Progress-track","--size_small":"bds110Progress---size_small","--size_medium":"bds110Progress---size_medium","--size_large":"bds110Progress---size_large","fill":"bds110Progress-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":"bds110ProgressCircle-wrapper","svg":"bds110ProgressCircle-svg","track":"bds110ProgressCircle-track","fill":"bds110ProgressCircle-fill","value":"bds110ProgressCircle-value","--size_small":"bds110ProgressCircle---size_small","--size_medium":"bds110ProgressCircle---size_medium","--size_large":"bds110ProgressCircle---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":"bds110Separator-separator","--horizontal":"bds110Separator---horizontal","--vertical":"bds110Separator---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":"bds110Skeleton-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":"bds110SkipLink-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":"bds110Table-wrapper","table":"bds110Table-table","caption":"bds110Table-caption","thead":"bds110Table-thead","th":"bds110Table-th","--sortable":"bds110Table---sortable","sortButton":"bds110Table-sortButton","sortIcon":"bds110Table-sortIcon","--sort-active":"bds110Table---sort-active","--sort-desc":"bds110Table---sort-desc","tbody":"bds110Table-tbody","tr":"bds110Table-tr","td":"bds110Table-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":"bds110Tabs-tabs","tabList":"bds110Tabs-tabList","tab":"bds110Tabs-tab","--active":"bds110Tabs---active","panel":"bds110Tabs-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":"bds110Tooltip-wrapper","tooltip":"bds110Tooltip-tooltip","--placement_top":"bds110Tooltip---placement_top","--placement_bottom":"bds110Tooltip---placement_bottom","--placement_left":"bds110Tooltip---placement_left","--placement_right":"bds110Tooltip---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":"bds110Typography-typography","--h1":"bds110Typography---h1","--h2":"bds110Typography---h2","--h3":"bds110Typography---h3","--body":"bds110Typography---body","--body_s":"bds110Typography---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":"bds110Button-button","--default":"bds110Button---default","--ghost":"bds110Button---ghost","--size_small":"bds110Button---size_small","--size_medium":"bds110Button---size_medium","--size_large":"bds110Button---size_large","--hasPulse":"bds110Button---hasPulse","iconStart":"bds110Button-iconStart","iconEnd":"bds110Button-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}`],
|
|
@@ -1110,10 +1121,10 @@ function Button({
|
|
|
1110
1121
|
var import_react6 = require("react");
|
|
1111
1122
|
|
|
1112
1123
|
// src/components/interaction/Command/Command.module.css
|
|
1113
|
-
var Command_default = {"dialog":"
|
|
1124
|
+
var Command_default = {"dialog":"bds110Command-dialog","palette":"bds110Command-palette","searchRow":"bds110Command-searchRow","searchIcon":"bds110Command-searchIcon","search":"bds110Command-search","escHint":"bds110Command-escHint","list":"bds110Command-list","groupList":"bds110Command-groupList","group":"bds110Command-group","item":"bds110Command-item","itemActive":"bds110Command-itemActive","itemLabel":"bds110Command-itemLabel","itemDesc":"bds110Command-itemDesc","shortcut":"bds110Command-shortcut","empty":"bds110Command-empty"};
|
|
1114
1125
|
|
|
1115
1126
|
// src/components/interaction/Command/Command.tsx
|
|
1116
|
-
var
|
|
1127
|
+
var import_design_system_foundation24 = require("@boostdev/design-system-foundation");
|
|
1117
1128
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1118
1129
|
function Command({
|
|
1119
1130
|
isOpen,
|
|
@@ -1193,7 +1204,7 @@ function Command({
|
|
|
1193
1204
|
"dialog",
|
|
1194
1205
|
{
|
|
1195
1206
|
ref: dialogRef,
|
|
1196
|
-
className: (0,
|
|
1207
|
+
className: (0, import_design_system_foundation24.cn)(Command_default.dialog, className),
|
|
1197
1208
|
"aria-label": "Command palette",
|
|
1198
1209
|
"aria-modal": "true",
|
|
1199
1210
|
onCancel: handleCancel,
|
|
@@ -1232,7 +1243,7 @@ function Command({
|
|
|
1232
1243
|
id: `cmd-${item.id}`,
|
|
1233
1244
|
role: "option",
|
|
1234
1245
|
"aria-selected": isActive,
|
|
1235
|
-
className: (0,
|
|
1246
|
+
className: (0, import_design_system_foundation24.cn)(Command_default.item, isActive && Command_default.itemActive),
|
|
1236
1247
|
onPointerDown: (e) => e.preventDefault(),
|
|
1237
1248
|
onClick: () => selectItem(item),
|
|
1238
1249
|
children: [
|
|
@@ -1258,10 +1269,10 @@ function Command({
|
|
|
1258
1269
|
var import_react7 = require("react");
|
|
1259
1270
|
|
|
1260
1271
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1261
|
-
var Dialog_default = {"dialog":"
|
|
1272
|
+
var Dialog_default = {"dialog":"bds110Dialog-dialog","dialogContent":"bds110Dialog-dialogContent","closeForm":"bds110Dialog-closeForm","closeButton":"bds110Dialog-closeButton"};
|
|
1262
1273
|
|
|
1263
1274
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1264
|
-
var
|
|
1275
|
+
var import_design_system_foundation25 = require("@boostdev/design-system-foundation");
|
|
1265
1276
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1266
1277
|
var FOCUSABLE_SELECTOR = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
1267
1278
|
function Dialog({ children, isOpen = false, className, onClose }) {
|
|
@@ -1314,7 +1325,7 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1314
1325
|
"dialog",
|
|
1315
1326
|
{
|
|
1316
1327
|
ref: dialogRef,
|
|
1317
|
-
className: (0,
|
|
1328
|
+
className: (0, import_design_system_foundation25.cn)(className, Dialog_default.dialog),
|
|
1318
1329
|
"aria-modal": "true",
|
|
1319
1330
|
onClick: handleBackdropClick,
|
|
1320
1331
|
onCancel: handleCancel,
|
|
@@ -1340,10 +1351,10 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1340
1351
|
var import_react8 = require("react");
|
|
1341
1352
|
|
|
1342
1353
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1343
|
-
var Drawer_default = {"drawer":"
|
|
1354
|
+
var Drawer_default = {"drawer":"bds110Drawer-drawer","panel":"bds110Drawer-panel","--side_right":"bds110Drawer---side_right","--side_left":"bds110Drawer---side_left","header":"bds110Drawer-header","closeButton":"bds110Drawer-closeButton","body":"bds110Drawer-body"};
|
|
1344
1355
|
|
|
1345
1356
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1346
|
-
var
|
|
1357
|
+
var import_design_system_foundation26 = require("@boostdev/design-system-foundation");
|
|
1347
1358
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1348
1359
|
function Drawer({
|
|
1349
1360
|
isOpen,
|
|
@@ -1383,7 +1394,7 @@ function Drawer({
|
|
|
1383
1394
|
"dialog",
|
|
1384
1395
|
{
|
|
1385
1396
|
ref: dialogRef,
|
|
1386
|
-
className: (0,
|
|
1397
|
+
className: (0, import_design_system_foundation26.cn)(Drawer_default.drawer, Drawer_default[`--side_${side}`], className),
|
|
1387
1398
|
"aria-label": ariaLabel,
|
|
1388
1399
|
"aria-modal": "true",
|
|
1389
1400
|
onClick: handleClick,
|
|
@@ -1412,10 +1423,10 @@ function Drawer({
|
|
|
1412
1423
|
var import_react9 = require("react");
|
|
1413
1424
|
|
|
1414
1425
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1415
|
-
var DropdownMenu_default = {"wrapper":"
|
|
1426
|
+
var DropdownMenu_default = {"wrapper":"bds110DropdownMenu-wrapper","menu":"bds110DropdownMenu-menu","--placement_bottom-start":"bds110DropdownMenu---placement_bottom-start","--placement_bottom-end":"bds110DropdownMenu---placement_bottom-end","separator":"bds110DropdownMenu-separator","item":"bds110DropdownMenu-item","icon":"bds110DropdownMenu-icon"};
|
|
1416
1427
|
|
|
1417
1428
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1418
|
-
var
|
|
1429
|
+
var import_design_system_foundation27 = require("@boostdev/design-system-foundation");
|
|
1419
1430
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1420
1431
|
function DropdownMenu({
|
|
1421
1432
|
trigger,
|
|
@@ -1484,14 +1495,14 @@ function DropdownMenu({
|
|
|
1484
1495
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1485
1496
|
}
|
|
1486
1497
|
}) : trigger;
|
|
1487
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref: containerRef, className: (0,
|
|
1498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref: containerRef, className: (0, import_design_system_foundation27.cn)(DropdownMenu_default.wrapper, className), children: [
|
|
1488
1499
|
triggerEl,
|
|
1489
1500
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1490
1501
|
"ul",
|
|
1491
1502
|
{
|
|
1492
1503
|
id: menuId,
|
|
1493
1504
|
role: "menu",
|
|
1494
|
-
className: (0,
|
|
1505
|
+
className: (0, import_design_system_foundation27.cn)(DropdownMenu_default.menu, DropdownMenu_default[`--placement_${placement}`]),
|
|
1495
1506
|
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("li", { role: "presentation", children: [
|
|
1496
1507
|
item.separator && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("hr", { className: DropdownMenu_default.separator, role: "separator" }),
|
|
1497
1508
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
@@ -1525,11 +1536,16 @@ function DropdownMenu({
|
|
|
1525
1536
|
var import_react10 = require("react");
|
|
1526
1537
|
|
|
1527
1538
|
// src/components/interaction/Popover/Popover.module.css
|
|
1528
|
-
var Popover_default = {"wrapper":"
|
|
1539
|
+
var Popover_default = {"wrapper":"bds110Popover-wrapper","panel":"bds110Popover-panel"};
|
|
1529
1540
|
|
|
1530
1541
|
// src/components/interaction/Popover/Popover.tsx
|
|
1531
|
-
var
|
|
1542
|
+
var import_design_system_foundation28 = require("@boostdev/design-system-foundation");
|
|
1532
1543
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1544
|
+
var GAP = 8;
|
|
1545
|
+
if (typeof window !== "undefined" && !(typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name: --a"))) {
|
|
1546
|
+
import("@oddbird/css-anchor-positioning").catch(() => {
|
|
1547
|
+
});
|
|
1548
|
+
}
|
|
1533
1549
|
function Popover({
|
|
1534
1550
|
children,
|
|
1535
1551
|
content,
|
|
@@ -1539,43 +1555,85 @@ function Popover({
|
|
|
1539
1555
|
}) {
|
|
1540
1556
|
const [isOpen, setIsOpen] = (0, import_react10.useState)(false);
|
|
1541
1557
|
const containerRef = (0, import_react10.useRef)(null);
|
|
1542
|
-
const
|
|
1558
|
+
const dialogRef = (0, import_react10.useRef)(null);
|
|
1559
|
+
const rawId = (0, import_react10.useId)();
|
|
1560
|
+
const anchorName = `--popover-${rawId.replace(/\W/g, "") || "a"}`;
|
|
1561
|
+
const panelId = rawId;
|
|
1543
1562
|
(0, import_react10.useEffect)(() => {
|
|
1544
1563
|
if (!isOpen) return;
|
|
1545
|
-
const
|
|
1546
|
-
if (!containerRef.current
|
|
1564
|
+
const handleMouseDown = (e) => {
|
|
1565
|
+
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
1547
1566
|
setIsOpen(false);
|
|
1548
1567
|
}
|
|
1549
1568
|
};
|
|
1550
1569
|
const handleKeyDown = (e) => {
|
|
1551
1570
|
if (e.key === "Escape") setIsOpen(false);
|
|
1552
1571
|
};
|
|
1553
|
-
document.addEventListener("
|
|
1572
|
+
document.addEventListener("mousedown", handleMouseDown);
|
|
1554
1573
|
document.addEventListener("keydown", handleKeyDown);
|
|
1555
1574
|
return () => {
|
|
1556
|
-
document.removeEventListener("
|
|
1575
|
+
document.removeEventListener("mousedown", handleMouseDown);
|
|
1557
1576
|
document.removeEventListener("keydown", handleKeyDown);
|
|
1558
1577
|
};
|
|
1559
1578
|
}, [isOpen]);
|
|
1579
|
+
const constrainPanel = (0, import_react10.useCallback)(() => {
|
|
1580
|
+
const dialog = dialogRef.current;
|
|
1581
|
+
const container = containerRef.current;
|
|
1582
|
+
if (!dialog || !container) return;
|
|
1583
|
+
const rect = container.getBoundingClientRect();
|
|
1584
|
+
const vw = window.innerWidth;
|
|
1585
|
+
const vh = window.innerHeight;
|
|
1586
|
+
dialog.style.maxHeight = "";
|
|
1587
|
+
dialog.style.maxWidth = "";
|
|
1588
|
+
if (placement === "bottom") {
|
|
1589
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.bottom - GAP * 2)}px`;
|
|
1590
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.left - GAP)}px`;
|
|
1591
|
+
} else if (placement === "top") {
|
|
1592
|
+
dialog.style.maxHeight = `${Math.max(0, rect.top - GAP * 2)}px`;
|
|
1593
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.left - GAP)}px`;
|
|
1594
|
+
} else if (placement === "right") {
|
|
1595
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.top - GAP)}px`;
|
|
1596
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.right - GAP * 2)}px`;
|
|
1597
|
+
} else {
|
|
1598
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.top - GAP)}px`;
|
|
1599
|
+
dialog.style.maxWidth = `${Math.max(0, rect.left - GAP * 2)}px`;
|
|
1600
|
+
}
|
|
1601
|
+
}, [placement]);
|
|
1602
|
+
const toggle = (0, import_react10.useCallback)(() => {
|
|
1603
|
+
if (isOpen) {
|
|
1604
|
+
setIsOpen(false);
|
|
1605
|
+
} else {
|
|
1606
|
+
constrainPanel();
|
|
1607
|
+
setIsOpen(true);
|
|
1608
|
+
}
|
|
1609
|
+
}, [isOpen, constrainPanel]);
|
|
1560
1610
|
const trigger = (0, import_react10.isValidElement)(children) ? (0, import_react10.cloneElement)(children, {
|
|
1561
1611
|
"aria-expanded": isOpen,
|
|
1562
1612
|
"aria-controls": panelId,
|
|
1563
1613
|
"aria-haspopup": true,
|
|
1614
|
+
style: {
|
|
1615
|
+
...children.props.style,
|
|
1616
|
+
anchorName
|
|
1617
|
+
},
|
|
1564
1618
|
onClick: (e) => {
|
|
1565
|
-
|
|
1619
|
+
toggle();
|
|
1566
1620
|
const existingOnClick = children.props.onClick;
|
|
1567
1621
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1568
1622
|
}
|
|
1569
1623
|
}) : children;
|
|
1570
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { ref: containerRef, className: (0,
|
|
1624
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { ref: containerRef, className: (0, import_design_system_foundation28.cn)(Popover_default.wrapper, className), children: [
|
|
1571
1625
|
trigger,
|
|
1572
|
-
|
|
1573
|
-
"
|
|
1626
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1627
|
+
"dialog",
|
|
1574
1628
|
{
|
|
1629
|
+
ref: dialogRef,
|
|
1575
1630
|
id: panelId,
|
|
1631
|
+
open: isOpen,
|
|
1632
|
+
"data-placement": placement,
|
|
1576
1633
|
role: ariaLabel ? "region" : void 0,
|
|
1577
1634
|
"aria-label": ariaLabel,
|
|
1578
|
-
className:
|
|
1635
|
+
className: Popover_default.panel,
|
|
1636
|
+
style: { positionAnchor: anchorName },
|
|
1579
1637
|
children: content
|
|
1580
1638
|
}
|
|
1581
1639
|
)
|
|
@@ -1583,23 +1641,23 @@ function Popover({
|
|
|
1583
1641
|
}
|
|
1584
1642
|
|
|
1585
1643
|
// src/components/interaction/Rating/Rating.module.css
|
|
1586
|
-
var Rating_default = {"rating":"
|
|
1644
|
+
var Rating_default = {"rating":"bds110Rating-rating","star":"bds110Rating-star","--filled":"bds110Rating---filled"};
|
|
1587
1645
|
|
|
1588
1646
|
// src/components/interaction/Rating/Rating.tsx
|
|
1589
|
-
var
|
|
1647
|
+
var import_design_system_foundation29 = require("@boostdev/design-system-foundation");
|
|
1590
1648
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1591
1649
|
function Rating({ value, max = 5, className }) {
|
|
1592
1650
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1593
1651
|
"div",
|
|
1594
1652
|
{
|
|
1595
|
-
className: (0,
|
|
1653
|
+
className: (0, import_design_system_foundation29.cn)(Rating_default.rating, className),
|
|
1596
1654
|
role: "img",
|
|
1597
1655
|
"aria-label": `${value} out of ${max} stars`,
|
|
1598
1656
|
children: Array.from({ length: max }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1599
1657
|
"svg",
|
|
1600
1658
|
{
|
|
1601
1659
|
"aria-hidden": "true",
|
|
1602
|
-
className: (0,
|
|
1660
|
+
className: (0, import_design_system_foundation29.cn)(Rating_default.star, i < value && Rating_default["--filled"]),
|
|
1603
1661
|
fill: "currentColor",
|
|
1604
1662
|
viewBox: "0 0 24 24",
|
|
1605
1663
|
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 +1672,15 @@ function Rating({ value, max = 5, className }) {
|
|
|
1614
1672
|
var import_react11 = require("react");
|
|
1615
1673
|
|
|
1616
1674
|
// src/components/interaction/Toast/Toast.module.css
|
|
1617
|
-
var Toast_default = {"toastContainer":"
|
|
1675
|
+
var Toast_default = {"toastContainer":"bds110Toast-toastContainer","toast":"bds110Toast-toast","--variant_success":"bds110Toast---variant_success","--variant_warning":"bds110Toast---variant_warning","--variant_info":"bds110Toast---variant_info","--variant_error":"bds110Toast---variant_error","message":"bds110Toast-message","closeButton":"bds110Toast-closeButton"};
|
|
1618
1676
|
|
|
1619
1677
|
// src/components/interaction/Toast/Toast.tsx
|
|
1620
|
-
var
|
|
1678
|
+
var import_design_system_foundation30 = require("@boostdev/design-system-foundation");
|
|
1621
1679
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1622
1680
|
var ToastContext = (0, import_react11.createContext)(void 0);
|
|
1623
1681
|
function ToastProvider({ children }) {
|
|
1624
1682
|
const [toasts, setToasts] = (0, import_react11.useState)([]);
|
|
1683
|
+
const containerRef = (0, import_react11.useRef)(null);
|
|
1625
1684
|
const showToast = (0, import_react11.useCallback)((message, variant) => {
|
|
1626
1685
|
const id = Math.random().toString(36).substring(2, 9);
|
|
1627
1686
|
setToasts((prev) => [...prev, { id, message, variant }]);
|
|
@@ -1629,17 +1688,39 @@ function ToastProvider({ children }) {
|
|
|
1629
1688
|
const removeToast = (0, import_react11.useCallback)((id) => {
|
|
1630
1689
|
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
1631
1690
|
}, []);
|
|
1691
|
+
(0, import_react11.useEffect)(() => {
|
|
1692
|
+
const container = containerRef.current;
|
|
1693
|
+
if (!container) return;
|
|
1694
|
+
if (toasts.length > 0) {
|
|
1695
|
+
container.showPopover?.();
|
|
1696
|
+
} else {
|
|
1697
|
+
try {
|
|
1698
|
+
container.hidePopover?.();
|
|
1699
|
+
} catch {
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
}, [toasts.length]);
|
|
1632
1703
|
const value = (0, import_react11.useMemo)(() => ({ showToast }), [showToast]);
|
|
1633
1704
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ToastContext.Provider, { value, children: [
|
|
1634
1705
|
children,
|
|
1635
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1636
|
-
|
|
1706
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1707
|
+
"div",
|
|
1637
1708
|
{
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1709
|
+
ref: containerRef,
|
|
1710
|
+
popover: "manual",
|
|
1711
|
+
role: "region",
|
|
1712
|
+
"aria-label": "Notifications",
|
|
1713
|
+
className: Toast_default.toastContainer,
|
|
1714
|
+
children: toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1715
|
+
ToastItem,
|
|
1716
|
+
{
|
|
1717
|
+
toast,
|
|
1718
|
+
onRemove: () => removeToast(toast.id)
|
|
1719
|
+
},
|
|
1720
|
+
toast.id
|
|
1721
|
+
))
|
|
1722
|
+
}
|
|
1723
|
+
)
|
|
1643
1724
|
] });
|
|
1644
1725
|
}
|
|
1645
1726
|
function ToastItem({ toast, onRemove }) {
|
|
@@ -1647,7 +1728,7 @@ function ToastItem({ toast, onRemove }) {
|
|
|
1647
1728
|
const timer = setTimeout(onRemove, 5e3);
|
|
1648
1729
|
return () => clearTimeout(timer);
|
|
1649
1730
|
}, [onRemove]);
|
|
1650
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0,
|
|
1731
|
+
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
1732
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: Toast_default.message, children: toast.message }),
|
|
1652
1733
|
/* @__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
1734
|
] });
|
|
@@ -1664,38 +1745,40 @@ function useToast() {
|
|
|
1664
1745
|
var import_react12 = require("react");
|
|
1665
1746
|
|
|
1666
1747
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1667
|
-
var Checkbox_default = {"checkboxGroup":"
|
|
1748
|
+
var Checkbox_default = {"checkboxGroup":"bds110Checkbox-checkboxGroup","inputWrapper":"bds110Checkbox-inputWrapper","checkbox":"bds110Checkbox-checkbox","checkboxError":"bds110Checkbox-checkboxError"};
|
|
1668
1749
|
|
|
1669
1750
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1670
|
-
var Message_default = {"error":"
|
|
1751
|
+
var Message_default = {"error":"bds110Message-error","hint":"bds110Message-hint"};
|
|
1671
1752
|
|
|
1672
1753
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1754
|
+
var import_design_system_foundation31 = require("@boostdev/design-system-foundation");
|
|
1673
1755
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1674
|
-
var Message = ({ message, type, inputId }) => {
|
|
1756
|
+
var Message = ({ message, type, inputId, className }) => {
|
|
1675
1757
|
if (!message) return null;
|
|
1676
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { id: inputId + type, className: Message_default[type], children: message });
|
|
1758
|
+
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
1759
|
};
|
|
1678
1760
|
|
|
1679
1761
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1680
|
-
var Label_default = {"label":"
|
|
1762
|
+
var Label_default = {"label":"bds110Label-label"};
|
|
1681
1763
|
|
|
1682
1764
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1765
|
+
var import_design_system_foundation32 = require("@boostdev/design-system-foundation");
|
|
1683
1766
|
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 });
|
|
1767
|
+
var Label = ({ label, id, className }) => {
|
|
1768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { htmlFor: id, className: (0, import_design_system_foundation32.cn)(Label_default.label, className), children: label });
|
|
1686
1769
|
};
|
|
1687
1770
|
|
|
1688
1771
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1689
|
-
var
|
|
1772
|
+
var import_design_system_foundation34 = require("@boostdev/design-system-foundation");
|
|
1690
1773
|
|
|
1691
1774
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1692
|
-
var InputContainer_default = {"container":"
|
|
1775
|
+
var InputContainer_default = {"container":"bds110InputContainer-container"};
|
|
1693
1776
|
|
|
1694
1777
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1695
|
-
var
|
|
1778
|
+
var import_design_system_foundation33 = require("@boostdev/design-system-foundation");
|
|
1696
1779
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1697
1780
|
var InputContainer = ({ children, className }) => {
|
|
1698
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0,
|
|
1781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0, import_design_system_foundation33.cn)(InputContainer_default.container, className), children });
|
|
1699
1782
|
};
|
|
1700
1783
|
|
|
1701
1784
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
@@ -1705,7 +1788,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1705
1788
|
const hintId = id + "hint";
|
|
1706
1789
|
const errorId = id + "error";
|
|
1707
1790
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1708
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(InputContainer, { className: (0,
|
|
1791
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(InputContainer, { className: (0, import_design_system_foundation34.cn)(Checkbox_default.checkboxGroup, className), children: [
|
|
1709
1792
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: Checkbox_default.inputWrapper, children: [
|
|
1710
1793
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1711
1794
|
"input",
|
|
@@ -1715,7 +1798,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1715
1798
|
type: "checkbox",
|
|
1716
1799
|
id,
|
|
1717
1800
|
name,
|
|
1718
|
-
className: (0,
|
|
1801
|
+
className: (0, import_design_system_foundation34.cn)(Checkbox_default.checkbox, error && Checkbox_default.checkboxError),
|
|
1719
1802
|
...props
|
|
1720
1803
|
}
|
|
1721
1804
|
),
|
|
@@ -1730,10 +1813,10 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1730
1813
|
var import_react13 = require("react");
|
|
1731
1814
|
|
|
1732
1815
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
1733
|
-
var CheckboxGroup_default = {"group":"
|
|
1816
|
+
var CheckboxGroup_default = {"group":"bds110CheckboxGroup-group","legend":"bds110CheckboxGroup-legend","required":"bds110CheckboxGroup-required","items":"bds110CheckboxGroup-items"};
|
|
1734
1817
|
|
|
1735
1818
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1736
|
-
var
|
|
1819
|
+
var import_design_system_foundation35 = require("@boostdev/design-system-foundation");
|
|
1737
1820
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1738
1821
|
function CheckboxGroup({
|
|
1739
1822
|
legend,
|
|
@@ -1751,7 +1834,7 @@ function CheckboxGroup({
|
|
|
1751
1834
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1752
1835
|
"fieldset",
|
|
1753
1836
|
{
|
|
1754
|
-
className: (0,
|
|
1837
|
+
className: (0, import_design_system_foundation35.cn)(CheckboxGroup_default.group, className),
|
|
1755
1838
|
disabled,
|
|
1756
1839
|
"aria-required": required || void 0,
|
|
1757
1840
|
"aria-describedby": describedBy,
|
|
@@ -1772,10 +1855,10 @@ function CheckboxGroup({
|
|
|
1772
1855
|
var import_react14 = require("react");
|
|
1773
1856
|
|
|
1774
1857
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1775
|
-
var Combobox_default = {"formGroup":"
|
|
1858
|
+
var Combobox_default = {"formGroup":"bds110Combobox-formGroup","inputWrapper":"bds110Combobox-inputWrapper","input":"bds110Combobox-input","inputError":"bds110Combobox-inputError","chevron":"bds110Combobox-chevron","listbox":"bds110Combobox-listbox","option":"bds110Combobox-option","--highlighted":"bds110Combobox---highlighted","--selected":"bds110Combobox---selected","--disabled":"bds110Combobox---disabled"};
|
|
1776
1859
|
|
|
1777
1860
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1778
|
-
var
|
|
1861
|
+
var import_design_system_foundation36 = require("@boostdev/design-system-foundation");
|
|
1779
1862
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1780
1863
|
function Combobox({
|
|
1781
1864
|
label,
|
|
@@ -1854,7 +1937,7 @@ function Combobox({
|
|
|
1854
1937
|
setIsOpen(false);
|
|
1855
1938
|
}
|
|
1856
1939
|
};
|
|
1857
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(InputContainer, { className: (0,
|
|
1940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(InputContainer, { className: (0, import_design_system_foundation36.cn)(Combobox_default.formGroup, className), children: [
|
|
1858
1941
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Label, { id, label }),
|
|
1859
1942
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ref: containerRef, className: Combobox_default.inputWrapper, children: [
|
|
1860
1943
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1876,7 +1959,7 @@ function Combobox({
|
|
|
1876
1959
|
placeholder,
|
|
1877
1960
|
value: inputValue,
|
|
1878
1961
|
disabled,
|
|
1879
|
-
className: (0,
|
|
1962
|
+
className: (0, import_design_system_foundation36.cn)(Combobox_default.input, error ? Combobox_default.inputError : void 0),
|
|
1880
1963
|
onChange: handleInputChange,
|
|
1881
1964
|
onKeyDown: handleKeyDown,
|
|
1882
1965
|
onFocus: () => setIsOpen(true)
|
|
@@ -1896,7 +1979,7 @@ function Combobox({
|
|
|
1896
1979
|
role: "option",
|
|
1897
1980
|
"aria-selected": option.value === value,
|
|
1898
1981
|
"aria-disabled": option.disabled,
|
|
1899
|
-
className: (0,
|
|
1982
|
+
className: (0, import_design_system_foundation36.cn)(
|
|
1900
1983
|
Combobox_default.option,
|
|
1901
1984
|
index === highlightedIndex ? Combobox_default["--highlighted"] : void 0,
|
|
1902
1985
|
option.value === value ? Combobox_default["--selected"] : void 0,
|
|
@@ -1922,10 +2005,10 @@ function Combobox({
|
|
|
1922
2005
|
var import_react15 = require("react");
|
|
1923
2006
|
|
|
1924
2007
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
1925
|
-
var FileInput_default = {"formGroup":"
|
|
2008
|
+
var FileInput_default = {"formGroup":"bds110FileInput-formGroup","fieldLabel":"bds110FileInput-fieldLabel","dropZone":"bds110FileInput-dropZone","isDragging":"bds110FileInput-isDragging","hasError":"bds110FileInput-hasError","isDisabled":"bds110FileInput-isDisabled","icon":"bds110FileInput-icon","prompt":"bds110FileInput-prompt","acceptHint":"bds110FileInput-acceptHint","hiddenInput":"bds110FileInput-hiddenInput"};
|
|
1926
2009
|
|
|
1927
2010
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1928
|
-
var
|
|
2011
|
+
var import_design_system_foundation37 = require("@boostdev/design-system-foundation");
|
|
1929
2012
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1930
2013
|
function FileInput({
|
|
1931
2014
|
label,
|
|
@@ -1975,12 +2058,12 @@ function FileInput({
|
|
|
1975
2058
|
if (!disabled) setIsDragging(true);
|
|
1976
2059
|
};
|
|
1977
2060
|
const handleDragLeave = () => setIsDragging(false);
|
|
1978
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputContainer, { className: (0,
|
|
2061
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputContainer, { className: (0, import_design_system_foundation37.cn)(FileInput_default.formGroup, className), children: [
|
|
1979
2062
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1980
2063
|
"label",
|
|
1981
2064
|
{
|
|
1982
2065
|
htmlFor: uid,
|
|
1983
|
-
className: (0,
|
|
2066
|
+
className: (0, import_design_system_foundation37.cn)(FileInput_default.dropZone, isDragging && FileInput_default.isDragging, error && FileInput_default.hasError, disabled && FileInput_default.isDisabled),
|
|
1984
2067
|
onDrop: handleDrop,
|
|
1985
2068
|
onDragOver: handleDragOver,
|
|
1986
2069
|
onDragLeave: handleDragLeave,
|
|
@@ -2022,10 +2105,10 @@ function FileInput({
|
|
|
2022
2105
|
var import_react16 = require("react");
|
|
2023
2106
|
|
|
2024
2107
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
2025
|
-
var FormInput_default = {"formGroup":"
|
|
2108
|
+
var FormInput_default = {"formGroup":"bds110FormInput-formGroup","input":"bds110FormInput-input","inputError":"bds110FormInput-inputError"};
|
|
2026
2109
|
|
|
2027
2110
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2028
|
-
var
|
|
2111
|
+
var import_design_system_foundation38 = require("@boostdev/design-system-foundation");
|
|
2029
2112
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2030
2113
|
function FormInput({
|
|
2031
2114
|
label,
|
|
@@ -2041,7 +2124,7 @@ function FormInput({
|
|
|
2041
2124
|
const hintId = id + "hint";
|
|
2042
2125
|
const errorId = id + "error";
|
|
2043
2126
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2044
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(InputContainer, { className: (0,
|
|
2127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(InputContainer, { className: (0, import_design_system_foundation38.cn)(FormInput_default.formGroup, className), children: [
|
|
2045
2128
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Label, { id, label }),
|
|
2046
2129
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2047
2130
|
"input",
|
|
@@ -2053,7 +2136,7 @@ function FormInput({
|
|
|
2053
2136
|
id,
|
|
2054
2137
|
name,
|
|
2055
2138
|
required,
|
|
2056
|
-
className: (0,
|
|
2139
|
+
className: (0, import_design_system_foundation38.cn)(FormInput_default.input, error && FormInput_default.inputError),
|
|
2057
2140
|
...props
|
|
2058
2141
|
}
|
|
2059
2142
|
),
|
|
@@ -2066,10 +2149,10 @@ function FormInput({
|
|
|
2066
2149
|
var import_react17 = require("react");
|
|
2067
2150
|
|
|
2068
2151
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2069
|
-
var NumberInput_default = {"formGroup":"
|
|
2152
|
+
var NumberInput_default = {"formGroup":"bds110NumberInput-formGroup","inputRow":"bds110NumberInput-inputRow","input":"bds110NumberInput-input","inputError":"bds110NumberInput-inputError","stepper":"bds110NumberInput-stepper"};
|
|
2070
2153
|
|
|
2071
2154
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2072
|
-
var
|
|
2155
|
+
var import_design_system_foundation39 = require("@boostdev/design-system-foundation");
|
|
2073
2156
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2074
2157
|
function NumberInput({
|
|
2075
2158
|
label,
|
|
@@ -2108,7 +2191,7 @@ function NumberInput({
|
|
|
2108
2191
|
}
|
|
2109
2192
|
onChange?.(next);
|
|
2110
2193
|
};
|
|
2111
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(InputContainer, { className: (0,
|
|
2194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(InputContainer, { className: (0, import_design_system_foundation39.cn)(NumberInput_default.formGroup, className), children: [
|
|
2112
2195
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Label, { id: uid, label }),
|
|
2113
2196
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: NumberInput_default.inputRow, children: [
|
|
2114
2197
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
@@ -2138,7 +2221,7 @@ function NumberInput({
|
|
|
2138
2221
|
disabled,
|
|
2139
2222
|
"aria-invalid": !!error,
|
|
2140
2223
|
"aria-describedby": describedBy,
|
|
2141
|
-
className: (0,
|
|
2224
|
+
className: (0, import_design_system_foundation39.cn)(NumberInput_default.input, error ? NumberInput_default.inputError : void 0),
|
|
2142
2225
|
onChange: (e) => {
|
|
2143
2226
|
const v = parseFloat(e.target.value);
|
|
2144
2227
|
const safe = isNaN(v) ? 0 : v;
|
|
@@ -2170,17 +2253,17 @@ function NumberInput({
|
|
|
2170
2253
|
var import_react18 = require("react");
|
|
2171
2254
|
|
|
2172
2255
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2173
|
-
var Radio_default = {"radioGroup":"
|
|
2256
|
+
var Radio_default = {"radioGroup":"bds110Radio-radioGroup","inputWrapper":"bds110Radio-inputWrapper","textWrapper":"bds110Radio-textWrapper","description":"bds110Radio-description","radio":"bds110Radio-radio","radioError":"bds110Radio-radioError"};
|
|
2174
2257
|
|
|
2175
2258
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2176
|
-
var
|
|
2259
|
+
var import_design_system_foundation40 = require("@boostdev/design-system-foundation");
|
|
2177
2260
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2178
2261
|
function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
2179
2262
|
const id = name + (0, import_react18.useId)();
|
|
2180
2263
|
const hintId = id + "hint";
|
|
2181
2264
|
const errorId = id + "error";
|
|
2182
2265
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2183
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(InputContainer, { className: (0,
|
|
2266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(InputContainer, { className: (0, import_design_system_foundation40.cn)(Radio_default.radioGroup, className), children: [
|
|
2184
2267
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: Radio_default.inputWrapper, children: [
|
|
2185
2268
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2186
2269
|
"input",
|
|
@@ -2190,7 +2273,7 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2190
2273
|
type: "radio",
|
|
2191
2274
|
id,
|
|
2192
2275
|
name,
|
|
2193
|
-
className: (0,
|
|
2276
|
+
className: (0, import_design_system_foundation40.cn)(Radio_default.radio, error && Radio_default.radioError),
|
|
2194
2277
|
...props
|
|
2195
2278
|
}
|
|
2196
2279
|
),
|
|
@@ -2208,10 +2291,10 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2208
2291
|
var import_react19 = require("react");
|
|
2209
2292
|
|
|
2210
2293
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2211
|
-
var RadioGroup_default = {"group":"
|
|
2294
|
+
var RadioGroup_default = {"group":"bds110RadioGroup-group","legend":"bds110RadioGroup-legend","required":"bds110RadioGroup-required","items":"bds110RadioGroup-items"};
|
|
2212
2295
|
|
|
2213
2296
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2214
|
-
var
|
|
2297
|
+
var import_design_system_foundation41 = require("@boostdev/design-system-foundation");
|
|
2215
2298
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2216
2299
|
function RadioGroup({
|
|
2217
2300
|
legend,
|
|
@@ -2229,7 +2312,7 @@ function RadioGroup({
|
|
|
2229
2312
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2230
2313
|
"fieldset",
|
|
2231
2314
|
{
|
|
2232
|
-
className: (0,
|
|
2315
|
+
className: (0, import_design_system_foundation41.cn)(RadioGroup_default.group, className),
|
|
2233
2316
|
disabled,
|
|
2234
2317
|
"aria-required": required || void 0,
|
|
2235
2318
|
"aria-describedby": describedBy,
|
|
@@ -2250,10 +2333,10 @@ function RadioGroup({
|
|
|
2250
2333
|
var import_react20 = require("react");
|
|
2251
2334
|
|
|
2252
2335
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2253
|
-
var SegmentedControl_default = {"control":"
|
|
2336
|
+
var SegmentedControl_default = {"control":"bds110SegmentedControl-control","thumb":"bds110SegmentedControl-thumb","item":"bds110SegmentedControl-item","--disabled":"bds110SegmentedControl---disabled","radio":"bds110SegmentedControl-radio","label":"bds110SegmentedControl-label","--size_small":"bds110SegmentedControl---size_small","--size_large":"bds110SegmentedControl---size_large","--active":"bds110SegmentedControl---active"};
|
|
2254
2337
|
|
|
2255
2338
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2256
|
-
var
|
|
2339
|
+
var import_design_system_foundation42 = require("@boostdev/design-system-foundation");
|
|
2257
2340
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2258
2341
|
function SegmentedControl({
|
|
2259
2342
|
name,
|
|
@@ -2282,7 +2365,7 @@ function SegmentedControl({
|
|
|
2282
2365
|
{
|
|
2283
2366
|
role: "group",
|
|
2284
2367
|
"aria-label": ariaLabel,
|
|
2285
|
-
className: (0,
|
|
2368
|
+
className: (0, import_design_system_foundation42.cn)(SegmentedControl_default.control, SegmentedControl_default[`--size_${size}`], className),
|
|
2286
2369
|
style: {
|
|
2287
2370
|
"--control_count": options.length,
|
|
2288
2371
|
"--control_selected-index": Math.max(0, selectedIndex)
|
|
@@ -2297,7 +2380,7 @@ function SegmentedControl({
|
|
|
2297
2380
|
"label",
|
|
2298
2381
|
{
|
|
2299
2382
|
htmlFor: id,
|
|
2300
|
-
className: (0,
|
|
2383
|
+
className: (0, import_design_system_foundation42.cn)(SegmentedControl_default.item, isChecked && SegmentedControl_default["--active"], isDisabled && SegmentedControl_default["--disabled"]),
|
|
2301
2384
|
children: [
|
|
2302
2385
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2303
2386
|
"input",
|
|
@@ -2328,10 +2411,10 @@ function SegmentedControl({
|
|
|
2328
2411
|
var import_react21 = require("react");
|
|
2329
2412
|
|
|
2330
2413
|
// src/components/interaction/form/Select/Select.module.css
|
|
2331
|
-
var Select_default = {"formGroup":"
|
|
2414
|
+
var Select_default = {"formGroup":"bds110Select-formGroup","selectWrapper":"bds110Select-selectWrapper","select":"bds110Select-select","selectError":"bds110Select-selectError","chevron":"bds110Select-chevron"};
|
|
2332
2415
|
|
|
2333
2416
|
// src/components/interaction/form/Select/Select.tsx
|
|
2334
|
-
var
|
|
2417
|
+
var import_design_system_foundation43 = require("@boostdev/design-system-foundation");
|
|
2335
2418
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2336
2419
|
function Select({
|
|
2337
2420
|
label,
|
|
@@ -2348,7 +2431,7 @@ function Select({
|
|
|
2348
2431
|
const hintId = id + "hint";
|
|
2349
2432
|
const errorId = id + "error";
|
|
2350
2433
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2351
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(InputContainer, { className: (0,
|
|
2434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(InputContainer, { className: (0, import_design_system_foundation43.cn)(Select_default.formGroup, className), children: [
|
|
2352
2435
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Label, { id, label }),
|
|
2353
2436
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: Select_default.selectWrapper, children: [
|
|
2354
2437
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
@@ -2360,7 +2443,7 @@ function Select({
|
|
|
2360
2443
|
"aria-required": required || void 0,
|
|
2361
2444
|
"aria-describedby": describedBy,
|
|
2362
2445
|
required,
|
|
2363
|
-
className: (0,
|
|
2446
|
+
className: (0, import_design_system_foundation43.cn)(Select_default.select, error ? Select_default.selectError : void 0),
|
|
2364
2447
|
...props,
|
|
2365
2448
|
children: [
|
|
2366
2449
|
placeholder && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
@@ -2379,10 +2462,10 @@ function Select({
|
|
|
2379
2462
|
var import_react22 = require("react");
|
|
2380
2463
|
|
|
2381
2464
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2382
|
-
var Slider_default = {"formGroup":"
|
|
2465
|
+
var Slider_default = {"formGroup":"bds110Slider-formGroup","labelRow":"bds110Slider-labelRow","value":"bds110Slider-value","slider":"bds110Slider-slider","sliderError":"bds110Slider-sliderError"};
|
|
2383
2466
|
|
|
2384
2467
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2385
|
-
var
|
|
2468
|
+
var import_design_system_foundation44 = require("@boostdev/design-system-foundation");
|
|
2386
2469
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2387
2470
|
function Slider({
|
|
2388
2471
|
label,
|
|
@@ -2408,7 +2491,7 @@ function Slider({
|
|
|
2408
2491
|
if (!isControlled) setInternalValue(Number(e.target.value));
|
|
2409
2492
|
onChange?.(e);
|
|
2410
2493
|
};
|
|
2411
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(InputContainer, { className: (0,
|
|
2494
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(InputContainer, { className: (0, import_design_system_foundation44.cn)(Slider_default.formGroup, className), children: [
|
|
2412
2495
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: Slider_default.labelRow, children: [
|
|
2413
2496
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Label, { id, label }),
|
|
2414
2497
|
showValue && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: Slider_default.value, children: currentValue })
|
|
@@ -2426,7 +2509,7 @@ function Slider({
|
|
|
2426
2509
|
"aria-valuemax": max,
|
|
2427
2510
|
"aria-valuenow": currentValue,
|
|
2428
2511
|
"aria-valuetext": String(currentValue),
|
|
2429
|
-
className: (0,
|
|
2512
|
+
className: (0, import_design_system_foundation44.cn)(Slider_default.slider, error ? Slider_default.sliderError : void 0),
|
|
2430
2513
|
style: { "--slider_fill": `${fillPct}%` },
|
|
2431
2514
|
onChange: handleChange,
|
|
2432
2515
|
...props
|
|
@@ -2441,10 +2524,10 @@ function Slider({
|
|
|
2441
2524
|
var import_react23 = require("react");
|
|
2442
2525
|
|
|
2443
2526
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2444
|
-
var Switch_default = {"switchGroup":"
|
|
2527
|
+
var Switch_default = {"switchGroup":"bds110Switch-switchGroup","--size_small":"bds110Switch---size_small","--size_medium":"bds110Switch---size_medium","--size_large":"bds110Switch---size_large","inputWrapper":"bds110Switch-inputWrapper","trackWrapper":"bds110Switch-trackWrapper","switch":"bds110Switch-switch","track":"bds110Switch-track","thumb":"bds110Switch-thumb","switchError":"bds110Switch-switchError"};
|
|
2445
2528
|
|
|
2446
2529
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2447
|
-
var
|
|
2530
|
+
var import_design_system_foundation45 = require("@boostdev/design-system-foundation");
|
|
2448
2531
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2449
2532
|
function Switch({
|
|
2450
2533
|
label,
|
|
@@ -2460,7 +2543,7 @@ function Switch({
|
|
|
2460
2543
|
const hintId = id + "hint";
|
|
2461
2544
|
const errorId = id + "error";
|
|
2462
2545
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2463
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(InputContainer, { className: (0,
|
|
2546
|
+
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
2547
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: Switch_default.inputWrapper, children: [
|
|
2465
2548
|
prefix && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: prefix }),
|
|
2466
2549
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: Switch_default.trackWrapper, children: [
|
|
@@ -2472,7 +2555,7 @@ function Switch({
|
|
|
2472
2555
|
id,
|
|
2473
2556
|
name,
|
|
2474
2557
|
"aria-describedby": describedBy,
|
|
2475
|
-
className: (0,
|
|
2558
|
+
className: (0, import_design_system_foundation45.cn)(Switch_default.switch, error ? Switch_default.switchError : void 0),
|
|
2476
2559
|
...props
|
|
2477
2560
|
}
|
|
2478
2561
|
),
|
|
@@ -2489,10 +2572,10 @@ function Switch({
|
|
|
2489
2572
|
var import_react24 = require("react");
|
|
2490
2573
|
|
|
2491
2574
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2492
|
-
var Textarea_default = {"formGroup":"
|
|
2575
|
+
var Textarea_default = {"formGroup":"bds110Textarea-formGroup","textarea":"bds110Textarea-textarea","textareaError":"bds110Textarea-textareaError"};
|
|
2493
2576
|
|
|
2494
2577
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2495
|
-
var
|
|
2578
|
+
var import_design_system_foundation46 = require("@boostdev/design-system-foundation");
|
|
2496
2579
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2497
2580
|
function Textarea({
|
|
2498
2581
|
label,
|
|
@@ -2507,7 +2590,7 @@ function Textarea({
|
|
|
2507
2590
|
const hintId = id + "hint";
|
|
2508
2591
|
const errorId = id + "error";
|
|
2509
2592
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2510
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(InputContainer, { className: (0,
|
|
2593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(InputContainer, { className: (0, import_design_system_foundation46.cn)(Textarea_default.formGroup, className), children: [
|
|
2511
2594
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Label, { id, label }),
|
|
2512
2595
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2513
2596
|
"textarea",
|
|
@@ -2518,7 +2601,7 @@ function Textarea({
|
|
|
2518
2601
|
"aria-describedby": describedBy,
|
|
2519
2602
|
"aria-required": required || void 0,
|
|
2520
2603
|
required,
|
|
2521
|
-
className: (0,
|
|
2604
|
+
className: (0, import_design_system_foundation46.cn)(Textarea_default.textarea, error ? Textarea_default.textareaError : void 0),
|
|
2522
2605
|
...props
|
|
2523
2606
|
}
|
|
2524
2607
|
),
|
|
@@ -2528,10 +2611,10 @@ function Textarea({
|
|
|
2528
2611
|
}
|
|
2529
2612
|
|
|
2530
2613
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2531
|
-
var ButtonGroup_default = {"buttonGroup":"
|
|
2614
|
+
var ButtonGroup_default = {"buttonGroup":"bds110ButtonGroup-buttonGroup","container":"bds110ButtonGroup-container","--variant_card":"bds110ButtonGroup---variant_card","--variant_flow":"bds110ButtonGroup---variant_flow","--variant_modal":"bds110ButtonGroup---variant_modal","--variant_content":"bds110ButtonGroup---variant_content","--variant_grid":"bds110ButtonGroup---variant_grid"};
|
|
2532
2615
|
|
|
2533
2616
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2534
|
-
var
|
|
2617
|
+
var import_design_system_foundation47 = require("@boostdev/design-system-foundation");
|
|
2535
2618
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2536
2619
|
function ButtonGroup({ children, className, variant, "aria-label": ariaLabel }) {
|
|
2537
2620
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
@@ -2539,17 +2622,17 @@ function ButtonGroup({ children, className, variant, "aria-label": ariaLabel })
|
|
|
2539
2622
|
{
|
|
2540
2623
|
role: "group",
|
|
2541
2624
|
"aria-label": ariaLabel,
|
|
2542
|
-
className: (0,
|
|
2625
|
+
className: (0, import_design_system_foundation47.cn)(ButtonGroup_default.buttonGroup, className, variant && ButtonGroup_default[`--variant_${variant}`]),
|
|
2543
2626
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: ButtonGroup_default.container, children })
|
|
2544
2627
|
}
|
|
2545
2628
|
);
|
|
2546
2629
|
}
|
|
2547
2630
|
|
|
2548
2631
|
// src/components/layout/Card/Card.module.css
|
|
2549
|
-
var Card_default = {"card":"
|
|
2632
|
+
var Card_default = {"card":"bds110Card-card","--default":"bds110Card---default","--elevated":"bds110Card---elevated","--outlined":"bds110Card---outlined","--clickable":"bds110Card---clickable","--padding-none":"bds110Card---padding-none","--padding-small":"bds110Card---padding-small","--padding-medium":"bds110Card---padding-medium","--padding-large":"bds110Card---padding-large","--text-start":"bds110Card---text-start","--text-center":"bds110Card---text-center","--text-end":"bds110Card---text-end"};
|
|
2550
2633
|
|
|
2551
2634
|
// src/components/layout/Card/Card.tsx
|
|
2552
|
-
var
|
|
2635
|
+
var import_design_system_foundation48 = require("@boostdev/design-system-foundation");
|
|
2553
2636
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2554
2637
|
function Card({
|
|
2555
2638
|
children,
|
|
@@ -2561,7 +2644,7 @@ function Card({
|
|
|
2561
2644
|
onClick,
|
|
2562
2645
|
"aria-label": ariaLabel
|
|
2563
2646
|
}) {
|
|
2564
|
-
const classNames = (0,
|
|
2647
|
+
const classNames = (0, import_design_system_foundation48.cn)(
|
|
2565
2648
|
Card_default.card,
|
|
2566
2649
|
Card_default[`--${variant}`],
|
|
2567
2650
|
Card_default[`--padding-${padding}`],
|
|
@@ -2584,10 +2667,10 @@ function Card({
|
|
|
2584
2667
|
}
|
|
2585
2668
|
|
|
2586
2669
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2587
|
-
var SectionHeader_default = {"sectionHeader":"
|
|
2670
|
+
var SectionHeader_default = {"sectionHeader":"bds110SectionHeader-sectionHeader","title":"bds110SectionHeader-title","subtitle":"bds110SectionHeader-subtitle","--start":"bds110SectionHeader---start","--center":"bds110SectionHeader---center","--end":"bds110SectionHeader---end","--small":"bds110SectionHeader---small","--medium":"bds110SectionHeader---medium","--large":"bds110SectionHeader---large"};
|
|
2588
2671
|
|
|
2589
2672
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2590
|
-
var
|
|
2673
|
+
var import_design_system_foundation49 = require("@boostdev/design-system-foundation");
|
|
2591
2674
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2592
2675
|
function SectionHeader({
|
|
2593
2676
|
title,
|
|
@@ -2598,24 +2681,24 @@ function SectionHeader({
|
|
|
2598
2681
|
titleAs = "h2"
|
|
2599
2682
|
}) {
|
|
2600
2683
|
const Title = titleAs;
|
|
2601
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: (0,
|
|
2684
|
+
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
2685
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Title, { className: SectionHeader_default.title, children: title }),
|
|
2603
2686
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
2604
2687
|
] });
|
|
2605
2688
|
}
|
|
2606
2689
|
|
|
2607
2690
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2608
|
-
var IconWrapper_default = {"wrapper":"
|
|
2691
|
+
var IconWrapper_default = {"wrapper":"bds110IconWrapper-wrapper"};
|
|
2609
2692
|
|
|
2610
2693
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2611
|
-
var
|
|
2694
|
+
var import_design_system_foundation50 = require("@boostdev/design-system-foundation");
|
|
2612
2695
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2613
2696
|
function IconWrapper({ children, className, "aria-hidden": ariaHidden }) {
|
|
2614
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: (0,
|
|
2697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: (0, import_design_system_foundation50.cn)(className, IconWrapper_default.wrapper), "aria-hidden": ariaHidden, children });
|
|
2615
2698
|
}
|
|
2616
2699
|
|
|
2617
2700
|
// src/index.ts
|
|
2618
|
-
var
|
|
2701
|
+
var import_design_system_foundation51 = require("@boostdev/design-system-foundation");
|
|
2619
2702
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2620
2703
|
0 && (module.exports = {
|
|
2621
2704
|
Accordion,
|