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