@boostdev/design-system-components 1.1.0 → 1.1.2
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 +46 -5
- package/dist/client.cjs +206 -113
- package/dist/client.css +664 -624
- package/dist/client.d.cts +9 -3
- package/dist/client.d.ts +9 -3
- package/dist/client.js +241 -149
- package/dist/index.cjs +206 -113
- package/dist/index.css +664 -624
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +241 -149
- package/dist/web-components/chunk-2QA62WCQ.js +48 -0
- package/dist/web-components/chunk-4BX6AWXX.js +146 -0
- package/dist/web-components/chunk-57TRNCWQ.js +93 -0
- package/dist/web-components/chunk-5IPHEONG.js +139 -0
- package/dist/web-components/chunk-5R6IFELV.js +63 -0
- package/dist/web-components/chunk-5TFWOPLH.js +49 -0
- package/dist/web-components/chunk-6I3CFC26.js +89 -0
- package/dist/web-components/chunk-6T3RKUKG.js +65 -0
- package/dist/web-components/chunk-7FMR53BW.js +127 -0
- package/dist/web-components/chunk-A67LCT7C.js +134 -0
- package/dist/web-components/chunk-AGKJTMJI.js +56 -0
- package/dist/web-components/chunk-BQLZ7I4G.js +56 -0
- package/dist/web-components/chunk-CAPI25CU.js +53 -0
- package/dist/web-components/chunk-CJ5ZOO42.js +229 -0
- package/dist/web-components/chunk-CR5PGUHV.js +109 -0
- package/dist/web-components/chunk-ECW3HHWA.js +185 -0
- package/dist/web-components/chunk-HGBNDR22.js +98 -0
- package/dist/web-components/chunk-IK3PTFZ4.js +133 -0
- package/dist/web-components/chunk-IQGLIQSO.js +188 -0
- package/dist/web-components/chunk-ITHLKR7Q.js +105 -0
- package/dist/web-components/chunk-K5CE6HSB.js +169 -0
- package/dist/web-components/chunk-L3XHOMN6.js +111 -0
- package/dist/{web-components.js → web-components/chunk-LGEZYFUU.js} +62 -834
- package/dist/web-components/chunk-LSC4N56Q.js +168 -0
- package/dist/web-components/chunk-LY62SAVN.js +64 -0
- package/dist/web-components/chunk-O4UFI2RX.js +244 -0
- package/dist/web-components/chunk-O7I63SQX.js +124 -0
- package/dist/web-components/chunk-OHUTLSIQ.js +69 -0
- package/dist/web-components/chunk-OQTRTMAB.js +27 -0
- package/dist/web-components/chunk-OTX4COSV.js +187 -0
- package/dist/web-components/chunk-PY62FTRW.js +179 -0
- package/dist/web-components/chunk-Q4T5BJT6.js +94 -0
- package/dist/web-components/chunk-QDRH46TF.js +281 -0
- package/dist/web-components/chunk-QDST57JC.js +119 -0
- package/dist/web-components/chunk-QPOKHLMQ.js +45 -0
- package/dist/web-components/chunk-SOQQ7RVJ.js +88 -0
- package/dist/web-components/chunk-UFFCKVZE.js +149 -0
- package/dist/web-components/chunk-VM3YHGQ2.js +152 -0
- package/dist/web-components/chunk-VMMVWLXL.js +53 -0
- package/dist/web-components/chunk-VSS5ITNE.js +109 -0
- package/dist/web-components/chunk-XIENXR7H.js +118 -0
- package/dist/web-components/chunk-Y4MAXTMA.js +80 -0
- package/dist/web-components/chunk-YLVTEY23.js +165 -0
- package/dist/web-components/globals.d.ts +2 -0
- package/dist/web-components/globals.js +1 -0
- package/dist/web-components/index.d.ts +41 -0
- package/dist/web-components/index.js +165 -0
- package/dist/web-components/interaction/bds-accordion-item.d.ts +54 -0
- package/dist/web-components/interaction/bds-accordion-item.js +7 -0
- package/dist/web-components/interaction/bds-accordion.d.ts +50 -0
- package/dist/web-components/interaction/bds-accordion.js +7 -0
- package/dist/web-components/interaction/bds-button.d.ts +100 -0
- package/dist/web-components/interaction/bds-button.js +7 -0
- package/dist/web-components/interaction/bds-collapsible.d.ts +52 -0
- package/dist/web-components/interaction/bds-collapsible.js +7 -0
- package/dist/web-components/interaction/bds-dialog.d.ts +56 -0
- package/dist/web-components/interaction/bds-dialog.js +7 -0
- package/dist/web-components/interaction/bds-drawer.d.ts +64 -0
- package/dist/web-components/interaction/bds-drawer.js +7 -0
- package/dist/web-components/interaction/bds-popover.d.ts +62 -0
- package/dist/web-components/interaction/bds-popover.js +7 -0
- package/dist/web-components/interaction/bds-skip-link.d.ts +36 -0
- package/dist/web-components/interaction/bds-skip-link.js +7 -0
- package/dist/web-components/interaction/bds-tab-panel.d.ts +26 -0
- package/dist/web-components/interaction/bds-tab-panel.js +7 -0
- package/dist/web-components/interaction/bds-tab.d.ts +45 -0
- package/dist/web-components/interaction/bds-tab.js +7 -0
- package/dist/web-components/interaction/bds-tabs.d.ts +46 -0
- package/dist/web-components/interaction/bds-tabs.js +7 -0
- package/dist/web-components/interaction/bds-toast-provider.d.ts +57 -0
- package/dist/web-components/interaction/bds-toast-provider.js +7 -0
- package/dist/web-components/interaction/bds-tooltip.d.ts +50 -0
- package/dist/web-components/interaction/bds-tooltip.js +7 -0
- package/dist/web-components/interaction/form/bds-checkbox.d.ts +70 -0
- package/dist/web-components/interaction/form/bds-checkbox.js +7 -0
- package/dist/web-components/interaction/form/bds-combobox.d.ts +84 -0
- package/dist/web-components/interaction/form/bds-combobox.js +7 -0
- package/dist/web-components/interaction/form/bds-file-input.d.ts +62 -0
- package/dist/web-components/interaction/form/bds-file-input.js +7 -0
- package/dist/web-components/interaction/form/bds-number-input.d.ts +68 -0
- package/dist/web-components/interaction/form/bds-number-input.js +7 -0
- package/dist/web-components/interaction/form/bds-radio.d.ts +68 -0
- package/dist/web-components/interaction/form/bds-radio.js +7 -0
- package/dist/web-components/interaction/form/bds-segmented-control.d.ts +71 -0
- package/dist/web-components/interaction/form/bds-segmented-control.js +7 -0
- package/dist/web-components/interaction/form/bds-select.d.ts +79 -0
- package/dist/web-components/interaction/form/bds-select.js +7 -0
- package/dist/web-components/interaction/form/bds-slider.d.ts +70 -0
- package/dist/web-components/interaction/form/bds-slider.js +7 -0
- package/dist/web-components/interaction/form/bds-switch.d.ts +67 -0
- package/dist/web-components/interaction/form/bds-switch.js +7 -0
- package/dist/web-components/interaction/form/bds-textarea.d.ts +70 -0
- package/dist/web-components/interaction/form/bds-textarea.js +7 -0
- package/dist/web-components/ui/bds-alert.d.ts +66 -0
- package/dist/web-components/ui/bds-alert.js +7 -0
- package/dist/web-components/ui/bds-avatar.d.ts +50 -0
- package/dist/web-components/ui/bds-avatar.js +7 -0
- package/dist/web-components/ui/bds-badge.d.ts +35 -0
- package/dist/web-components/ui/bds-badge.js +7 -0
- package/dist/web-components/ui/bds-breadcrumb.d.ts +35 -0
- package/dist/web-components/ui/bds-breadcrumb.js +7 -0
- package/dist/web-components/ui/bds-card.d.ts +72 -0
- package/dist/web-components/ui/bds-card.js +7 -0
- package/dist/web-components/ui/bds-description-list.d.ts +42 -0
- package/dist/web-components/ui/bds-description-list.js +7 -0
- package/dist/web-components/ui/bds-icon-wrapper.d.ts +39 -0
- package/dist/web-components/ui/bds-icon-wrapper.js +7 -0
- package/dist/web-components/ui/bds-link.d.ts +59 -0
- package/dist/web-components/ui/bds-link.js +7 -0
- package/dist/web-components/ui/bds-loading.d.ts +32 -0
- package/dist/web-components/ui/bds-loading.js +7 -0
- package/dist/web-components/ui/bds-notification-banner.d.ts +61 -0
- package/dist/web-components/ui/bds-notification-banner.js +7 -0
- package/dist/web-components/ui/bds-progress-circle.d.ts +53 -0
- package/dist/web-components/ui/bds-progress-circle.js +7 -0
- package/dist/web-components/ui/bds-progress.d.ts +54 -0
- package/dist/web-components/ui/bds-progress.js +7 -0
- package/dist/web-components/ui/bds-rating.d.ts +36 -0
- package/dist/web-components/ui/bds-rating.js +7 -0
- package/dist/web-components/ui/bds-section-header.d.ts +53 -0
- package/dist/web-components/ui/bds-section-header.js +8 -0
- package/dist/web-components/ui/bds-separator.d.ts +32 -0
- package/dist/web-components/ui/bds-separator.js +7 -0
- package/dist/web-components/ui/bds-skeleton.d.ts +22 -0
- package/dist/web-components/ui/bds-skeleton.js +7 -0
- package/dist/web-components/ui/bds-typography.d.ts +44 -0
- package/dist/web-components/ui/bds-typography.js +8 -0
- package/package.json +169 -4
- package/src/components/interaction/Button/Button.module.css +1 -1
- package/src/components/interaction/Button/Button.native.mdx +72 -0
- package/src/components/interaction/Command/Command.module.css +7 -7
- package/src/components/interaction/Command/Command.spec.tsx +37 -0
- package/src/components/interaction/Command/Command.tsx +37 -2
- package/src/components/interaction/Dialog/Dialog.module.css +10 -13
- package/src/components/interaction/Dialog/Dialog.spec.tsx +53 -1
- package/src/components/interaction/Dialog/Dialog.stories.tsx +17 -0
- package/src/components/interaction/Dialog/Dialog.tsx +50 -16
- package/src/components/interaction/Drawer/Drawer.module.css +11 -11
- package/src/components/interaction/Drawer/Drawer.spec.tsx +48 -1
- package/src/components/interaction/Drawer/Drawer.tsx +38 -4
- package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +6 -6
- package/src/components/interaction/Popover/Popover.module.css +74 -15
- package/src/components/interaction/Popover/Popover.spec.tsx +94 -59
- package/src/components/interaction/Popover/Popover.tsx +44 -60
- package/src/components/interaction/Toast/Toast.module.css +7 -7
- package/src/components/interaction/form/Checkbox/Checkbox.module.css +6 -6
- package/src/components/interaction/form/Checkbox/Checkbox.native.mdx +74 -0
- package/src/components/interaction/form/Combobox/Combobox.module.css +7 -8
- package/src/components/interaction/form/FileInput/FileInput.module.css +4 -4
- package/src/components/interaction/form/NumberInput/NumberInput.module.css +1 -1
- package/src/components/interaction/form/Radio/Radio.module.css +6 -6
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +5 -6
- package/src/components/interaction/form/Select/Select.module.css +3 -3
- package/src/components/interaction/form/Slider/Slider.module.css +6 -6
- package/src/components/interaction/form/Switch/Switch.module.css +8 -8
- package/src/components/interaction/form/Textarea/Textarea.module.css +1 -1
- package/src/components/layout/IconWrapper/IconWrapper.module.css +2 -2
- package/src/components/ui/Accordion/Accordion.module.css +5 -5
- package/src/components/ui/Alert/Alert.native.mdx +62 -0
- package/src/components/ui/Avatar/Avatar.native.mdx +50 -0
- package/src/components/ui/Badge/Badge.native.mdx +54 -0
- package/src/components/ui/Calendar/Calendar.module.css +7 -7
- package/src/components/ui/Carousel/Carousel.module.css +5 -5
- package/src/components/ui/Collapsible/Collapsible.module.css +4 -4
- package/src/components/ui/Link/Link.module.css +2 -2
- package/src/components/ui/Loading/Loading.module.css +7 -7
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +3 -3
- package/src/components/ui/Pagination/Pagination.module.css +6 -6
- package/src/components/ui/Progress/Progress.module.css +5 -5
- package/src/components/ui/Separator/Separator.module.css +3 -3
- package/src/components/ui/Skeleton/Skeleton.module.css +1 -1
- package/src/components/ui/Table/Table.module.css +9 -9
- package/src/components/ui/Tabs/Tabs.module.css +3 -3
- package/src/components/ui/Tooltip/Tooltip.module.css +8 -8
- package/src/components/ui/Typography/Typography.native.mdx +56 -0
- package/src/polyfill-invoker-commands.ts +68 -0
- package/src/react-augment.d.ts +19 -0
- package/src/stories/ReactNative.mdx +121 -0
- package/src/web-components/index.ts +47 -0
- package/src/web-components/interaction/BdsButton.mdx +106 -0
- package/src/web-components/interaction/BdsPopover.mdx +120 -0
- package/src/web-components/interaction/BdsToastProvider.mdx +94 -0
- package/src/web-components/interaction/bds-accordion-item.spec.ts +75 -0
- package/src/web-components/interaction/bds-accordion-item.ts +181 -0
- package/src/web-components/interaction/bds-accordion.spec.ts +73 -0
- package/src/web-components/interaction/bds-accordion.ts +99 -0
- package/src/web-components/interaction/bds-collapsible.spec.ts +56 -0
- package/src/web-components/interaction/bds-collapsible.ts +170 -0
- package/src/web-components/interaction/bds-dialog.spec.ts +119 -0
- package/src/web-components/interaction/bds-dialog.ts +224 -0
- package/src/web-components/interaction/bds-drawer.spec.ts +113 -0
- package/src/web-components/interaction/bds-drawer.ts +266 -0
- package/src/web-components/interaction/bds-popover.spec.ts +49 -1
- package/src/web-components/interaction/bds-popover.ts +12 -0
- package/src/web-components/interaction/bds-skip-link.spec.ts +42 -0
- package/src/web-components/interaction/bds-skip-link.ts +74 -0
- package/src/web-components/interaction/bds-tab-panel.spec.ts +32 -0
- package/src/web-components/interaction/bds-tab-panel.ts +38 -0
- package/src/web-components/interaction/bds-tab.spec.ts +71 -0
- package/src/web-components/interaction/bds-tab.ts +110 -0
- package/src/web-components/interaction/bds-tabs.spec.ts +120 -0
- package/src/web-components/interaction/bds-tabs.ts +152 -0
- package/src/web-components/interaction/bds-tooltip.spec.ts +49 -0
- package/src/web-components/interaction/bds-tooltip.ts +127 -0
- package/src/web-components/interaction/form/bds-checkbox.spec.ts +63 -0
- package/src/web-components/interaction/form/bds-checkbox.ts +168 -0
- package/src/web-components/interaction/form/bds-combobox.spec.ts +117 -0
- package/src/web-components/interaction/form/bds-combobox.ts +336 -0
- package/src/web-components/interaction/form/bds-file-input.spec.ts +58 -0
- package/src/web-components/interaction/form/bds-file-input.ts +209 -0
- package/src/web-components/interaction/form/bds-number-input.spec.ts +87 -0
- package/src/web-components/interaction/form/bds-number-input.ts +221 -0
- package/src/web-components/interaction/form/bds-radio.spec.ts +70 -0
- package/src/web-components/interaction/form/bds-radio.ts +157 -0
- package/src/web-components/interaction/form/bds-segmented-control.spec.ts +74 -0
- package/src/web-components/interaction/form/bds-segmented-control.ts +211 -0
- package/src/web-components/interaction/form/bds-select.spec.ts +74 -0
- package/src/web-components/interaction/form/bds-select.ts +190 -0
- package/src/web-components/interaction/form/bds-slider.spec.ts +41 -0
- package/src/web-components/interaction/form/bds-slider.ts +162 -0
- package/src/web-components/interaction/form/bds-switch.spec.ts +62 -0
- package/src/web-components/interaction/form/bds-switch.ts +166 -0
- package/src/web-components/interaction/form/bds-textarea.spec.ts +55 -0
- package/src/web-components/interaction/form/bds-textarea.ts +143 -0
- package/src/web-components/test/helpers.ts +8 -0
- package/src/web-components/ui/BdsAlert.mdx +90 -0
- package/src/web-components/ui/BdsBadge.mdx +74 -0
- package/src/web-components/ui/bds-avatar.spec.ts +75 -0
- package/src/web-components/ui/bds-avatar.ts +122 -0
- package/src/web-components/ui/bds-breadcrumb.spec.ts +55 -0
- package/src/web-components/ui/bds-breadcrumb.ts +114 -0
- package/src/web-components/ui/bds-card.spec.ts +70 -0
- package/src/web-components/ui/bds-card.ts +156 -0
- package/src/web-components/ui/bds-description-list.spec.ts +36 -0
- package/src/web-components/ui/bds-description-list.ts +79 -0
- package/src/web-components/ui/bds-icon-wrapper.spec.ts +21 -0
- package/src/web-components/ui/bds-icon-wrapper.ts +68 -0
- package/src/web-components/ui/bds-link.spec.ts +72 -0
- package/src/web-components/ui/bds-link.ts +138 -0
- package/src/web-components/ui/bds-loading.spec.ts +38 -0
- package/src/web-components/ui/bds-loading.ts +76 -0
- package/src/web-components/ui/bds-notification-banner.spec.ts +82 -0
- package/src/web-components/ui/bds-notification-banner.ts +185 -0
- package/src/web-components/ui/bds-progress-circle.spec.ts +58 -0
- package/src/web-components/ui/bds-progress-circle.ts +142 -0
- package/src/web-components/ui/bds-progress.spec.ts +66 -0
- package/src/web-components/ui/bds-progress.ts +127 -0
- package/src/web-components/ui/bds-rating.spec.ts +70 -0
- package/src/web-components/ui/bds-rating.ts +80 -0
- package/src/web-components/ui/bds-section-header.spec.ts +57 -0
- package/src/web-components/ui/bds-section-header.ts +96 -0
- package/src/web-components/ui/bds-separator.spec.ts +50 -0
- package/src/web-components/ui/bds-separator.ts +66 -0
- package/src/web-components/ui/bds-skeleton.spec.ts +22 -0
- package/src/web-components/ui/bds-skeleton.ts +55 -0
- package/src/web-components/ui/bds-typography.spec.ts +76 -0
- package/src/web-components/ui/bds-typography.ts +112 -0
- package/dist/web-components.d.ts +0 -303
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":"bds112Accordion-accordion","item":"bds112Accordion-item","heading":"bds112Accordion-heading","trigger":"bds112Accordion-trigger","triggerLabel":"bds112Accordion-triggerLabel","chevron":"bds112Accordion-chevron","--open":"bds112Accordion---open","panel":"bds112Accordion-panel","panelContent":"bds112Accordion-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":"bds112Alert-alert","--variant_info":"bds112Alert---variant_info","--variant_success":"bds112Alert---variant_success","--variant_warning":"bds112Alert---variant_warning","--variant_error":"bds112Alert---variant_error","icon":"bds112Alert-icon","content":"bds112Alert-content","title":"bds112Alert-title","dismiss":"bds112Alert-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":"bds112Avatar-avatar","--fallback":"bds112Avatar---fallback","--size_small":"bds112Avatar---size_small","--size_medium":"bds112Avatar---size_medium","--size_large":"bds112Avatar---size_large","image":"bds112Avatar-image","initials":"bds112Avatar-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":"bds112Badge-badge","--variant_primary":"bds112Badge---variant_primary","--variant_secondary":"bds112Badge---variant_secondary","--variant_success":"bds112Badge---variant_success","--variant_error":"bds112Badge---variant_error","--variant_warning":"bds112Badge---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":"bds112Breadcrumb-breadcrumb","list":"bds112Breadcrumb-list","item":"bds112Breadcrumb-item","link":"bds112Breadcrumb-link","separator":"bds112Breadcrumb-separator","current":"bds112Breadcrumb-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":"bds112Collapsible-collapsible","summary":"bds112Collapsible-summary","summaryContent":"bds112Collapsible-summaryContent","icon":"bds112Collapsible-icon","content":"bds112Collapsible-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":"bds112Calendar-calendar","header":"bds112Calendar-header","monthYear":"bds112Calendar-monthYear","navBtn":"bds112Calendar-navBtn","grid":"bds112Calendar-grid","weekday":"bds112Calendar-weekday","empty":"bds112Calendar-empty","day":"bds112Calendar-day","disabled":"bds112Calendar-disabled","selected":"bds112Calendar-selected","today":"bds112Calendar-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":"bds112Carousel-carousel","track":"bds112Carousel-track","slide":"bds112Carousel-slide","navBtn":"bds112Carousel-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":"bds112DescriptionList-list","group":"bds112DescriptionList-group","term":"bds112DescriptionList-term","details":"bds112DescriptionList-details","--layout_inline":"bds112DescriptionList---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":"bds112Link-link","--variant_default":"bds112Link---variant_default","--variant_subtle":"bds112Link---variant_subtle","--variant_standalone":"bds112Link---variant_standalone","externalLabel":"bds112Link-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":"bds112Loading-loading","spinner":"bds112Loading-spinner","--size_small":"bds112Loading---size_small","--size_large":"bds112Loading---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":"bds112NotificationBanner-banner","--variant_info":"bds112NotificationBanner---variant_info","--variant_success":"bds112NotificationBanner---variant_success","--variant_warning":"bds112NotificationBanner---variant_warning","--variant_error":"bds112NotificationBanner---variant_error","content":"bds112NotificationBanner-content","action":"bds112NotificationBanner-action","dismiss":"bds112NotificationBanner-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":"bds112Pagination-pagination","list":"bds112Pagination-list","button":"bds112Pagination-button","--active":"bds112Pagination---active","--nav":"bds112Pagination---nav","ellipsis":"bds112Pagination-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":"bds112Progress-container","labelRow":"bds112Progress-labelRow","value":"bds112Progress-value","track":"bds112Progress-track","--size_small":"bds112Progress---size_small","--size_medium":"bds112Progress---size_medium","--size_large":"bds112Progress---size_large","fill":"bds112Progress-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":"bds112ProgressCircle-wrapper","svg":"bds112ProgressCircle-svg","track":"bds112ProgressCircle-track","fill":"bds112ProgressCircle-fill","value":"bds112ProgressCircle-value","--size_small":"bds112ProgressCircle---size_small","--size_medium":"bds112ProgressCircle---size_medium","--size_large":"bds112ProgressCircle---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":"bds112Separator-separator","--horizontal":"bds112Separator---horizontal","--vertical":"bds112Separator---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":"bds112Skeleton-skeleton"};
|
|
737
737
|
|
|
738
738
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
739
739
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
@@ -742,7 +742,7 @@ 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":"bds112SkipLink-skipLink"};
|
|
746
746
|
|
|
747
747
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
748
748
|
import { cn as cn18 } from "@boostdev/design-system-foundation";
|
|
@@ -752,7 +752,7 @@ function SkipLink({ href = "#main", children = "Skip to main content", className
|
|
|
752
752
|
}
|
|
753
753
|
|
|
754
754
|
// src/components/ui/Table/Table.module.css
|
|
755
|
-
var Table_default = {"wrapper":"
|
|
755
|
+
var Table_default = {"wrapper":"bds112Table-wrapper","table":"bds112Table-table","caption":"bds112Table-caption","thead":"bds112Table-thead","th":"bds112Table-th","--sortable":"bds112Table---sortable","sortButton":"bds112Table-sortButton","sortIcon":"bds112Table-sortIcon","--sort-active":"bds112Table---sort-active","--sort-desc":"bds112Table---sort-desc","tbody":"bds112Table-tbody","tr":"bds112Table-tr","td":"bds112Table-td"};
|
|
756
756
|
|
|
757
757
|
// src/components/ui/Table/Table.tsx
|
|
758
758
|
import { cn as cn19 } from "@boostdev/design-system-foundation";
|
|
@@ -822,7 +822,7 @@ function Table({
|
|
|
822
822
|
import { useId as useId4, useRef as useRef2, useState as useState3 } from "react";
|
|
823
823
|
|
|
824
824
|
// src/components/ui/Tabs/Tabs.module.css
|
|
825
|
-
var Tabs_default = {"tabs":"
|
|
825
|
+
var Tabs_default = {"tabs":"bds112Tabs-tabs","tabList":"bds112Tabs-tabList","tab":"bds112Tabs-tab","--active":"bds112Tabs---active","panel":"bds112Tabs-panel"};
|
|
826
826
|
|
|
827
827
|
// src/components/ui/Tabs/Tabs.tsx
|
|
828
828
|
import { cn as cn20 } from "@boostdev/design-system-foundation";
|
|
@@ -902,7 +902,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
902
902
|
import { cloneElement, isValidElement, useId as useId5, useState as useState4 } from "react";
|
|
903
903
|
|
|
904
904
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
905
|
-
var Tooltip_default = {"wrapper":"
|
|
905
|
+
var Tooltip_default = {"wrapper":"bds112Tooltip-wrapper","tooltip":"bds112Tooltip-tooltip","--placement_top":"bds112Tooltip---placement_top","--placement_bottom":"bds112Tooltip---placement_bottom","--placement_left":"bds112Tooltip---placement_left","--placement_right":"bds112Tooltip---placement_right"};
|
|
906
906
|
|
|
907
907
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
908
908
|
import { cn as cn21 } from "@boostdev/design-system-foundation";
|
|
@@ -944,7 +944,7 @@ function Tooltip({
|
|
|
944
944
|
}
|
|
945
945
|
|
|
946
946
|
// src/components/ui/Typography/Typography.module.css
|
|
947
|
-
var Typography_default = {"typography":"
|
|
947
|
+
var Typography_default = {"typography":"bds112Typography-typography","--h1":"bds112Typography---h1","--h2":"bds112Typography---h2","--h3":"bds112Typography---h3","--body":"bds112Typography---body","--body_s":"bds112Typography---body_s"};
|
|
948
948
|
|
|
949
949
|
// src/components/ui/Typography/Typography.tsx
|
|
950
950
|
import { cn as cn22 } from "@boostdev/design-system-foundation";
|
|
@@ -962,7 +962,7 @@ function Typography({ variant = "body", component, children, className }) {
|
|
|
962
962
|
}
|
|
963
963
|
|
|
964
964
|
// src/components/interaction/Button/Button.module.css
|
|
965
|
-
var Button_default = {"button":"
|
|
965
|
+
var Button_default = {"button":"bds112Button-button","--default":"bds112Button---default","--ghost":"bds112Button---ghost","--size_small":"bds112Button---size_small","--size_medium":"bds112Button---size_medium","--size_large":"bds112Button---size_large","--hasPulse":"bds112Button---hasPulse","iconStart":"bds112Button-iconStart","iconEnd":"bds112Button-iconEnd"};
|
|
966
966
|
|
|
967
967
|
// src/components/interaction/Button/Button.tsx
|
|
968
968
|
import { cn as cn23 } from "@boostdev/design-system-foundation";
|
|
@@ -1037,14 +1037,56 @@ function Button({
|
|
|
1037
1037
|
// src/components/interaction/Command/Command.tsx
|
|
1038
1038
|
import { useState as useState5, useEffect, useRef as useRef3, useId as useId6, useMemo } from "react";
|
|
1039
1039
|
|
|
1040
|
+
// src/polyfill-invoker-commands.ts
|
|
1041
|
+
var installed = false;
|
|
1042
|
+
function installInvokerCommandsPolyfill() {
|
|
1043
|
+
if (installed) return;
|
|
1044
|
+
if (typeof window === "undefined") return;
|
|
1045
|
+
if ("command" in HTMLButtonElement.prototype) return;
|
|
1046
|
+
installed = true;
|
|
1047
|
+
document.addEventListener("click", (e) => {
|
|
1048
|
+
const button = e.target?.closest("button[commandfor]");
|
|
1049
|
+
if (!button) return;
|
|
1050
|
+
const targetId = button.getAttribute("commandfor");
|
|
1051
|
+
const command = button.getAttribute("command");
|
|
1052
|
+
if (!targetId || !command) return;
|
|
1053
|
+
const target = document.getElementById(targetId);
|
|
1054
|
+
if (!target) return;
|
|
1055
|
+
const commandEvent = new Event("command", { cancelable: true, bubbles: false });
|
|
1056
|
+
Object.defineProperty(commandEvent, "command", { value: command, configurable: true });
|
|
1057
|
+
Object.defineProperty(commandEvent, "source", { value: button, configurable: true });
|
|
1058
|
+
const notCancelled = target.dispatchEvent(commandEvent);
|
|
1059
|
+
if (!notCancelled) return;
|
|
1060
|
+
if (target instanceof HTMLDialogElement) {
|
|
1061
|
+
if (command === "show-modal" && !target.open) {
|
|
1062
|
+
target.showModal();
|
|
1063
|
+
} else if (command === "close" && target.open) {
|
|
1064
|
+
target.close();
|
|
1065
|
+
}
|
|
1066
|
+
} else if (target.hasAttribute("popover") && "showPopover" in target) {
|
|
1067
|
+
const popover = target;
|
|
1068
|
+
if (command === "toggle-popover") {
|
|
1069
|
+
popover.togglePopover();
|
|
1070
|
+
} else if (command === "show-popover") {
|
|
1071
|
+
popover.showPopover();
|
|
1072
|
+
} else if (command === "hide-popover") {
|
|
1073
|
+
popover.hidePopover();
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1040
1079
|
// src/components/interaction/Command/Command.module.css
|
|
1041
|
-
var Command_default = {"dialog":"
|
|
1080
|
+
var Command_default = {"dialog":"bds112Command-dialog","palette":"bds112Command-palette","searchRow":"bds112Command-searchRow","searchIcon":"bds112Command-searchIcon","search":"bds112Command-search","escHint":"bds112Command-escHint","list":"bds112Command-list","groupList":"bds112Command-groupList","group":"bds112Command-group","item":"bds112Command-item","itemActive":"bds112Command-itemActive","itemLabel":"bds112Command-itemLabel","itemDesc":"bds112Command-itemDesc","shortcut":"bds112Command-shortcut","empty":"bds112Command-empty"};
|
|
1042
1081
|
|
|
1043
1082
|
// src/components/interaction/Command/Command.tsx
|
|
1044
1083
|
import { cn as cn24 } from "@boostdev/design-system-foundation";
|
|
1045
1084
|
import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1085
|
+
installInvokerCommandsPolyfill();
|
|
1046
1086
|
function Command({
|
|
1087
|
+
id: idProp,
|
|
1047
1088
|
isOpen,
|
|
1089
|
+
onOpen,
|
|
1048
1090
|
onClose,
|
|
1049
1091
|
items,
|
|
1050
1092
|
placeholder = "Search commands\u2026",
|
|
@@ -1052,6 +1094,8 @@ function Command({
|
|
|
1052
1094
|
}) {
|
|
1053
1095
|
const [query, setQuery] = useState5("");
|
|
1054
1096
|
const [activeIndex, setActiveIndex] = useState5(0);
|
|
1097
|
+
const generatedId = useId6();
|
|
1098
|
+
const dialogId = idProp ?? generatedId;
|
|
1055
1099
|
const dialogRef = useRef3(null);
|
|
1056
1100
|
const inputRef = useRef3(null);
|
|
1057
1101
|
const listboxId = useId6();
|
|
@@ -1075,14 +1119,14 @@ function Command({
|
|
|
1075
1119
|
useEffect(() => {
|
|
1076
1120
|
const dialog = dialogRef.current;
|
|
1077
1121
|
if (!dialog) return;
|
|
1078
|
-
if (isOpen) {
|
|
1122
|
+
if (isOpen && !dialog.open) {
|
|
1079
1123
|
triggerRef.current = document.activeElement;
|
|
1080
1124
|
dialog.showModal();
|
|
1081
1125
|
document.body.style.overflow = "hidden";
|
|
1082
1126
|
setQuery("");
|
|
1083
1127
|
setActiveIndex(0);
|
|
1084
1128
|
setTimeout(() => inputRef.current?.focus(), 0);
|
|
1085
|
-
} else if (dialog.open) {
|
|
1129
|
+
} else if (!isOpen && dialog.open) {
|
|
1086
1130
|
dialog.close();
|
|
1087
1131
|
document.body.style.overflow = "";
|
|
1088
1132
|
triggerRef.current?.focus();
|
|
@@ -1094,6 +1138,27 @@ function Command({
|
|
|
1094
1138
|
useEffect(() => {
|
|
1095
1139
|
setActiveIndex(0);
|
|
1096
1140
|
}, [query]);
|
|
1141
|
+
useEffect(() => {
|
|
1142
|
+
const dialog = dialogRef.current;
|
|
1143
|
+
if (!dialog) return;
|
|
1144
|
+
const handleCommand = (e) => {
|
|
1145
|
+
if (e.command === "show-modal") {
|
|
1146
|
+
triggerRef.current = document.activeElement;
|
|
1147
|
+
document.body.style.overflow = "hidden";
|
|
1148
|
+
setQuery("");
|
|
1149
|
+
setActiveIndex(0);
|
|
1150
|
+
setTimeout(() => inputRef.current?.focus(), 0);
|
|
1151
|
+
onOpen?.();
|
|
1152
|
+
} else if (e.command === "close") {
|
|
1153
|
+
document.body.style.overflow = "";
|
|
1154
|
+
const trigger = triggerRef.current;
|
|
1155
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1156
|
+
onClose();
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
dialog.addEventListener("command", handleCommand);
|
|
1160
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1161
|
+
}, [onOpen, onClose]);
|
|
1097
1162
|
const handleCancel = (e) => {
|
|
1098
1163
|
e.preventDefault();
|
|
1099
1164
|
onClose();
|
|
@@ -1121,6 +1186,7 @@ function Command({
|
|
|
1121
1186
|
"dialog",
|
|
1122
1187
|
{
|
|
1123
1188
|
ref: dialogRef,
|
|
1189
|
+
id: dialogId,
|
|
1124
1190
|
className: cn24(Command_default.dialog, className),
|
|
1125
1191
|
"aria-label": "Command palette",
|
|
1126
1192
|
"aria-modal": "true",
|
|
@@ -1183,26 +1249,29 @@ function Command({
|
|
|
1183
1249
|
}
|
|
1184
1250
|
|
|
1185
1251
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1186
|
-
import { useEffect as useEffect2, useRef as useRef4 } from "react";
|
|
1252
|
+
import { useEffect as useEffect2, useId as useId7, useRef as useRef4 } from "react";
|
|
1187
1253
|
|
|
1188
1254
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1189
|
-
var Dialog_default = {"dialog":"
|
|
1255
|
+
var Dialog_default = {"dialog":"bds112Dialog-dialog","dialogContent":"bds112Dialog-dialogContent","closeButton":"bds112Dialog-closeButton"};
|
|
1190
1256
|
|
|
1191
1257
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1192
1258
|
import { cn as cn25 } from "@boostdev/design-system-foundation";
|
|
1193
1259
|
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1260
|
+
installInvokerCommandsPolyfill();
|
|
1194
1261
|
var FOCUSABLE_SELECTOR = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
1195
|
-
function Dialog({ children, isOpen = false, className, onClose }) {
|
|
1262
|
+
function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClose }) {
|
|
1263
|
+
const generatedId = useId7();
|
|
1264
|
+
const id = idProp ?? generatedId;
|
|
1196
1265
|
const dialogRef = useRef4(null);
|
|
1197
1266
|
const triggerRef = useRef4(null);
|
|
1198
1267
|
useEffect2(() => {
|
|
1199
1268
|
const dialog = dialogRef.current;
|
|
1200
1269
|
if (!dialog) return;
|
|
1201
|
-
if (isOpen) {
|
|
1270
|
+
if (isOpen && !dialog.open) {
|
|
1202
1271
|
triggerRef.current = document.activeElement;
|
|
1203
1272
|
dialog.showModal();
|
|
1204
1273
|
document.body.style.overflow = "hidden";
|
|
1205
|
-
} else if (dialog.open) {
|
|
1274
|
+
} else if (!isOpen && dialog.open) {
|
|
1206
1275
|
dialog.close();
|
|
1207
1276
|
document.body.style.overflow = "";
|
|
1208
1277
|
triggerRef.current?.focus();
|
|
@@ -1211,6 +1280,24 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1211
1280
|
document.body.style.overflow = "";
|
|
1212
1281
|
};
|
|
1213
1282
|
}, [isOpen]);
|
|
1283
|
+
useEffect2(() => {
|
|
1284
|
+
const dialog = dialogRef.current;
|
|
1285
|
+
if (!dialog) return;
|
|
1286
|
+
const handleCommand = (e) => {
|
|
1287
|
+
if (e.command === "show-modal") {
|
|
1288
|
+
triggerRef.current = document.activeElement;
|
|
1289
|
+
document.body.style.overflow = "hidden";
|
|
1290
|
+
onOpen?.();
|
|
1291
|
+
} else if (e.command === "close") {
|
|
1292
|
+
document.body.style.overflow = "";
|
|
1293
|
+
const trigger = triggerRef.current;
|
|
1294
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1295
|
+
onClose?.();
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
dialog.addEventListener("command", handleCommand);
|
|
1299
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1300
|
+
}, [onOpen, onClose]);
|
|
1214
1301
|
const handleBackdropClick = (e) => {
|
|
1215
1302
|
if (e.target === dialogRef.current) onClose?.();
|
|
1216
1303
|
};
|
|
@@ -1242,22 +1329,24 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1242
1329
|
"dialog",
|
|
1243
1330
|
{
|
|
1244
1331
|
ref: dialogRef,
|
|
1332
|
+
id,
|
|
1245
1333
|
className: cn25(className, Dialog_default.dialog),
|
|
1246
1334
|
"aria-modal": "true",
|
|
1247
1335
|
onClick: handleBackdropClick,
|
|
1248
1336
|
onCancel: handleCancel,
|
|
1249
1337
|
onKeyDown: handleKeyDown,
|
|
1250
1338
|
children: [
|
|
1251
|
-
/* @__PURE__ */ jsx25(
|
|
1339
|
+
/* @__PURE__ */ jsx25(
|
|
1252
1340
|
"button",
|
|
1253
1341
|
{
|
|
1254
|
-
type: "
|
|
1342
|
+
type: "button",
|
|
1255
1343
|
className: Dialog_default.closeButton,
|
|
1256
|
-
|
|
1344
|
+
commandfor: id,
|
|
1345
|
+
command: "close",
|
|
1257
1346
|
"aria-label": "Close dialog",
|
|
1258
1347
|
children: /* @__PURE__ */ jsx25("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx25("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
1259
1348
|
}
|
|
1260
|
-
)
|
|
1349
|
+
),
|
|
1261
1350
|
/* @__PURE__ */ jsx25("div", { className: Dialog_default.dialogContent, children })
|
|
1262
1351
|
]
|
|
1263
1352
|
}
|
|
@@ -1265,16 +1354,19 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1265
1354
|
}
|
|
1266
1355
|
|
|
1267
1356
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1268
|
-
import { useEffect as useEffect3, useRef as useRef5 } from "react";
|
|
1357
|
+
import { useEffect as useEffect3, useId as useId8, useRef as useRef5 } from "react";
|
|
1269
1358
|
|
|
1270
1359
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1271
|
-
var Drawer_default = {"drawer":"
|
|
1360
|
+
var Drawer_default = {"drawer":"bds112Drawer-drawer","panel":"bds112Drawer-panel","--side_right":"bds112Drawer---side_right","--side_left":"bds112Drawer---side_left","header":"bds112Drawer-header","closeButton":"bds112Drawer-closeButton","body":"bds112Drawer-body"};
|
|
1272
1361
|
|
|
1273
1362
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1274
1363
|
import { cn as cn26 } from "@boostdev/design-system-foundation";
|
|
1275
1364
|
import { jsx as jsx26, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1365
|
+
installInvokerCommandsPolyfill();
|
|
1276
1366
|
function Drawer({
|
|
1367
|
+
id: idProp,
|
|
1277
1368
|
isOpen,
|
|
1369
|
+
onOpen,
|
|
1278
1370
|
onClose,
|
|
1279
1371
|
title,
|
|
1280
1372
|
children,
|
|
@@ -1282,16 +1374,18 @@ function Drawer({
|
|
|
1282
1374
|
ariaLabel,
|
|
1283
1375
|
className
|
|
1284
1376
|
}) {
|
|
1377
|
+
const generatedId = useId8();
|
|
1378
|
+
const id = idProp ?? generatedId;
|
|
1285
1379
|
const dialogRef = useRef5(null);
|
|
1286
1380
|
const triggerRef = useRef5(null);
|
|
1287
1381
|
useEffect3(() => {
|
|
1288
1382
|
const dialog = dialogRef.current;
|
|
1289
1383
|
if (!dialog) return;
|
|
1290
|
-
if (isOpen) {
|
|
1384
|
+
if (isOpen && !dialog.open) {
|
|
1291
1385
|
triggerRef.current = document.activeElement;
|
|
1292
1386
|
dialog.showModal();
|
|
1293
1387
|
document.body.style.overflow = "hidden";
|
|
1294
|
-
} else if (dialog.open) {
|
|
1388
|
+
} else if (!isOpen && dialog.open) {
|
|
1295
1389
|
dialog.close();
|
|
1296
1390
|
document.body.style.overflow = "";
|
|
1297
1391
|
triggerRef.current?.focus();
|
|
@@ -1300,6 +1394,24 @@ function Drawer({
|
|
|
1300
1394
|
document.body.style.overflow = "";
|
|
1301
1395
|
};
|
|
1302
1396
|
}, [isOpen]);
|
|
1397
|
+
useEffect3(() => {
|
|
1398
|
+
const dialog = dialogRef.current;
|
|
1399
|
+
if (!dialog) return;
|
|
1400
|
+
const handleCommand = (e) => {
|
|
1401
|
+
if (e.command === "show-modal") {
|
|
1402
|
+
triggerRef.current = document.activeElement;
|
|
1403
|
+
document.body.style.overflow = "hidden";
|
|
1404
|
+
onOpen?.();
|
|
1405
|
+
} else if (e.command === "close") {
|
|
1406
|
+
document.body.style.overflow = "";
|
|
1407
|
+
const trigger = triggerRef.current;
|
|
1408
|
+
setTimeout(() => trigger?.focus(), 0);
|
|
1409
|
+
onClose();
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
dialog.addEventListener("command", handleCommand);
|
|
1413
|
+
return () => dialog.removeEventListener("command", handleCommand);
|
|
1414
|
+
}, [onOpen, onClose]);
|
|
1303
1415
|
const handleClick = (e) => {
|
|
1304
1416
|
if (e.target === dialogRef.current) onClose();
|
|
1305
1417
|
};
|
|
@@ -1311,6 +1423,7 @@ function Drawer({
|
|
|
1311
1423
|
"dialog",
|
|
1312
1424
|
{
|
|
1313
1425
|
ref: dialogRef,
|
|
1426
|
+
id,
|
|
1314
1427
|
className: cn26(Drawer_default.drawer, Drawer_default[`--side_${side}`], className),
|
|
1315
1428
|
"aria-label": ariaLabel,
|
|
1316
1429
|
"aria-modal": "true",
|
|
@@ -1324,7 +1437,8 @@ function Drawer({
|
|
|
1324
1437
|
{
|
|
1325
1438
|
type: "button",
|
|
1326
1439
|
className: Drawer_default.closeButton,
|
|
1327
|
-
|
|
1440
|
+
commandfor: id,
|
|
1441
|
+
command: "close",
|
|
1328
1442
|
"aria-label": "Close drawer",
|
|
1329
1443
|
children: /* @__PURE__ */ jsx26("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ jsx26("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
1330
1444
|
}
|
|
@@ -1341,13 +1455,13 @@ import {
|
|
|
1341
1455
|
cloneElement as cloneElement2,
|
|
1342
1456
|
isValidElement as isValidElement2,
|
|
1343
1457
|
useEffect as useEffect4,
|
|
1344
|
-
useId as
|
|
1458
|
+
useId as useId9,
|
|
1345
1459
|
useRef as useRef6,
|
|
1346
1460
|
useState as useState6
|
|
1347
1461
|
} from "react";
|
|
1348
1462
|
|
|
1349
1463
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1350
|
-
var DropdownMenu_default = {"wrapper":"
|
|
1464
|
+
var DropdownMenu_default = {"wrapper":"bds112DropdownMenu-wrapper","menu":"bds112DropdownMenu-menu","--placement_bottom-start":"bds112DropdownMenu---placement_bottom-start","--placement_bottom-end":"bds112DropdownMenu---placement_bottom-end","separator":"bds112DropdownMenu-separator","item":"bds112DropdownMenu-item","icon":"bds112DropdownMenu-icon"};
|
|
1351
1465
|
|
|
1352
1466
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1353
1467
|
import { cn as cn27 } from "@boostdev/design-system-foundation";
|
|
@@ -1360,7 +1474,7 @@ function DropdownMenu({
|
|
|
1360
1474
|
}) {
|
|
1361
1475
|
const [isOpen, setIsOpen] = useState6(false);
|
|
1362
1476
|
const containerRef = useRef6(null);
|
|
1363
|
-
const menuId =
|
|
1477
|
+
const menuId = useId9();
|
|
1364
1478
|
const itemRefs = useRef6([]);
|
|
1365
1479
|
const open = () => {
|
|
1366
1480
|
setIsOpen(true);
|
|
@@ -1460,20 +1574,19 @@ function DropdownMenu({
|
|
|
1460
1574
|
import {
|
|
1461
1575
|
cloneElement as cloneElement3,
|
|
1462
1576
|
isValidElement as isValidElement3,
|
|
1463
|
-
useCallback,
|
|
1464
1577
|
useEffect as useEffect5,
|
|
1465
|
-
useId as
|
|
1578
|
+
useId as useId10,
|
|
1466
1579
|
useRef as useRef7,
|
|
1467
1580
|
useState as useState7
|
|
1468
1581
|
} from "react";
|
|
1469
1582
|
|
|
1470
1583
|
// src/components/interaction/Popover/Popover.module.css
|
|
1471
|
-
var Popover_default = {"wrapper":"
|
|
1584
|
+
var Popover_default = {"wrapper":"bds112Popover-wrapper","panel":"bds112Popover-panel","g":"bds112Popover-g"};
|
|
1472
1585
|
|
|
1473
1586
|
// src/components/interaction/Popover/Popover.tsx
|
|
1474
1587
|
import { cn as cn28 } from "@boostdev/design-system-foundation";
|
|
1475
1588
|
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1476
|
-
|
|
1589
|
+
installInvokerCommandsPolyfill();
|
|
1477
1590
|
if (typeof window !== "undefined" && !(typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports("anchor-name: --a"))) {
|
|
1478
1591
|
import("@oddbird/css-anchor-positioning").catch(() => {
|
|
1479
1592
|
});
|
|
@@ -1487,80 +1600,59 @@ function Popover({
|
|
|
1487
1600
|
}) {
|
|
1488
1601
|
const [isOpen, setIsOpen] = useState7(false);
|
|
1489
1602
|
const containerRef = useRef7(null);
|
|
1490
|
-
const
|
|
1491
|
-
const rawId =
|
|
1603
|
+
const panelRef = useRef7(null);
|
|
1604
|
+
const rawId = useId10();
|
|
1492
1605
|
const anchorName = `--popover-${rawId.replace(/\W/g, "") || "a"}`;
|
|
1493
1606
|
const panelId = rawId;
|
|
1607
|
+
useEffect5(() => {
|
|
1608
|
+
const panel = panelRef.current;
|
|
1609
|
+
if (!panel) return;
|
|
1610
|
+
const handleToggle = (e) => {
|
|
1611
|
+
setIsOpen(e.newState === "open");
|
|
1612
|
+
};
|
|
1613
|
+
panel.addEventListener("toggle", handleToggle);
|
|
1614
|
+
return () => panel.removeEventListener("toggle", handleToggle);
|
|
1615
|
+
}, []);
|
|
1494
1616
|
useEffect5(() => {
|
|
1495
1617
|
if (!isOpen) return;
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1498
|
-
|
|
1618
|
+
const handleScroll = () => {
|
|
1619
|
+
const rect = containerRef.current?.getBoundingClientRect();
|
|
1620
|
+
if (!rect) return;
|
|
1621
|
+
const { innerWidth: vw, innerHeight: vh } = window;
|
|
1622
|
+
if (rect.bottom < 0 || rect.top > vh || rect.right < 0 || rect.left > vw) {
|
|
1623
|
+
panelRef.current?.hidePopover();
|
|
1499
1624
|
}
|
|
1500
1625
|
};
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
};
|
|
1504
|
-
document.addEventListener("mousedown", handleMouseDown);
|
|
1505
|
-
document.addEventListener("keydown", handleKeyDown);
|
|
1626
|
+
window.addEventListener("scroll", handleScroll, { capture: true, passive: true });
|
|
1627
|
+
window.addEventListener("resize", handleScroll, { passive: true });
|
|
1506
1628
|
return () => {
|
|
1507
|
-
|
|
1508
|
-
|
|
1629
|
+
window.removeEventListener("scroll", handleScroll, { capture: true });
|
|
1630
|
+
window.removeEventListener("resize", handleScroll);
|
|
1509
1631
|
};
|
|
1510
1632
|
}, [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]);
|
|
1542
1633
|
const trigger = isValidElement3(children) ? cloneElement3(children, {
|
|
1543
1634
|
"aria-expanded": isOpen,
|
|
1544
1635
|
"aria-controls": panelId,
|
|
1545
1636
|
"aria-haspopup": true,
|
|
1637
|
+
commandfor: panelId,
|
|
1638
|
+
command: "toggle-popover",
|
|
1546
1639
|
style: {
|
|
1547
1640
|
...children.props.style,
|
|
1548
1641
|
anchorName
|
|
1549
1642
|
},
|
|
1550
|
-
onClick
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
}
|
|
1643
|
+
// Forward any existing onClick on the child (for custom side-effects).
|
|
1644
|
+
// Do NOT add our own toggle here — commandfor/command handles it to
|
|
1645
|
+
// avoid a double-toggle when both onClick and invoker fire.
|
|
1646
|
+
onClick: children.props.onClick
|
|
1555
1647
|
}) : children;
|
|
1556
1648
|
return /* @__PURE__ */ jsxs21("span", { ref: containerRef, className: cn28(Popover_default.wrapper, className), children: [
|
|
1557
1649
|
trigger,
|
|
1558
1650
|
/* @__PURE__ */ jsx28(
|
|
1559
|
-
"
|
|
1651
|
+
"div",
|
|
1560
1652
|
{
|
|
1561
|
-
ref:
|
|
1653
|
+
ref: panelRef,
|
|
1562
1654
|
id: panelId,
|
|
1563
|
-
|
|
1655
|
+
popover: "auto",
|
|
1564
1656
|
"data-placement": placement,
|
|
1565
1657
|
role: ariaLabel ? "region" : void 0,
|
|
1566
1658
|
"aria-label": ariaLabel,
|
|
@@ -1573,7 +1665,7 @@ function Popover({
|
|
|
1573
1665
|
}
|
|
1574
1666
|
|
|
1575
1667
|
// src/components/interaction/Rating/Rating.module.css
|
|
1576
|
-
var Rating_default = {"rating":"
|
|
1668
|
+
var Rating_default = {"rating":"bds112Rating-rating","star":"bds112Rating-star","--filled":"bds112Rating---filled"};
|
|
1577
1669
|
|
|
1578
1670
|
// src/components/interaction/Rating/Rating.tsx
|
|
1579
1671
|
import { cn as cn29 } from "@boostdev/design-system-foundation";
|
|
@@ -1601,10 +1693,10 @@ function Rating({ value, max = 5, className }) {
|
|
|
1601
1693
|
}
|
|
1602
1694
|
|
|
1603
1695
|
// src/components/interaction/Toast/Toast.tsx
|
|
1604
|
-
import { useState as useState8, useEffect as useEffect6, createContext, useContext, useCallback
|
|
1696
|
+
import { useState as useState8, useEffect as useEffect6, createContext, useContext, useCallback, useMemo as useMemo2, useRef as useRef8 } from "react";
|
|
1605
1697
|
|
|
1606
1698
|
// src/components/interaction/Toast/Toast.module.css
|
|
1607
|
-
var Toast_default = {"toastContainer":"
|
|
1699
|
+
var Toast_default = {"toastContainer":"bds112Toast-toastContainer","toast":"bds112Toast-toast","--variant_success":"bds112Toast---variant_success","--variant_warning":"bds112Toast---variant_warning","--variant_info":"bds112Toast---variant_info","--variant_error":"bds112Toast---variant_error","message":"bds112Toast-message","closeButton":"bds112Toast-closeButton"};
|
|
1608
1700
|
|
|
1609
1701
|
// src/components/interaction/Toast/Toast.tsx
|
|
1610
1702
|
import { cn as cn30 } from "@boostdev/design-system-foundation";
|
|
@@ -1613,11 +1705,11 @@ var ToastContext = createContext(void 0);
|
|
|
1613
1705
|
function ToastProvider({ children }) {
|
|
1614
1706
|
const [toasts, setToasts] = useState8([]);
|
|
1615
1707
|
const containerRef = useRef8(null);
|
|
1616
|
-
const showToast =
|
|
1708
|
+
const showToast = useCallback((message, variant) => {
|
|
1617
1709
|
const id = Math.random().toString(36).substring(2, 9);
|
|
1618
1710
|
setToasts((prev) => [...prev, { id, message, variant }]);
|
|
1619
1711
|
}, []);
|
|
1620
|
-
const removeToast =
|
|
1712
|
+
const removeToast = useCallback((id) => {
|
|
1621
1713
|
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
1622
1714
|
}, []);
|
|
1623
1715
|
useEffect6(() => {
|
|
@@ -1674,13 +1766,13 @@ function useToast() {
|
|
|
1674
1766
|
}
|
|
1675
1767
|
|
|
1676
1768
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1677
|
-
import { useId as
|
|
1769
|
+
import { useId as useId11 } from "react";
|
|
1678
1770
|
|
|
1679
1771
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1680
|
-
var Checkbox_default = {"checkboxGroup":"
|
|
1772
|
+
var Checkbox_default = {"checkboxGroup":"bds112Checkbox-checkboxGroup","inputWrapper":"bds112Checkbox-inputWrapper","checkbox":"bds112Checkbox-checkbox","checkboxError":"bds112Checkbox-checkboxError"};
|
|
1681
1773
|
|
|
1682
1774
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1683
|
-
var Message_default = {"error":"
|
|
1775
|
+
var Message_default = {"error":"bds112Message-error","hint":"bds112Message-hint"};
|
|
1684
1776
|
|
|
1685
1777
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1686
1778
|
import { cn as cn31 } from "@boostdev/design-system-foundation";
|
|
@@ -1691,7 +1783,7 @@ var Message = ({ message, type, inputId, className }) => {
|
|
|
1691
1783
|
};
|
|
1692
1784
|
|
|
1693
1785
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1694
|
-
var Label_default = {"label":"
|
|
1786
|
+
var Label_default = {"label":"bds112Label-label"};
|
|
1695
1787
|
|
|
1696
1788
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1697
1789
|
import { cn as cn32 } from "@boostdev/design-system-foundation";
|
|
@@ -1704,7 +1796,7 @@ var Label = ({ label, id, className }) => {
|
|
|
1704
1796
|
import { cn as cn34 } from "@boostdev/design-system-foundation";
|
|
1705
1797
|
|
|
1706
1798
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1707
|
-
var InputContainer_default = {"container":"
|
|
1799
|
+
var InputContainer_default = {"container":"bds112InputContainer-container"};
|
|
1708
1800
|
|
|
1709
1801
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1710
1802
|
import { cn as cn33 } from "@boostdev/design-system-foundation";
|
|
@@ -1716,7 +1808,7 @@ var InputContainer = ({ children, className }) => {
|
|
|
1716
1808
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1717
1809
|
import { jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1718
1810
|
function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
1719
|
-
const id = name +
|
|
1811
|
+
const id = name + useId11();
|
|
1720
1812
|
const hintId = id + "hint";
|
|
1721
1813
|
const errorId = id + "error";
|
|
1722
1814
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -1742,10 +1834,10 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1742
1834
|
}
|
|
1743
1835
|
|
|
1744
1836
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1745
|
-
import { useId as
|
|
1837
|
+
import { useId as useId12 } from "react";
|
|
1746
1838
|
|
|
1747
1839
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
1748
|
-
var CheckboxGroup_default = {"group":"
|
|
1840
|
+
var CheckboxGroup_default = {"group":"bds112CheckboxGroup-group","legend":"bds112CheckboxGroup-legend","required":"bds112CheckboxGroup-required","items":"bds112CheckboxGroup-items"};
|
|
1749
1841
|
|
|
1750
1842
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1751
1843
|
import { cn as cn35 } from "@boostdev/design-system-foundation";
|
|
@@ -1759,7 +1851,7 @@ function CheckboxGroup({
|
|
|
1759
1851
|
disabled,
|
|
1760
1852
|
className
|
|
1761
1853
|
}) {
|
|
1762
|
-
const id =
|
|
1854
|
+
const id = useId12();
|
|
1763
1855
|
const hintId = id + "hint";
|
|
1764
1856
|
const errorId = id + "error";
|
|
1765
1857
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -1786,14 +1878,14 @@ function CheckboxGroup({
|
|
|
1786
1878
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1787
1879
|
import {
|
|
1788
1880
|
useEffect as useEffect7,
|
|
1789
|
-
useId as
|
|
1881
|
+
useId as useId13,
|
|
1790
1882
|
useRef as useRef9,
|
|
1791
1883
|
useState as useState9,
|
|
1792
1884
|
useMemo as useMemo3
|
|
1793
1885
|
} from "react";
|
|
1794
1886
|
|
|
1795
1887
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1796
|
-
var Combobox_default = {"formGroup":"
|
|
1888
|
+
var Combobox_default = {"formGroup":"bds112Combobox-formGroup","inputWrapper":"bds112Combobox-inputWrapper","input":"bds112Combobox-input","inputError":"bds112Combobox-inputError","chevron":"bds112Combobox-chevron","listbox":"bds112Combobox-listbox","option":"bds112Combobox-option","--highlighted":"bds112Combobox---highlighted","--selected":"bds112Combobox---selected","--disabled":"bds112Combobox---disabled"};
|
|
1797
1889
|
|
|
1798
1890
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1799
1891
|
import { cn as cn36 } from "@boostdev/design-system-foundation";
|
|
@@ -1810,7 +1902,7 @@ function Combobox({
|
|
|
1810
1902
|
hint,
|
|
1811
1903
|
className
|
|
1812
1904
|
}) {
|
|
1813
|
-
const id = name +
|
|
1905
|
+
const id = name + useId13();
|
|
1814
1906
|
const listboxId = id + "listbox";
|
|
1815
1907
|
const hintId = id + "hint";
|
|
1816
1908
|
const errorId = id + "error";
|
|
@@ -1940,10 +2032,10 @@ function Combobox({
|
|
|
1940
2032
|
}
|
|
1941
2033
|
|
|
1942
2034
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1943
|
-
import { useId as
|
|
2035
|
+
import { useId as useId14, useRef as useRef10, useState as useState10 } from "react";
|
|
1944
2036
|
|
|
1945
2037
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
1946
|
-
var FileInput_default = {"formGroup":"
|
|
2038
|
+
var FileInput_default = {"formGroup":"bds112FileInput-formGroup","fieldLabel":"bds112FileInput-fieldLabel","dropZone":"bds112FileInput-dropZone","isDragging":"bds112FileInput-isDragging","hasError":"bds112FileInput-hasError","isDisabled":"bds112FileInput-isDisabled","icon":"bds112FileInput-icon","prompt":"bds112FileInput-prompt","acceptHint":"bds112FileInput-acceptHint","hiddenInput":"bds112FileInput-hiddenInput"};
|
|
1947
2039
|
|
|
1948
2040
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1949
2041
|
import { cn as cn37 } from "@boostdev/design-system-foundation";
|
|
@@ -1960,7 +2052,7 @@ function FileInput({
|
|
|
1960
2052
|
onChange,
|
|
1961
2053
|
className
|
|
1962
2054
|
}) {
|
|
1963
|
-
const uid = name +
|
|
2055
|
+
const uid = name + useId14();
|
|
1964
2056
|
const hintId = uid + "hint";
|
|
1965
2057
|
const errorId = uid + "error";
|
|
1966
2058
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2040,10 +2132,10 @@ function FileInput({
|
|
|
2040
2132
|
}
|
|
2041
2133
|
|
|
2042
2134
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2043
|
-
import { useId as
|
|
2135
|
+
import { useId as useId15 } from "react";
|
|
2044
2136
|
|
|
2045
2137
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
2046
|
-
var FormInput_default = {"formGroup":"
|
|
2138
|
+
var FormInput_default = {"formGroup":"bds112FormInput-formGroup","input":"bds112FormInput-input","inputError":"bds112FormInput-inputError"};
|
|
2047
2139
|
|
|
2048
2140
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2049
2141
|
import { cn as cn38 } from "@boostdev/design-system-foundation";
|
|
@@ -2058,7 +2150,7 @@ function FormInput({
|
|
|
2058
2150
|
required,
|
|
2059
2151
|
...props
|
|
2060
2152
|
}) {
|
|
2061
|
-
const id = name +
|
|
2153
|
+
const id = name + useId15();
|
|
2062
2154
|
const hintId = id + "hint";
|
|
2063
2155
|
const errorId = id + "error";
|
|
2064
2156
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2084,10 +2176,10 @@ function FormInput({
|
|
|
2084
2176
|
}
|
|
2085
2177
|
|
|
2086
2178
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2087
|
-
import { useId as
|
|
2179
|
+
import { useId as useId16, useRef as useRef11, useState as useState11 } from "react";
|
|
2088
2180
|
|
|
2089
2181
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2090
|
-
var NumberInput_default = {"formGroup":"
|
|
2182
|
+
var NumberInput_default = {"formGroup":"bds112NumberInput-formGroup","inputRow":"bds112NumberInput-inputRow","input":"bds112NumberInput-input","inputError":"bds112NumberInput-inputError","stepper":"bds112NumberInput-stepper"};
|
|
2091
2183
|
|
|
2092
2184
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2093
2185
|
import { cn as cn39 } from "@boostdev/design-system-foundation";
|
|
@@ -2106,7 +2198,7 @@ function NumberInput({
|
|
|
2106
2198
|
onChange,
|
|
2107
2199
|
className
|
|
2108
2200
|
}) {
|
|
2109
|
-
const uid = name +
|
|
2201
|
+
const uid = name + useId16();
|
|
2110
2202
|
const hintId = uid + "hint";
|
|
2111
2203
|
const errorId = uid + "error";
|
|
2112
2204
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2188,16 +2280,16 @@ function NumberInput({
|
|
|
2188
2280
|
}
|
|
2189
2281
|
|
|
2190
2282
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2191
|
-
import { useId as
|
|
2283
|
+
import { useId as useId17 } from "react";
|
|
2192
2284
|
|
|
2193
2285
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2194
|
-
var Radio_default = {"radioGroup":"
|
|
2286
|
+
var Radio_default = {"radioGroup":"bds112Radio-radioGroup","inputWrapper":"bds112Radio-inputWrapper","textWrapper":"bds112Radio-textWrapper","description":"bds112Radio-description","radio":"bds112Radio-radio","radioError":"bds112Radio-radioError"};
|
|
2195
2287
|
|
|
2196
2288
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2197
2289
|
import { cn as cn40 } from "@boostdev/design-system-foundation";
|
|
2198
2290
|
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2199
2291
|
function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
2200
|
-
const id = name +
|
|
2292
|
+
const id = name + useId17();
|
|
2201
2293
|
const hintId = id + "hint";
|
|
2202
2294
|
const errorId = id + "error";
|
|
2203
2295
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2226,10 +2318,10 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2226
2318
|
}
|
|
2227
2319
|
|
|
2228
2320
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2229
|
-
import { useId as
|
|
2321
|
+
import { useId as useId18 } from "react";
|
|
2230
2322
|
|
|
2231
2323
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2232
|
-
var RadioGroup_default = {"group":"
|
|
2324
|
+
var RadioGroup_default = {"group":"bds112RadioGroup-group","legend":"bds112RadioGroup-legend","required":"bds112RadioGroup-required","items":"bds112RadioGroup-items"};
|
|
2233
2325
|
|
|
2234
2326
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2235
2327
|
import { cn as cn41 } from "@boostdev/design-system-foundation";
|
|
@@ -2243,7 +2335,7 @@ function RadioGroup({
|
|
|
2243
2335
|
disabled,
|
|
2244
2336
|
className
|
|
2245
2337
|
}) {
|
|
2246
|
-
const id =
|
|
2338
|
+
const id = useId18();
|
|
2247
2339
|
const hintId = id + "hint";
|
|
2248
2340
|
const errorId = id + "error";
|
|
2249
2341
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2268,10 +2360,10 @@ function RadioGroup({
|
|
|
2268
2360
|
}
|
|
2269
2361
|
|
|
2270
2362
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2271
|
-
import { useId as
|
|
2363
|
+
import { useId as useId19, useState as useState12 } from "react";
|
|
2272
2364
|
|
|
2273
2365
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2274
|
-
var SegmentedControl_default = {"control":"
|
|
2366
|
+
var SegmentedControl_default = {"control":"bds112SegmentedControl-control","thumb":"bds112SegmentedControl-thumb","item":"bds112SegmentedControl-item","--disabled":"bds112SegmentedControl---disabled","radio":"bds112SegmentedControl-radio","label":"bds112SegmentedControl-label","--size_small":"bds112SegmentedControl---size_small","--size_large":"bds112SegmentedControl---size_large","--active":"bds112SegmentedControl---active"};
|
|
2275
2367
|
|
|
2276
2368
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2277
2369
|
import { cn as cn42 } from "@boostdev/design-system-foundation";
|
|
@@ -2288,7 +2380,7 @@ function SegmentedControl({
|
|
|
2288
2380
|
"aria-label": ariaLabel,
|
|
2289
2381
|
...rest
|
|
2290
2382
|
}) {
|
|
2291
|
-
const baseId = name +
|
|
2383
|
+
const baseId = name + useId19();
|
|
2292
2384
|
const [internalValue, setInternalValue] = useState12(
|
|
2293
2385
|
defaultValue ?? options[0]?.value ?? ""
|
|
2294
2386
|
);
|
|
@@ -2346,10 +2438,10 @@ function SegmentedControl({
|
|
|
2346
2438
|
}
|
|
2347
2439
|
|
|
2348
2440
|
// src/components/interaction/form/Select/Select.tsx
|
|
2349
|
-
import { useId as
|
|
2441
|
+
import { useId as useId20 } from "react";
|
|
2350
2442
|
|
|
2351
2443
|
// src/components/interaction/form/Select/Select.module.css
|
|
2352
|
-
var Select_default = {"formGroup":"
|
|
2444
|
+
var Select_default = {"formGroup":"bds112Select-formGroup","selectWrapper":"bds112Select-selectWrapper","select":"bds112Select-select","selectError":"bds112Select-selectError","chevron":"bds112Select-chevron"};
|
|
2353
2445
|
|
|
2354
2446
|
// src/components/interaction/form/Select/Select.tsx
|
|
2355
2447
|
import { cn as cn43 } from "@boostdev/design-system-foundation";
|
|
@@ -2365,7 +2457,7 @@ function Select({
|
|
|
2365
2457
|
required,
|
|
2366
2458
|
...props
|
|
2367
2459
|
}) {
|
|
2368
|
-
const id = name +
|
|
2460
|
+
const id = name + useId20();
|
|
2369
2461
|
const hintId = id + "hint";
|
|
2370
2462
|
const errorId = id + "error";
|
|
2371
2463
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2397,10 +2489,10 @@ function Select({
|
|
|
2397
2489
|
}
|
|
2398
2490
|
|
|
2399
2491
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2400
|
-
import { useId as
|
|
2492
|
+
import { useId as useId21, useState as useState13 } from "react";
|
|
2401
2493
|
|
|
2402
2494
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2403
|
-
var Slider_default = {"formGroup":"
|
|
2495
|
+
var Slider_default = {"formGroup":"bds112Slider-formGroup","labelRow":"bds112Slider-labelRow","value":"bds112Slider-value","slider":"bds112Slider-slider","sliderError":"bds112Slider-sliderError"};
|
|
2404
2496
|
|
|
2405
2497
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2406
2498
|
import { cn as cn44 } from "@boostdev/design-system-foundation";
|
|
@@ -2417,7 +2509,7 @@ function Slider({
|
|
|
2417
2509
|
onChange,
|
|
2418
2510
|
...props
|
|
2419
2511
|
}) {
|
|
2420
|
-
const id = name +
|
|
2512
|
+
const id = name + useId21();
|
|
2421
2513
|
const hintId = id + "hint";
|
|
2422
2514
|
const errorId = id + "error";
|
|
2423
2515
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2459,10 +2551,10 @@ function Slider({
|
|
|
2459
2551
|
}
|
|
2460
2552
|
|
|
2461
2553
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2462
|
-
import { useId as
|
|
2554
|
+
import { useId as useId22 } from "react";
|
|
2463
2555
|
|
|
2464
2556
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2465
|
-
var Switch_default = {"switchGroup":"
|
|
2557
|
+
var Switch_default = {"switchGroup":"bds112Switch-switchGroup","--size_small":"bds112Switch---size_small","--size_medium":"bds112Switch---size_medium","--size_large":"bds112Switch---size_large","inputWrapper":"bds112Switch-inputWrapper","trackWrapper":"bds112Switch-trackWrapper","switch":"bds112Switch-switch","track":"bds112Switch-track","thumb":"bds112Switch-thumb","switchError":"bds112Switch-switchError"};
|
|
2466
2558
|
|
|
2467
2559
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2468
2560
|
import { cn as cn45 } from "@boostdev/design-system-foundation";
|
|
@@ -2477,7 +2569,7 @@ function Switch({
|
|
|
2477
2569
|
prefix,
|
|
2478
2570
|
...props
|
|
2479
2571
|
}) {
|
|
2480
|
-
const id = name +
|
|
2572
|
+
const id = name + useId22();
|
|
2481
2573
|
const hintId = id + "hint";
|
|
2482
2574
|
const errorId = id + "error";
|
|
2483
2575
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2507,10 +2599,10 @@ function Switch({
|
|
|
2507
2599
|
}
|
|
2508
2600
|
|
|
2509
2601
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2510
|
-
import { useId as
|
|
2602
|
+
import { useId as useId23 } from "react";
|
|
2511
2603
|
|
|
2512
2604
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2513
|
-
var Textarea_default = {"formGroup":"
|
|
2605
|
+
var Textarea_default = {"formGroup":"bds112Textarea-formGroup","textarea":"bds112Textarea-textarea","textareaError":"bds112Textarea-textareaError"};
|
|
2514
2606
|
|
|
2515
2607
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2516
2608
|
import { cn as cn46 } from "@boostdev/design-system-foundation";
|
|
@@ -2524,7 +2616,7 @@ function Textarea({
|
|
|
2524
2616
|
required,
|
|
2525
2617
|
...props
|
|
2526
2618
|
}) {
|
|
2527
|
-
const id = name +
|
|
2619
|
+
const id = name + useId23();
|
|
2528
2620
|
const hintId = id + "hint";
|
|
2529
2621
|
const errorId = id + "error";
|
|
2530
2622
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
@@ -2549,7 +2641,7 @@ function Textarea({
|
|
|
2549
2641
|
}
|
|
2550
2642
|
|
|
2551
2643
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2552
|
-
var ButtonGroup_default = {"buttonGroup":"
|
|
2644
|
+
var ButtonGroup_default = {"buttonGroup":"bds112ButtonGroup-buttonGroup","container":"bds112ButtonGroup-container","--variant_card":"bds112ButtonGroup---variant_card","--variant_flow":"bds112ButtonGroup---variant_flow","--variant_modal":"bds112ButtonGroup---variant_modal","--variant_content":"bds112ButtonGroup---variant_content","--variant_grid":"bds112ButtonGroup---variant_grid"};
|
|
2553
2645
|
|
|
2554
2646
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2555
2647
|
import { cn as cn47 } from "@boostdev/design-system-foundation";
|
|
@@ -2567,7 +2659,7 @@ function ButtonGroup({ children, className, variant, "aria-label": ariaLabel })
|
|
|
2567
2659
|
}
|
|
2568
2660
|
|
|
2569
2661
|
// src/components/layout/Card/Card.module.css
|
|
2570
|
-
var Card_default = {"card":"
|
|
2662
|
+
var Card_default = {"card":"bds112Card-card","--default":"bds112Card---default","--elevated":"bds112Card---elevated","--outlined":"bds112Card---outlined","--clickable":"bds112Card---clickable","--padding-none":"bds112Card---padding-none","--padding-small":"bds112Card---padding-small","--padding-medium":"bds112Card---padding-medium","--padding-large":"bds112Card---padding-large","--text-start":"bds112Card---text-start","--text-center":"bds112Card---text-center","--text-end":"bds112Card---text-end"};
|
|
2571
2663
|
|
|
2572
2664
|
// src/components/layout/Card/Card.tsx
|
|
2573
2665
|
import { cn as cn48 } from "@boostdev/design-system-foundation";
|
|
@@ -2605,7 +2697,7 @@ function Card({
|
|
|
2605
2697
|
}
|
|
2606
2698
|
|
|
2607
2699
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2608
|
-
var SectionHeader_default = {"sectionHeader":"
|
|
2700
|
+
var SectionHeader_default = {"sectionHeader":"bds112SectionHeader-sectionHeader","title":"bds112SectionHeader-title","subtitle":"bds112SectionHeader-subtitle","--start":"bds112SectionHeader---start","--center":"bds112SectionHeader---center","--end":"bds112SectionHeader---end","--small":"bds112SectionHeader---small","--medium":"bds112SectionHeader---medium","--large":"bds112SectionHeader---large"};
|
|
2609
2701
|
|
|
2610
2702
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2611
2703
|
import { cn as cn49 } from "@boostdev/design-system-foundation";
|
|
@@ -2626,7 +2718,7 @@ function SectionHeader({
|
|
|
2626
2718
|
}
|
|
2627
2719
|
|
|
2628
2720
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2629
|
-
var IconWrapper_default = {"wrapper":"
|
|
2721
|
+
var IconWrapper_default = {"wrapper":"bds112IconWrapper-wrapper"};
|
|
2630
2722
|
|
|
2631
2723
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2632
2724
|
import { cn as cn50 } from "@boostdev/design-system-foundation";
|