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