@boostdev/design-system-components 0.1.13 → 0.1.15
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 +1 -1
- package/README.md +1 -1
- package/dist/client.cjs +406 -362
- package/dist/client.css +560 -511
- package/dist/client.d.cts +27 -5
- package/dist/client.d.ts +27 -5
- package/dist/client.js +405 -362
- package/dist/index.cjs +406 -362
- package/dist/index.css +560 -511
- package/dist/index.d.cts +27 -5
- package/dist/index.d.ts +27 -5
- package/dist/index.js +405 -362
- package/package.json +4 -2
- package/src/components/interaction/Button/Button.mdx +73 -0
- package/src/components/interaction/Button/Button.module.css +12 -20
- package/src/components/interaction/Button/Button.stories.tsx +0 -1
- package/src/components/interaction/Command/Command.mdx +28 -0
- package/src/components/interaction/Command/Command.module.css +2 -1
- package/src/components/interaction/Command/Command.stories.tsx +3 -3
- package/src/components/interaction/Dialog/Dialog.mdx +57 -0
- package/src/components/interaction/Dialog/Dialog.module.css +1 -1
- package/src/components/interaction/Dialog/Dialog.stories.tsx +0 -1
- package/src/components/interaction/Drawer/Drawer.mdx +35 -0
- package/src/components/interaction/Drawer/Drawer.module.css +3 -9
- package/src/components/interaction/Drawer/Drawer.stories.tsx +3 -3
- package/src/components/interaction/Drawer/Drawer.tsx +5 -3
- package/src/components/interaction/DropdownMenu/DropdownMenu.mdx +40 -0
- package/src/components/interaction/DropdownMenu/DropdownMenu.stories.tsx +5 -5
- package/src/components/interaction/Popover/Popover.mdx +34 -0
- package/src/components/interaction/Popover/Popover.stories.tsx +3 -3
- package/src/components/interaction/Rating/Rating.mdx +38 -0
- package/src/components/interaction/Rating/Rating.stories.tsx +0 -1
- package/src/components/interaction/Toast/Toast.mdx +78 -0
- package/src/components/interaction/Toast/Toast.module.css +21 -7
- package/src/components/interaction/Toast/Toast.stories.tsx +0 -1
- package/src/components/interaction/form/Checkbox/Checkbox.mdx +57 -0
- package/src/components/interaction/form/Checkbox/Checkbox.stories.tsx +0 -1
- package/src/components/interaction/form/Combobox/Combobox.mdx +37 -0
- package/src/components/interaction/form/Combobox/Combobox.stories.tsx +0 -1
- package/src/components/interaction/form/FileInput/FileInput.mdx +38 -0
- package/src/components/interaction/form/FileInput/FileInput.stories.tsx +0 -1
- package/src/components/interaction/form/FormInput/FormInput.mdx +54 -0
- package/src/components/interaction/form/FormInput/FormInput.stories.tsx +0 -1
- package/src/components/interaction/form/NumberInput/NumberInput.mdx +38 -0
- package/src/components/interaction/form/NumberInput/NumberInput.stories.tsx +0 -1
- package/src/components/interaction/form/Radio/Radio.mdx +60 -0
- package/src/components/interaction/form/Radio/Radio.module.css +24 -11
- package/src/components/interaction/form/Radio/Radio.stories.tsx +5 -5
- package/src/components/interaction/form/Radio/Radio.tsx +6 -2
- package/src/components/interaction/form/Select/Select.mdx +58 -0
- package/src/components/interaction/form/Select/Select.stories.tsx +0 -1
- package/src/components/interaction/form/Slider/Slider.mdx +58 -0
- package/src/components/interaction/form/Slider/Slider.stories.tsx +0 -1
- package/src/components/interaction/form/Switch/Switch.mdx +61 -0
- package/src/components/interaction/form/Switch/Switch.module.css +6 -10
- package/src/components/interaction/form/Switch/Switch.stories.tsx +0 -1
- package/src/components/interaction/form/Textarea/Textarea.mdx +41 -0
- package/src/components/interaction/form/Textarea/Textarea.stories.tsx +0 -1
- package/src/components/layout/ButtonGroup/ButtonGroup.mdx +47 -0
- package/src/components/layout/ButtonGroup/ButtonGroup.module.css +10 -10
- package/src/components/layout/ButtonGroup/ButtonGroup.stories.tsx +1 -2
- package/src/components/layout/Card/Card.mdx +58 -0
- package/src/components/layout/Card/Card.stories.tsx +0 -1
- package/src/components/layout/IconWrapper/IconWrapper.mdx +39 -0
- package/src/components/layout/IconWrapper/IconWrapper.stories.tsx +0 -1
- package/src/components/layout/SectionHeader/SectionHeader.mdx +38 -0
- package/src/components/layout/SectionHeader/SectionHeader.stories.tsx +0 -1
- package/src/components/ui/Accordion/Accordion.mdx +40 -0
- package/src/components/ui/Accordion/Accordion.stories.tsx +0 -1
- package/src/components/ui/Alert/Alert.mdx +63 -0
- package/src/components/ui/Alert/Alert.module.css +3 -7
- package/src/components/ui/Alert/Alert.stories.tsx +0 -1
- package/src/components/ui/Avatar/Avatar.mdx +53 -0
- package/src/components/ui/Avatar/Avatar.module.css +4 -8
- package/src/components/ui/Avatar/Avatar.stories.tsx +0 -1
- package/src/components/ui/Badge/Badge.mdx +62 -0
- package/src/components/ui/Badge/Badge.module.css +4 -10
- package/src/components/ui/Badge/Badge.stories.tsx +0 -1
- package/src/components/ui/Breadcrumb/Breadcrumb.mdx +36 -0
- package/src/components/ui/Breadcrumb/Breadcrumb.stories.tsx +0 -1
- package/src/components/ui/Calendar/Calendar.mdx +34 -0
- package/src/components/ui/Calendar/Calendar.stories.tsx +0 -1
- package/src/components/ui/Carousel/Carousel.mdx +31 -0
- package/src/components/ui/Carousel/Carousel.stories.tsx +0 -1
- package/src/components/ui/Collapsible/Collapsible.mdx +59 -0
- package/src/components/ui/Collapsible/Collapsible.module.css +76 -0
- package/src/components/ui/Collapsible/Collapsible.spec.tsx +75 -0
- package/src/components/ui/Collapsible/Collapsible.stories.tsx +57 -0
- package/src/components/ui/Collapsible/Collapsible.tsx +55 -0
- package/src/components/ui/Collapsible/index.ts +2 -0
- package/src/components/ui/DescriptionList/DescriptionList.mdx +28 -0
- package/src/components/ui/DescriptionList/DescriptionList.stories.tsx +0 -1
- package/src/components/ui/Link/Link.mdx +44 -0
- package/src/components/ui/Link/Link.module.css +2 -5
- package/src/components/ui/Link/Link.stories.tsx +0 -1
- package/src/components/ui/Loading/Loading.mdx +52 -0
- package/src/components/ui/Loading/Loading.stories.tsx +0 -1
- package/src/components/ui/NotificationBanner/NotificationBanner.mdx +45 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +3 -7
- package/src/components/ui/NotificationBanner/NotificationBanner.stories.tsx +2 -2
- package/src/components/ui/Pagination/Pagination.mdx +39 -0
- package/src/components/ui/Pagination/Pagination.module.css +3 -7
- package/src/components/ui/Pagination/Pagination.stories.tsx +0 -1
- package/src/components/ui/Progress/Progress.mdx +52 -0
- package/src/components/ui/Progress/Progress.module.css +1 -3
- package/src/components/ui/Progress/Progress.stories.tsx +0 -1
- package/src/components/ui/ProgressCircle/ProgressCircle.mdx +46 -0
- package/src/components/ui/ProgressCircle/ProgressCircle.stories.tsx +0 -1
- package/src/components/ui/Separator/Separator.mdx +29 -0
- package/src/components/ui/Separator/Separator.stories.tsx +0 -1
- package/src/components/ui/Skeleton/Skeleton.mdx +36 -0
- package/src/components/ui/Skeleton/Skeleton.stories.tsx +0 -1
- package/src/components/ui/SkipLink/SkipLink.mdx +34 -0
- package/src/components/ui/SkipLink/SkipLink.stories.tsx +0 -1
- package/src/components/ui/Table/Table.mdx +38 -0
- package/src/components/ui/Table/Table.stories.tsx +0 -1
- package/src/components/ui/Tabs/Tabs.mdx +40 -0
- package/src/components/ui/Tabs/Tabs.module.css +2 -5
- package/src/components/ui/Tabs/Tabs.stories.tsx +0 -1
- package/src/components/ui/Tooltip/Tooltip.mdx +43 -0
- package/src/components/ui/Tooltip/Tooltip.module.css +2 -5
- package/src/components/ui/Tooltip/Tooltip.stories.tsx +6 -6
- package/src/components/ui/Typography/Typography.mdx +41 -0
- package/src/components/ui/Typography/Typography.stories.tsx +0 -1
- package/src/index.ts +2 -0
- package/src/static/logo.svg +8 -0
- package/src/stories/Introduction.css +17 -0
- package/src/stories/Introduction.mdx +129 -0
package/dist/client.cjs
CHANGED
|
@@ -32,6 +32,7 @@ __export(client_exports, {
|
|
|
32
32
|
Card: () => Card,
|
|
33
33
|
Carousel: () => Carousel,
|
|
34
34
|
Checkbox: () => Checkbox,
|
|
35
|
+
Collapsible: () => Collapsible,
|
|
35
36
|
Combobox: () => Combobox,
|
|
36
37
|
Command: () => Command,
|
|
37
38
|
DescriptionList: () => DescriptionList,
|
|
@@ -64,7 +65,7 @@ __export(client_exports, {
|
|
|
64
65
|
ToastProvider: () => ToastProvider,
|
|
65
66
|
Tooltip: () => Tooltip,
|
|
66
67
|
Typography: () => Typography,
|
|
67
|
-
cn: () =>
|
|
68
|
+
cn: () => import_design_system_foundation45.cn,
|
|
68
69
|
useToast: () => useToast
|
|
69
70
|
});
|
|
70
71
|
module.exports = __toCommonJS(client_exports);
|
|
@@ -73,7 +74,7 @@ module.exports = __toCommonJS(client_exports);
|
|
|
73
74
|
var import_react = require("react");
|
|
74
75
|
|
|
75
76
|
// src/components/ui/Accordion/Accordion.module.css
|
|
76
|
-
var Accordion_default = {"accordion":"
|
|
77
|
+
var Accordion_default = {"accordion":"bds0115Accordion-accordion","item":"bds0115Accordion-item","heading":"bds0115Accordion-heading","trigger":"bds0115Accordion-trigger","triggerLabel":"bds0115Accordion-triggerLabel","chevron":"bds0115Accordion-chevron","--open":"bds0115Accordion---open","panel":"bds0115Accordion-panel","panelContent":"bds0115Accordion-panelContent"};
|
|
77
78
|
|
|
78
79
|
// src/components/ui/Accordion/Accordion.tsx
|
|
79
80
|
var import_design_system_foundation = require("@boostdev/design-system-foundation");
|
|
@@ -141,7 +142,7 @@ function Accordion({
|
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
// src/components/ui/Alert/Alert.module.css
|
|
144
|
-
var Alert_default = {"alert":"
|
|
145
|
+
var Alert_default = {"alert":"bds0115Alert-alert","--variant_info":"bds0115Alert---variant_info","--variant_success":"bds0115Alert---variant_success","--variant_warning":"bds0115Alert---variant_warning","--variant_error":"bds0115Alert---variant_error","icon":"bds0115Alert-icon","content":"bds0115Alert-content","title":"bds0115Alert-title","dismiss":"bds0115Alert-dismiss"};
|
|
145
146
|
|
|
146
147
|
// src/components/ui/Alert/Alert.tsx
|
|
147
148
|
var import_design_system_foundation2 = require("@boostdev/design-system-foundation");
|
|
@@ -184,7 +185,7 @@ function Alert({
|
|
|
184
185
|
}
|
|
185
186
|
|
|
186
187
|
// src/components/ui/Avatar/Avatar.module.css
|
|
187
|
-
var Avatar_default = {"avatar":"
|
|
188
|
+
var Avatar_default = {"avatar":"bds0115Avatar-avatar","--fallback":"bds0115Avatar---fallback","--size_small":"bds0115Avatar---size_small","--size_medium":"bds0115Avatar---size_medium","--size_large":"bds0115Avatar---size_large","image":"bds0115Avatar-image","initials":"bds0115Avatar-initials"};
|
|
188
189
|
|
|
189
190
|
// src/components/ui/Avatar/Avatar.tsx
|
|
190
191
|
var import_design_system_foundation3 = require("@boostdev/design-system-foundation");
|
|
@@ -210,7 +211,7 @@ function Avatar({ src, alt, name, size = "medium", className }) {
|
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
// src/components/ui/Badge/Badge.module.css
|
|
213
|
-
var Badge_default = {"badge":"
|
|
214
|
+
var Badge_default = {"badge":"bds0115Badge-badge","--variant_primary":"bds0115Badge---variant_primary","--variant_secondary":"bds0115Badge---variant_secondary","--variant_success":"bds0115Badge---variant_success","--variant_error":"bds0115Badge---variant_error","--variant_warning":"bds0115Badge---variant_warning"};
|
|
214
215
|
|
|
215
216
|
// src/components/ui/Badge/Badge.tsx
|
|
216
217
|
var import_design_system_foundation4 = require("@boostdev/design-system-foundation");
|
|
@@ -220,7 +221,7 @@ function Badge({ children, variant = "primary", className }) {
|
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
// src/components/ui/Breadcrumb/Breadcrumb.module.css
|
|
223
|
-
var Breadcrumb_default = {"breadcrumb":"
|
|
224
|
+
var Breadcrumb_default = {"breadcrumb":"bds0115Breadcrumb-breadcrumb","list":"bds0115Breadcrumb-list","item":"bds0115Breadcrumb-item","link":"bds0115Breadcrumb-link","separator":"bds0115Breadcrumb-separator","current":"bds0115Breadcrumb-current"};
|
|
224
225
|
|
|
225
226
|
// src/components/ui/Breadcrumb/Breadcrumb.tsx
|
|
226
227
|
var import_design_system_foundation5 = require("@boostdev/design-system-foundation");
|
|
@@ -235,15 +236,53 @@ function Breadcrumb({ items, className }) {
|
|
|
235
236
|
}) }) });
|
|
236
237
|
}
|
|
237
238
|
|
|
239
|
+
// src/components/ui/Collapsible/Collapsible.module.css
|
|
240
|
+
var Collapsible_default = {"collapsible":"bds0115Collapsible-collapsible","summary":"bds0115Collapsible-summary","summaryContent":"bds0115Collapsible-summaryContent","icon":"bds0115Collapsible-icon","content":"bds0115Collapsible-content"};
|
|
241
|
+
|
|
242
|
+
// src/components/ui/Collapsible/Collapsible.tsx
|
|
243
|
+
var import_design_system_foundation6 = require("@boostdev/design-system-foundation");
|
|
244
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
245
|
+
function Collapsible({
|
|
246
|
+
summary,
|
|
247
|
+
children,
|
|
248
|
+
open,
|
|
249
|
+
defaultOpen,
|
|
250
|
+
onToggle,
|
|
251
|
+
name,
|
|
252
|
+
className,
|
|
253
|
+
...rest
|
|
254
|
+
}) {
|
|
255
|
+
const handleToggle = (e) => {
|
|
256
|
+
onToggle?.(e.currentTarget.open);
|
|
257
|
+
};
|
|
258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
259
|
+
"details",
|
|
260
|
+
{
|
|
261
|
+
className: (0, import_design_system_foundation6.cn)(Collapsible_default.collapsible, className),
|
|
262
|
+
open: open ?? defaultOpen,
|
|
263
|
+
name,
|
|
264
|
+
onToggle: handleToggle,
|
|
265
|
+
...rest,
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("summary", { className: Collapsible_default.summary, children: [
|
|
268
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: Collapsible_default.summaryContent, children: summary }),
|
|
269
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: Collapsible_default.icon, "aria-hidden": "true" })
|
|
270
|
+
] }),
|
|
271
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: Collapsible_default.content, children })
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
238
277
|
// src/components/ui/Calendar/Calendar.tsx
|
|
239
278
|
var import_react2 = require("react");
|
|
240
279
|
|
|
241
280
|
// src/components/ui/Calendar/Calendar.module.css
|
|
242
|
-
var Calendar_default = {"calendar":"
|
|
281
|
+
var Calendar_default = {"calendar":"bds0115Calendar-calendar","header":"bds0115Calendar-header","monthYear":"bds0115Calendar-monthYear","navBtn":"bds0115Calendar-navBtn","grid":"bds0115Calendar-grid","weekday":"bds0115Calendar-weekday","empty":"bds0115Calendar-empty","day":"bds0115Calendar-day","disabled":"bds0115Calendar-disabled","selected":"bds0115Calendar-selected","today":"bds0115Calendar-today"};
|
|
243
282
|
|
|
244
283
|
// src/components/ui/Calendar/Calendar.tsx
|
|
245
|
-
var
|
|
246
|
-
var
|
|
284
|
+
var import_design_system_foundation7 = require("@boostdev/design-system-foundation");
|
|
285
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
247
286
|
var DAYS = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
|
|
248
287
|
var MONTHS = [
|
|
249
288
|
"January",
|
|
@@ -330,54 +369,54 @@ function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
|
330
369
|
...Array.from({ length: daysInMonth }, (_, i) => ({ day: i + 1 }))
|
|
331
370
|
];
|
|
332
371
|
while (cells.length % 7 !== 0) cells.push(null);
|
|
333
|
-
return /* @__PURE__ */ (0,
|
|
334
|
-
/* @__PURE__ */ (0,
|
|
335
|
-
/* @__PURE__ */ (0,
|
|
372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_design_system_foundation7.cn)(Calendar_default.calendar, className), role: "group", "aria-labelledby": titleId, children: [
|
|
373
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: Calendar_default.header, children: [
|
|
374
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
336
375
|
"button",
|
|
337
376
|
{
|
|
338
377
|
type: "button",
|
|
339
378
|
className: Calendar_default.navBtn,
|
|
340
379
|
"aria-label": "Previous month",
|
|
341
380
|
onClick: () => navigate(-1),
|
|
342
|
-
children: /* @__PURE__ */ (0,
|
|
381
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 19l-7-7 7-7" }) })
|
|
343
382
|
}
|
|
344
383
|
),
|
|
345
|
-
/* @__PURE__ */ (0,
|
|
384
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { id: titleId, className: Calendar_default.monthYear, "aria-live": "polite", children: [
|
|
346
385
|
MONTHS[viewMonth],
|
|
347
386
|
" ",
|
|
348
387
|
viewYear
|
|
349
388
|
] }),
|
|
350
|
-
/* @__PURE__ */ (0,
|
|
389
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
351
390
|
"button",
|
|
352
391
|
{
|
|
353
392
|
type: "button",
|
|
354
393
|
className: Calendar_default.navBtn,
|
|
355
394
|
"aria-label": "Next month",
|
|
356
395
|
onClick: () => navigate(1),
|
|
357
|
-
children: /* @__PURE__ */ (0,
|
|
396
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) })
|
|
358
397
|
}
|
|
359
398
|
)
|
|
360
399
|
] }),
|
|
361
|
-
/* @__PURE__ */ (0,
|
|
400
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
362
401
|
"table",
|
|
363
402
|
{
|
|
364
403
|
className: Calendar_default.grid,
|
|
365
404
|
role: "grid",
|
|
366
405
|
"aria-labelledby": titleId,
|
|
367
406
|
children: [
|
|
368
|
-
/* @__PURE__ */ (0,
|
|
369
|
-
/* @__PURE__ */ (0,
|
|
370
|
-
if (!cell) return /* @__PURE__ */ (0,
|
|
407
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tr", { children: DAYS.map((d) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("th", { scope: "col", abbr: d, className: Calendar_default.weekday, children: d }, d)) }) }),
|
|
408
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tbody", { children: Array.from({ length: cells.length / 7 }, (_, row) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("tr", { children: cells.slice(row * 7, row * 7 + 7).map((cell, col) => {
|
|
409
|
+
if (!cell) return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { className: Calendar_default.empty, "aria-hidden": "true" }, col);
|
|
371
410
|
const date = new Date(viewYear, viewMonth, cell.day);
|
|
372
411
|
const isSelected = selected ? isSameDay(date, selected) : false;
|
|
373
412
|
const isToday = isSameDay(date, today);
|
|
374
413
|
const disabled = isOutOfRange(date, min, max);
|
|
375
414
|
const isFocused = focusedDay === cell.day;
|
|
376
|
-
return /* @__PURE__ */ (0,
|
|
415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("td", { role: "gridcell", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
377
416
|
"button",
|
|
378
417
|
{
|
|
379
418
|
type: "button",
|
|
380
|
-
className: (0,
|
|
419
|
+
className: (0, import_design_system_foundation7.cn)(
|
|
381
420
|
Calendar_default.day,
|
|
382
421
|
isSelected && Calendar_default.selected,
|
|
383
422
|
isToday && !isSelected && Calendar_default.today,
|
|
@@ -405,11 +444,11 @@ function Calendar({ value, defaultValue, min, max, onChange, className }) {
|
|
|
405
444
|
var import_react3 = require("react");
|
|
406
445
|
|
|
407
446
|
// src/components/ui/Carousel/Carousel.module.css
|
|
408
|
-
var Carousel_default = {"carousel":"
|
|
447
|
+
var Carousel_default = {"carousel":"bds0115Carousel-carousel","track":"bds0115Carousel-track","slide":"bds0115Carousel-slide","navBtn":"bds0115Carousel-navBtn"};
|
|
409
448
|
|
|
410
449
|
// src/components/ui/Carousel/Carousel.tsx
|
|
411
|
-
var
|
|
412
|
-
var
|
|
450
|
+
var import_design_system_foundation8 = require("@boostdev/design-system-foundation");
|
|
451
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
413
452
|
function Carousel({ items, label, className }) {
|
|
414
453
|
const trackRef = (0, import_react3.useRef)(null);
|
|
415
454
|
const listId = (0, import_react3.useId)();
|
|
@@ -421,61 +460,61 @@ function Carousel({ items, label, className }) {
|
|
|
421
460
|
behavior: "smooth"
|
|
422
461
|
});
|
|
423
462
|
};
|
|
424
|
-
return /* @__PURE__ */ (0,
|
|
425
|
-
/* @__PURE__ */ (0,
|
|
463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { "aria-label": label, className: (0, import_design_system_foundation8.cn)(Carousel_default.carousel, className), children: [
|
|
464
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
426
465
|
"button",
|
|
427
466
|
{
|
|
428
467
|
type: "button",
|
|
429
|
-
className: (0,
|
|
468
|
+
className: (0, import_design_system_foundation8.cn)(Carousel_default.navBtn, Carousel_default["--prev"]),
|
|
430
469
|
"aria-label": "Previous",
|
|
431
470
|
"aria-controls": listId,
|
|
432
471
|
onClick: () => scroll("prev"),
|
|
433
|
-
children: /* @__PURE__ */ (0,
|
|
472
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 19l-7-7 7-7" }) })
|
|
434
473
|
}
|
|
435
474
|
),
|
|
436
|
-
/* @__PURE__ */ (0,
|
|
475
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
437
476
|
"div",
|
|
438
477
|
{
|
|
439
478
|
ref: trackRef,
|
|
440
479
|
id: listId,
|
|
441
480
|
role: "list",
|
|
442
481
|
className: Carousel_default.track,
|
|
443
|
-
children: items.map((item, i) => /* @__PURE__ */ (0,
|
|
482
|
+
children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { role: "listitem", className: Carousel_default.slide, children: item }, i))
|
|
444
483
|
}
|
|
445
484
|
),
|
|
446
|
-
/* @__PURE__ */ (0,
|
|
485
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
447
486
|
"button",
|
|
448
487
|
{
|
|
449
488
|
type: "button",
|
|
450
|
-
className: (0,
|
|
489
|
+
className: (0, import_design_system_foundation8.cn)(Carousel_default.navBtn, Carousel_default["--next"]),
|
|
451
490
|
"aria-label": "Next",
|
|
452
491
|
"aria-controls": listId,
|
|
453
492
|
onClick: () => scroll("next"),
|
|
454
|
-
children: /* @__PURE__ */ (0,
|
|
493
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) })
|
|
455
494
|
}
|
|
456
495
|
)
|
|
457
496
|
] });
|
|
458
497
|
}
|
|
459
498
|
|
|
460
499
|
// src/components/ui/DescriptionList/DescriptionList.module.css
|
|
461
|
-
var DescriptionList_default = {"list":"
|
|
500
|
+
var DescriptionList_default = {"list":"bds0115DescriptionList-list","group":"bds0115DescriptionList-group","term":"bds0115DescriptionList-term","details":"bds0115DescriptionList-details","--layout_inline":"bds0115DescriptionList---layout_inline"};
|
|
462
501
|
|
|
463
502
|
// src/components/ui/DescriptionList/DescriptionList.tsx
|
|
464
|
-
var
|
|
465
|
-
var
|
|
503
|
+
var import_design_system_foundation9 = require("@boostdev/design-system-foundation");
|
|
504
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
466
505
|
function DescriptionList({ items, layout = "stacked", className }) {
|
|
467
|
-
return /* @__PURE__ */ (0,
|
|
468
|
-
/* @__PURE__ */ (0,
|
|
469
|
-
Array.isArray(item.details) ? item.details.map((d, j) => /* @__PURE__ */ (0,
|
|
506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("dl", { className: (0, import_design_system_foundation9.cn)(DescriptionList_default.list, DescriptionList_default[`--layout_${layout}`], className), children: items.map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: DescriptionList_default.group, children: [
|
|
507
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("dt", { className: DescriptionList_default.term, children: item.term }),
|
|
508
|
+
Array.isArray(item.details) ? item.details.map((d, j) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("dd", { className: DescriptionList_default.details, children: d }, j)) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("dd", { className: DescriptionList_default.details, children: item.details })
|
|
470
509
|
] }, i)) });
|
|
471
510
|
}
|
|
472
511
|
|
|
473
512
|
// src/components/ui/Link/Link.module.css
|
|
474
|
-
var Link_default = {"link":"
|
|
513
|
+
var Link_default = {"link":"bds0115Link-link","--variant_default":"bds0115Link---variant_default","--variant_subtle":"bds0115Link---variant_subtle","--variant_standalone":"bds0115Link---variant_standalone","externalLabel":"bds0115Link-externalLabel"};
|
|
475
514
|
|
|
476
515
|
// src/components/ui/Link/Link.tsx
|
|
477
|
-
var
|
|
478
|
-
var
|
|
516
|
+
var import_design_system_foundation10 = require("@boostdev/design-system-foundation");
|
|
517
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
479
518
|
function Link({
|
|
480
519
|
as,
|
|
481
520
|
children,
|
|
@@ -487,36 +526,36 @@ function Link({
|
|
|
487
526
|
}) {
|
|
488
527
|
const Component = as ?? "a";
|
|
489
528
|
const externalProps = external ? { target: "_blank", rel: "noreferrer noopener" } : {};
|
|
490
|
-
return /* @__PURE__ */ (0,
|
|
529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
491
530
|
Component,
|
|
492
531
|
{
|
|
493
|
-
className: (0,
|
|
532
|
+
className: (0, import_design_system_foundation10.cn)(Link_default.link, Link_default[`--variant_${variant}`], className),
|
|
494
533
|
...externalProps,
|
|
495
534
|
...props,
|
|
496
535
|
children: [
|
|
497
536
|
children,
|
|
498
|
-
external && /* @__PURE__ */ (0,
|
|
537
|
+
external && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: Link_default.externalLabel, children: externalLabel })
|
|
499
538
|
]
|
|
500
539
|
}
|
|
501
540
|
);
|
|
502
541
|
}
|
|
503
542
|
|
|
504
543
|
// src/components/ui/Loading/Loading.module.css
|
|
505
|
-
var Loading_default = {"loading":"
|
|
544
|
+
var Loading_default = {"loading":"bds0115Loading-loading","spinner":"bds0115Loading-spinner","--size_small":"bds0115Loading---size_small","--size_large":"bds0115Loading---size_large"};
|
|
506
545
|
|
|
507
546
|
// src/components/ui/Loading/Loading.tsx
|
|
508
|
-
var
|
|
509
|
-
var
|
|
547
|
+
var import_design_system_foundation11 = require("@boostdev/design-system-foundation");
|
|
548
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
510
549
|
function Loading({ size = "medium", className }) {
|
|
511
|
-
return /* @__PURE__ */ (0,
|
|
550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_design_system_foundation11.cn)(Loading_default.loading, Loading_default[`--size_${size}`], className), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: Loading_default.spinner, role: "status", "aria-label": "Loading" }) });
|
|
512
551
|
}
|
|
513
552
|
|
|
514
553
|
// src/components/ui/NotificationBanner/NotificationBanner.module.css
|
|
515
|
-
var NotificationBanner_default = {"banner":"
|
|
554
|
+
var NotificationBanner_default = {"banner":"bds0115NotificationBanner-banner","--variant_info":"bds0115NotificationBanner---variant_info","--variant_success":"bds0115NotificationBanner---variant_success","--variant_warning":"bds0115NotificationBanner---variant_warning","--variant_error":"bds0115NotificationBanner---variant_error","content":"bds0115NotificationBanner-content","action":"bds0115NotificationBanner-action","dismiss":"bds0115NotificationBanner-dismiss"};
|
|
516
555
|
|
|
517
556
|
// src/components/ui/NotificationBanner/NotificationBanner.tsx
|
|
518
|
-
var
|
|
519
|
-
var
|
|
557
|
+
var import_design_system_foundation12 = require("@boostdev/design-system-foundation");
|
|
558
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
520
559
|
function NotificationBanner({
|
|
521
560
|
variant = "info",
|
|
522
561
|
children,
|
|
@@ -525,24 +564,24 @@ function NotificationBanner({
|
|
|
525
564
|
className
|
|
526
565
|
}) {
|
|
527
566
|
const isUrgent = variant === "error" || variant === "warning";
|
|
528
|
-
return /* @__PURE__ */ (0,
|
|
567
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
529
568
|
"div",
|
|
530
569
|
{
|
|
531
570
|
role: isUrgent ? "alert" : "status",
|
|
532
571
|
"aria-live": isUrgent ? "assertive" : "polite",
|
|
533
572
|
"aria-atomic": "true",
|
|
534
|
-
className: (0,
|
|
573
|
+
className: (0, import_design_system_foundation12.cn)(NotificationBanner_default.banner, NotificationBanner_default[`--variant_${variant}`], className),
|
|
535
574
|
children: [
|
|
536
|
-
/* @__PURE__ */ (0,
|
|
537
|
-
action && /* @__PURE__ */ (0,
|
|
538
|
-
onDismiss && /* @__PURE__ */ (0,
|
|
575
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: NotificationBanner_default.content, children }),
|
|
576
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: NotificationBanner_default.action, children: action }),
|
|
577
|
+
onDismiss && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
539
578
|
"button",
|
|
540
579
|
{
|
|
541
580
|
type: "button",
|
|
542
581
|
className: NotificationBanner_default.dismiss,
|
|
543
582
|
onClick: onDismiss,
|
|
544
583
|
"aria-label": "Dismiss notification",
|
|
545
|
-
children: /* @__PURE__ */ (0,
|
|
584
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
546
585
|
}
|
|
547
586
|
)
|
|
548
587
|
]
|
|
@@ -551,11 +590,11 @@ function NotificationBanner({
|
|
|
551
590
|
}
|
|
552
591
|
|
|
553
592
|
// src/components/ui/Pagination/Pagination.module.css
|
|
554
|
-
var Pagination_default = {"pagination":"
|
|
593
|
+
var Pagination_default = {"pagination":"bds0115Pagination-pagination","list":"bds0115Pagination-list","button":"bds0115Pagination-button","--active":"bds0115Pagination---active","--nav":"bds0115Pagination---nav","ellipsis":"bds0115Pagination-ellipsis"};
|
|
555
594
|
|
|
556
595
|
// src/components/ui/Pagination/Pagination.tsx
|
|
557
|
-
var
|
|
558
|
-
var
|
|
596
|
+
var import_design_system_foundation13 = require("@boostdev/design-system-foundation");
|
|
597
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
559
598
|
function getPageRange(current, total) {
|
|
560
599
|
const delta = 1;
|
|
561
600
|
const range = [];
|
|
@@ -575,24 +614,24 @@ function Pagination({
|
|
|
575
614
|
className
|
|
576
615
|
}) {
|
|
577
616
|
const pages = getPageRange(currentPage, totalPages);
|
|
578
|
-
return /* @__PURE__ */ (0,
|
|
579
|
-
/* @__PURE__ */ (0,
|
|
617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("nav", { "aria-label": "Pagination", className: (0, import_design_system_foundation13.cn)(Pagination_default.pagination, className), children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("ul", { className: Pagination_default.list, children: [
|
|
618
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
580
619
|
"button",
|
|
581
620
|
{
|
|
582
621
|
type: "button",
|
|
583
|
-
className: (0,
|
|
622
|
+
className: (0, import_design_system_foundation13.cn)(Pagination_default.button, Pagination_default["--nav"]),
|
|
584
623
|
onClick: () => onPageChange(currentPage - 1),
|
|
585
624
|
disabled: currentPage <= 1,
|
|
586
625
|
"aria-label": "Previous page",
|
|
587
|
-
children: /* @__PURE__ */ (0,
|
|
626
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15 19l-7-7 7-7" }) })
|
|
588
627
|
}
|
|
589
628
|
) }),
|
|
590
629
|
pages.map(
|
|
591
|
-
(page, index) => page === "..." ? /* @__PURE__ */ (0,
|
|
630
|
+
(page, index) => page === "..." ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: Pagination_default.ellipsis, "aria-hidden": "true", children: "\u2026" }) }, `ellipsis-${index}`) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
592
631
|
"button",
|
|
593
632
|
{
|
|
594
633
|
type: "button",
|
|
595
|
-
className: (0,
|
|
634
|
+
className: (0, import_design_system_foundation13.cn)(Pagination_default.button, currentPage === page ? Pagination_default["--active"] : void 0),
|
|
596
635
|
onClick: () => onPageChange(page),
|
|
597
636
|
"aria-label": `Page ${page}`,
|
|
598
637
|
"aria-current": currentPage === page ? "page" : void 0,
|
|
@@ -600,26 +639,26 @@ function Pagination({
|
|
|
600
639
|
}
|
|
601
640
|
) }, page)
|
|
602
641
|
),
|
|
603
|
-
/* @__PURE__ */ (0,
|
|
642
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
604
643
|
"button",
|
|
605
644
|
{
|
|
606
645
|
type: "button",
|
|
607
|
-
className: (0,
|
|
646
|
+
className: (0, import_design_system_foundation13.cn)(Pagination_default.button, Pagination_default["--nav"]),
|
|
608
647
|
onClick: () => onPageChange(currentPage + 1),
|
|
609
648
|
disabled: currentPage >= totalPages,
|
|
610
649
|
"aria-label": "Next page",
|
|
611
|
-
children: /* @__PURE__ */ (0,
|
|
650
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) })
|
|
612
651
|
}
|
|
613
652
|
) })
|
|
614
653
|
] }) });
|
|
615
654
|
}
|
|
616
655
|
|
|
617
656
|
// src/components/ui/Progress/Progress.module.css
|
|
618
|
-
var Progress_default = {"container":"
|
|
657
|
+
var Progress_default = {"container":"bds0115Progress-container","labelRow":"bds0115Progress-labelRow","label":"bds0115Progress-label","value":"bds0115Progress-value","track":"bds0115Progress-track","--size_small":"bds0115Progress---size_small","--size_medium":"bds0115Progress---size_medium","--size_large":"bds0115Progress---size_large","fill":"bds0115Progress-fill"};
|
|
619
658
|
|
|
620
659
|
// src/components/ui/Progress/Progress.tsx
|
|
621
|
-
var
|
|
622
|
-
var
|
|
660
|
+
var import_design_system_foundation14 = require("@boostdev/design-system-foundation");
|
|
661
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
623
662
|
function Progress({
|
|
624
663
|
value,
|
|
625
664
|
max = 100,
|
|
@@ -629,15 +668,15 @@ function Progress({
|
|
|
629
668
|
className
|
|
630
669
|
}) {
|
|
631
670
|
const percentage = Math.min(100, Math.max(0, value / max * 100));
|
|
632
|
-
return /* @__PURE__ */ (0,
|
|
633
|
-
showLabel && /* @__PURE__ */ (0,
|
|
634
|
-
/* @__PURE__ */ (0,
|
|
635
|
-
/* @__PURE__ */ (0,
|
|
671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: (0, import_design_system_foundation14.cn)(Progress_default.container, className), children: [
|
|
672
|
+
showLabel && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: Progress_default.labelRow, children: [
|
|
673
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: Progress_default.label, children: label }),
|
|
674
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: Progress_default.value, children: [
|
|
636
675
|
Math.round(percentage),
|
|
637
676
|
"%"
|
|
638
677
|
] })
|
|
639
678
|
] }),
|
|
640
|
-
/* @__PURE__ */ (0,
|
|
679
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
641
680
|
"div",
|
|
642
681
|
{
|
|
643
682
|
role: "progressbar",
|
|
@@ -645,19 +684,19 @@ function Progress({
|
|
|
645
684
|
"aria-valuenow": value,
|
|
646
685
|
"aria-valuemin": 0,
|
|
647
686
|
"aria-valuemax": max,
|
|
648
|
-
className: (0,
|
|
649
|
-
children: /* @__PURE__ */ (0,
|
|
687
|
+
className: (0, import_design_system_foundation14.cn)(Progress_default.track, Progress_default[`--size_${size}`]),
|
|
688
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: Progress_default.fill, style: { width: `${percentage}%` } })
|
|
650
689
|
}
|
|
651
690
|
)
|
|
652
691
|
] });
|
|
653
692
|
}
|
|
654
693
|
|
|
655
694
|
// src/components/ui/ProgressCircle/ProgressCircle.module.css
|
|
656
|
-
var ProgressCircle_default = {"wrapper":"
|
|
695
|
+
var ProgressCircle_default = {"wrapper":"bds0115ProgressCircle-wrapper","svg":"bds0115ProgressCircle-svg","track":"bds0115ProgressCircle-track","fill":"bds0115ProgressCircle-fill","value":"bds0115ProgressCircle-value","--size_small":"bds0115ProgressCircle---size_small","--size_medium":"bds0115ProgressCircle---size_medium","--size_large":"bds0115ProgressCircle---size_large"};
|
|
657
696
|
|
|
658
697
|
// src/components/ui/ProgressCircle/ProgressCircle.tsx
|
|
659
|
-
var
|
|
660
|
-
var
|
|
698
|
+
var import_design_system_foundation15 = require("@boostdev/design-system-foundation");
|
|
699
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
661
700
|
var SIZE_PX = { small: 40, medium: 64, large: 96 };
|
|
662
701
|
var STROKE_WIDTH = 4;
|
|
663
702
|
function ProgressCircle({
|
|
@@ -674,7 +713,7 @@ function ProgressCircle({
|
|
|
674
713
|
const circumference = 2 * Math.PI * radius;
|
|
675
714
|
const offset = circumference - percentage / 100 * circumference;
|
|
676
715
|
const cx = px / 2;
|
|
677
|
-
return /* @__PURE__ */ (0,
|
|
716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
678
717
|
"div",
|
|
679
718
|
{
|
|
680
719
|
role: "progressbar",
|
|
@@ -682,9 +721,9 @@ function ProgressCircle({
|
|
|
682
721
|
"aria-valuenow": value,
|
|
683
722
|
"aria-valuemin": 0,
|
|
684
723
|
"aria-valuemax": max,
|
|
685
|
-
className: (0,
|
|
724
|
+
className: (0, import_design_system_foundation15.cn)(ProgressCircle_default.wrapper, ProgressCircle_default[`--size_${size}`], className),
|
|
686
725
|
children: [
|
|
687
|
-
/* @__PURE__ */ (0,
|
|
726
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
688
727
|
"svg",
|
|
689
728
|
{
|
|
690
729
|
width: px,
|
|
@@ -693,7 +732,7 @@ function ProgressCircle({
|
|
|
693
732
|
"aria-hidden": "true",
|
|
694
733
|
className: ProgressCircle_default.svg,
|
|
695
734
|
children: [
|
|
696
|
-
/* @__PURE__ */ (0,
|
|
735
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
697
736
|
"circle",
|
|
698
737
|
{
|
|
699
738
|
className: ProgressCircle_default.track,
|
|
@@ -704,7 +743,7 @@ function ProgressCircle({
|
|
|
704
743
|
fill: "none"
|
|
705
744
|
}
|
|
706
745
|
),
|
|
707
|
-
/* @__PURE__ */ (0,
|
|
746
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
708
747
|
"circle",
|
|
709
748
|
{
|
|
710
749
|
className: ProgressCircle_default.fill,
|
|
@@ -722,7 +761,7 @@ function ProgressCircle({
|
|
|
722
761
|
]
|
|
723
762
|
}
|
|
724
763
|
),
|
|
725
|
-
showValue && /* @__PURE__ */ (0,
|
|
764
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: ProgressCircle_default.value, "aria-hidden": "true", children: [
|
|
726
765
|
Math.round(percentage),
|
|
727
766
|
"%"
|
|
728
767
|
] })
|
|
@@ -732,52 +771,52 @@ function ProgressCircle({
|
|
|
732
771
|
}
|
|
733
772
|
|
|
734
773
|
// src/components/ui/Separator/Separator.module.css
|
|
735
|
-
var Separator_default = {"separator":"
|
|
774
|
+
var Separator_default = {"separator":"bds0115Separator-separator","--horizontal":"bds0115Separator---horizontal","--vertical":"bds0115Separator---vertical"};
|
|
736
775
|
|
|
737
776
|
// src/components/ui/Separator/Separator.tsx
|
|
738
|
-
var
|
|
739
|
-
var
|
|
777
|
+
var import_design_system_foundation16 = require("@boostdev/design-system-foundation");
|
|
778
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
740
779
|
function Separator({ orientation = "horizontal", className }) {
|
|
741
780
|
if (orientation === "vertical") {
|
|
742
|
-
return /* @__PURE__ */ (0,
|
|
781
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
743
782
|
"div",
|
|
744
783
|
{
|
|
745
784
|
role: "separator",
|
|
746
785
|
"aria-orientation": "vertical",
|
|
747
|
-
className: (0,
|
|
786
|
+
className: (0, import_design_system_foundation16.cn)(Separator_default.separator, Separator_default["--vertical"], className)
|
|
748
787
|
}
|
|
749
788
|
);
|
|
750
789
|
}
|
|
751
|
-
return /* @__PURE__ */ (0,
|
|
790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("hr", { className: (0, import_design_system_foundation16.cn)(Separator_default.separator, Separator_default["--horizontal"], className) });
|
|
752
791
|
}
|
|
753
792
|
|
|
754
793
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
755
|
-
var
|
|
794
|
+
var import_design_system_foundation17 = require("@boostdev/design-system-foundation");
|
|
756
795
|
|
|
757
796
|
// src/components/ui/Skeleton/Skeleton.module.css
|
|
758
|
-
var Skeleton_default = {"skeleton":"
|
|
797
|
+
var Skeleton_default = {"skeleton":"bds0115Skeleton-skeleton"};
|
|
759
798
|
|
|
760
799
|
// src/components/ui/Skeleton/Skeleton.tsx
|
|
761
|
-
var
|
|
800
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
762
801
|
function Skeleton({ className }) {
|
|
763
|
-
return /* @__PURE__ */ (0,
|
|
802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { "aria-hidden": "true", className: (0, import_design_system_foundation17.cn)(Skeleton_default.skeleton, className) });
|
|
764
803
|
}
|
|
765
804
|
|
|
766
805
|
// src/components/ui/SkipLink/SkipLink.module.css
|
|
767
|
-
var SkipLink_default = {"skipLink":"
|
|
806
|
+
var SkipLink_default = {"skipLink":"bds0115SkipLink-skipLink"};
|
|
768
807
|
|
|
769
808
|
// src/components/ui/SkipLink/SkipLink.tsx
|
|
770
|
-
var
|
|
809
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
771
810
|
function SkipLink({ href = "#main", children = "Skip to main content" }) {
|
|
772
|
-
return /* @__PURE__ */ (0,
|
|
811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("a", { href, className: SkipLink_default.skipLink, children });
|
|
773
812
|
}
|
|
774
813
|
|
|
775
814
|
// src/components/ui/Table/Table.module.css
|
|
776
|
-
var Table_default = {"wrapper":"
|
|
815
|
+
var Table_default = {"wrapper":"bds0115Table-wrapper","table":"bds0115Table-table","caption":"bds0115Table-caption","thead":"bds0115Table-thead","th":"bds0115Table-th","--sortable":"bds0115Table---sortable","sortButton":"bds0115Table-sortButton","sortIcon":"bds0115Table-sortIcon","--sort-active":"bds0115Table---sort-active","--sort-desc":"bds0115Table---sort-desc","tbody":"bds0115Table-tbody","tr":"bds0115Table-tr","td":"bds0115Table-td"};
|
|
777
816
|
|
|
778
817
|
// src/components/ui/Table/Table.tsx
|
|
779
|
-
var
|
|
780
|
-
var
|
|
818
|
+
var import_design_system_foundation18 = require("@boostdev/design-system-foundation");
|
|
819
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
781
820
|
function Table({
|
|
782
821
|
columns,
|
|
783
822
|
rows,
|
|
@@ -796,15 +835,15 @@ function Table({
|
|
|
796
835
|
if (sortKey !== key) return "none";
|
|
797
836
|
return sortDirection === "asc" ? "ascending" : "descending";
|
|
798
837
|
};
|
|
799
|
-
return /* @__PURE__ */ (0,
|
|
800
|
-
caption && /* @__PURE__ */ (0,
|
|
801
|
-
/* @__PURE__ */ (0,
|
|
838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: (0, import_design_system_foundation18.cn)(Table_default.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("table", { className: Table_default.table, children: [
|
|
839
|
+
caption && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("caption", { className: Table_default.caption, children: caption }),
|
|
840
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("thead", { className: Table_default.thead, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("tr", { children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
802
841
|
"th",
|
|
803
842
|
{
|
|
804
843
|
scope: "col",
|
|
805
844
|
"aria-sort": col.sortable ? getAriaSort(col.key) : void 0,
|
|
806
|
-
className: (0,
|
|
807
|
-
children: col.sortable ? /* @__PURE__ */ (0,
|
|
845
|
+
className: (0, import_design_system_foundation18.cn)(Table_default.th, col.sortable ? Table_default["--sortable"] : void 0),
|
|
846
|
+
children: col.sortable ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
808
847
|
"button",
|
|
809
848
|
{
|
|
810
849
|
type: "button",
|
|
@@ -812,11 +851,11 @@ function Table({
|
|
|
812
851
|
onClick: () => handleSort(col.key),
|
|
813
852
|
children: [
|
|
814
853
|
col.header,
|
|
815
|
-
/* @__PURE__ */ (0,
|
|
854
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
816
855
|
"svg",
|
|
817
856
|
{
|
|
818
857
|
"aria-hidden": "true",
|
|
819
|
-
className: (0,
|
|
858
|
+
className: (0, import_design_system_foundation18.cn)(
|
|
820
859
|
Table_default.sortIcon,
|
|
821
860
|
sortKey === col.key ? Table_default["--sort-active"] : void 0,
|
|
822
861
|
sortKey === col.key && sortDirection === "desc" ? Table_default["--sort-desc"] : void 0
|
|
@@ -825,7 +864,7 @@ function Table({
|
|
|
825
864
|
fill: "none",
|
|
826
865
|
stroke: "currentColor",
|
|
827
866
|
strokeWidth: "2",
|
|
828
|
-
children: /* @__PURE__ */ (0,
|
|
867
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 9l6 6 6-6" })
|
|
829
868
|
}
|
|
830
869
|
)
|
|
831
870
|
]
|
|
@@ -834,7 +873,7 @@ function Table({
|
|
|
834
873
|
},
|
|
835
874
|
col.key
|
|
836
875
|
)) }) }),
|
|
837
|
-
/* @__PURE__ */ (0,
|
|
876
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("tbody", { className: Table_default.tbody, children: rows.map((row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("tr", { className: Table_default.tr, children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("td", { className: Table_default.td, children: col.render ? col.render(row) : String(row[col.key] ?? "") }, col.key)) }, rowIndex)) })
|
|
838
877
|
] }) });
|
|
839
878
|
}
|
|
840
879
|
|
|
@@ -842,11 +881,11 @@ function Table({
|
|
|
842
881
|
var import_react4 = require("react");
|
|
843
882
|
|
|
844
883
|
// src/components/ui/Tabs/Tabs.module.css
|
|
845
|
-
var Tabs_default = {"tabs":"
|
|
884
|
+
var Tabs_default = {"tabs":"bds0115Tabs-tabs","tabList":"bds0115Tabs-tabList","tab":"bds0115Tabs-tab","--active":"bds0115Tabs---active","panel":"bds0115Tabs-panel"};
|
|
846
885
|
|
|
847
886
|
// src/components/ui/Tabs/Tabs.tsx
|
|
848
|
-
var
|
|
849
|
-
var
|
|
887
|
+
var import_design_system_foundation19 = require("@boostdev/design-system-foundation");
|
|
888
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
850
889
|
function Tabs({ tabs, defaultTab, className }) {
|
|
851
890
|
const baseId = (0, import_react4.useId)();
|
|
852
891
|
const [activeTab, setActiveTab] = (0, import_react4.useState)(defaultTab ?? tabs[0]?.id);
|
|
@@ -872,12 +911,12 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
872
911
|
focusAt(enabledIndexes[enabledIndexes.length - 1]);
|
|
873
912
|
}
|
|
874
913
|
};
|
|
875
|
-
return /* @__PURE__ */ (0,
|
|
876
|
-
/* @__PURE__ */ (0,
|
|
914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: (0, import_design_system_foundation19.cn)(Tabs_default.tabs, className), children: [
|
|
915
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { role: "tablist", className: Tabs_default.tabList, children: tabs.map((tab, i) => {
|
|
877
916
|
const tabId = `${baseId}-tab-${tab.id}`;
|
|
878
917
|
const panelId = `${baseId}-panel-${tab.id}`;
|
|
879
918
|
const isActive = activeTab === tab.id;
|
|
880
|
-
return /* @__PURE__ */ (0,
|
|
919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
881
920
|
"button",
|
|
882
921
|
{
|
|
883
922
|
ref: (el) => {
|
|
@@ -890,7 +929,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
890
929
|
"aria-controls": panelId,
|
|
891
930
|
tabIndex: isActive ? 0 : -1,
|
|
892
931
|
disabled: tab.disabled,
|
|
893
|
-
className: (0,
|
|
932
|
+
className: (0, import_design_system_foundation19.cn)(Tabs_default.tab, isActive ? Tabs_default["--active"] : void 0),
|
|
894
933
|
onClick: () => setActiveTab(tab.id),
|
|
895
934
|
onKeyDown: (e) => handleKeyDown(e, i),
|
|
896
935
|
children: tab.label
|
|
@@ -902,7 +941,7 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
902
941
|
const tabId = `${baseId}-tab-${tab.id}`;
|
|
903
942
|
const panelId = `${baseId}-panel-${tab.id}`;
|
|
904
943
|
const isActive = activeTab === tab.id;
|
|
905
|
-
return /* @__PURE__ */ (0,
|
|
944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
906
945
|
"div",
|
|
907
946
|
{
|
|
908
947
|
id: panelId,
|
|
@@ -923,11 +962,11 @@ function Tabs({ tabs, defaultTab, className }) {
|
|
|
923
962
|
var import_react5 = require("react");
|
|
924
963
|
|
|
925
964
|
// src/components/ui/Tooltip/Tooltip.module.css
|
|
926
|
-
var Tooltip_default = {"wrapper":"
|
|
965
|
+
var Tooltip_default = {"wrapper":"bds0115Tooltip-wrapper","tooltip":"bds0115Tooltip-tooltip","--placement_top":"bds0115Tooltip---placement_top","--placement_bottom":"bds0115Tooltip---placement_bottom","--placement_left":"bds0115Tooltip---placement_left","--placement_right":"bds0115Tooltip---placement_right"};
|
|
927
966
|
|
|
928
967
|
// src/components/ui/Tooltip/Tooltip.tsx
|
|
929
|
-
var
|
|
930
|
-
var
|
|
968
|
+
var import_design_system_foundation20 = require("@boostdev/design-system-foundation");
|
|
969
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
931
970
|
function Tooltip({
|
|
932
971
|
content,
|
|
933
972
|
placement = "top",
|
|
@@ -938,14 +977,14 @@ function Tooltip({
|
|
|
938
977
|
const trigger = (0, import_react5.isValidElement)(children) ? (0, import_react5.cloneElement)(children, {
|
|
939
978
|
"aria-describedby": tooltipId
|
|
940
979
|
}) : children;
|
|
941
|
-
return /* @__PURE__ */ (0,
|
|
980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: (0, import_design_system_foundation20.cn)(Tooltip_default.wrapper, className), children: [
|
|
942
981
|
trigger,
|
|
943
|
-
/* @__PURE__ */ (0,
|
|
982
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
944
983
|
"span",
|
|
945
984
|
{
|
|
946
985
|
id: tooltipId,
|
|
947
986
|
role: "tooltip",
|
|
948
|
-
className: (0,
|
|
987
|
+
className: (0, import_design_system_foundation20.cn)(Tooltip_default.tooltip, Tooltip_default[`--placement_${placement}`]),
|
|
949
988
|
children: content
|
|
950
989
|
}
|
|
951
990
|
)
|
|
@@ -953,11 +992,11 @@ function Tooltip({
|
|
|
953
992
|
}
|
|
954
993
|
|
|
955
994
|
// src/components/ui/Typography/Typography.module.css
|
|
956
|
-
var Typography_default = {"typography":"
|
|
995
|
+
var Typography_default = {"typography":"bds0115Typography-typography","--h1":"bds0115Typography---h1","--h2":"bds0115Typography---h2","--h3":"bds0115Typography---h3","--body":"bds0115Typography---body","--body_s":"bds0115Typography---body_s"};
|
|
957
996
|
|
|
958
997
|
// src/components/ui/Typography/Typography.tsx
|
|
959
|
-
var
|
|
960
|
-
var
|
|
998
|
+
var import_design_system_foundation21 = require("@boostdev/design-system-foundation");
|
|
999
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
961
1000
|
var variantToElement = {
|
|
962
1001
|
h1: "h1",
|
|
963
1002
|
h2: "h2",
|
|
@@ -967,15 +1006,15 @@ var variantToElement = {
|
|
|
967
1006
|
};
|
|
968
1007
|
function Typography({ variant = "body", component, children, className }) {
|
|
969
1008
|
const Component = component || variantToElement[variant];
|
|
970
|
-
return /* @__PURE__ */ (0,
|
|
1009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Component, { className: (0, import_design_system_foundation21.cn)(Typography_default.typography, Typography_default[`--${variant}`], className), children });
|
|
971
1010
|
}
|
|
972
1011
|
|
|
973
1012
|
// src/components/interaction/Button/Button.module.css
|
|
974
|
-
var Button_default = {"button":"
|
|
1013
|
+
var Button_default = {"button":"bds0115Button-button","--primary":"bds0115Button---primary","--secondary":"bds0115Button---secondary","--size_small":"bds0115Button---size_small","--size_medium":"bds0115Button---size_medium","--size_large":"bds0115Button---size_large","--hasPulse":"bds0115Button---hasPulse","prefix":"bds0115Button-prefix","suffix":"bds0115Button-suffix"};
|
|
975
1014
|
|
|
976
1015
|
// src/components/interaction/Button/Button.tsx
|
|
977
|
-
var
|
|
978
|
-
var
|
|
1016
|
+
var import_design_system_foundation22 = require("@boostdev/design-system-foundation");
|
|
1017
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
979
1018
|
function Button({
|
|
980
1019
|
children,
|
|
981
1020
|
className,
|
|
@@ -992,7 +1031,7 @@ function Button({
|
|
|
992
1031
|
onClick,
|
|
993
1032
|
...rest
|
|
994
1033
|
}) {
|
|
995
|
-
const classNames = (0,
|
|
1034
|
+
const classNames = (0, import_design_system_foundation22.cn)(
|
|
996
1035
|
Button_default.button,
|
|
997
1036
|
Button_default[`--${variant}`],
|
|
998
1037
|
Button_default[`--size_${size}`],
|
|
@@ -1009,13 +1048,13 @@ function Button({
|
|
|
1009
1048
|
const handleButtonClick = (e) => {
|
|
1010
1049
|
onClick?.(e);
|
|
1011
1050
|
};
|
|
1012
|
-
const content = /* @__PURE__ */ (0,
|
|
1013
|
-
Boolean(iconStart) && /* @__PURE__ */ (0,
|
|
1051
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
|
|
1052
|
+
Boolean(iconStart) && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: Button_default.prefix, children: iconStart }),
|
|
1014
1053
|
children,
|
|
1015
|
-
Boolean(iconEnd) && /* @__PURE__ */ (0,
|
|
1054
|
+
Boolean(iconEnd) && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: Button_default.suffix, children: iconEnd })
|
|
1016
1055
|
] });
|
|
1017
1056
|
if (href) {
|
|
1018
|
-
return /* @__PURE__ */ (0,
|
|
1057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1019
1058
|
"a",
|
|
1020
1059
|
{
|
|
1021
1060
|
className: classNames,
|
|
@@ -1030,7 +1069,7 @@ function Button({
|
|
|
1030
1069
|
}
|
|
1031
1070
|
);
|
|
1032
1071
|
}
|
|
1033
|
-
return /* @__PURE__ */ (0,
|
|
1072
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1034
1073
|
"button",
|
|
1035
1074
|
{
|
|
1036
1075
|
type,
|
|
@@ -1047,11 +1086,11 @@ function Button({
|
|
|
1047
1086
|
var import_react6 = require("react");
|
|
1048
1087
|
|
|
1049
1088
|
// src/components/interaction/Command/Command.module.css
|
|
1050
|
-
var Command_default = {"dialog":"
|
|
1089
|
+
var Command_default = {"dialog":"bds0115Command-dialog","palette":"bds0115Command-palette","searchRow":"bds0115Command-searchRow","searchIcon":"bds0115Command-searchIcon","search":"bds0115Command-search","escHint":"bds0115Command-escHint","list":"bds0115Command-list","groupList":"bds0115Command-groupList","group":"bds0115Command-group","item":"bds0115Command-item","itemActive":"bds0115Command-itemActive","itemLabel":"bds0115Command-itemLabel","itemDesc":"bds0115Command-itemDesc","shortcut":"bds0115Command-shortcut","empty":"bds0115Command-empty"};
|
|
1051
1090
|
|
|
1052
1091
|
// src/components/interaction/Command/Command.tsx
|
|
1053
|
-
var
|
|
1054
|
-
var
|
|
1092
|
+
var import_design_system_foundation23 = require("@boostdev/design-system-foundation");
|
|
1093
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1055
1094
|
function Command({
|
|
1056
1095
|
isOpen,
|
|
1057
1096
|
onClose,
|
|
@@ -1118,20 +1157,20 @@ function Command({
|
|
|
1118
1157
|
item.onSelect();
|
|
1119
1158
|
onClose();
|
|
1120
1159
|
};
|
|
1121
|
-
return /* @__PURE__ */ (0,
|
|
1160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1122
1161
|
"dialog",
|
|
1123
1162
|
{
|
|
1124
1163
|
ref: dialogRef,
|
|
1125
|
-
className: (0,
|
|
1164
|
+
className: (0, import_design_system_foundation23.cn)(Command_default.dialog, className),
|
|
1126
1165
|
"aria-label": "Command palette",
|
|
1127
1166
|
onCancel: handleCancel,
|
|
1128
|
-
children: /* @__PURE__ */ (0,
|
|
1129
|
-
/* @__PURE__ */ (0,
|
|
1130
|
-
/* @__PURE__ */ (0,
|
|
1131
|
-
/* @__PURE__ */ (0,
|
|
1132
|
-
/* @__PURE__ */ (0,
|
|
1167
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: Command_default.palette, onKeyDown: handleKeyDown, children: [
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: Command_default.searchRow, children: [
|
|
1169
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("svg", { "aria-hidden": "true", className: Command_default.searchIcon, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
1170
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("circle", { cx: "11", cy: "11", r: "8" }),
|
|
1171
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { strokeLinecap: "round", d: "M21 21l-4.35-4.35" })
|
|
1133
1172
|
] }),
|
|
1134
|
-
/* @__PURE__ */ (0,
|
|
1173
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1135
1174
|
"input",
|
|
1136
1175
|
{
|
|
1137
1176
|
ref: inputRef,
|
|
@@ -1147,32 +1186,32 @@ function Command({
|
|
|
1147
1186
|
onChange: (e) => setQuery(e.target.value)
|
|
1148
1187
|
}
|
|
1149
1188
|
),
|
|
1150
|
-
/* @__PURE__ */ (0,
|
|
1189
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("kbd", { className: Command_default.escHint, children: "Esc" })
|
|
1151
1190
|
] }),
|
|
1152
|
-
filtered.length > 0 ? /* @__PURE__ */ (0,
|
|
1153
|
-
group && /* @__PURE__ */ (0,
|
|
1154
|
-
/* @__PURE__ */ (0,
|
|
1191
|
+
filtered.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("ul", { id: listboxId, role: "listbox", className: Command_default.list, "aria-label": "Commands", children: Array.from(groups.entries()).map(([group, groupItems]) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("li", { role: "presentation", children: [
|
|
1192
|
+
group && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: Command_default.group, role: "presentation", children: group }),
|
|
1193
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("ul", { role: "group", "aria-label": group || void 0, className: Command_default.groupList, children: groupItems.map((item) => {
|
|
1155
1194
|
const flatIndex = filtered.indexOf(item);
|
|
1156
1195
|
const isActive = flatIndex === activeIndex;
|
|
1157
|
-
return /* @__PURE__ */ (0,
|
|
1196
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1158
1197
|
"li",
|
|
1159
1198
|
{
|
|
1160
1199
|
id: `cmd-${item.id}`,
|
|
1161
1200
|
role: "option",
|
|
1162
1201
|
"aria-selected": isActive,
|
|
1163
|
-
className: (0,
|
|
1202
|
+
className: (0, import_design_system_foundation23.cn)(Command_default.item, isActive && Command_default.itemActive),
|
|
1164
1203
|
onPointerDown: (e) => e.preventDefault(),
|
|
1165
1204
|
onClick: () => selectItem(item),
|
|
1166
1205
|
children: [
|
|
1167
|
-
/* @__PURE__ */ (0,
|
|
1168
|
-
item.description && /* @__PURE__ */ (0,
|
|
1169
|
-
item.shortcut && /* @__PURE__ */ (0,
|
|
1206
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: Command_default.itemLabel, children: item.label }),
|
|
1207
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: Command_default.itemDesc, children: item.description }),
|
|
1208
|
+
item.shortcut && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("kbd", { className: Command_default.shortcut, children: item.shortcut })
|
|
1170
1209
|
]
|
|
1171
1210
|
},
|
|
1172
1211
|
item.id
|
|
1173
1212
|
);
|
|
1174
1213
|
}) })
|
|
1175
|
-
] }, group)) }) : /* @__PURE__ */ (0,
|
|
1214
|
+
] }, group)) }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: Command_default.empty, "aria-live": "polite", children: [
|
|
1176
1215
|
"No results for \u201C",
|
|
1177
1216
|
query,
|
|
1178
1217
|
"\u201D"
|
|
@@ -1186,11 +1225,11 @@ function Command({
|
|
|
1186
1225
|
var import_react7 = require("react");
|
|
1187
1226
|
|
|
1188
1227
|
// src/components/interaction/Dialog/Dialog.module.css
|
|
1189
|
-
var Dialog_default = {"dialog":"
|
|
1228
|
+
var Dialog_default = {"dialog":"bds0115Dialog-dialog","dialogContent":"bds0115Dialog-dialogContent","closeForm":"bds0115Dialog-closeForm","closeButton":"bds0115Dialog-closeButton"};
|
|
1190
1229
|
|
|
1191
1230
|
// src/components/interaction/Dialog/Dialog.tsx
|
|
1192
|
-
var
|
|
1193
|
-
var
|
|
1231
|
+
var import_design_system_foundation24 = require("@boostdev/design-system-foundation");
|
|
1232
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1194
1233
|
function Dialog({ children, isOpen = false, className, onClose }) {
|
|
1195
1234
|
const dialogRef = (0, import_react7.useRef)(null);
|
|
1196
1235
|
(0, import_react7.useEffect)(() => {
|
|
@@ -1214,25 +1253,25 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1214
1253
|
e.preventDefault();
|
|
1215
1254
|
onClose?.();
|
|
1216
1255
|
};
|
|
1217
|
-
return /* @__PURE__ */ (0,
|
|
1256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
1218
1257
|
"dialog",
|
|
1219
1258
|
{
|
|
1220
1259
|
ref: dialogRef,
|
|
1221
|
-
className: (0,
|
|
1260
|
+
className: (0, import_design_system_foundation24.cn)(className, Dialog_default.dialog),
|
|
1222
1261
|
onClick: handleBackdropClick,
|
|
1223
1262
|
onCancel: handleCancel,
|
|
1224
1263
|
children: [
|
|
1225
|
-
/* @__PURE__ */ (0,
|
|
1264
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("form", { method: "dialog", className: Dialog_default.closeForm, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1226
1265
|
"button",
|
|
1227
1266
|
{
|
|
1228
1267
|
type: "submit",
|
|
1229
1268
|
className: Dialog_default.closeButton,
|
|
1230
1269
|
onClick: onClose,
|
|
1231
1270
|
"aria-label": "Close dialog",
|
|
1232
|
-
children: /* @__PURE__ */ (0,
|
|
1271
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
1233
1272
|
}
|
|
1234
1273
|
) }),
|
|
1235
|
-
/* @__PURE__ */ (0,
|
|
1274
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: Dialog_default.dialogContent, children })
|
|
1236
1275
|
]
|
|
1237
1276
|
}
|
|
1238
1277
|
);
|
|
@@ -1242,17 +1281,18 @@ function Dialog({ children, isOpen = false, className, onClose }) {
|
|
|
1242
1281
|
var import_react8 = require("react");
|
|
1243
1282
|
|
|
1244
1283
|
// src/components/interaction/Drawer/Drawer.module.css
|
|
1245
|
-
var Drawer_default = {"drawer":"
|
|
1284
|
+
var Drawer_default = {"drawer":"bds0115Drawer-drawer","panel":"bds0115Drawer-panel","--side_right":"bds0115Drawer---side_right","--side_left":"bds0115Drawer---side_left","header":"bds0115Drawer-header","closeButton":"bds0115Drawer-closeButton","body":"bds0115Drawer-body"};
|
|
1246
1285
|
|
|
1247
1286
|
// src/components/interaction/Drawer/Drawer.tsx
|
|
1248
|
-
var
|
|
1249
|
-
var
|
|
1287
|
+
var import_design_system_foundation25 = require("@boostdev/design-system-foundation");
|
|
1288
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1250
1289
|
function Drawer({
|
|
1251
1290
|
isOpen,
|
|
1252
1291
|
onClose,
|
|
1253
1292
|
title,
|
|
1254
1293
|
children,
|
|
1255
1294
|
side = "right",
|
|
1295
|
+
arialLabel = "",
|
|
1256
1296
|
className
|
|
1257
1297
|
}) {
|
|
1258
1298
|
const dialogRef = (0, import_react8.useRef)(null);
|
|
@@ -1272,29 +1312,29 @@ function Drawer({
|
|
|
1272
1312
|
e.preventDefault();
|
|
1273
1313
|
onClose();
|
|
1274
1314
|
};
|
|
1275
|
-
return /* @__PURE__ */ (0,
|
|
1315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1276
1316
|
"dialog",
|
|
1277
1317
|
{
|
|
1278
1318
|
ref: dialogRef,
|
|
1279
|
-
className: (0,
|
|
1280
|
-
"aria-label":
|
|
1319
|
+
className: (0, import_design_system_foundation25.cn)(Drawer_default.drawer, Drawer_default[`--side_${side}`], className),
|
|
1320
|
+
"aria-label": arialLabel,
|
|
1281
1321
|
onClick: handleClick,
|
|
1282
1322
|
onCancel: handleCancel,
|
|
1283
|
-
children: /* @__PURE__ */ (0,
|
|
1284
|
-
/* @__PURE__ */ (0,
|
|
1285
|
-
|
|
1286
|
-
/* @__PURE__ */ (0,
|
|
1323
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: Drawer_default.panel, children: [
|
|
1324
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: Drawer_default.header, children: [
|
|
1325
|
+
!!title && title,
|
|
1326
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1287
1327
|
"button",
|
|
1288
1328
|
{
|
|
1289
1329
|
type: "button",
|
|
1290
1330
|
className: Drawer_default.closeButton,
|
|
1291
1331
|
onClick: onClose,
|
|
1292
1332
|
"aria-label": "Close drawer",
|
|
1293
|
-
children: /* @__PURE__ */ (0,
|
|
1333
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) })
|
|
1294
1334
|
}
|
|
1295
1335
|
)
|
|
1296
1336
|
] }),
|
|
1297
|
-
/* @__PURE__ */ (0,
|
|
1337
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: Drawer_default.body, children })
|
|
1298
1338
|
] })
|
|
1299
1339
|
}
|
|
1300
1340
|
);
|
|
@@ -1304,11 +1344,11 @@ function Drawer({
|
|
|
1304
1344
|
var import_react9 = require("react");
|
|
1305
1345
|
|
|
1306
1346
|
// src/components/interaction/DropdownMenu/DropdownMenu.module.css
|
|
1307
|
-
var DropdownMenu_default = {"wrapper":"
|
|
1347
|
+
var DropdownMenu_default = {"wrapper":"bds0115DropdownMenu-wrapper","menu":"bds0115DropdownMenu-menu","--placement_bottom-start":"bds0115DropdownMenu---placement_bottom-start","--placement_bottom-end":"bds0115DropdownMenu---placement_bottom-end","separator":"bds0115DropdownMenu-separator","item":"bds0115DropdownMenu-item","icon":"bds0115DropdownMenu-icon"};
|
|
1308
1348
|
|
|
1309
1349
|
// src/components/interaction/DropdownMenu/DropdownMenu.tsx
|
|
1310
|
-
var
|
|
1311
|
-
var
|
|
1350
|
+
var import_design_system_foundation26 = require("@boostdev/design-system-foundation");
|
|
1351
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1312
1352
|
function DropdownMenu({
|
|
1313
1353
|
trigger,
|
|
1314
1354
|
items,
|
|
@@ -1376,17 +1416,17 @@ function DropdownMenu({
|
|
|
1376
1416
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1377
1417
|
}
|
|
1378
1418
|
}) : trigger;
|
|
1379
|
-
return /* @__PURE__ */ (0,
|
|
1419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref: containerRef, className: (0, import_design_system_foundation26.cn)(DropdownMenu_default.wrapper, className), children: [
|
|
1380
1420
|
triggerEl,
|
|
1381
|
-
isOpen && /* @__PURE__ */ (0,
|
|
1421
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1382
1422
|
"ul",
|
|
1383
1423
|
{
|
|
1384
1424
|
id: menuId,
|
|
1385
1425
|
role: "menu",
|
|
1386
|
-
className: (0,
|
|
1387
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
1388
|
-
item.separator && /* @__PURE__ */ (0,
|
|
1389
|
-
/* @__PURE__ */ (0,
|
|
1426
|
+
className: (0, import_design_system_foundation26.cn)(DropdownMenu_default.menu, DropdownMenu_default[`--placement_${placement}`]),
|
|
1427
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("li", { role: "presentation", children: [
|
|
1428
|
+
item.separator && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("hr", { className: DropdownMenu_default.separator, role: "separator" }),
|
|
1429
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1390
1430
|
"button",
|
|
1391
1431
|
{
|
|
1392
1432
|
ref: (el) => {
|
|
@@ -1402,7 +1442,7 @@ function DropdownMenu({
|
|
|
1402
1442
|
},
|
|
1403
1443
|
onKeyDown: (e) => handleItemKeyDown(e, index),
|
|
1404
1444
|
children: [
|
|
1405
|
-
item.icon && /* @__PURE__ */ (0,
|
|
1445
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: DropdownMenu_default.icon, "aria-hidden": "true", children: item.icon }),
|
|
1406
1446
|
item.label
|
|
1407
1447
|
]
|
|
1408
1448
|
}
|
|
@@ -1417,11 +1457,11 @@ function DropdownMenu({
|
|
|
1417
1457
|
var import_react10 = require("react");
|
|
1418
1458
|
|
|
1419
1459
|
// src/components/interaction/Popover/Popover.module.css
|
|
1420
|
-
var Popover_default = {"wrapper":"
|
|
1460
|
+
var Popover_default = {"wrapper":"bds0115Popover-wrapper","panel":"bds0115Popover-panel","--placement_bottom":"bds0115Popover---placement_bottom","--placement_top":"bds0115Popover---placement_top","--placement_right":"bds0115Popover---placement_right","--placement_left":"bds0115Popover---placement_left"};
|
|
1421
1461
|
|
|
1422
1462
|
// src/components/interaction/Popover/Popover.tsx
|
|
1423
|
-
var
|
|
1424
|
-
var
|
|
1463
|
+
var import_design_system_foundation27 = require("@boostdev/design-system-foundation");
|
|
1464
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1425
1465
|
function Popover({
|
|
1426
1466
|
children,
|
|
1427
1467
|
content,
|
|
@@ -1457,15 +1497,15 @@ function Popover({
|
|
|
1457
1497
|
if (typeof existingOnClick === "function") existingOnClick(e);
|
|
1458
1498
|
}
|
|
1459
1499
|
}) : children;
|
|
1460
|
-
return /* @__PURE__ */ (0,
|
|
1500
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { ref: containerRef, className: (0, import_design_system_foundation27.cn)(Popover_default.wrapper, className), children: [
|
|
1461
1501
|
trigger,
|
|
1462
|
-
isOpen && /* @__PURE__ */ (0,
|
|
1502
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1463
1503
|
"div",
|
|
1464
1504
|
{
|
|
1465
1505
|
id: panelId,
|
|
1466
1506
|
role: "dialog",
|
|
1467
1507
|
"aria-modal": "false",
|
|
1468
|
-
className: (0,
|
|
1508
|
+
className: (0, import_design_system_foundation27.cn)(Popover_default.panel, Popover_default[`--placement_${placement}`]),
|
|
1469
1509
|
children: content
|
|
1470
1510
|
}
|
|
1471
1511
|
)
|
|
@@ -1473,26 +1513,26 @@ function Popover({
|
|
|
1473
1513
|
}
|
|
1474
1514
|
|
|
1475
1515
|
// src/components/interaction/Rating/Rating.module.css
|
|
1476
|
-
var Rating_default = {"rating":"
|
|
1516
|
+
var Rating_default = {"rating":"bds0115Rating-rating","star":"bds0115Rating-star","--filled":"bds0115Rating---filled"};
|
|
1477
1517
|
|
|
1478
1518
|
// src/components/interaction/Rating/Rating.tsx
|
|
1479
|
-
var
|
|
1480
|
-
var
|
|
1519
|
+
var import_design_system_foundation28 = require("@boostdev/design-system-foundation");
|
|
1520
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1481
1521
|
function Rating({ value, max = 5, className }) {
|
|
1482
|
-
return /* @__PURE__ */ (0,
|
|
1522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1483
1523
|
"div",
|
|
1484
1524
|
{
|
|
1485
|
-
className: (0,
|
|
1525
|
+
className: (0, import_design_system_foundation28.cn)(Rating_default.rating, className),
|
|
1486
1526
|
role: "img",
|
|
1487
1527
|
"aria-label": `${value} out of ${max} stars`,
|
|
1488
|
-
children: Array.from({ length: max }).map((_, i) => /* @__PURE__ */ (0,
|
|
1528
|
+
children: Array.from({ length: max }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1489
1529
|
"svg",
|
|
1490
1530
|
{
|
|
1491
1531
|
"aria-hidden": "true",
|
|
1492
|
-
className: (0,
|
|
1532
|
+
className: (0, import_design_system_foundation28.cn)(Rating_default.star, i < value && Rating_default["--filled"]),
|
|
1493
1533
|
fill: "currentColor",
|
|
1494
1534
|
viewBox: "0 0 24 24",
|
|
1495
|
-
children: /* @__PURE__ */ (0,
|
|
1535
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" })
|
|
1496
1536
|
},
|
|
1497
1537
|
i
|
|
1498
1538
|
))
|
|
@@ -1504,11 +1544,11 @@ function Rating({ value, max = 5, className }) {
|
|
|
1504
1544
|
var import_react11 = require("react");
|
|
1505
1545
|
|
|
1506
1546
|
// src/components/interaction/Toast/Toast.module.css
|
|
1507
|
-
var Toast_default = {"toastContainer":"
|
|
1547
|
+
var Toast_default = {"toastContainer":"bds0115Toast-toastContainer","toast":"bds0115Toast-toast","--variant_success":"bds0115Toast---variant_success","--variant_warning":"bds0115Toast---variant_warning","--variant_info":"bds0115Toast---variant_info","--variant_error":"bds0115Toast---variant_error","message":"bds0115Toast-message","closeButton":"bds0115Toast-closeButton"};
|
|
1508
1548
|
|
|
1509
1549
|
// src/components/interaction/Toast/Toast.tsx
|
|
1510
|
-
var
|
|
1511
|
-
var
|
|
1550
|
+
var import_design_system_foundation29 = require("@boostdev/design-system-foundation");
|
|
1551
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1512
1552
|
var ToastContext = (0, import_react11.createContext)(void 0);
|
|
1513
1553
|
function ToastProvider({ children }) {
|
|
1514
1554
|
const [toasts, setToasts] = (0, import_react11.useState)([]);
|
|
@@ -1520,9 +1560,9 @@ function ToastProvider({ children }) {
|
|
|
1520
1560
|
setToasts((prev) => prev.filter((toast) => toast.id !== id));
|
|
1521
1561
|
}, []);
|
|
1522
1562
|
const value = (0, import_react11.useMemo)(() => ({ showToast }), [showToast]);
|
|
1523
|
-
return /* @__PURE__ */ (0,
|
|
1563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ToastContext.Provider, { value, children: [
|
|
1524
1564
|
children,
|
|
1525
|
-
/* @__PURE__ */ (0,
|
|
1565
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: Toast_default.toastContainer, children: toasts.map((toast) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1526
1566
|
ToastItem,
|
|
1527
1567
|
{
|
|
1528
1568
|
toast,
|
|
@@ -1537,9 +1577,9 @@ function ToastItem({ toast, onRemove }) {
|
|
|
1537
1577
|
const timer = setTimeout(onRemove, 5e3);
|
|
1538
1578
|
return () => clearTimeout(timer);
|
|
1539
1579
|
}, [onRemove]);
|
|
1540
|
-
return /* @__PURE__ */ (0,
|
|
1541
|
-
/* @__PURE__ */ (0,
|
|
1542
|
-
/* @__PURE__ */ (0,
|
|
1580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: (0, import_design_system_foundation29.cn)(Toast_default.toast, Toast_default[`--variant_${toast.variant}`]), role: "status", children: [
|
|
1581
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: Toast_default.message, children: toast.message }),
|
|
1582
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("button", { type: "button", className: Toast_default.closeButton, onClick: onRemove, "aria-label": "Dismiss", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M18 6L6 18M6 6l12 12" }) }) })
|
|
1543
1583
|
] });
|
|
1544
1584
|
}
|
|
1545
1585
|
function useToast() {
|
|
@@ -1554,50 +1594,50 @@ function useToast() {
|
|
|
1554
1594
|
var import_react12 = require("react");
|
|
1555
1595
|
|
|
1556
1596
|
// src/components/interaction/form/Checkbox/Checkbox.module.css
|
|
1557
|
-
var Checkbox_default = {"checkboxGroup":"
|
|
1597
|
+
var Checkbox_default = {"checkboxGroup":"bds0115Checkbox-checkboxGroup","inputWrapper":"bds0115Checkbox-inputWrapper","checkbox":"bds0115Checkbox-checkbox","checkboxError":"bds0115Checkbox-checkboxError"};
|
|
1558
1598
|
|
|
1559
1599
|
// src/components/interaction/form/atoms/Message.module.css
|
|
1560
|
-
var Message_default = {"error":"
|
|
1600
|
+
var Message_default = {"error":"bds0115Message-error","hint":"bds0115Message-hint"};
|
|
1561
1601
|
|
|
1562
1602
|
// src/components/interaction/form/atoms/Message.tsx
|
|
1563
|
-
var
|
|
1603
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1564
1604
|
var Message = ({ message, type, inputId }) => {
|
|
1565
1605
|
if (!message) return null;
|
|
1566
|
-
return /* @__PURE__ */ (0,
|
|
1606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { id: inputId + type, className: Message_default[type], children: message });
|
|
1567
1607
|
};
|
|
1568
1608
|
|
|
1569
1609
|
// src/components/interaction/form/atoms/Label.module.css
|
|
1570
|
-
var Label_default = {"label":"
|
|
1610
|
+
var Label_default = {"label":"bds0115Label-label"};
|
|
1571
1611
|
|
|
1572
1612
|
// src/components/interaction/form/atoms/Label.tsx
|
|
1573
|
-
var
|
|
1613
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1574
1614
|
var Label = ({ label, id }) => {
|
|
1575
|
-
return /* @__PURE__ */ (0,
|
|
1615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { htmlFor: id, className: Label_default.label, children: label });
|
|
1576
1616
|
};
|
|
1577
1617
|
|
|
1578
1618
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1579
|
-
var
|
|
1619
|
+
var import_design_system_foundation31 = require("@boostdev/design-system-foundation");
|
|
1580
1620
|
|
|
1581
1621
|
// src/components/interaction/form/atoms/InputContainer.module.css
|
|
1582
|
-
var InputContainer_default = {"container":"
|
|
1622
|
+
var InputContainer_default = {"container":"bds0115InputContainer-container"};
|
|
1583
1623
|
|
|
1584
1624
|
// src/components/interaction/form/atoms/InputContainer.tsx
|
|
1585
|
-
var
|
|
1586
|
-
var
|
|
1625
|
+
var import_design_system_foundation30 = require("@boostdev/design-system-foundation");
|
|
1626
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1587
1627
|
var InputContainer = ({ children, className }) => {
|
|
1588
|
-
return /* @__PURE__ */ (0,
|
|
1628
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: (0, import_design_system_foundation30.cn)(InputContainer_default.container, className), children });
|
|
1589
1629
|
};
|
|
1590
1630
|
|
|
1591
1631
|
// src/components/interaction/form/Checkbox/Checkbox.tsx
|
|
1592
|
-
var
|
|
1632
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1593
1633
|
function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
1594
1634
|
const id = name + (0, import_react12.useId)();
|
|
1595
1635
|
const hintId = id + "hint";
|
|
1596
1636
|
const errorId = id + "error";
|
|
1597
1637
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1598
|
-
return /* @__PURE__ */ (0,
|
|
1599
|
-
/* @__PURE__ */ (0,
|
|
1600
|
-
/* @__PURE__ */ (0,
|
|
1638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(InputContainer, { className: (0, import_design_system_foundation31.cn)(Checkbox_default.checkboxGroup, className), children: [
|
|
1639
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: Checkbox_default.inputWrapper, children: [
|
|
1640
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1601
1641
|
"input",
|
|
1602
1642
|
{
|
|
1603
1643
|
"aria-describedby": describedBy,
|
|
@@ -1605,14 +1645,14 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1605
1645
|
type: "checkbox",
|
|
1606
1646
|
id,
|
|
1607
1647
|
name,
|
|
1608
|
-
className: (0,
|
|
1648
|
+
className: (0, import_design_system_foundation31.cn)(Checkbox_default.checkbox, error && Checkbox_default.checkboxError),
|
|
1609
1649
|
...props
|
|
1610
1650
|
}
|
|
1611
1651
|
),
|
|
1612
|
-
/* @__PURE__ */ (0,
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Label, { id, label })
|
|
1613
1653
|
] }),
|
|
1614
|
-
/* @__PURE__ */ (0,
|
|
1615
|
-
/* @__PURE__ */ (0,
|
|
1654
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Message, { inputId: id, type: "error", message: error }),
|
|
1655
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Message, { inputId: id, type: "hint", message: hint })
|
|
1616
1656
|
] });
|
|
1617
1657
|
}
|
|
1618
1658
|
|
|
@@ -1620,11 +1660,11 @@ function Checkbox({ label, name, error, hint, className, ...props }) {
|
|
|
1620
1660
|
var import_react13 = require("react");
|
|
1621
1661
|
|
|
1622
1662
|
// src/components/interaction/form/Combobox/Combobox.module.css
|
|
1623
|
-
var Combobox_default = {"formGroup":"
|
|
1663
|
+
var Combobox_default = {"formGroup":"bds0115Combobox-formGroup","inputWrapper":"bds0115Combobox-inputWrapper","input":"bds0115Combobox-input","inputError":"bds0115Combobox-inputError","chevron":"bds0115Combobox-chevron","listbox":"bds0115Combobox-listbox","option":"bds0115Combobox-option","--highlighted":"bds0115Combobox---highlighted","--selected":"bds0115Combobox---selected","--disabled":"bds0115Combobox---disabled"};
|
|
1624
1664
|
|
|
1625
1665
|
// src/components/interaction/form/Combobox/Combobox.tsx
|
|
1626
|
-
var
|
|
1627
|
-
var
|
|
1666
|
+
var import_design_system_foundation32 = require("@boostdev/design-system-foundation");
|
|
1667
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1628
1668
|
function Combobox({
|
|
1629
1669
|
label,
|
|
1630
1670
|
name,
|
|
@@ -1702,10 +1742,10 @@ function Combobox({
|
|
|
1702
1742
|
setIsOpen(false);
|
|
1703
1743
|
}
|
|
1704
1744
|
};
|
|
1705
|
-
return /* @__PURE__ */ (0,
|
|
1706
|
-
/* @__PURE__ */ (0,
|
|
1707
|
-
/* @__PURE__ */ (0,
|
|
1708
|
-
/* @__PURE__ */ (0,
|
|
1745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(InputContainer, { className: (0, import_design_system_foundation32.cn)(Combobox_default.formGroup, className), children: [
|
|
1746
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Label, { id, label }),
|
|
1747
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { ref: containerRef, className: Combobox_default.inputWrapper, children: [
|
|
1748
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1709
1749
|
"input",
|
|
1710
1750
|
{
|
|
1711
1751
|
ref: inputRef,
|
|
@@ -1724,28 +1764,28 @@ function Combobox({
|
|
|
1724
1764
|
placeholder,
|
|
1725
1765
|
value: inputValue,
|
|
1726
1766
|
disabled,
|
|
1727
|
-
className: (0,
|
|
1767
|
+
className: (0, import_design_system_foundation32.cn)(Combobox_default.input, error ? Combobox_default.inputError : void 0),
|
|
1728
1768
|
onChange: handleInputChange,
|
|
1729
1769
|
onKeyDown: handleKeyDown,
|
|
1730
1770
|
onFocus: () => setIsOpen(true)
|
|
1731
1771
|
}
|
|
1732
1772
|
),
|
|
1733
|
-
/* @__PURE__ */ (0,
|
|
1734
|
-
isOpen && filtered.length > 0 && /* @__PURE__ */ (0,
|
|
1773
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: Combobox_default.chevron, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 9l6 6 6-6" }) }) }),
|
|
1774
|
+
isOpen && filtered.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1735
1775
|
"ul",
|
|
1736
1776
|
{
|
|
1737
1777
|
id: listboxId,
|
|
1738
1778
|
role: "listbox",
|
|
1739
1779
|
"aria-label": String(label),
|
|
1740
1780
|
className: Combobox_default.listbox,
|
|
1741
|
-
children: filtered.map((option, index) => /* @__PURE__ */ (0,
|
|
1781
|
+
children: filtered.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
1742
1782
|
"li",
|
|
1743
1783
|
{
|
|
1744
1784
|
id: getOptionId(index),
|
|
1745
1785
|
role: "option",
|
|
1746
1786
|
"aria-selected": option.value === value,
|
|
1747
1787
|
"aria-disabled": option.disabled,
|
|
1748
|
-
className: (0,
|
|
1788
|
+
className: (0, import_design_system_foundation32.cn)(
|
|
1749
1789
|
Combobox_default.option,
|
|
1750
1790
|
index === highlightedIndex ? Combobox_default["--highlighted"] : void 0,
|
|
1751
1791
|
option.value === value ? Combobox_default["--selected"] : void 0,
|
|
@@ -1762,8 +1802,8 @@ function Combobox({
|
|
|
1762
1802
|
}
|
|
1763
1803
|
)
|
|
1764
1804
|
] }),
|
|
1765
|
-
/* @__PURE__ */ (0,
|
|
1766
|
-
/* @__PURE__ */ (0,
|
|
1805
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Message, { inputId: id, type: "error", message: error }),
|
|
1806
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Message, { inputId: id, type: "hint", message: hint })
|
|
1767
1807
|
] });
|
|
1768
1808
|
}
|
|
1769
1809
|
|
|
@@ -1771,11 +1811,11 @@ function Combobox({
|
|
|
1771
1811
|
var import_react14 = require("react");
|
|
1772
1812
|
|
|
1773
1813
|
// src/components/interaction/form/FileInput/FileInput.module.css
|
|
1774
|
-
var FileInput_default = {"formGroup":"
|
|
1814
|
+
var FileInput_default = {"formGroup":"bds0115FileInput-formGroup","dropZone":"bds0115FileInput-dropZone","isDragging":"bds0115FileInput-isDragging","hasError":"bds0115FileInput-hasError","isDisabled":"bds0115FileInput-isDisabled","icon":"bds0115FileInput-icon","prompt":"bds0115FileInput-prompt","acceptHint":"bds0115FileInput-acceptHint","hiddenInput":"bds0115FileInput-hiddenInput"};
|
|
1775
1815
|
|
|
1776
1816
|
// src/components/interaction/form/FileInput/FileInput.tsx
|
|
1777
|
-
var
|
|
1778
|
-
var
|
|
1817
|
+
var import_design_system_foundation33 = require("@boostdev/design-system-foundation");
|
|
1818
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
1779
1819
|
function FileInput({
|
|
1780
1820
|
label,
|
|
1781
1821
|
name,
|
|
@@ -1823,24 +1863,24 @@ function FileInput({
|
|
|
1823
1863
|
if (!disabled) setIsDragging(true);
|
|
1824
1864
|
};
|
|
1825
1865
|
const handleDragLeave = () => setIsDragging(false);
|
|
1826
|
-
return /* @__PURE__ */ (0,
|
|
1827
|
-
/* @__PURE__ */ (0,
|
|
1828
|
-
/* @__PURE__ */ (0,
|
|
1866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(InputContainer, { className: (0, import_design_system_foundation33.cn)(FileInput_default.formGroup, className), children: [
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Label, { id: uid, label }),
|
|
1868
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
1829
1869
|
"label",
|
|
1830
1870
|
{
|
|
1831
1871
|
htmlFor: uid,
|
|
1832
|
-
className: (0,
|
|
1872
|
+
className: (0, import_design_system_foundation33.cn)(FileInput_default.dropZone, isDragging && FileInput_default.isDragging, error && FileInput_default.hasError, disabled && FileInput_default.isDisabled),
|
|
1833
1873
|
onDrop: handleDrop,
|
|
1834
1874
|
onDragOver: handleDragOver,
|
|
1835
1875
|
onDragLeave: handleDragLeave,
|
|
1836
1876
|
children: [
|
|
1837
|
-
/* @__PURE__ */ (0,
|
|
1838
|
-
/* @__PURE__ */ (0,
|
|
1839
|
-
/* @__PURE__ */ (0,
|
|
1877
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("svg", { "aria-hidden": "true", className: FileInput_default.icon, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5" }) }),
|
|
1878
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: FileInput_default.prompt, children: fileNames.length > 0 ? fileNames.join(", ") : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
|
|
1879
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("strong", { children: "Click to upload" }),
|
|
1840
1880
|
" or drag and drop"
|
|
1841
1881
|
] }) }),
|
|
1842
|
-
accept && /* @__PURE__ */ (0,
|
|
1843
|
-
/* @__PURE__ */ (0,
|
|
1882
|
+
accept && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: FileInput_default.acceptHint, children: accept }),
|
|
1883
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
1844
1884
|
"input",
|
|
1845
1885
|
{
|
|
1846
1886
|
ref: inputRef,
|
|
@@ -1859,8 +1899,8 @@ function FileInput({
|
|
|
1859
1899
|
]
|
|
1860
1900
|
}
|
|
1861
1901
|
),
|
|
1862
|
-
/* @__PURE__ */ (0,
|
|
1863
|
-
/* @__PURE__ */ (0,
|
|
1902
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Message, { inputId: uid, type: "error", message: error }),
|
|
1903
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Message, { inputId: uid, type: "hint", message: hint })
|
|
1864
1904
|
] });
|
|
1865
1905
|
}
|
|
1866
1906
|
|
|
@@ -1868,11 +1908,11 @@ function FileInput({
|
|
|
1868
1908
|
var import_react15 = require("react");
|
|
1869
1909
|
|
|
1870
1910
|
// src/components/interaction/form/FormInput/FormInput.module.css
|
|
1871
|
-
var FormInput_default = {"formGroup":"
|
|
1911
|
+
var FormInput_default = {"formGroup":"bds0115FormInput-formGroup","input":"bds0115FormInput-input","inputError":"bds0115FormInput-inputError"};
|
|
1872
1912
|
|
|
1873
1913
|
// src/components/interaction/form/FormInput/FormInput.tsx
|
|
1874
|
-
var
|
|
1875
|
-
var
|
|
1914
|
+
var import_design_system_foundation34 = require("@boostdev/design-system-foundation");
|
|
1915
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
1876
1916
|
function FormInput({
|
|
1877
1917
|
label,
|
|
1878
1918
|
name,
|
|
@@ -1886,9 +1926,9 @@ function FormInput({
|
|
|
1886
1926
|
const hintId = id + "hint";
|
|
1887
1927
|
const errorId = id + "error";
|
|
1888
1928
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
1889
|
-
return /* @__PURE__ */ (0,
|
|
1890
|
-
/* @__PURE__ */ (0,
|
|
1891
|
-
/* @__PURE__ */ (0,
|
|
1929
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(InputContainer, { className: (0, import_design_system_foundation34.cn)(FormInput_default.formGroup, className), children: [
|
|
1930
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Label, { id, label }),
|
|
1931
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
1892
1932
|
"input",
|
|
1893
1933
|
{
|
|
1894
1934
|
"aria-invalid": !!error,
|
|
@@ -1896,12 +1936,12 @@ function FormInput({
|
|
|
1896
1936
|
"aria-label": ariaLabel,
|
|
1897
1937
|
id,
|
|
1898
1938
|
name,
|
|
1899
|
-
className: (0,
|
|
1939
|
+
className: (0, import_design_system_foundation34.cn)(FormInput_default.input, error && FormInput_default.inputError),
|
|
1900
1940
|
...props
|
|
1901
1941
|
}
|
|
1902
1942
|
),
|
|
1903
|
-
/* @__PURE__ */ (0,
|
|
1904
|
-
/* @__PURE__ */ (0,
|
|
1943
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Message, { inputId: id, type: "error", message: error }),
|
|
1944
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Message, { inputId: id, type: "hint", message: hint })
|
|
1905
1945
|
] });
|
|
1906
1946
|
}
|
|
1907
1947
|
|
|
@@ -1909,11 +1949,11 @@ function FormInput({
|
|
|
1909
1949
|
var import_react16 = require("react");
|
|
1910
1950
|
|
|
1911
1951
|
// src/components/interaction/form/NumberInput/NumberInput.module.css
|
|
1912
|
-
var NumberInput_default = {"formGroup":"
|
|
1952
|
+
var NumberInput_default = {"formGroup":"bds0115NumberInput-formGroup","inputRow":"bds0115NumberInput-inputRow","input":"bds0115NumberInput-input","inputError":"bds0115NumberInput-inputError","stepper":"bds0115NumberInput-stepper"};
|
|
1913
1953
|
|
|
1914
1954
|
// src/components/interaction/form/NumberInput/NumberInput.tsx
|
|
1915
|
-
var
|
|
1916
|
-
var
|
|
1955
|
+
var import_design_system_foundation35 = require("@boostdev/design-system-foundation");
|
|
1956
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
1917
1957
|
function NumberInput({
|
|
1918
1958
|
label,
|
|
1919
1959
|
name,
|
|
@@ -1945,10 +1985,10 @@ function NumberInput({
|
|
|
1945
1985
|
if (!isControlled) setInternalValue(next);
|
|
1946
1986
|
onChange?.(next);
|
|
1947
1987
|
};
|
|
1948
|
-
return /* @__PURE__ */ (0,
|
|
1949
|
-
/* @__PURE__ */ (0,
|
|
1950
|
-
/* @__PURE__ */ (0,
|
|
1951
|
-
/* @__PURE__ */ (0,
|
|
1988
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(InputContainer, { className: (0, import_design_system_foundation35.cn)(NumberInput_default.formGroup, className), children: [
|
|
1989
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Label, { id: uid, label }),
|
|
1990
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: NumberInput_default.inputRow, children: [
|
|
1991
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1952
1992
|
"button",
|
|
1953
1993
|
{
|
|
1954
1994
|
type: "button",
|
|
@@ -1957,10 +1997,10 @@ function NumberInput({
|
|
|
1957
1997
|
disabled: disabled || min !== void 0 && currentValue <= min,
|
|
1958
1998
|
onClick: () => adjust(-step),
|
|
1959
1999
|
tabIndex: -1,
|
|
1960
|
-
children: /* @__PURE__ */ (0,
|
|
2000
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M5 12h14" }) })
|
|
1961
2001
|
}
|
|
1962
2002
|
),
|
|
1963
|
-
/* @__PURE__ */ (0,
|
|
2003
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1964
2004
|
"input",
|
|
1965
2005
|
{
|
|
1966
2006
|
ref: inputRef,
|
|
@@ -1974,7 +2014,7 @@ function NumberInput({
|
|
|
1974
2014
|
disabled,
|
|
1975
2015
|
"aria-invalid": !!error,
|
|
1976
2016
|
"aria-describedby": describedBy,
|
|
1977
|
-
className: (0,
|
|
2017
|
+
className: (0, import_design_system_foundation35.cn)(NumberInput_default.input, error ? NumberInput_default.inputError : void 0),
|
|
1978
2018
|
onChange: (e) => {
|
|
1979
2019
|
const v = parseFloat(e.target.value);
|
|
1980
2020
|
if (!isControlled) setInternalValue(isNaN(v) ? 0 : v);
|
|
@@ -1982,7 +2022,7 @@ function NumberInput({
|
|
|
1982
2022
|
}
|
|
1983
2023
|
}
|
|
1984
2024
|
),
|
|
1985
|
-
/* @__PURE__ */ (0,
|
|
2025
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
1986
2026
|
"button",
|
|
1987
2027
|
{
|
|
1988
2028
|
type: "button",
|
|
@@ -1991,12 +2031,12 @@ function NumberInput({
|
|
|
1991
2031
|
disabled: disabled || max !== void 0 && currentValue >= max,
|
|
1992
2032
|
onClick: () => adjust(step),
|
|
1993
2033
|
tabIndex: -1,
|
|
1994
|
-
children: /* @__PURE__ */ (0,
|
|
2034
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 5v14M5 12h14" }) })
|
|
1995
2035
|
}
|
|
1996
2036
|
)
|
|
1997
2037
|
] }),
|
|
1998
|
-
/* @__PURE__ */ (0,
|
|
1999
|
-
/* @__PURE__ */ (0,
|
|
2038
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Message, { inputId: uid, type: "error", message: error }),
|
|
2039
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Message, { inputId: uid, type: "hint", message: hint })
|
|
2000
2040
|
] });
|
|
2001
2041
|
}
|
|
2002
2042
|
|
|
@@ -2004,19 +2044,19 @@ function NumberInput({
|
|
|
2004
2044
|
var import_react17 = require("react");
|
|
2005
2045
|
|
|
2006
2046
|
// src/components/interaction/form/Radio/Radio.module.css
|
|
2007
|
-
var Radio_default = {"radioGroup":"
|
|
2047
|
+
var Radio_default = {"radioGroup":"bds0115Radio-radioGroup","inputWrapper":"bds0115Radio-inputWrapper","textWrapper":"bds0115Radio-textWrapper","description":"bds0115Radio-description","radio":"bds0115Radio-radio","radioError":"bds0115Radio-radioError"};
|
|
2008
2048
|
|
|
2009
2049
|
// src/components/interaction/form/Radio/Radio.tsx
|
|
2010
|
-
var
|
|
2011
|
-
var
|
|
2012
|
-
function Radio({ label, name, error, hint, className, ...props }) {
|
|
2050
|
+
var import_design_system_foundation36 = require("@boostdev/design-system-foundation");
|
|
2051
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2052
|
+
function Radio({ label, name, description, error, hint, className, ...props }) {
|
|
2013
2053
|
const id = name + (0, import_react17.useId)();
|
|
2014
2054
|
const hintId = id + "hint";
|
|
2015
2055
|
const errorId = id + "error";
|
|
2016
2056
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2017
|
-
return /* @__PURE__ */ (0,
|
|
2018
|
-
/* @__PURE__ */ (0,
|
|
2019
|
-
/* @__PURE__ */ (0,
|
|
2057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(InputContainer, { className: (0, import_design_system_foundation36.cn)(Radio_default.radioGroup, className), children: [
|
|
2058
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: Radio_default.inputWrapper, children: [
|
|
2059
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2020
2060
|
"input",
|
|
2021
2061
|
{
|
|
2022
2062
|
"aria-describedby": describedBy,
|
|
@@ -2024,14 +2064,17 @@ function Radio({ label, name, error, hint, className, ...props }) {
|
|
|
2024
2064
|
type: "radio",
|
|
2025
2065
|
id,
|
|
2026
2066
|
name,
|
|
2027
|
-
className: (0,
|
|
2067
|
+
className: (0, import_design_system_foundation36.cn)(Radio_default.radio, error && Radio_default.radioError),
|
|
2028
2068
|
...props
|
|
2029
2069
|
}
|
|
2030
2070
|
),
|
|
2031
|
-
/* @__PURE__ */ (0,
|
|
2071
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: Radio_default.textWrapper, children: [
|
|
2072
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Label, { id, label }),
|
|
2073
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: Radio_default.description, children: description })
|
|
2074
|
+
] })
|
|
2032
2075
|
] }),
|
|
2033
|
-
/* @__PURE__ */ (0,
|
|
2034
|
-
/* @__PURE__ */ (0,
|
|
2076
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Message, { inputId: id, type: "error", message: error }),
|
|
2077
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Message, { inputId: id, type: "hint", message: hint })
|
|
2035
2078
|
] });
|
|
2036
2079
|
}
|
|
2037
2080
|
|
|
@@ -2039,11 +2082,11 @@ function Radio({ label, name, error, hint, className, ...props }) {
|
|
|
2039
2082
|
var import_react18 = require("react");
|
|
2040
2083
|
|
|
2041
2084
|
// src/components/interaction/form/Select/Select.module.css
|
|
2042
|
-
var Select_default = {"formGroup":"
|
|
2085
|
+
var Select_default = {"formGroup":"bds0115Select-formGroup","selectWrapper":"bds0115Select-selectWrapper","select":"bds0115Select-select","selectError":"bds0115Select-selectError","chevron":"bds0115Select-chevron"};
|
|
2043
2086
|
|
|
2044
2087
|
// src/components/interaction/form/Select/Select.tsx
|
|
2045
|
-
var
|
|
2046
|
-
var
|
|
2088
|
+
var import_design_system_foundation37 = require("@boostdev/design-system-foundation");
|
|
2089
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2047
2090
|
function Select({
|
|
2048
2091
|
label,
|
|
2049
2092
|
name,
|
|
@@ -2058,28 +2101,28 @@ function Select({
|
|
|
2058
2101
|
const hintId = id + "hint";
|
|
2059
2102
|
const errorId = id + "error";
|
|
2060
2103
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2061
|
-
return /* @__PURE__ */ (0,
|
|
2062
|
-
/* @__PURE__ */ (0,
|
|
2063
|
-
/* @__PURE__ */ (0,
|
|
2064
|
-
/* @__PURE__ */ (0,
|
|
2104
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(InputContainer, { className: (0, import_design_system_foundation37.cn)(Select_default.formGroup, className), children: [
|
|
2105
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Label, { id, label }),
|
|
2106
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: Select_default.selectWrapper, children: [
|
|
2107
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
2065
2108
|
"select",
|
|
2066
2109
|
{
|
|
2067
2110
|
id,
|
|
2068
2111
|
name,
|
|
2069
2112
|
"aria-invalid": !!error,
|
|
2070
2113
|
"aria-describedby": describedBy,
|
|
2071
|
-
className: (0,
|
|
2114
|
+
className: (0, import_design_system_foundation37.cn)(Select_default.select, error ? Select_default.selectError : void 0),
|
|
2072
2115
|
...props,
|
|
2073
2116
|
children: [
|
|
2074
|
-
placeholder && /* @__PURE__ */ (0,
|
|
2075
|
-
options.map(({ value, label: optLabel, disabled }) => /* @__PURE__ */ (0,
|
|
2117
|
+
placeholder && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("option", { value: "", disabled: true, hidden: true, children: placeholder }),
|
|
2118
|
+
options.map(({ value, label: optLabel, disabled }) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("option", { value, disabled, children: optLabel }, value))
|
|
2076
2119
|
]
|
|
2077
2120
|
}
|
|
2078
2121
|
),
|
|
2079
|
-
/* @__PURE__ */ (0,
|
|
2122
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: Select_default.chevron, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M6 9l6 6 6-6" }) }) })
|
|
2080
2123
|
] }),
|
|
2081
|
-
/* @__PURE__ */ (0,
|
|
2082
|
-
/* @__PURE__ */ (0,
|
|
2124
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Message, { inputId: id, type: "error", message: error }),
|
|
2125
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Message, { inputId: id, type: "hint", message: hint })
|
|
2083
2126
|
] });
|
|
2084
2127
|
}
|
|
2085
2128
|
|
|
@@ -2087,11 +2130,11 @@ function Select({
|
|
|
2087
2130
|
var import_react19 = require("react");
|
|
2088
2131
|
|
|
2089
2132
|
// src/components/interaction/form/Slider/Slider.module.css
|
|
2090
|
-
var Slider_default = {"formGroup":"
|
|
2133
|
+
var Slider_default = {"formGroup":"bds0115Slider-formGroup","labelRow":"bds0115Slider-labelRow","value":"bds0115Slider-value","slider":"bds0115Slider-slider","sliderError":"bds0115Slider-sliderError"};
|
|
2091
2134
|
|
|
2092
2135
|
// src/components/interaction/form/Slider/Slider.tsx
|
|
2093
|
-
var
|
|
2094
|
-
var
|
|
2136
|
+
var import_design_system_foundation38 = require("@boostdev/design-system-foundation");
|
|
2137
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2095
2138
|
function Slider({
|
|
2096
2139
|
label,
|
|
2097
2140
|
name,
|
|
@@ -2116,12 +2159,12 @@ function Slider({
|
|
|
2116
2159
|
if (!isControlled) setInternalValue(Number(e.target.value));
|
|
2117
2160
|
onChange?.(e);
|
|
2118
2161
|
};
|
|
2119
|
-
return /* @__PURE__ */ (0,
|
|
2120
|
-
/* @__PURE__ */ (0,
|
|
2121
|
-
/* @__PURE__ */ (0,
|
|
2122
|
-
showValue && /* @__PURE__ */ (0,
|
|
2162
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(InputContainer, { className: (0, import_design_system_foundation38.cn)(Slider_default.formGroup, className), children: [
|
|
2163
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: Slider_default.labelRow, children: [
|
|
2164
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Label, { id, label }),
|
|
2165
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: Slider_default.value, children: currentValue })
|
|
2123
2166
|
] }),
|
|
2124
|
-
/* @__PURE__ */ (0,
|
|
2167
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2125
2168
|
"input",
|
|
2126
2169
|
{
|
|
2127
2170
|
type: "range",
|
|
@@ -2133,14 +2176,14 @@ function Slider({
|
|
|
2133
2176
|
"aria-valuemin": min,
|
|
2134
2177
|
"aria-valuemax": max,
|
|
2135
2178
|
"aria-valuenow": currentValue,
|
|
2136
|
-
className: (0,
|
|
2179
|
+
className: (0, import_design_system_foundation38.cn)(Slider_default.slider, error ? Slider_default.sliderError : void 0),
|
|
2137
2180
|
style: { "--slider_fill": `${fillPct}%` },
|
|
2138
2181
|
onChange: handleChange,
|
|
2139
2182
|
...props
|
|
2140
2183
|
}
|
|
2141
2184
|
),
|
|
2142
|
-
/* @__PURE__ */ (0,
|
|
2143
|
-
/* @__PURE__ */ (0,
|
|
2185
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Message, { inputId: id, type: "error", message: error }),
|
|
2186
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Message, { inputId: id, type: "hint", message: hint })
|
|
2144
2187
|
] });
|
|
2145
2188
|
}
|
|
2146
2189
|
|
|
@@ -2148,11 +2191,11 @@ function Slider({
|
|
|
2148
2191
|
var import_react20 = require("react");
|
|
2149
2192
|
|
|
2150
2193
|
// src/components/interaction/form/Switch/Switch.module.css
|
|
2151
|
-
var Switch_default = {"switchGroup":"
|
|
2194
|
+
var Switch_default = {"switchGroup":"bds0115Switch-switchGroup","--size_small":"bds0115Switch---size_small","--size_medium":"bds0115Switch---size_medium","--size_large":"bds0115Switch---size_large","inputWrapper":"bds0115Switch-inputWrapper","trackWrapper":"bds0115Switch-trackWrapper","switch":"bds0115Switch-switch","track":"bds0115Switch-track","thumb":"bds0115Switch-thumb","switchError":"bds0115Switch-switchError"};
|
|
2152
2195
|
|
|
2153
2196
|
// src/components/interaction/form/Switch/Switch.tsx
|
|
2154
|
-
var
|
|
2155
|
-
var
|
|
2197
|
+
var import_design_system_foundation39 = require("@boostdev/design-system-foundation");
|
|
2198
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2156
2199
|
function Switch({
|
|
2157
2200
|
label,
|
|
2158
2201
|
name,
|
|
@@ -2166,10 +2209,10 @@ function Switch({
|
|
|
2166
2209
|
const hintId = id + "hint";
|
|
2167
2210
|
const errorId = id + "error";
|
|
2168
2211
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2169
|
-
return /* @__PURE__ */ (0,
|
|
2170
|
-
/* @__PURE__ */ (0,
|
|
2171
|
-
/* @__PURE__ */ (0,
|
|
2172
|
-
/* @__PURE__ */ (0,
|
|
2212
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(InputContainer, { className: (0, import_design_system_foundation39.cn)(Switch_default.switchGroup, Switch_default[`--size_${size}`], className), children: [
|
|
2213
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: Switch_default.inputWrapper, children: [
|
|
2214
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: Switch_default.trackWrapper, children: [
|
|
2215
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2173
2216
|
"input",
|
|
2174
2217
|
{
|
|
2175
2218
|
type: "checkbox",
|
|
@@ -2177,16 +2220,16 @@ function Switch({
|
|
|
2177
2220
|
id,
|
|
2178
2221
|
name,
|
|
2179
2222
|
"aria-describedby": describedBy,
|
|
2180
|
-
className: (0,
|
|
2223
|
+
className: (0, import_design_system_foundation39.cn)(Switch_default.switch, error ? Switch_default.switchError : void 0),
|
|
2181
2224
|
...props
|
|
2182
2225
|
}
|
|
2183
2226
|
),
|
|
2184
|
-
/* @__PURE__ */ (0,
|
|
2227
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: Switch_default.track, "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: Switch_default.thumb }) })
|
|
2185
2228
|
] }),
|
|
2186
|
-
/* @__PURE__ */ (0,
|
|
2229
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Label, { id, label })
|
|
2187
2230
|
] }),
|
|
2188
|
-
/* @__PURE__ */ (0,
|
|
2189
|
-
/* @__PURE__ */ (0,
|
|
2231
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Message, { inputId: id, type: "error", message: error }),
|
|
2232
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Message, { inputId: id, type: "hint", message: hint })
|
|
2190
2233
|
] });
|
|
2191
2234
|
}
|
|
2192
2235
|
|
|
@@ -2194,11 +2237,11 @@ function Switch({
|
|
|
2194
2237
|
var import_react21 = require("react");
|
|
2195
2238
|
|
|
2196
2239
|
// src/components/interaction/form/Textarea/Textarea.module.css
|
|
2197
|
-
var Textarea_default = {"formGroup":"
|
|
2240
|
+
var Textarea_default = {"formGroup":"bds0115Textarea-formGroup","textarea":"bds0115Textarea-textarea","textareaError":"bds0115Textarea-textareaError"};
|
|
2198
2241
|
|
|
2199
2242
|
// src/components/interaction/form/Textarea/Textarea.tsx
|
|
2200
|
-
var
|
|
2201
|
-
var
|
|
2243
|
+
var import_design_system_foundation40 = require("@boostdev/design-system-foundation");
|
|
2244
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2202
2245
|
function Textarea({
|
|
2203
2246
|
label,
|
|
2204
2247
|
name,
|
|
@@ -2211,40 +2254,40 @@ function Textarea({
|
|
|
2211
2254
|
const hintId = id + "hint";
|
|
2212
2255
|
const errorId = id + "error";
|
|
2213
2256
|
const describedBy = [error && errorId, hint && hintId].filter(Boolean).join(" ") || void 0;
|
|
2214
|
-
return /* @__PURE__ */ (0,
|
|
2215
|
-
/* @__PURE__ */ (0,
|
|
2216
|
-
/* @__PURE__ */ (0,
|
|
2257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(InputContainer, { className: (0, import_design_system_foundation40.cn)(Textarea_default.formGroup, className), children: [
|
|
2258
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Label, { id, label }),
|
|
2259
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
2217
2260
|
"textarea",
|
|
2218
2261
|
{
|
|
2219
2262
|
id,
|
|
2220
2263
|
name,
|
|
2221
2264
|
"aria-invalid": !!error,
|
|
2222
2265
|
"aria-describedby": describedBy,
|
|
2223
|
-
className: (0,
|
|
2266
|
+
className: (0, import_design_system_foundation40.cn)(Textarea_default.textarea, error ? Textarea_default.textareaError : void 0),
|
|
2224
2267
|
...props
|
|
2225
2268
|
}
|
|
2226
2269
|
),
|
|
2227
|
-
/* @__PURE__ */ (0,
|
|
2228
|
-
/* @__PURE__ */ (0,
|
|
2270
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Message, { inputId: id, type: "error", message: error }),
|
|
2271
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Message, { inputId: id, type: "hint", message: hint })
|
|
2229
2272
|
] });
|
|
2230
2273
|
}
|
|
2231
2274
|
|
|
2232
2275
|
// src/components/layout/ButtonGroup/ButtonGroup.module.css
|
|
2233
|
-
var ButtonGroup_default = {"buttonGroup":"
|
|
2276
|
+
var ButtonGroup_default = {"buttonGroup":"bds0115ButtonGroup-buttonGroup","container":"bds0115ButtonGroup-container","--variant_card":"bds0115ButtonGroup---variant_card","--variant_flow":"bds0115ButtonGroup---variant_flow","--variant_modal":"bds0115ButtonGroup---variant_modal","--variant_content":"bds0115ButtonGroup---variant_content","--variant_grid":"bds0115ButtonGroup---variant_grid"};
|
|
2234
2277
|
|
|
2235
2278
|
// src/components/layout/ButtonGroup/ButtonGroup.tsx
|
|
2236
|
-
var
|
|
2237
|
-
var
|
|
2279
|
+
var import_design_system_foundation41 = require("@boostdev/design-system-foundation");
|
|
2280
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
2238
2281
|
function ButtonGroup({ children, className, variant }) {
|
|
2239
|
-
return /* @__PURE__ */ (0,
|
|
2282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: (0, import_design_system_foundation41.cn)(ButtonGroup_default.buttonGroup, className, variant && ButtonGroup_default[`--variant_${variant}`]), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: ButtonGroup_default.container, children }) });
|
|
2240
2283
|
}
|
|
2241
2284
|
|
|
2242
2285
|
// src/components/layout/Card/Card.module.css
|
|
2243
|
-
var Card_default = {"card":"
|
|
2286
|
+
var Card_default = {"card":"bds0115Card-card","--default":"bds0115Card---default","--elevated":"bds0115Card---elevated","--outlined":"bds0115Card---outlined","--clickable":"bds0115Card---clickable","--padding-none":"bds0115Card---padding-none","--padding-small":"bds0115Card---padding-small","--padding-medium":"bds0115Card---padding-medium","--padding-large":"bds0115Card---padding-large","--text-start":"bds0115Card---text-start","--text-center":"bds0115Card---text-center","--text-end":"bds0115Card---text-end"};
|
|
2244
2287
|
|
|
2245
2288
|
// src/components/layout/Card/Card.tsx
|
|
2246
|
-
var
|
|
2247
|
-
var
|
|
2289
|
+
var import_design_system_foundation42 = require("@boostdev/design-system-foundation");
|
|
2290
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
2248
2291
|
function Card({
|
|
2249
2292
|
children,
|
|
2250
2293
|
className,
|
|
@@ -2255,7 +2298,7 @@ function Card({
|
|
|
2255
2298
|
onClick,
|
|
2256
2299
|
"aria-label": ariaLabel
|
|
2257
2300
|
}) {
|
|
2258
|
-
const classNames = (0,
|
|
2301
|
+
const classNames = (0, import_design_system_foundation42.cn)(
|
|
2259
2302
|
Card_default.card,
|
|
2260
2303
|
Card_default[`--${variant}`],
|
|
2261
2304
|
Card_default[`--padding-${padding}`],
|
|
@@ -2264,7 +2307,7 @@ function Card({
|
|
|
2264
2307
|
className
|
|
2265
2308
|
);
|
|
2266
2309
|
const Component = onClick ? "button" : "div";
|
|
2267
|
-
return /* @__PURE__ */ (0,
|
|
2310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2268
2311
|
Component,
|
|
2269
2312
|
{
|
|
2270
2313
|
className: classNames,
|
|
@@ -2278,11 +2321,11 @@ function Card({
|
|
|
2278
2321
|
}
|
|
2279
2322
|
|
|
2280
2323
|
// src/components/layout/SectionHeader/SectionHeader.module.css
|
|
2281
|
-
var SectionHeader_default = {"sectionHeader":"
|
|
2324
|
+
var SectionHeader_default = {"sectionHeader":"bds0115SectionHeader-sectionHeader","title":"bds0115SectionHeader-title","subtitle":"bds0115SectionHeader-subtitle","--start":"bds0115SectionHeader---start","--center":"bds0115SectionHeader---center","--end":"bds0115SectionHeader---end","--small":"bds0115SectionHeader---small","--medium":"bds0115SectionHeader---medium","--large":"bds0115SectionHeader---large"};
|
|
2282
2325
|
|
|
2283
2326
|
// src/components/layout/SectionHeader/SectionHeader.tsx
|
|
2284
|
-
var
|
|
2285
|
-
var
|
|
2327
|
+
var import_design_system_foundation43 = require("@boostdev/design-system-foundation");
|
|
2328
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2286
2329
|
function SectionHeader({
|
|
2287
2330
|
title,
|
|
2288
2331
|
subtitle,
|
|
@@ -2292,24 +2335,24 @@ function SectionHeader({
|
|
|
2292
2335
|
titleAs = "h2"
|
|
2293
2336
|
}) {
|
|
2294
2337
|
const Title = titleAs;
|
|
2295
|
-
return /* @__PURE__ */ (0,
|
|
2296
|
-
/* @__PURE__ */ (0,
|
|
2297
|
-
subtitle && /* @__PURE__ */ (0,
|
|
2338
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("header", { className: (0, import_design_system_foundation43.cn)(SectionHeader_default.sectionHeader, SectionHeader_default[`--${alignment}`], SectionHeader_default[`--${size}`], className), children: [
|
|
2339
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Title, { className: SectionHeader_default.title, children: title }),
|
|
2340
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: SectionHeader_default.subtitle, children: subtitle })
|
|
2298
2341
|
] });
|
|
2299
2342
|
}
|
|
2300
2343
|
|
|
2301
2344
|
// src/components/layout/IconWrapper/IconWrapper.module.css
|
|
2302
|
-
var IconWrapper_default = {"wrapper":"
|
|
2345
|
+
var IconWrapper_default = {"wrapper":"bds0115IconWrapper-wrapper"};
|
|
2303
2346
|
|
|
2304
2347
|
// src/components/layout/IconWrapper/IconWrapper.tsx
|
|
2305
|
-
var
|
|
2306
|
-
var
|
|
2348
|
+
var import_design_system_foundation44 = require("@boostdev/design-system-foundation");
|
|
2349
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
2307
2350
|
function IconWrapper({ children, className }) {
|
|
2308
|
-
return /* @__PURE__ */ (0,
|
|
2351
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: (0, import_design_system_foundation44.cn)(className, IconWrapper_default.wrapper), children });
|
|
2309
2352
|
}
|
|
2310
2353
|
|
|
2311
2354
|
// src/index.ts
|
|
2312
|
-
var
|
|
2355
|
+
var import_design_system_foundation45 = require("@boostdev/design-system-foundation");
|
|
2313
2356
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2314
2357
|
0 && (module.exports = {
|
|
2315
2358
|
Accordion,
|
|
@@ -2323,6 +2366,7 @@ var import_design_system_foundation44 = require("@boostdev/design-system-foundat
|
|
|
2323
2366
|
Card,
|
|
2324
2367
|
Carousel,
|
|
2325
2368
|
Checkbox,
|
|
2369
|
+
Collapsible,
|
|
2326
2370
|
Combobox,
|
|
2327
2371
|
Command,
|
|
2328
2372
|
DescriptionList,
|