@mithunsalinda/veyqor-ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,3804 @@
1
+ import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
2
+ import { forwardRef, useId, useState, useMemo, useEffect, cloneElement } from 'react';
3
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
+ import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
5
+ import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
6
+ import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
7
+ import { Combobox as Combobox$1 } from '@base-ui/react/combobox';
8
+ import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
9
+ import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
10
+ import { Menu } from '@base-ui/react/menu';
11
+ import { Fieldset as Fieldset$1 } from '@base-ui/react/fieldset';
12
+ import { Menubar as Menubar$1 } from '@base-ui/react/menubar';
13
+ import { NavigationMenu as NavigationMenu$1 } from '@base-ui/react/navigation-menu';
14
+ import { NumberField as NumberField$1 } from '@base-ui/react/number-field';
15
+ import { OTPField as OTPField$1 } from '@base-ui/react/otp-field';
16
+ import { Popover as Popover$1 } from '@base-ui/react/popover';
17
+ import { Meter as Meter$1 } from '@base-ui/react/meter';
18
+ import { Progress as Progress$1 } from '@base-ui/react/progress';
19
+ import { Radio } from '@base-ui/react/radio';
20
+ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
21
+ import { Select as Select$1 } from '@base-ui/react/select';
22
+ import { ScrollArea as ScrollArea$1 } from '@base-ui/react/scroll-area';
23
+ import { Separator as Separator$1 } from '@base-ui/react/separator';
24
+ import { Slider as Slider$1 } from '@base-ui/react/slider';
25
+ import { Switch as Switch$1 } from '@base-ui/react/switch';
26
+ import { Tabs as Tabs$1 } from '@base-ui/react/tabs';
27
+ import { Toast } from '@base-ui/react/toast';
28
+ import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
29
+ import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
30
+ import { Toolbar as Toolbar$1 } from '@base-ui/react/toolbar';
31
+ import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
32
+
33
+ // src/components/Accordion/Accordion.tsx
34
+
35
+ // src/utils/classNames.ts
36
+ function classNames(...values) {
37
+ return values.filter(Boolean).join(" ");
38
+ }
39
+
40
+ // src/components/Accordion/Accordion.module.css
41
+ var Accordion_default = {
42
+ root: "Accordion_root",
43
+ outlined: "Accordion_outlined",
44
+ plain: "Accordion_plain",
45
+ item: "Accordion_item",
46
+ header: "Accordion_header",
47
+ trigger: "Accordion_trigger",
48
+ title: "Accordion_title",
49
+ chevron: "Accordion_chevron",
50
+ panel: "Accordion_panel",
51
+ content: "Accordion_content",
52
+ sm: "Accordion_sm",
53
+ md: "Accordion_md"
54
+ };
55
+ var Accordion = forwardRef(
56
+ ({
57
+ className,
58
+ defaultValue,
59
+ disabled = false,
60
+ items,
61
+ keepMounted = false,
62
+ multiple = false,
63
+ onValueChange,
64
+ size = "md",
65
+ value,
66
+ variant = "outlined",
67
+ ...props
68
+ }, ref) => /* @__PURE__ */ jsx(
69
+ Accordion$1.Root,
70
+ {
71
+ ref,
72
+ className: classNames(Accordion_default.root, Accordion_default[size], Accordion_default[variant], className),
73
+ defaultValue,
74
+ disabled,
75
+ keepMounted,
76
+ multiple,
77
+ onValueChange: (nextValue) => onValueChange?.(nextValue.map(String)),
78
+ value,
79
+ ...props,
80
+ children: items.map((item) => /* @__PURE__ */ jsxs(
81
+ Accordion$1.Item,
82
+ {
83
+ className: Accordion_default.item,
84
+ disabled: item.disabled ?? false,
85
+ value: item.value,
86
+ children: [
87
+ /* @__PURE__ */ jsx(Accordion$1.Header, { className: Accordion_default.header, children: /* @__PURE__ */ jsxs(Accordion$1.Trigger, { className: Accordion_default.trigger, children: [
88
+ /* @__PURE__ */ jsx("span", { className: Accordion_default.title, children: item.title }),
89
+ /* @__PURE__ */ jsx("span", { className: Accordion_default.chevron, "aria-hidden": "true", children: "v" })
90
+ ] }) }),
91
+ /* @__PURE__ */ jsx(Accordion$1.Panel, { className: Accordion_default.panel, keepMounted, children: /* @__PURE__ */ jsx("div", { className: Accordion_default.content, children: item.content }) })
92
+ ]
93
+ },
94
+ item.value
95
+ ))
96
+ }
97
+ )
98
+ );
99
+ Accordion.displayName = "Accordion";
100
+
101
+ // src/components/Alert/Alert.module.css
102
+ var Alert_default = {
103
+ alert: "Alert_alert",
104
+ icon: "Alert_icon",
105
+ defaultIcon: "Alert_defaultIcon",
106
+ closeIcon: "Alert_closeIcon",
107
+ body: "Alert_body",
108
+ title: "Alert_title",
109
+ description: "Alert_description",
110
+ action: "Alert_action",
111
+ close: "Alert_close",
112
+ neutral: "Alert_neutral",
113
+ soft: "Alert_soft",
114
+ outline: "Alert_outline",
115
+ info: "Alert_info",
116
+ success: "Alert_success",
117
+ warning: "Alert_warning",
118
+ danger: "Alert_danger"
119
+ };
120
+ var Alert = forwardRef(
121
+ ({
122
+ action,
123
+ children,
124
+ className,
125
+ closeLabel = "Dismiss alert",
126
+ dismissible = false,
127
+ icon,
128
+ intent = "info",
129
+ onDismiss,
130
+ role,
131
+ title,
132
+ variant = "soft",
133
+ ...props
134
+ }, ref) => {
135
+ const resolvedRole = role ?? (intent === "danger" ? "alert" : "status");
136
+ return /* @__PURE__ */ jsxs(
137
+ "div",
138
+ {
139
+ ref,
140
+ className: classNames(Alert_default.alert, Alert_default[intent], Alert_default[variant], className),
141
+ role: resolvedRole,
142
+ ...props,
143
+ children: [
144
+ /* @__PURE__ */ jsx("div", { className: Alert_default.icon, "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx(DefaultIcon, { intent }) }),
145
+ /* @__PURE__ */ jsxs("div", { className: Alert_default.body, children: [
146
+ title ? /* @__PURE__ */ jsx("p", { className: Alert_default.title, children: title }) : null,
147
+ children ? /* @__PURE__ */ jsx("div", { className: Alert_default.description, children }) : null
148
+ ] }),
149
+ action ? /* @__PURE__ */ jsx("div", { className: Alert_default.action, children: action }) : null,
150
+ dismissible ? /* @__PURE__ */ jsx(
151
+ "button",
152
+ {
153
+ className: Alert_default.close,
154
+ type: "button",
155
+ "aria-label": closeLabel,
156
+ onClick: onDismiss,
157
+ children: /* @__PURE__ */ jsx(CloseIcon, {})
158
+ }
159
+ ) : null
160
+ ]
161
+ }
162
+ );
163
+ }
164
+ );
165
+ Alert.displayName = "Alert";
166
+ function DefaultIcon({ intent }) {
167
+ if (intent === "success") {
168
+ return /* @__PURE__ */ jsx("svg", { className: Alert_default.defaultIcon, viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx("path", { d: "m3.5 8.5 3 3 6-7" }) });
169
+ }
170
+ if (intent === "danger") {
171
+ return /* @__PURE__ */ jsxs("svg", { className: Alert_default.defaultIcon, viewBox: "0 0 16 16", children: [
172
+ /* @__PURE__ */ jsx("path", { d: "M8 5v4M8 12h.01" }),
173
+ /* @__PURE__ */ jsx("path", { d: "M8 2.5 14 13H2L8 2.5Z" })
174
+ ] });
175
+ }
176
+ if (intent === "warning") {
177
+ return /* @__PURE__ */ jsxs("svg", { className: Alert_default.defaultIcon, viewBox: "0 0 16 16", children: [
178
+ /* @__PURE__ */ jsx("path", { d: "M8 5.5v3M8 11.5h.01" }),
179
+ /* @__PURE__ */ jsx("path", { d: "M8 2.5 14 13H2L8 2.5Z" })
180
+ ] });
181
+ }
182
+ return /* @__PURE__ */ jsxs("svg", { className: Alert_default.defaultIcon, viewBox: "0 0 16 16", children: [
183
+ /* @__PURE__ */ jsx("path", { d: "M8 7v5M8 4h.01" }),
184
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "8", r: "6" })
185
+ ] });
186
+ }
187
+ function CloseIcon() {
188
+ return /* @__PURE__ */ jsx("svg", { className: Alert_default.closeIcon, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4 4 8 8M12 4l-8 8" }) });
189
+ }
190
+
191
+ // src/components/Avatar/Avatar.module.css
192
+ var Avatar_default = {
193
+ avatar: "Avatar_avatar",
194
+ xs: "Avatar_xs",
195
+ sm: "Avatar_sm",
196
+ md: "Avatar_md",
197
+ lg: "Avatar_lg",
198
+ xl: "Avatar_xl",
199
+ circle: "Avatar_circle",
200
+ rounded: "Avatar_rounded",
201
+ image: "Avatar_image",
202
+ fallback: "Avatar_fallback",
203
+ defaultIcon: "Avatar_defaultIcon",
204
+ status: "Avatar_status"
205
+ };
206
+ var Avatar = forwardRef(
207
+ ({
208
+ alt,
209
+ className,
210
+ fallback,
211
+ fallbackDelay = 0,
212
+ imageProps,
213
+ initials,
214
+ name,
215
+ onLoadingStatusChange,
216
+ shape = "circle",
217
+ size = "md",
218
+ src,
219
+ status,
220
+ ...props
221
+ }, ref) => {
222
+ const fallbackContent = fallback ?? initials ?? getInitials(name);
223
+ const imageAlt = alt ?? name ?? "";
224
+ return /* @__PURE__ */ jsxs(
225
+ Avatar$1.Root,
226
+ {
227
+ ref,
228
+ className: classNames(Avatar_default.avatar, Avatar_default[size], Avatar_default[shape], className),
229
+ "aria-label": name && !src ? name : void 0,
230
+ ...props,
231
+ children: [
232
+ src ? /* @__PURE__ */ jsx(
233
+ Avatar$1.Image,
234
+ {
235
+ className: Avatar_default.image,
236
+ src,
237
+ alt: imageAlt,
238
+ onLoadingStatusChange,
239
+ ...imageProps
240
+ }
241
+ ) : null,
242
+ /* @__PURE__ */ jsx(Avatar$1.Fallback, { className: Avatar_default.fallback, delay: fallbackDelay, children: fallbackContent || /* @__PURE__ */ jsx(DefaultIcon2, {}) }),
243
+ status ? /* @__PURE__ */ jsx("span", { className: Avatar_default.status, children: status }) : null
244
+ ]
245
+ }
246
+ );
247
+ }
248
+ );
249
+ Avatar.displayName = "Avatar";
250
+ function getInitials(name) {
251
+ if (!name) {
252
+ return "";
253
+ }
254
+ return name.trim().split(/\s+/).slice(0, 2).map((part) => part[0]?.toUpperCase()).join("");
255
+ }
256
+ function DefaultIcon2() {
257
+ return /* @__PURE__ */ jsxs("svg", { className: Avatar_default.defaultIcon, viewBox: "0 0 16 16", "aria-hidden": "true", children: [
258
+ /* @__PURE__ */ jsx("circle", { cx: "8", cy: "5.25", r: "2.5" }),
259
+ /* @__PURE__ */ jsx("path", { d: "M3.5 14a4.5 4.5 0 0 1 9 0" })
260
+ ] });
261
+ }
262
+
263
+ // src/components/Button/Button.module.css
264
+ var Button_default = {
265
+ button: "Button_button",
266
+ primary: "Button_primary",
267
+ secondary: "Button_secondary",
268
+ outline: "Button_outline",
269
+ ghost: "Button_ghost",
270
+ destructive: "Button_destructive",
271
+ sm: "Button_sm",
272
+ md: "Button_md",
273
+ lg: "Button_lg",
274
+ loading: "Button_loading",
275
+ icon: "Button_icon",
276
+ content: "Button_content",
277
+ spinner: "Button_spinner",
278
+ "button-spin": "Button_button-spin",
279
+ visuallyHidden: "Button_visuallyHidden"
280
+ };
281
+ var Button = forwardRef(
282
+ ({
283
+ children,
284
+ className,
285
+ disabled = false,
286
+ leftIcon,
287
+ loading = false,
288
+ loadingLabel = "Loading",
289
+ rightIcon,
290
+ size = "md",
291
+ type,
292
+ variant = "primary",
293
+ ...props
294
+ }, ref) => {
295
+ const isDisabled = disabled || loading;
296
+ return /* @__PURE__ */ jsxs(
297
+ "button",
298
+ {
299
+ ref,
300
+ className: classNames(
301
+ Button_default.button,
302
+ Button_default[variant],
303
+ Button_default[size],
304
+ loading && Button_default.loading,
305
+ className
306
+ ),
307
+ "data-loading": loading ? "" : void 0,
308
+ disabled: isDisabled,
309
+ type: type ?? "button",
310
+ "aria-busy": loading || void 0,
311
+ ...props,
312
+ children: [
313
+ loading ? /* @__PURE__ */ jsx("span", { className: Button_default.spinner, "aria-hidden": "true" }) : leftIcon && /* @__PURE__ */ jsx("span", { className: Button_default.icon, "aria-hidden": "true", children: leftIcon }),
314
+ /* @__PURE__ */ jsx("span", { className: Button_default.content, children }),
315
+ loading ? /* @__PURE__ */ jsx("span", { className: Button_default.visuallyHidden, children: loadingLabel }) : null,
316
+ !loading && rightIcon ? /* @__PURE__ */ jsx("span", { className: Button_default.icon, "aria-hidden": "true", children: rightIcon }) : null
317
+ ]
318
+ }
319
+ );
320
+ }
321
+ );
322
+ Button.displayName = "Button";
323
+
324
+ // src/components/Badge/Badge.module.css
325
+ var Badge_default = {
326
+ badge: "Badge_badge",
327
+ sm: "Badge_sm",
328
+ md: "Badge_md",
329
+ rounded: "Badge_rounded",
330
+ pill: "Badge_pill",
331
+ dot: "Badge_dot",
332
+ dotOnly: "Badge_dotOnly",
333
+ content: "Badge_content",
334
+ neutral: "Badge_neutral",
335
+ soft: "Badge_soft",
336
+ solid: "Badge_solid",
337
+ outline: "Badge_outline",
338
+ info: "Badge_info",
339
+ success: "Badge_success",
340
+ warning: "Badge_warning",
341
+ danger: "Badge_danger"
342
+ };
343
+ var Badge = forwardRef(
344
+ ({
345
+ ariaLabel,
346
+ children,
347
+ className,
348
+ count,
349
+ dot = false,
350
+ intent = "neutral",
351
+ max = 99,
352
+ shape = "pill",
353
+ showZero = false,
354
+ size = "md",
355
+ variant = "soft",
356
+ ...props
357
+ }, ref) => {
358
+ const hasCount = typeof count === "number";
359
+ const isHiddenCount = hasCount && count === 0 && !showZero;
360
+ const content = hasCount ? formatCount(count, max) : children;
361
+ const isDotOnly = dot && !content;
362
+ if (isHiddenCount) {
363
+ return null;
364
+ }
365
+ return /* @__PURE__ */ jsxs(
366
+ "span",
367
+ {
368
+ ref,
369
+ className: classNames(
370
+ Badge_default.badge,
371
+ Badge_default[intent],
372
+ Badge_default[variant],
373
+ Badge_default[size],
374
+ Badge_default[shape],
375
+ dot && Badge_default.withDot,
376
+ isDotOnly && Badge_default.dotOnly,
377
+ className
378
+ ),
379
+ "aria-label": ariaLabel,
380
+ ...props,
381
+ children: [
382
+ dot ? /* @__PURE__ */ jsx("span", { className: Badge_default.dot, "aria-hidden": "true" }) : null,
383
+ content ? /* @__PURE__ */ jsx("span", { className: Badge_default.content, children: content }) : null
384
+ ]
385
+ }
386
+ );
387
+ }
388
+ );
389
+ Badge.displayName = "Badge";
390
+ function formatCount(count, max) {
391
+ return count > max ? `${max}+` : count.toLocaleString();
392
+ }
393
+
394
+ // src/components/Breadcrumb/Breadcrumb.module.css
395
+ var Breadcrumb_default = {
396
+ breadcrumb: "Breadcrumb_breadcrumb",
397
+ list: "Breadcrumb_list",
398
+ item: "Breadcrumb_item",
399
+ link: "Breadcrumb_link",
400
+ page: "Breadcrumb_page",
401
+ current: "Breadcrumb_current",
402
+ disabled: "Breadcrumb_disabled",
403
+ separator: "Breadcrumb_separator",
404
+ sm: "Breadcrumb_sm",
405
+ md: "Breadcrumb_md"
406
+ };
407
+ var ELLIPSIS_ITEM = {
408
+ label: "...",
409
+ disabled: true
410
+ };
411
+ var Breadcrumb = forwardRef(
412
+ ({
413
+ "aria-label": ariaLabel = "Breadcrumb",
414
+ className,
415
+ items,
416
+ maxItems,
417
+ separator = "/",
418
+ size = "md",
419
+ ...props
420
+ }, ref) => {
421
+ const visibleItems = getVisibleItems(items, maxItems);
422
+ return /* @__PURE__ */ jsx(
423
+ "nav",
424
+ {
425
+ ref,
426
+ "aria-label": ariaLabel,
427
+ className: classNames(Breadcrumb_default.breadcrumb, Breadcrumb_default[size], className),
428
+ ...props,
429
+ children: /* @__PURE__ */ jsx("ol", { className: Breadcrumb_default.list, children: visibleItems.map((item, index) => {
430
+ const isLast = index === visibleItems.length - 1;
431
+ const isCurrent = item.current ?? isLast;
432
+ return /* @__PURE__ */ jsxs(
433
+ "li",
434
+ {
435
+ className: classNames(Breadcrumb_default.item, item.disabled && Breadcrumb_default.disabled),
436
+ children: [
437
+ renderItem(item, isCurrent),
438
+ !isLast ? /* @__PURE__ */ jsx("span", { className: Breadcrumb_default.separator, "aria-hidden": "true", children: separator }) : null
439
+ ]
440
+ },
441
+ getItemKey(item, index)
442
+ );
443
+ }) })
444
+ }
445
+ );
446
+ }
447
+ );
448
+ Breadcrumb.displayName = "Breadcrumb";
449
+ function getVisibleItems(items, maxItems) {
450
+ if (!maxItems || items.length <= maxItems || maxItems < 3) {
451
+ return items;
452
+ }
453
+ const firstItem = items.at(0);
454
+ if (!firstItem) {
455
+ return [];
456
+ }
457
+ return [firstItem, ELLIPSIS_ITEM, ...items.slice(items.length - (maxItems - 2))];
458
+ }
459
+ function renderItem(item, isCurrent) {
460
+ if (item.href && !item.disabled && !isCurrent) {
461
+ return /* @__PURE__ */ jsx("a", { className: Breadcrumb_default.link, href: item.href, children: item.label });
462
+ }
463
+ return /* @__PURE__ */ jsx(
464
+ "span",
465
+ {
466
+ className: classNames(Breadcrumb_default.page, isCurrent && Breadcrumb_default.current),
467
+ "aria-current": isCurrent ? "page" : void 0,
468
+ children: item.label
469
+ }
470
+ );
471
+ }
472
+ function getItemKey(item, index) {
473
+ if (typeof item.label === "string") {
474
+ return `${item.label}-${index}`;
475
+ }
476
+ return index;
477
+ }
478
+
479
+ // src/components/Card/Card.module.css
480
+ var Card_default = {
481
+ card: "Card_card",
482
+ surface: "Card_surface",
483
+ outlined: "Card_outlined",
484
+ elevated: "Card_elevated",
485
+ interactive: "Card_interactive",
486
+ "padding-none": "Card_padding-none",
487
+ "padding-sm": "Card_padding-sm",
488
+ "padding-md": "Card_padding-md",
489
+ "padding-lg": "Card_padding-lg",
490
+ header: "Card_header",
491
+ title: "Card_title",
492
+ description: "Card_description",
493
+ content: "Card_content",
494
+ footer: "Card_footer",
495
+ media: "Card_media"
496
+ };
497
+ var Card = forwardRef(
498
+ ({ children, className, interactive = false, padding = "md", variant = "outlined", ...props }, ref) => {
499
+ return /* @__PURE__ */ jsx(
500
+ "div",
501
+ {
502
+ ref,
503
+ className: classNames(
504
+ Card_default.card,
505
+ Card_default[variant],
506
+ Card_default[`padding-${padding}`],
507
+ interactive && Card_default.interactive,
508
+ className
509
+ ),
510
+ "data-interactive": interactive ? "" : void 0,
511
+ ...props,
512
+ children
513
+ }
514
+ );
515
+ }
516
+ );
517
+ Card.displayName = "Card";
518
+ var CardHeader = forwardRef(
519
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: classNames(Card_default.header, className), ...props, children })
520
+ );
521
+ CardHeader.displayName = "CardHeader";
522
+ var CardTitle = forwardRef(
523
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("h3", { ref, className: classNames(Card_default.title, className), ...props, children })
524
+ );
525
+ CardTitle.displayName = "CardTitle";
526
+ var CardDescription = forwardRef(
527
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("p", { ref, className: classNames(Card_default.description, className), ...props, children })
528
+ );
529
+ CardDescription.displayName = "CardDescription";
530
+ var CardContent = forwardRef(
531
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: classNames(Card_default.content, className), ...props, children })
532
+ );
533
+ CardContent.displayName = "CardContent";
534
+ var CardFooter = forwardRef(
535
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: classNames(Card_default.footer, className), ...props, children })
536
+ );
537
+ CardFooter.displayName = "CardFooter";
538
+ var CardMedia = forwardRef(
539
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: classNames(Card_default.media, className), ...props, children })
540
+ );
541
+ CardMedia.displayName = "CardMedia";
542
+
543
+ // src/components/Checkbox/Checkbox.module.css
544
+ var Checkbox_default = {
545
+ root: "Checkbox_root",
546
+ disabled: "Checkbox_disabled",
547
+ control: "Checkbox_control",
548
+ indicator: "Checkbox_indicator",
549
+ icon: "Checkbox_icon",
550
+ text: "Checkbox_text",
551
+ label: "Checkbox_label",
552
+ description: "Checkbox_description"
553
+ };
554
+ var Checkbox = forwardRef(
555
+ ({
556
+ checked,
557
+ className,
558
+ defaultChecked,
559
+ description,
560
+ disabled = false,
561
+ id,
562
+ indeterminate = false,
563
+ invalid = false,
564
+ label,
565
+ name,
566
+ onCheckedChange,
567
+ readOnly = false,
568
+ required = false,
569
+ value
570
+ }, ref) => {
571
+ const control = /* @__PURE__ */ jsx(
572
+ Checkbox$1.Root,
573
+ {
574
+ ref,
575
+ id,
576
+ name,
577
+ value,
578
+ checked,
579
+ defaultChecked,
580
+ indeterminate,
581
+ disabled,
582
+ readOnly,
583
+ required,
584
+ className: Checkbox_default.control,
585
+ "aria-invalid": invalid || void 0,
586
+ "data-invalid": invalid ? "" : void 0,
587
+ onCheckedChange: (nextChecked) => {
588
+ onCheckedChange?.(nextChecked);
589
+ },
590
+ children: /* @__PURE__ */ jsx(Checkbox$1.Indicator, { className: Checkbox_default.indicator, keepMounted: true, children: indeterminate ? /* @__PURE__ */ jsx(MinusIcon, {}) : /* @__PURE__ */ jsx(CheckIcon, {}) })
591
+ }
592
+ );
593
+ if (!label && !description) {
594
+ return control;
595
+ }
596
+ return /* @__PURE__ */ jsxs("label", { className: classNames(Checkbox_default.root, disabled && Checkbox_default.disabled, className), children: [
597
+ control,
598
+ /* @__PURE__ */ jsxs("span", { className: Checkbox_default.text, children: [
599
+ label ? /* @__PURE__ */ jsx("span", { className: Checkbox_default.label, children: label }) : null,
600
+ description ? /* @__PURE__ */ jsx("span", { className: Checkbox_default.description, children: description }) : null
601
+ ] })
602
+ ] });
603
+ }
604
+ );
605
+ Checkbox.displayName = "Checkbox";
606
+ function CheckIcon() {
607
+ return /* @__PURE__ */ jsx("svg", { className: Checkbox_default.icon, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M3.25 8.25 6.5 11.5l6.25-7" }) });
608
+ }
609
+ function MinusIcon() {
610
+ return /* @__PURE__ */ jsx("svg", { className: Checkbox_default.icon, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M3.5 8h9" }) });
611
+ }
612
+
613
+ // src/components/Collapsible/Collapsible.module.css
614
+ var Collapsible_default = {
615
+ root: "Collapsible_root",
616
+ outlined: "Collapsible_outlined",
617
+ plain: "Collapsible_plain",
618
+ trigger: "Collapsible_trigger",
619
+ label: "Collapsible_label",
620
+ title: "Collapsible_title",
621
+ description: "Collapsible_description",
622
+ chevron: "Collapsible_chevron",
623
+ panel: "Collapsible_panel",
624
+ content: "Collapsible_content",
625
+ sm: "Collapsible_sm",
626
+ md: "Collapsible_md"
627
+ };
628
+ var Collapsible = forwardRef(
629
+ ({
630
+ className,
631
+ content,
632
+ defaultOpen,
633
+ description,
634
+ disabled = false,
635
+ hiddenUntilFound = false,
636
+ keepMounted = false,
637
+ onOpenChange,
638
+ open,
639
+ size = "md",
640
+ title,
641
+ variant = "outlined",
642
+ ...props
643
+ }, ref) => /* @__PURE__ */ jsxs(
644
+ Collapsible$1.Root,
645
+ {
646
+ ref,
647
+ className: classNames(Collapsible_default.root, Collapsible_default[size], Collapsible_default[variant], className),
648
+ defaultOpen,
649
+ disabled,
650
+ onOpenChange: (nextOpen) => onOpenChange?.(nextOpen),
651
+ open,
652
+ ...props,
653
+ children: [
654
+ /* @__PURE__ */ jsxs(Collapsible$1.Trigger, { className: Collapsible_default.trigger, children: [
655
+ /* @__PURE__ */ jsxs("span", { className: Collapsible_default.label, children: [
656
+ /* @__PURE__ */ jsx("span", { className: Collapsible_default.title, children: title }),
657
+ description ? /* @__PURE__ */ jsx("span", { className: Collapsible_default.description, children: description }) : null
658
+ ] }),
659
+ /* @__PURE__ */ jsx("span", { className: Collapsible_default.chevron, "aria-hidden": "true", children: "v" })
660
+ ] }),
661
+ /* @__PURE__ */ jsx(
662
+ Collapsible$1.Panel,
663
+ {
664
+ className: Collapsible_default.panel,
665
+ hiddenUntilFound,
666
+ keepMounted,
667
+ children: /* @__PURE__ */ jsx("div", { className: Collapsible_default.content, children: content })
668
+ }
669
+ )
670
+ ]
671
+ }
672
+ )
673
+ );
674
+ Collapsible.displayName = "Collapsible";
675
+
676
+ // src/components/Combobox/Combobox.module.css
677
+ var Combobox_default = {
678
+ root: "Combobox_root",
679
+ disabled: "Combobox_disabled",
680
+ label: "Combobox_label",
681
+ description: "Combobox_description",
682
+ error: "Combobox_error",
683
+ inputGroup: "Combobox_inputGroup",
684
+ input: "Combobox_input",
685
+ actions: "Combobox_actions",
686
+ clear: "Combobox_clear",
687
+ trigger: "Combobox_trigger",
688
+ sm: "Combobox_sm",
689
+ md: "Combobox_md",
690
+ lg: "Combobox_lg",
691
+ positioner: "Combobox_positioner",
692
+ popup: "Combobox_popup",
693
+ comboboxPopupIn: "Combobox_comboboxPopupIn",
694
+ list: "Combobox_list",
695
+ empty: "Combobox_empty",
696
+ item: "Combobox_item",
697
+ itemIndicator: "Combobox_itemIndicator",
698
+ itemText: "Combobox_itemText",
699
+ itemLabel: "Combobox_itemLabel",
700
+ itemDescription: "Combobox_itemDescription",
701
+ chevron: "Combobox_chevron",
702
+ check: "Combobox_check",
703
+ x: "Combobox_x"
704
+ };
705
+ var Combobox = forwardRef(
706
+ ({
707
+ className,
708
+ clearLabel = "Clear selection",
709
+ comboboxSize = "md",
710
+ defaultInputValue,
711
+ defaultValue,
712
+ description,
713
+ disabled = false,
714
+ emptyMessage = "No options found.",
715
+ error,
716
+ id,
717
+ inputRef,
718
+ inputValue,
719
+ invalid = false,
720
+ label,
721
+ name,
722
+ onInputValueChange,
723
+ onValueChange,
724
+ openLabel = "Open options",
725
+ options,
726
+ placeholder = "Search options",
727
+ readOnly = false,
728
+ required = false,
729
+ value,
730
+ ...props
731
+ }, ref) => {
732
+ const generatedId = useId();
733
+ const inputId = id ?? generatedId;
734
+ const descriptionId = description ? `${inputId}-description` : void 0;
735
+ const errorId = error ? `${inputId}-error` : void 0;
736
+ const isInvalid = invalid || Boolean(error);
737
+ const selectedValue = findOption(options, value);
738
+ const defaultSelectedValue = findOption(options, defaultValue);
739
+ const describedBy = [descriptionId, errorId].filter(Boolean).join(" ");
740
+ return /* @__PURE__ */ jsxs(
741
+ Combobox$1.Root,
742
+ {
743
+ defaultInputValue,
744
+ defaultValue: defaultSelectedValue,
745
+ disabled,
746
+ inputRef,
747
+ inputValue,
748
+ isItemEqualToValue: (item, selectedItem) => item.value === selectedItem.value,
749
+ itemToStringLabel: getOptionText,
750
+ itemToStringValue: (option) => option.value,
751
+ name,
752
+ onInputValueChange: (nextInputValue) => onInputValueChange?.(nextInputValue),
753
+ onValueChange: (nextValue) => onValueChange?.(nextValue?.value ?? null),
754
+ readOnly,
755
+ required,
756
+ value: selectedValue,
757
+ items: options,
758
+ children: [
759
+ /* @__PURE__ */ jsxs(
760
+ "div",
761
+ {
762
+ ref,
763
+ className: classNames(Combobox_default.root, disabled && Combobox_default.disabled, className),
764
+ "data-invalid": isInvalid ? "" : void 0,
765
+ ...props,
766
+ children: [
767
+ label ? /* @__PURE__ */ jsx("label", { className: Combobox_default.label, htmlFor: inputId, children: label }) : null,
768
+ description ? /* @__PURE__ */ jsx("div", { className: Combobox_default.description, id: descriptionId, children: description }) : null,
769
+ /* @__PURE__ */ jsxs(Combobox$1.InputGroup, { className: classNames(Combobox_default.inputGroup, Combobox_default[comboboxSize]), children: [
770
+ /* @__PURE__ */ jsx(
771
+ Combobox$1.Input,
772
+ {
773
+ "aria-describedby": describedBy || void 0,
774
+ "aria-invalid": isInvalid || void 0,
775
+ className: Combobox_default.input,
776
+ id: inputId,
777
+ placeholder
778
+ }
779
+ ),
780
+ /* @__PURE__ */ jsxs("div", { className: Combobox_default.actions, children: [
781
+ /* @__PURE__ */ jsx(Combobox$1.Clear, { "aria-label": clearLabel, className: Combobox_default.clear, type: "button", children: /* @__PURE__ */ jsx(XIcon, {}) }),
782
+ /* @__PURE__ */ jsx(Combobox$1.Trigger, { "aria-label": openLabel, className: Combobox_default.trigger, type: "button", children: /* @__PURE__ */ jsx(ChevronIcon, {}) })
783
+ ] })
784
+ ] }),
785
+ error ? /* @__PURE__ */ jsx("div", { className: Combobox_default.error, id: errorId, children: error }) : null
786
+ ]
787
+ }
788
+ ),
789
+ /* @__PURE__ */ jsx(Combobox$1.Portal, { children: /* @__PURE__ */ jsx(Combobox$1.Positioner, { className: Combobox_default.positioner, sideOffset: 6, children: /* @__PURE__ */ jsxs(Combobox$1.Popup, { className: Combobox_default.popup, children: [
790
+ /* @__PURE__ */ jsx(Combobox$1.Empty, { className: Combobox_default.empty, children: emptyMessage }),
791
+ /* @__PURE__ */ jsx(Combobox$1.List, { className: Combobox_default.list, children: (option, index) => /* @__PURE__ */ jsxs(
792
+ Combobox$1.Item,
793
+ {
794
+ className: Combobox_default.item,
795
+ disabled: option.disabled,
796
+ index,
797
+ value: option,
798
+ children: [
799
+ /* @__PURE__ */ jsx(Combobox$1.ItemIndicator, { className: Combobox_default.itemIndicator, keepMounted: true, children: /* @__PURE__ */ jsx(CheckIcon2, {}) }),
800
+ /* @__PURE__ */ jsxs("span", { className: Combobox_default.itemText, children: [
801
+ /* @__PURE__ */ jsx("span", { className: Combobox_default.itemLabel, children: option.label }),
802
+ option.description ? /* @__PURE__ */ jsx("span", { className: Combobox_default.itemDescription, children: option.description }) : null
803
+ ] })
804
+ ]
805
+ },
806
+ option.value
807
+ ) })
808
+ ] }) }) })
809
+ ]
810
+ }
811
+ );
812
+ }
813
+ );
814
+ Combobox.displayName = "Combobox";
815
+ function findOption(options, value) {
816
+ if (value == null) {
817
+ return value;
818
+ }
819
+ return options.find((option) => option.value === value) ?? null;
820
+ }
821
+ function getOptionText(option) {
822
+ if (option.textValue) {
823
+ return option.textValue;
824
+ }
825
+ return typeof option.label === "string" ? option.label : option.value;
826
+ }
827
+ function ChevronIcon() {
828
+ return /* @__PURE__ */ jsx("svg", { className: Combobox_default.chevron, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4 6 4 4 4-4" }) });
829
+ }
830
+ function CheckIcon2() {
831
+ return /* @__PURE__ */ jsx("svg", { className: Combobox_default.check, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M3.25 8.25 6.5 11.5l6.25-7" }) });
832
+ }
833
+ function XIcon() {
834
+ return /* @__PURE__ */ jsx("svg", { className: Combobox_default.x, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4.5 4.5 7 7m-7 0 7-7" }) });
835
+ }
836
+
837
+ // src/components/Dialog/Dialog.module.css
838
+ var Dialog_default = {
839
+ trigger: "Dialog_trigger",
840
+ backdrop: "Dialog_backdrop",
841
+ dialogBackdropIn: "Dialog_dialogBackdropIn",
842
+ viewport: "Dialog_viewport",
843
+ popup: "Dialog_popup",
844
+ dialogPopupIn: "Dialog_dialogPopupIn",
845
+ sm: "Dialog_sm",
846
+ md: "Dialog_md",
847
+ lg: "Dialog_lg",
848
+ header: "Dialog_header",
849
+ intro: "Dialog_intro",
850
+ title: "Dialog_title",
851
+ description: "Dialog_description",
852
+ close: "Dialog_close",
853
+ closeIcon: "Dialog_closeIcon",
854
+ content: "Dialog_content",
855
+ footer: "Dialog_footer"
856
+ };
857
+ var Dialog = forwardRef(
858
+ ({
859
+ children,
860
+ className,
861
+ closeLabel = "Close dialog",
862
+ contentClassName,
863
+ defaultOpen,
864
+ description,
865
+ disablePointerDismissal = false,
866
+ footer,
867
+ footerClassName,
868
+ modal = true,
869
+ onOpenChange,
870
+ open,
871
+ showCloseButton = true,
872
+ size = "md",
873
+ title,
874
+ trigger,
875
+ triggerClassName
876
+ }, ref) => {
877
+ return /* @__PURE__ */ jsxs(
878
+ Dialog$1.Root,
879
+ {
880
+ open,
881
+ defaultOpen,
882
+ modal,
883
+ disablePointerDismissal,
884
+ onOpenChange: (nextOpen) => {
885
+ onOpenChange?.(nextOpen);
886
+ },
887
+ children: [
888
+ trigger ? /* @__PURE__ */ jsx(Dialog$1.Trigger, { className: classNames(Dialog_default.trigger, triggerClassName), children: trigger }) : null,
889
+ /* @__PURE__ */ jsxs(Dialog$1.Portal, { children: [
890
+ /* @__PURE__ */ jsx(Dialog$1.Backdrop, { className: Dialog_default.backdrop }),
891
+ /* @__PURE__ */ jsx(Dialog$1.Viewport, { className: Dialog_default.viewport, children: /* @__PURE__ */ jsxs(
892
+ Dialog$1.Popup,
893
+ {
894
+ ref,
895
+ className: classNames(Dialog_default.popup, Dialog_default[size], className),
896
+ children: [
897
+ /* @__PURE__ */ jsxs("div", { className: Dialog_default.header, children: [
898
+ /* @__PURE__ */ jsxs("div", { className: Dialog_default.intro, children: [
899
+ /* @__PURE__ */ jsx(Dialog$1.Title, { className: Dialog_default.title, children: title }),
900
+ description ? /* @__PURE__ */ jsx(Dialog$1.Description, { className: Dialog_default.description, children: description }) : null
901
+ ] }),
902
+ showCloseButton ? /* @__PURE__ */ jsx(Dialog$1.Close, { className: Dialog_default.close, "aria-label": closeLabel, children: /* @__PURE__ */ jsx(CloseIcon2, {}) }) : null
903
+ ] }),
904
+ children ? /* @__PURE__ */ jsx("div", { className: classNames(Dialog_default.content, contentClassName), children }) : null,
905
+ footer ? /* @__PURE__ */ jsx("div", { className: classNames(Dialog_default.footer, footerClassName), children: footer }) : null
906
+ ]
907
+ }
908
+ ) })
909
+ ] })
910
+ ]
911
+ }
912
+ );
913
+ }
914
+ );
915
+ Dialog.displayName = "Dialog";
916
+ function CloseIcon2() {
917
+ return /* @__PURE__ */ jsx("svg", { className: Dialog_default.closeIcon, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4 4 8 8M12 4l-8 8" }) });
918
+ }
919
+
920
+ // src/components/Command/Command.module.css
921
+ var Command_default = {
922
+ root: "Command_root",
923
+ search: "Command_search",
924
+ sm: "Command_sm",
925
+ md: "Command_md",
926
+ icon: "Command_icon",
927
+ input: "Command_input",
928
+ results: "Command_results",
929
+ group: "Command_group",
930
+ heading: "Command_heading",
931
+ items: "Command_items",
932
+ item: "Command_item",
933
+ itemText: "Command_itemText",
934
+ itemLabel: "Command_itemLabel",
935
+ itemDescription: "Command_itemDescription",
936
+ shortcut: "Command_shortcut",
937
+ empty: "Command_empty",
938
+ dialog: "Command_dialog",
939
+ dialogContent: "Command_dialogContent",
940
+ visuallyHidden: "Command_visuallyHidden"
941
+ };
942
+ var Command = forwardRef(
943
+ ({
944
+ ariaLabel = "Command menu",
945
+ className,
946
+ defaultQuery = "",
947
+ emptyMessage = "No commands found.",
948
+ groups,
949
+ inputLabel = "Search commands",
950
+ onActionSelect,
951
+ onQueryChange,
952
+ placeholder = "Search commands...",
953
+ query,
954
+ size = "md",
955
+ ...props
956
+ }, ref) => {
957
+ const generatedId = useId();
958
+ const [internalQuery, setInternalQuery] = useState(defaultQuery);
959
+ const [activeId, setActiveId] = useState(null);
960
+ const searchQuery = query ?? internalQuery;
961
+ const filteredGroups = useMemo(() => filterGroups(groups, searchQuery), [groups, searchQuery]);
962
+ const enabledActions = useMemo(
963
+ () => filteredGroups.flatMap((group) => group.actions).filter((action) => !action.disabled),
964
+ [filteredGroups]
965
+ );
966
+ const activeAction = enabledActions.find((action) => action.id === activeId) ?? null;
967
+ const activeOptionId = activeAction ? getOptionId(generatedId, activeAction.id) : void 0;
968
+ useEffect(() => {
969
+ if (enabledActions.length === 0) {
970
+ setActiveId(null);
971
+ return;
972
+ }
973
+ if (!activeId || !enabledActions.some((action) => action.id === activeId)) {
974
+ setActiveId(enabledActions[0]?.id ?? null);
975
+ }
976
+ }, [activeId, enabledActions]);
977
+ const handleQueryChange = (event) => {
978
+ const nextQuery = event.target.value;
979
+ setInternalQuery(nextQuery);
980
+ onQueryChange?.(nextQuery);
981
+ };
982
+ const handleKeyDown = (event) => {
983
+ if (enabledActions.length === 0) {
984
+ return;
985
+ }
986
+ if (event.key === "ArrowDown") {
987
+ event.preventDefault();
988
+ setActiveId(getNextActionId(enabledActions, activeId, 1));
989
+ }
990
+ if (event.key === "ArrowUp") {
991
+ event.preventDefault();
992
+ setActiveId(getNextActionId(enabledActions, activeId, -1));
993
+ }
994
+ if (event.key === "Enter" && activeAction) {
995
+ event.preventDefault();
996
+ selectAction(activeAction, onActionSelect);
997
+ }
998
+ };
999
+ return /* @__PURE__ */ jsxs(
1000
+ "div",
1001
+ {
1002
+ ref,
1003
+ className: classNames(Command_default.root, Command_default[size], className),
1004
+ role: "combobox",
1005
+ "aria-expanded": "true",
1006
+ "aria-haspopup": "listbox",
1007
+ "aria-label": ariaLabel,
1008
+ "aria-owns": `${generatedId}-listbox`,
1009
+ ...props,
1010
+ children: [
1011
+ /* @__PURE__ */ jsxs("div", { className: Command_default.search, children: [
1012
+ /* @__PURE__ */ jsx(SearchIcon, {}),
1013
+ /* @__PURE__ */ jsx("label", { className: Command_default.visuallyHidden, htmlFor: `${generatedId}-input`, children: inputLabel }),
1014
+ /* @__PURE__ */ jsx(
1015
+ "input",
1016
+ {
1017
+ "aria-activedescendant": activeOptionId,
1018
+ "aria-autocomplete": "list",
1019
+ "aria-controls": `${generatedId}-listbox`,
1020
+ className: Command_default.input,
1021
+ id: `${generatedId}-input`,
1022
+ onChange: handleQueryChange,
1023
+ onKeyDown: handleKeyDown,
1024
+ placeholder,
1025
+ role: "searchbox",
1026
+ value: searchQuery
1027
+ }
1028
+ )
1029
+ ] }),
1030
+ /* @__PURE__ */ jsx("div", { className: Command_default.results, id: `${generatedId}-listbox`, role: "listbox", children: enabledActions.length === 0 ? /* @__PURE__ */ jsx("div", { className: Command_default.empty, role: "status", children: emptyMessage }) : filteredGroups.map((group, groupIndex) => /* @__PURE__ */ jsxs("div", { className: Command_default.group, children: [
1031
+ group.heading ? /* @__PURE__ */ jsx("div", { className: Command_default.heading, children: group.heading }) : null,
1032
+ /* @__PURE__ */ jsx("div", { className: Command_default.items, children: group.actions.map(renderAction) })
1033
+ ] }, getGroupKey(group, groupIndex))) })
1034
+ ]
1035
+ }
1036
+ );
1037
+ function renderAction(action) {
1038
+ const isActive = action.id === activeId;
1039
+ return /* @__PURE__ */ jsxs(
1040
+ "button",
1041
+ {
1042
+ "aria-disabled": action.disabled ? "true" : void 0,
1043
+ "aria-selected": isActive,
1044
+ className: Command_default.item,
1045
+ disabled: action.disabled,
1046
+ id: getOptionId(generatedId, action.id),
1047
+ onClick: () => selectAction(action, onActionSelect),
1048
+ onMouseEnter: () => {
1049
+ if (!action.disabled) {
1050
+ setActiveId(action.id);
1051
+ }
1052
+ },
1053
+ role: "option",
1054
+ type: "button",
1055
+ children: [
1056
+ /* @__PURE__ */ jsxs("span", { className: Command_default.itemText, children: [
1057
+ /* @__PURE__ */ jsx("span", { className: Command_default.itemLabel, children: action.label }),
1058
+ action.description ? /* @__PURE__ */ jsx("span", { className: Command_default.itemDescription, children: action.description }) : null
1059
+ ] }),
1060
+ action.shortcut ? /* @__PURE__ */ jsx("span", { className: Command_default.shortcut, children: action.shortcut }) : null
1061
+ ]
1062
+ },
1063
+ action.id
1064
+ );
1065
+ }
1066
+ }
1067
+ );
1068
+ Command.displayName = "Command";
1069
+ var CommandDialog = forwardRef(
1070
+ ({
1071
+ className,
1072
+ closeLabel,
1073
+ contentClassName,
1074
+ defaultOpen,
1075
+ description,
1076
+ disablePointerDismissal,
1077
+ modal,
1078
+ onOpenChange,
1079
+ open,
1080
+ showCloseButton,
1081
+ title,
1082
+ trigger,
1083
+ triggerClassName,
1084
+ ...commandProps
1085
+ }, ref) => /* @__PURE__ */ jsx(
1086
+ Dialog,
1087
+ {
1088
+ className: classNames(Command_default.dialog, className),
1089
+ contentClassName: classNames(Command_default.dialogContent, contentClassName),
1090
+ size: "lg",
1091
+ title,
1092
+ ...closeLabel !== void 0 ? { closeLabel } : {},
1093
+ ...defaultOpen !== void 0 ? { defaultOpen } : {},
1094
+ ...description !== void 0 ? { description } : {},
1095
+ ...disablePointerDismissal !== void 0 ? { disablePointerDismissal } : {},
1096
+ ...modal !== void 0 ? { modal } : {},
1097
+ ...onOpenChange !== void 0 ? { onOpenChange } : {},
1098
+ ...open !== void 0 ? { open } : {},
1099
+ ...showCloseButton !== void 0 ? { showCloseButton } : {},
1100
+ ...trigger !== void 0 ? { trigger } : {},
1101
+ ...triggerClassName !== void 0 ? { triggerClassName } : {},
1102
+ children: /* @__PURE__ */ jsx(Command, { ref, ...commandProps })
1103
+ }
1104
+ )
1105
+ );
1106
+ CommandDialog.displayName = "CommandDialog";
1107
+ function filterGroups(groups, query) {
1108
+ const normalizedQuery = query.trim().toLowerCase();
1109
+ if (!normalizedQuery) {
1110
+ return groups;
1111
+ }
1112
+ return groups.map((group) => ({
1113
+ ...group,
1114
+ actions: group.actions.filter(
1115
+ (action) => getActionSearchText(action).includes(normalizedQuery)
1116
+ )
1117
+ })).filter((group) => group.actions.length > 0);
1118
+ }
1119
+ function getActionSearchText(action) {
1120
+ return [
1121
+ getNodeText(action.label),
1122
+ getNodeText(action.description),
1123
+ action.id,
1124
+ ...action.keywords ?? []
1125
+ ].join(" ").toLowerCase();
1126
+ }
1127
+ function getNodeText(value) {
1128
+ return typeof value === "string" || typeof value === "number" ? String(value) : "";
1129
+ }
1130
+ function getNextActionId(actions, activeId, direction) {
1131
+ const activeIndex = Math.max(
1132
+ actions.findIndex((action) => action.id === activeId),
1133
+ 0
1134
+ );
1135
+ const nextIndex = (activeIndex + direction + actions.length) % actions.length;
1136
+ return actions[nextIndex]?.id ?? null;
1137
+ }
1138
+ function selectAction(action, onActionSelect) {
1139
+ if (action.disabled) {
1140
+ return;
1141
+ }
1142
+ action.onSelect?.();
1143
+ onActionSelect?.(action);
1144
+ }
1145
+ function getOptionId(rootId, actionId) {
1146
+ return `${rootId}-option-${actionId}`;
1147
+ }
1148
+ function getGroupKey(group, index) {
1149
+ return typeof group.heading === "string" ? `${group.heading}-${index}` : index;
1150
+ }
1151
+ function SearchIcon() {
1152
+ return /* @__PURE__ */ jsxs("svg", { className: Command_default.icon, viewBox: "0 0 16 16", "aria-hidden": "true", children: [
1153
+ /* @__PURE__ */ jsx("path", { d: "m11.25 11.25 2.5 2.5" }),
1154
+ /* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "4.25" })
1155
+ ] });
1156
+ }
1157
+
1158
+ // src/components/ContextMenu/ContextMenu.module.css
1159
+ var ContextMenu_default = {
1160
+ trigger: "ContextMenu_trigger",
1161
+ disabled: "ContextMenu_disabled",
1162
+ positioner: "ContextMenu_positioner",
1163
+ popup: "ContextMenu_popup",
1164
+ contextMenuIn: "ContextMenu_contextMenuIn",
1165
+ sm: "ContextMenu_sm",
1166
+ md: "ContextMenu_md",
1167
+ items: "ContextMenu_items",
1168
+ item: "ContextMenu_item",
1169
+ destructive: "ContextMenu_destructive",
1170
+ label: "ContextMenu_label",
1171
+ description: "ContextMenu_description",
1172
+ separator: "ContextMenu_separator",
1173
+ arrow: "ContextMenu_arrow"
1174
+ };
1175
+ var ContextMenu = forwardRef(
1176
+ ({
1177
+ align = "start",
1178
+ children,
1179
+ className,
1180
+ defaultOpen,
1181
+ disabled = false,
1182
+ items,
1183
+ loopFocus = true,
1184
+ onOpenChange,
1185
+ open,
1186
+ showArrow = false,
1187
+ side = "bottom",
1188
+ sideOffset = 8,
1189
+ size = "md",
1190
+ triggerClassName,
1191
+ ...props
1192
+ }, ref) => /* @__PURE__ */ jsxs(
1193
+ ContextMenu$1.Root,
1194
+ {
1195
+ defaultOpen,
1196
+ disabled,
1197
+ loopFocus,
1198
+ onOpenChange: (nextOpen) => onOpenChange?.(nextOpen),
1199
+ open,
1200
+ children: [
1201
+ /* @__PURE__ */ jsx(
1202
+ ContextMenu$1.Trigger,
1203
+ {
1204
+ className: classNames(ContextMenu_default.trigger, disabled && ContextMenu_default.disabled, triggerClassName),
1205
+ "data-disabled": disabled ? "" : void 0,
1206
+ children
1207
+ }
1208
+ ),
1209
+ /* @__PURE__ */ jsx(ContextMenu$1.Portal, { children: /* @__PURE__ */ jsx(
1210
+ ContextMenu$1.Positioner,
1211
+ {
1212
+ align,
1213
+ className: ContextMenu_default.positioner,
1214
+ side,
1215
+ sideOffset,
1216
+ children: /* @__PURE__ */ jsxs(
1217
+ ContextMenu$1.Popup,
1218
+ {
1219
+ ref,
1220
+ className: classNames(ContextMenu_default.popup, ContextMenu_default[size], className),
1221
+ ...props,
1222
+ children: [
1223
+ showArrow ? /* @__PURE__ */ jsx(ContextMenu$1.Arrow, { className: ContextMenu_default.arrow }) : null,
1224
+ /* @__PURE__ */ jsx("div", { className: ContextMenu_default.items, children: items.map(renderItem2) })
1225
+ ]
1226
+ }
1227
+ )
1228
+ }
1229
+ ) })
1230
+ ]
1231
+ }
1232
+ )
1233
+ );
1234
+ ContextMenu.displayName = "ContextMenu";
1235
+ function renderItem2(item, index) {
1236
+ if (item.type === "separator") {
1237
+ return /* @__PURE__ */ jsx(ContextMenu$1.Separator, { className: ContextMenu_default.separator }, `separator-${index}`);
1238
+ }
1239
+ if (item.type === "link") {
1240
+ return /* @__PURE__ */ jsxs(
1241
+ ContextMenu$1.LinkItem,
1242
+ {
1243
+ className: ContextMenu_default.item,
1244
+ closeOnClick: item.closeOnClick ?? true,
1245
+ href: item.href,
1246
+ children: [
1247
+ /* @__PURE__ */ jsx("span", { className: ContextMenu_default.label, children: item.label }),
1248
+ item.description ? /* @__PURE__ */ jsx("span", { className: ContextMenu_default.description, children: item.description }) : null
1249
+ ]
1250
+ },
1251
+ getItemKey2(item.label, index)
1252
+ );
1253
+ }
1254
+ return /* @__PURE__ */ jsxs(
1255
+ ContextMenu$1.Item,
1256
+ {
1257
+ className: classNames(ContextMenu_default.item, item.destructive && ContextMenu_default.destructive),
1258
+ closeOnClick: item.closeOnClick ?? true,
1259
+ disabled: item.disabled ?? false,
1260
+ onClick: () => item.onSelect?.(),
1261
+ children: [
1262
+ /* @__PURE__ */ jsx("span", { className: ContextMenu_default.label, children: item.label }),
1263
+ item.description ? /* @__PURE__ */ jsx("span", { className: ContextMenu_default.description, children: item.description }) : null
1264
+ ]
1265
+ },
1266
+ getItemKey2(item.label, index)
1267
+ );
1268
+ }
1269
+ function getItemKey2(label, index) {
1270
+ if (typeof label === "string") {
1271
+ return `${label}-${index}`;
1272
+ }
1273
+ return index;
1274
+ }
1275
+
1276
+ // src/components/DatePicker/DatePicker.module.css
1277
+ var DatePicker_default = {
1278
+ root: "DatePicker_root",
1279
+ disabled: "DatePicker_disabled",
1280
+ label: "DatePicker_label",
1281
+ description: "DatePicker_description",
1282
+ error: "DatePicker_error",
1283
+ group: "DatePicker_group",
1284
+ icon: "DatePicker_icon",
1285
+ clear: "DatePicker_clear",
1286
+ input: "DatePicker_input",
1287
+ calendar: "DatePicker_calendar",
1288
+ x: "DatePicker_x",
1289
+ sm: "DatePicker_sm",
1290
+ md: "DatePicker_md",
1291
+ lg: "DatePicker_lg"
1292
+ };
1293
+ var DatePicker = forwardRef(
1294
+ ({
1295
+ className,
1296
+ clearLabel = "Clear date",
1297
+ datePickerSize = "md",
1298
+ description,
1299
+ disabled = false,
1300
+ error,
1301
+ id,
1302
+ inputClassName,
1303
+ invalid = false,
1304
+ label,
1305
+ onChange,
1306
+ onValueChange,
1307
+ readOnly = false,
1308
+ showClearButton = true,
1309
+ value,
1310
+ defaultValue,
1311
+ ...props
1312
+ }, ref) => {
1313
+ const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue ?? "");
1314
+ const generatedId = useId();
1315
+ const inputId = id ?? generatedId;
1316
+ const descriptionId = description ? `${inputId}-description` : void 0;
1317
+ const errorId = error ? `${inputId}-error` : void 0;
1318
+ const describedBy = [descriptionId, errorId].filter(Boolean).join(" ");
1319
+ const isInvalid = invalid || Boolean(error);
1320
+ const hasControlledValue = value !== void 0;
1321
+ const currentValue = hasControlledValue ? value : uncontrolledValue;
1322
+ const hasValue = Boolean(currentValue);
1323
+ return /* @__PURE__ */ jsxs(
1324
+ "div",
1325
+ {
1326
+ className: classNames(
1327
+ DatePicker_default.root,
1328
+ DatePicker_default[datePickerSize],
1329
+ disabled && DatePicker_default.disabled,
1330
+ className
1331
+ ),
1332
+ "data-invalid": isInvalid ? "" : void 0,
1333
+ children: [
1334
+ label ? /* @__PURE__ */ jsx("label", { className: DatePicker_default.label, htmlFor: inputId, children: label }) : null,
1335
+ description ? /* @__PURE__ */ jsx("div", { className: DatePicker_default.description, id: descriptionId, children: description }) : null,
1336
+ /* @__PURE__ */ jsxs("div", { className: DatePicker_default.group, "data-readonly": readOnly ? "" : void 0, children: [
1337
+ /* @__PURE__ */ jsx("span", { className: DatePicker_default.icon, "aria-hidden": "true", children: /* @__PURE__ */ jsx(CalendarIcon, {}) }),
1338
+ /* @__PURE__ */ jsx(
1339
+ "input",
1340
+ {
1341
+ ref,
1342
+ "aria-describedby": describedBy || void 0,
1343
+ "aria-invalid": isInvalid || void 0,
1344
+ className: classNames(DatePicker_default.input, inputClassName),
1345
+ disabled,
1346
+ id: inputId,
1347
+ onChange: (event) => {
1348
+ if (!hasControlledValue) {
1349
+ setUncontrolledValue(event.currentTarget.value);
1350
+ }
1351
+ onChange?.(event);
1352
+ onValueChange?.(event.currentTarget.value);
1353
+ },
1354
+ readOnly,
1355
+ type: "date",
1356
+ value: currentValue,
1357
+ ...props
1358
+ }
1359
+ ),
1360
+ showClearButton && hasValue && !disabled && !readOnly ? /* @__PURE__ */ jsx(
1361
+ "button",
1362
+ {
1363
+ "aria-label": clearLabel,
1364
+ className: DatePicker_default.clear,
1365
+ onClick: () => {
1366
+ if (!hasControlledValue) {
1367
+ setUncontrolledValue("");
1368
+ }
1369
+ onValueChange?.("");
1370
+ },
1371
+ type: "button",
1372
+ children: /* @__PURE__ */ jsx(XIcon2, {})
1373
+ }
1374
+ ) : null
1375
+ ] }),
1376
+ error ? /* @__PURE__ */ jsx("div", { className: DatePicker_default.error, id: errorId, children: error }) : null
1377
+ ]
1378
+ }
1379
+ );
1380
+ }
1381
+ );
1382
+ DatePicker.displayName = "DatePicker";
1383
+ function CalendarIcon() {
1384
+ return /* @__PURE__ */ jsx("svg", { className: DatePicker_default.calendar, viewBox: "0 0 16 16", children: /* @__PURE__ */ jsx("path", { d: "M4.5 2.5v2m7-2v2M2.75 6.25h10.5M3.5 3.75h9A1.25 1.25 0 0 1 13.75 5v7.5a1.25 1.25 0 0 1-1.25 1.25h-9a1.25 1.25 0 0 1-1.25-1.25V5A1.25 1.25 0 0 1 3.5 3.75Z" }) });
1385
+ }
1386
+ function XIcon2() {
1387
+ return /* @__PURE__ */ jsx("svg", { className: DatePicker_default.x, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4.5 4.5 7 7m-7 0 7-7" }) });
1388
+ }
1389
+
1390
+ // src/components/DropdownMenu/DropdownMenu.module.css
1391
+ var DropdownMenu_default = {
1392
+ trigger: "DropdownMenu_trigger",
1393
+ positioner: "DropdownMenu_positioner",
1394
+ popup: "DropdownMenu_popup",
1395
+ dropdownMenuIn: "DropdownMenu_dropdownMenuIn",
1396
+ sm: "DropdownMenu_sm",
1397
+ md: "DropdownMenu_md",
1398
+ items: "DropdownMenu_items",
1399
+ item: "DropdownMenu_item",
1400
+ destructive: "DropdownMenu_destructive",
1401
+ label: "DropdownMenu_label",
1402
+ description: "DropdownMenu_description",
1403
+ separator: "DropdownMenu_separator",
1404
+ arrow: "DropdownMenu_arrow"
1405
+ };
1406
+ var DropdownMenu = forwardRef(
1407
+ ({
1408
+ align = "end",
1409
+ className,
1410
+ defaultOpen,
1411
+ disabled = false,
1412
+ items,
1413
+ loopFocus = true,
1414
+ modal = true,
1415
+ onOpenChange,
1416
+ open,
1417
+ showArrow = true,
1418
+ side = "bottom",
1419
+ sideOffset = 8,
1420
+ size = "md",
1421
+ trigger,
1422
+ triggerClassName,
1423
+ ...props
1424
+ }, ref) => /* @__PURE__ */ jsxs(
1425
+ Menu.Root,
1426
+ {
1427
+ defaultOpen,
1428
+ disabled,
1429
+ loopFocus,
1430
+ modal,
1431
+ onOpenChange: (nextOpen) => onOpenChange?.(nextOpen),
1432
+ open,
1433
+ children: [
1434
+ /* @__PURE__ */ jsx(
1435
+ Menu.Trigger,
1436
+ {
1437
+ className: classNames(DropdownMenu_default.trigger, triggerClassName),
1438
+ disabled,
1439
+ children: trigger
1440
+ }
1441
+ ),
1442
+ /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(
1443
+ Menu.Positioner,
1444
+ {
1445
+ className: DropdownMenu_default.positioner,
1446
+ align,
1447
+ side,
1448
+ sideOffset,
1449
+ children: /* @__PURE__ */ jsxs(
1450
+ Menu.Popup,
1451
+ {
1452
+ ref,
1453
+ className: classNames(DropdownMenu_default.popup, DropdownMenu_default[size], className),
1454
+ ...props,
1455
+ children: [
1456
+ showArrow ? /* @__PURE__ */ jsx(Menu.Arrow, { className: DropdownMenu_default.arrow }) : null,
1457
+ /* @__PURE__ */ jsx("div", { className: DropdownMenu_default.items, children: items.map(renderItem3) })
1458
+ ]
1459
+ }
1460
+ )
1461
+ }
1462
+ ) })
1463
+ ]
1464
+ }
1465
+ )
1466
+ );
1467
+ DropdownMenu.displayName = "DropdownMenu";
1468
+ function renderItem3(item, index) {
1469
+ if (item.type === "separator") {
1470
+ return /* @__PURE__ */ jsx(Menu.Separator, { className: DropdownMenu_default.separator }, `separator-${index}`);
1471
+ }
1472
+ if (item.type === "link") {
1473
+ return /* @__PURE__ */ jsxs(
1474
+ Menu.LinkItem,
1475
+ {
1476
+ className: DropdownMenu_default.item,
1477
+ closeOnClick: item.closeOnClick ?? true,
1478
+ href: item.href,
1479
+ children: [
1480
+ /* @__PURE__ */ jsx("span", { className: DropdownMenu_default.label, children: item.label }),
1481
+ item.description ? /* @__PURE__ */ jsx("span", { className: DropdownMenu_default.description, children: item.description }) : null
1482
+ ]
1483
+ },
1484
+ getItemKey3(item.label, index)
1485
+ );
1486
+ }
1487
+ return /* @__PURE__ */ jsxs(
1488
+ Menu.Item,
1489
+ {
1490
+ className: classNames(DropdownMenu_default.item, item.destructive && DropdownMenu_default.destructive),
1491
+ closeOnClick: item.closeOnClick ?? true,
1492
+ disabled: item.disabled ?? false,
1493
+ onClick: () => item.onSelect?.(),
1494
+ children: [
1495
+ /* @__PURE__ */ jsx("span", { className: DropdownMenu_default.label, children: item.label }),
1496
+ item.description ? /* @__PURE__ */ jsx("span", { className: DropdownMenu_default.description, children: item.description }) : null
1497
+ ]
1498
+ },
1499
+ getItemKey3(item.label, index)
1500
+ );
1501
+ }
1502
+ function getItemKey3(label, index) {
1503
+ if (typeof label === "string") {
1504
+ return `${label}-${index}`;
1505
+ }
1506
+ return index;
1507
+ }
1508
+
1509
+ // src/components/Drawer/Drawer.module.css
1510
+ var Drawer_default = {
1511
+ trigger: "Drawer_trigger",
1512
+ backdrop: "Drawer_backdrop",
1513
+ drawerBackdropIn: "Drawer_drawerBackdropIn",
1514
+ viewport: "Drawer_viewport",
1515
+ right: "Drawer_right",
1516
+ left: "Drawer_left",
1517
+ top: "Drawer_top",
1518
+ bottom: "Drawer_bottom",
1519
+ drawer: "Drawer_drawer",
1520
+ drawerInRight: "Drawer_drawerInRight",
1521
+ drawerInLeft: "Drawer_drawerInLeft",
1522
+ drawerInTop: "Drawer_drawerInTop",
1523
+ drawerInBottom: "Drawer_drawerInBottom",
1524
+ sm: "Drawer_sm",
1525
+ md: "Drawer_md",
1526
+ lg: "Drawer_lg",
1527
+ full: "Drawer_full",
1528
+ header: "Drawer_header",
1529
+ intro: "Drawer_intro",
1530
+ title: "Drawer_title",
1531
+ description: "Drawer_description",
1532
+ close: "Drawer_close",
1533
+ closeIcon: "Drawer_closeIcon",
1534
+ content: "Drawer_content",
1535
+ footer: "Drawer_footer"
1536
+ };
1537
+ var Drawer = forwardRef(
1538
+ ({
1539
+ children,
1540
+ className,
1541
+ closeLabel = "Close drawer",
1542
+ contentClassName,
1543
+ defaultOpen,
1544
+ description,
1545
+ disablePointerDismissal = false,
1546
+ footer,
1547
+ footerClassName,
1548
+ modal = true,
1549
+ onOpenChange,
1550
+ open,
1551
+ showCloseButton = true,
1552
+ side = "right",
1553
+ size = "md",
1554
+ title,
1555
+ trigger,
1556
+ triggerClassName
1557
+ }, ref) => /* @__PURE__ */ jsxs(
1558
+ Dialog$1.Root,
1559
+ {
1560
+ defaultOpen,
1561
+ disablePointerDismissal,
1562
+ modal,
1563
+ onOpenChange: (nextOpen) => onOpenChange?.(nextOpen),
1564
+ open,
1565
+ children: [
1566
+ trigger ? /* @__PURE__ */ jsx(Dialog$1.Trigger, { className: classNames(Drawer_default.trigger, triggerClassName), children: trigger }) : null,
1567
+ /* @__PURE__ */ jsxs(Dialog$1.Portal, { children: [
1568
+ /* @__PURE__ */ jsx(Dialog$1.Backdrop, { className: Drawer_default.backdrop }),
1569
+ /* @__PURE__ */ jsx(Dialog$1.Viewport, { className: classNames(Drawer_default.viewport, Drawer_default[side]), children: /* @__PURE__ */ jsxs(
1570
+ Dialog$1.Popup,
1571
+ {
1572
+ ref,
1573
+ className: classNames(Drawer_default.drawer, Drawer_default[side], Drawer_default[size], className),
1574
+ children: [
1575
+ /* @__PURE__ */ jsxs("div", { className: Drawer_default.header, children: [
1576
+ /* @__PURE__ */ jsxs("div", { className: Drawer_default.intro, children: [
1577
+ /* @__PURE__ */ jsx(Dialog$1.Title, { className: Drawer_default.title, children: title }),
1578
+ description ? /* @__PURE__ */ jsx(Dialog$1.Description, { className: Drawer_default.description, children: description }) : null
1579
+ ] }),
1580
+ showCloseButton ? /* @__PURE__ */ jsx(Dialog$1.Close, { className: Drawer_default.close, "aria-label": closeLabel, children: /* @__PURE__ */ jsx(CloseIcon3, {}) }) : null
1581
+ ] }),
1582
+ children ? /* @__PURE__ */ jsx("div", { className: classNames(Drawer_default.content, contentClassName), children }) : null,
1583
+ footer ? /* @__PURE__ */ jsx("div", { className: classNames(Drawer_default.footer, footerClassName), children: footer }) : null
1584
+ ]
1585
+ }
1586
+ ) })
1587
+ ] })
1588
+ ]
1589
+ }
1590
+ )
1591
+ );
1592
+ Drawer.displayName = "Drawer";
1593
+ function CloseIcon3() {
1594
+ return /* @__PURE__ */ jsx("svg", { className: Drawer_default.closeIcon, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4 4 8 8M12 4l-8 8" }) });
1595
+ }
1596
+
1597
+ // src/components/EmptyState/EmptyState.module.css
1598
+ var EmptyState_default = {
1599
+ root: "EmptyState_root",
1600
+ compact: "EmptyState_compact",
1601
+ comfortable: "EmptyState_comfortable",
1602
+ start: "EmptyState_start",
1603
+ center: "EmptyState_center",
1604
+ icon: "EmptyState_icon",
1605
+ media: "EmptyState_media",
1606
+ copy: "EmptyState_copy",
1607
+ title: "EmptyState_title",
1608
+ description: "EmptyState_description",
1609
+ actions: "EmptyState_actions",
1610
+ defaultIcon: "EmptyState_defaultIcon",
1611
+ neutral: "EmptyState_neutral",
1612
+ info: "EmptyState_info",
1613
+ success: "EmptyState_success",
1614
+ warning: "EmptyState_warning",
1615
+ danger: "EmptyState_danger"
1616
+ };
1617
+ var EmptyState = forwardRef(
1618
+ ({
1619
+ action,
1620
+ align = "center",
1621
+ as = "section",
1622
+ className,
1623
+ density = "comfortable",
1624
+ description,
1625
+ icon,
1626
+ media,
1627
+ secondaryAction,
1628
+ title,
1629
+ tone = "neutral",
1630
+ ...props
1631
+ }, ref) => {
1632
+ const generatedId = useId();
1633
+ const titleId = `${generatedId}-title`;
1634
+ const labelledBy = props["aria-label"] || props["aria-labelledby"] ? void 0 : titleId;
1635
+ const content = /* @__PURE__ */ jsxs(Fragment, { children: [
1636
+ media ? /* @__PURE__ */ jsx("div", { className: EmptyState_default.media, children: media }) : null,
1637
+ !media ? /* @__PURE__ */ jsx("div", { className: EmptyState_default.icon, "aria-hidden": "true", children: icon ?? /* @__PURE__ */ jsx(DefaultIcon3, {}) }) : null,
1638
+ /* @__PURE__ */ jsxs("div", { className: EmptyState_default.copy, children: [
1639
+ /* @__PURE__ */ jsx("h2", { className: EmptyState_default.title, id: titleId, children: title }),
1640
+ description ? /* @__PURE__ */ jsx("p", { className: EmptyState_default.description, children: description }) : null
1641
+ ] }),
1642
+ action || secondaryAction ? /* @__PURE__ */ jsxs("div", { className: EmptyState_default.actions, children: [
1643
+ action,
1644
+ secondaryAction
1645
+ ] }) : null
1646
+ ] });
1647
+ const rootProps = {
1648
+ "aria-labelledby": labelledBy,
1649
+ className: classNames(EmptyState_default.root, EmptyState_default[align], EmptyState_default[density], EmptyState_default[tone], className),
1650
+ ...props
1651
+ };
1652
+ if (as === "div") {
1653
+ return /* @__PURE__ */ jsx("div", { ref, ...rootProps, children: content });
1654
+ }
1655
+ return /* @__PURE__ */ jsx("section", { ref, ...rootProps, children: content });
1656
+ }
1657
+ );
1658
+ EmptyState.displayName = "EmptyState";
1659
+ function DefaultIcon3() {
1660
+ return /* @__PURE__ */ jsxs("svg", { className: EmptyState_default.defaultIcon, viewBox: "0 0 24 24", children: [
1661
+ /* @__PURE__ */ jsx("path", { d: "M6 7.5h12M8 12h8M10 16.5h4" }),
1662
+ /* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "16", height: "16", rx: "3" })
1663
+ ] });
1664
+ }
1665
+
1666
+ // src/components/Fieldset/Fieldset.module.css
1667
+ var Fieldset_default = {
1668
+ root: "Fieldset_root",
1669
+ plain: "Fieldset_plain",
1670
+ outlined: "Fieldset_outlined",
1671
+ filled: "Fieldset_filled",
1672
+ compact: "Fieldset_compact",
1673
+ comfortable: "Fieldset_comfortable",
1674
+ disabled: "Fieldset_disabled",
1675
+ header: "Fieldset_header",
1676
+ legend: "Fieldset_legend",
1677
+ required: "Fieldset_required",
1678
+ description: "Fieldset_description",
1679
+ content: "Fieldset_content",
1680
+ error: "Fieldset_error"
1681
+ };
1682
+ var Fieldset = forwardRef(
1683
+ ({
1684
+ children,
1685
+ className,
1686
+ density = "comfortable",
1687
+ description,
1688
+ disabled = false,
1689
+ error,
1690
+ legend,
1691
+ required = false,
1692
+ variant = "plain",
1693
+ ...props
1694
+ }, ref) => {
1695
+ const generatedId = useId();
1696
+ const descriptionId = description ? `${generatedId}-description` : void 0;
1697
+ const errorId = error ? `${generatedId}-error` : void 0;
1698
+ const describedBy = [descriptionId, errorId].filter(Boolean).join(" ");
1699
+ const invalid = Boolean(error);
1700
+ return /* @__PURE__ */ jsxs(
1701
+ Fieldset$1.Root,
1702
+ {
1703
+ ref,
1704
+ "aria-describedby": describedBy || void 0,
1705
+ "aria-invalid": invalid || void 0,
1706
+ className: classNames(
1707
+ Fieldset_default.root,
1708
+ Fieldset_default[variant],
1709
+ Fieldset_default[density],
1710
+ disabled && Fieldset_default.disabled,
1711
+ className
1712
+ ),
1713
+ "data-invalid": invalid ? "" : void 0,
1714
+ disabled,
1715
+ ...props,
1716
+ children: [
1717
+ /* @__PURE__ */ jsxs("div", { className: Fieldset_default.header, children: [
1718
+ /* @__PURE__ */ jsxs(Fieldset$1.Legend, { className: Fieldset_default.legend, children: [
1719
+ /* @__PURE__ */ jsx("span", { children: legend }),
1720
+ required ? /* @__PURE__ */ jsx("span", { className: Fieldset_default.required, "aria-hidden": "true", children: "*" }) : null
1721
+ ] }),
1722
+ description ? /* @__PURE__ */ jsx("div", { className: Fieldset_default.description, id: descriptionId, children: description }) : null
1723
+ ] }),
1724
+ /* @__PURE__ */ jsx("div", { className: Fieldset_default.content, children }),
1725
+ error ? /* @__PURE__ */ jsx("div", { className: Fieldset_default.error, id: errorId, role: "alert", children: error }) : null
1726
+ ]
1727
+ }
1728
+ );
1729
+ }
1730
+ );
1731
+ Fieldset.displayName = "Fieldset";
1732
+
1733
+ // src/components/FormField/FormField.module.css
1734
+ var FormField_default = {
1735
+ field: "FormField_field",
1736
+ label: "FormField_label",
1737
+ required: "FormField_required",
1738
+ description: "FormField_description",
1739
+ error: "FormField_error"
1740
+ };
1741
+ function FormField({
1742
+ children,
1743
+ className,
1744
+ description,
1745
+ error,
1746
+ id,
1747
+ label,
1748
+ required = false
1749
+ }) {
1750
+ const generatedId = useId();
1751
+ const controlId = id ?? children.props.id ?? `field-${generatedId}`;
1752
+ const descriptionId = description ? `${controlId}-description` : void 0;
1753
+ const errorId = error ? `${controlId}-error` : void 0;
1754
+ const describedBy = [children.props["aria-describedby"], descriptionId, errorId].filter(Boolean).join(" ");
1755
+ const invalid = Boolean(error) || children.props.invalid || children.props["aria-invalid"] === true;
1756
+ const controlProps = {
1757
+ id: controlId,
1758
+ invalid,
1759
+ ...describedBy ? { "aria-describedby": describedBy } : {},
1760
+ ...invalid ? { "aria-invalid": true } : {}
1761
+ };
1762
+ return /* @__PURE__ */ jsxs("div", { className: classNames(FormField_default.field, className), children: [
1763
+ /* @__PURE__ */ jsxs("label", { className: FormField_default.label, htmlFor: controlId, children: [
1764
+ /* @__PURE__ */ jsx("span", { children: label }),
1765
+ required ? /* @__PURE__ */ jsx("span", { className: FormField_default.required, "aria-hidden": "true", children: "*" }) : null
1766
+ ] }),
1767
+ description ? /* @__PURE__ */ jsx("div", { className: FormField_default.description, id: descriptionId, children: description }) : null,
1768
+ cloneElement(children, controlProps),
1769
+ error ? /* @__PURE__ */ jsx("div", { className: FormField_default.error, id: errorId, role: "alert", children: error }) : null
1770
+ ] });
1771
+ }
1772
+
1773
+ // src/components/Input/Input.module.css
1774
+ var Input_default = {
1775
+ input: "Input_input",
1776
+ invalid: "Input_invalid",
1777
+ sm: "Input_sm",
1778
+ md: "Input_md",
1779
+ lg: "Input_lg"
1780
+ };
1781
+ var Input = forwardRef(
1782
+ ({ className, inputSize = "md", invalid = false, ...props }, ref) => {
1783
+ return /* @__PURE__ */ jsx(
1784
+ "input",
1785
+ {
1786
+ ref,
1787
+ className: classNames(
1788
+ Input_default.input,
1789
+ Input_default[inputSize],
1790
+ invalid && Input_default.invalid,
1791
+ className
1792
+ ),
1793
+ "data-invalid": invalid ? "" : void 0,
1794
+ "aria-invalid": invalid || void 0,
1795
+ ...props
1796
+ }
1797
+ );
1798
+ }
1799
+ );
1800
+ Input.displayName = "Input";
1801
+
1802
+ // src/components/Menubar/Menubar.module.css
1803
+ var Menubar_default = {
1804
+ root: "Menubar_root",
1805
+ horizontal: "Menubar_horizontal",
1806
+ vertical: "Menubar_vertical",
1807
+ sm: "Menubar_sm",
1808
+ md: "Menubar_md",
1809
+ trigger: "Menubar_trigger",
1810
+ positioner: "Menubar_positioner",
1811
+ popup: "Menubar_popup",
1812
+ menubarPopupIn: "Menubar_menubarPopupIn",
1813
+ items: "Menubar_items",
1814
+ item: "Menubar_item",
1815
+ destructive: "Menubar_destructive",
1816
+ label: "Menubar_label",
1817
+ description: "Menubar_description",
1818
+ separator: "Menubar_separator",
1819
+ arrow: "Menubar_arrow"
1820
+ };
1821
+ var Menubar = forwardRef(
1822
+ ({
1823
+ align = "start",
1824
+ className,
1825
+ disabled = false,
1826
+ loopFocus = true,
1827
+ menus,
1828
+ modal = true,
1829
+ orientation = "horizontal",
1830
+ popupClassName,
1831
+ showArrow = false,
1832
+ sideOffset = 8,
1833
+ size = "md",
1834
+ ...props
1835
+ }, ref) => /* @__PURE__ */ jsx(
1836
+ Menubar$1,
1837
+ {
1838
+ ref,
1839
+ className: classNames(Menubar_default.root, Menubar_default[orientation], Menubar_default[size], className),
1840
+ disabled,
1841
+ loopFocus,
1842
+ modal,
1843
+ orientation,
1844
+ ...props,
1845
+ children: menus.map((menu, index) => /* @__PURE__ */ jsx(
1846
+ MenubarGroup,
1847
+ {
1848
+ align,
1849
+ disabled: disabled || (menu.disabled ?? false),
1850
+ menu,
1851
+ popupClassName,
1852
+ showArrow,
1853
+ sideOffset,
1854
+ size
1855
+ },
1856
+ getMenuKey(menu.label, index)
1857
+ ))
1858
+ }
1859
+ )
1860
+ );
1861
+ Menubar.displayName = "Menubar";
1862
+ function MenubarGroup({
1863
+ align,
1864
+ disabled,
1865
+ menu,
1866
+ popupClassName,
1867
+ showArrow,
1868
+ sideOffset,
1869
+ size
1870
+ }) {
1871
+ return /* @__PURE__ */ jsxs(
1872
+ Menu.Root,
1873
+ {
1874
+ defaultOpen: menu.defaultOpen,
1875
+ disabled,
1876
+ loopFocus: true,
1877
+ onOpenChange: (nextOpen) => menu.onOpenChange?.(nextOpen),
1878
+ open: menu.open,
1879
+ children: [
1880
+ /* @__PURE__ */ jsx(Menu.Trigger, { className: Menubar_default.trigger, disabled, openOnHover: true, children: menu.label }),
1881
+ /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(
1882
+ Menu.Positioner,
1883
+ {
1884
+ align,
1885
+ className: Menubar_default.positioner,
1886
+ side: "bottom",
1887
+ sideOffset,
1888
+ children: /* @__PURE__ */ jsxs(
1889
+ Menu.Popup,
1890
+ {
1891
+ className: classNames(Menubar_default.popup, Menubar_default[size ?? "md"], popupClassName),
1892
+ children: [
1893
+ showArrow ? /* @__PURE__ */ jsx(Menu.Arrow, { className: Menubar_default.arrow }) : null,
1894
+ /* @__PURE__ */ jsx("div", { className: Menubar_default.items, children: menu.items.map(renderItem4) })
1895
+ ]
1896
+ }
1897
+ )
1898
+ }
1899
+ ) })
1900
+ ]
1901
+ }
1902
+ );
1903
+ }
1904
+ function renderItem4(item, index) {
1905
+ if (item.type === "separator") {
1906
+ return /* @__PURE__ */ jsx(Menu.Separator, { className: Menubar_default.separator }, `separator-${index}`);
1907
+ }
1908
+ if (item.type === "link") {
1909
+ return /* @__PURE__ */ jsxs(
1910
+ Menu.LinkItem,
1911
+ {
1912
+ className: Menubar_default.item,
1913
+ closeOnClick: item.closeOnClick ?? true,
1914
+ href: item.href,
1915
+ children: [
1916
+ /* @__PURE__ */ jsx("span", { className: Menubar_default.label, children: item.label }),
1917
+ item.description ? /* @__PURE__ */ jsx("span", { className: Menubar_default.description, children: item.description }) : null
1918
+ ]
1919
+ },
1920
+ getMenuKey(item.label, index)
1921
+ );
1922
+ }
1923
+ return /* @__PURE__ */ jsxs(
1924
+ Menu.Item,
1925
+ {
1926
+ className: classNames(Menubar_default.item, item.destructive && Menubar_default.destructive),
1927
+ closeOnClick: item.closeOnClick ?? true,
1928
+ disabled: item.disabled ?? false,
1929
+ onClick: () => item.onSelect?.(),
1930
+ children: [
1931
+ /* @__PURE__ */ jsx("span", { className: Menubar_default.label, children: item.label }),
1932
+ item.description ? /* @__PURE__ */ jsx("span", { className: Menubar_default.description, children: item.description }) : null
1933
+ ]
1934
+ },
1935
+ getMenuKey(item.label, index)
1936
+ );
1937
+ }
1938
+ function getMenuKey(label, index) {
1939
+ if (typeof label === "string") {
1940
+ return `${label}-${index}`;
1941
+ }
1942
+ return index;
1943
+ }
1944
+
1945
+ // src/components/NavigationMenu/NavigationMenu.module.css
1946
+ var NavigationMenu_default = {
1947
+ root: "NavigationMenu_root",
1948
+ horizontal: "NavigationMenu_horizontal",
1949
+ vertical: "NavigationMenu_vertical",
1950
+ list: "NavigationMenu_list",
1951
+ item: "NavigationMenu_item",
1952
+ trigger: "NavigationMenu_trigger",
1953
+ topLink: "NavigationMenu_topLink",
1954
+ sm: "NavigationMenu_sm",
1955
+ md: "NavigationMenu_md",
1956
+ icon: "NavigationMenu_icon",
1957
+ positioner: "NavigationMenu_positioner",
1958
+ popup: "NavigationMenu_popup",
1959
+ navigationMenuIn: "NavigationMenu_navigationMenuIn",
1960
+ viewport: "NavigationMenu_viewport",
1961
+ content: "NavigationMenu_content",
1962
+ panel: "NavigationMenu_panel",
1963
+ featured: "NavigationMenu_featured",
1964
+ link: "NavigationMenu_link",
1965
+ eyebrow: "NavigationMenu_eyebrow",
1966
+ featuredLabel: "NavigationMenu_featuredLabel",
1967
+ linkLabel: "NavigationMenu_linkLabel",
1968
+ featuredDescription: "NavigationMenu_featuredDescription",
1969
+ linkDescription: "NavigationMenu_linkDescription",
1970
+ links: "NavigationMenu_links",
1971
+ arrow: "NavigationMenu_arrow"
1972
+ };
1973
+ var NavigationMenu = forwardRef(
1974
+ ({
1975
+ align = "center",
1976
+ className,
1977
+ closeDelay,
1978
+ defaultValue,
1979
+ delay,
1980
+ items,
1981
+ onValueChange,
1982
+ orientation = "horizontal",
1983
+ popupClassName,
1984
+ showArrow = true,
1985
+ side = "bottom",
1986
+ sideOffset = 10,
1987
+ size = "md",
1988
+ value,
1989
+ ...props
1990
+ }, ref) => /* @__PURE__ */ jsxs(
1991
+ NavigationMenu$1.Root,
1992
+ {
1993
+ ref,
1994
+ className: classNames(NavigationMenu_default.root, NavigationMenu_default[orientation], NavigationMenu_default[size], className),
1995
+ closeDelay,
1996
+ defaultValue,
1997
+ delay,
1998
+ onValueChange: (nextValue) => onValueChange?.(nextValue),
1999
+ orientation,
2000
+ value,
2001
+ ...props,
2002
+ children: [
2003
+ /* @__PURE__ */ jsx(NavigationMenu$1.List, { className: NavigationMenu_default.list, children: items.map((item, index) => renderNavigationItem(item, index)) }),
2004
+ /* @__PURE__ */ jsx(NavigationMenu$1.Portal, { children: /* @__PURE__ */ jsx(
2005
+ NavigationMenu$1.Positioner,
2006
+ {
2007
+ align,
2008
+ className: NavigationMenu_default.positioner,
2009
+ side,
2010
+ sideOffset,
2011
+ children: /* @__PURE__ */ jsxs(NavigationMenu$1.Popup, { className: classNames(NavigationMenu_default.popup, popupClassName), children: [
2012
+ showArrow ? /* @__PURE__ */ jsx(NavigationMenu$1.Arrow, { className: NavigationMenu_default.arrow }) : null,
2013
+ /* @__PURE__ */ jsx(NavigationMenu$1.Viewport, { className: NavigationMenu_default.viewport })
2014
+ ] })
2015
+ }
2016
+ ) })
2017
+ ]
2018
+ }
2019
+ )
2020
+ );
2021
+ NavigationMenu.displayName = "NavigationMenu";
2022
+ function renderNavigationItem(item, index) {
2023
+ if (item.type === "section") {
2024
+ return /* @__PURE__ */ jsxs(
2025
+ NavigationMenu$1.Item,
2026
+ {
2027
+ className: NavigationMenu_default.item,
2028
+ value: item.value,
2029
+ children: [
2030
+ /* @__PURE__ */ jsxs(NavigationMenu$1.Trigger, { className: NavigationMenu_default.trigger, disabled: item.disabled ?? false, children: [
2031
+ /* @__PURE__ */ jsx("span", { children: item.label }),
2032
+ /* @__PURE__ */ jsx(NavigationMenu$1.Icon, { className: NavigationMenu_default.icon, children: "\u2304" })
2033
+ ] }),
2034
+ /* @__PURE__ */ jsx(NavigationMenu$1.Content, { className: NavigationMenu_default.content, children: /* @__PURE__ */ jsxs("div", { className: NavigationMenu_default.panel, children: [
2035
+ item.featured ? renderFeaturedItem(item.featured) : null,
2036
+ /* @__PURE__ */ jsx("div", { className: NavigationMenu_default.links, children: item.links.map(renderLinkItem) })
2037
+ ] }) })
2038
+ ]
2039
+ },
2040
+ getItemKey4(item.label, index)
2041
+ );
2042
+ }
2043
+ return /* @__PURE__ */ jsx(NavigationMenu$1.Item, { className: NavigationMenu_default.item, children: /* @__PURE__ */ jsx(
2044
+ NavigationMenu$1.Link,
2045
+ {
2046
+ active: item.active ?? false,
2047
+ "aria-disabled": item.disabled ? "true" : void 0,
2048
+ className: NavigationMenu_default.topLink,
2049
+ href: item.href,
2050
+ children: item.label
2051
+ }
2052
+ ) }, getItemKey4(item.label, index));
2053
+ }
2054
+ function renderFeaturedItem(item) {
2055
+ return /* @__PURE__ */ jsxs(NavigationMenu$1.Link, { className: NavigationMenu_default.featured, closeOnClick: true, href: item.href, children: [
2056
+ item.eyebrow ? /* @__PURE__ */ jsx("span", { className: NavigationMenu_default.eyebrow, children: item.eyebrow }) : null,
2057
+ /* @__PURE__ */ jsx("span", { className: NavigationMenu_default.featuredLabel, children: item.label }),
2058
+ item.description ? /* @__PURE__ */ jsx("span", { className: NavigationMenu_default.featuredDescription, children: item.description }) : null
2059
+ ] });
2060
+ }
2061
+ function renderLinkItem(item, index) {
2062
+ return /* @__PURE__ */ jsxs(
2063
+ NavigationMenu$1.Link,
2064
+ {
2065
+ active: item.active ?? false,
2066
+ "aria-disabled": item.disabled ? "true" : void 0,
2067
+ className: NavigationMenu_default.link,
2068
+ closeOnClick: item.closeOnClick ?? true,
2069
+ href: item.href,
2070
+ children: [
2071
+ /* @__PURE__ */ jsx("span", { className: NavigationMenu_default.linkLabel, children: item.label }),
2072
+ item.description ? /* @__PURE__ */ jsx("span", { className: NavigationMenu_default.linkDescription, children: item.description }) : null
2073
+ ]
2074
+ },
2075
+ getItemKey4(item.label, index)
2076
+ );
2077
+ }
2078
+ function getItemKey4(label, index) {
2079
+ if (typeof label === "string") {
2080
+ return `${label}-${index}`;
2081
+ }
2082
+ return index;
2083
+ }
2084
+
2085
+ // src/components/NumberField/NumberField.module.css
2086
+ var NumberField_default = {
2087
+ root: "NumberField_root",
2088
+ disabled: "NumberField_disabled",
2089
+ label: "NumberField_label",
2090
+ description: "NumberField_description",
2091
+ error: "NumberField_error",
2092
+ group: "NumberField_group",
2093
+ input: "NumberField_input",
2094
+ stepper: "NumberField_stepper",
2095
+ sm: "NumberField_sm",
2096
+ md: "NumberField_md",
2097
+ lg: "NumberField_lg"
2098
+ };
2099
+ var NumberField = forwardRef(
2100
+ ({
2101
+ allowOutOfRange,
2102
+ allowWheelScrub = false,
2103
+ className,
2104
+ defaultValue,
2105
+ description,
2106
+ disabled = false,
2107
+ error,
2108
+ format,
2109
+ id,
2110
+ inputProps,
2111
+ inputRef,
2112
+ invalid = false,
2113
+ label,
2114
+ largeStep,
2115
+ locale,
2116
+ max,
2117
+ min,
2118
+ name,
2119
+ onValueChange,
2120
+ onValueCommitted,
2121
+ placeholder,
2122
+ readOnly = false,
2123
+ required = false,
2124
+ showSteppers = true,
2125
+ size = "md",
2126
+ smallStep,
2127
+ snapOnStep = false,
2128
+ step = 1,
2129
+ value,
2130
+ ...props
2131
+ }, ref) => {
2132
+ const generatedId = useId();
2133
+ const inputId = id ?? generatedId;
2134
+ const descriptionId = description ? `${inputId}-description` : void 0;
2135
+ const errorId = error ? `${inputId}-error` : void 0;
2136
+ const isInvalid = invalid || Boolean(error);
2137
+ const describedBy = [descriptionId, errorId, inputProps?.["aria-describedby"]].filter(Boolean).join(" ");
2138
+ return /* @__PURE__ */ jsxs(
2139
+ NumberField$1.Root,
2140
+ {
2141
+ ref,
2142
+ allowOutOfRange,
2143
+ allowWheelScrub,
2144
+ className: classNames(NumberField_default.root, NumberField_default[size], disabled && NumberField_default.disabled, className),
2145
+ "data-invalid": isInvalid ? "" : void 0,
2146
+ defaultValue,
2147
+ disabled,
2148
+ format,
2149
+ id: inputId,
2150
+ inputRef,
2151
+ largeStep,
2152
+ locale,
2153
+ max,
2154
+ min,
2155
+ name,
2156
+ onValueChange: (nextValue) => onValueChange?.(nextValue),
2157
+ onValueCommitted: (nextValue) => onValueCommitted?.(nextValue),
2158
+ readOnly,
2159
+ required,
2160
+ smallStep,
2161
+ snapOnStep,
2162
+ step,
2163
+ value,
2164
+ ...props,
2165
+ children: [
2166
+ label ? /* @__PURE__ */ jsx("label", { className: NumberField_default.label, htmlFor: inputId, children: label }) : null,
2167
+ description ? /* @__PURE__ */ jsx("div", { className: NumberField_default.description, id: descriptionId, children: description }) : null,
2168
+ /* @__PURE__ */ jsxs(NumberField$1.Group, { className: NumberField_default.group, children: [
2169
+ showSteppers ? /* @__PURE__ */ jsx(
2170
+ NumberField$1.Decrement,
2171
+ {
2172
+ "aria-label": label ? `Decrease ${label}` : "Decrease value",
2173
+ className: NumberField_default.stepper,
2174
+ type: "button",
2175
+ children: "-"
2176
+ }
2177
+ ) : null,
2178
+ /* @__PURE__ */ jsx(
2179
+ NumberField$1.Input,
2180
+ {
2181
+ ...inputProps,
2182
+ "aria-describedby": describedBy || void 0,
2183
+ "aria-invalid": isInvalid || void 0,
2184
+ className: classNames(NumberField_default.input, inputProps?.className),
2185
+ placeholder
2186
+ }
2187
+ ),
2188
+ showSteppers ? /* @__PURE__ */ jsx(
2189
+ NumberField$1.Increment,
2190
+ {
2191
+ "aria-label": label ? `Increase ${label}` : "Increase value",
2192
+ className: NumberField_default.stepper,
2193
+ type: "button",
2194
+ children: "+"
2195
+ }
2196
+ ) : null
2197
+ ] }),
2198
+ error ? /* @__PURE__ */ jsx("div", { className: NumberField_default.error, id: errorId, children: error }) : null
2199
+ ]
2200
+ }
2201
+ );
2202
+ }
2203
+ );
2204
+ NumberField.displayName = "NumberField";
2205
+
2206
+ // src/components/OTPField/OTPField.module.css
2207
+ var OTPField_default = {
2208
+ root: "OTPField_root",
2209
+ disabled: "OTPField_disabled",
2210
+ label: "OTPField_label",
2211
+ required: "OTPField_required",
2212
+ description: "OTPField_description",
2213
+ error: "OTPField_error",
2214
+ inputs: "OTPField_inputs",
2215
+ input: "OTPField_input",
2216
+ separator: "OTPField_separator",
2217
+ sm: "OTPField_sm",
2218
+ md: "OTPField_md",
2219
+ lg: "OTPField_lg"
2220
+ };
2221
+ var OTPField = forwardRef(
2222
+ ({
2223
+ autoComplete,
2224
+ autoSubmit = false,
2225
+ className,
2226
+ defaultValue,
2227
+ description,
2228
+ disabled = false,
2229
+ error,
2230
+ form,
2231
+ id,
2232
+ inputMode,
2233
+ inputRef,
2234
+ invalid = false,
2235
+ label,
2236
+ length = 6,
2237
+ mask = false,
2238
+ name,
2239
+ normalizeValue,
2240
+ onValueChange,
2241
+ onValueComplete,
2242
+ onValueInvalid,
2243
+ readOnly = false,
2244
+ required = false,
2245
+ separatorEvery = 3,
2246
+ separatorLabel = "Code separator",
2247
+ size = "md",
2248
+ validationType = "numeric",
2249
+ value,
2250
+ ...props
2251
+ }, ref) => {
2252
+ const generatedId = useId();
2253
+ const inputId = id ?? generatedId;
2254
+ const labelId = label ? `${inputId}-label` : void 0;
2255
+ const descriptionId = description ? `${inputId}-description` : void 0;
2256
+ const errorId = error ? `${inputId}-error` : void 0;
2257
+ const describedBy = [descriptionId, errorId].filter(Boolean).join(" ");
2258
+ const isInvalid = invalid || Boolean(error);
2259
+ return /* @__PURE__ */ jsxs(
2260
+ OTPField$1.Root,
2261
+ {
2262
+ ref,
2263
+ "aria-describedby": describedBy || void 0,
2264
+ "aria-invalid": isInvalid || void 0,
2265
+ "aria-labelledby": labelId,
2266
+ autoComplete,
2267
+ autoSubmit,
2268
+ className: classNames(OTPField_default.root, OTPField_default[size], disabled && OTPField_default.disabled, className),
2269
+ "data-invalid": isInvalid ? "" : void 0,
2270
+ defaultValue,
2271
+ disabled,
2272
+ form,
2273
+ id: inputId,
2274
+ inputMode,
2275
+ length,
2276
+ mask,
2277
+ name,
2278
+ normalizeValue,
2279
+ onValueChange: (nextValue) => onValueChange?.(nextValue),
2280
+ onValueComplete: (nextValue) => onValueComplete?.(nextValue),
2281
+ onValueInvalid: (nextValue) => onValueInvalid?.(nextValue),
2282
+ readOnly,
2283
+ required,
2284
+ validationType,
2285
+ value,
2286
+ ...props,
2287
+ children: [
2288
+ label ? /* @__PURE__ */ jsxs("div", { className: OTPField_default.label, id: labelId, children: [
2289
+ label,
2290
+ required ? /* @__PURE__ */ jsx("span", { className: OTPField_default.required, "aria-hidden": "true", children: "*" }) : null
2291
+ ] }) : null,
2292
+ description ? /* @__PURE__ */ jsx("div", { className: OTPField_default.description, id: descriptionId, children: description }) : null,
2293
+ /* @__PURE__ */ jsx("div", { className: OTPField_default.inputs, children: Array.from({ length }, (_, index) => /* @__PURE__ */ jsx(
2294
+ FragmentedInput,
2295
+ {
2296
+ index,
2297
+ inputRef: index === 0 ? inputRef : void 0,
2298
+ separatorEvery,
2299
+ separatorLabel
2300
+ },
2301
+ index
2302
+ )) }),
2303
+ error ? /* @__PURE__ */ jsx("div", { className: OTPField_default.error, id: errorId, children: error }) : null
2304
+ ]
2305
+ }
2306
+ );
2307
+ }
2308
+ );
2309
+ OTPField.displayName = "OTPField";
2310
+ function FragmentedInput({
2311
+ index,
2312
+ inputRef,
2313
+ separatorEvery,
2314
+ separatorLabel
2315
+ }) {
2316
+ const shouldRenderSeparator = separatorEvery > 0 && index > 0 && index % separatorEvery === 0;
2317
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
2318
+ shouldRenderSeparator ? /* @__PURE__ */ jsx("span", { "aria-label": separatorLabel, className: OTPField_default.separator, role: "separator", children: "-" }) : null,
2319
+ /* @__PURE__ */ jsx(
2320
+ OTPField$1.Input,
2321
+ {
2322
+ ref: inputRef,
2323
+ ...index === 0 ? {} : { "aria-label": `Digit ${index + 1}` },
2324
+ className: OTPField_default.input
2325
+ }
2326
+ )
2327
+ ] });
2328
+ }
2329
+
2330
+ // src/components/Pagination/Pagination.module.css
2331
+ var Pagination_default = {
2332
+ pagination: "Pagination_pagination",
2333
+ list: "Pagination_list",
2334
+ control: "Pagination_control",
2335
+ ellipsis: "Pagination_ellipsis",
2336
+ current: "Pagination_current",
2337
+ sm: "Pagination_sm",
2338
+ md: "Pagination_md"
2339
+ };
2340
+ var Pagination = forwardRef(
2341
+ ({
2342
+ "aria-label": ariaLabel = "Pagination",
2343
+ className,
2344
+ disabled = false,
2345
+ getPageHref,
2346
+ onPageChange,
2347
+ page,
2348
+ siblingCount = 1,
2349
+ size = "md",
2350
+ totalPages,
2351
+ ...props
2352
+ }, ref) => {
2353
+ const safeTotalPages = Math.max(1, Math.floor(totalPages));
2354
+ const currentPage = clampPage(page, safeTotalPages);
2355
+ const pages = getPaginationItems(currentPage, safeTotalPages, siblingCount);
2356
+ const previousPage = Math.max(1, currentPage - 1);
2357
+ const nextPage = Math.min(safeTotalPages, currentPage + 1);
2358
+ return /* @__PURE__ */ jsx(
2359
+ "nav",
2360
+ {
2361
+ ref,
2362
+ "aria-label": ariaLabel,
2363
+ className: classNames(Pagination_default.pagination, Pagination_default[size], className),
2364
+ ...props,
2365
+ children: /* @__PURE__ */ jsxs("ul", { className: Pagination_default.list, children: [
2366
+ /* @__PURE__ */ jsx("li", { children: renderControl({
2367
+ disabled: disabled || currentPage === 1,
2368
+ getPageHref,
2369
+ label: "Previous page",
2370
+ onPageChange,
2371
+ page: previousPage,
2372
+ text: "Previous"
2373
+ }) }),
2374
+ pages.map((item) => /* @__PURE__ */ jsx("li", { children: typeof item === "number" ? renderControl({
2375
+ current: item === currentPage,
2376
+ disabled,
2377
+ getPageHref,
2378
+ label: `Page ${item}`,
2379
+ onPageChange,
2380
+ page: item,
2381
+ text: item.toLocaleString()
2382
+ }) : /* @__PURE__ */ jsx("span", { className: Pagination_default.ellipsis, "aria-hidden": "true", children: "..." }) }, item)),
2383
+ /* @__PURE__ */ jsx("li", { children: renderControl({
2384
+ disabled: disabled || currentPage === safeTotalPages,
2385
+ getPageHref,
2386
+ label: "Next page",
2387
+ onPageChange,
2388
+ page: nextPage,
2389
+ text: "Next"
2390
+ }) })
2391
+ ] })
2392
+ }
2393
+ );
2394
+ }
2395
+ );
2396
+ Pagination.displayName = "Pagination";
2397
+ function renderControl({
2398
+ current = false,
2399
+ disabled,
2400
+ getPageHref,
2401
+ label,
2402
+ onPageChange,
2403
+ page,
2404
+ text
2405
+ }) {
2406
+ const className = classNames(Pagination_default.control, current && Pagination_default.current);
2407
+ if (getPageHref && !disabled) {
2408
+ return /* @__PURE__ */ jsx(
2409
+ "a",
2410
+ {
2411
+ className,
2412
+ href: getPageHref(page),
2413
+ "aria-current": current ? "page" : void 0,
2414
+ "aria-label": current ? `${label}, current page` : label,
2415
+ onClick: (event) => {
2416
+ if (onPageChange) {
2417
+ event.preventDefault();
2418
+ onPageChange(page);
2419
+ }
2420
+ },
2421
+ children: text
2422
+ }
2423
+ );
2424
+ }
2425
+ return /* @__PURE__ */ jsx(
2426
+ "button",
2427
+ {
2428
+ className,
2429
+ type: "button",
2430
+ disabled,
2431
+ "aria-current": current ? "page" : void 0,
2432
+ "aria-label": current ? `${label}, current page` : label,
2433
+ onClick: () => onPageChange?.(page),
2434
+ children: text
2435
+ }
2436
+ );
2437
+ }
2438
+ function getPaginationItems(currentPage, totalPages, siblingCount) {
2439
+ const totalPageNumbers = siblingCount * 2 + 5;
2440
+ if (totalPages <= totalPageNumbers) {
2441
+ return range(1, totalPages);
2442
+ }
2443
+ const leftSibling = Math.max(currentPage - siblingCount, 1);
2444
+ const rightSibling = Math.min(currentPage + siblingCount, totalPages);
2445
+ const showLeftEllipsis = leftSibling > 2;
2446
+ const showRightEllipsis = rightSibling < totalPages - 1;
2447
+ if (!showLeftEllipsis && showRightEllipsis) {
2448
+ const leftItemCount = 3 + siblingCount * 2;
2449
+ return [...range(1, leftItemCount), "ellipsis-end", totalPages];
2450
+ }
2451
+ if (showLeftEllipsis && !showRightEllipsis) {
2452
+ const rightItemCount = 3 + siblingCount * 2;
2453
+ return [1, "ellipsis-start", ...range(totalPages - rightItemCount + 1, totalPages)];
2454
+ }
2455
+ return [1, "ellipsis-start", ...range(leftSibling, rightSibling), "ellipsis-end", totalPages];
2456
+ }
2457
+ function range(start, end) {
2458
+ return Array.from({ length: end - start + 1 }, (_, index) => start + index);
2459
+ }
2460
+ function clampPage(page, totalPages) {
2461
+ return Math.min(Math.max(1, Math.floor(page)), totalPages);
2462
+ }
2463
+
2464
+ // src/components/Popover/Popover.module.css
2465
+ var Popover_default = {
2466
+ trigger: "Popover_trigger",
2467
+ positioner: "Popover_positioner",
2468
+ popup: "Popover_popup",
2469
+ popoverIn: "Popover_popoverIn",
2470
+ sm: "Popover_sm",
2471
+ md: "Popover_md",
2472
+ header: "Popover_header",
2473
+ intro: "Popover_intro",
2474
+ title: "Popover_title",
2475
+ description: "Popover_description",
2476
+ close: "Popover_close",
2477
+ closeIcon: "Popover_closeIcon",
2478
+ content: "Popover_content",
2479
+ footer: "Popover_footer",
2480
+ arrow: "Popover_arrow"
2481
+ };
2482
+ var Popover = forwardRef(
2483
+ ({
2484
+ align = "center",
2485
+ children,
2486
+ className,
2487
+ closeDelay,
2488
+ closeLabel = "Close popover",
2489
+ contentClassName,
2490
+ defaultOpen,
2491
+ delay,
2492
+ description,
2493
+ footer,
2494
+ footerClassName,
2495
+ modal = false,
2496
+ onOpenChange,
2497
+ open,
2498
+ openOnHover = false,
2499
+ showArrow = true,
2500
+ showCloseButton = true,
2501
+ side = "bottom",
2502
+ sideOffset = 8,
2503
+ size = "md",
2504
+ title,
2505
+ trigger,
2506
+ triggerClassName
2507
+ }, ref) => {
2508
+ const hasHeader = title || description || showCloseButton;
2509
+ return /* @__PURE__ */ jsxs(
2510
+ Popover$1.Root,
2511
+ {
2512
+ open,
2513
+ defaultOpen,
2514
+ modal,
2515
+ onOpenChange: (nextOpen) => {
2516
+ onOpenChange?.(nextOpen);
2517
+ },
2518
+ children: [
2519
+ /* @__PURE__ */ jsx(
2520
+ Popover$1.Trigger,
2521
+ {
2522
+ className: classNames(Popover_default.trigger, triggerClassName),
2523
+ openOnHover,
2524
+ delay,
2525
+ closeDelay,
2526
+ children: trigger
2527
+ }
2528
+ ),
2529
+ /* @__PURE__ */ jsx(Popover$1.Portal, { children: /* @__PURE__ */ jsx(
2530
+ Popover$1.Positioner,
2531
+ {
2532
+ className: Popover_default.positioner,
2533
+ side,
2534
+ align,
2535
+ sideOffset,
2536
+ children: /* @__PURE__ */ jsxs(
2537
+ Popover$1.Popup,
2538
+ {
2539
+ ref,
2540
+ className: classNames(Popover_default.popup, Popover_default[size], className),
2541
+ children: [
2542
+ showArrow ? /* @__PURE__ */ jsx(Popover$1.Arrow, { className: Popover_default.arrow }) : null,
2543
+ hasHeader ? /* @__PURE__ */ jsxs("div", { className: Popover_default.header, children: [
2544
+ /* @__PURE__ */ jsxs("div", { className: Popover_default.intro, children: [
2545
+ title ? /* @__PURE__ */ jsx(Popover$1.Title, { className: Popover_default.title, children: title }) : null,
2546
+ description ? /* @__PURE__ */ jsx(Popover$1.Description, { className: Popover_default.description, children: description }) : null
2547
+ ] }),
2548
+ showCloseButton ? /* @__PURE__ */ jsx(Popover$1.Close, { className: Popover_default.close, "aria-label": closeLabel, children: /* @__PURE__ */ jsx(CloseIcon4, {}) }) : null
2549
+ ] }) : null,
2550
+ children ? /* @__PURE__ */ jsx("div", { className: classNames(Popover_default.content, contentClassName), children }) : null,
2551
+ footer ? /* @__PURE__ */ jsx("div", { className: classNames(Popover_default.footer, footerClassName), children: footer }) : null
2552
+ ]
2553
+ }
2554
+ )
2555
+ }
2556
+ ) })
2557
+ ]
2558
+ }
2559
+ );
2560
+ }
2561
+ );
2562
+ Popover.displayName = "Popover";
2563
+ function CloseIcon4() {
2564
+ return /* @__PURE__ */ jsx("svg", { className: Popover_default.closeIcon, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4 4 8 8M12 4l-8 8" }) });
2565
+ }
2566
+
2567
+ // src/components/Progress/Progress.module.css
2568
+ var Progress_default = {
2569
+ root: "Progress_root",
2570
+ header: "Progress_header",
2571
+ label: "Progress_label",
2572
+ value: "Progress_value",
2573
+ description: "Progress_description",
2574
+ track: "Progress_track",
2575
+ indicator: "Progress_indicator",
2576
+ "progress-indeterminate": "Progress_progress-indeterminate",
2577
+ sm: "Progress_sm",
2578
+ md: "Progress_md",
2579
+ lg: "Progress_lg",
2580
+ neutral: "Progress_neutral",
2581
+ info: "Progress_info",
2582
+ success: "Progress_success",
2583
+ warning: "Progress_warning",
2584
+ danger: "Progress_danger"
2585
+ };
2586
+ function formatProgressValue(formattedValue, value) {
2587
+ if (value == null) {
2588
+ return "Loading";
2589
+ }
2590
+ return formattedValue;
2591
+ }
2592
+ var Progress = forwardRef(
2593
+ ({
2594
+ className,
2595
+ description,
2596
+ format,
2597
+ getAriaValueText,
2598
+ intent = "info",
2599
+ label,
2600
+ locale,
2601
+ max = 100,
2602
+ min = 0,
2603
+ showValue = true,
2604
+ size = "md",
2605
+ value,
2606
+ valueLabel,
2607
+ ...props
2608
+ }, ref) => {
2609
+ return /* @__PURE__ */ jsxs(
2610
+ Progress$1.Root,
2611
+ {
2612
+ ref,
2613
+ className: classNames(Progress_default.root, Progress_default[size], Progress_default[intent], className),
2614
+ format,
2615
+ getAriaValueText,
2616
+ locale,
2617
+ max,
2618
+ min,
2619
+ value,
2620
+ ...props,
2621
+ children: [
2622
+ label || showValue ? /* @__PURE__ */ jsxs("div", { className: Progress_default.header, children: [
2623
+ label ? /* @__PURE__ */ jsx(Progress$1.Label, { className: Progress_default.label, children: label }) : null,
2624
+ showValue ? /* @__PURE__ */ jsx(Progress$1.Value, { className: Progress_default.value, children: (formattedValue, currentValue) => valueLabel ?? formatProgressValue(formattedValue, currentValue) }) : null
2625
+ ] }) : null,
2626
+ description ? /* @__PURE__ */ jsx("div", { className: Progress_default.description, children: description }) : null,
2627
+ /* @__PURE__ */ jsx(Progress$1.Track, { className: Progress_default.track, children: /* @__PURE__ */ jsx(Progress$1.Indicator, { className: Progress_default.indicator }) })
2628
+ ]
2629
+ }
2630
+ );
2631
+ }
2632
+ );
2633
+ Progress.displayName = "Progress";
2634
+ var Meter = forwardRef(
2635
+ ({
2636
+ className,
2637
+ description,
2638
+ format,
2639
+ getAriaValueText,
2640
+ intent = "success",
2641
+ label,
2642
+ locale,
2643
+ max = 100,
2644
+ min = 0,
2645
+ showValue = true,
2646
+ size = "md",
2647
+ value,
2648
+ valueLabel,
2649
+ ...props
2650
+ }, ref) => {
2651
+ return /* @__PURE__ */ jsxs(
2652
+ Meter$1.Root,
2653
+ {
2654
+ ref,
2655
+ className: classNames(Progress_default.root, Progress_default[size], Progress_default[intent], className),
2656
+ format,
2657
+ getAriaValueText,
2658
+ locale,
2659
+ max,
2660
+ min,
2661
+ value,
2662
+ ...props,
2663
+ children: [
2664
+ label || showValue ? /* @__PURE__ */ jsxs("div", { className: Progress_default.header, children: [
2665
+ label ? /* @__PURE__ */ jsx(Meter$1.Label, { className: Progress_default.label, children: label }) : null,
2666
+ showValue ? /* @__PURE__ */ jsx(Meter$1.Value, { className: Progress_default.value, children: (formattedValue) => valueLabel ?? formattedValue }) : null
2667
+ ] }) : null,
2668
+ description ? /* @__PURE__ */ jsx("div", { className: Progress_default.description, children: description }) : null,
2669
+ /* @__PURE__ */ jsx(Meter$1.Track, { className: Progress_default.track, children: /* @__PURE__ */ jsx(Meter$1.Indicator, { className: Progress_default.indicator }) })
2670
+ ]
2671
+ }
2672
+ );
2673
+ }
2674
+ );
2675
+ Meter.displayName = "Meter";
2676
+
2677
+ // src/components/RadioGroup/RadioGroup.module.css
2678
+ var RadioGroup_default = {
2679
+ root: "RadioGroup_root",
2680
+ disabled: "RadioGroup_disabled",
2681
+ groupLabel: "RadioGroup_groupLabel",
2682
+ groupDescription: "RadioGroup_groupDescription",
2683
+ group: "RadioGroup_group",
2684
+ item: "RadioGroup_item",
2685
+ optionDisabled: "RadioGroup_optionDisabled",
2686
+ control: "RadioGroup_control",
2687
+ indicator: "RadioGroup_indicator",
2688
+ text: "RadioGroup_text",
2689
+ label: "RadioGroup_label",
2690
+ description: "RadioGroup_description"
2691
+ };
2692
+ var RadioGroup = forwardRef(
2693
+ ({
2694
+ className,
2695
+ defaultValue,
2696
+ description,
2697
+ disabled = false,
2698
+ id,
2699
+ invalid = false,
2700
+ label,
2701
+ name,
2702
+ onValueChange,
2703
+ options,
2704
+ orientation = "vertical",
2705
+ readOnly = false,
2706
+ required = false,
2707
+ value
2708
+ }, ref) => {
2709
+ const generatedId = useId();
2710
+ const groupId = id ?? generatedId;
2711
+ const labelId = label ? `${groupId}-label` : void 0;
2712
+ const descriptionId = description ? `${groupId}-description` : void 0;
2713
+ return /* @__PURE__ */ jsxs(
2714
+ "div",
2715
+ {
2716
+ className: classNames(
2717
+ RadioGroup_default.root,
2718
+ RadioGroup_default[orientation],
2719
+ disabled && RadioGroup_default.disabled,
2720
+ className
2721
+ ),
2722
+ children: [
2723
+ label ? /* @__PURE__ */ jsx("div", { className: RadioGroup_default.groupLabel, id: labelId, children: label }) : null,
2724
+ description ? /* @__PURE__ */ jsx("div", { className: RadioGroup_default.groupDescription, id: descriptionId, children: description }) : null,
2725
+ /* @__PURE__ */ jsx(
2726
+ RadioGroup$1,
2727
+ {
2728
+ ref,
2729
+ name,
2730
+ value,
2731
+ defaultValue,
2732
+ disabled,
2733
+ readOnly,
2734
+ required,
2735
+ "aria-labelledby": labelId,
2736
+ "aria-describedby": descriptionId,
2737
+ "aria-invalid": invalid || void 0,
2738
+ className: RadioGroup_default.group,
2739
+ "data-invalid": invalid ? "" : void 0,
2740
+ "data-orientation": orientation,
2741
+ onValueChange: (nextValue) => {
2742
+ onValueChange?.(nextValue);
2743
+ },
2744
+ children: options.map((option) => /* @__PURE__ */ jsxs(
2745
+ "label",
2746
+ {
2747
+ className: classNames(RadioGroup_default.item, option.disabled && RadioGroup_default.optionDisabled),
2748
+ children: [
2749
+ /* @__PURE__ */ jsx(
2750
+ Radio.Root,
2751
+ {
2752
+ value: option.value,
2753
+ disabled: option.disabled,
2754
+ className: RadioGroup_default.control,
2755
+ "data-invalid": invalid ? "" : void 0,
2756
+ children: /* @__PURE__ */ jsx(Radio.Indicator, { className: RadioGroup_default.indicator, keepMounted: true })
2757
+ }
2758
+ ),
2759
+ /* @__PURE__ */ jsxs("span", { className: RadioGroup_default.text, children: [
2760
+ /* @__PURE__ */ jsx("span", { className: RadioGroup_default.label, children: option.label }),
2761
+ option.description ? /* @__PURE__ */ jsx("span", { className: RadioGroup_default.description, children: option.description }) : null
2762
+ ] })
2763
+ ]
2764
+ },
2765
+ option.value
2766
+ ))
2767
+ }
2768
+ )
2769
+ ]
2770
+ }
2771
+ );
2772
+ }
2773
+ );
2774
+ RadioGroup.displayName = "RadioGroup";
2775
+
2776
+ // src/components/Select/Select.module.css
2777
+ var Select_default = {
2778
+ root: "Select_root",
2779
+ disabled: "Select_disabled",
2780
+ label: "Select_label",
2781
+ description: "Select_description",
2782
+ anchor: "Select_anchor",
2783
+ trigger: "Select_trigger",
2784
+ sm: "Select_sm",
2785
+ md: "Select_md",
2786
+ lg: "Select_lg",
2787
+ value: "Select_value",
2788
+ icon: "Select_icon",
2789
+ chevron: "Select_chevron",
2790
+ check: "Select_check",
2791
+ positioner: "Select_positioner",
2792
+ popup: "Select_popup",
2793
+ selectPopupIn: "Select_selectPopupIn",
2794
+ list: "Select_list",
2795
+ item: "Select_item",
2796
+ itemContent: "Select_itemContent",
2797
+ itemText: "Select_itemText",
2798
+ itemLabel: "Select_itemLabel",
2799
+ itemDescription: "Select_itemDescription",
2800
+ itemIndicator: "Select_itemIndicator"
2801
+ };
2802
+ var Select = forwardRef(
2803
+ ({
2804
+ ariaLabel,
2805
+ className,
2806
+ defaultValue,
2807
+ description,
2808
+ disabled = false,
2809
+ id,
2810
+ invalid = false,
2811
+ label,
2812
+ name,
2813
+ onValueChange,
2814
+ options,
2815
+ placeholder = "Select an option",
2816
+ readOnly = false,
2817
+ required = false,
2818
+ selectSize = "md",
2819
+ triggerClassName,
2820
+ value
2821
+ }, ref) => {
2822
+ const generatedId = useId();
2823
+ const selectId = id ?? generatedId;
2824
+ const descriptionId = description ? `${selectId}-description` : void 0;
2825
+ return /* @__PURE__ */ jsxs(
2826
+ Select$1.Root,
2827
+ {
2828
+ id: selectId,
2829
+ name,
2830
+ value,
2831
+ defaultValue,
2832
+ disabled,
2833
+ readOnly,
2834
+ required,
2835
+ items: options.map((option) => ({ value: option.value, label: option.label })),
2836
+ onValueChange: (nextValue) => {
2837
+ onValueChange?.(nextValue);
2838
+ },
2839
+ children: [
2840
+ /* @__PURE__ */ jsxs("div", { className: classNames(Select_default.root, disabled && Select_default.disabled, className), children: [
2841
+ label ? /* @__PURE__ */ jsx(Select$1.Label, { className: Select_default.label, children: label }) : null,
2842
+ description ? /* @__PURE__ */ jsx("div", { className: Select_default.description, id: descriptionId, children: description }) : null,
2843
+ /* @__PURE__ */ jsx("div", { className: Select_default.anchor, children: /* @__PURE__ */ jsxs(
2844
+ Select$1.Trigger,
2845
+ {
2846
+ ref,
2847
+ className: classNames(Select_default.trigger, Select_default[selectSize], triggerClassName),
2848
+ "aria-label": label ? void 0 : ariaLabel,
2849
+ "aria-describedby": descriptionId,
2850
+ "aria-invalid": invalid || void 0,
2851
+ "data-invalid": invalid ? "" : void 0,
2852
+ children: [
2853
+ /* @__PURE__ */ jsx(Select$1.Value, { className: Select_default.value, placeholder }),
2854
+ /* @__PURE__ */ jsx(Select$1.Icon, { className: Select_default.icon, children: /* @__PURE__ */ jsx(ChevronIcon2, {}) })
2855
+ ]
2856
+ }
2857
+ ) })
2858
+ ] }),
2859
+ /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsx(
2860
+ Select$1.Positioner,
2861
+ {
2862
+ className: Select_default.positioner,
2863
+ alignItemWithTrigger: false,
2864
+ sideOffset: 6,
2865
+ children: /* @__PURE__ */ jsx(Select$1.Popup, { className: Select_default.popup, children: /* @__PURE__ */ jsx(Select$1.List, { className: Select_default.list, children: options.map((option) => /* @__PURE__ */ jsxs(
2866
+ Select$1.Item,
2867
+ {
2868
+ value: option.value,
2869
+ label: getOptionText2(option),
2870
+ disabled: option.disabled,
2871
+ className: Select_default.item,
2872
+ children: [
2873
+ /* @__PURE__ */ jsx("span", { className: Select_default.itemContent, children: /* @__PURE__ */ jsxs(Select$1.ItemText, { className: Select_default.itemText, children: [
2874
+ /* @__PURE__ */ jsx("span", { className: Select_default.itemLabel, children: option.label }),
2875
+ option.description ? /* @__PURE__ */ jsx("span", { className: Select_default.itemDescription, children: option.description }) : null
2876
+ ] }) }),
2877
+ /* @__PURE__ */ jsx(Select$1.ItemIndicator, { className: Select_default.itemIndicator, keepMounted: true, children: /* @__PURE__ */ jsx(CheckIcon3, {}) })
2878
+ ]
2879
+ },
2880
+ option.value
2881
+ )) }) })
2882
+ }
2883
+ ) })
2884
+ ]
2885
+ }
2886
+ );
2887
+ }
2888
+ );
2889
+ Select.displayName = "Select";
2890
+ function getOptionText2(option) {
2891
+ if (option.textValue) {
2892
+ return option.textValue;
2893
+ }
2894
+ return typeof option.label === "string" ? option.label : option.value;
2895
+ }
2896
+ function ChevronIcon2() {
2897
+ return /* @__PURE__ */ jsx("svg", { className: Select_default.chevron, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4 6 4 4 4-4" }) });
2898
+ }
2899
+ function CheckIcon3() {
2900
+ return /* @__PURE__ */ jsx("svg", { className: Select_default.check, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "M3.25 8.25 6.5 11.5l6.25-7" }) });
2901
+ }
2902
+
2903
+ // src/components/ScrollArea/ScrollArea.module.css
2904
+ var ScrollArea_default = {
2905
+ root: "ScrollArea_root",
2906
+ viewport: "ScrollArea_viewport",
2907
+ content: "ScrollArea_content",
2908
+ scrollbar: "ScrollArea_scrollbar",
2909
+ vertical: "ScrollArea_vertical",
2910
+ horizontal: "ScrollArea_horizontal",
2911
+ thumb: "ScrollArea_thumb",
2912
+ corner: "ScrollArea_corner",
2913
+ edgeShadows: "ScrollArea_edgeShadows",
2914
+ sm: "ScrollArea_sm",
2915
+ md: "ScrollArea_md",
2916
+ lg: "ScrollArea_lg"
2917
+ };
2918
+ var ScrollArea = forwardRef(
2919
+ ({
2920
+ children,
2921
+ className,
2922
+ contentClassName,
2923
+ height,
2924
+ maxHeight,
2925
+ maxWidth,
2926
+ minHeight,
2927
+ minWidth,
2928
+ overflowEdgeThreshold = 8,
2929
+ scrollbarVisibility = "auto",
2930
+ showEdgeShadows = true,
2931
+ size = "md",
2932
+ style,
2933
+ viewportClassName,
2934
+ viewportRef,
2935
+ width,
2936
+ ...props
2937
+ }, ref) => {
2938
+ const showScrollbars = scrollbarVisibility !== "none";
2939
+ const keepMounted = scrollbarVisibility === "always";
2940
+ return /* @__PURE__ */ jsxs(
2941
+ ScrollArea$1.Root,
2942
+ {
2943
+ ref,
2944
+ className: classNames(
2945
+ ScrollArea_default.root,
2946
+ ScrollArea_default[size],
2947
+ showEdgeShadows && ScrollArea_default.edgeShadows,
2948
+ className
2949
+ ),
2950
+ overflowEdgeThreshold,
2951
+ style: {
2952
+ height,
2953
+ maxHeight,
2954
+ maxWidth,
2955
+ minHeight,
2956
+ minWidth,
2957
+ width,
2958
+ ...style
2959
+ },
2960
+ ...props,
2961
+ children: [
2962
+ /* @__PURE__ */ jsx(
2963
+ ScrollArea$1.Viewport,
2964
+ {
2965
+ ref: viewportRef,
2966
+ className: classNames(ScrollArea_default.viewport, viewportClassName),
2967
+ children: /* @__PURE__ */ jsx(ScrollArea$1.Content, { className: classNames(ScrollArea_default.content, contentClassName), children })
2968
+ }
2969
+ ),
2970
+ showScrollbars ? /* @__PURE__ */ jsxs(Fragment, { children: [
2971
+ /* @__PURE__ */ jsx(
2972
+ ScrollArea$1.Scrollbar,
2973
+ {
2974
+ className: classNames(ScrollArea_default.scrollbar, ScrollArea_default.vertical),
2975
+ keepMounted,
2976
+ orientation: "vertical",
2977
+ children: /* @__PURE__ */ jsx(ScrollArea$1.Thumb, { className: ScrollArea_default.thumb })
2978
+ }
2979
+ ),
2980
+ /* @__PURE__ */ jsx(
2981
+ ScrollArea$1.Scrollbar,
2982
+ {
2983
+ className: classNames(ScrollArea_default.scrollbar, ScrollArea_default.horizontal),
2984
+ keepMounted,
2985
+ orientation: "horizontal",
2986
+ children: /* @__PURE__ */ jsx(ScrollArea$1.Thumb, { className: ScrollArea_default.thumb })
2987
+ }
2988
+ ),
2989
+ /* @__PURE__ */ jsx(ScrollArea$1.Corner, { className: ScrollArea_default.corner })
2990
+ ] }) : null
2991
+ ]
2992
+ }
2993
+ );
2994
+ }
2995
+ );
2996
+ ScrollArea.displayName = "ScrollArea";
2997
+
2998
+ // src/components/Separator/Separator.module.css
2999
+ var Separator_default = {
3000
+ separator: "Separator_separator",
3001
+ subtle: "Separator_subtle",
3002
+ strong: "Separator_strong",
3003
+ horizontal: "Separator_horizontal",
3004
+ vertical: "Separator_vertical",
3005
+ "spacing-none": "Separator_spacing-none",
3006
+ "spacing-xs": "Separator_spacing-xs",
3007
+ "spacing-sm": "Separator_spacing-sm",
3008
+ "spacing-md": "Separator_spacing-md",
3009
+ "spacing-lg": "Separator_spacing-lg"
3010
+ };
3011
+ var Separator = forwardRef(
3012
+ ({
3013
+ "aria-hidden": ariaHidden,
3014
+ className,
3015
+ decorative = false,
3016
+ orientation = "horizontal",
3017
+ role,
3018
+ spacing = "md",
3019
+ variant = "subtle",
3020
+ ...props
3021
+ }, ref) => /* @__PURE__ */ jsx(
3022
+ Separator$1,
3023
+ {
3024
+ ref,
3025
+ className: classNames(
3026
+ Separator_default.separator,
3027
+ Separator_default[orientation],
3028
+ Separator_default[`spacing-${spacing}`],
3029
+ Separator_default[variant],
3030
+ className
3031
+ ),
3032
+ orientation,
3033
+ ...props,
3034
+ role: decorative ? "presentation" : role ?? "separator",
3035
+ "aria-hidden": decorative ? true : ariaHidden
3036
+ }
3037
+ )
3038
+ );
3039
+ Separator.displayName = "Separator";
3040
+
3041
+ // src/components/SidePanel/SidePanel.module.css
3042
+ var SidePanel_default = {
3043
+ panel: "SidePanel_panel",
3044
+ sm: "SidePanel_sm",
3045
+ md: "SidePanel_md",
3046
+ lg: "SidePanel_lg",
3047
+ plain: "SidePanel_plain",
3048
+ bordered: "SidePanel_bordered",
3049
+ right: "SidePanel_right",
3050
+ left: "SidePanel_left",
3051
+ elevated: "SidePanel_elevated",
3052
+ sticky: "SidePanel_sticky",
3053
+ header: "SidePanel_header",
3054
+ title: "SidePanel_title",
3055
+ description: "SidePanel_description",
3056
+ content: "SidePanel_content",
3057
+ footer: "SidePanel_footer"
3058
+ };
3059
+ var SidePanel = forwardRef(
3060
+ ({
3061
+ children,
3062
+ className,
3063
+ contentClassName,
3064
+ description,
3065
+ footer,
3066
+ footerClassName,
3067
+ headerClassName,
3068
+ position = "right",
3069
+ size = "md",
3070
+ sticky = false,
3071
+ title,
3072
+ variant = "bordered",
3073
+ ...props
3074
+ }, ref) => /* @__PURE__ */ jsxs(
3075
+ "aside",
3076
+ {
3077
+ ref,
3078
+ className: classNames(
3079
+ SidePanel_default.panel,
3080
+ SidePanel_default[position],
3081
+ SidePanel_default[size],
3082
+ SidePanel_default[variant],
3083
+ sticky && SidePanel_default.sticky,
3084
+ className
3085
+ ),
3086
+ ...props,
3087
+ children: [
3088
+ title || description ? /* @__PURE__ */ jsxs("div", { className: classNames(SidePanel_default.header, headerClassName), children: [
3089
+ title ? /* @__PURE__ */ jsx("h2", { className: SidePanel_default.title, children: title }) : null,
3090
+ description ? /* @__PURE__ */ jsx("p", { className: SidePanel_default.description, children: description }) : null
3091
+ ] }) : null,
3092
+ children ? /* @__PURE__ */ jsx("div", { className: classNames(SidePanel_default.content, contentClassName), children }) : null,
3093
+ footer ? /* @__PURE__ */ jsx("div", { className: classNames(SidePanel_default.footer, footerClassName), children: footer }) : null
3094
+ ]
3095
+ }
3096
+ )
3097
+ );
3098
+ SidePanel.displayName = "SidePanel";
3099
+
3100
+ // src/components/Slider/Slider.module.css
3101
+ var Slider_default = {
3102
+ root: "Slider_root",
3103
+ horizontal: "Slider_horizontal",
3104
+ vertical: "Slider_vertical",
3105
+ disabled: "Slider_disabled",
3106
+ header: "Slider_header",
3107
+ label: "Slider_label",
3108
+ value: "Slider_value",
3109
+ description: "Slider_description",
3110
+ control: "Slider_control",
3111
+ track: "Slider_track",
3112
+ indicator: "Slider_indicator",
3113
+ thumb: "Slider_thumb",
3114
+ sm: "Slider_sm"
3115
+ };
3116
+ var DEFAULT_VALUE = 50;
3117
+ function getValueCount(value) {
3118
+ return Array.isArray(value) ? value.length : 1;
3119
+ }
3120
+ function formatOutput(formattedValues, suffix) {
3121
+ return `${formattedValues.join(" - ")}${suffix}`;
3122
+ }
3123
+ var Slider = forwardRef(
3124
+ ({
3125
+ className,
3126
+ defaultValue = DEFAULT_VALUE,
3127
+ description,
3128
+ disabled = false,
3129
+ invalid = false,
3130
+ label,
3131
+ largeStep,
3132
+ max = 100,
3133
+ min = 0,
3134
+ minStepsBetweenValues = 0,
3135
+ name,
3136
+ onValueChange,
3137
+ onValueCommitted,
3138
+ orientation = "horizontal",
3139
+ showValue = true,
3140
+ size = "md",
3141
+ step = 1,
3142
+ thumbLabels,
3143
+ value,
3144
+ valueSuffix = "",
3145
+ ...props
3146
+ }, ref) => {
3147
+ const valueCount = getValueCount(value ?? defaultValue);
3148
+ return /* @__PURE__ */ jsxs(
3149
+ Slider$1.Root,
3150
+ {
3151
+ ref,
3152
+ className: classNames(
3153
+ Slider_default.root,
3154
+ Slider_default[orientation],
3155
+ Slider_default[size],
3156
+ disabled && Slider_default.disabled,
3157
+ className
3158
+ ),
3159
+ "data-invalid": invalid ? "" : void 0,
3160
+ defaultValue,
3161
+ disabled,
3162
+ largeStep,
3163
+ max,
3164
+ min,
3165
+ minStepsBetweenValues,
3166
+ name,
3167
+ onValueChange: (nextValue) => onValueChange?.(nextValue),
3168
+ onValueCommitted: (nextValue) => onValueCommitted?.(nextValue),
3169
+ orientation,
3170
+ step,
3171
+ value,
3172
+ ...props,
3173
+ children: [
3174
+ label || showValue ? /* @__PURE__ */ jsxs("div", { className: Slider_default.header, children: [
3175
+ label ? /* @__PURE__ */ jsx(Slider$1.Label, { className: Slider_default.label, children: label }) : null,
3176
+ showValue ? /* @__PURE__ */ jsx(Slider$1.Value, { className: Slider_default.value, children: (formattedValues) => formatOutput(formattedValues, valueSuffix) }) : null
3177
+ ] }) : null,
3178
+ description ? /* @__PURE__ */ jsx("div", { className: Slider_default.description, children: description }) : null,
3179
+ /* @__PURE__ */ jsx(Slider$1.Control, { className: Slider_default.control, children: /* @__PURE__ */ jsxs(Slider$1.Track, { className: Slider_default.track, children: [
3180
+ /* @__PURE__ */ jsx(Slider$1.Indicator, { className: Slider_default.indicator }),
3181
+ Array.from({ length: valueCount }, (_, index) => /* @__PURE__ */ jsx(
3182
+ Slider$1.Thumb,
3183
+ {
3184
+ "aria-label": thumbLabels?.[index] ?? label ?? `Slider thumb ${index + 1}`,
3185
+ className: Slider_default.thumb,
3186
+ index
3187
+ },
3188
+ index
3189
+ ))
3190
+ ] }) })
3191
+ ]
3192
+ }
3193
+ );
3194
+ }
3195
+ );
3196
+ Slider.displayName = "Slider";
3197
+
3198
+ // src/components/Skeleton/Skeleton.module.css
3199
+ var Skeleton_default = {
3200
+ skeleton: "Skeleton_skeleton",
3201
+ animated: "Skeleton_animated",
3202
+ skeletonShimmer: "Skeleton_skeletonShimmer",
3203
+ text: "Skeleton_text",
3204
+ rectangle: "Skeleton_rectangle",
3205
+ circle: "Skeleton_circle",
3206
+ group: "Skeleton_group"
3207
+ };
3208
+ var Skeleton = forwardRef(
3209
+ ({ animated = true, className, height, lines = 1, shape = "rectangle", style, width, ...props }, ref) => {
3210
+ const count = Math.max(1, Math.floor(lines));
3211
+ const skeletonStyle = {
3212
+ width,
3213
+ height,
3214
+ ...style
3215
+ };
3216
+ if (shape === "text" && count > 1) {
3217
+ return /* @__PURE__ */ jsx(
3218
+ "span",
3219
+ {
3220
+ ref,
3221
+ className: classNames(Skeleton_default.group, className),
3222
+ "aria-hidden": "true",
3223
+ ...props,
3224
+ children: Array.from({ length: count }).map((_, index) => /* @__PURE__ */ jsx(
3225
+ "span",
3226
+ {
3227
+ className: classNames(Skeleton_default.skeleton, Skeleton_default.text, animated && Skeleton_default.animated),
3228
+ style: {
3229
+ ...skeletonStyle,
3230
+ width: index === count - 1 ? "72%" : width
3231
+ }
3232
+ },
3233
+ index
3234
+ ))
3235
+ }
3236
+ );
3237
+ }
3238
+ return /* @__PURE__ */ jsx(
3239
+ "span",
3240
+ {
3241
+ ref,
3242
+ className: classNames(
3243
+ Skeleton_default.skeleton,
3244
+ Skeleton_default[shape],
3245
+ animated && Skeleton_default.animated,
3246
+ className
3247
+ ),
3248
+ style: skeletonStyle,
3249
+ "aria-hidden": "true",
3250
+ ...props
3251
+ }
3252
+ );
3253
+ }
3254
+ );
3255
+ Skeleton.displayName = "Skeleton";
3256
+
3257
+ // src/components/Spinner/Spinner.module.css
3258
+ var Spinner_default = {
3259
+ spinner: "Spinner_spinner",
3260
+ spinnerRotate: "Spinner_spinnerRotate",
3261
+ sm: "Spinner_sm",
3262
+ md: "Spinner_md",
3263
+ lg: "Spinner_lg",
3264
+ neutral: "Spinner_neutral",
3265
+ primary: "Spinner_primary",
3266
+ success: "Spinner_success",
3267
+ warning: "Spinner_warning",
3268
+ danger: "Spinner_danger"
3269
+ };
3270
+ var Spinner = forwardRef(
3271
+ ({ className, intent = "primary", label = "Loading", size = "md", ...props }, ref) => {
3272
+ return /* @__PURE__ */ jsx(
3273
+ "span",
3274
+ {
3275
+ ref,
3276
+ className: classNames(Spinner_default.spinner, Spinner_default[intent], Spinner_default[size], className),
3277
+ role: "status",
3278
+ "aria-label": label,
3279
+ ...props
3280
+ }
3281
+ );
3282
+ }
3283
+ );
3284
+ Spinner.displayName = "Spinner";
3285
+
3286
+ // src/components/Switch/Switch.module.css
3287
+ var Switch_default = {
3288
+ root: "Switch_root",
3289
+ disabled: "Switch_disabled",
3290
+ control: "Switch_control",
3291
+ thumb: "Switch_thumb",
3292
+ text: "Switch_text",
3293
+ label: "Switch_label",
3294
+ description: "Switch_description"
3295
+ };
3296
+ var Switch = forwardRef(
3297
+ ({
3298
+ checked,
3299
+ className,
3300
+ defaultChecked,
3301
+ description,
3302
+ disabled = false,
3303
+ id,
3304
+ invalid = false,
3305
+ label,
3306
+ name,
3307
+ onCheckedChange,
3308
+ readOnly = false,
3309
+ required = false,
3310
+ uncheckedValue,
3311
+ value
3312
+ }, ref) => {
3313
+ const control = /* @__PURE__ */ jsx(
3314
+ Switch$1.Root,
3315
+ {
3316
+ ref,
3317
+ id,
3318
+ name,
3319
+ value,
3320
+ uncheckedValue,
3321
+ checked,
3322
+ defaultChecked,
3323
+ disabled,
3324
+ readOnly,
3325
+ required,
3326
+ className: Switch_default.control,
3327
+ "aria-invalid": invalid || void 0,
3328
+ "data-invalid": invalid ? "" : void 0,
3329
+ onCheckedChange: (nextChecked) => {
3330
+ onCheckedChange?.(nextChecked);
3331
+ },
3332
+ children: /* @__PURE__ */ jsx(Switch$1.Thumb, { className: Switch_default.thumb })
3333
+ }
3334
+ );
3335
+ if (!label && !description) {
3336
+ return control;
3337
+ }
3338
+ return /* @__PURE__ */ jsxs("label", { className: classNames(Switch_default.root, disabled && Switch_default.disabled, className), children: [
3339
+ control,
3340
+ /* @__PURE__ */ jsxs("span", { className: Switch_default.text, children: [
3341
+ label ? /* @__PURE__ */ jsx("span", { className: Switch_default.label, children: label }) : null,
3342
+ description ? /* @__PURE__ */ jsx("span", { className: Switch_default.description, children: description }) : null
3343
+ ] })
3344
+ ] });
3345
+ }
3346
+ );
3347
+ Switch.displayName = "Switch";
3348
+
3349
+ // src/components/Tabs/Tabs.module.css
3350
+ var Tabs_default = {
3351
+ root: "Tabs_root",
3352
+ horizontal: "Tabs_horizontal",
3353
+ vertical: "Tabs_vertical",
3354
+ list: "Tabs_list",
3355
+ tab: "Tabs_tab",
3356
+ line: "Tabs_line",
3357
+ contained: "Tabs_contained",
3358
+ indicator: "Tabs_indicator",
3359
+ panelViewport: "Tabs_panelViewport",
3360
+ panel: "Tabs_panel"
3361
+ };
3362
+ var Tabs = forwardRef(
3363
+ ({
3364
+ ariaLabel,
3365
+ className,
3366
+ defaultValue,
3367
+ items,
3368
+ keepMounted = false,
3369
+ listClassName,
3370
+ onValueChange,
3371
+ orientation = "horizontal",
3372
+ panelClassName,
3373
+ value,
3374
+ variant = "line"
3375
+ }, ref) => {
3376
+ return /* @__PURE__ */ jsxs(
3377
+ Tabs$1.Root,
3378
+ {
3379
+ ref,
3380
+ value,
3381
+ defaultValue,
3382
+ orientation,
3383
+ className: classNames(Tabs_default.root, Tabs_default[variant], Tabs_default[orientation], className),
3384
+ onValueChange: (nextValue) => {
3385
+ onValueChange?.(typeof nextValue === "string" ? nextValue : null);
3386
+ },
3387
+ children: [
3388
+ /* @__PURE__ */ jsxs(Tabs$1.List, { className: classNames(Tabs_default.list, listClassName), "aria-label": ariaLabel, children: [
3389
+ items.map((item) => /* @__PURE__ */ jsx(
3390
+ Tabs$1.Tab,
3391
+ {
3392
+ value: item.value,
3393
+ disabled: item.disabled,
3394
+ className: Tabs_default.tab,
3395
+ children: item.label
3396
+ },
3397
+ item.value
3398
+ )),
3399
+ /* @__PURE__ */ jsx(Tabs$1.Indicator, { className: Tabs_default.indicator })
3400
+ ] }),
3401
+ /* @__PURE__ */ jsx("div", { className: Tabs_default.panelViewport, children: items.map((item) => /* @__PURE__ */ jsx(
3402
+ Tabs$1.Panel,
3403
+ {
3404
+ value: item.value,
3405
+ keepMounted,
3406
+ className: classNames(Tabs_default.panel, panelClassName),
3407
+ children: item.content
3408
+ },
3409
+ item.value
3410
+ )) })
3411
+ ]
3412
+ }
3413
+ );
3414
+ }
3415
+ );
3416
+ Tabs.displayName = "Tabs";
3417
+
3418
+ // src/components/Table/Table.module.css
3419
+ var Table_default = {
3420
+ root: "Table_root",
3421
+ outlined: "Table_outlined",
3422
+ plain: "Table_plain",
3423
+ table: "Table_table",
3424
+ caption: "Table_caption",
3425
+ header: "Table_header",
3426
+ footer: "Table_footer",
3427
+ row: "Table_row",
3428
+ body: "Table_body",
3429
+ headerCell: "Table_headerCell",
3430
+ cell: "Table_cell",
3431
+ compact: "Table_compact",
3432
+ comfortable: "Table_comfortable"
3433
+ };
3434
+ var TableRoot = forwardRef(
3435
+ ({ children, className, density = "comfortable", variant = "outlined", ...props }, ref) => /* @__PURE__ */ jsx(
3436
+ "div",
3437
+ {
3438
+ ref,
3439
+ className: classNames(Table_default.root, Table_default[density], Table_default[variant], className),
3440
+ ...props,
3441
+ children
3442
+ }
3443
+ )
3444
+ );
3445
+ TableRoot.displayName = "TableRoot";
3446
+ var Table = forwardRef(
3447
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("table", { ref, className: classNames(Table_default.table, className), ...props, children })
3448
+ );
3449
+ Table.displayName = "Table";
3450
+ var TableHeader = forwardRef(
3451
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("thead", { ref, className: classNames(Table_default.header, className), ...props, children })
3452
+ );
3453
+ TableHeader.displayName = "TableHeader";
3454
+ var TableBody = forwardRef(
3455
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("tbody", { ref, className: classNames(Table_default.body, className), ...props, children })
3456
+ );
3457
+ TableBody.displayName = "TableBody";
3458
+ var TableFooter = forwardRef(
3459
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("tfoot", { ref, className: classNames(Table_default.footer, className), ...props, children })
3460
+ );
3461
+ TableFooter.displayName = "TableFooter";
3462
+ var TableRow = forwardRef(
3463
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("tr", { ref, className: classNames(Table_default.row, className), ...props, children })
3464
+ );
3465
+ TableRow.displayName = "TableRow";
3466
+ var TableHeaderCell = forwardRef(
3467
+ ({ children, className, scope = "col", ...props }, ref) => /* @__PURE__ */ jsx("th", { ref, className: classNames(Table_default.headerCell, className), scope, ...props, children })
3468
+ );
3469
+ TableHeaderCell.displayName = "TableHeaderCell";
3470
+ var TableCell = forwardRef(
3471
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("td", { ref, className: classNames(Table_default.cell, className), ...props, children })
3472
+ );
3473
+ TableCell.displayName = "TableCell";
3474
+ var TableCaption = forwardRef(
3475
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx("caption", { ref, className: classNames(Table_default.caption, className), ...props, children })
3476
+ );
3477
+ TableCaption.displayName = "TableCaption";
3478
+
3479
+ // src/components/Toast/Toast.module.css
3480
+ var Toast_default = {
3481
+ viewport: "Toast_viewport",
3482
+ toast: "Toast_toast",
3483
+ content: "Toast_content",
3484
+ indicator: "Toast_indicator",
3485
+ text: "Toast_text",
3486
+ title: "Toast_title",
3487
+ description: "Toast_description",
3488
+ action: "Toast_action",
3489
+ close: "Toast_close",
3490
+ closeIcon: "Toast_closeIcon"
3491
+ };
3492
+ function ToastProvider({ children, limit = 3, timeout = 5e3 }) {
3493
+ return /* @__PURE__ */ jsx(Toast.Provider, { limit, timeout, children });
3494
+ }
3495
+ function ToastViewport({
3496
+ className,
3497
+ closeLabel = "Dismiss notification",
3498
+ placement = "bottom-right",
3499
+ swipeDirection,
3500
+ toastClassName
3501
+ }) {
3502
+ const { toasts } = Toast.useToastManager();
3503
+ return /* @__PURE__ */ jsx(Toast.Portal, { children: /* @__PURE__ */ jsx(
3504
+ Toast.Viewport,
3505
+ {
3506
+ className: classNames(Toast_default.viewport, className),
3507
+ "data-placement": placement,
3508
+ children: toasts.map((toast) => /* @__PURE__ */ jsx(
3509
+ Toast.Root,
3510
+ {
3511
+ toast,
3512
+ className: classNames(Toast_default.toast, toastClassName),
3513
+ swipeDirection,
3514
+ "data-type": toast.type,
3515
+ children: /* @__PURE__ */ jsxs(Toast.Content, { className: Toast_default.content, children: [
3516
+ /* @__PURE__ */ jsx("div", { className: Toast_default.indicator, "aria-hidden": "true" }),
3517
+ /* @__PURE__ */ jsxs("div", { className: Toast_default.text, children: [
3518
+ toast.title ? /* @__PURE__ */ jsx(Toast.Title, { className: Toast_default.title }) : null,
3519
+ toast.description ? /* @__PURE__ */ jsx(Toast.Description, { className: Toast_default.description }) : null
3520
+ ] }),
3521
+ toast.actionProps ? /* @__PURE__ */ jsx(Toast.Action, { className: Toast_default.action, ...toast.actionProps }) : null,
3522
+ /* @__PURE__ */ jsx(Toast.Close, { className: Toast_default.close, "aria-label": closeLabel, children: /* @__PURE__ */ jsx(CloseIcon5, {}) })
3523
+ ] })
3524
+ },
3525
+ toast.id
3526
+ ))
3527
+ }
3528
+ ) });
3529
+ }
3530
+ function useToast() {
3531
+ return Toast.useToastManager();
3532
+ }
3533
+ var createToastManager = Toast.createToastManager;
3534
+ function CloseIcon5() {
3535
+ return /* @__PURE__ */ jsx("svg", { className: Toast_default.closeIcon, viewBox: "0 0 16 16", "aria-hidden": "true", children: /* @__PURE__ */ jsx("path", { d: "m4 4 8 8M12 4l-8 8" }) });
3536
+ }
3537
+
3538
+ // src/components/Toggle/Toggle.module.css
3539
+ var Toggle_default = {
3540
+ toggle: "Toggle_toggle",
3541
+ plain: "Toggle_plain",
3542
+ outlined: "Toggle_outlined",
3543
+ sm: "Toggle_sm",
3544
+ md: "Toggle_md",
3545
+ group: "Toggle_group",
3546
+ horizontal: "Toggle_horizontal",
3547
+ vertical: "Toggle_vertical",
3548
+ groupItem: "Toggle_groupItem"
3549
+ };
3550
+ var Toggle = forwardRef(
3551
+ ({
3552
+ children,
3553
+ className,
3554
+ defaultPressed,
3555
+ disabled = false,
3556
+ onPressedChange,
3557
+ pressed,
3558
+ size = "md",
3559
+ type,
3560
+ variant = "outlined",
3561
+ ...props
3562
+ }, ref) => /* @__PURE__ */ jsx(
3563
+ Toggle$1,
3564
+ {
3565
+ ref,
3566
+ className: classNames(Toggle_default.toggle, Toggle_default[size], Toggle_default[variant], className),
3567
+ defaultPressed,
3568
+ disabled,
3569
+ onPressedChange: (nextPressed) => onPressedChange?.(nextPressed),
3570
+ pressed,
3571
+ type: type ?? "button",
3572
+ ...props,
3573
+ children
3574
+ }
3575
+ )
3576
+ );
3577
+ Toggle.displayName = "Toggle";
3578
+ var ToggleGroup = forwardRef(
3579
+ ({
3580
+ ariaLabel,
3581
+ className,
3582
+ defaultValue,
3583
+ disabled = false,
3584
+ items,
3585
+ loopFocus = true,
3586
+ multiple = false,
3587
+ onValueChange,
3588
+ orientation = "horizontal",
3589
+ size = "md",
3590
+ value,
3591
+ variant = "outlined",
3592
+ ...props
3593
+ }, ref) => /* @__PURE__ */ jsx(
3594
+ ToggleGroup$1,
3595
+ {
3596
+ ref,
3597
+ "aria-label": ariaLabel,
3598
+ className: classNames(Toggle_default.group, Toggle_default[orientation], className),
3599
+ defaultValue,
3600
+ disabled,
3601
+ loopFocus,
3602
+ multiple,
3603
+ onValueChange: (nextValue) => onValueChange?.(nextValue.map(String)),
3604
+ orientation,
3605
+ value,
3606
+ ...props,
3607
+ children: items.map((item) => /* @__PURE__ */ jsx(
3608
+ Toggle$1,
3609
+ {
3610
+ className: classNames(Toggle_default.toggle, Toggle_default[size], Toggle_default[variant], Toggle_default.groupItem),
3611
+ disabled: item.disabled ?? false,
3612
+ type: "button",
3613
+ value: item.value,
3614
+ children: item.label
3615
+ },
3616
+ item.value
3617
+ ))
3618
+ }
3619
+ )
3620
+ );
3621
+ ToggleGroup.displayName = "ToggleGroup";
3622
+
3623
+ // src/components/Toolbar/Toolbar.module.css
3624
+ var Toolbar_default = {
3625
+ toolbar: "Toolbar_toolbar",
3626
+ horizontal: "Toolbar_horizontal",
3627
+ vertical: "Toolbar_vertical",
3628
+ plain: "Toolbar_plain",
3629
+ outlined: "Toolbar_outlined",
3630
+ group: "Toolbar_group",
3631
+ item: "Toolbar_item",
3632
+ input: "Toolbar_input",
3633
+ sm: "Toolbar_sm",
3634
+ md: "Toolbar_md",
3635
+ separator: "Toolbar_separator"
3636
+ };
3637
+ var Toolbar = forwardRef(
3638
+ ({
3639
+ ariaLabel,
3640
+ children,
3641
+ className,
3642
+ disabled = false,
3643
+ loopFocus = true,
3644
+ orientation = "horizontal",
3645
+ size = "md",
3646
+ variant = "outlined",
3647
+ ...props
3648
+ }, ref) => /* @__PURE__ */ jsx(
3649
+ Toolbar$1.Root,
3650
+ {
3651
+ ref,
3652
+ "aria-label": ariaLabel,
3653
+ className: classNames(
3654
+ Toolbar_default.toolbar,
3655
+ Toolbar_default[orientation],
3656
+ Toolbar_default[size],
3657
+ Toolbar_default[variant],
3658
+ className
3659
+ ),
3660
+ disabled,
3661
+ loopFocus,
3662
+ orientation,
3663
+ ...props,
3664
+ children
3665
+ }
3666
+ )
3667
+ );
3668
+ Toolbar.displayName = "Toolbar";
3669
+ var ToolbarGroup = forwardRef(
3670
+ ({ children, className, disabled = false, ...props }, ref) => /* @__PURE__ */ jsx(
3671
+ Toolbar$1.Group,
3672
+ {
3673
+ ref,
3674
+ className: classNames(Toolbar_default.group, className),
3675
+ disabled,
3676
+ ...props,
3677
+ children
3678
+ }
3679
+ )
3680
+ );
3681
+ ToolbarGroup.displayName = "ToolbarGroup";
3682
+ var ToolbarButton = forwardRef(
3683
+ ({ children, className, type, ...props }, ref) => /* @__PURE__ */ jsx(
3684
+ Toolbar$1.Button,
3685
+ {
3686
+ ref,
3687
+ className: classNames(Toolbar_default.item, Toolbar_default.button, className),
3688
+ type: type ?? "button",
3689
+ ...props,
3690
+ children
3691
+ }
3692
+ )
3693
+ );
3694
+ ToolbarButton.displayName = "ToolbarButton";
3695
+ var ToolbarLink = forwardRef(
3696
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ jsx(
3697
+ Toolbar$1.Link,
3698
+ {
3699
+ ref,
3700
+ className: classNames(Toolbar_default.item, Toolbar_default.link, className),
3701
+ ...props,
3702
+ children
3703
+ }
3704
+ )
3705
+ );
3706
+ ToolbarLink.displayName = "ToolbarLink";
3707
+ var ToolbarInput = forwardRef(
3708
+ ({ className, type = "text", ...props }, ref) => /* @__PURE__ */ jsx(
3709
+ Toolbar$1.Input,
3710
+ {
3711
+ ref,
3712
+ className: classNames(Toolbar_default.input, className),
3713
+ type,
3714
+ ...props
3715
+ }
3716
+ )
3717
+ );
3718
+ ToolbarInput.displayName = "ToolbarInput";
3719
+ var ToolbarSeparator = forwardRef(
3720
+ ({ className, orientation, ...props }, ref) => /* @__PURE__ */ jsx(
3721
+ Toolbar$1.Separator,
3722
+ {
3723
+ ref,
3724
+ className: classNames(Toolbar_default.separator, className),
3725
+ orientation,
3726
+ ...props
3727
+ }
3728
+ )
3729
+ );
3730
+ ToolbarSeparator.displayName = "ToolbarSeparator";
3731
+
3732
+ // src/components/Tooltip/Tooltip.module.css
3733
+ var Tooltip_default = {
3734
+ trigger: "Tooltip_trigger",
3735
+ positioner: "Tooltip_positioner",
3736
+ popup: "Tooltip_popup",
3737
+ arrow: "Tooltip_arrow"
3738
+ };
3739
+ function TooltipProvider({ children, closeDelay, delay, timeout }) {
3740
+ return /* @__PURE__ */ jsx(Tooltip$1.Provider, { delay, closeDelay, timeout, children });
3741
+ }
3742
+ function Tooltip({
3743
+ align = "center",
3744
+ ariaLabel,
3745
+ children,
3746
+ className,
3747
+ closeDelay,
3748
+ closeOnClick = true,
3749
+ content,
3750
+ defaultOpen,
3751
+ delay,
3752
+ disabled = false,
3753
+ onOpenChange,
3754
+ open,
3755
+ side = "top",
3756
+ sideOffset = 8,
3757
+ triggerClassName
3758
+ }) {
3759
+ return /* @__PURE__ */ jsxs(
3760
+ Tooltip$1.Root,
3761
+ {
3762
+ open,
3763
+ defaultOpen,
3764
+ disabled,
3765
+ onOpenChange: (nextOpen) => {
3766
+ onOpenChange?.(nextOpen);
3767
+ },
3768
+ children: [
3769
+ /* @__PURE__ */ jsx(
3770
+ Tooltip$1.Trigger,
3771
+ {
3772
+ className: classNames(Tooltip_default.trigger, triggerClassName),
3773
+ "aria-label": ariaLabel,
3774
+ delay,
3775
+ closeDelay,
3776
+ closeOnClick,
3777
+ children
3778
+ }
3779
+ ),
3780
+ /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsx(
3781
+ Tooltip$1.Positioner,
3782
+ {
3783
+ className: Tooltip_default.positioner,
3784
+ side,
3785
+ align,
3786
+ sideOffset,
3787
+ children: /* @__PURE__ */ jsxs(Tooltip$1.Popup, { className: classNames(Tooltip_default.popup, className), role: "tooltip", children: [
3788
+ /* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: Tooltip_default.arrow }),
3789
+ content
3790
+ ] })
3791
+ }
3792
+ ) })
3793
+ ]
3794
+ }
3795
+ );
3796
+ }
3797
+
3798
+ // src/index.ts
3799
+ var UI_PACKAGE_NAME = "@mithunsalinda/veyqor-ui";
3800
+ var UI_PACKAGE_VERSION = "0.1.0";
3801
+
3802
+ export { Accordion, Alert, Avatar, Badge, Breadcrumb, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardMedia, CardTitle, Checkbox, Collapsible, Combobox, Command, CommandDialog, ContextMenu, DatePicker, Dialog, Drawer, DropdownMenu, EmptyState, Fieldset, FormField, Input, Menubar, Meter, NavigationMenu, NumberField, OTPField, Pagination, Popover, Progress, RadioGroup, ScrollArea, Select, Separator, SidePanel, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRoot, TableRow, Tabs, ToastProvider, ToastViewport, Toggle, ToggleGroup, Toolbar, ToolbarButton, ToolbarGroup, ToolbarInput, ToolbarLink, ToolbarSeparator, Tooltip, TooltipProvider, UI_PACKAGE_NAME, UI_PACKAGE_VERSION, createToastManager, useToast };
3803
+ //# sourceMappingURL=index.js.map
3804
+ //# sourceMappingURL=index.js.map