@boostdev/design-system-components 1.0.3 → 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 +5 -5
- package/dist/client.cjs +236 -153
- package/dist/client.css +547 -483
- 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 +547 -483
- 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 +27 -5
- package/src/components/interaction/Button/Button.module.css +10 -7
- 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.stories.tsx +1 -1
- package/src/components/interaction/Command/Command.tsx +2 -2
- 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.stories.tsx +1 -1
- package/src/components/interaction/Drawer/Drawer.tsx +2 -2
- 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 +70 -13
- 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.stories.tsx +1 -1
- package/src/components/interaction/Rating/Rating.tsx +2 -2
- package/src/components/interaction/Toast/Toast.module.css +6 -1
- 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 +3 -3
- package/src/components/interaction/form/Checkbox/Checkbox.native.spec.tsx +42 -0
- package/src/components/interaction/form/Checkbox/Checkbox.native.stories.tsx +36 -0
- package/src/components/interaction/form/Checkbox/Checkbox.native.tsx +80 -0
- package/src/components/interaction/form/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/components/interaction/form/Checkbox/Checkbox.tsx +2 -2
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.mdx +44 -0
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.stories.tsx +1 -1
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx +2 -2
- package/src/components/interaction/form/Combobox/Combobox.mdx +21 -0
- package/src/components/interaction/form/Combobox/Combobox.module.css +1 -1
- 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 +1 -1
- package/src/components/interaction/form/FileInput/FileInput.stories.tsx +1 -1
- package/src/components/interaction/form/FileInput/FileInput.tsx +2 -2
- package/src/components/interaction/form/FormInput/FormInput.stories.tsx +1 -1
- package/src/components/interaction/form/FormInput/FormInput.tsx +2 -2
- package/src/components/interaction/form/NumberInput/NumberInput.mdx +16 -0
- package/src/components/interaction/form/NumberInput/NumberInput.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 +3 -3
- package/src/components/interaction/form/Radio/Radio.native.stories.tsx +46 -0
- package/src/components/interaction/form/Radio/Radio.native.tsx +79 -0
- package/src/components/interaction/form/Radio/Radio.stories.tsx +1 -1
- package/src/components/interaction/form/Radio/Radio.tsx +2 -2
- package/src/components/interaction/form/RadioGroup/RadioGroup.mdx +45 -0
- package/src/components/interaction/form/RadioGroup/RadioGroup.stories.tsx +1 -1
- package/src/components/interaction/form/RadioGroup/RadioGroup.tsx +2 -2
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.stories.tsx +1 -1
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.tsx +2 -2
- 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 +4 -4
- 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 +3 -3
- 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.stories.tsx +1 -1
- package/src/components/interaction/form/Textarea/Textarea.tsx +2 -2
- package/src/components/interaction/form/atoms/InputContainer.tsx +2 -1
- package/src/components/interaction/form/atoms/Label.native.stories.tsx +18 -0
- package/src/components/interaction/form/atoms/Label.native.tsx +29 -0
- package/src/components/interaction/form/atoms/Label.tsx +5 -3
- package/src/components/interaction/form/atoms/Message.native.spec.tsx +30 -0
- package/src/components/interaction/form/atoms/Message.native.stories.tsx +22 -0
- package/src/components/interaction/form/atoms/Message.native.tsx +34 -0
- package/src/components/interaction/form/atoms/Message.tsx +5 -3
- package/src/components/layout/ButtonGroup/ButtonGroup.native.stories.tsx +50 -0
- package/src/components/layout/ButtonGroup/ButtonGroup.native.tsx +34 -0
- package/src/components/layout/ButtonGroup/ButtonGroup.stories.tsx +1 -1
- package/src/components/layout/ButtonGroup/ButtonGroup.tsx +2 -2
- package/src/components/layout/Card/Card.native.stories.tsx +53 -0
- package/src/components/layout/Card/Card.native.tsx +89 -0
- package/src/components/layout/Card/Card.stories.tsx +1 -1
- package/src/components/layout/Card/Card.tsx +2 -2
- package/src/components/layout/IconWrapper/IconWrapper.mdx +2 -2
- package/src/components/layout/IconWrapper/IconWrapper.native.spec.tsx +39 -0
- package/src/components/layout/IconWrapper/IconWrapper.native.stories.tsx +41 -0
- package/src/components/layout/IconWrapper/IconWrapper.native.tsx +20 -0
- package/src/components/layout/IconWrapper/IconWrapper.stories.tsx +1 -1
- package/src/components/layout/IconWrapper/IconWrapper.tsx +2 -2
- package/src/components/layout/SectionHeader/SectionHeader.mdx +13 -0
- package/src/components/layout/SectionHeader/SectionHeader.native.stories.tsx +38 -0
- package/src/components/layout/SectionHeader/SectionHeader.native.tsx +79 -0
- package/src/components/layout/SectionHeader/SectionHeader.stories.tsx +1 -1
- package/src/components/layout/SectionHeader/SectionHeader.tsx +2 -2
- package/src/components/ui/Accordion/Accordion.mdx +14 -0
- package/src/components/ui/Accordion/Accordion.stories.tsx +1 -1
- package/src/components/ui/Accordion/Accordion.tsx +2 -2
- package/src/components/ui/Alert/Alert.native.stories.tsx +43 -0
- package/src/components/ui/Alert/Alert.native.tsx +94 -0
- package/src/components/ui/Alert/Alert.stories.tsx +1 -1
- package/src/components/ui/Alert/Alert.tsx +2 -2
- package/src/components/ui/Avatar/Avatar.native.spec.tsx +47 -0
- package/src/components/ui/Avatar/Avatar.native.stories.tsx +34 -0
- package/src/components/ui/Avatar/Avatar.native.tsx +85 -0
- package/src/components/ui/Avatar/Avatar.stories.tsx +1 -1
- package/src/components/ui/Avatar/Avatar.tsx +2 -2
- package/src/components/ui/Badge/Badge.mdx +2 -2
- package/src/components/ui/Badge/Badge.native.stories.tsx +36 -0
- package/src/components/ui/Badge/Badge.native.tsx +50 -0
- package/src/components/ui/Badge/Badge.stories.tsx +1 -1
- package/src/components/ui/Badge/Badge.tsx +2 -2
- package/src/components/ui/Breadcrumb/Breadcrumb.stories.tsx +1 -1
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +2 -2
- package/src/components/ui/Calendar/Calendar.mdx +16 -0
- package/src/components/ui/Calendar/Calendar.stories.tsx +1 -1
- package/src/components/ui/Calendar/Calendar.tsx +2 -2
- 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.stories.tsx +1 -1
- package/src/components/ui/Collapsible/Collapsible.tsx +2 -2
- package/src/components/ui/DescriptionList/DescriptionList.stories.tsx +1 -1
- package/src/components/ui/DescriptionList/DescriptionList.tsx +2 -2
- package/src/components/ui/Link/Link.mdx +14 -0
- package/src/components/ui/Link/Link.stories.tsx +1 -1
- package/src/components/ui/Link/Link.tsx +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.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 +1 -1
- 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 +1 -1
- package/src/components/ui/Progress/Progress.native.stories.tsx +34 -0
- package/src/components/ui/Progress/Progress.native.tsx +84 -0
- package/src/components/ui/Progress/Progress.stories.tsx +1 -1
- package/src/components/ui/Progress/Progress.tsx +2 -2
- package/src/components/ui/ProgressCircle/ProgressCircle.module.css +1 -1
- package/src/components/ui/ProgressCircle/ProgressCircle.stories.tsx +1 -1
- package/src/components/ui/ProgressCircle/ProgressCircle.tsx +2 -2
- package/src/components/ui/Separator/Separator.mdx +14 -0
- package/src/components/ui/Separator/Separator.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.native.stories.tsx +33 -0
- package/src/components/ui/Skeleton/Skeleton.native.tsx +41 -0
- package/src/components/ui/Skeleton/Skeleton.stories.tsx +1 -1
- package/src/components/ui/Skeleton/Skeleton.tsx +2 -3
- package/src/components/ui/SkipLink/SkipLink.stories.tsx +1 -1
- package/src/components/ui/SkipLink/SkipLink.tsx +5 -3
- package/src/components/ui/Table/Table.mdx +14 -0
- package/src/components/ui/Table/Table.stories.tsx +1 -1
- package/src/components/ui/Table/Table.tsx +2 -2
- 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.stories.tsx +1 -1
- package/src/components/ui/Tooltip/Tooltip.tsx +2 -2
- package/src/components/ui/Typography/Typography.mdx +13 -0
- package/src/components/ui/Typography/Typography.native.stories.tsx +38 -0
- package/src/components/ui/Typography/Typography.native.tsx +65 -0
- package/src/components/ui/Typography/Typography.stories.tsx +1 -1
- package/src/components/ui/Typography/Typography.tsx +2 -2
- package/src/css/bdc.css +8 -0
- package/src/index.ts +1 -0
- package/src/native/ThemeContext.tsx +28 -0
- package/src/native/tokens.ts +13 -0
- package/src/native.ts +39 -0
- package/src/react-augment.d.ts +13 -0
- package/src/stories/DesignSystem/DarkMode.mdx +130 -0
- package/src/types.ts +2 -0
- package/src/typings.d.ts +3 -0
- package/src/web-components/globals.ts +61 -0
- package/src/web-components/index.ts +12 -0
- package/src/web-components/interaction/BdsButton.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/index.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/index.ts
|
|
@@ -67,7 +77,7 @@ __export(index_exports, {
|
|
|
67
77
|
ToastProvider: () => ToastProvider,
|
|
68
78
|
Tooltip: () => Tooltip,
|
|
69
79
|
Typography: () => Typography,
|
|
70
|
-
cn: () =>
|
|
80
|
+
cn: () => import_design_system_foundation51.cn,
|
|
71
81
|
useToast: () => useToast
|
|
72
82
|
});
|
|
73
83
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -76,7 +86,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
76
86
|
var import_react = require("react");
|
|
77
87
|
|
|
78
88
|
// src/components/ui/Accordion/Accordion.module.css
|
|
79
|
-
var Accordion_default = {"accordion":"
|
|
89
|
+
var Accordion_default = {"accordion":"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"};
|
|
80
90
|
|
|
81
91
|
// src/components/ui/Accordion/Accordion.tsx
|
|
82
92
|
var import_design_system_foundation = require("@boostdev/design-system-foundation");
|
|
@@ -144,7 +154,7 @@ function Accordion({
|
|
|
144
154
|
}
|
|
145
155
|
|
|
146
156
|
// src/components/ui/Alert/Alert.module.css
|
|
147
|
-
var Alert_default = {"alert":"
|
|
157
|
+
var Alert_default = {"alert":"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"};
|
|
148
158
|
|
|
149
159
|
// src/components/ui/Alert/Alert.tsx
|
|
150
160
|
var import_design_system_foundation2 = require("@boostdev/design-system-foundation");
|
|
@@ -187,7 +197,7 @@ function Alert({
|
|
|
187
197
|
}
|
|
188
198
|
|
|
189
199
|
// src/components/ui/Avatar/Avatar.module.css
|
|
190
|
-
var Avatar_default = {"avatar":"
|
|
200
|
+
var Avatar_default = {"avatar":"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"};
|
|
191
201
|
|
|
192
202
|
// src/components/ui/Avatar/Avatar.tsx
|
|
193
203
|
var import_design_system_foundation3 = require("@boostdev/design-system-foundation");
|
|
@@ -213,7 +223,7 @@ function Avatar({ src, alt, name, size = "medium", className }) {
|
|
|
213
223
|
}
|
|
214
224
|
|
|
215
225
|
// src/components/ui/Badge/Badge.module.css
|
|
216
|
-
var Badge_default = {"badge":"
|
|
226
|
+
var Badge_default = {"badge":"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"};
|
|
217
227
|
|
|
218
228
|
// src/components/ui/Badge/Badge.tsx
|
|
219
229
|
var import_design_system_foundation4 = require("@boostdev/design-system-foundation");
|
|
@@ -223,7 +233,7 @@ function Badge({ children, variant = "primary", className }) {
|
|
|
223
233
|
}
|
|
224
234
|
|
|
225
235
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
226
|
-
var Breadcrumb_default = {"breadcrumb":"
|
|
236
|
+
var Breadcrumb_default = {"breadcrumb":"bds110Breadcrumb-breadcrumb","list":"bds110Breadcrumb-list","item":"bds110Breadcrumb-item","link":"bds110Breadcrumb-link","separator":"bds110Breadcrumb-separator","current":"bds110Breadcrumb-current"};
|
|
227
237
|
|
|
228
238
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
229
239
|
var import_design_system_foundation5 = require("@boostdev/design-system-foundation");
|
|
@@ -239,7 +249,7 @@ function Breadcrumb({ items, className }) {
|
|
|
239
249
|
}
|
|
240
250
|
|
|
241
251
|
// src/components/ui/Collapsible/Collapsible.module.css
|
|
242
|
-
var Collapsible_default = {"collapsible":"
|
|
252
|
+
var Collapsible_default = {"collapsible":"bds110Collapsible-collapsible","summary":"bds110Collapsible-summary","summaryContent":"bds110Collapsible-summaryContent","icon":"bds110Collapsible-icon","content":"bds110Collapsible-content"};
|
|
243
253
|
|
|
244
254
|
// src/components/ui/Collapsible/Collapsible.tsx
|
|
245
255
|
var import_design_system_foundation6 = require("@boostdev/design-system-foundation");
|
|
@@ -280,7 +290,7 @@ function Collapsible({
|
|
|
280
290
|
var import_react2 = require("react");
|
|
281
291
|
|
|
282
292
|
// src/components/ui/Calendar/Calendar.module.css
|
|
283
|
-
var Calendar_default = {"calendar":"
|
|
293
|
+
var Calendar_default = {"calendar":"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"};
|
|
284
294
|
|
|
285
295
|
// src/components/ui/Calendar/Calendar.tsx
|
|
286
296
|
var import_design_system_foundation7 = require("@boostdev/design-system-foundation");
|
|
@@ -455,7 +465,7 @@ function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
|
455
465
|
var import_react3 = require("react");
|
|
456
466
|
|
|
457
467
|
// src/components/ui/Carousel/Carousel.module.css
|
|
458
|
-
var Carousel_default = {"carousel":"
|
|
468
|
+
var Carousel_default = {"carousel":"bds110Carousel-carousel","track":"bds110Carousel-track","slide":"bds110Carousel-slide","navBtn":"bds110Carousel-navBtn"};
|
|
459
469
|
|
|
460
470
|
// src/components/ui/Carousel/Carousel.tsx
|
|
461
471
|
var import_design_system_foundation8 = require("@boostdev/design-system-foundation");
|
|
@@ -508,7 +518,7 @@ function Carousel({ items, label, className }) {
|
|
|
508
518
|
}
|
|
509
519
|
|
|
510
520
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
511
|
-
var DescriptionList_default = {"list":"
|
|
521
|
+
var DescriptionList_default = {"list":"bds110DescriptionList-list","group":"bds110DescriptionList-group","term":"bds110DescriptionList-term","details":"bds110DescriptionList-details","--layout_inline":"bds110DescriptionList---layout_inline"};
|
|
512
522
|
|
|
513
523
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
514
524
|
var import_design_system_foundation9 = require("@boostdev/design-system-foundation");
|
|
@@ -521,7 +531,7 @@ function DescriptionList({ items, layout = "stacked", className }) {
|
|
|
521
531
|
}
|
|
522
532
|
|
|
523
533
|
// src/components/ui/Link/Link.module.css
|
|
524
|
-
var Link_default = {"link":"
|
|
534
|
+
var Link_default = {"link":"bds110Link-link","--variant_default":"bds110Link---variant_default","--variant_subtle":"bds110Link---variant_subtle","--variant_standalone":"bds110Link---variant_standalone","externalLabel":"bds110Link-externalLabel"};
|
|
525
535
|
|
|
526
536
|
// src/components/ui/Link/Link.tsx
|
|
527
537
|
var import_design_system_foundation10 = require("@boostdev/design-system-foundation");
|
|
@@ -552,7 +562,7 @@ function Link({
|
|
|
552
562
|
}
|
|
553
563
|
|
|
554
564
|
// src/components/ui/Loading/Loading.module.css
|
|
555
|
-
var Loading_default = {"loading":"
|
|
565
|
+
var Loading_default = {"loading":"bds110Loading-loading","spinner":"bds110Loading-spinner","--size_small":"bds110Loading---size_small","--size_large":"bds110Loading---size_large"};
|
|
556
566
|
|
|
557
567
|
// src/components/ui/Loading/Loading.tsx
|
|
558
568
|
var import_design_system_foundation11 = require("@boostdev/design-system-foundation");
|
|
@@ -562,7 +572,7 @@ function Loading({ size = "medium", className }) {
|
|
|
562
572
|
}
|
|
563
573
|
|
|
564
574
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
565
|
-
var NotificationBanner_default = {"banner":"
|
|
575
|
+
var NotificationBanner_default = {"banner":"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"};
|
|
566
576
|
|
|
567
577
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
568
578
|
var import_design_system_foundation12 = require("@boostdev/design-system-foundation");
|
|
@@ -601,7 +611,7 @@ function NotificationBanner({
|
|
|
601
611
|
}
|
|
602
612
|
|
|
603
613
|
// src/components/ui/Pagination/Pagination.module.css
|
|
604
|
-
var Pagination_default = {"pagination":"
|
|
614
|
+
var Pagination_default = {"pagination":"bds110Pagination-pagination","list":"bds110Pagination-list","button":"bds110Pagination-button","--active":"bds110Pagination---active","--nav":"bds110Pagination---nav","ellipsis":"bds110Pagination-ellipsis"};
|
|
605
615
|
|
|
606
616
|
// src/components/ui/Pagination/Pagination.tsx
|
|
607
617
|
var import_design_system_foundation13 = require("@boostdev/design-system-foundation");
|
|
@@ -665,7 +675,7 @@ function Pagination({
|
|
|
665
675
|
}
|
|
666
676
|
|
|
667
677
|
// src/components/ui/Progress/Progress.module.css
|
|
668
|
-
var Progress_default = {"container":"
|
|
678
|
+
var Progress_default = {"container":"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"};
|
|
669
679
|
|
|
670
680
|
// src/components/ui/Progress/Progress.tsx
|
|
671
681
|
var import_design_system_foundation14 = require("@boostdev/design-system-foundation");
|
|
@@ -703,7 +713,7 @@ function Progress({
|
|
|
703
713
|
}
|
|
704
714
|
|
|
705
715
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
706
|
-
var ProgressCircle_default = {"wrapper":"
|
|
716
|
+
var ProgressCircle_default = {"wrapper":"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"};
|
|
707
717
|
|
|
708
718
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
709
719
|
var import_design_system_foundation15 = require("@boostdev/design-system-foundation");
|
|
@@ -782,7 +792,7 @@ function ProgressCircle({
|
|
|
782
792
|
}
|
|
783
793
|
|
|
784
794
|
// src/components/ui/Separator/Separator.module.css
|
|
785
|
-
var Separator_default = {"separator":"
|
|
795
|
+
var Separator_default = {"separator":"bds110Separator-separator","--horizontal":"bds110Separator---horizontal","--vertical":"bds110Separator---vertical"};
|
|
786
796
|
|
|
787
797
|
// src/components/ui/Separator/Separator.tsx
|
|
788
798
|
var import_design_system_foundation16 = require("@boostdev/design-system-foundation");
|
|
@@ -805,7 +815,7 @@ function Separator({ orientation = "horizontal", className }) {
|
|
|
805
815
|
var import_design_system_foundation17 = require("@boostdev/design-system-foundation");
|
|
806
816
|
|
|
807
817
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
808
|
-
var Skeleton_default = {"skeleton":"
|
|
818
|
+
var Skeleton_default = {"skeleton":"bds110Skeleton-skeleton"};
|
|
809
819
|
|
|
810
820
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
811
821
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
@@ -814,19 +824,20 @@ function Skeleton({ className }) {
|
|
|
814
824
|
}
|
|
815
825
|
|
|
816
826
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
817
|
-
var SkipLink_default = {"skipLink":"
|
|
827
|
+
var SkipLink_default = {"skipLink":"bds110SkipLink-skipLink"};
|
|
818
828
|
|
|
819
829
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
830
|
+
var import_design_system_foundation18 = require("@boostdev/design-system-foundation");
|
|
820
831
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
821
|
-
function SkipLink({ href = "#main", children = "Skip to main content" }) {
|
|
822
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("a", { href, className: SkipLink_default.skipLink, children });
|
|
832
|
+
function SkipLink({ href = "#main", children = "Skip to main content", className }) {
|
|
833
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("a", { href, className: (0, import_design_system_foundation18.cn)(SkipLink_default.skipLink, className), children });
|
|
823
834
|
}
|
|
824
835
|
|
|
825
836
|
// src/components/ui/Table/Table.module.css
|
|
826
|
-
var Table_default = {"wrapper":"
|
|
837
|
+
var Table_default = {"wrapper":"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"};
|
|
827
838
|
|
|
828
839
|
// src/components/ui/Table/Table.tsx
|
|
829
|
-
var
|
|
840
|
+
var import_design_system_foundation19 = require("@boostdev/design-system-foundation");
|
|
830
841
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
831
842
|
function Table({
|
|
832
843
|
columns,
|
|
@@ -846,14 +857,14 @@ function Table({
|
|
|
846
857
|
if (sortKey !== key) return "none";
|
|
847
858
|
return sortDirection === "asc" ? "ascending" : "descending";
|
|
848
859
|
};
|
|
849
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0,
|
|
860
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0, import_design_system_foundation19.cn)(Table_default.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("table", { className: Table_default.table, children: [
|
|
850
861
|
caption && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("caption", { className: Table_default.caption, children: caption }),
|
|
851
862
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("thead", { className: Table_default.thead, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("tr", { children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
852
863
|
"th",
|
|
853
864
|
{
|
|
854
865
|
scope: "col",
|
|
855
866
|
"aria-sort": col.sortable ? getAriaSort(col.key) : void 0,
|
|
856
|
-
className: (0,
|
|
867
|
+
className: (0, import_design_system_foundation19.cn)(Table_default.th, col.sortable ? Table_default["--sortable"] : void 0),
|
|
857
868
|
children: col.sortable ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
858
869
|
"button",
|
|
859
870
|
{
|
|
@@ -867,7 +878,7 @@ function Table({
|
|
|
867
878
|
"svg",
|
|
868
879
|
{
|
|
869
880
|
"aria-hidden": "true",
|
|
870
|
-
className: (0,
|
|
881
|
+
className: (0, import_design_system_foundation19.cn)(
|
|
871
882
|
Table_default.sortIcon,
|
|
872
883
|
sortKey === col.key ? Table_default["--sort-active"] : void 0,
|
|
873
884
|
sortKey === col.key && sortDirection === "desc" ? Table_default["--sort-desc"] : void 0
|
|
@@ -893,10 +904,10 @@ function Table({
|
|
|
893
904
|
var import_react4 = require("react");
|
|
894
905
|
|
|
895
906
|
// src/components/ui/Tabs/Tabs.module.css
|
|
896
|
-
var Tabs_default = {"tabs":"
|
|
907
|
+
var Tabs_default = {"tabs":"bds110Tabs-tabs","tabList":"bds110Tabs-tabList","tab":"bds110Tabs-tab","--active":"bds110Tabs---active","panel":"bds110Tabs-panel"};
|
|
897
908
|
|
|
898
909
|
// src/components/ui/Tabs/Tabs.tsx
|
|
899
|
-
var
|
|
910
|
+
var import_design_system_foundation20 = require("@boostdev/design-system-foundation");
|
|
900
911
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
901
912
|
function Tabs({ tabs, defaultTab, className }) {
|
|
902
913
|
const baseId = (0, import_react4.useId)();
|
|
@@ -923,7 +934,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
923
934
|
focusAt(enabledIndexes[enabledIndexes.length - 1]);
|
|
924
935
|
}
|
|
925
936
|
};
|
|
926
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0,
|
|
937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0, import_design_system_foundation20.cn)(Tabs_default.tabs, className), children: [
|
|
927
938
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { role: "tablist", className: Tabs_default.tabList, children: tabs.map((tab, i) => {
|
|
928
939
|
const tabId = `${baseId}-tab-${tab.id}`;
|
|
929
940
|
const panelId = `${baseId}-panel-${tab.id}`;
|
|
@@ -941,7 +952,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
941
952
|
"aria-controls": panelId,
|
|
942
953
|
tabIndex: isActive ? 0 : -1,
|
|
943
954
|
disabled: tab.disabled,
|
|
944
|
-
className: (0,
|
|
955
|
+
className: (0, import_design_system_foundation20.cn)(Tabs_default.tab, isActive ? Tabs_default["--active"] : void 0),
|
|
945
956
|
onClick: () => setActiveTab(tab.id),
|
|
946
957
|
onKeyDown: (e) => handleKeyDown(e, i),
|
|
947
958
|
children: tab.label
|
|
@@ -973,10 +984,10 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
973
984
|
var import_react5 = require("react");
|
|
974
985
|
|
|
975
986
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
976
|
-
var Tooltip_default = {"wrapper":"
|
|
987
|
+
var Tooltip_default = {"wrapper":"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"};
|
|
977
988
|
|
|
978
989
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
979
|
-
var
|
|
990
|
+
var import_design_system_foundation21 = require("@boostdev/design-system-foundation");
|
|
980
991
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
981
992
|
function Tooltip({
|
|
982
993
|
content,
|
|
@@ -992,7 +1003,7 @@ function Tooltip({
|
|
|
992
1003
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
993
1004
|
"span",
|
|
994
1005
|
{
|
|
995
|
-
className: (0,
|
|
1006
|
+
className: (0, import_design_system_foundation21.cn)(Tooltip_default.wrapper, className),
|
|
996
1007
|
onMouseEnter: () => setIsVisible(true),
|
|
997
1008
|
onMouseLeave: () => setIsVisible(false),
|
|
998
1009
|
onFocus: () => setIsVisible(true),
|
|
@@ -1005,7 +1016,7 @@ function Tooltip({
|
|
|
1005
1016
|
id: tooltipId,
|
|
1006
1017
|
role: "tooltip",
|
|
1007
1018
|
"aria-hidden": !isVisible,
|
|
1008
|
-
className: (0,
|
|
1019
|
+
className: (0, import_design_system_foundation21.cn)(Tooltip_default.tooltip, Tooltip_default[`--placement_${placement}`]),
|
|
1009
1020
|
children: content
|
|
1010
1021
|
}
|
|
1011
1022
|
)
|
|
@@ -1015,10 +1026,10 @@ function Tooltip({
|
|
|
1015
1026
|
}
|
|
1016
1027
|
|
|
1017
1028
|
// src/components/ui/Typography/Typography.module.css
|
|
1018
|
-
var Typography_default = {"typography":"
|
|
1029
|
+
var Typography_default = {"typography":"bds110Typography-typography","--h1":"bds110Typography---h1","--h2":"bds110Typography---h2","--h3":"bds110Typography---h3","--body":"bds110Typography---body","--body_s":"bds110Typography---body_s"};
|
|
1019
1030
|
|
|
1020
1031
|
// src/components/ui/Typography/Typography.tsx
|
|
1021
|
-
var
|
|
1032
|
+
var import_design_system_foundation22 = require("@boostdev/design-system-foundation");
|
|
1022
1033
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1023
1034
|
var variantToElement = {
|
|
1024
1035
|
h1: "h1",
|
|
@@ -1029,14 +1040,14 @@ var variantToElement = {
|
|
|
1029
1040
|
};
|
|
1030
1041
|
function Typography({ variant = "body", component, children, className }) {
|
|
1031
1042
|
const Component = component || variantToElement[variant];
|
|
1032
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Component, { className: (0,
|
|
1043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Component, { className: (0, import_design_system_foundation22.cn)(Typography_default.typography, Typography_default[`--${variant}`], className), children });
|
|
1033
1044
|
}
|
|
1034
1045
|
|
|
1035
1046
|
// src/components/interaction/Button/Button.module.css
|
|
1036
|
-
var Button_default = {"button":"
|
|
1047
|
+
var Button_default = {"button":"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"};
|
|
1037
1048
|
|
|
1038
1049
|
// src/components/interaction/Button/Button.tsx
|
|
1039
|
-
var
|
|
1050
|
+
var import_design_system_foundation23 = require("@boostdev/design-system-foundation");
|
|
1040
1051
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1041
1052
|
function Button({
|
|
1042
1053
|
children,
|
|
@@ -1054,7 +1065,7 @@ function Button({
|
|
|
1054
1065
|
onClick,
|
|
1055
1066
|
...rest
|
|
1056
1067
|
}) {
|
|
1057
|
-
const classNames = (0,
|
|
1068
|
+
const classNames = (0, import_design_system_foundation23.cn)(
|
|
1058
1069
|
Button_default.button,
|
|
1059
1070
|
Button_default[`--${variant}`],
|
|
1060
1071
|
Button_default[`--size_${size}`],
|
|
@@ -1109,10 +1120,10 @@ function Button({
|
|
|
1109
1120
|
var import_react6 = require("react");
|
|
1110
1121
|
|
|
1111
1122
|
// src/components/interaction/Command/Command.module.css
|
|
1112
|
-
var Command_default = {"dialog":"
|
|
1123
|
+
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"};
|
|
1113
1124
|
|
|
1114
1125
|
// src/components/interaction/Command/Command.tsx
|
|
1115
|
-
var
|
|
1126
|
+
var import_design_system_foundation24 = require("@boostdev/design-system-foundation");
|
|
1116
1127
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1117
1128
|
function Command({
|
|
1118
1129
|
isOpen,
|
|
@@ -1192,7 +1203,7 @@ function Command({
|
|
|
1192
1203
|
"dialog",
|
|
1193
1204
|
{
|
|
1194
1205
|
ref: dialogRef,
|
|
1195
|
-
className: (0,
|
|
1206
|
+
className: (0, import_design_system_foundation24.cn)(Command_default.dialog, className),
|
|
1196
1207
|
"aria-label": "Command palette",
|
|
1197
1208
|
"aria-modal": "true",
|
|
1198
1209
|
onCancel: handleCancel,
|
|
@@ -1231,7 +1242,7 @@ function Command({
|
|
|
1231
1242
|
id: `cmd-${item.id}`,
|
|
1232
1243
|
role: "option",
|
|
1233
1244
|
"aria-selected": isActive,
|
|
1234
|
-
className: (0,
|
|
1245
|
+
className: (0, import_design_system_foundation24.cn)(Command_default.item, isActive && Command_default.itemActive),
|
|
1235
1246
|
onPointerDown: (e) => e.preventDefault(),
|
|
1236
1247
|
onClick: () => selectItem(item),
|
|
1237
1248
|
children: [
|
|
@@ -1257,10 +1268,10 @@ function Command({
|
|
|
1257
1268
|
var import_react7 = require("react");
|
|
1258
1269
|
|
|
1259
1270
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1260
|
-
var Dialog_default = {"dialog":"
|
|
1271
|
+
var Dialog_default = {"dialog":"bds110Dialog-dialog","dialogContent":"bds110Dialog-dialogContent","closeForm":"bds110Dialog-closeForm","closeButton":"bds110Dialog-closeButton"};
|
|
1261
1272
|
|
|
1262
1273
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1263
|
-
var
|
|
1274
|
+
var import_design_system_foundation25 = require("@boostdev/design-system-foundation");
|
|
1264
1275
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1265
1276
|
var FOCUSABLE_SELECTOR = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
1266
1277
|
function Dialog({ children, isOpen = false, className, onClose }) {
|
|
@@ -1313,7 +1324,7 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1313
1324
|
"dialog",
|
|
1314
1325
|
{
|
|
1315
1326
|
ref: dialogRef,
|
|
1316
|
-
className: (0,
|
|
1327
|
+
className: (0, import_design_system_foundation25.cn)(className, Dialog_default.dialog),
|
|
1317
1328
|
"aria-modal": "true",
|
|
1318
1329
|
onClick: handleBackdropClick,
|
|
1319
1330
|
onCancel: handleCancel,
|
|
@@ -1339,10 +1350,10 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1339
1350
|
var import_react8 = require("react");
|
|
1340
1351
|
|
|
1341
1352
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1342
|
-
var Drawer_default = {"drawer":"
|
|
1353
|
+
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"};
|
|
1343
1354
|
|
|
1344
1355
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1345
|
-
var
|
|
1356
|
+
var import_design_system_foundation26 = require("@boostdev/design-system-foundation");
|
|
1346
1357
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1347
1358
|
function Drawer({
|
|
1348
1359
|
isOpen,
|
|
@@ -1382,7 +1393,7 @@ function Drawer({
|
|
|
1382
1393
|
"dialog",
|
|
1383
1394
|
{
|
|
1384
1395
|
ref: dialogRef,
|
|
1385
|
-
className: (0,
|
|
1396
|
+
className: (0, import_design_system_foundation26.cn)(Drawer_default.drawer, Drawer_default[`--side_${side}`], className),
|
|
1386
1397
|
"aria-label": ariaLabel,
|
|
1387
1398
|
"aria-modal": "true",
|
|
1388
1399
|
onClick: handleClick,
|
|
@@ -1411,10 +1422,10 @@ function Drawer({
|
|
|
1411
1422
|
var import_react9 = require("react");
|
|
1412
1423
|
|
|
1413
1424
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1414
|
-
var DropdownMenu_default = {"wrapper":"
|
|
1425
|
+
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"};
|
|
1415
1426
|
|
|
1416
1427
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1417
|
-
var
|
|
1428
|
+
var import_design_system_foundation27 = require("@boostdev/design-system-foundation");
|
|
1418
1429
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1419
1430
|
function DropdownMenu({
|
|
1420
1431
|
trigger,
|
|
@@ -1483,14 +1494,14 @@ function DropdownMenu({
|
|
|
1483
1494
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1484
1495
|
}
|
|
1485
1496
|
}) : trigger;
|
|
1486
|
-
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref: containerRef, className: (0,
|
|
1497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref: containerRef, className: (0, import_design_system_foundation27.cn)(DropdownMenu_default.wrapper, className), children: [
|
|
1487
1498
|
triggerEl,
|
|
1488
1499
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1489
1500
|
"ul",
|
|
1490
1501
|
{
|
|
1491
1502
|
id: menuId,
|
|
1492
1503
|
role: "menu",
|
|
1493
|
-
className: (0,
|
|
1504
|
+
className: (0, import_design_system_foundation27.cn)(DropdownMenu_default.menu, DropdownMenu_default[`--placement_${placement}`]),
|
|
1494
1505
|
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("li", { role: "presentation", children: [
|
|
1495
1506
|
item.separator && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("hr", { className: DropdownMenu_default.separator, role: "separator" }),
|
|
1496
1507
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
@@ -1524,11 +1535,16 @@ function DropdownMenu({
|
|
|
1524
1535
|
var import_react10 = require("react");
|
|
1525
1536
|
|
|
1526
1537
|
// src/components/interaction/Popover/Popover.module.css
|
|
1527
|
-
var Popover_default = {"wrapper":"
|
|
1538
|
+
var Popover_default = {"wrapper":"bds110Popover-wrapper","panel":"bds110Popover-panel"};
|
|
1528
1539
|
|
|
1529
1540
|
// src/components/interaction/Popover/Popover.tsx
|
|
1530
|
-
var
|
|
1541
|
+
var import_design_system_foundation28 = require("@boostdev/design-system-foundation");
|
|
1531
1542
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1543
|
+
var GAP = 8;
|
|
1544
|
+
if (typeof window !== "undefined" && !(typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name: --a"))) {
|
|
1545
|
+
import("@oddbird/css-anchor-positioning").catch(() => {
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1532
1548
|
function Popover({
|
|
1533
1549
|
children,
|
|
1534
1550
|
content,
|
|
@@ -1538,43 +1554,85 @@ function Popover({
|
|
|
1538
1554
|
}) {
|
|
1539
1555
|
const [isOpen, setIsOpen] = (0, import_react10.useState)(false);
|
|
1540
1556
|
const containerRef = (0, import_react10.useRef)(null);
|
|
1541
|
-
const
|
|
1557
|
+
const dialogRef = (0, import_react10.useRef)(null);
|
|
1558
|
+
const rawId = (0, import_react10.useId)();
|
|
1559
|
+
const anchorName = `--popover-${rawId.replace(/\W/g, "") || "a"}`;
|
|
1560
|
+
const panelId = rawId;
|
|
1542
1561
|
(0, import_react10.useEffect)(() => {
|
|
1543
1562
|
if (!isOpen) return;
|
|
1544
|
-
const
|
|
1545
|
-
if (!containerRef.current
|
|
1563
|
+
const handleMouseDown = (e) => {
|
|
1564
|
+
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
1546
1565
|
setIsOpen(false);
|
|
1547
1566
|
}
|
|
1548
1567
|
};
|
|
1549
1568
|
const handleKeyDown = (e) => {
|
|
1550
1569
|
if (e.key === "Escape") setIsOpen(false);
|
|
1551
1570
|
};
|
|
1552
|
-
document.addEventListener("
|
|
1571
|
+
document.addEventListener("mousedown", handleMouseDown);
|
|
1553
1572
|
document.addEventListener("keydown", handleKeyDown);
|
|
1554
1573
|
return () => {
|
|
1555
|
-
document.removeEventListener("
|
|
1574
|
+
document.removeEventListener("mousedown", handleMouseDown);
|
|
1556
1575
|
document.removeEventListener("keydown", handleKeyDown);
|
|
1557
1576
|
};
|
|
1558
1577
|
}, [isOpen]);
|
|
1578
|
+
const constrainPanel = (0, import_react10.useCallback)(() => {
|
|
1579
|
+
const dialog = dialogRef.current;
|
|
1580
|
+
const container = containerRef.current;
|
|
1581
|
+
if (!dialog || !container) return;
|
|
1582
|
+
const rect = container.getBoundingClientRect();
|
|
1583
|
+
const vw = window.innerWidth;
|
|
1584
|
+
const vh = window.innerHeight;
|
|
1585
|
+
dialog.style.maxHeight = "";
|
|
1586
|
+
dialog.style.maxWidth = "";
|
|
1587
|
+
if (placement === "bottom") {
|
|
1588
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.bottom - GAP * 2)}px`;
|
|
1589
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.left - GAP)}px`;
|
|
1590
|
+
} else if (placement === "top") {
|
|
1591
|
+
dialog.style.maxHeight = `${Math.max(0, rect.top - GAP * 2)}px`;
|
|
1592
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.left - GAP)}px`;
|
|
1593
|
+
} else if (placement === "right") {
|
|
1594
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.top - GAP)}px`;
|
|
1595
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.right - GAP * 2)}px`;
|
|
1596
|
+
} else {
|
|
1597
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.top - GAP)}px`;
|
|
1598
|
+
dialog.style.maxWidth = `${Math.max(0, rect.left - GAP * 2)}px`;
|
|
1599
|
+
}
|
|
1600
|
+
}, [placement]);
|
|
1601
|
+
const toggle = (0, import_react10.useCallback)(() => {
|
|
1602
|
+
if (isOpen) {
|
|
1603
|
+
setIsOpen(false);
|
|
1604
|
+
} else {
|
|
1605
|
+
constrainPanel();
|
|
1606
|
+
setIsOpen(true);
|
|
1607
|
+
}
|
|
1608
|
+
}, [isOpen, constrainPanel]);
|
|
1559
1609
|
const trigger = (0, import_react10.isValidElement)(children) ? (0, import_react10.cloneElement)(children, {
|
|
1560
1610
|
"aria-expanded": isOpen,
|
|
1561
1611
|
"aria-controls": panelId,
|
|
1562
1612
|
"aria-haspopup": true,
|
|
1613
|
+
style: {
|
|
1614
|
+
...children.props.style,
|
|
1615
|
+
anchorName
|
|
1616
|
+
},
|
|
1563
1617
|
onClick: (e) => {
|
|
1564
|
-
|
|
1618
|
+
toggle();
|
|
1565
1619
|
const existingOnClick = children.props.onClick;
|
|
1566
1620
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1567
1621
|
}
|
|
1568
1622
|
}) : children;
|
|
1569
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { ref: containerRef, className: (0,
|
|
1623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { ref: containerRef, className: (0, import_design_system_foundation28.cn)(Popover_default.wrapper, className), children: [
|
|
1570
1624
|
trigger,
|
|
1571
|
-
|
|
1572
|
-
"
|
|
1625
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1626
|
+
"dialog",
|
|
1573
1627
|
{
|
|
1628
|
+
ref: dialogRef,
|
|
1574
1629
|
id: panelId,
|
|
1630
|
+
open: isOpen,
|
|
1631
|
+
"data-placement": placement,
|
|
1575
1632
|
role: ariaLabel ? "region" : void 0,
|
|
1576
1633
|
"aria-label": ariaLabel,
|
|
1577
|
-
className:
|
|
1634
|
+
className: Popover_default.panel,
|
|
1635
|
+
style: { positionAnchor: anchorName },
|
|
1578
1636
|
children: content
|
|
1579
1637
|
}
|
|
1580
1638
|
)
|
|
@@ -1582,23 +1640,23 @@ function Popover({
|
|
|
1582
1640
|
}
|
|
1583
1641
|
|
|
1584
1642
|
// src/components/interaction/Rating/Rating.module.css
|
|
1585
|
-
var Rating_default = {"rating":"
|
|
1643
|
+
var Rating_default = {"rating":"bds110Rating-rating","star":"bds110Rating-star","--filled":"bds110Rating---filled"};
|
|
1586
1644
|
|
|
1587
1645
|
// src/components/interaction/Rating/Rating.tsx
|
|
1588
|
-
var
|
|
1646
|
+
var import_design_system_foundation29 = require("@boostdev/design-system-foundation");
|
|
1589
1647
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1590
1648
|
function Rating({ value, max = 5, className }) {
|
|
1591
1649
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1592
1650
|
"div",
|
|
1593
1651
|
{
|
|
1594
|
-
className: (0,
|
|
1652
|
+
className: (0, import_design_system_foundation29.cn)(Rating_default.rating, className),
|
|
1595
1653
|
role: "img",
|
|
1596
1654
|
"aria-label": `${value} out of ${max} stars`,
|
|
1597
1655
|
children: Array.from({ length: max }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1598
1656
|
"svg",
|
|
1599
1657
|
{
|
|
1600
1658
|
"aria-hidden": "true",
|
|
1601
|
-
className: (0,
|
|
1659
|
+
className: (0, import_design_system_foundation29.cn)(Rating_default.star, i < value && Rating_default["--filled"]),
|
|
1602
1660
|
fill: "currentColor",
|
|
1603
1661
|
viewBox: "0 0 24 24",
|
|
1604
1662
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" })
|
|
@@ -1613,14 +1671,15 @@ function Rating({ value, max = 5, className }) {
|
|
|
1613
1671
|
var import_react11 = require("react");
|
|
1614
1672
|
|
|
1615
1673
|
// src/components/interaction/Toast/Toast.module.css
|
|
1616
|
-
var Toast_default = {"toastContainer":"
|
|
1674
|
+
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"};
|
|
1617
1675
|
|
|
1618
1676
|
// src/components/interaction/Toast/Toast.tsx
|
|
1619
|
-
var
|
|
1677
|
+
var import_design_system_foundation30 = require("@boostdev/design-system-foundation");
|
|
1620
1678
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1621
1679
|
var ToastContext = (0, import_react11.createContext)(void 0);
|
|
1622
1680
|
function ToastProvider({ children }) {
|
|
1623
1681
|
const [toasts, setToasts] = (0, import_react11.useState)([]);
|
|
1682
|
+
const containerRef = (0, import_react11.useRef)(null);
|
|
1624
1683
|
const showToast = (0, import_react11.useCallback)((message, variant) => {
|
|
1625
1684
|
const id = Math.random().toString(36).substring(2, 9);
|
|
1626
1685
|
setToasts((prev) => [...prev, { id, message, variant }]);
|
|
@@ -1628,17 +1687,39 @@ function ToastProvider({ children }) {
|
|
|
1628
1687
|
const removeToast = (0, import_react11.useCallback)((id) => {
|
|
1629
1688
|
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
1630
1689
|
}, []);
|
|
1690
|
+
(0, import_react11.useEffect)(() => {
|
|
1691
|
+
const container = containerRef.current;
|
|
1692
|
+
if (!container) return;
|
|
1693
|
+
if (toasts.length > 0) {
|
|
1694
|
+
container.showPopover?.();
|
|
1695
|
+
} else {
|
|
1696
|
+
try {
|
|
1697
|
+
container.hidePopover?.();
|
|
1698
|
+
} catch {
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
}, [toasts.length]);
|
|
1631
1702
|
const value = (0, import_react11.useMemo)(() => ({ showToast }), [showToast]);
|
|
1632
1703
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ToastContext.Provider, { value, children: [
|
|
1633
1704
|
children,
|
|
1634
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1635
|
-
|
|
1705
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1706
|
+
"div",
|
|
1636
1707
|
{
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1708
|
+
ref: containerRef,
|
|
1709
|
+
popover: "manual",
|
|
1710
|
+
role: "region",
|
|
1711
|
+
"aria-label": "Notifications",
|
|
1712
|
+
className: Toast_default.toastContainer,
|
|
1713
|
+
children: toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1714
|
+
ToastItem,
|
|
1715
|
+
{
|
|
1716
|
+
toast,
|
|
1717
|
+
onRemove: () => removeToast(toast.id)
|
|
1718
|
+
},
|
|
1719
|
+
toast.id
|
|
1720
|
+
))
|
|
1721
|
+
}
|
|
1722
|
+
)
|
|
1642
1723
|
] });
|
|
1643
1724
|
}
|
|
1644
1725
|
function ToastItem({ toast, onRemove }) {
|
|
@@ -1646,7 +1727,7 @@ function ToastItem({ toast, onRemove }) {
|
|
|
1646
1727
|
const timer = setTimeout(onRemove, 5e3);
|
|
1647
1728
|
return () => clearTimeout(timer);
|
|
1648
1729
|
}, [onRemove]);
|
|
1649
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0,
|
|
1730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_design_system_foundation30.cn)(Toast_default.toast, Toast_default[`--variant_${toast.variant}`]), role: "status", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
1650
1731
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: Toast_default.message, children: toast.message }),
|
|
1651
1732
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", className: Toast_default.closeButton, onClick: onRemove, "aria-label": "Dismiss", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) }) })
|
|
1652
1733
|
] });
|
|
@@ -1663,38 +1744,40 @@ function useToast() {
|
|
|
1663
1744
|
var import_react12 = require("react");
|
|
1664
1745
|
|
|
1665
1746
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1666
|
-
var Checkbox_default = {"checkboxGroup":"
|
|
1747
|
+
var Checkbox_default = {"checkboxGroup":"bds110Checkbox-checkboxGroup","inputWrapper":"bds110Checkbox-inputWrapper","checkbox":"bds110Checkbox-checkbox","checkboxError":"bds110Checkbox-checkboxError"};
|
|
1667
1748
|
|
|
1668
1749
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1669
|
-
var Message_default = {"error":"
|
|
1750
|
+
var Message_default = {"error":"bds110Message-error","hint":"bds110Message-hint"};
|
|
1670
1751
|
|
|
1671
1752
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1753
|
+
var import_design_system_foundation31 = require("@boostdev/design-system-foundation");
|
|
1672
1754
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1673
|
-
var Message = ({ message, type, inputId }) => {
|
|
1755
|
+
var Message = ({ message, type, inputId, className }) => {
|
|
1674
1756
|
if (!message) return null;
|
|
1675
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { id: inputId + type, className: Message_default[type], children: message });
|
|
1757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { id: inputId + type, className: (0, import_design_system_foundation31.cn)(Message_default[type], className), children: message });
|
|
1676
1758
|
};
|
|
1677
1759
|
|
|
1678
1760
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1679
|
-
var Label_default = {"label":"
|
|
1761
|
+
var Label_default = {"label":"bds110Label-label"};
|
|
1680
1762
|
|
|
1681
1763
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1764
|
+
var import_design_system_foundation32 = require("@boostdev/design-system-foundation");
|
|
1682
1765
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1683
|
-
var Label = ({ label, id }) => {
|
|
1684
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { htmlFor: id, className: Label_default.label, children: label });
|
|
1766
|
+
var Label = ({ label, id, className }) => {
|
|
1767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { htmlFor: id, className: (0, import_design_system_foundation32.cn)(Label_default.label, className), children: label });
|
|
1685
1768
|
};
|
|
1686
1769
|
|
|
1687
1770
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1688
|
-
var
|
|
1771
|
+
var import_design_system_foundation34 = require("@boostdev/design-system-foundation");
|
|
1689
1772
|
|
|
1690
1773
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1691
|
-
var InputContainer_default = {"container":"
|
|
1774
|
+
var InputContainer_default = {"container":"bds110InputContainer-container"};
|
|
1692
1775
|
|
|
1693
1776
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1694
|
-
var
|
|
1777
|
+
var import_design_system_foundation33 = require("@boostdev/design-system-foundation");
|
|
1695
1778
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1696
1779
|
var InputContainer = ({ children, className }) => {
|
|
1697
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0,
|
|
1780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0, import_design_system_foundation33.cn)(InputContainer_default.container, className), children });
|
|
1698
1781
|
};
|
|
1699
1782
|
|
|
1700
1783
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
@@ -1704,7 +1787,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1704
1787
|
const hintId = id + "hint";
|
|
1705
1788
|
const errorId = id + "error";
|
|
1706
1789
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1707
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(InputContainer, { className: (0,
|
|
1790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(InputContainer, { className: (0, import_design_system_foundation34.cn)(Checkbox_default.checkboxGroup, className), children: [
|
|
1708
1791
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: Checkbox_default.inputWrapper, children: [
|
|
1709
1792
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1710
1793
|
"input",
|
|
@@ -1714,7 +1797,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1714
1797
|
type: "checkbox",
|
|
1715
1798
|
id,
|
|
1716
1799
|
name,
|
|
1717
|
-
className: (0,
|
|
1800
|
+
className: (0, import_design_system_foundation34.cn)(Checkbox_default.checkbox, error && Checkbox_default.checkboxError),
|
|
1718
1801
|
...props
|
|
1719
1802
|
}
|
|
1720
1803
|
),
|
|
@@ -1729,10 +1812,10 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1729
1812
|
var import_react13 = require("react");
|
|
1730
1813
|
|
|
1731
1814
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
1732
|
-
var CheckboxGroup_default = {"group":"
|
|
1815
|
+
var CheckboxGroup_default = {"group":"bds110CheckboxGroup-group","legend":"bds110CheckboxGroup-legend","required":"bds110CheckboxGroup-required","items":"bds110CheckboxGroup-items"};
|
|
1733
1816
|
|
|
1734
1817
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1735
|
-
var
|
|
1818
|
+
var import_design_system_foundation35 = require("@boostdev/design-system-foundation");
|
|
1736
1819
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1737
1820
|
function CheckboxGroup({
|
|
1738
1821
|
legend,
|
|
@@ -1750,7 +1833,7 @@ function CheckboxGroup({
|
|
|
1750
1833
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
1751
1834
|
"fieldset",
|
|
1752
1835
|
{
|
|
1753
|
-
className: (0,
|
|
1836
|
+
className: (0, import_design_system_foundation35.cn)(CheckboxGroup_default.group, className),
|
|
1754
1837
|
disabled,
|
|
1755
1838
|
"aria-required": required || void 0,
|
|
1756
1839
|
"aria-describedby": describedBy,
|
|
@@ -1771,10 +1854,10 @@ function CheckboxGroup({
|
|
|
1771
1854
|
var import_react14 = require("react");
|
|
1772
1855
|
|
|
1773
1856
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1774
|
-
var Combobox_default = {"formGroup":"
|
|
1857
|
+
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"};
|
|
1775
1858
|
|
|
1776
1859
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1777
|
-
var
|
|
1860
|
+
var import_design_system_foundation36 = require("@boostdev/design-system-foundation");
|
|
1778
1861
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1779
1862
|
function Combobox({
|
|
1780
1863
|
label,
|
|
@@ -1853,7 +1936,7 @@ function Combobox({
|
|
|
1853
1936
|
setIsOpen(false);
|
|
1854
1937
|
}
|
|
1855
1938
|
};
|
|
1856
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(InputContainer, { className: (0,
|
|
1939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(InputContainer, { className: (0, import_design_system_foundation36.cn)(Combobox_default.formGroup, className), children: [
|
|
1857
1940
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Label, { id, label }),
|
|
1858
1941
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ref: containerRef, className: Combobox_default.inputWrapper, children: [
|
|
1859
1942
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
@@ -1875,7 +1958,7 @@ function Combobox({
|
|
|
1875
1958
|
placeholder,
|
|
1876
1959
|
value: inputValue,
|
|
1877
1960
|
disabled,
|
|
1878
|
-
className: (0,
|
|
1961
|
+
className: (0, import_design_system_foundation36.cn)(Combobox_default.input, error ? Combobox_default.inputError : void 0),
|
|
1879
1962
|
onChange: handleInputChange,
|
|
1880
1963
|
onKeyDown: handleKeyDown,
|
|
1881
1964
|
onFocus: () => setIsOpen(true)
|
|
@@ -1895,7 +1978,7 @@ function Combobox({
|
|
|
1895
1978
|
role: "option",
|
|
1896
1979
|
"aria-selected": option.value === value,
|
|
1897
1980
|
"aria-disabled": option.disabled,
|
|
1898
|
-
className: (0,
|
|
1981
|
+
className: (0, import_design_system_foundation36.cn)(
|
|
1899
1982
|
Combobox_default.option,
|
|
1900
1983
|
index === highlightedIndex ? Combobox_default["--highlighted"] : void 0,
|
|
1901
1984
|
option.value === value ? Combobox_default["--selected"] : void 0,
|
|
@@ -1921,10 +2004,10 @@ function Combobox({
|
|
|
1921
2004
|
var import_react15 = require("react");
|
|
1922
2005
|
|
|
1923
2006
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
1924
|
-
var FileInput_default = {"formGroup":"
|
|
2007
|
+
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"};
|
|
1925
2008
|
|
|
1926
2009
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1927
|
-
var
|
|
2010
|
+
var import_design_system_foundation37 = require("@boostdev/design-system-foundation");
|
|
1928
2011
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1929
2012
|
function FileInput({
|
|
1930
2013
|
label,
|
|
@@ -1974,12 +2057,12 @@ function FileInput({
|
|
|
1974
2057
|
if (!disabled) setIsDragging(true);
|
|
1975
2058
|
};
|
|
1976
2059
|
const handleDragLeave = () => setIsDragging(false);
|
|
1977
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputContainer, { className: (0,
|
|
2060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputContainer, { className: (0, import_design_system_foundation37.cn)(FileInput_default.formGroup, className), children: [
|
|
1978
2061
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
1979
2062
|
"label",
|
|
1980
2063
|
{
|
|
1981
2064
|
htmlFor: uid,
|
|
1982
|
-
className: (0,
|
|
2065
|
+
className: (0, import_design_system_foundation37.cn)(FileInput_default.dropZone, isDragging && FileInput_default.isDragging, error && FileInput_default.hasError, disabled && FileInput_default.isDisabled),
|
|
1983
2066
|
onDrop: handleDrop,
|
|
1984
2067
|
onDragOver: handleDragOver,
|
|
1985
2068
|
onDragLeave: handleDragLeave,
|
|
@@ -2021,10 +2104,10 @@ function FileInput({
|
|
|
2021
2104
|
var import_react16 = require("react");
|
|
2022
2105
|
|
|
2023
2106
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
2024
|
-
var FormInput_default = {"formGroup":"
|
|
2107
|
+
var FormInput_default = {"formGroup":"bds110FormInput-formGroup","input":"bds110FormInput-input","inputError":"bds110FormInput-inputError"};
|
|
2025
2108
|
|
|
2026
2109
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2027
|
-
var
|
|
2110
|
+
var import_design_system_foundation38 = require("@boostdev/design-system-foundation");
|
|
2028
2111
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2029
2112
|
function FormInput({
|
|
2030
2113
|
label,
|
|
@@ -2040,7 +2123,7 @@ function FormInput({
|
|
|
2040
2123
|
const hintId = id + "hint";
|
|
2041
2124
|
const errorId = id + "error";
|
|
2042
2125
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2043
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(InputContainer, { className: (0,
|
|
2126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(InputContainer, { className: (0, import_design_system_foundation38.cn)(FormInput_default.formGroup, className), children: [
|
|
2044
2127
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Label, { id, label }),
|
|
2045
2128
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2046
2129
|
"input",
|
|
@@ -2052,7 +2135,7 @@ function FormInput({
|
|
|
2052
2135
|
id,
|
|
2053
2136
|
name,
|
|
2054
2137
|
required,
|
|
2055
|
-
className: (0,
|
|
2138
|
+
className: (0, import_design_system_foundation38.cn)(FormInput_default.input, error && FormInput_default.inputError),
|
|
2056
2139
|
...props
|
|
2057
2140
|
}
|
|
2058
2141
|
),
|
|
@@ -2065,10 +2148,10 @@ function FormInput({
|
|
|
2065
2148
|
var import_react17 = require("react");
|
|
2066
2149
|
|
|
2067
2150
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2068
|
-
var NumberInput_default = {"formGroup":"
|
|
2151
|
+
var NumberInput_default = {"formGroup":"bds110NumberInput-formGroup","inputRow":"bds110NumberInput-inputRow","input":"bds110NumberInput-input","inputError":"bds110NumberInput-inputError","stepper":"bds110NumberInput-stepper"};
|
|
2069
2152
|
|
|
2070
2153
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2071
|
-
var
|
|
2154
|
+
var import_design_system_foundation39 = require("@boostdev/design-system-foundation");
|
|
2072
2155
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2073
2156
|
function NumberInput({
|
|
2074
2157
|
label,
|
|
@@ -2107,7 +2190,7 @@ function NumberInput({
|
|
|
2107
2190
|
}
|
|
2108
2191
|
onChange?.(next);
|
|
2109
2192
|
};
|
|
2110
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(InputContainer, { className: (0,
|
|
2193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(InputContainer, { className: (0, import_design_system_foundation39.cn)(NumberInput_default.formGroup, className), children: [
|
|
2111
2194
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Label, { id: uid, label }),
|
|
2112
2195
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: NumberInput_default.inputRow, children: [
|
|
2113
2196
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
@@ -2137,7 +2220,7 @@ function NumberInput({
|
|
|
2137
2220
|
disabled,
|
|
2138
2221
|
"aria-invalid": !!error,
|
|
2139
2222
|
"aria-describedby": describedBy,
|
|
2140
|
-
className: (0,
|
|
2223
|
+
className: (0, import_design_system_foundation39.cn)(NumberInput_default.input, error ? NumberInput_default.inputError : void 0),
|
|
2141
2224
|
onChange: (e) => {
|
|
2142
2225
|
const v = parseFloat(e.target.value);
|
|
2143
2226
|
const safe = isNaN(v) ? 0 : v;
|
|
@@ -2169,17 +2252,17 @@ function NumberInput({
|
|
|
2169
2252
|
var import_react18 = require("react");
|
|
2170
2253
|
|
|
2171
2254
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2172
|
-
var Radio_default = {"radioGroup":"
|
|
2255
|
+
var Radio_default = {"radioGroup":"bds110Radio-radioGroup","inputWrapper":"bds110Radio-inputWrapper","textWrapper":"bds110Radio-textWrapper","description":"bds110Radio-description","radio":"bds110Radio-radio","radioError":"bds110Radio-radioError"};
|
|
2173
2256
|
|
|
2174
2257
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2175
|
-
var
|
|
2258
|
+
var import_design_system_foundation40 = require("@boostdev/design-system-foundation");
|
|
2176
2259
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2177
2260
|
function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
2178
2261
|
const id = name + (0, import_react18.useId)();
|
|
2179
2262
|
const hintId = id + "hint";
|
|
2180
2263
|
const errorId = id + "error";
|
|
2181
2264
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2182
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(InputContainer, { className: (0,
|
|
2265
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(InputContainer, { className: (0, import_design_system_foundation40.cn)(Radio_default.radioGroup, className), children: [
|
|
2183
2266
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: Radio_default.inputWrapper, children: [
|
|
2184
2267
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2185
2268
|
"input",
|
|
@@ -2189,7 +2272,7 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2189
2272
|
type: "radio",
|
|
2190
2273
|
id,
|
|
2191
2274
|
name,
|
|
2192
|
-
className: (0,
|
|
2275
|
+
className: (0, import_design_system_foundation40.cn)(Radio_default.radio, error && Radio_default.radioError),
|
|
2193
2276
|
...props
|
|
2194
2277
|
}
|
|
2195
2278
|
),
|
|
@@ -2207,10 +2290,10 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2207
2290
|
var import_react19 = require("react");
|
|
2208
2291
|
|
|
2209
2292
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2210
|
-
var RadioGroup_default = {"group":"
|
|
2293
|
+
var RadioGroup_default = {"group":"bds110RadioGroup-group","legend":"bds110RadioGroup-legend","required":"bds110RadioGroup-required","items":"bds110RadioGroup-items"};
|
|
2211
2294
|
|
|
2212
2295
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2213
|
-
var
|
|
2296
|
+
var import_design_system_foundation41 = require("@boostdev/design-system-foundation");
|
|
2214
2297
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2215
2298
|
function RadioGroup({
|
|
2216
2299
|
legend,
|
|
@@ -2228,7 +2311,7 @@ function RadioGroup({
|
|
|
2228
2311
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
2229
2312
|
"fieldset",
|
|
2230
2313
|
{
|
|
2231
|
-
className: (0,
|
|
2314
|
+
className: (0, import_design_system_foundation41.cn)(RadioGroup_default.group, className),
|
|
2232
2315
|
disabled,
|
|
2233
2316
|
"aria-required": required || void 0,
|
|
2234
2317
|
"aria-describedby": describedBy,
|
|
@@ -2249,10 +2332,10 @@ function RadioGroup({
|
|
|
2249
2332
|
var import_react20 = require("react");
|
|
2250
2333
|
|
|
2251
2334
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2252
|
-
var SegmentedControl_default = {"control":"
|
|
2335
|
+
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"};
|
|
2253
2336
|
|
|
2254
2337
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2255
|
-
var
|
|
2338
|
+
var import_design_system_foundation42 = require("@boostdev/design-system-foundation");
|
|
2256
2339
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2257
2340
|
function SegmentedControl({
|
|
2258
2341
|
name,
|
|
@@ -2281,7 +2364,7 @@ function SegmentedControl({
|
|
|
2281
2364
|
{
|
|
2282
2365
|
role: "group",
|
|
2283
2366
|
"aria-label": ariaLabel,
|
|
2284
|
-
className: (0,
|
|
2367
|
+
className: (0, import_design_system_foundation42.cn)(SegmentedControl_default.control, SegmentedControl_default[`--size_${size}`], className),
|
|
2285
2368
|
style: {
|
|
2286
2369
|
"--control_count": options.length,
|
|
2287
2370
|
"--control_selected-index": Math.max(0, selectedIndex)
|
|
@@ -2296,7 +2379,7 @@ function SegmentedControl({
|
|
|
2296
2379
|
"label",
|
|
2297
2380
|
{
|
|
2298
2381
|
htmlFor: id,
|
|
2299
|
-
className: (0,
|
|
2382
|
+
className: (0, import_design_system_foundation42.cn)(SegmentedControl_default.item, isChecked && SegmentedControl_default["--active"], isDisabled && SegmentedControl_default["--disabled"]),
|
|
2300
2383
|
children: [
|
|
2301
2384
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2302
2385
|
"input",
|
|
@@ -2327,10 +2410,10 @@ function SegmentedControl({
|
|
|
2327
2410
|
var import_react21 = require("react");
|
|
2328
2411
|
|
|
2329
2412
|
// src/components/interaction/form/Select/Select.module.css
|
|
2330
|
-
var Select_default = {"formGroup":"
|
|
2413
|
+
var Select_default = {"formGroup":"bds110Select-formGroup","selectWrapper":"bds110Select-selectWrapper","select":"bds110Select-select","selectError":"bds110Select-selectError","chevron":"bds110Select-chevron"};
|
|
2331
2414
|
|
|
2332
2415
|
// src/components/interaction/form/Select/Select.tsx
|
|
2333
|
-
var
|
|
2416
|
+
var import_design_system_foundation43 = require("@boostdev/design-system-foundation");
|
|
2334
2417
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2335
2418
|
function Select({
|
|
2336
2419
|
label,
|
|
@@ -2347,7 +2430,7 @@ function Select({
|
|
|
2347
2430
|
const hintId = id + "hint";
|
|
2348
2431
|
const errorId = id + "error";
|
|
2349
2432
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2350
|
-
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(InputContainer, { className: (0,
|
|
2433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(InputContainer, { className: (0, import_design_system_foundation43.cn)(Select_default.formGroup, className), children: [
|
|
2351
2434
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Label, { id, label }),
|
|
2352
2435
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: Select_default.selectWrapper, children: [
|
|
2353
2436
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
@@ -2359,7 +2442,7 @@ function Select({
|
|
|
2359
2442
|
"aria-required": required || void 0,
|
|
2360
2443
|
"aria-describedby": describedBy,
|
|
2361
2444
|
required,
|
|
2362
|
-
className: (0,
|
|
2445
|
+
className: (0, import_design_system_foundation43.cn)(Select_default.select, error ? Select_default.selectError : void 0),
|
|
2363
2446
|
...props,
|
|
2364
2447
|
children: [
|
|
2365
2448
|
placeholder && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
@@ -2378,10 +2461,10 @@ function Select({
|
|
|
2378
2461
|
var import_react22 = require("react");
|
|
2379
2462
|
|
|
2380
2463
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2381
|
-
var Slider_default = {"formGroup":"
|
|
2464
|
+
var Slider_default = {"formGroup":"bds110Slider-formGroup","labelRow":"bds110Slider-labelRow","value":"bds110Slider-value","slider":"bds110Slider-slider","sliderError":"bds110Slider-sliderError"};
|
|
2382
2465
|
|
|
2383
2466
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2384
|
-
var
|
|
2467
|
+
var import_design_system_foundation44 = require("@boostdev/design-system-foundation");
|
|
2385
2468
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2386
2469
|
function Slider({
|
|
2387
2470
|
label,
|
|
@@ -2407,7 +2490,7 @@ function Slider({
|
|
|
2407
2490
|
if (!isControlled) setInternalValue(Number(e.target.value));
|
|
2408
2491
|
onChange?.(e);
|
|
2409
2492
|
};
|
|
2410
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(InputContainer, { className: (0,
|
|
2493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(InputContainer, { className: (0, import_design_system_foundation44.cn)(Slider_default.formGroup, className), children: [
|
|
2411
2494
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: Slider_default.labelRow, children: [
|
|
2412
2495
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Label, { id, label }),
|
|
2413
2496
|
showValue && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: Slider_default.value, children: currentValue })
|
|
@@ -2425,7 +2508,7 @@ function Slider({
|
|
|
2425
2508
|
"aria-valuemax": max,
|
|
2426
2509
|
"aria-valuenow": currentValue,
|
|
2427
2510
|
"aria-valuetext": String(currentValue),
|
|
2428
|
-
className: (0,
|
|
2511
|
+
className: (0, import_design_system_foundation44.cn)(Slider_default.slider, error ? Slider_default.sliderError : void 0),
|
|
2429
2512
|
style: { "--slider_fill": `${fillPct}%` },
|
|
2430
2513
|
onChange: handleChange,
|
|
2431
2514
|
...props
|
|
@@ -2440,10 +2523,10 @@ function Slider({
|
|
|
2440
2523
|
var import_react23 = require("react");
|
|
2441
2524
|
|
|
2442
2525
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2443
|
-
var Switch_default = {"switchGroup":"
|
|
2526
|
+
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"};
|
|
2444
2527
|
|
|
2445
2528
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2446
|
-
var
|
|
2529
|
+
var import_design_system_foundation45 = require("@boostdev/design-system-foundation");
|
|
2447
2530
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2448
2531
|
function Switch({
|
|
2449
2532
|
label,
|
|
@@ -2459,7 +2542,7 @@ function Switch({
|
|
|
2459
2542
|
const hintId = id + "hint";
|
|
2460
2543
|
const errorId = id + "error";
|
|
2461
2544
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2462
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(InputContainer, { className: (0,
|
|
2545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(InputContainer, { className: (0, import_design_system_foundation45.cn)(Switch_default.switchGroup, Switch_default[`--size_${size}`], className), children: [
|
|
2463
2546
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: Switch_default.inputWrapper, children: [
|
|
2464
2547
|
prefix && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: prefix }),
|
|
2465
2548
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: Switch_default.trackWrapper, children: [
|
|
@@ -2471,7 +2554,7 @@ function Switch({
|
|
|
2471
2554
|
id,
|
|
2472
2555
|
name,
|
|
2473
2556
|
"aria-describedby": describedBy,
|
|
2474
|
-
className: (0,
|
|
2557
|
+
className: (0, import_design_system_foundation45.cn)(Switch_default.switch, error ? Switch_default.switchError : void 0),
|
|
2475
2558
|
...props
|
|
2476
2559
|
}
|
|
2477
2560
|
),
|
|
@@ -2488,10 +2571,10 @@ function Switch({
|
|
|
2488
2571
|
var import_react24 = require("react");
|
|
2489
2572
|
|
|
2490
2573
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2491
|
-
var Textarea_default = {"formGroup":"
|
|
2574
|
+
var Textarea_default = {"formGroup":"bds110Textarea-formGroup","textarea":"bds110Textarea-textarea","textareaError":"bds110Textarea-textareaError"};
|
|
2492
2575
|
|
|
2493
2576
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2494
|
-
var
|
|
2577
|
+
var import_design_system_foundation46 = require("@boostdev/design-system-foundation");
|
|
2495
2578
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2496
2579
|
function Textarea({
|
|
2497
2580
|
label,
|
|
@@ -2506,7 +2589,7 @@ function Textarea({
|
|
|
2506
2589
|
const hintId = id + "hint";
|
|
2507
2590
|
const errorId = id + "error";
|
|
2508
2591
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2509
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(InputContainer, { className: (0,
|
|
2592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(InputContainer, { className: (0, import_design_system_foundation46.cn)(Textarea_default.formGroup, className), children: [
|
|
2510
2593
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Label, { id, label }),
|
|
2511
2594
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
2512
2595
|
"textarea",
|
|
@@ -2517,7 +2600,7 @@ function Textarea({
|
|
|
2517
2600
|
"aria-describedby": describedBy,
|
|
2518
2601
|
"aria-required": required || void 0,
|
|
2519
2602
|
required,
|
|
2520
|
-
className: (0,
|
|
2603
|
+
className: (0, import_design_system_foundation46.cn)(Textarea_default.textarea, error ? Textarea_default.textareaError : void 0),
|
|
2521
2604
|
...props
|
|
2522
2605
|
}
|
|
2523
2606
|
),
|
|
@@ -2527,10 +2610,10 @@ function Textarea({
|
|
|
2527
2610
|
}
|
|
2528
2611
|
|
|
2529
2612
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2530
|
-
var ButtonGroup_default = {"buttonGroup":"
|
|
2613
|
+
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"};
|
|
2531
2614
|
|
|
2532
2615
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2533
|
-
var
|
|
2616
|
+
var import_design_system_foundation47 = require("@boostdev/design-system-foundation");
|
|
2534
2617
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2535
2618
|
function ButtonGroup({ children, className, variant, "aria-label": ariaLabel }) {
|
|
2536
2619
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
@@ -2538,17 +2621,17 @@ function ButtonGroup({ children, className, variant, "aria-label": ariaLabel })
|
|
|
2538
2621
|
{
|
|
2539
2622
|
role: "group",
|
|
2540
2623
|
"aria-label": ariaLabel,
|
|
2541
|
-
className: (0,
|
|
2624
|
+
className: (0, import_design_system_foundation47.cn)(ButtonGroup_default.buttonGroup, className, variant && ButtonGroup_default[`--variant_${variant}`]),
|
|
2542
2625
|
children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: ButtonGroup_default.container, children })
|
|
2543
2626
|
}
|
|
2544
2627
|
);
|
|
2545
2628
|
}
|
|
2546
2629
|
|
|
2547
2630
|
// src/components/layout/Card/Card.module.css
|
|
2548
|
-
var Card_default = {"card":"
|
|
2631
|
+
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"};
|
|
2549
2632
|
|
|
2550
2633
|
// src/components/layout/Card/Card.tsx
|
|
2551
|
-
var
|
|
2634
|
+
var import_design_system_foundation48 = require("@boostdev/design-system-foundation");
|
|
2552
2635
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
2553
2636
|
function Card({
|
|
2554
2637
|
children,
|
|
@@ -2560,7 +2643,7 @@ function Card({
|
|
|
2560
2643
|
onClick,
|
|
2561
2644
|
"aria-label": ariaLabel
|
|
2562
2645
|
}) {
|
|
2563
|
-
const classNames = (0,
|
|
2646
|
+
const classNames = (0, import_design_system_foundation48.cn)(
|
|
2564
2647
|
Card_default.card,
|
|
2565
2648
|
Card_default[`--${variant}`],
|
|
2566
2649
|
Card_default[`--padding-${padding}`],
|
|
@@ -2583,10 +2666,10 @@ function Card({
|
|
|
2583
2666
|
}
|
|
2584
2667
|
|
|
2585
2668
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2586
|
-
var SectionHeader_default = {"sectionHeader":"
|
|
2669
|
+
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"};
|
|
2587
2670
|
|
|
2588
2671
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2589
|
-
var
|
|
2672
|
+
var import_design_system_foundation49 = require("@boostdev/design-system-foundation");
|
|
2590
2673
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
2591
2674
|
function SectionHeader({
|
|
2592
2675
|
title,
|
|
@@ -2597,24 +2680,24 @@ function SectionHeader({
|
|
|
2597
2680
|
titleAs = "h2"
|
|
2598
2681
|
}) {
|
|
2599
2682
|
const Title = titleAs;
|
|
2600
|
-
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: (0,
|
|
2683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: (0, import_design_system_foundation49.cn)(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], className), children: [
|
|
2601
2684
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Title, { className: SectionHeader_default.title, children: title }),
|
|
2602
2685
|
subtitle && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
2603
2686
|
] });
|
|
2604
2687
|
}
|
|
2605
2688
|
|
|
2606
2689
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2607
|
-
var IconWrapper_default = {"wrapper":"
|
|
2690
|
+
var IconWrapper_default = {"wrapper":"bds110IconWrapper-wrapper"};
|
|
2608
2691
|
|
|
2609
2692
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2610
|
-
var
|
|
2693
|
+
var import_design_system_foundation50 = require("@boostdev/design-system-foundation");
|
|
2611
2694
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
2612
2695
|
function IconWrapper({ children, className, "aria-hidden": ariaHidden }) {
|
|
2613
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: (0,
|
|
2696
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: (0, import_design_system_foundation50.cn)(className, IconWrapper_default.wrapper), "aria-hidden": ariaHidden, children });
|
|
2614
2697
|
}
|
|
2615
2698
|
|
|
2616
2699
|
// src/index.ts
|
|
2617
|
-
var
|
|
2700
|
+
var import_design_system_foundation51 = require("@boostdev/design-system-foundation");
|
|
2618
2701
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2619
2702
|
0 && (module.exports = {
|
|
2620
2703
|
Accordion,
|