@boostdev/design-system-components 1.2.1 → 1.2.3
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 +26 -0
- package/README.md +36 -19
- package/dist/client.cjs +141 -120
- package/dist/client.css +506 -503
- package/dist/client.d.cts +71 -96
- package/dist/client.d.ts +71 -96
- package/dist/client.js +141 -120
- package/dist/index.cjs +141 -120
- package/dist/index.css +506 -503
- package/dist/index.d.cts +71 -96
- package/dist/index.d.ts +71 -96
- package/dist/index.js +141 -120
- package/package.json +3 -3
- package/src/components/interaction/Button/Button.module.css +1 -4
- package/src/components/interaction/Command/Command.tsx +4 -3
- package/src/components/interaction/Dialog/Dialog.module.css +1 -1
- package/src/components/interaction/Dialog/Dialog.tsx +4 -5
- package/src/components/interaction/Drawer/Drawer.module.css +1 -1
- package/src/components/interaction/Drawer/Drawer.spec.tsx +3 -3
- package/src/components/interaction/Drawer/Drawer.tsx +4 -7
- package/src/components/interaction/DropdownMenu/DropdownMenu.module.css +4 -0
- package/src/components/interaction/DropdownMenu/DropdownMenu.stories.tsx +4 -4
- package/src/components/interaction/DropdownMenu/DropdownMenu.tsx +4 -2
- package/src/components/interaction/Popover/Popover.tsx +4 -3
- package/src/components/interaction/Rating/Rating.tsx +4 -2
- package/src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx +4 -6
- package/src/components/interaction/form/Combobox/Combobox.module.css +1 -1
- package/src/components/interaction/form/Combobox/Combobox.tsx +4 -2
- package/src/components/interaction/form/FileInput/FileInput.tsx +4 -3
- package/src/components/interaction/form/FormInput/FormInput.module.css +1 -1
- package/src/components/interaction/form/NumberInput/NumberInput.module.css +1 -1
- package/src/components/interaction/form/NumberInput/NumberInput.tsx +4 -3
- package/src/components/interaction/form/RadioGroup/RadioGroup.tsx +4 -6
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.module.css +5 -5
- package/src/components/interaction/form/SegmentedControl/SegmentedControl.tsx +4 -6
- package/src/components/interaction/form/Select/Select.module.css +1 -1
- package/src/components/interaction/form/Slider/Slider.module.css +4 -4
- package/src/components/interaction/form/Switch/Switch.module.css +3 -3
- package/src/components/interaction/form/atoms/InputContainer.tsx +2 -2
- package/src/components/layout/ButtonGroup/ButtonGroup.tsx +4 -6
- package/src/components/layout/Card/Card.tsx +4 -10
- package/src/components/layout/IconWrapper/IconWrapper.module.css +1 -1
- package/src/components/layout/IconWrapper/IconWrapper.tsx +4 -5
- package/src/components/layout/SectionHeader/SectionHeader.tsx +5 -4
- package/src/components/ui/Accordion/Accordion.tsx +4 -3
- package/src/components/ui/Alert/Alert.module.css +1 -1
- package/src/components/ui/Alert/Alert.tsx +4 -3
- package/src/components/ui/Avatar/Avatar.module.css +1 -1
- package/src/components/ui/Avatar/Avatar.tsx +5 -3
- package/src/components/ui/Badge/Badge.module.css +1 -1
- package/src/components/ui/Badge/Badge.tsx +4 -5
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +4 -3
- package/src/components/ui/Calendar/Calendar.module.css +2 -2
- package/src/components/ui/Calendar/Calendar.tsx +4 -4
- package/src/components/ui/Carousel/Carousel.module.css +1 -1
- package/src/components/ui/Carousel/Carousel.tsx +4 -4
- package/src/components/ui/DescriptionList/DescriptionList.tsx +4 -4
- package/src/components/ui/Loading/Loading.module.css +1 -1
- package/src/components/ui/Loading/Loading.tsx +4 -3
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +1 -1
- package/src/components/ui/NotificationBanner/NotificationBanner.tsx +4 -2
- package/src/components/ui/Pagination/Pagination.module.css +5 -1
- package/src/components/ui/Pagination/Pagination.tsx +4 -2
- package/src/components/ui/Progress/Progress.module.css +2 -2
- package/src/components/ui/Progress/Progress.tsx +4 -2
- package/src/components/ui/ProgressCircle/ProgressCircle.tsx +4 -1
- package/src/components/ui/Separator/Separator.tsx +5 -3
- package/src/components/ui/Skeleton/Skeleton.tsx +4 -3
- package/src/components/ui/SkipLink/SkipLink.tsx +4 -5
- package/src/components/ui/Tabs/Tabs.tsx +4 -4
- package/src/components/ui/Tooltip/Tooltip.module.css +1 -1
- package/src/components/ui/Tooltip/Tooltip.tsx +4 -2
- package/src/components/ui/Typography/Typography.tsx +4 -5
- package/src/stories/DesignSystem/Grid.mdx +2 -0
package/dist/client.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useId, useState } from "react";
|
|
5
5
|
|
|
6
6
|
// src/components/ui/Accordion/Accordion.module.css
|
|
7
|
-
var Accordion_default = {"accordion":"
|
|
7
|
+
var Accordion_default = {"accordion":"bds123Accordion-accordion","item":"bds123Accordion-item","heading":"bds123Accordion-heading","trigger":"bds123Accordion-trigger","triggerLabel":"bds123Accordion-triggerLabel","chevron":"bds123Accordion-chevron","--open":"bds123Accordion---open","panel":"bds123Accordion-panel","panelContent":"bds123Accordion-panelContent"};
|
|
8
8
|
|
|
9
9
|
// src/components/ui/Accordion/Accordion.tsx
|
|
10
10
|
import { cn } from "@boostdev/design-system-foundation";
|
|
@@ -13,7 +13,8 @@ function Accordion({
|
|
|
13
13
|
items,
|
|
14
14
|
allowMultiple = false,
|
|
15
15
|
defaultOpen = [],
|
|
16
|
-
className
|
|
16
|
+
className,
|
|
17
|
+
...rest
|
|
17
18
|
}) {
|
|
18
19
|
const baseId = useId();
|
|
19
20
|
const [openIds, setOpenIds] = useState(defaultOpen);
|
|
@@ -24,7 +25,7 @@ function Accordion({
|
|
|
24
25
|
return allowMultiple ? [...prev, id] : [id];
|
|
25
26
|
});
|
|
26
27
|
};
|
|
27
|
-
return /* @__PURE__ */ jsx("div", { className: cn(Accordion_default.accordion, className), children: items.map((item) => {
|
|
28
|
+
return /* @__PURE__ */ jsx("div", { ...rest, className: cn(Accordion_default.accordion, className), children: items.map((item) => {
|
|
28
29
|
const isOpen = openIds.includes(item.id);
|
|
29
30
|
const triggerId = `${baseId}-trigger-${item.id}`;
|
|
30
31
|
const panelId = `${baseId}-panel-${item.id}`;
|
|
@@ -72,7 +73,7 @@ function Accordion({
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
// src/components/ui/Alert/Alert.module.css
|
|
75
|
-
var Alert_default = {"alert":"
|
|
76
|
+
var Alert_default = {"alert":"bds123Alert-alert","--variant_info":"bds123Alert---variant_info","--variant_success":"bds123Alert---variant_success","--variant_warning":"bds123Alert---variant_warning","--variant_error":"bds123Alert---variant_error","icon":"bds123Alert-icon","content":"bds123Alert-content","title":"bds123Alert-title","dismiss":"bds123Alert-dismiss"};
|
|
76
77
|
|
|
77
78
|
// src/components/ui/Alert/Alert.tsx
|
|
78
79
|
import { cn as cn2 } from "@boostdev/design-system-foundation";
|
|
@@ -83,12 +84,14 @@ function Alert({
|
|
|
83
84
|
title,
|
|
84
85
|
children,
|
|
85
86
|
onDismiss,
|
|
86
|
-
className
|
|
87
|
+
className,
|
|
88
|
+
...rest
|
|
87
89
|
}) {
|
|
88
90
|
const isUrgent = variant === "error" || variant === "warning";
|
|
89
91
|
return /* @__PURE__ */ jsxs2(
|
|
90
92
|
"div",
|
|
91
93
|
{
|
|
94
|
+
...rest,
|
|
92
95
|
role: isUrgent ? "alert" : "status",
|
|
93
96
|
"aria-live": isUrgent ? "assertive" : "polite",
|
|
94
97
|
"aria-atomic": "true",
|
|
@@ -115,7 +118,7 @@ function Alert({
|
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
// src/components/ui/Avatar/Avatar.module.css
|
|
118
|
-
var Avatar_default = {"avatar":"
|
|
121
|
+
var Avatar_default = {"avatar":"bds123Avatar-avatar","--fallback":"bds123Avatar---fallback","--size_small":"bds123Avatar---size_small","--size_medium":"bds123Avatar---size_medium","--size_large":"bds123Avatar---size_large","image":"bds123Avatar-image","initials":"bds123Avatar-initials"};
|
|
119
122
|
|
|
120
123
|
// src/components/ui/Avatar/Avatar.tsx
|
|
121
124
|
import { cn as cn3 } from "@boostdev/design-system-foundation";
|
|
@@ -123,15 +126,16 @@ import { jsx as jsx3 } from "react/jsx-runtime";
|
|
|
123
126
|
function getInitials(name) {
|
|
124
127
|
return name.split(" ").filter(Boolean).slice(0, 2).map((word) => word[0].toUpperCase()).join("");
|
|
125
128
|
}
|
|
126
|
-
function Avatar({ src, alt, name, size = "medium", className }) {
|
|
129
|
+
function Avatar({ src, alt, name, size = "medium", className, ...rest }) {
|
|
127
130
|
const sizeClass = Avatar_default[`--size_${size}`];
|
|
128
131
|
if (src) {
|
|
129
|
-
return /* @__PURE__ */ jsx3("span", { className: cn3(Avatar_default.avatar, sizeClass, className), children: /* @__PURE__ */ jsx3("img", { src, alt: alt ?? name ?? "User avatar", className: Avatar_default.image }) });
|
|
132
|
+
return /* @__PURE__ */ jsx3("span", { ...rest, className: cn3(Avatar_default.avatar, sizeClass, className), children: /* @__PURE__ */ jsx3("img", { src, alt: alt ?? name ?? "User avatar", className: Avatar_default.image }) });
|
|
130
133
|
}
|
|
131
134
|
const initials = name ? getInitials(name) : "";
|
|
132
135
|
return /* @__PURE__ */ jsx3(
|
|
133
136
|
"span",
|
|
134
137
|
{
|
|
138
|
+
...rest,
|
|
135
139
|
role: "img",
|
|
136
140
|
"aria-label": name ?? "User avatar",
|
|
137
141
|
className: cn3(Avatar_default.avatar, Avatar_default["--fallback"], sizeClass, className),
|
|
@@ -141,23 +145,23 @@ function Avatar({ src, alt, name, size = "medium", className }) {
|
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
// src/components/ui/Badge/Badge.module.css
|
|
144
|
-
var Badge_default = {"badge":"
|
|
148
|
+
var Badge_default = {"badge":"bds123Badge-badge","--variant_primary":"bds123Badge---variant_primary","--variant_secondary":"bds123Badge---variant_secondary","--variant_success":"bds123Badge---variant_success","--variant_error":"bds123Badge---variant_error","--variant_warning":"bds123Badge---variant_warning"};
|
|
145
149
|
|
|
146
150
|
// src/components/ui/Badge/Badge.tsx
|
|
147
151
|
import { cn as cn4 } from "@boostdev/design-system-foundation";
|
|
148
152
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
149
|
-
function Badge({ children, variant = "primary", className }) {
|
|
150
|
-
return /* @__PURE__ */ jsx4("span", { className: cn4(Badge_default.badge, Badge_default[`--variant_${variant}`], className), children });
|
|
153
|
+
function Badge({ children, variant = "primary", className, ...rest }) {
|
|
154
|
+
return /* @__PURE__ */ jsx4("span", { ...rest, className: cn4(Badge_default.badge, Badge_default[`--variant_${variant}`], className), children });
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
154
|
-
var Breadcrumb_default = {"breadcrumb":"
|
|
158
|
+
var Breadcrumb_default = {"breadcrumb":"bds123Breadcrumb-breadcrumb","list":"bds123Breadcrumb-list","item":"bds123Breadcrumb-item","link":"bds123Breadcrumb-link","separator":"bds123Breadcrumb-separator","current":"bds123Breadcrumb-current"};
|
|
155
159
|
|
|
156
160
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
157
161
|
import { cn as cn5 } from "@boostdev/design-system-foundation";
|
|
158
162
|
import { Fragment, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
159
|
-
function Breadcrumb({ items, className }) {
|
|
160
|
-
return /* @__PURE__ */ jsx5("nav", { "aria-label": "Breadcrumb", className: cn5(Breadcrumb_default.breadcrumb, className), children: /* @__PURE__ */ jsx5("ol", { className: Breadcrumb_default.list, children: items.map((item, index) => {
|
|
163
|
+
function Breadcrumb({ items, className, ...rest }) {
|
|
164
|
+
return /* @__PURE__ */ jsx5("nav", { ...rest, "aria-label": "Breadcrumb", className: cn5(Breadcrumb_default.breadcrumb, className), children: /* @__PURE__ */ jsx5("ol", { className: Breadcrumb_default.list, children: items.map((item, index) => {
|
|
161
165
|
const isLast = index === items.length - 1;
|
|
162
166
|
return /* @__PURE__ */ jsx5("li", { className: Breadcrumb_default.item, children: isLast ? /* @__PURE__ */ jsx5("span", { "aria-current": "page", className: Breadcrumb_default.current, children: item.label }) : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
163
167
|
/* @__PURE__ */ jsx5("a", { href: item.href, className: Breadcrumb_default.link, children: item.label }),
|
|
@@ -167,7 +171,7 @@ function Breadcrumb({ items, className }) {
|
|
|
167
171
|
}
|
|
168
172
|
|
|
169
173
|
// src/components/ui/Collapsible/Collapsible.module.css
|
|
170
|
-
var Collapsible_default = {"collapsible":"
|
|
174
|
+
var Collapsible_default = {"collapsible":"bds123Collapsible-collapsible","summary":"bds123Collapsible-summary","summaryContent":"bds123Collapsible-summaryContent","icon":"bds123Collapsible-icon","content":"bds123Collapsible-content"};
|
|
171
175
|
|
|
172
176
|
// src/components/ui/Collapsible/Collapsible.tsx
|
|
173
177
|
import { cn as cn6 } from "@boostdev/design-system-foundation";
|
|
@@ -208,7 +212,7 @@ function Collapsible({
|
|
|
208
212
|
import { useState as useState2, useId as useId2 } from "react";
|
|
209
213
|
|
|
210
214
|
// src/components/ui/Calendar/Calendar.module.css
|
|
211
|
-
var Calendar_default = {"calendar":"
|
|
215
|
+
var Calendar_default = {"calendar":"bds123Calendar-calendar","header":"bds123Calendar-header","monthYear":"bds123Calendar-monthYear","navBtn":"bds123Calendar-navBtn","grid":"bds123Calendar-grid","weekday":"bds123Calendar-weekday","empty":"bds123Calendar-empty","day":"bds123Calendar-day","disabled":"bds123Calendar-disabled","selected":"bds123Calendar-selected","today":"bds123Calendar-today"};
|
|
212
216
|
|
|
213
217
|
// src/components/ui/Calendar/Calendar.tsx
|
|
214
218
|
import { cn as cn7 } from "@boostdev/design-system-foundation";
|
|
@@ -254,7 +258,7 @@ function getDaysInMonth(year, month) {
|
|
|
254
258
|
function getFirstDayOfMonth(year, month) {
|
|
255
259
|
return new Date(year, month, 1).getDay();
|
|
256
260
|
}
|
|
257
|
-
function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
261
|
+
function Calendar({ value, defaultValue, min, max, onChange, className, ...rest }) {
|
|
258
262
|
const today = /* @__PURE__ */ new Date();
|
|
259
263
|
const controlled = value !== void 0;
|
|
260
264
|
const [internal, setInternal] = useState2(defaultValue);
|
|
@@ -308,7 +312,7 @@ function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
|
308
312
|
...Array.from({ length: daysInMonth }, (_, i) => ({ day: i + 1 }))
|
|
309
313
|
];
|
|
310
314
|
while (cells.length % 7 !== 0) cells.push(null);
|
|
311
|
-
return /* @__PURE__ */ jsxs5("div", { className: cn7(Calendar_default.calendar, className), role: "group", "aria-labelledby": titleId, children: [
|
|
315
|
+
return /* @__PURE__ */ jsxs5("div", { ...rest, className: cn7(Calendar_default.calendar, className), role: "group", "aria-labelledby": titleId, children: [
|
|
312
316
|
/* @__PURE__ */ jsxs5("div", { className: Calendar_default.header, children: [
|
|
313
317
|
/* @__PURE__ */ jsx7(
|
|
314
318
|
"button",
|
|
@@ -383,12 +387,12 @@ function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
|
383
387
|
import { useRef, useId as useId3 } from "react";
|
|
384
388
|
|
|
385
389
|
// src/components/ui/Carousel/Carousel.module.css
|
|
386
|
-
var Carousel_default = {"carousel":"
|
|
390
|
+
var Carousel_default = {"carousel":"bds123Carousel-carousel","track":"bds123Carousel-track","slide":"bds123Carousel-slide","navBtn":"bds123Carousel-navBtn"};
|
|
387
391
|
|
|
388
392
|
// src/components/ui/Carousel/Carousel.tsx
|
|
389
393
|
import { cn as cn8 } from "@boostdev/design-system-foundation";
|
|
390
394
|
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
391
|
-
function Carousel({ items, label, className }) {
|
|
395
|
+
function Carousel({ items, label, className, ...rest }) {
|
|
392
396
|
const trackRef = useRef(null);
|
|
393
397
|
const listId = useId3();
|
|
394
398
|
const scroll = (direction) => {
|
|
@@ -399,7 +403,7 @@ function Carousel({ items, label, className }) {
|
|
|
399
403
|
behavior: "smooth"
|
|
400
404
|
});
|
|
401
405
|
};
|
|
402
|
-
return /* @__PURE__ */ jsxs6("section", { "aria-label": label, className: cn8(Carousel_default.carousel, className), children: [
|
|
406
|
+
return /* @__PURE__ */ jsxs6("section", { ...rest, "aria-label": label, className: cn8(Carousel_default.carousel, className), children: [
|
|
403
407
|
/* @__PURE__ */ jsx8(
|
|
404
408
|
"button",
|
|
405
409
|
{
|
|
@@ -436,20 +440,20 @@ function Carousel({ items, label, className }) {
|
|
|
436
440
|
}
|
|
437
441
|
|
|
438
442
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
439
|
-
var DescriptionList_default = {"list":"
|
|
443
|
+
var DescriptionList_default = {"list":"bds123DescriptionList-list","group":"bds123DescriptionList-group","term":"bds123DescriptionList-term","details":"bds123DescriptionList-details","--layout_inline":"bds123DescriptionList---layout_inline"};
|
|
440
444
|
|
|
441
445
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
442
446
|
import { cn as cn9 } from "@boostdev/design-system-foundation";
|
|
443
447
|
import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
444
|
-
function DescriptionList({ items, layout = "stacked", className }) {
|
|
445
|
-
return /* @__PURE__ */ jsx9("dl", { className: cn9(DescriptionList_default.list, DescriptionList_default[`--layout_${layout}`], className), children: items.map((item, i) => /* @__PURE__ */ jsxs7("div", { className: DescriptionList_default.group, children: [
|
|
448
|
+
function DescriptionList({ items, layout = "stacked", className, ...rest }) {
|
|
449
|
+
return /* @__PURE__ */ jsx9("dl", { ...rest, className: cn9(DescriptionList_default.list, DescriptionList_default[`--layout_${layout}`], className), children: items.map((item, i) => /* @__PURE__ */ jsxs7("div", { className: DescriptionList_default.group, children: [
|
|
446
450
|
/* @__PURE__ */ jsx9("dt", { className: DescriptionList_default.term, children: item.term }),
|
|
447
451
|
Array.isArray(item.details) ? item.details.map((d, j) => /* @__PURE__ */ jsx9("dd", { className: DescriptionList_default.details, children: d }, j)) : /* @__PURE__ */ jsx9("dd", { className: DescriptionList_default.details, children: item.details })
|
|
448
452
|
] }, i)) });
|
|
449
453
|
}
|
|
450
454
|
|
|
451
455
|
// src/components/ui/Link/Link.module.css
|
|
452
|
-
var Link_default = {"link":"
|
|
456
|
+
var Link_default = {"link":"bds123Link-link","--variant_default":"bds123Link---variant_default","--variant_subtle":"bds123Link---variant_subtle","--variant_standalone":"bds123Link---variant_standalone","externalLabel":"bds123Link-externalLabel"};
|
|
453
457
|
|
|
454
458
|
// src/components/ui/Link/Link.tsx
|
|
455
459
|
import { cn as cn10 } from "@boostdev/design-system-foundation";
|
|
@@ -480,17 +484,17 @@ function Link({
|
|
|
480
484
|
}
|
|
481
485
|
|
|
482
486
|
// src/components/ui/Loading/Loading.module.css
|
|
483
|
-
var Loading_default = {"loading":"
|
|
487
|
+
var Loading_default = {"loading":"bds123Loading-loading","spinner":"bds123Loading-spinner","--size_small":"bds123Loading---size_small","--size_large":"bds123Loading---size_large"};
|
|
484
488
|
|
|
485
489
|
// src/components/ui/Loading/Loading.tsx
|
|
486
490
|
import { cn as cn11 } from "@boostdev/design-system-foundation";
|
|
487
491
|
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
488
|
-
function Loading({ size = "medium", className }) {
|
|
489
|
-
return /* @__PURE__ */ jsx11("div", { className: cn11(Loading_default.loading, Loading_default[`--size_${size}`], className), children: /* @__PURE__ */ jsx11("div", { className: Loading_default.spinner, role: "status", "aria-label": "Loading" }) });
|
|
492
|
+
function Loading({ size = "medium", className, ...rest }) {
|
|
493
|
+
return /* @__PURE__ */ jsx11("div", { ...rest, className: cn11(Loading_default.loading, Loading_default[`--size_${size}`], className), children: /* @__PURE__ */ jsx11("div", { className: Loading_default.spinner, role: "status", "aria-label": "Loading" }) });
|
|
490
494
|
}
|
|
491
495
|
|
|
492
496
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
493
|
-
var NotificationBanner_default = {"banner":"
|
|
497
|
+
var NotificationBanner_default = {"banner":"bds123NotificationBanner-banner","--variant_info":"bds123NotificationBanner---variant_info","--variant_success":"bds123NotificationBanner---variant_success","--variant_warning":"bds123NotificationBanner---variant_warning","--variant_error":"bds123NotificationBanner---variant_error","content":"bds123NotificationBanner-content","action":"bds123NotificationBanner-action","dismiss":"bds123NotificationBanner-dismiss"};
|
|
494
498
|
|
|
495
499
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
496
500
|
import { cn as cn12 } from "@boostdev/design-system-foundation";
|
|
@@ -500,12 +504,14 @@ function NotificationBanner({
|
|
|
500
504
|
children,
|
|
501
505
|
action,
|
|
502
506
|
onDismiss,
|
|
503
|
-
className
|
|
507
|
+
className,
|
|
508
|
+
...rest
|
|
504
509
|
}) {
|
|
505
510
|
const isUrgent = variant === "error" || variant === "warning";
|
|
506
511
|
return /* @__PURE__ */ jsxs9(
|
|
507
512
|
"div",
|
|
508
513
|
{
|
|
514
|
+
...rest,
|
|
509
515
|
role: isUrgent ? "alert" : "status",
|
|
510
516
|
"aria-live": isUrgent ? "assertive" : "polite",
|
|
511
517
|
"aria-atomic": "true",
|
|
@@ -529,7 +535,7 @@ function NotificationBanner({
|
|
|
529
535
|
}
|
|
530
536
|
|
|
531
537
|
// src/components/ui/Pagination/Pagination.module.css
|
|
532
|
-
var Pagination_default = {"pagination":"
|
|
538
|
+
var Pagination_default = {"pagination":"bds123Pagination-pagination","list":"bds123Pagination-list","button":"bds123Pagination-button","--active":"bds123Pagination---active","--nav":"bds123Pagination---nav","ellipsis":"bds123Pagination-ellipsis"};
|
|
533
539
|
|
|
534
540
|
// src/components/ui/Pagination/Pagination.tsx
|
|
535
541
|
import { cn as cn13 } from "@boostdev/design-system-foundation";
|
|
@@ -550,10 +556,11 @@ function Pagination({
|
|
|
550
556
|
currentPage,
|
|
551
557
|
totalPages,
|
|
552
558
|
onPageChange,
|
|
553
|
-
className
|
|
559
|
+
className,
|
|
560
|
+
...rest
|
|
554
561
|
}) {
|
|
555
562
|
const pages = getPageRange(currentPage, totalPages);
|
|
556
|
-
return /* @__PURE__ */ jsx13("nav", { "aria-label": "Pagination", className: cn13(Pagination_default.pagination, className), children: /* @__PURE__ */ jsxs10("ul", { className: Pagination_default.list, children: [
|
|
563
|
+
return /* @__PURE__ */ jsx13("nav", { ...rest, "aria-label": "Pagination", className: cn13(Pagination_default.pagination, className), children: /* @__PURE__ */ jsxs10("ul", { className: Pagination_default.list, children: [
|
|
557
564
|
/* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsx13(
|
|
558
565
|
"button",
|
|
559
566
|
{
|
|
@@ -593,7 +600,7 @@ function Pagination({
|
|
|
593
600
|
}
|
|
594
601
|
|
|
595
602
|
// src/components/ui/Progress/Progress.module.css
|
|
596
|
-
var Progress_default = {"container":"
|
|
603
|
+
var Progress_default = {"container":"bds123Progress-container","labelRow":"bds123Progress-labelRow","value":"bds123Progress-value","track":"bds123Progress-track","--size_small":"bds123Progress---size_small","--size_medium":"bds123Progress---size_medium","--size_large":"bds123Progress---size_large","fill":"bds123Progress-fill"};
|
|
597
604
|
|
|
598
605
|
// src/components/ui/Progress/Progress.tsx
|
|
599
606
|
import { cn as cn14 } from "@boostdev/design-system-foundation";
|
|
@@ -604,10 +611,11 @@ function Progress({
|
|
|
604
611
|
label,
|
|
605
612
|
showLabel = false,
|
|
606
613
|
size = "medium",
|
|
607
|
-
className
|
|
614
|
+
className,
|
|
615
|
+
...rest
|
|
608
616
|
}) {
|
|
609
617
|
const percentage = Math.min(100, Math.max(0, value / max * 100));
|
|
610
|
-
return /* @__PURE__ */ jsxs11("div", { className: cn14(Progress_default.container, className), children: [
|
|
618
|
+
return /* @__PURE__ */ jsxs11("div", { ...rest, className: cn14(Progress_default.container, className), children: [
|
|
611
619
|
showLabel && /* @__PURE__ */ jsxs11("div", { className: Progress_default.labelRow, children: [
|
|
612
620
|
/* @__PURE__ */ jsx14("span", { className: Progress_default.label, children: label }),
|
|
613
621
|
/* @__PURE__ */ jsxs11("span", { className: Progress_default.value, children: [
|
|
@@ -631,7 +639,7 @@ function Progress({
|
|
|
631
639
|
}
|
|
632
640
|
|
|
633
641
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
634
|
-
var ProgressCircle_default = {"wrapper":"
|
|
642
|
+
var ProgressCircle_default = {"wrapper":"bds123ProgressCircle-wrapper","svg":"bds123ProgressCircle-svg","track":"bds123ProgressCircle-track","fill":"bds123ProgressCircle-fill","value":"bds123ProgressCircle-value","--size_small":"bds123ProgressCircle---size_small","--size_medium":"bds123ProgressCircle---size_medium","--size_large":"bds123ProgressCircle---size_large"};
|
|
635
643
|
|
|
636
644
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
637
645
|
import { cn as cn15 } from "@boostdev/design-system-foundation";
|
|
@@ -644,7 +652,8 @@ function ProgressCircle({
|
|
|
644
652
|
label,
|
|
645
653
|
showValue = false,
|
|
646
654
|
size = "medium",
|
|
647
|
-
className
|
|
655
|
+
className,
|
|
656
|
+
...rest
|
|
648
657
|
}) {
|
|
649
658
|
const percentage = Math.min(100, Math.max(0, value / max * 100));
|
|
650
659
|
const px = SIZE_PX[size];
|
|
@@ -655,6 +664,7 @@ function ProgressCircle({
|
|
|
655
664
|
return /* @__PURE__ */ jsxs12(
|
|
656
665
|
"div",
|
|
657
666
|
{
|
|
667
|
+
...rest,
|
|
658
668
|
role: "progressbar",
|
|
659
669
|
"aria-label": label,
|
|
660
670
|
"aria-valuenow": value,
|
|
@@ -710,49 +720,50 @@ function ProgressCircle({
|
|
|
710
720
|
}
|
|
711
721
|
|
|
712
722
|
// src/components/ui/Separator/Separator.module.css
|
|
713
|
-
var Separator_default = {"separator":"
|
|
723
|
+
var Separator_default = {"separator":"bds123Separator-separator","--horizontal":"bds123Separator---horizontal","--vertical":"bds123Separator---vertical"};
|
|
714
724
|
|
|
715
725
|
// src/components/ui/Separator/Separator.tsx
|
|
716
726
|
import { cn as cn16 } from "@boostdev/design-system-foundation";
|
|
717
727
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
718
|
-
function Separator({ orientation = "horizontal", className }) {
|
|
728
|
+
function Separator({ orientation = "horizontal", className, ...rest }) {
|
|
719
729
|
if (orientation === "vertical") {
|
|
720
730
|
return /* @__PURE__ */ jsx16(
|
|
721
731
|
"div",
|
|
722
732
|
{
|
|
733
|
+
...rest,
|
|
723
734
|
role: "separator",
|
|
724
735
|
"aria-orientation": "vertical",
|
|
725
736
|
className: cn16(Separator_default.separator, Separator_default["--vertical"], className)
|
|
726
737
|
}
|
|
727
738
|
);
|
|
728
739
|
}
|
|
729
|
-
return /* @__PURE__ */ jsx16("hr", { "aria-orientation": "horizontal", className: cn16(Separator_default.separator, Separator_default["--horizontal"], className) });
|
|
740
|
+
return /* @__PURE__ */ jsx16("hr", { ...rest, "aria-orientation": "horizontal", className: cn16(Separator_default.separator, Separator_default["--horizontal"], className) });
|
|
730
741
|
}
|
|
731
742
|
|
|
732
743
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
733
744
|
import { cn as cn17 } from "@boostdev/design-system-foundation";
|
|
734
745
|
|
|
735
746
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
736
|
-
var Skeleton_default = {"skeleton":"
|
|
747
|
+
var Skeleton_default = {"skeleton":"bds123Skeleton-skeleton"};
|
|
737
748
|
|
|
738
749
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
739
750
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
740
|
-
function Skeleton({ className }) {
|
|
741
|
-
return /* @__PURE__ */ jsx17("div", { "aria-hidden": "true", className: cn17(Skeleton_default.skeleton, className) });
|
|
751
|
+
function Skeleton({ className, ...rest }) {
|
|
752
|
+
return /* @__PURE__ */ jsx17("div", { ...rest, "aria-hidden": "true", className: cn17(Skeleton_default.skeleton, className) });
|
|
742
753
|
}
|
|
743
754
|
|
|
744
755
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
745
|
-
var SkipLink_default = {"skipLink":"
|
|
756
|
+
var SkipLink_default = {"skipLink":"bds123SkipLink-skipLink"};
|
|
746
757
|
|
|
747
758
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
748
759
|
import { cn as cn18 } from "@boostdev/design-system-foundation";
|
|
749
760
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
750
|
-
function SkipLink({ href = "#main", children = "Skip to main content", className }) {
|
|
751
|
-
return /* @__PURE__ */ jsx18("a", { href, className: cn18(SkipLink_default.skipLink, className), children });
|
|
761
|
+
function SkipLink({ href = "#main", children = "Skip to main content", className, ...rest }) {
|
|
762
|
+
return /* @__PURE__ */ jsx18("a", { ...rest, href, className: cn18(SkipLink_default.skipLink, className), children });
|
|
752
763
|
}
|
|
753
764
|
|
|
754
765
|
// src/components/ui/Table/Table.module.css
|
|
755
|
-
var Table_default = {"wrapper":"
|
|
766
|
+
var Table_default = {"wrapper":"bds123Table-wrapper","table":"bds123Table-table","caption":"bds123Table-caption","thead":"bds123Table-thead","th":"bds123Table-th","--sortable":"bds123Table---sortable","sortButton":"bds123Table-sortButton","sortIcon":"bds123Table-sortIcon","--sort-active":"bds123Table---sort-active","--sort-desc":"bds123Table---sort-desc","tbody":"bds123Table-tbody","tr":"bds123Table-tr","td":"bds123Table-td"};
|
|
756
767
|
|
|
757
768
|
// src/components/ui/Table/Table.tsx
|
|
758
769
|
import { cn as cn19 } from "@boostdev/design-system-foundation";
|
|
@@ -822,12 +833,12 @@ function Table({
|
|
|
822
833
|
import { useId as useId4, useRef as useRef2, useState as useState3 } from "react";
|
|
823
834
|
|
|
824
835
|
// src/components/ui/Tabs/Tabs.module.css
|
|
825
|
-
var Tabs_default = {"tabs":"
|
|
836
|
+
var Tabs_default = {"tabs":"bds123Tabs-tabs","tabList":"bds123Tabs-tabList","tab":"bds123Tabs-tab","--active":"bds123Tabs---active","panel":"bds123Tabs-panel"};
|
|
826
837
|
|
|
827
838
|
// src/components/ui/Tabs/Tabs.tsx
|
|
828
839
|
import { cn as cn20 } from "@boostdev/design-system-foundation";
|
|
829
840
|
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
830
|
-
function Tabs({ tabs, defaultTab, className }) {
|
|
841
|
+
function Tabs({ tabs, defaultTab, className, ...rest }) {
|
|
831
842
|
const baseId = useId4();
|
|
832
843
|
const [activeTab, setActiveTab] = useState3(defaultTab ?? tabs[0]?.id);
|
|
833
844
|
const tabRefs = useRef2([]);
|
|
@@ -852,7 +863,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
852
863
|
focusAt(enabledIndexes[enabledIndexes.length - 1]);
|
|
853
864
|
}
|
|
854
865
|
};
|
|
855
|
-
return /* @__PURE__ */ jsxs14("div", { className: cn20(Tabs_default.tabs, className), children: [
|
|
866
|
+
return /* @__PURE__ */ jsxs14("div", { ...rest, className: cn20(Tabs_default.tabs, className), children: [
|
|
856
867
|
/* @__PURE__ */ jsx20("div", { role: "tablist", className: Tabs_default.tabList, children: tabs.map((tab, i) => {
|
|
857
868
|
const tabId = `${baseId}-tab-${tab.id}`;
|
|
858
869
|
const panelId = `${baseId}-panel-${tab.id}`;
|
|
@@ -902,7 +913,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
902
913
|
import { cloneElement, isValidElement, useId as useId5, useState as useState4 } from "react";
|
|
903
914
|
|
|
904
915
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
905
|
-
var Tooltip_default = {"wrapper":"
|
|
916
|
+
var Tooltip_default = {"wrapper":"bds123Tooltip-wrapper","tooltip":"bds123Tooltip-tooltip","--placement_top":"bds123Tooltip---placement_top","--placement_bottom":"bds123Tooltip---placement_bottom","--placement_left":"bds123Tooltip---placement_left","--placement_right":"bds123Tooltip---placement_right"};
|
|
906
917
|
|
|
907
918
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
908
919
|
import { cn as cn21 } from "@boostdev/design-system-foundation";
|
|
@@ -911,7 +922,8 @@ function Tooltip({
|
|
|
911
922
|
content,
|
|
912
923
|
placement = "top",
|
|
913
924
|
children,
|
|
914
|
-
className
|
|
925
|
+
className,
|
|
926
|
+
...rest
|
|
915
927
|
}) {
|
|
916
928
|
const tooltipId = useId5();
|
|
917
929
|
const [isVisible, setIsVisible] = useState4(false);
|
|
@@ -921,6 +933,7 @@ function Tooltip({
|
|
|
921
933
|
return /* @__PURE__ */ jsxs15(
|
|
922
934
|
"span",
|
|
923
935
|
{
|
|
936
|
+
...rest,
|
|
924
937
|
className: cn21(Tooltip_default.wrapper, className),
|
|
925
938
|
onMouseEnter: () => setIsVisible(true),
|
|
926
939
|
onMouseLeave: () => setIsVisible(false),
|
|
@@ -944,7 +957,7 @@ function Tooltip({
|
|
|
944
957
|
}
|
|
945
958
|
|
|
946
959
|
// src/components/ui/Typography/Typography.module.css
|
|
947
|
-
var Typography_default = {"typography":"
|
|
960
|
+
var Typography_default = {"typography":"bds123Typography-typography","--h1":"bds123Typography---h1","--h2":"bds123Typography---h2","--h3":"bds123Typography---h3","--body":"bds123Typography---body","--body_s":"bds123Typography---body_s"};
|
|
948
961
|
|
|
949
962
|
// src/components/ui/Typography/Typography.tsx
|
|
950
963
|
import { cn as cn22 } from "@boostdev/design-system-foundation";
|
|
@@ -956,13 +969,13 @@ var variantToElement = {
|
|
|
956
969
|
body: "p",
|
|
957
970
|
body_s: "p"
|
|
958
971
|
};
|
|
959
|
-
function Typography({ variant = "body", component, children, className }) {
|
|
972
|
+
function Typography({ variant = "body", component, children, className, ...rest }) {
|
|
960
973
|
const Component = component || variantToElement[variant];
|
|
961
|
-
return /* @__PURE__ */ jsx22(Component, { className: cn22(Typography_default.typography, Typography_default[`--${variant}`], className), children });
|
|
974
|
+
return /* @__PURE__ */ jsx22(Component, { ...rest, className: cn22(Typography_default.typography, Typography_default[`--${variant}`], className), children });
|
|
962
975
|
}
|
|
963
976
|
|
|
964
977
|
// src/components/interaction/Button/Button.module.css
|
|
965
|
-
var Button_default = {"button":"
|
|
978
|
+
var Button_default = {"button":"bds123Button-button","--default":"bds123Button---default","--outline":"bds123Button---outline","--ghost":"bds123Button---ghost","--size_small":"bds123Button---size_small","--size_medium":"bds123Button---size_medium","--size_large":"bds123Button---size_large","--hasPulse":"bds123Button---hasPulse","iconStart":"bds123Button-iconStart","iconEnd":"bds123Button-iconEnd"};
|
|
966
979
|
|
|
967
980
|
// src/components/interaction/Button/Button.tsx
|
|
968
981
|
import { cn as cn23 } from "@boostdev/design-system-foundation";
|
|
@@ -1077,7 +1090,7 @@ function installInvokerCommandsPolyfill() {
|
|
|
1077
1090
|
}
|
|
1078
1091
|
|
|
1079
1092
|
// src/components/interaction/Command/Command.module.css
|
|
1080
|
-
var Command_default = {"dialog":"
|
|
1093
|
+
var Command_default = {"dialog":"bds123Command-dialog","palette":"bds123Command-palette","searchRow":"bds123Command-searchRow","searchIcon":"bds123Command-searchIcon","search":"bds123Command-search","escHint":"bds123Command-escHint","list":"bds123Command-list","groupList":"bds123Command-groupList","group":"bds123Command-group","item":"bds123Command-item","itemActive":"bds123Command-itemActive","itemLabel":"bds123Command-itemLabel","itemDesc":"bds123Command-itemDesc","shortcut":"bds123Command-shortcut","empty":"bds123Command-empty"};
|
|
1081
1094
|
|
|
1082
1095
|
// src/components/interaction/Command/Command.tsx
|
|
1083
1096
|
import { cn as cn24 } from "@boostdev/design-system-foundation";
|
|
@@ -1090,7 +1103,8 @@ function Command({
|
|
|
1090
1103
|
onClose,
|
|
1091
1104
|
items,
|
|
1092
1105
|
placeholder = "Search commands\u2026",
|
|
1093
|
-
className
|
|
1106
|
+
className,
|
|
1107
|
+
...rest
|
|
1094
1108
|
}) {
|
|
1095
1109
|
const [query, setQuery] = useState5("");
|
|
1096
1110
|
const [activeIndex, setActiveIndex] = useState5(0);
|
|
@@ -1185,6 +1199,7 @@ function Command({
|
|
|
1185
1199
|
return /* @__PURE__ */ jsx24(
|
|
1186
1200
|
"dialog",
|
|
1187
1201
|
{
|
|
1202
|
+
...rest,
|
|
1188
1203
|
ref: dialogRef,
|
|
1189
1204
|
id: dialogId,
|
|
1190
1205
|
className: cn24(Command_default.dialog, className),
|
|
@@ -1252,14 +1267,14 @@ function Command({
|
|
|
1252
1267
|
import { useEffect as useEffect2, useId as useId7, useRef as useRef4 } from "react";
|
|
1253
1268
|
|
|
1254
1269
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1255
|
-
var Dialog_default = {"dialog":"
|
|
1270
|
+
var Dialog_default = {"dialog":"bds123Dialog-dialog","dialogContent":"bds123Dialog-dialogContent","closeButton":"bds123Dialog-closeButton"};
|
|
1256
1271
|
|
|
1257
1272
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1258
1273
|
import { cn as cn25 } from "@boostdev/design-system-foundation";
|
|
1259
1274
|
import { jsx as jsx25, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1260
1275
|
installInvokerCommandsPolyfill();
|
|
1261
1276
|
var FOCUSABLE_SELECTOR = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
1262
|
-
function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClose }) {
|
|
1277
|
+
function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClose, ...rest }) {
|
|
1263
1278
|
const generatedId = useId7();
|
|
1264
1279
|
const id = idProp ?? generatedId;
|
|
1265
1280
|
const dialogRef = useRef4(null);
|
|
@@ -1328,6 +1343,7 @@ function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClo
|
|
|
1328
1343
|
return /* @__PURE__ */ jsxs18(
|
|
1329
1344
|
"dialog",
|
|
1330
1345
|
{
|
|
1346
|
+
...rest,
|
|
1331
1347
|
ref: dialogRef,
|
|
1332
1348
|
id,
|
|
1333
1349
|
className: cn25(className, Dialog_default.dialog),
|
|
@@ -1357,7 +1373,7 @@ function Dialog({ children, id: idProp, isOpen = false, className, onOpen, onClo
|
|
|
1357
1373
|
import { useEffect as useEffect3, useId as useId8, useRef as useRef5 } from "react";
|
|
1358
1374
|
|
|
1359
1375
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1360
|
-
var Drawer_default = {"drawer":"
|
|
1376
|
+
var Drawer_default = {"drawer":"bds123Drawer-drawer","--side_left":"bds123Drawer---side_left","header":"bds123Drawer-header","closeButton":"bds123Drawer-closeButton","body":"bds123Drawer-body"};
|
|
1361
1377
|
|
|
1362
1378
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1363
1379
|
import { cn as cn26 } from "@boostdev/design-system-foundation";
|
|
@@ -1371,8 +1387,8 @@ function Drawer({
|
|
|
1371
1387
|
title,
|
|
1372
1388
|
children,
|
|
1373
1389
|
side = "right",
|
|
1374
|
-
|
|
1375
|
-
|
|
1390
|
+
className,
|
|
1391
|
+
...rest
|
|
1376
1392
|
}) {
|
|
1377
1393
|
const generatedId = useId8();
|
|
1378
1394
|
const id = idProp ?? generatedId;
|
|
@@ -1426,10 +1442,10 @@ function Drawer({
|
|
|
1426
1442
|
return /* @__PURE__ */ jsxs19(
|
|
1427
1443
|
"dialog",
|
|
1428
1444
|
{
|
|
1445
|
+
...rest,
|
|
1429
1446
|
ref: dialogRef,
|
|
1430
1447
|
id,
|
|
1431
1448
|
className: cn26(Drawer_default.drawer, Drawer_default[`--side_${side}`], className),
|
|
1432
|
-
"aria-label": ariaLabel,
|
|
1433
1449
|
"aria-modal": "true",
|
|
1434
1450
|
onClick: handleClick,
|
|
1435
1451
|
onCancel: handleCancel,
|
|
@@ -1465,7 +1481,7 @@ import {
|
|
|
1465
1481
|
} from "react";
|
|
1466
1482
|
|
|
1467
1483
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1468
|
-
var DropdownMenu_default = {"wrapper":"
|
|
1484
|
+
var DropdownMenu_default = {"wrapper":"bds123DropdownMenu-wrapper","menu":"bds123DropdownMenu-menu","--placement_bottom-start":"bds123DropdownMenu---placement_bottom-start","--placement_bottom-end":"bds123DropdownMenu---placement_bottom-end","separator":"bds123DropdownMenu-separator","item":"bds123DropdownMenu-item","icon":"bds123DropdownMenu-icon"};
|
|
1469
1485
|
|
|
1470
1486
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1471
1487
|
import { cn as cn27 } from "@boostdev/design-system-foundation";
|
|
@@ -1474,7 +1490,8 @@ function DropdownMenu({
|
|
|
1474
1490
|
trigger,
|
|
1475
1491
|
items,
|
|
1476
1492
|
placement = "bottom-start",
|
|
1477
|
-
className
|
|
1493
|
+
className,
|
|
1494
|
+
...rest
|
|
1478
1495
|
}) {
|
|
1479
1496
|
const [isOpen, setIsOpen] = useState6(false);
|
|
1480
1497
|
const containerRef = useRef6(null);
|
|
@@ -1537,7 +1554,7 @@ function DropdownMenu({
|
|
|
1537
1554
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1538
1555
|
}
|
|
1539
1556
|
}) : trigger;
|
|
1540
|
-
return /* @__PURE__ */ jsxs20("div", { ref: containerRef, className: cn27(DropdownMenu_default.wrapper, className), children: [
|
|
1557
|
+
return /* @__PURE__ */ jsxs20("div", { ...rest, ref: containerRef, className: cn27(DropdownMenu_default.wrapper, className), children: [
|
|
1541
1558
|
triggerEl,
|
|
1542
1559
|
isOpen && /* @__PURE__ */ jsx27(
|
|
1543
1560
|
"ul",
|
|
@@ -1585,7 +1602,7 @@ import {
|
|
|
1585
1602
|
} from "react";
|
|
1586
1603
|
|
|
1587
1604
|
// src/components/interaction/Popover/Popover.module.css
|
|
1588
|
-
var Popover_default = {"wrapper":"
|
|
1605
|
+
var Popover_default = {"wrapper":"bds123Popover-wrapper","panel":"bds123Popover-panel","g":"bds123Popover-g"};
|
|
1589
1606
|
|
|
1590
1607
|
// src/components/interaction/Popover/Popover.tsx
|
|
1591
1608
|
import { cn as cn28 } from "@boostdev/design-system-foundation";
|
|
@@ -1600,7 +1617,8 @@ function Popover({
|
|
|
1600
1617
|
content,
|
|
1601
1618
|
placement = "bottom",
|
|
1602
1619
|
className,
|
|
1603
|
-
"aria-label": ariaLabel
|
|
1620
|
+
"aria-label": ariaLabel,
|
|
1621
|
+
...rest
|
|
1604
1622
|
}) {
|
|
1605
1623
|
const [isOpen, setIsOpen] = useState7(false);
|
|
1606
1624
|
const containerRef = useRef7(null);
|
|
@@ -1649,7 +1667,7 @@ function Popover({
|
|
|
1649
1667
|
// avoid a double-toggle when both onClick and invoker fire.
|
|
1650
1668
|
onClick: children.props.onClick
|
|
1651
1669
|
}) : children;
|
|
1652
|
-
return /* @__PURE__ */ jsxs21("span", { ref: containerRef, className: cn28(Popover_default.wrapper, className), children: [
|
|
1670
|
+
return /* @__PURE__ */ jsxs21("span", { ...rest, ref: containerRef, className: cn28(Popover_default.wrapper, className), children: [
|
|
1653
1671
|
trigger,
|
|
1654
1672
|
/* @__PURE__ */ jsx28(
|
|
1655
1673
|
"div",
|
|
@@ -1669,15 +1687,16 @@ function Popover({
|
|
|
1669
1687
|
}
|
|
1670
1688
|
|
|
1671
1689
|
// src/components/interaction/Rating/Rating.module.css
|
|
1672
|
-
var Rating_default = {"rating":"
|
|
1690
|
+
var Rating_default = {"rating":"bds123Rating-rating","star":"bds123Rating-star","--filled":"bds123Rating---filled"};
|
|
1673
1691
|
|
|
1674
1692
|
// src/components/interaction/Rating/Rating.tsx
|
|
1675
1693
|
import { cn as cn29 } from "@boostdev/design-system-foundation";
|
|
1676
1694
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1677
|
-
function Rating({ value, max = 5, className }) {
|
|
1695
|
+
function Rating({ value, max = 5, className, ...rest }) {
|
|
1678
1696
|
return /* @__PURE__ */ jsx29(
|
|
1679
1697
|
"div",
|
|
1680
1698
|
{
|
|
1699
|
+
...rest,
|
|
1681
1700
|
className: cn29(Rating_default.rating, className),
|
|
1682
1701
|
role: "img",
|
|
1683
1702
|
"aria-label": `${value} out of ${max} stars`,
|
|
@@ -1700,7 +1719,7 @@ function Rating({ value, max = 5, className }) {
|
|
|
1700
1719
|
import { useState as useState8, useEffect as useEffect6, createContext, useContext, useCallback, useMemo as useMemo2, useRef as useRef8 } from "react";
|
|
1701
1720
|
|
|
1702
1721
|
// src/components/interaction/Toast/Toast.module.css
|
|
1703
|
-
var Toast_default = {"toastContainer":"
|
|
1722
|
+
var Toast_default = {"toastContainer":"bds123Toast-toastContainer","toast":"bds123Toast-toast","--variant_success":"bds123Toast---variant_success","--variant_warning":"bds123Toast---variant_warning","--variant_info":"bds123Toast---variant_info","--variant_error":"bds123Toast---variant_error","message":"bds123Toast-message","closeButton":"bds123Toast-closeButton"};
|
|
1704
1723
|
|
|
1705
1724
|
// src/components/interaction/Toast/Toast.tsx
|
|
1706
1725
|
import { cn as cn30 } from "@boostdev/design-system-foundation";
|
|
@@ -1773,10 +1792,10 @@ function useToast() {
|
|
|
1773
1792
|
import { useId as useId11 } from "react";
|
|
1774
1793
|
|
|
1775
1794
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1776
|
-
var Checkbox_default = {"checkboxGroup":"
|
|
1795
|
+
var Checkbox_default = {"checkboxGroup":"bds123Checkbox-checkboxGroup","inputWrapper":"bds123Checkbox-inputWrapper","checkbox":"bds123Checkbox-checkbox","checkboxError":"bds123Checkbox-checkboxError"};
|
|
1777
1796
|
|
|
1778
1797
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1779
|
-
var Message_default = {"error":"
|
|
1798
|
+
var Message_default = {"error":"bds123Message-error","hint":"bds123Message-hint"};
|
|
1780
1799
|
|
|
1781
1800
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1782
1801
|
import { cn as cn31 } from "@boostdev/design-system-foundation";
|
|
@@ -1787,7 +1806,7 @@ var Message = ({ message, type, inputId, className }) => {
|
|
|
1787
1806
|
};
|
|
1788
1807
|
|
|
1789
1808
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1790
|
-
var Label_default = {"label":"
|
|
1809
|
+
var Label_default = {"label":"bds123Label-label"};
|
|
1791
1810
|
|
|
1792
1811
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1793
1812
|
import { cn as cn32 } from "@boostdev/design-system-foundation";
|
|
@@ -1800,13 +1819,13 @@ var Label = ({ label, id, className }) => {
|
|
|
1800
1819
|
import { cn as cn34 } from "@boostdev/design-system-foundation";
|
|
1801
1820
|
|
|
1802
1821
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1803
|
-
var InputContainer_default = {"container":"
|
|
1822
|
+
var InputContainer_default = {"container":"bds123InputContainer-container"};
|
|
1804
1823
|
|
|
1805
1824
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1806
1825
|
import { cn as cn33 } from "@boostdev/design-system-foundation";
|
|
1807
1826
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1808
|
-
var InputContainer = ({ children, className }) => {
|
|
1809
|
-
return /* @__PURE__ */ jsx33("div", { className: cn33(InputContainer_default.container, className), children });
|
|
1827
|
+
var InputContainer = ({ children, className, ...rest }) => {
|
|
1828
|
+
return /* @__PURE__ */ jsx33("div", { ...rest, className: cn33(InputContainer_default.container, className), children });
|
|
1810
1829
|
};
|
|
1811
1830
|
|
|
1812
1831
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
@@ -1841,7 +1860,7 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1841
1860
|
import { useId as useId12 } from "react";
|
|
1842
1861
|
|
|
1843
1862
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.module.css
|
|
1844
|
-
var CheckboxGroup_default = {"group":"
|
|
1863
|
+
var CheckboxGroup_default = {"group":"bds123CheckboxGroup-group","legend":"bds123CheckboxGroup-legend","required":"bds123CheckboxGroup-required","items":"bds123CheckboxGroup-items"};
|
|
1845
1864
|
|
|
1846
1865
|
// src/components/interaction/form/CheckboxGroup/CheckboxGroup.tsx
|
|
1847
1866
|
import { cn as cn35 } from "@boostdev/design-system-foundation";
|
|
@@ -1852,8 +1871,8 @@ function CheckboxGroup({
|
|
|
1852
1871
|
error,
|
|
1853
1872
|
hint,
|
|
1854
1873
|
required,
|
|
1855
|
-
|
|
1856
|
-
|
|
1874
|
+
className,
|
|
1875
|
+
...rest
|
|
1857
1876
|
}) {
|
|
1858
1877
|
const id = useId12();
|
|
1859
1878
|
const hintId = id + "hint";
|
|
@@ -1862,8 +1881,8 @@ function CheckboxGroup({
|
|
|
1862
1881
|
return /* @__PURE__ */ jsxs24(
|
|
1863
1882
|
"fieldset",
|
|
1864
1883
|
{
|
|
1884
|
+
...rest,
|
|
1865
1885
|
className: cn35(CheckboxGroup_default.group, className),
|
|
1866
|
-
disabled,
|
|
1867
1886
|
"aria-required": required || void 0,
|
|
1868
1887
|
"aria-describedby": describedBy,
|
|
1869
1888
|
children: [
|
|
@@ -1889,7 +1908,7 @@ import {
|
|
|
1889
1908
|
} from "react";
|
|
1890
1909
|
|
|
1891
1910
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1892
|
-
var Combobox_default = {"formGroup":"
|
|
1911
|
+
var Combobox_default = {"formGroup":"bds123Combobox-formGroup","inputWrapper":"bds123Combobox-inputWrapper","input":"bds123Combobox-input","inputError":"bds123Combobox-inputError","chevron":"bds123Combobox-chevron","listbox":"bds123Combobox-listbox","option":"bds123Combobox-option","--highlighted":"bds123Combobox---highlighted","--selected":"bds123Combobox---selected","--disabled":"bds123Combobox---disabled"};
|
|
1893
1912
|
|
|
1894
1913
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1895
1914
|
import { cn as cn36 } from "@boostdev/design-system-foundation";
|
|
@@ -1904,7 +1923,8 @@ function Combobox({
|
|
|
1904
1923
|
disabled = false,
|
|
1905
1924
|
error,
|
|
1906
1925
|
hint,
|
|
1907
|
-
className
|
|
1926
|
+
className,
|
|
1927
|
+
...rest
|
|
1908
1928
|
}) {
|
|
1909
1929
|
const id = name + useId13();
|
|
1910
1930
|
const listboxId = id + "listbox";
|
|
@@ -1971,7 +1991,7 @@ function Combobox({
|
|
|
1971
1991
|
setIsOpen(false);
|
|
1972
1992
|
}
|
|
1973
1993
|
};
|
|
1974
|
-
return /* @__PURE__ */ jsxs25(InputContainer, { className: cn36(Combobox_default.formGroup, className), children: [
|
|
1994
|
+
return /* @__PURE__ */ jsxs25(InputContainer, { ...rest, className: cn36(Combobox_default.formGroup, className), children: [
|
|
1975
1995
|
/* @__PURE__ */ jsx36(Label, { id, label }),
|
|
1976
1996
|
/* @__PURE__ */ jsxs25("div", { ref: containerRef, className: Combobox_default.inputWrapper, children: [
|
|
1977
1997
|
/* @__PURE__ */ jsx36(
|
|
@@ -2039,7 +2059,7 @@ function Combobox({
|
|
|
2039
2059
|
import { useId as useId14, useRef as useRef10, useState as useState10 } from "react";
|
|
2040
2060
|
|
|
2041
2061
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
2042
|
-
var FileInput_default = {"formGroup":"
|
|
2062
|
+
var FileInput_default = {"formGroup":"bds123FileInput-formGroup","fieldLabel":"bds123FileInput-fieldLabel","dropZone":"bds123FileInput-dropZone","isDragging":"bds123FileInput-isDragging","hasError":"bds123FileInput-hasError","isDisabled":"bds123FileInput-isDisabled","icon":"bds123FileInput-icon","prompt":"bds123FileInput-prompt","acceptHint":"bds123FileInput-acceptHint","hiddenInput":"bds123FileInput-hiddenInput"};
|
|
2043
2063
|
|
|
2044
2064
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
2045
2065
|
import { cn as cn37 } from "@boostdev/design-system-foundation";
|
|
@@ -2054,7 +2074,8 @@ function FileInput({
|
|
|
2054
2074
|
error,
|
|
2055
2075
|
hint,
|
|
2056
2076
|
onChange,
|
|
2057
|
-
className
|
|
2077
|
+
className,
|
|
2078
|
+
...rest
|
|
2058
2079
|
}) {
|
|
2059
2080
|
const uid = name + useId14();
|
|
2060
2081
|
const hintId = uid + "hint";
|
|
@@ -2092,7 +2113,7 @@ function FileInput({
|
|
|
2092
2113
|
if (!disabled) setIsDragging(true);
|
|
2093
2114
|
};
|
|
2094
2115
|
const handleDragLeave = () => setIsDragging(false);
|
|
2095
|
-
return /* @__PURE__ */ jsxs26(InputContainer, { className: cn37(FileInput_default.formGroup, className), children: [
|
|
2116
|
+
return /* @__PURE__ */ jsxs26(InputContainer, { ...rest, className: cn37(FileInput_default.formGroup, className), children: [
|
|
2096
2117
|
/* @__PURE__ */ jsxs26(
|
|
2097
2118
|
"label",
|
|
2098
2119
|
{
|
|
@@ -2139,7 +2160,7 @@ function FileInput({
|
|
|
2139
2160
|
import { useId as useId15 } from "react";
|
|
2140
2161
|
|
|
2141
2162
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
2142
|
-
var FormInput_default = {"formGroup":"
|
|
2163
|
+
var FormInput_default = {"formGroup":"bds123FormInput-formGroup","input":"bds123FormInput-input","inputError":"bds123FormInput-inputError"};
|
|
2143
2164
|
|
|
2144
2165
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
2145
2166
|
import { cn as cn38 } from "@boostdev/design-system-foundation";
|
|
@@ -2183,7 +2204,7 @@ function FormInput({
|
|
|
2183
2204
|
import { useId as useId16, useRef as useRef11, useState as useState11 } from "react";
|
|
2184
2205
|
|
|
2185
2206
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
2186
|
-
var NumberInput_default = {"formGroup":"
|
|
2207
|
+
var NumberInput_default = {"formGroup":"bds123NumberInput-formGroup","inputRow":"bds123NumberInput-inputRow","input":"bds123NumberInput-input","inputError":"bds123NumberInput-inputError","stepper":"bds123NumberInput-stepper"};
|
|
2187
2208
|
|
|
2188
2209
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
2189
2210
|
import { cn as cn39 } from "@boostdev/design-system-foundation";
|
|
@@ -2200,7 +2221,8 @@ function NumberInput({
|
|
|
2200
2221
|
error,
|
|
2201
2222
|
hint,
|
|
2202
2223
|
onChange,
|
|
2203
|
-
className
|
|
2224
|
+
className,
|
|
2225
|
+
...rest
|
|
2204
2226
|
}) {
|
|
2205
2227
|
const uid = name + useId16();
|
|
2206
2228
|
const hintId = uid + "hint";
|
|
@@ -2225,7 +2247,7 @@ function NumberInput({
|
|
|
2225
2247
|
}
|
|
2226
2248
|
onChange?.(next);
|
|
2227
2249
|
};
|
|
2228
|
-
return /* @__PURE__ */ jsxs28(InputContainer, { className: cn39(NumberInput_default.formGroup, className), children: [
|
|
2250
|
+
return /* @__PURE__ */ jsxs28(InputContainer, { ...rest, className: cn39(NumberInput_default.formGroup, className), children: [
|
|
2229
2251
|
/* @__PURE__ */ jsx39(Label, { id: uid, label }),
|
|
2230
2252
|
/* @__PURE__ */ jsxs28("div", { className: NumberInput_default.inputRow, children: [
|
|
2231
2253
|
/* @__PURE__ */ jsx39(
|
|
@@ -2287,7 +2309,7 @@ function NumberInput({
|
|
|
2287
2309
|
import { useId as useId17 } from "react";
|
|
2288
2310
|
|
|
2289
2311
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2290
|
-
var Radio_default = {"radioGroup":"
|
|
2312
|
+
var Radio_default = {"radioGroup":"bds123Radio-radioGroup","inputWrapper":"bds123Radio-inputWrapper","textWrapper":"bds123Radio-textWrapper","description":"bds123Radio-description","radio":"bds123Radio-radio","radioError":"bds123Radio-radioError"};
|
|
2291
2313
|
|
|
2292
2314
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2293
2315
|
import { cn as cn40 } from "@boostdev/design-system-foundation";
|
|
@@ -2325,7 +2347,7 @@ function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
|
2325
2347
|
import { useId as useId18 } from "react";
|
|
2326
2348
|
|
|
2327
2349
|
// src/components/interaction/form/RadioGroup/RadioGroup.module.css
|
|
2328
|
-
var RadioGroup_default = {"group":"
|
|
2350
|
+
var RadioGroup_default = {"group":"bds123RadioGroup-group","legend":"bds123RadioGroup-legend","required":"bds123RadioGroup-required","items":"bds123RadioGroup-items"};
|
|
2329
2351
|
|
|
2330
2352
|
// src/components/interaction/form/RadioGroup/RadioGroup.tsx
|
|
2331
2353
|
import { cn as cn41 } from "@boostdev/design-system-foundation";
|
|
@@ -2336,8 +2358,8 @@ function RadioGroup({
|
|
|
2336
2358
|
error,
|
|
2337
2359
|
hint,
|
|
2338
2360
|
required,
|
|
2339
|
-
|
|
2340
|
-
|
|
2361
|
+
className,
|
|
2362
|
+
...rest
|
|
2341
2363
|
}) {
|
|
2342
2364
|
const id = useId18();
|
|
2343
2365
|
const hintId = id + "hint";
|
|
@@ -2346,8 +2368,8 @@ function RadioGroup({
|
|
|
2346
2368
|
return /* @__PURE__ */ jsxs30(
|
|
2347
2369
|
"fieldset",
|
|
2348
2370
|
{
|
|
2371
|
+
...rest,
|
|
2349
2372
|
className: cn41(RadioGroup_default.group, className),
|
|
2350
|
-
disabled,
|
|
2351
2373
|
"aria-required": required || void 0,
|
|
2352
2374
|
"aria-describedby": describedBy,
|
|
2353
2375
|
children: [
|
|
@@ -2367,7 +2389,7 @@ function RadioGroup({
|
|
|
2367
2389
|
import { Children, cloneElement as cloneElement4, isValidElement as isValidElement4 } from "react";
|
|
2368
2390
|
|
|
2369
2391
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.module.css
|
|
2370
|
-
var SegmentedControl_default = {"control":"
|
|
2392
|
+
var SegmentedControl_default = {"control":"bds123SegmentedControl-control","thumb":"bds123SegmentedControl-thumb","indicator":"bds123SegmentedControl-indicator","item":"bds123SegmentedControl-item","--active":"bds123SegmentedControl---active","--disabled":"bds123SegmentedControl---disabled","--size_small":"bds123SegmentedControl---size_small","--size_large":"bds123SegmentedControl---size_large","--variant_outline":"bds123SegmentedControl---variant_outline"};
|
|
2371
2393
|
|
|
2372
2394
|
// src/components/interaction/form/SegmentedControl/SegmentedControl.tsx
|
|
2373
2395
|
import { cn as cn42 } from "@boostdev/design-system-foundation";
|
|
@@ -2379,7 +2401,7 @@ function SegmentedControl({
|
|
|
2379
2401
|
size = "medium",
|
|
2380
2402
|
variant = "outline",
|
|
2381
2403
|
className,
|
|
2382
|
-
|
|
2404
|
+
...rest
|
|
2383
2405
|
}) {
|
|
2384
2406
|
const validChildren = Children.toArray(children).filter(isValidElement4);
|
|
2385
2407
|
const autoIndex = selectedIndexProp === void 0 ? validChildren.findIndex((child) => {
|
|
@@ -2390,8 +2412,8 @@ function SegmentedControl({
|
|
|
2390
2412
|
return /* @__PURE__ */ jsxs31(
|
|
2391
2413
|
"div",
|
|
2392
2414
|
{
|
|
2415
|
+
...rest,
|
|
2393
2416
|
role: "group",
|
|
2394
|
-
"aria-label": ariaLabel,
|
|
2395
2417
|
className: cn42(SegmentedControl_default.control, SegmentedControl_default[`--size_${size}`], SegmentedControl_default[`--variant_${variant}`], className),
|
|
2396
2418
|
style: {
|
|
2397
2419
|
"--control_count": validChildren.length,
|
|
@@ -2423,7 +2445,7 @@ function SegmentedControl({
|
|
|
2423
2445
|
import { useId as useId19 } from "react";
|
|
2424
2446
|
|
|
2425
2447
|
// src/components/interaction/form/Select/Select.module.css
|
|
2426
|
-
var Select_default = {"formGroup":"
|
|
2448
|
+
var Select_default = {"formGroup":"bds123Select-formGroup","selectWrapper":"bds123Select-selectWrapper","select":"bds123Select-select","selectError":"bds123Select-selectError","chevron":"bds123Select-chevron"};
|
|
2427
2449
|
|
|
2428
2450
|
// src/components/interaction/form/Select/Select.tsx
|
|
2429
2451
|
import { cn as cn43 } from "@boostdev/design-system-foundation";
|
|
@@ -2474,7 +2496,7 @@ function Select({
|
|
|
2474
2496
|
import { useId as useId20, useState as useState12 } from "react";
|
|
2475
2497
|
|
|
2476
2498
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2477
|
-
var Slider_default = {"formGroup":"
|
|
2499
|
+
var Slider_default = {"formGroup":"bds123Slider-formGroup","labelRow":"bds123Slider-labelRow","value":"bds123Slider-value","slider":"bds123Slider-slider","sliderError":"bds123Slider-sliderError"};
|
|
2478
2500
|
|
|
2479
2501
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2480
2502
|
import { cn as cn44 } from "@boostdev/design-system-foundation";
|
|
@@ -2536,7 +2558,7 @@ function Slider({
|
|
|
2536
2558
|
import { useId as useId21 } from "react";
|
|
2537
2559
|
|
|
2538
2560
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2539
|
-
var Switch_default = {"switchGroup":"
|
|
2561
|
+
var Switch_default = {"switchGroup":"bds123Switch-switchGroup","--size_small":"bds123Switch---size_small","--size_medium":"bds123Switch---size_medium","--size_large":"bds123Switch---size_large","inputWrapper":"bds123Switch-inputWrapper","trackWrapper":"bds123Switch-trackWrapper","switch":"bds123Switch-switch","track":"bds123Switch-track","thumb":"bds123Switch-thumb","switchError":"bds123Switch-switchError"};
|
|
2540
2562
|
|
|
2541
2563
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2542
2564
|
import { cn as cn45 } from "@boostdev/design-system-foundation";
|
|
@@ -2584,7 +2606,7 @@ function Switch({
|
|
|
2584
2606
|
import { useId as useId22 } from "react";
|
|
2585
2607
|
|
|
2586
2608
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2587
|
-
var Textarea_default = {"formGroup":"
|
|
2609
|
+
var Textarea_default = {"formGroup":"bds123Textarea-formGroup","textarea":"bds123Textarea-textarea","textareaError":"bds123Textarea-textareaError"};
|
|
2588
2610
|
|
|
2589
2611
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2590
2612
|
import { cn as cn46 } from "@boostdev/design-system-foundation";
|
|
@@ -2623,17 +2645,17 @@ function Textarea({
|
|
|
2623
2645
|
}
|
|
2624
2646
|
|
|
2625
2647
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2626
|
-
var ButtonGroup_default = {"buttonGroup":"
|
|
2648
|
+
var ButtonGroup_default = {"buttonGroup":"bds123ButtonGroup-buttonGroup","container":"bds123ButtonGroup-container","--variant_card":"bds123ButtonGroup---variant_card","--variant_flow":"bds123ButtonGroup---variant_flow","--variant_modal":"bds123ButtonGroup---variant_modal","--variant_content":"bds123ButtonGroup---variant_content","--variant_grid":"bds123ButtonGroup---variant_grid"};
|
|
2627
2649
|
|
|
2628
2650
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2629
2651
|
import { cn as cn47 } from "@boostdev/design-system-foundation";
|
|
2630
2652
|
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
2631
|
-
function ButtonGroup({ children, className, variant,
|
|
2653
|
+
function ButtonGroup({ children, className, variant, ...rest }) {
|
|
2632
2654
|
return /* @__PURE__ */ jsx47(
|
|
2633
2655
|
"div",
|
|
2634
2656
|
{
|
|
2657
|
+
...rest,
|
|
2635
2658
|
role: "group",
|
|
2636
|
-
"aria-label": ariaLabel,
|
|
2637
2659
|
className: cn47(ButtonGroup_default.buttonGroup, className, variant && ButtonGroup_default[`--variant_${variant}`]),
|
|
2638
2660
|
children: /* @__PURE__ */ jsx47("div", { className: ButtonGroup_default.container, children })
|
|
2639
2661
|
}
|
|
@@ -2641,7 +2663,7 @@ function ButtonGroup({ children, className, variant, "aria-label": ariaLabel })
|
|
|
2641
2663
|
}
|
|
2642
2664
|
|
|
2643
2665
|
// src/components/layout/Card/Card.module.css
|
|
2644
|
-
var Card_default = {"card":"
|
|
2666
|
+
var Card_default = {"card":"bds123Card-card","--default":"bds123Card---default","--elevated":"bds123Card---elevated","--outlined":"bds123Card---outlined","--clickable":"bds123Card---clickable","--padding-none":"bds123Card---padding-none","--padding-small":"bds123Card---padding-small","--padding-medium":"bds123Card---padding-medium","--padding-large":"bds123Card---padding-large","--text-start":"bds123Card---text-start","--text-center":"bds123Card---text-center","--text-end":"bds123Card---text-end"};
|
|
2645
2667
|
|
|
2646
2668
|
// src/components/layout/Card/Card.tsx
|
|
2647
2669
|
import { cn as cn48 } from "@boostdev/design-system-foundation";
|
|
@@ -2652,9 +2674,8 @@ function Card({
|
|
|
2652
2674
|
variant = "default",
|
|
2653
2675
|
padding = "medium",
|
|
2654
2676
|
textAlign = "start",
|
|
2655
|
-
style,
|
|
2656
2677
|
onClick,
|
|
2657
|
-
|
|
2678
|
+
...rest
|
|
2658
2679
|
}) {
|
|
2659
2680
|
const classNames = cn48(
|
|
2660
2681
|
Card_default.card,
|
|
@@ -2668,10 +2689,9 @@ function Card({
|
|
|
2668
2689
|
return /* @__PURE__ */ jsx48(
|
|
2669
2690
|
Component,
|
|
2670
2691
|
{
|
|
2692
|
+
...rest,
|
|
2671
2693
|
className: classNames,
|
|
2672
2694
|
onClick,
|
|
2673
|
-
style,
|
|
2674
|
-
"aria-label": ariaLabel,
|
|
2675
2695
|
...onClick && { type: "button" },
|
|
2676
2696
|
children
|
|
2677
2697
|
}
|
|
@@ -2679,7 +2699,7 @@ function Card({
|
|
|
2679
2699
|
}
|
|
2680
2700
|
|
|
2681
2701
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2682
|
-
var SectionHeader_default = {"sectionHeader":"
|
|
2702
|
+
var SectionHeader_default = {"sectionHeader":"bds123SectionHeader-sectionHeader","title":"bds123SectionHeader-title","subtitle":"bds123SectionHeader-subtitle","--start":"bds123SectionHeader---start","--center":"bds123SectionHeader---center","--end":"bds123SectionHeader---end","--small":"bds123SectionHeader---small","--medium":"bds123SectionHeader---medium","--large":"bds123SectionHeader---large"};
|
|
2683
2703
|
|
|
2684
2704
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2685
2705
|
import { cn as cn49 } from "@boostdev/design-system-foundation";
|
|
@@ -2690,23 +2710,24 @@ function SectionHeader({
|
|
|
2690
2710
|
className,
|
|
2691
2711
|
alignment = "start",
|
|
2692
2712
|
size = "medium",
|
|
2693
|
-
titleAs = "h2"
|
|
2713
|
+
titleAs = "h2",
|
|
2714
|
+
...rest
|
|
2694
2715
|
}) {
|
|
2695
2716
|
const Title = titleAs;
|
|
2696
|
-
return /* @__PURE__ */ jsxs36("div", { className: cn49(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], className), children: [
|
|
2717
|
+
return /* @__PURE__ */ jsxs36("div", { ...rest, className: cn49(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], className), children: [
|
|
2697
2718
|
/* @__PURE__ */ jsx49(Title, { className: SectionHeader_default.title, children: title }),
|
|
2698
2719
|
subtitle && /* @__PURE__ */ jsx49("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
2699
2720
|
] });
|
|
2700
2721
|
}
|
|
2701
2722
|
|
|
2702
2723
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2703
|
-
var IconWrapper_default = {"wrapper":"
|
|
2724
|
+
var IconWrapper_default = {"wrapper":"bds123IconWrapper-wrapper"};
|
|
2704
2725
|
|
|
2705
2726
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2706
2727
|
import { cn as cn50 } from "@boostdev/design-system-foundation";
|
|
2707
2728
|
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
2708
|
-
function IconWrapper({ children, className,
|
|
2709
|
-
return /* @__PURE__ */ jsx50("div", { className: cn50(className, IconWrapper_default.wrapper),
|
|
2729
|
+
function IconWrapper({ children, className, ...rest }) {
|
|
2730
|
+
return /* @__PURE__ */ jsx50("div", { ...rest, className: cn50(className, IconWrapper_default.wrapper), children });
|
|
2710
2731
|
}
|
|
2711
2732
|
|
|
2712
2733
|
// src/index.ts
|