@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/client.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useId, useState } from "react";
|
|
5
5
|
|
|
6
6
|
// src/components/ui/Accordion/Accordion.module.css
|
|
7
|
-
var Accordion_default = {"accordion":"
|
|
7
|
+
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"};
|
|
8
8
|
|
|
9
9
|
// src/components/ui/Accordion/Accordion.tsx
|
|
10
10
|
import { cn } from "@boostdev/design-system-foundation";
|
|
@@ -72,7 +72,7 @@ function Accordion({
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// src/components/ui/Alert/Alert.module.css
|
|
75
|
-
var Alert_default = {"alert":"
|
|
75
|
+
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"};
|
|
76
76
|
|
|
77
77
|
// src/components/ui/Alert/Alert.tsx
|
|
78
78
|
import { cn as cn2 } from "@boostdev/design-system-foundation";
|
|
@@ -115,7 +115,7 @@ function Alert({
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
// src/components/ui/Avatar/Avatar.module.css
|
|
118
|
-
var Avatar_default = {"avatar":"
|
|
118
|
+
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"};
|
|
119
119
|
|
|
120
120
|
// src/components/ui/Avatar/Avatar.tsx
|
|
121
121
|
import { cn as cn3 } from "@boostdev/design-system-foundation";
|
|
@@ -141,7 +141,7 @@ function Avatar({ src, alt, name, size = "medium", className }) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
// src/components/ui/Badge/Badge.module.css
|
|
144
|
-
var Badge_default = {"badge":"
|
|
144
|
+
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"};
|
|
145
145
|
|
|
146
146
|
// src/components/ui/Badge/Badge.tsx
|
|
147
147
|
import { cn as cn4 } from "@boostdev/design-system-foundation";
|
|
@@ -151,7 +151,7 @@ function Badge({ children, variant = "primary", className }) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
154
|
-
var Breadcrumb_default = {"breadcrumb":"
|
|
154
|
+
var Breadcrumb_default = {"breadcrumb":"bds110Breadcrumb-breadcrumb","list":"bds110Breadcrumb-list","item":"bds110Breadcrumb-item","link":"bds110Breadcrumb-link","separator":"bds110Breadcrumb-separator","current":"bds110Breadcrumb-current"};
|
|
155
155
|
|
|
156
156
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
157
157
|
import { cn as cn5 } from "@boostdev/design-system-foundation";
|
|
@@ -167,7 +167,7 @@ function Breadcrumb({ items, className }) {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
// src/components/ui/Collapsible/Collapsible.module.css
|
|
170
|
-
var Collapsible_default = {"collapsible":"
|
|
170
|
+
var Collapsible_default = {"collapsible":"bds110Collapsible-collapsible","summary":"bds110Collapsible-summary","summaryContent":"bds110Collapsible-summaryContent","icon":"bds110Collapsible-icon","content":"bds110Collapsible-content"};
|
|
171
171
|
|
|
172
172
|
// src/components/ui/Collapsible/Collapsible.tsx
|
|
173
173
|
import { cn as cn6 } from "@boostdev/design-system-foundation";
|
|
@@ -208,7 +208,7 @@ function Collapsible({
|
|
|
208
208
|
import { useState as useState2, useId as useId2 } from "react";
|
|
209
209
|
|
|
210
210
|
// src/components/ui/Calendar/Calendar.module.css
|
|
211
|
-
var Calendar_default = {"calendar":"
|
|
211
|
+
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"};
|
|
212
212
|
|
|
213
213
|
// src/components/ui/Calendar/Calendar.tsx
|
|
214
214
|
import { cn as cn7 } from "@boostdev/design-system-foundation";
|
|
@@ -383,7 +383,7 @@ function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
|
383
383
|
import { useRef, useId as useId3 } from "react";
|
|
384
384
|
|
|
385
385
|
// src/components/ui/Carousel/Carousel.module.css
|
|
386
|
-
var Carousel_default = {"carousel":"
|
|
386
|
+
var Carousel_default = {"carousel":"bds110Carousel-carousel","track":"bds110Carousel-track","slide":"bds110Carousel-slide","navBtn":"bds110Carousel-navBtn"};
|
|
387
387
|
|
|
388
388
|
// src/components/ui/Carousel/Carousel.tsx
|
|
389
389
|
import { cn as cn8 } from "@boostdev/design-system-foundation";
|
|
@@ -436,7 +436,7 @@ function Carousel({ items, label, className }) {
|
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
439
|
-
var DescriptionList_default = {"list":"
|
|
439
|
+
var DescriptionList_default = {"list":"bds110DescriptionList-list","group":"bds110DescriptionList-group","term":"bds110DescriptionList-term","details":"bds110DescriptionList-details","--layout_inline":"bds110DescriptionList---layout_inline"};
|
|
440
440
|
|
|
441
441
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
442
442
|
import { cn as cn9 } from "@boostdev/design-system-foundation";
|
|
@@ -449,7 +449,7 @@ function DescriptionList({ items, layout = "stacked", className }) {
|
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
// src/components/ui/Link/Link.module.css
|
|
452
|
-
var Link_default = {"link":"
|
|
452
|
+
var Link_default = {"link":"bds110Link-link","--variant_default":"bds110Link---variant_default","--variant_subtle":"bds110Link---variant_subtle","--variant_standalone":"bds110Link---variant_standalone","externalLabel":"bds110Link-externalLabel"};
|
|
453
453
|
|
|
454
454
|
// src/components/ui/Link/Link.tsx
|
|
455
455
|
import { cn as cn10 } from "@boostdev/design-system-foundation";
|
|
@@ -480,7 +480,7 @@ function Link({
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
// src/components/ui/Loading/Loading.module.css
|
|
483
|
-
var Loading_default = {"loading":"
|
|
483
|
+
var Loading_default = {"loading":"bds110Loading-loading","spinner":"bds110Loading-spinner","--size_small":"bds110Loading---size_small","--size_large":"bds110Loading---size_large"};
|
|
484
484
|
|
|
485
485
|
// src/components/ui/Loading/Loading.tsx
|
|
486
486
|
import { cn as cn11 } from "@boostdev/design-system-foundation";
|
|
@@ -490,7 +490,7 @@ function Loading({ size = "medium", className }) {
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
493
|
-
var NotificationBanner_default = {"banner":"
|
|
493
|
+
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"};
|
|
494
494
|
|
|
495
495
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
496
496
|
import { cn as cn12 } from "@boostdev/design-system-foundation";
|
|
@@ -529,7 +529,7 @@ function NotificationBanner({
|
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
// src/components/ui/Pagination/Pagination.module.css
|
|
532
|
-
var Pagination_default = {"pagination":"
|
|
532
|
+
var Pagination_default = {"pagination":"bds110Pagination-pagination","list":"bds110Pagination-list","button":"bds110Pagination-button","--active":"bds110Pagination---active","--nav":"bds110Pagination---nav","ellipsis":"bds110Pagination-ellipsis"};
|
|
533
533
|
|
|
534
534
|
// src/components/ui/Pagination/Pagination.tsx
|
|
535
535
|
import { cn as cn13 } from "@boostdev/design-system-foundation";
|
|
@@ -593,7 +593,7 @@ function Pagination({
|
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
// src/components/ui/Progress/Progress.module.css
|
|
596
|
-
var Progress_default = {"container":"
|
|
596
|
+
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"};
|
|
597
597
|
|
|
598
598
|
// src/components/ui/Progress/Progress.tsx
|
|
599
599
|
import { cn as cn14 } from "@boostdev/design-system-foundation";
|
|
@@ -631,7 +631,7 @@ function Progress({
|
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
634
|
-
var ProgressCircle_default = {"wrapper":"
|
|
634
|
+
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"};
|
|
635
635
|
|
|
636
636
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
637
637
|
import { cn as cn15 } from "@boostdev/design-system-foundation";
|
|
@@ -710,7 +710,7 @@ function ProgressCircle({
|
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
// src/components/ui/Separator/Separator.module.css
|
|
713
|
-
var Separator_default = {"separator":"
|
|
713
|
+
var Separator_default = {"separator":"bds110Separator-separator","--horizontal":"bds110Separator---horizontal","--vertical":"bds110Separator---vertical"};
|
|
714
714
|
|
|
715
715
|
// src/components/ui/Separator/Separator.tsx
|
|
716
716
|
import { cn as cn16 } from "@boostdev/design-system-foundation";
|
|
@@ -733,7 +733,7 @@ function Separator({ orientation = "horizontal", className }) {
|
|
|
733
733
|
import { cn as cn17 } from "@boostdev/design-system-foundation";
|
|
734
734
|
|
|
735
735
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
736
|
-
var Skeleton_default = {"skeleton":"
|
|
736
|
+
var Skeleton_default = {"skeleton":"bds110Skeleton-skeleton"};
|
|
737
737
|
|
|
738
738
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
739
739
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
@@ -742,19 +742,20 @@ function Skeleton({ className }) {
|
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
745
|
-
var SkipLink_default = {"skipLink":"
|
|
745
|
+
var SkipLink_default = {"skipLink":"bds110SkipLink-skipLink"};
|
|
746
746
|
|
|
747
747
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
748
|
+
import { cn as cn18 } from "@boostdev/design-system-foundation";
|
|
748
749
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
749
|
-
function SkipLink({ href = "#main", children = "Skip to main content" }) {
|
|
750
|
-
return /* @__PURE__ */ jsx18("a", { href, className: SkipLink_default.skipLink, children });
|
|
750
|
+
function SkipLink({ href = "#main", children = "Skip to main content", className }) {
|
|
751
|
+
return /* @__PURE__ */ jsx18("a", { href, className: cn18(SkipLink_default.skipLink, className), children });
|
|
751
752
|
}
|
|
752
753
|
|
|
753
754
|
// src/components/ui/Table/Table.module.css
|
|
754
|
-
var Table_default = {"wrapper":"
|
|
755
|
+
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"};
|
|
755
756
|
|
|
756
757
|
// src/components/ui/Table/Table.tsx
|
|
757
|
-
import { cn as
|
|
758
|
+
import { cn as cn19 } from "@boostdev/design-system-foundation";
|
|
758
759
|
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
759
760
|
function Table({
|
|
760
761
|
columns,
|
|
@@ -774,14 +775,14 @@ function Table({
|
|
|
774
775
|
if (sortKey !== key) return "none";
|
|
775
776
|
return sortDirection === "asc" ? "ascending" : "descending";
|
|
776
777
|
};
|
|
777
|
-
return /* @__PURE__ */ jsx19("div", { className:
|
|
778
|
+
return /* @__PURE__ */ jsx19("div", { className: cn19(Table_default.wrapper, className), children: /* @__PURE__ */ jsxs13("table", { className: Table_default.table, children: [
|
|
778
779
|
caption && /* @__PURE__ */ jsx19("caption", { className: Table_default.caption, children: caption }),
|
|
779
780
|
/* @__PURE__ */ jsx19("thead", { className: Table_default.thead, children: /* @__PURE__ */ jsx19("tr", { children: columns.map((col) => /* @__PURE__ */ jsx19(
|
|
780
781
|
"th",
|
|
781
782
|
{
|
|
782
783
|
scope: "col",
|
|
783
784
|
"aria-sort": col.sortable ? getAriaSort(col.key) : void 0,
|
|
784
|
-
className:
|
|
785
|
+
className: cn19(Table_default.th, col.sortable ? Table_default["--sortable"] : void 0),
|
|
785
786
|
children: col.sortable ? /* @__PURE__ */ jsxs13(
|
|
786
787
|
"button",
|
|
787
788
|
{
|
|
@@ -795,7 +796,7 @@ function Table({
|
|
|
795
796
|
"svg",
|
|
796
797
|
{
|
|
797
798
|
"aria-hidden": "true",
|
|
798
|
-
className:
|
|
799
|
+
className: cn19(
|
|
799
800
|
Table_default.sortIcon,
|
|
800
801
|
sortKey === col.key ? Table_default["--sort-active"] : void 0,
|
|
801
802
|
sortKey === col.key && sortDirection === "desc" ? Table_default["--sort-desc"] : void 0
|
|
@@ -821,10 +822,10 @@ function Table({
|
|
|
821
822
|
import { useId as useId4, useRef as useRef2, useState as useState3 } from "react";
|
|
822
823
|
|
|
823
824
|
// src/components/ui/Tabs/Tabs.module.css
|
|
824
|
-
var Tabs_default = {"tabs":"
|
|
825
|
+
var Tabs_default = {"tabs":"bds110Tabs-tabs","tabList":"bds110Tabs-tabList","tab":"bds110Tabs-tab","--active":"bds110Tabs---active","panel":"bds110Tabs-panel"};
|
|
825
826
|
|
|
826
827
|
// src/components/ui/Tabs/Tabs.tsx
|
|
827
|
-
import { cn as
|
|
828
|
+
import { cn as cn20 } from "@boostdev/design-system-foundation";
|
|
828
829
|
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
829
830
|
function Tabs({ tabs, defaultTab, className }) {
|
|
830
831
|
const baseId = useId4();
|
|
@@ -851,7 +852,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
851
852
|
focusAt(enabledIndexes[enabledIndexes.length - 1]);
|
|
852
853
|
}
|
|
853
854
|
};
|
|
854
|
-
return /* @__PURE__ */ jsxs14("div", { className:
|
|
855
|
+
return /* @__PURE__ */ jsxs14("div", { className: cn20(Tabs_default.tabs, className), children: [
|
|
855
856
|
/* @__PURE__ */ jsx20("div", { role: "tablist", className: Tabs_default.tabList, children: tabs.map((tab, i) => {
|
|
856
857
|
const tabId = `${baseId}-tab-${tab.id}`;
|
|
857
858
|
const panelId = `${baseId}-panel-${tab.id}`;
|
|
@@ -869,7 +870,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
869
870
|
"aria-controls": panelId,
|
|
870
871
|
tabIndex: isActive ? 0 : -1,
|
|
871
872
|
disabled: tab.disabled,
|
|
872
|
-
className:
|
|
873
|
+
className: cn20(Tabs_default.tab, isActive ? Tabs_default["--active"] : void 0),
|
|
873
874
|
onClick: () => setActiveTab(tab.id),
|
|
874
875
|
onKeyDown: (e) => handleKeyDown(e, i),
|
|
875
876
|
children: tab.label
|
|
@@ -901,10 +902,10 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
901
902
|
import { cloneElement, isValidElement, useId as useId5, useState as useState4 } from "react";
|
|
902
903
|
|
|
903
904
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
904
|
-
var Tooltip_default = {"wrapper":"
|
|
905
|
+
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"};
|
|
905
906
|
|
|
906
907
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
907
|
-
import { cn as
|
|
908
|
+
import { cn as cn21 } from "@boostdev/design-system-foundation";
|
|
908
909
|
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
909
910
|
function Tooltip({
|
|
910
911
|
content,
|
|
@@ -920,7 +921,7 @@ function Tooltip({
|
|
|
920
921
|
return /* @__PURE__ */ jsxs15(
|
|
921
922
|
"span",
|
|
922
923
|
{
|
|
923
|
-
className:
|
|
924
|
+
className: cn21(Tooltip_default.wrapper, className),
|
|
924
925
|
onMouseEnter: () => setIsVisible(true),
|
|
925
926
|
onMouseLeave: () => setIsVisible(false),
|
|
926
927
|
onFocus: () => setIsVisible(true),
|
|
@@ -933,7 +934,7 @@ function Tooltip({
|
|
|
933
934
|
id: tooltipId,
|
|
934
935
|
role: "tooltip",
|
|
935
936
|
"aria-hidden": !isVisible,
|
|
936
|
-
className:
|
|
937
|
+
className: cn21(Tooltip_default.tooltip, Tooltip_default[`--placement_${placement}`]),
|
|
937
938
|
children: content
|
|
938
939
|
}
|
|
939
940
|
)
|
|
@@ -943,10 +944,10 @@ function Tooltip({
|
|
|
943
944
|
}
|
|
944
945
|
|
|
945
946
|
// src/components/ui/Typography/Typography.module.css
|
|
946
|
-
var Typography_default = {"typography":"
|
|
947
|
+
var Typography_default = {"typography":"bds110Typography-typography","--h1":"bds110Typography---h1","--h2":"bds110Typography---h2","--h3":"bds110Typography---h3","--body":"bds110Typography---body","--body_s":"bds110Typography---body_s"};
|
|
947
948
|
|
|
948
949
|
// src/components/ui/Typography/Typography.tsx
|
|
949
|
-
import { cn as
|
|
950
|
+
import { cn as cn22 } from "@boostdev/design-system-foundation";
|
|
950
951
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
951
952
|
var variantToElement = {
|
|
952
953
|
h1: "h1",
|
|
@@ -957,14 +958,14 @@ var variantToElement = {
|
|
|
957
958
|
};
|
|
958
959
|
function Typography({ variant = "body", component, children, className }) {
|
|
959
960
|
const Component = component || variantToElement[variant];
|
|
960
|
-
return /* @__PURE__ */ jsx22(Component, { className:
|
|
961
|
+
return /* @__PURE__ */ jsx22(Component, { className: cn22(Typography_default.typography, Typography_default[`--${variant}`], className), children });
|
|
961
962
|
}
|
|
962
963
|
|
|
963
964
|
// src/components/interaction/Button/Button.module.css
|
|
964
|
-
var Button_default = {"button":"
|
|
965
|
+
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"};
|
|
965
966
|
|
|
966
967
|
// src/components/interaction/Button/Button.tsx
|
|
967
|
-
import { cn as
|
|
968
|
+
import { cn as cn23 } from "@boostdev/design-system-foundation";
|
|
968
969
|
import { Fragment as Fragment2, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
969
970
|
function Button({
|
|
970
971
|
children,
|
|
@@ -982,7 +983,7 @@ function Button({
|
|
|
982
983
|
onClick,
|
|
983
984
|
...rest
|
|
984
985
|
}) {
|
|
985
|
-
const classNames =
|
|
986
|
+
const classNames = cn23(
|
|
986
987
|
Button_default.button,
|
|
987
988
|
Button_default[`--${variant}`],
|
|
988
989
|
Button_default[`--size_${size}`],
|
|
@@ -1037,10 +1038,10 @@ function Button({
|
|
|
1037
1038
|
import { useState as useState5, useEffect, useRef as useRef3, useId as useId6, useMemo } from "react";
|
|
1038
1039
|
|
|
1039
1040
|
// src/components/interaction/Command/Command.module.css
|
|
1040
|
-
var Command_default = {"dialog":"
|
|
1041
|
+
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"};
|
|
1041
1042
|
|
|
1042
1043
|
// src/components/interaction/Command/Command.tsx
|
|
1043
|
-
import { cn as
|
|
1044
|
+
import { cn as cn24 } from "@boostdev/design-system-foundation";
|
|
1044
1045
|
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1045
1046
|
function Command({
|
|
1046
1047
|
isOpen,
|
|
@@ -1120,7 +1121,7 @@ function Command({
|
|
|
1120
1121
|
"dialog",
|
|
1121
1122
|
{
|
|
1122
1123
|
ref: dialogRef,
|
|
1123
|
-
className:
|
|
1124
|
+
className: cn24(Command_default.dialog, className),
|
|
1124
1125
|
"aria-label": "Command palette",
|
|
1125
1126
|
"aria-modal": "true",
|
|
1126
1127
|
onCancel: handleCancel,
|
|
@@ -1159,7 +1160,7 @@ function Command({
|
|
|
1159
1160
|
id: `cmd-${item.id}`,
|
|
1160
1161
|
role: "option",
|
|
1161
1162
|
"aria-selected": isActive,
|
|
1162
|
-
className:
|
|
1163
|
+
className: cn24(Command_default.item, isActive && Command_default.itemActive),
|
|
1163
1164
|
onPointerDown: (e) => e.preventDefault(),
|
|
1164
1165
|
onClick: () => selectItem(item),
|
|
1165
1166
|
children: [
|
|
@@ -1185,10 +1186,10 @@ function Command({
|
|
|
1185
1186
|
import { useEffect as useEffect2, useRef as useRef4 } from "react";
|
|
1186
1187
|
|
|
1187
1188
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1188
|
-
var Dialog_default = {"dialog":"
|
|
1189
|
+
var Dialog_default = {"dialog":"bds110Dialog-dialog","dialogContent":"bds110Dialog-dialogContent","closeForm":"bds110Dialog-closeForm","closeButton":"bds110Dialog-closeButton"};
|
|
1189
1190
|
|
|
1190
1191
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1191
|
-
import { cn as
|
|
1192
|
+
import { cn as cn25 } from "@boostdev/design-system-foundation";
|
|
1192
1193
|
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1193
1194
|
var FOCUSABLE_SELECTOR = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
1194
1195
|
function Dialog({ children, isOpen = false, className, onClose }) {
|
|
@@ -1241,7 +1242,7 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1241
1242
|
"dialog",
|
|
1242
1243
|
{
|
|
1243
1244
|
ref: dialogRef,
|
|
1244
|
-
className:
|
|
1245
|
+
className: cn25(className, Dialog_default.dialog),
|
|
1245
1246
|
"aria-modal": "true",
|
|
1246
1247
|
onClick: handleBackdropClick,
|
|
1247
1248
|
onCancel: handleCancel,
|
|
@@ -1267,10 +1268,10 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1267
1268
|
import { useEffect as useEffect3, useRef as useRef5 } from "react";
|
|
1268
1269
|
|
|
1269
1270
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1270
|
-
var Drawer_default = {"drawer":"
|
|
1271
|
+
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"};
|
|
1271
1272
|
|
|
1272
1273
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1273
|
-
import { cn as
|
|
1274
|
+
import { cn as cn26 } from "@boostdev/design-system-foundation";
|
|
1274
1275
|
import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1275
1276
|
function Drawer({
|
|
1276
1277
|
isOpen,
|
|
@@ -1310,7 +1311,7 @@ function Drawer({
|
|
|
1310
1311
|
"dialog",
|
|
1311
1312
|
{
|
|
1312
1313
|
ref: dialogRef,
|
|
1313
|
-
className:
|
|
1314
|
+
className: cn26(Drawer_default.drawer, Drawer_default[`--side_${side}`], className),
|
|
1314
1315
|
"aria-label": ariaLabel,
|
|
1315
1316
|
"aria-modal": "true",
|
|
1316
1317
|
onClick: handleClick,
|
|
@@ -1346,10 +1347,10 @@ import {
|
|
|
1346
1347
|
} from "react";
|
|
1347
1348
|
|
|
1348
1349
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1349
|
-
var DropdownMenu_default = {"wrapper":"
|
|
1350
|
+
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"};
|
|
1350
1351
|
|
|
1351
1352
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1352
|
-
import { cn as
|
|
1353
|
+
import { cn as cn27 } from "@boostdev/design-system-foundation";
|
|
1353
1354
|
import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1354
1355
|
function DropdownMenu({
|
|
1355
1356
|
trigger,
|
|
@@ -1418,14 +1419,14 @@ function DropdownMenu({
|
|
|
1418
1419
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1419
1420
|
}
|
|
1420
1421
|
}) : trigger;
|
|
1421
|
-
return /* @__PURE__ */ jsxs20("div", { ref: containerRef, className:
|
|
1422
|
+
return /* @__PURE__ */ jsxs20("div", { ref: containerRef, className: cn27(DropdownMenu_default.wrapper, className), children: [
|
|
1422
1423
|
triggerEl,
|
|
1423
1424
|
isOpen && /* @__PURE__ */ jsx27(
|
|
1424
1425
|
"ul",
|
|
1425
1426
|
{
|
|
1426
1427
|
id: menuId,
|
|
1427
1428
|
role: "menu",
|
|
1428
|
-
className:
|
|
1429
|
+
className: cn27(DropdownMenu_default.menu, DropdownMenu_default[`--placement_${placement}`]),
|
|
1429
1430
|
children: items.map((item, index) => /* @__PURE__ */ jsxs20("li", { role: "presentation", children: [
|
|
1430
1431
|
item.separator && /* @__PURE__ */ jsx27("hr", { className: DropdownMenu_default.separator, role: "separator" }),
|
|
1431
1432
|
/* @__PURE__ */ jsxs20(
|
|
@@ -1459,6 +1460,7 @@ function DropdownMenu({
|
|
|
1459
1460
|
import {
|
|
1460
1461
|
cloneElement as cloneElement3,
|
|
1461
1462
|
isValidElement as isValidElement3,
|
|
1463
|
+
useCallback,
|
|
1462
1464
|
useEffect as useEffect5,
|
|
1463
1465
|
useId as useId8,
|
|
1464
1466
|
useRef as useRef7,
|
|
@@ -1466,11 +1468,16 @@ import {
|
|
|
1466
1468
|
} from "react";
|
|
1467
1469
|
|
|
1468
1470
|
// src/components/interaction/Popover/Popover.module.css
|
|
1469
|
-
var Popover_default = {"wrapper":"
|
|
1471
|
+
var Popover_default = {"wrapper":"bds110Popover-wrapper","panel":"bds110Popover-panel"};
|
|
1470
1472
|
|
|
1471
1473
|
// src/components/interaction/Popover/Popover.tsx
|
|
1472
|
-
import { cn as
|
|
1474
|
+
import { cn as cn28 } from "@boostdev/design-system-foundation";
|
|
1473
1475
|
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1476
|
+
var GAP = 8;
|
|
1477
|
+
if (typeof window !== "undefined" && !(typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name: --a"))) {
|
|
1478
|
+
import("@oddbird/css-anchor-positioning").catch(() => {
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1474
1481
|
function Popover({
|
|
1475
1482
|
children,
|
|
1476
1483
|
content,
|
|
@@ -1480,43 +1487,85 @@ function Popover({
|
|
|
1480
1487
|
}) {
|
|
1481
1488
|
const [isOpen, setIsOpen] = useState7(false);
|
|
1482
1489
|
const containerRef = useRef7(null);
|
|
1483
|
-
const
|
|
1490
|
+
const dialogRef = useRef7(null);
|
|
1491
|
+
const rawId = useId8();
|
|
1492
|
+
const anchorName = `--popover-${rawId.replace(/\W/g, "") || "a"}`;
|
|
1493
|
+
const panelId = rawId;
|
|
1484
1494
|
useEffect5(() => {
|
|
1485
1495
|
if (!isOpen) return;
|
|
1486
|
-
const
|
|
1487
|
-
if (!containerRef.current
|
|
1496
|
+
const handleMouseDown = (e) => {
|
|
1497
|
+
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
1488
1498
|
setIsOpen(false);
|
|
1489
1499
|
}
|
|
1490
1500
|
};
|
|
1491
1501
|
const handleKeyDown = (e) => {
|
|
1492
1502
|
if (e.key === "Escape") setIsOpen(false);
|
|
1493
1503
|
};
|
|
1494
|
-
document.addEventListener("
|
|
1504
|
+
document.addEventListener("mousedown", handleMouseDown);
|
|
1495
1505
|
document.addEventListener("keydown", handleKeyDown);
|
|
1496
1506
|
return () => {
|
|
1497
|
-
document.removeEventListener("
|
|
1507
|
+
document.removeEventListener("mousedown", handleMouseDown);
|
|
1498
1508
|
document.removeEventListener("keydown", handleKeyDown);
|
|
1499
1509
|
};
|
|
1500
1510
|
}, [isOpen]);
|
|
1511
|
+
const constrainPanel = useCallback(() => {
|
|
1512
|
+
const dialog = dialogRef.current;
|
|
1513
|
+
const container = containerRef.current;
|
|
1514
|
+
if (!dialog || !container) return;
|
|
1515
|
+
const rect = container.getBoundingClientRect();
|
|
1516
|
+
const vw = window.innerWidth;
|
|
1517
|
+
const vh = window.innerHeight;
|
|
1518
|
+
dialog.style.maxHeight = "";
|
|
1519
|
+
dialog.style.maxWidth = "";
|
|
1520
|
+
if (placement === "bottom") {
|
|
1521
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.bottom - GAP * 2)}px`;
|
|
1522
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.left - GAP)}px`;
|
|
1523
|
+
} else if (placement === "top") {
|
|
1524
|
+
dialog.style.maxHeight = `${Math.max(0, rect.top - GAP * 2)}px`;
|
|
1525
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.left - GAP)}px`;
|
|
1526
|
+
} else if (placement === "right") {
|
|
1527
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.top - GAP)}px`;
|
|
1528
|
+
dialog.style.maxWidth = `${Math.max(0, vw - rect.right - GAP * 2)}px`;
|
|
1529
|
+
} else {
|
|
1530
|
+
dialog.style.maxHeight = `${Math.max(0, vh - rect.top - GAP)}px`;
|
|
1531
|
+
dialog.style.maxWidth = `${Math.max(0, rect.left - GAP * 2)}px`;
|
|
1532
|
+
}
|
|
1533
|
+
}, [placement]);
|
|
1534
|
+
const toggle = useCallback(() => {
|
|
1535
|
+
if (isOpen) {
|
|
1536
|
+
setIsOpen(false);
|
|
1537
|
+
} else {
|
|
1538
|
+
constrainPanel();
|
|
1539
|
+
setIsOpen(true);
|
|
1540
|
+
}
|
|
1541
|
+
}, [isOpen, constrainPanel]);
|
|
1501
1542
|
const trigger = isValidElement3(children) ? cloneElement3(children, {
|
|
1502
1543
|
"aria-expanded": isOpen,
|
|
1503
1544
|
"aria-controls": panelId,
|
|
1504
1545
|
"aria-haspopup": true,
|
|
1546
|
+
style: {
|
|
1547
|
+
...children.props.style,
|
|
1548
|
+
anchorName
|
|
1549
|
+
},
|
|
1505
1550
|
onClick: (e) => {
|
|
1506
|
-
|
|
1551
|
+
toggle();
|
|
1507
1552
|
const existingOnClick = children.props.onClick;
|
|
1508
1553
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1509
1554
|
}
|
|
1510
1555
|
}) : children;
|
|
1511
|
-
return /* @__PURE__ */ jsxs21("span", { ref: containerRef, className:
|
|
1556
|
+
return /* @__PURE__ */ jsxs21("span", { ref: containerRef, className: cn28(Popover_default.wrapper, className), children: [
|
|
1512
1557
|
trigger,
|
|
1513
|
-
|
|
1514
|
-
"
|
|
1558
|
+
/* @__PURE__ */ jsx28(
|
|
1559
|
+
"dialog",
|
|
1515
1560
|
{
|
|
1561
|
+
ref: dialogRef,
|
|
1516
1562
|
id: panelId,
|
|
1563
|
+
open: isOpen,
|
|
1564
|
+
"data-placement": placement,
|
|
1517
1565
|
role: ariaLabel ? "region" : void 0,
|
|
1518
1566
|
"aria-label": ariaLabel,
|
|
1519
|
-
className:
|
|
1567
|
+
className: Popover_default.panel,
|
|
1568
|
+
style: { positionAnchor: anchorName },
|
|
1520
1569
|
children: content
|
|
1521
1570
|
}
|
|
1522
1571
|
)
|
|
@@ -1524,23 +1573,23 @@ function Popover({
|
|
|
1524
1573
|
}
|
|
1525
1574
|
|
|
1526
1575
|
// src/components/interaction/Rating/Rating.module.css
|
|
1527
|
-
var Rating_default = {"rating":"
|
|
1576
|
+
var Rating_default = {"rating":"bds110Rating-rating","star":"bds110Rating-star","--filled":"bds110Rating---filled"};
|
|
1528
1577
|
|
|
1529
1578
|
// src/components/interaction/Rating/Rating.tsx
|
|
1530
|
-
import { cn as
|
|
1579
|
+
import { cn as cn29 } from "@boostdev/design-system-foundation";
|
|
1531
1580
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1532
1581
|
function Rating({ value, max = 5, className }) {
|
|
1533
1582
|
return /* @__PURE__ */ jsx29(
|
|
1534
1583
|
"div",
|
|
1535
1584
|
{
|
|
1536
|
-
className:
|
|
1585
|
+
className: cn29(Rating_default.rating, className),
|
|
1537
1586
|
role: "img",
|
|
1538
1587
|
"aria-label": `${value} out of ${max} stars`,
|
|
1539
1588
|
children: Array.from({ length: max }).map((_, i) => /* @__PURE__ */ jsx29(
|
|
1540
1589
|
"svg",
|
|
1541
1590
|
{
|
|
1542
1591
|
"aria-hidden": "true",
|
|
1543
|
-
className:
|
|
1592
|
+
className: cn29(Rating_default.star, i < value && Rating_default["--filled"]),
|
|
1544
1593
|
fill: "currentColor",
|
|
1545
1594
|
viewBox: "0 0 24 24",
|
|
1546
1595
|
children: /* @__PURE__ */ jsx29("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" })
|
|
@@ -1552,35 +1601,58 @@ function Rating({ value, max = 5, className }) {
|
|
|
1552
1601
|
}
|
|
1553
1602
|
|
|
1554
1603
|
// src/components/interaction/Toast/Toast.tsx
|
|
1555
|
-
import { useState as useState8, useEffect as useEffect6, createContext, useContext, useCallback, useMemo as useMemo2 } from "react";
|
|
1604
|
+
import { useState as useState8, useEffect as useEffect6, createContext, useContext, useCallback as useCallback2, useMemo as useMemo2, useRef as useRef8 } from "react";
|
|
1556
1605
|
|
|
1557
1606
|
// src/components/interaction/Toast/Toast.module.css
|
|
1558
|
-
var Toast_default = {"toastContainer":"
|
|
1607
|
+
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"};
|
|
1559
1608
|
|
|
1560
1609
|
// src/components/interaction/Toast/Toast.tsx
|
|
1561
|
-
import { cn as
|
|
1610
|
+
import { cn as cn30 } from "@boostdev/design-system-foundation";
|
|
1562
1611
|
import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1563
1612
|
var ToastContext = createContext(void 0);
|
|
1564
1613
|
function ToastProvider({ children }) {
|
|
1565
1614
|
const [toasts, setToasts] = useState8([]);
|
|
1566
|
-
const
|
|
1615
|
+
const containerRef = useRef8(null);
|
|
1616
|
+
const showToast = useCallback2((message, variant) => {
|
|
1567
1617
|
const id = Math.random().toString(36).substring(2, 9);
|
|
1568
1618
|
setToasts((prev) => [...prev, { id, message, variant }]);
|
|
1569
1619
|
}, []);
|
|
1570
|
-
const removeToast =
|
|
1620
|
+
const removeToast = useCallback2((id) => {
|
|
1571
1621
|
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
1572
1622
|
}, []);
|
|
1623
|
+
useEffect6(() => {
|
|
1624
|
+
const container = containerRef.current;
|
|
1625
|
+
if (!container) return;
|
|
1626
|
+
if (toasts.length > 0) {
|
|
1627
|
+
container.showPopover?.();
|
|
1628
|
+
} else {
|
|
1629
|
+
try {
|
|
1630
|
+
container.hidePopover?.();
|
|
1631
|
+
} catch {
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}, [toasts.length]);
|
|
1573
1635
|
const value = useMemo2(() => ({ showToast }), [showToast]);
|
|
1574
1636
|
return /* @__PURE__ */ jsxs22(ToastContext.Provider, { value, children: [
|
|
1575
1637
|
children,
|
|
1576
|
-
/* @__PURE__ */ jsx30(
|
|
1577
|
-
|
|
1638
|
+
/* @__PURE__ */ jsx30(
|
|
1639
|
+
"div",
|
|
1578
1640
|
{
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1641
|
+
ref: containerRef,
|
|
1642
|
+
popover: "manual",
|
|
1643
|
+
role: "region",
|
|
1644
|
+
"aria-label": "Notifications",
|
|
1645
|
+
className: Toast_default.toastContainer,
|
|
1646
|
+
children: toasts.map((toast) => /* @__PURE__ */ jsx30(
|
|
1647
|
+
ToastItem,
|
|
1648
|
+
{
|
|
1649
|
+
toast,
|
|
1650
|
+
onRemove: () => removeToast(toast.id)
|
|
1651
|
+
},
|
|
1652
|
+
toast.id
|
|
1653
|
+
))
|
|
1654
|
+
}
|
|
1655
|
+
)
|
|
1584
1656
|
] });
|
|
1585
1657
|
}
|
|
1586
1658
|
function ToastItem({ toast, onRemove }) {
|
|
@@ -1588,7 +1660,7 @@ function ToastItem({ toast, onRemove }) {
|
|
|
1588
1660
|
const timer = setTimeout(onRemove, 5e3);
|
|
1589
1661
|
return () => clearTimeout(timer);
|
|
1590
1662
|
}, [onRemove]);
|
|
1591
|
-
return /* @__PURE__ */ jsxs22("div", { className:
|
|
1663
|
+
return /* @__PURE__ */ jsxs22("div", { className: cn30(Toast_default.toast, Toast_default[`--variant_${toast.variant}`]), role: "status", "aria-live": "polite", "aria-atomic": "true", children: [
|
|
1592
1664
|
/* @__PURE__ */ jsx30("span", { className: Toast_default.message, children: toast.message }),
|
|
1593
1665
|
/* @__PURE__ */ jsx30("button", { type: "button", className: Toast_default.closeButton, onClick: onRemove, "aria-label": "Dismiss", children: /* @__PURE__ */ jsx30("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx30("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) }) })
|
|
1594
1666
|
] });
|
|
@@ -1605,38 +1677,40 @@ function useToast() {
|
|
|
1605
1677
|
import { useId as useId9 } from "react";
|
|
1606
1678
|
|
|
1607
1679
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1608
|
-
var Checkbox_default = {"checkboxGroup":"
|
|
1680
|
+
var Checkbox_default = {"checkboxGroup":"bds110Checkbox-checkboxGroup","inputWrapper":"bds110Checkbox-inputWrapper","checkbox":"bds110Checkbox-checkbox","checkboxError":"bds110Checkbox-checkboxError"};
|
|
1609
1681
|
|
|
1610
1682
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1611
|
-
var Message_default = {"error":"
|
|
1683
|
+
var Message_default = {"error":"bds110Message-error","hint":"bds110Message-hint"};
|
|
1612
1684
|
|
|
1613
1685
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1686
|
+
import { cn as cn31 } from "@boostdev/design-system-foundation";
|
|
1614
1687
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
1615
|
-
var Message = ({ message, type, inputId }) => {
|
|
1688
|
+
var Message = ({ message, type, inputId, className }) => {
|
|
1616
1689
|
if (!message) return null;
|
|
1617
|
-
return /* @__PURE__ */ jsx31("p", { id: inputId + type, className: Message_default[type], children: message });
|
|
1690
|
+
return /* @__PURE__ */ jsx31("p", { id: inputId + type, className: cn31(Message_default[type], className), children: message });
|
|
1618
1691
|
};
|
|
1619
1692
|
|
|
1620
1693
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1621
|
-
var Label_default = {"label":"
|
|
1694
|
+
var Label_default = {"label":"bds110Label-label"};
|
|
1622
1695
|
|
|
1623
1696
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1697
|
+
import { cn as cn32 } from "@boostdev/design-system-foundation";
|
|
1624
1698
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
1625
|
-
var Label = ({ label, id }) => {
|
|
1626
|
-
return /* @__PURE__ */ jsx32("label", { htmlFor: id, className: Label_default.label, children: label });
|
|
1699
|
+
var Label = ({ label, id, className }) => {
|
|
1700
|
+
return /* @__PURE__ */ jsx32("label", { htmlFor: id, className: cn32(Label_default.label, className), children: label });
|
|
1627
1701
|
};
|
|
1628
1702
|
|
|
1629
1703
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1630
|
-
import { cn as
|
|
1704
|
+
import { cn as cn34 } from "@boostdev/design-system-foundation";
|
|
1631
1705
|
|
|
1632
1706
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1633
|
-
var InputContainer_default = {"container":"
|
|
1707
|
+
var InputContainer_default = {"container":"bds110InputContainer-container"};
|
|
1634
1708
|
|
|
1635
1709
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1636
|
-
import { cn as
|
|
1710
|
+
import { cn as cn33 } from "@boostdev/design-system-foundation";
|
|
1637
1711
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1638
1712
|
var InputContainer = ({ children, className }) => {
|
|
1639
|
-
return /* @__PURE__ */ jsx33("div", { className:
|
|
1713
|
+
return /* @__PURE__ */ jsx33("div", { className: cn33(InputContainer_default.container, className), children });
|
|
1640
1714
|
};
|
|
1641
1715
|
|
|
1642
1716
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
@@ -1646,7 +1720,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1646
1720
|
const hintId = id + "hint";
|
|
1647
1721
|
const errorId = id + "error";
|
|
1648
1722
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1649
|
-
return /* @__PURE__ */ jsxs23(InputContainer, { className:
|
|
1723
|
+
return /* @__PURE__ */ jsxs23(InputContainer, { className: cn34(Checkbox_default.checkboxGroup, className), children: [
|
|
1650
1724
|
/* @__PURE__ */ jsxs23("div", { className: Checkbox_default.inputWrapper, children: [
|
|
1651
1725
|
/* @__PURE__ */ jsx34(
|
|
1652
1726
|
"input",
|
|
@@ -1656,7 +1730,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1656
1730
|
type: "checkbox",
|
|
1657
1731
|
id,
|
|
1658
1732
|
name,
|
|
1659
|
-
className:
|
|
1733
|
+
className: cn34(Checkbox_default.checkbox, error && Checkbox_default.checkboxError),
|
|
1660
1734
|
...props
|
|
1661
1735
|
}
|
|
1662
1736
|
),
|
|
@@ -1671,10 +1745,10 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1671
1745
|
import { useId as useId10 } from "react";
|
|
1672
1746
|
|
|
1673
1747
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
1674
|
-
var CheckboxGroup_default = {"group":"
|
|
1748
|
+
var CheckboxGroup_default = {"group":"bds110CheckboxGroup-group","legend":"bds110CheckboxGroup-legend","required":"bds110CheckboxGroup-required","items":"bds110CheckboxGroup-items"};
|
|
1675
1749
|
|
|
1676
1750
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1677
|
-
import { cn as
|
|
1751
|
+
import { cn as cn35 } from "@boostdev/design-system-foundation";
|
|
1678
1752
|
import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1679
1753
|
function CheckboxGroup({
|
|
1680
1754
|
legend,
|
|
@@ -1692,7 +1766,7 @@ function CheckboxGroup({
|
|
|
1692
1766
|
return /* @__PURE__ */ jsxs24(
|
|
1693
1767
|
"fieldset",
|
|
1694
1768
|
{
|
|
1695
|
-
className:
|
|
1769
|
+
className: cn35(CheckboxGroup_default.group, className),
|
|
1696
1770
|
disabled,
|
|
1697
1771
|
"aria-required": required || void 0,
|
|
1698
1772
|
"aria-describedby": describedBy,
|
|
@@ -1713,16 +1787,16 @@ function CheckboxGroup({
|
|
|
1713
1787
|
import {
|
|
1714
1788
|
useEffect as useEffect7,
|
|
1715
1789
|
useId as useId11,
|
|
1716
|
-
useRef as
|
|
1790
|
+
useRef as useRef9,
|
|
1717
1791
|
useState as useState9,
|
|
1718
1792
|
useMemo as useMemo3
|
|
1719
1793
|
} from "react";
|
|
1720
1794
|
|
|
1721
1795
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1722
|
-
var Combobox_default = {"formGroup":"
|
|
1796
|
+
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"};
|
|
1723
1797
|
|
|
1724
1798
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1725
|
-
import { cn as
|
|
1799
|
+
import { cn as cn36 } from "@boostdev/design-system-foundation";
|
|
1726
1800
|
import { jsx as jsx36, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1727
1801
|
function Combobox({
|
|
1728
1802
|
label,
|
|
@@ -1748,8 +1822,8 @@ function Combobox({
|
|
|
1748
1822
|
}, [selectedOption]);
|
|
1749
1823
|
const [isOpen, setIsOpen] = useState9(false);
|
|
1750
1824
|
const [highlightedIndex, setHighlightedIndex] = useState9(-1);
|
|
1751
|
-
const containerRef =
|
|
1752
|
-
const inputRef =
|
|
1825
|
+
const containerRef = useRef9(null);
|
|
1826
|
+
const inputRef = useRef9(null);
|
|
1753
1827
|
const filtered = options.filter(
|
|
1754
1828
|
(o) => o.label.toLowerCase().includes(inputValue.toLowerCase())
|
|
1755
1829
|
);
|
|
@@ -1801,7 +1875,7 @@ function Combobox({
|
|
|
1801
1875
|
setIsOpen(false);
|
|
1802
1876
|
}
|
|
1803
1877
|
};
|
|
1804
|
-
return /* @__PURE__ */ jsxs25(InputContainer, { className:
|
|
1878
|
+
return /* @__PURE__ */ jsxs25(InputContainer, { className: cn36(Combobox_default.formGroup, className), children: [
|
|
1805
1879
|
/* @__PURE__ */ jsx36(Label, { id, label }),
|
|
1806
1880
|
/* @__PURE__ */ jsxs25("div", { ref: containerRef, className: Combobox_default.inputWrapper, children: [
|
|
1807
1881
|
/* @__PURE__ */ jsx36(
|
|
@@ -1823,7 +1897,7 @@ function Combobox({
|
|
|
1823
1897
|
placeholder,
|
|
1824
1898
|
value: inputValue,
|
|
1825
1899
|
disabled,
|
|
1826
|
-
className:
|
|
1900
|
+
className: cn36(Combobox_default.input, error ? Combobox_default.inputError : void 0),
|
|
1827
1901
|
onChange: handleInputChange,
|
|
1828
1902
|
onKeyDown: handleKeyDown,
|
|
1829
1903
|
onFocus: () => setIsOpen(true)
|
|
@@ -1843,7 +1917,7 @@ function Combobox({
|
|
|
1843
1917
|
role: "option",
|
|
1844
1918
|
"aria-selected": option.value === value,
|
|
1845
1919
|
"aria-disabled": option.disabled,
|
|
1846
|
-
className:
|
|
1920
|
+
className: cn36(
|
|
1847
1921
|
Combobox_default.option,
|
|
1848
1922
|
index === highlightedIndex ? Combobox_default["--highlighted"] : void 0,
|
|
1849
1923
|
option.value === value ? Combobox_default["--selected"] : void 0,
|
|
@@ -1866,13 +1940,13 @@ function Combobox({
|
|
|
1866
1940
|
}
|
|
1867
1941
|
|
|
1868
1942
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1869
|
-
import { useId as useId12, useRef as
|
|
1943
|
+
import { useId as useId12, useRef as useRef10, useState as useState10 } from "react";
|
|
1870
1944
|
|
|
1871
1945
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
1872
|
-
var FileInput_default = {"formGroup":"
|
|
1946
|
+
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"};
|
|
1873
1947
|
|
|
1874
1948
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1875
|
-
import { cn as
|
|
1949
|
+
import { cn as cn37 } from "@boostdev/design-system-foundation";
|
|
1876
1950
|
import { Fragment as Fragment3, jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1877
1951
|
function FileInput({
|
|
1878
1952
|
label,
|
|
@@ -1890,7 +1964,7 @@ function FileInput({
|
|
|
1890
1964
|
const hintId = uid + "hint";
|
|
1891
1965
|
const errorId = uid + "error";
|
|
1892
1966
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1893
|
-
const inputRef =
|
|
1967
|
+
const inputRef = useRef10(null);
|
|
1894
1968
|
const [isDragging, setIsDragging] = useState10(false);
|
|
1895
1969
|
const [fileNames, setFileNames] = useState10([]);
|
|
1896
1970
|
const isFileAccepted = (file) => {
|
|
@@ -1922,12 +1996,12 @@ function FileInput({
|
|
|
1922
1996
|
if (!disabled) setIsDragging(true);
|
|
1923
1997
|
};
|
|
1924
1998
|
const handleDragLeave = () => setIsDragging(false);
|
|
1925
|
-
return /* @__PURE__ */ jsxs26(InputContainer, { className:
|
|
1999
|
+
return /* @__PURE__ */ jsxs26(InputContainer, { className: cn37(FileInput_default.formGroup, className), children: [
|
|
1926
2000
|
/* @__PURE__ */ jsxs26(
|
|
1927
2001
|
"label",
|
|
1928
2002
|
{
|
|
1929
2003
|
htmlFor: uid,
|
|
1930
|
-
className:
|
|
2004
|
+
className: cn37(FileInput_default.dropZone, isDragging && FileInput_default.isDragging, error && FileInput_default.hasError, disabled && FileInput_default.isDisabled),
|
|
1931
2005
|
onDrop: handleDrop,
|
|
1932
2006
|
onDragOver: handleDragOver,
|
|
1933
2007
|
onDragLeave: handleDragLeave,
|
|
@@ -1969,10 +2043,10 @@ function FileInput({
|
|
|
1969
2043
|
import { useId as useId13 } from "react";
|
|
1970
2044
|
|
|
1971
2045
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
1972
|
-
var FormInput_default = {"formGroup":"
|
|
2046
|
+
var FormInput_default = {"formGroup":"bds110FormInput-formGroup","input":"bds110FormInput-input","inputError":"bds110FormInput-inputError"};
|
|
1973
2047
|
|
|
1974
2048
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
1975
|
-
import { cn as
|
|
2049
|
+
import { cn as cn38 } from "@boostdev/design-system-foundation";
|
|
1976
2050
|
import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1977
2051
|
function FormInput({
|
|
1978
2052
|
label,
|
|
@@ -1988,7 +2062,7 @@ function FormInput({
|
|
|
1988
2062
|
const hintId = id + "hint";
|
|
1989
2063
|
const errorId = id + "error";
|
|
1990
2064
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1991
|
-
return /* @__PURE__ */ jsxs27(InputContainer, { className:
|
|
2065
|
+
return /* @__PURE__ */ jsxs27(InputContainer, { className: cn38(FormInput_default.formGroup, className), children: [
|
|
1992
2066
|
/* @__PURE__ */ jsx38(Label, { id, label }),
|
|
1993
2067
|
/* @__PURE__ */ jsx38(
|
|
1994
2068
|
"input",
|
|
@@ -2000,7 +2074,7 @@ function FormInput({
|
|
|
2000
2074
|
id,
|
|
2001
2075
|
name,
|
|
2002
2076
|
required,
|
|
2003
|
-
className:
|
|
2077
|
+
className: cn38(FormInput_default.input, error && FormInput_default.inputError),
|
|
2004
2078
|
...props
|
|
2005
2079
|
}
|
|
2006
2080
|
),
|
|
@@ -2010,13 +2084,13 @@ function FormInput({
|
|
|
2010
2084
|
}
|
|
2011
2085
|
|
|
2012
2086
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2013
|
-
import { useId as useId14, useRef as
|
|
2087
|
+
import { useId as useId14, useRef as useRef11, useState as useState11 } from "react";
|
|
2014
2088
|
|
|
2015
2089
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2016
|
-
var NumberInput_default = {"formGroup":"
|
|
2090
|
+
var NumberInput_default = {"formGroup":"bds110NumberInput-formGroup","inputRow":"bds110NumberInput-inputRow","input":"bds110NumberInput-input","inputError":"bds110NumberInput-inputError","stepper":"bds110NumberInput-stepper"};
|
|
2017
2091
|
|
|
2018
2092
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2019
|
-
import { cn as
|
|
2093
|
+
import { cn as cn39 } from "@boostdev/design-system-foundation";
|
|
2020
2094
|
import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2021
2095
|
function NumberInput({
|
|
2022
2096
|
label,
|
|
@@ -2036,7 +2110,7 @@ function NumberInput({
|
|
|
2036
2110
|
const hintId = uid + "hint";
|
|
2037
2111
|
const errorId = uid + "error";
|
|
2038
2112
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2039
|
-
const inputRef =
|
|
2113
|
+
const inputRef = useRef11(null);
|
|
2040
2114
|
const isControlled = value !== void 0;
|
|
2041
2115
|
const [internalValue, setInternalValue] = useState11(defaultValue ?? 0);
|
|
2042
2116
|
const currentValue = isControlled ? value : internalValue;
|
|
@@ -2055,7 +2129,7 @@ function NumberInput({
|
|
|
2055
2129
|
}
|
|
2056
2130
|
onChange?.(next);
|
|
2057
2131
|
};
|
|
2058
|
-
return /* @__PURE__ */ jsxs28(InputContainer, { className:
|
|
2132
|
+
return /* @__PURE__ */ jsxs28(InputContainer, { className: cn39(NumberInput_default.formGroup, className), children: [
|
|
2059
2133
|
/* @__PURE__ */ jsx39(Label, { id: uid, label }),
|
|
2060
2134
|
/* @__PURE__ */ jsxs28("div", { className: NumberInput_default.inputRow, children: [
|
|
2061
2135
|
/* @__PURE__ */ jsx39(
|
|
@@ -2085,7 +2159,7 @@ function NumberInput({
|
|
|
2085
2159
|
disabled,
|
|
2086
2160
|
"aria-invalid": !!error,
|
|
2087
2161
|
"aria-describedby": describedBy,
|
|
2088
|
-
className:
|
|
2162
|
+
className: cn39(NumberInput_default.input, error ? NumberInput_default.inputError : void 0),
|
|
2089
2163
|
onChange: (e) => {
|
|
2090
2164
|
const v = parseFloat(e.target.value);
|
|
2091
2165
|
const safe = isNaN(v) ? 0 : v;
|
|
@@ -2117,17 +2191,17 @@ function NumberInput({
|
|
|
2117
2191
|
import { useId as useId15 } from "react";
|
|
2118
2192
|
|
|
2119
2193
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2120
|
-
var Radio_default = {"radioGroup":"
|
|
2194
|
+
var Radio_default = {"radioGroup":"bds110Radio-radioGroup","inputWrapper":"bds110Radio-inputWrapper","textWrapper":"bds110Radio-textWrapper","description":"bds110Radio-description","radio":"bds110Radio-radio","radioError":"bds110Radio-radioError"};
|
|
2121
2195
|
|
|
2122
2196
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2123
|
-
import { cn as
|
|
2197
|
+
import { cn as cn40 } from "@boostdev/design-system-foundation";
|
|
2124
2198
|
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2125
2199
|
function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
2126
2200
|
const id = name + useId15();
|
|
2127
2201
|
const hintId = id + "hint";
|
|
2128
2202
|
const errorId = id + "error";
|
|
2129
2203
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2130
|
-
return /* @__PURE__ */ jsxs29(InputContainer, { className:
|
|
2204
|
+
return /* @__PURE__ */ jsxs29(InputContainer, { className: cn40(Radio_default.radioGroup, className), children: [
|
|
2131
2205
|
/* @__PURE__ */ jsxs29("div", { className: Radio_default.inputWrapper, children: [
|
|
2132
2206
|
/* @__PURE__ */ jsx40(
|
|
2133
2207
|
"input",
|
|
@@ -2137,7 +2211,7 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2137
2211
|
type: "radio",
|
|
2138
2212
|
id,
|
|
2139
2213
|
name,
|
|
2140
|
-
className:
|
|
2214
|
+
className: cn40(Radio_default.radio, error && Radio_default.radioError),
|
|
2141
2215
|
...props
|
|
2142
2216
|
}
|
|
2143
2217
|
),
|
|
@@ -2155,10 +2229,10 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2155
2229
|
import { useId as useId16 } from "react";
|
|
2156
2230
|
|
|
2157
2231
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2158
|
-
var RadioGroup_default = {"group":"
|
|
2232
|
+
var RadioGroup_default = {"group":"bds110RadioGroup-group","legend":"bds110RadioGroup-legend","required":"bds110RadioGroup-required","items":"bds110RadioGroup-items"};
|
|
2159
2233
|
|
|
2160
2234
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2161
|
-
import { cn as
|
|
2235
|
+
import { cn as cn41 } from "@boostdev/design-system-foundation";
|
|
2162
2236
|
import { jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2163
2237
|
function RadioGroup({
|
|
2164
2238
|
legend,
|
|
@@ -2176,7 +2250,7 @@ function RadioGroup({
|
|
|
2176
2250
|
return /* @__PURE__ */ jsxs30(
|
|
2177
2251
|
"fieldset",
|
|
2178
2252
|
{
|
|
2179
|
-
className:
|
|
2253
|
+
className: cn41(RadioGroup_default.group, className),
|
|
2180
2254
|
disabled,
|
|
2181
2255
|
"aria-required": required || void 0,
|
|
2182
2256
|
"aria-describedby": describedBy,
|
|
@@ -2197,10 +2271,10 @@ function RadioGroup({
|
|
|
2197
2271
|
import { useId as useId17, useState as useState12 } from "react";
|
|
2198
2272
|
|
|
2199
2273
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2200
|
-
var SegmentedControl_default = {"control":"
|
|
2274
|
+
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"};
|
|
2201
2275
|
|
|
2202
2276
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2203
|
-
import { cn as
|
|
2277
|
+
import { cn as cn42 } from "@boostdev/design-system-foundation";
|
|
2204
2278
|
import { jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2205
2279
|
function SegmentedControl({
|
|
2206
2280
|
name,
|
|
@@ -2229,7 +2303,7 @@ function SegmentedControl({
|
|
|
2229
2303
|
{
|
|
2230
2304
|
role: "group",
|
|
2231
2305
|
"aria-label": ariaLabel,
|
|
2232
|
-
className:
|
|
2306
|
+
className: cn42(SegmentedControl_default.control, SegmentedControl_default[`--size_${size}`], className),
|
|
2233
2307
|
style: {
|
|
2234
2308
|
"--control_count": options.length,
|
|
2235
2309
|
"--control_selected-index": Math.max(0, selectedIndex)
|
|
@@ -2244,7 +2318,7 @@ function SegmentedControl({
|
|
|
2244
2318
|
"label",
|
|
2245
2319
|
{
|
|
2246
2320
|
htmlFor: id,
|
|
2247
|
-
className:
|
|
2321
|
+
className: cn42(SegmentedControl_default.item, isChecked && SegmentedControl_default["--active"], isDisabled && SegmentedControl_default["--disabled"]),
|
|
2248
2322
|
children: [
|
|
2249
2323
|
/* @__PURE__ */ jsx42(
|
|
2250
2324
|
"input",
|
|
@@ -2275,10 +2349,10 @@ function SegmentedControl({
|
|
|
2275
2349
|
import { useId as useId18 } from "react";
|
|
2276
2350
|
|
|
2277
2351
|
// src/components/interaction/form/Select/Select.module.css
|
|
2278
|
-
var Select_default = {"formGroup":"
|
|
2352
|
+
var Select_default = {"formGroup":"bds110Select-formGroup","selectWrapper":"bds110Select-selectWrapper","select":"bds110Select-select","selectError":"bds110Select-selectError","chevron":"bds110Select-chevron"};
|
|
2279
2353
|
|
|
2280
2354
|
// src/components/interaction/form/Select/Select.tsx
|
|
2281
|
-
import { cn as
|
|
2355
|
+
import { cn as cn43 } from "@boostdev/design-system-foundation";
|
|
2282
2356
|
import { jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2283
2357
|
function Select({
|
|
2284
2358
|
label,
|
|
@@ -2295,7 +2369,7 @@ function Select({
|
|
|
2295
2369
|
const hintId = id + "hint";
|
|
2296
2370
|
const errorId = id + "error";
|
|
2297
2371
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2298
|
-
return /* @__PURE__ */ jsxs32(InputContainer, { className:
|
|
2372
|
+
return /* @__PURE__ */ jsxs32(InputContainer, { className: cn43(Select_default.formGroup, className), children: [
|
|
2299
2373
|
/* @__PURE__ */ jsx43(Label, { id, label }),
|
|
2300
2374
|
/* @__PURE__ */ jsxs32("div", { className: Select_default.selectWrapper, children: [
|
|
2301
2375
|
/* @__PURE__ */ jsxs32(
|
|
@@ -2307,7 +2381,7 @@ function Select({
|
|
|
2307
2381
|
"aria-required": required || void 0,
|
|
2308
2382
|
"aria-describedby": describedBy,
|
|
2309
2383
|
required,
|
|
2310
|
-
className:
|
|
2384
|
+
className: cn43(Select_default.select, error ? Select_default.selectError : void 0),
|
|
2311
2385
|
...props,
|
|
2312
2386
|
children: [
|
|
2313
2387
|
placeholder && /* @__PURE__ */ jsx43("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
@@ -2326,10 +2400,10 @@ function Select({
|
|
|
2326
2400
|
import { useId as useId19, useState as useState13 } from "react";
|
|
2327
2401
|
|
|
2328
2402
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2329
|
-
var Slider_default = {"formGroup":"
|
|
2403
|
+
var Slider_default = {"formGroup":"bds110Slider-formGroup","labelRow":"bds110Slider-labelRow","value":"bds110Slider-value","slider":"bds110Slider-slider","sliderError":"bds110Slider-sliderError"};
|
|
2330
2404
|
|
|
2331
2405
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2332
|
-
import { cn as
|
|
2406
|
+
import { cn as cn44 } from "@boostdev/design-system-foundation";
|
|
2333
2407
|
import { jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2334
2408
|
function Slider({
|
|
2335
2409
|
label,
|
|
@@ -2355,7 +2429,7 @@ function Slider({
|
|
|
2355
2429
|
if (!isControlled) setInternalValue(Number(e.target.value));
|
|
2356
2430
|
onChange?.(e);
|
|
2357
2431
|
};
|
|
2358
|
-
return /* @__PURE__ */ jsxs33(InputContainer, { className:
|
|
2432
|
+
return /* @__PURE__ */ jsxs33(InputContainer, { className: cn44(Slider_default.formGroup, className), children: [
|
|
2359
2433
|
/* @__PURE__ */ jsxs33("div", { className: Slider_default.labelRow, children: [
|
|
2360
2434
|
/* @__PURE__ */ jsx44(Label, { id, label }),
|
|
2361
2435
|
showValue && /* @__PURE__ */ jsx44("span", { className: Slider_default.value, children: currentValue })
|
|
@@ -2373,7 +2447,7 @@ function Slider({
|
|
|
2373
2447
|
"aria-valuemax": max,
|
|
2374
2448
|
"aria-valuenow": currentValue,
|
|
2375
2449
|
"aria-valuetext": String(currentValue),
|
|
2376
|
-
className:
|
|
2450
|
+
className: cn44(Slider_default.slider, error ? Slider_default.sliderError : void 0),
|
|
2377
2451
|
style: { "--slider_fill": `${fillPct}%` },
|
|
2378
2452
|
onChange: handleChange,
|
|
2379
2453
|
...props
|
|
@@ -2388,10 +2462,10 @@ function Slider({
|
|
|
2388
2462
|
import { useId as useId20 } from "react";
|
|
2389
2463
|
|
|
2390
2464
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2391
|
-
var Switch_default = {"switchGroup":"
|
|
2465
|
+
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"};
|
|
2392
2466
|
|
|
2393
2467
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2394
|
-
import { cn as
|
|
2468
|
+
import { cn as cn45 } from "@boostdev/design-system-foundation";
|
|
2395
2469
|
import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
2396
2470
|
function Switch({
|
|
2397
2471
|
label,
|
|
@@ -2407,7 +2481,7 @@ function Switch({
|
|
|
2407
2481
|
const hintId = id + "hint";
|
|
2408
2482
|
const errorId = id + "error";
|
|
2409
2483
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2410
|
-
return /* @__PURE__ */ jsxs34(InputContainer, { className:
|
|
2484
|
+
return /* @__PURE__ */ jsxs34(InputContainer, { className: cn45(Switch_default.switchGroup, Switch_default[`--size_${size}`], className), children: [
|
|
2411
2485
|
/* @__PURE__ */ jsxs34("div", { className: Switch_default.inputWrapper, children: [
|
|
2412
2486
|
prefix && /* @__PURE__ */ jsx45("span", { children: prefix }),
|
|
2413
2487
|
/* @__PURE__ */ jsxs34("div", { className: Switch_default.trackWrapper, children: [
|
|
@@ -2419,7 +2493,7 @@ function Switch({
|
|
|
2419
2493
|
id,
|
|
2420
2494
|
name,
|
|
2421
2495
|
"aria-describedby": describedBy,
|
|
2422
|
-
className:
|
|
2496
|
+
className: cn45(Switch_default.switch, error ? Switch_default.switchError : void 0),
|
|
2423
2497
|
...props
|
|
2424
2498
|
}
|
|
2425
2499
|
),
|
|
@@ -2436,10 +2510,10 @@ function Switch({
|
|
|
2436
2510
|
import { useId as useId21 } from "react";
|
|
2437
2511
|
|
|
2438
2512
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2439
|
-
var Textarea_default = {"formGroup":"
|
|
2513
|
+
var Textarea_default = {"formGroup":"bds110Textarea-formGroup","textarea":"bds110Textarea-textarea","textareaError":"bds110Textarea-textareaError"};
|
|
2440
2514
|
|
|
2441
2515
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2442
|
-
import { cn as
|
|
2516
|
+
import { cn as cn46 } from "@boostdev/design-system-foundation";
|
|
2443
2517
|
import { jsx as jsx46, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
2444
2518
|
function Textarea({
|
|
2445
2519
|
label,
|
|
@@ -2454,7 +2528,7 @@ function Textarea({
|
|
|
2454
2528
|
const hintId = id + "hint";
|
|
2455
2529
|
const errorId = id + "error";
|
|
2456
2530
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2457
|
-
return /* @__PURE__ */ jsxs35(InputContainer, { className:
|
|
2531
|
+
return /* @__PURE__ */ jsxs35(InputContainer, { className: cn46(Textarea_default.formGroup, className), children: [
|
|
2458
2532
|
/* @__PURE__ */ jsx46(Label, { id, label }),
|
|
2459
2533
|
/* @__PURE__ */ jsx46(
|
|
2460
2534
|
"textarea",
|
|
@@ -2465,7 +2539,7 @@ function Textarea({
|
|
|
2465
2539
|
"aria-describedby": describedBy,
|
|
2466
2540
|
"aria-required": required || void 0,
|
|
2467
2541
|
required,
|
|
2468
|
-
className:
|
|
2542
|
+
className: cn46(Textarea_default.textarea, error ? Textarea_default.textareaError : void 0),
|
|
2469
2543
|
...props
|
|
2470
2544
|
}
|
|
2471
2545
|
),
|
|
@@ -2475,10 +2549,10 @@ function Textarea({
|
|
|
2475
2549
|
}
|
|
2476
2550
|
|
|
2477
2551
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2478
|
-
var ButtonGroup_default = {"buttonGroup":"
|
|
2552
|
+
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"};
|
|
2479
2553
|
|
|
2480
2554
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2481
|
-
import { cn as
|
|
2555
|
+
import { cn as cn47 } from "@boostdev/design-system-foundation";
|
|
2482
2556
|
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
2483
2557
|
function ButtonGroup({ children, className, variant, "aria-label": ariaLabel }) {
|
|
2484
2558
|
return /* @__PURE__ */ jsx47(
|
|
@@ -2486,17 +2560,17 @@ function ButtonGroup({ children, className, variant, "aria-label": ariaLabel })
|
|
|
2486
2560
|
{
|
|
2487
2561
|
role: "group",
|
|
2488
2562
|
"aria-label": ariaLabel,
|
|
2489
|
-
className:
|
|
2563
|
+
className: cn47(ButtonGroup_default.buttonGroup, className, variant && ButtonGroup_default[`--variant_${variant}`]),
|
|
2490
2564
|
children: /* @__PURE__ */ jsx47("div", { className: ButtonGroup_default.container, children })
|
|
2491
2565
|
}
|
|
2492
2566
|
);
|
|
2493
2567
|
}
|
|
2494
2568
|
|
|
2495
2569
|
// src/components/layout/Card/Card.module.css
|
|
2496
|
-
var Card_default = {"card":"
|
|
2570
|
+
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"};
|
|
2497
2571
|
|
|
2498
2572
|
// src/components/layout/Card/Card.tsx
|
|
2499
|
-
import { cn as
|
|
2573
|
+
import { cn as cn48 } from "@boostdev/design-system-foundation";
|
|
2500
2574
|
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2501
2575
|
function Card({
|
|
2502
2576
|
children,
|
|
@@ -2508,7 +2582,7 @@ function Card({
|
|
|
2508
2582
|
onClick,
|
|
2509
2583
|
"aria-label": ariaLabel
|
|
2510
2584
|
}) {
|
|
2511
|
-
const classNames =
|
|
2585
|
+
const classNames = cn48(
|
|
2512
2586
|
Card_default.card,
|
|
2513
2587
|
Card_default[`--${variant}`],
|
|
2514
2588
|
Card_default[`--padding-${padding}`],
|
|
@@ -2531,10 +2605,10 @@ function Card({
|
|
|
2531
2605
|
}
|
|
2532
2606
|
|
|
2533
2607
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2534
|
-
var SectionHeader_default = {"sectionHeader":"
|
|
2608
|
+
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"};
|
|
2535
2609
|
|
|
2536
2610
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2537
|
-
import { cn as
|
|
2611
|
+
import { cn as cn49 } from "@boostdev/design-system-foundation";
|
|
2538
2612
|
import { jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
2539
2613
|
function SectionHeader({
|
|
2540
2614
|
title,
|
|
@@ -2545,24 +2619,24 @@ function SectionHeader({
|
|
|
2545
2619
|
titleAs = "h2"
|
|
2546
2620
|
}) {
|
|
2547
2621
|
const Title = titleAs;
|
|
2548
|
-
return /* @__PURE__ */ jsxs36("div", { className:
|
|
2622
|
+
return /* @__PURE__ */ jsxs36("div", { className: cn49(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], className), children: [
|
|
2549
2623
|
/* @__PURE__ */ jsx49(Title, { className: SectionHeader_default.title, children: title }),
|
|
2550
2624
|
subtitle && /* @__PURE__ */ jsx49("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
2551
2625
|
] });
|
|
2552
2626
|
}
|
|
2553
2627
|
|
|
2554
2628
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2555
|
-
var IconWrapper_default = {"wrapper":"
|
|
2629
|
+
var IconWrapper_default = {"wrapper":"bds110IconWrapper-wrapper"};
|
|
2556
2630
|
|
|
2557
2631
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2558
|
-
import { cn as
|
|
2632
|
+
import { cn as cn50 } from "@boostdev/design-system-foundation";
|
|
2559
2633
|
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
2560
2634
|
function IconWrapper({ children, className, "aria-hidden": ariaHidden }) {
|
|
2561
|
-
return /* @__PURE__ */ jsx50("div", { className:
|
|
2635
|
+
return /* @__PURE__ */ jsx50("div", { className: cn50(className, IconWrapper_default.wrapper), "aria-hidden": ariaHidden, children });
|
|
2562
2636
|
}
|
|
2563
2637
|
|
|
2564
2638
|
// src/index.ts
|
|
2565
|
-
import { cn as
|
|
2639
|
+
import { cn as cn51 } from "@boostdev/design-system-foundation";
|
|
2566
2640
|
export {
|
|
2567
2641
|
Accordion,
|
|
2568
2642
|
Alert,
|
|
@@ -2611,6 +2685,6 @@ export {
|
|
|
2611
2685
|
ToastProvider,
|
|
2612
2686
|
Tooltip,
|
|
2613
2687
|
Typography,
|
|
2614
|
-
|
|
2688
|
+
cn51 as cn,
|
|
2615
2689
|
useToast
|
|
2616
2690
|
};
|