@ikatec/nebula-react 0.0.1-alpha.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,2265 @@
1
+ 'use strict';
2
+
3
+ var React8 = require('react');
4
+ var reactSlot = require('@radix-ui/react-slot');
5
+ var classVarianceAuthority = require('class-variance-authority');
6
+ var tailwindMerge = require('tailwind-merge');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+ var PopoverPrimitive = require('@radix-ui/react-popover');
9
+ var LabelPrimitive = require('@radix-ui/react-label');
10
+ var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
11
+ var SeparatorPrimitive = require('@radix-ui/react-separator');
12
+ var Select = require('react-select');
13
+ var Creatable = require('react-select/creatable');
14
+ var Async = require('react-select/async');
15
+ var AsyncCreatable = require('react-select/async-creatable');
16
+ var DialogPrimitive = require('@radix-ui/react-dialog');
17
+ var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
18
+ var CheckboxPrimitive = require('@radix-ui/react-checkbox');
19
+ var SwitchPrimitives = require('@radix-ui/react-switch');
20
+ var TooltipPrimitive = require('@radix-ui/react-tooltip');
21
+
22
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
23
+
24
+ function _interopNamespace(e) {
25
+ if (e && e.__esModule) return e;
26
+ var n = Object.create(null);
27
+ if (e) {
28
+ Object.keys(e).forEach(function (k) {
29
+ if (k !== 'default') {
30
+ var d = Object.getOwnPropertyDescriptor(e, k);
31
+ Object.defineProperty(n, k, d.get ? d : {
32
+ enumerable: true,
33
+ get: function () { return e[k]; }
34
+ });
35
+ }
36
+ });
37
+ }
38
+ n.default = e;
39
+ return Object.freeze(n);
40
+ }
41
+
42
+ var React8__namespace = /*#__PURE__*/_interopNamespace(React8);
43
+ var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
44
+ var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
45
+ var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
46
+ var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
47
+ var Select__default = /*#__PURE__*/_interopDefault(Select);
48
+ var Creatable__default = /*#__PURE__*/_interopDefault(Creatable);
49
+ var Async__default = /*#__PURE__*/_interopDefault(Async);
50
+ var AsyncCreatable__default = /*#__PURE__*/_interopDefault(AsyncCreatable);
51
+ var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
52
+ var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
53
+ var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
54
+ var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
55
+ var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
56
+
57
+ // src/button.tsx
58
+
59
+ // ../../node_modules/clsx/dist/clsx.mjs
60
+ function r(e) {
61
+ var t, f, n = "";
62
+ if ("string" == typeof e || "number" == typeof e) n += e;
63
+ else if ("object" == typeof e) if (Array.isArray(e)) {
64
+ var o = e.length;
65
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
66
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
67
+ return n;
68
+ }
69
+ function clsx() {
70
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
71
+ return n;
72
+ }
73
+
74
+ // nebula.config.ts
75
+ var nebulaClass = "nebula-ds";
76
+
77
+ // lib/utils.ts
78
+ function cn(...inputs) {
79
+ return tailwindMerge.twMerge(nebulaClass, clsx(inputs));
80
+ }
81
+ var processChildren = (children) => {
82
+ return React8__namespace.default.Children.map(children, (child) => {
83
+ if (typeof child === "string") {
84
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds px-2", children: child });
85
+ }
86
+ if (React8__namespace.default.isValidElement(child) && child.type === React8__namespace.default.Fragment) {
87
+ return processChildren(child.props.children);
88
+ }
89
+ return child;
90
+ });
91
+ };
92
+ var buttonVariantEnum = /* @__PURE__ */ ((buttonVariantEnum2) => {
93
+ buttonVariantEnum2["primary"] = `
94
+ bg-button-primary-background-default
95
+ hover:bg-button-primary-background-hover
96
+ active:bg-button-primary-background-active
97
+ focus:bg-button-primary-background-focus
98
+ focus:ring-button-primary-border-focus
99
+ text-button-primary-text
100
+ `;
101
+ buttonVariantEnum2["secondary"] = `
102
+ border
103
+ border-button-secondary-border-default
104
+ bg-button-secondary-background-default
105
+ hover:bg-button-secondary-background-hover
106
+ active:bg-button-secondary-background-active
107
+ focus:bg-button-secondary-background-focus
108
+ focus:ring-button-secondary-border-focus
109
+ text-button-secondary-text
110
+ `;
111
+ buttonVariantEnum2["ghost"] = `
112
+ bg-button-ghost-background-default
113
+ hover:bg-button-ghost-background-hover
114
+ active:bg-button-ghost-background-active
115
+ focus:bg-button-ghost-background-focus
116
+ focus:ring-button-ghost-border-focus
117
+ text-button-ghost-text
118
+ `;
119
+ buttonVariantEnum2["danger"] = `
120
+ bg-button-danger-background-default
121
+ hover:bg-button-danger-background-hover
122
+ active:bg-button-danger-background-active
123
+ focus:bg-button-danger-background-focus
124
+ focus:ring-button-danger-border-focus
125
+ text-button-danger-text
126
+ `;
127
+ return buttonVariantEnum2;
128
+ })(buttonVariantEnum || {});
129
+ var buttonSizeEnum = /* @__PURE__ */ ((buttonSizeEnum2) => {
130
+ buttonSizeEnum2["xs"] = "h-6 px-2 [&>svg]:size-3 text-sm";
131
+ buttonSizeEnum2["sm"] = "h-8 px-2 [&>svg]:size-3 text-sm";
132
+ buttonSizeEnum2["md"] = "h-10 px-4 [&>svg]:size-4 text-base";
133
+ buttonSizeEnum2["lg"] = "h-12 px-6 [&>svg]:size-5 text-xl";
134
+ return buttonSizeEnum2;
135
+ })(buttonSizeEnum || {});
136
+ var variant = {
137
+ primary: "\n bg-button-primary-background-default\n hover:bg-button-primary-background-hover\n active:bg-button-primary-background-active\n focus:bg-button-primary-background-focus\n focus:ring-button-primary-border-focus\n text-button-primary-text\n " /* primary */,
138
+ secondary: "\n border\n border-button-secondary-border-default\n bg-button-secondary-background-default\n hover:bg-button-secondary-background-hover\n active:bg-button-secondary-background-active\n focus:bg-button-secondary-background-focus\n focus:ring-button-secondary-border-focus\n text-button-secondary-text\n " /* secondary */,
139
+ ghost: "\n bg-button-ghost-background-default\n hover:bg-button-ghost-background-hover\n active:bg-button-ghost-background-active\n focus:bg-button-ghost-background-focus\n focus:ring-button-ghost-border-focus\n text-button-ghost-text\n " /* ghost */,
140
+ danger: "\n bg-button-danger-background-default\n hover:bg-button-danger-background-hover\n active:bg-button-danger-background-active\n focus:bg-button-danger-background-focus\n focus:ring-button-danger-border-focus\n text-button-danger-text\n " /* danger */
141
+ };
142
+ var size = {
143
+ xs: "h-6 px-2 [&>svg]:size-3 text-sm" /* xs */,
144
+ sm: "h-8 px-2 [&>svg]:size-3 text-sm" /* sm */,
145
+ md: "h-10 px-4 [&>svg]:size-4 text-base" /* md */,
146
+ lg: "h-12 px-6 [&>svg]:size-5 text-xl" /* lg */
147
+ };
148
+ var buttonVariantsConfig = classVarianceAuthority.cva(
149
+ `
150
+ inline-flex
151
+ items-center
152
+ justify-center
153
+ whitespace-nowrap
154
+ rounded-full
155
+ font-semibold
156
+ ring-offset-background
157
+ transition-colors
158
+ focus-visible:outline-none
159
+ focus-visible:ring-4
160
+ focus-visible:ring-ring
161
+ focus-visible:ring-offset-0
162
+ disabled:pointer-events-none
163
+ disabled:bg-button-disabled-background
164
+ disabled:text-button-disabled-text
165
+ disabled:border-none
166
+ `,
167
+ {
168
+ variants: {
169
+ variant,
170
+ size
171
+ },
172
+ defaultVariants: {
173
+ variant: "primary",
174
+ size: "md"
175
+ }
176
+ }
177
+ );
178
+ var Button = React8__namespace.forwardRef(
179
+ ({
180
+ className,
181
+ variant: variant3,
182
+ size: size4,
183
+ icon = false,
184
+ asChild = false,
185
+ children,
186
+ ...rest
187
+ }, ref) => {
188
+ const Comp = asChild ? reactSlot.Slot : "button";
189
+ const iconSizeClasses = icon ? {
190
+ xs: "h-6 w-6 p-0",
191
+ sm: "h-8 w-8 p-0",
192
+ md: "h-10 w-10 p-0",
193
+ lg: "h-12 w-12 p-0"
194
+ }[size4 ?? "md"] : "";
195
+ return /* @__PURE__ */ jsxRuntime.jsx(
196
+ Comp,
197
+ {
198
+ className: cn(
199
+ buttonVariantsConfig({ variant: variant3, size: size4, className }),
200
+ iconSizeClasses
201
+ ),
202
+ ref,
203
+ ...rest,
204
+ children: processChildren(children)
205
+ }
206
+ );
207
+ }
208
+ );
209
+ Button.displayName = "Button";
210
+ var badgeVariantEnum = /* @__PURE__ */ ((badgeVariantEnum2) => {
211
+ badgeVariantEnum2["primary"] = "bg-badge-primary-background text-badge-primary-text";
212
+ badgeVariantEnum2["secondary"] = "bg-badge-secondary-background text-badge-secondary-text";
213
+ badgeVariantEnum2["alert"] = "bg-badge-alert-background text-badge-alert-text";
214
+ return badgeVariantEnum2;
215
+ })(badgeVariantEnum || {});
216
+ var badgeSizeEnum = /* @__PURE__ */ ((badgeSizeEnum2) => {
217
+ badgeSizeEnum2["sm"] = "h-4 min-w-4 text-[10px]";
218
+ badgeSizeEnum2["md"] = "h-6 min-w-6 text-xs";
219
+ return badgeSizeEnum2;
220
+ })(badgeSizeEnum || {});
221
+ var variant2 = {
222
+ primary: "bg-badge-primary-background text-badge-primary-text" /* primary */,
223
+ secondary: "bg-badge-secondary-background text-badge-secondary-text" /* secondary */,
224
+ alert: "bg-badge-alert-background text-badge-alert-text" /* alert */
225
+ };
226
+ var size2 = {
227
+ sm: "h-4 min-w-4 text-[10px]" /* sm */,
228
+ md: "h-6 min-w-6 text-xs" /* md */
229
+ };
230
+ var badgeVariantsConfig = classVarianceAuthority.cva(
231
+ "flex items-center justify-center rounded-full font-semibold",
232
+ {
233
+ variants: {
234
+ variant: variant2,
235
+ size: size2
236
+ },
237
+ defaultVariants: {
238
+ variant: "primary",
239
+ size: "md"
240
+ }
241
+ }
242
+ );
243
+ var Badge = React8__namespace.forwardRef(
244
+ ({ className, variant: variant3, size: size4, ...props }, ref) => {
245
+ return /* @__PURE__ */ jsxRuntime.jsx(
246
+ "div",
247
+ {
248
+ ref,
249
+ className: cn(badgeVariantsConfig({ variant: variant3, size: size4 }), className),
250
+ ...props
251
+ }
252
+ );
253
+ }
254
+ );
255
+ Badge.displayName = "Badge";
256
+
257
+ // src/utils/extract-variant.ts
258
+ function extractVariants(variants4) {
259
+ return Object.keys(variants4).reduce(
260
+ (acc, key) => {
261
+ const variantKey = key;
262
+ const variantValues = variants4[variantKey];
263
+ if (variantValues) {
264
+ acc[variantKey] = Object.keys(variantValues);
265
+ }
266
+ return acc;
267
+ },
268
+ {}
269
+ );
270
+ }
271
+ var variants = {
272
+ variant: {
273
+ default: `
274
+ bg-alert-default-background-default
275
+ border-alert-default-border-default
276
+ text-alert-default-text
277
+ [&>svg]:text-alert-default-icon
278
+ `,
279
+ info: `
280
+ bg-alert-info-background-default
281
+ border-alert-info-border-default
282
+ text-alert-info-text
283
+ [&>svg]:text-alert-info-icon
284
+ `,
285
+ success: `
286
+ bg-alert-success-background-default
287
+ border-alert-success-border-default
288
+ text-alert-success-text
289
+ [&>svg]:text-alert-success-icon
290
+ `,
291
+ warning: `
292
+ bg-alert-warning-background-default
293
+ border-alert-warning-border-default
294
+ text-alert-warning-text
295
+ [&>svg]:text-alert-warning-icon
296
+ `,
297
+ danger: `
298
+ bg-alert-danger-background-default
299
+ border-alert-danger-border-default
300
+ text-alert-danger-text
301
+ [&>svg]:text-alert-danger-icon
302
+ `
303
+ }
304
+ };
305
+ var alertVariantsConfig = classVarianceAuthority.cva(
306
+ `
307
+ min-h-[48px]
308
+ w-full
309
+ rounded-[0.5rem]
310
+ border
311
+ p-[12px_16px]
312
+ rounded-[16px]
313
+ flex
314
+ items-center
315
+ gap-[8px]
316
+ text-sm
317
+ [&>button]:text-alert-default-button-color
318
+ `,
319
+ {
320
+ variants,
321
+ defaultVariants: {
322
+ variant: "default"
323
+ }
324
+ }
325
+ );
326
+ var alertVariants = extractVariants(variants);
327
+ var Alert = React8__namespace.forwardRef(
328
+ ({ className, variant: variant3, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
329
+ "div",
330
+ {
331
+ ref,
332
+ role: "alert",
333
+ className: cn(alertVariantsConfig({ variant: variant3 }), className),
334
+ ...props
335
+ }
336
+ )
337
+ );
338
+ Alert.displayName = "Alert";
339
+ var AlertTitle = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
340
+ "h5",
341
+ {
342
+ ref,
343
+ className: cn("mb-1 font-medium leading-none tracking-tight", className),
344
+ ...props
345
+ }
346
+ ));
347
+ AlertTitle.displayName = "AlertTitle";
348
+ var AlertDescription = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
349
+ "div",
350
+ {
351
+ ref,
352
+ className: cn("[&_p]:leading-relaxed", className),
353
+ ...props
354
+ }
355
+ ));
356
+ AlertDescription.displayName = "AlertDescription";
357
+ var AlertButton = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
358
+ "button",
359
+ {
360
+ ref,
361
+ className: cn("flex items-center font-semibold", className),
362
+ ...props
363
+ }
364
+ ));
365
+ AlertButton.displayName = "AlertButton";
366
+ var Popover = PopoverPrimitive__namespace.Root;
367
+ var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
368
+ var PopoverContent = React8__namespace.forwardRef(
369
+ ({ className, align = "center", sideOffset = 4, portal = false, ...props }, ref) => {
370
+ const Comp = portal ? PopoverPrimitive__namespace.Portal : React8__namespace.Fragment;
371
+ return /* @__PURE__ */ jsxRuntime.jsx(Comp, { children: /* @__PURE__ */ jsxRuntime.jsx(
372
+ PopoverPrimitive__namespace.Content,
373
+ {
374
+ ref,
375
+ align,
376
+ sideOffset,
377
+ className: cn(
378
+ `
379
+ z-[1000]
380
+ rounded-xl
381
+ border
382
+ border-dropdownMenu-border
383
+ bg-dropdownMenu-background
384
+ shadow-dropdownMenu-shadow
385
+ px-3
386
+ py-4
387
+ shadow-sm
388
+ outline-none
389
+ `,
390
+ className
391
+ ),
392
+ ...props
393
+ }
394
+ ) });
395
+ }
396
+ );
397
+ PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
398
+ var Label = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
399
+ LabelPrimitive__namespace.Root,
400
+ {
401
+ ref,
402
+ className: cn(
403
+ "text-sm text-label-text-default font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
404
+ className
405
+ ),
406
+ ...props
407
+ }
408
+ ));
409
+ Label.displayName = LabelPrimitive__namespace.Root.displayName;
410
+ var Table = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds relative w-full overflow-auto border rounded-2xl border-table-border bg-table-background", children: /* @__PURE__ */ jsxRuntime.jsx(
411
+ "table",
412
+ {
413
+ ref,
414
+ className: cn("w-full caption-bottom text-sm", className),
415
+ ...props
416
+ }
417
+ ) }));
418
+ Table.displayName = "Table";
419
+ var TableHeader = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
420
+ TableHeader.displayName = "TableHeader";
421
+ var TableBody = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
422
+ "tbody",
423
+ {
424
+ ref,
425
+ className: cn("[&_tr:last-child]:border-0", className),
426
+ ...props
427
+ }
428
+ ));
429
+ TableBody.displayName = "TableBody";
430
+ var TableFooter = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
431
+ "tfoot",
432
+ {
433
+ ref,
434
+ className: cn(
435
+ "border-t border-table-border font-medium [&>tr]:last:border-b-0",
436
+ className
437
+ ),
438
+ ...props
439
+ }
440
+ ));
441
+ TableFooter.displayName = "TableFooter";
442
+ var variants2 = {
443
+ variant: {
444
+ first: "bg-table-cell-background-first-layer",
445
+ second: "bg-table-cell-background-second-layer"
446
+ }
447
+ };
448
+ var tableRowVariantsConfig = classVarianceAuthority.cva(
449
+ `
450
+ border-b
451
+ border-table-cell-border
452
+ transition-colors
453
+ `,
454
+ {
455
+ variants: variants2,
456
+ defaultVariants: {
457
+ variant: "first"
458
+ }
459
+ }
460
+ );
461
+ var TableRow = React8__namespace.forwardRef(
462
+ ({ className, variant: variant3 = "first", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
463
+ "tr",
464
+ {
465
+ ref,
466
+ className: cn(tableRowVariantsConfig({ variant: variant3, className })),
467
+ ...props
468
+ }
469
+ )
470
+ );
471
+ TableRow.displayName = "TableRow";
472
+ var TableHead = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
473
+ "th",
474
+ {
475
+ ref,
476
+ className: cn(
477
+ "h-10 px-4 text-left align-middle font-medium text-table-header-text [&:has([role=checkbox])]:pr-0",
478
+ className
479
+ ),
480
+ ...props
481
+ }
482
+ ));
483
+ TableHead.displayName = "TableHead";
484
+ var TableCell = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
485
+ "td",
486
+ {
487
+ ref,
488
+ className: cn(
489
+ "h-12 px-4 align-middle [&:has([role=checkbox])]:pr-0 text-table-cell-text",
490
+ className
491
+ ),
492
+ ...props
493
+ }
494
+ ));
495
+ TableCell.displayName = "TableCell";
496
+ var TableCaption = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn("mt-4 text-sm", className), ...props }));
497
+ TableCaption.displayName = "TableCaption";
498
+
499
+ // ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
500
+ var toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
501
+ var mergeClasses = (...classes) => classes.filter((className, index, array) => {
502
+ return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
503
+ }).join(" ").trim();
504
+
505
+ // ../../node_modules/lucide-react/dist/esm/defaultAttributes.js
506
+ var defaultAttributes = {
507
+ xmlns: "http://www.w3.org/2000/svg",
508
+ width: 24,
509
+ height: 24,
510
+ viewBox: "0 0 24 24",
511
+ fill: "none",
512
+ stroke: "currentColor",
513
+ strokeWidth: 2,
514
+ strokeLinecap: "round",
515
+ strokeLinejoin: "round"
516
+ };
517
+
518
+ // ../../node_modules/lucide-react/dist/esm/Icon.js
519
+ var Icon = React8.forwardRef(
520
+ ({
521
+ color: color2 = "currentColor",
522
+ size: size4 = 24,
523
+ strokeWidth = 2,
524
+ absoluteStrokeWidth,
525
+ className = "",
526
+ children,
527
+ iconNode,
528
+ ...rest
529
+ }, ref) => {
530
+ return React8.createElement(
531
+ "svg",
532
+ {
533
+ ref,
534
+ ...defaultAttributes,
535
+ width: size4,
536
+ height: size4,
537
+ stroke: color2,
538
+ strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size4) : strokeWidth,
539
+ className: mergeClasses("lucide", className),
540
+ ...rest
541
+ },
542
+ [
543
+ ...iconNode.map(([tag, attrs]) => React8.createElement(tag, attrs)),
544
+ ...Array.isArray(children) ? children : [children]
545
+ ]
546
+ );
547
+ }
548
+ );
549
+
550
+ // ../../node_modules/lucide-react/dist/esm/createLucideIcon.js
551
+ var createLucideIcon = (iconName, iconNode) => {
552
+ const Component = React8.forwardRef(
553
+ ({ className, ...props }, ref) => React8.createElement(Icon, {
554
+ ref,
555
+ iconNode,
556
+ className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
557
+ ...props
558
+ })
559
+ );
560
+ Component.displayName = `${iconName}`;
561
+ return Component;
562
+ };
563
+
564
+ // ../../node_modules/lucide-react/dist/esm/icons/check.js
565
+ var __iconNode = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
566
+ var Check = createLucideIcon("Check", __iconNode);
567
+
568
+ // ../../node_modules/lucide-react/dist/esm/icons/chevron-down.js
569
+ var __iconNode2 = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
570
+ var ChevronDown = createLucideIcon("ChevronDown", __iconNode2);
571
+
572
+ // ../../node_modules/lucide-react/dist/esm/icons/chevron-left.js
573
+ var __iconNode3 = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]];
574
+ var ChevronLeft = createLucideIcon("ChevronLeft", __iconNode3);
575
+
576
+ // ../../node_modules/lucide-react/dist/esm/icons/chevron-right.js
577
+ var __iconNode4 = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
578
+ var ChevronRight = createLucideIcon("ChevronRight", __iconNode4);
579
+
580
+ // ../../node_modules/lucide-react/dist/esm/icons/chevrons-left.js
581
+ var __iconNode5 = [
582
+ ["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
583
+ ["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
584
+ ];
585
+ var ChevronsLeft = createLucideIcon("ChevronsLeft", __iconNode5);
586
+
587
+ // ../../node_modules/lucide-react/dist/esm/icons/chevrons-right.js
588
+ var __iconNode6 = [
589
+ ["path", { d: "m6 17 5-5-5-5", key: "xnjwq" }],
590
+ ["path", { d: "m13 17 5-5-5-5", key: "17xmmf" }]
591
+ ];
592
+ var ChevronsRight = createLucideIcon("ChevronsRight", __iconNode6);
593
+
594
+ // ../../node_modules/lucide-react/dist/esm/icons/circle-x.js
595
+ var __iconNode7 = [
596
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
597
+ ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
598
+ ["path", { d: "m9 9 6 6", key: "z0biqf" }]
599
+ ];
600
+ var CircleX = createLucideIcon("CircleX", __iconNode7);
601
+
602
+ // ../../node_modules/lucide-react/dist/esm/icons/circle.js
603
+ var __iconNode8 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
604
+ var Circle = createLucideIcon("Circle", __iconNode8);
605
+
606
+ // ../../node_modules/lucide-react/dist/esm/icons/ellipsis.js
607
+ var __iconNode9 = [
608
+ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
609
+ ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
610
+ ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
611
+ ];
612
+ var Ellipsis = createLucideIcon("Ellipsis", __iconNode9);
613
+
614
+ // ../../node_modules/lucide-react/dist/esm/icons/eye-off.js
615
+ var __iconNode10 = [
616
+ [
617
+ "path",
618
+ {
619
+ d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
620
+ key: "ct8e1f"
621
+ }
622
+ ],
623
+ ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242", key: "151rxh" }],
624
+ [
625
+ "path",
626
+ {
627
+ d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",
628
+ key: "13bj9a"
629
+ }
630
+ ],
631
+ ["path", { d: "m2 2 20 20", key: "1ooewy" }]
632
+ ];
633
+ var EyeOff = createLucideIcon("EyeOff", __iconNode10);
634
+
635
+ // ../../node_modules/lucide-react/dist/esm/icons/eye.js
636
+ var __iconNode11 = [
637
+ [
638
+ "path",
639
+ {
640
+ d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",
641
+ key: "1nclc0"
642
+ }
643
+ ],
644
+ ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
645
+ ];
646
+ var Eye = createLucideIcon("Eye", __iconNode11);
647
+
648
+ // ../../node_modules/lucide-react/dist/esm/icons/minus.js
649
+ var __iconNode12 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
650
+ var Minus = createLucideIcon("Minus", __iconNode12);
651
+
652
+ // ../../node_modules/lucide-react/dist/esm/icons/x.js
653
+ var __iconNode13 = [
654
+ ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
655
+ ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
656
+ ];
657
+ var X = createLucideIcon("X", __iconNode13);
658
+ var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
659
+ var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
660
+ var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
661
+ var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
662
+ var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
663
+ var DropdownMenuSubTrigger = React8__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
664
+ DropdownMenuPrimitive__namespace.SubTrigger,
665
+ {
666
+ ref,
667
+ className: cn(
668
+ `
669
+ flex
670
+ cursor-default
671
+ select-none
672
+ items-center
673
+ gap-2
674
+ px-4
675
+ h-11
676
+ text-sm
677
+ text-listItem-text-default
678
+ active:text-listItem-text-selected
679
+ active:font-semibold
680
+ active:bg-listItem-background-default
681
+ focus:bg-listItem-background-hover
682
+ outline-none
683
+ `,
684
+ inset && "pl-8",
685
+ className
686
+ ),
687
+ ...props,
688
+ children: [
689
+ children,
690
+ /* @__PURE__ */ jsxRuntime.jsx(ChevronRight, { className: "nebula-ds ml-auto size-4" })
691
+ ]
692
+ }
693
+ ));
694
+ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
695
+ var DropdownMenuSubContent = React8__namespace.forwardRef(({ className, portal = false, ...props }, ref) => {
696
+ const Comp = portal ? DropdownMenuPrimitive__namespace.Portal : React8__namespace.Fragment;
697
+ return /* @__PURE__ */ jsxRuntime.jsx(Comp, { children: /* @__PURE__ */ jsxRuntime.jsx(
698
+ DropdownMenuPrimitive__namespace.SubContent,
699
+ {
700
+ ref,
701
+ className: cn(
702
+ `
703
+ z-50
704
+ min-w-[8rem]
705
+ overflow-hidden
706
+ rounded-2xl
707
+ border
708
+ border-dropdownMenu-border
709
+ bg-dropdownMenu-background
710
+ text-listItem-text-default
711
+ shadow-md
712
+ shadow-dropdownMenu-shadow
713
+ `,
714
+ className
715
+ ),
716
+ ...props
717
+ }
718
+ ) });
719
+ });
720
+ DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
721
+ var DropdownMenuContent = React8__namespace.forwardRef(({ className, sideOffset = 4, portal = false, ...props }, ref) => {
722
+ const Comp = portal ? DropdownMenuPrimitive__namespace.Portal : React8__namespace.Fragment;
723
+ return /* @__PURE__ */ jsxRuntime.jsx(Comp, { children: /* @__PURE__ */ jsxRuntime.jsx(
724
+ DropdownMenuPrimitive__namespace.Content,
725
+ {
726
+ ref,
727
+ sideOffset,
728
+ className: cn(
729
+ `
730
+ z-50
731
+ max-h-72
732
+ min-w-32
733
+ overflow-y-auto
734
+ overflow-x-hidden
735
+ rounded-2xl
736
+ border
737
+ border-dropdownMenu-border
738
+ bg-dropdownMenu-background
739
+ text-listItem-text-default
740
+ shadow-md
741
+ shadow-dropdownMenu-shadow
742
+ `,
743
+ className
744
+ ),
745
+ ...props
746
+ }
747
+ ) });
748
+ });
749
+ DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
750
+ var DropdownMenuItem = React8__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
751
+ DropdownMenuPrimitive__namespace.Item,
752
+ {
753
+ ref,
754
+ className: cn(
755
+ `
756
+ relative
757
+ flex
758
+ cursor-pointer
759
+ select-none
760
+ items-center
761
+ gap-2
762
+ px-4
763
+ h-11
764
+ text-sm
765
+ outline-none
766
+ transition-colors
767
+ active:text-listItem-text-selected
768
+ active:font-semibold
769
+ active:bg-listItem-background-default
770
+ focus:bg-listItem-background-hover
771
+ data-[disabled]:pointer-events-none
772
+ data-[disabled]:opacity-50
773
+ [&>svg]:size-4
774
+ [&>svg]:shrink-0
775
+ `,
776
+ inset && "pl-8",
777
+ className
778
+ ),
779
+ ...props
780
+ }
781
+ ));
782
+ DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
783
+ var DropdownMenuCheckboxItem = React8__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
784
+ DropdownMenuPrimitive__namespace.CheckboxItem,
785
+ {
786
+ ref,
787
+ className: cn(
788
+ `
789
+ relative
790
+ flex
791
+ cursor-pointer
792
+ select-none
793
+ items-center
794
+ h-11
795
+ pl-10
796
+ pr-4
797
+ text-listItem-text-default
798
+ outline-none
799
+ transition-colors
800
+ font-normal
801
+ active:text-listItem-text-selected
802
+ active:font-semibold
803
+ active:bg-listItem-background-default
804
+ focus:bg-listItem-background-hover
805
+ data-[disabled]:pointer-events-none
806
+ data-[disabled]:opacity-50
807
+ data-[state=checked]:font-semibold
808
+ data-[state=checked]:text-listItem-text-selected
809
+ `,
810
+ className
811
+ ),
812
+ checked,
813
+ ...props,
814
+ children: [
815
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { className: "nebula-ds absolute left-4 h-11 w-4 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(Check, { className: "nebula-ds h-4 w-4" }) }),
816
+ children
817
+ ]
818
+ }
819
+ ));
820
+ DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
821
+ var DropdownMenuRadioItem = React8__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
822
+ DropdownMenuPrimitive__namespace.RadioItem,
823
+ {
824
+ ref,
825
+ className: cn(
826
+ `
827
+ relative
828
+ flex
829
+ cursor-pointer
830
+ select-none
831
+ items-center
832
+ h-11
833
+ pl-8
834
+ pr-2
835
+ text-listItem-text-default
836
+ outline-none
837
+ transition-colors
838
+ active:text-listItem-text-selected
839
+ active:font-semibold
840
+ active:bg-listItem-background-default
841
+ focus:bg-listItem-background-hover
842
+ data-[disabled]:pointer-events-none
843
+ data-[disabled]:opacity-50
844
+ data-[state=checked]:font-semibold
845
+ data-[state=checked]:text-listItem-text-selected
846
+ `,
847
+ className
848
+ ),
849
+ ...props,
850
+ children: [
851
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { className: "nebula-ds absolute left-4 flex h-11 w-2 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(Circle, { className: "nebula-ds h-2 w-2 fill-current" }) }),
852
+ children
853
+ ]
854
+ }
855
+ ));
856
+ DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
857
+ var DropdownMenuLabel = React8__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
858
+ DropdownMenuPrimitive__namespace.Label,
859
+ {
860
+ ref,
861
+ className: cn(
862
+ `
863
+ px-4
864
+ h-8
865
+ flex
866
+ items-center
867
+ text-sm
868
+ text-listItem-text-header
869
+ `,
870
+ inset && "pl-8",
871
+ className
872
+ ),
873
+ ...props
874
+ }
875
+ ));
876
+ DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
877
+ var DropdownMenuSeparator = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
878
+ DropdownMenuPrimitive__namespace.Separator,
879
+ {
880
+ ref,
881
+ className: cn(
882
+ `
883
+ -mx-1
884
+ h-px
885
+ bg-dropdownMenu-border
886
+ `,
887
+ className
888
+ ),
889
+ ...props
890
+ }
891
+ ));
892
+ DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
893
+ var DropdownMenuShortcut = ({
894
+ className,
895
+ ...props
896
+ }) => {
897
+ return /* @__PURE__ */ jsxRuntime.jsx(
898
+ "span",
899
+ {
900
+ className: cn(
901
+ `
902
+ ml-auto
903
+ text-xs
904
+ tracking-widest
905
+ opacity-60
906
+ `,
907
+ className
908
+ ),
909
+ ...props
910
+ }
911
+ );
912
+ };
913
+ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
914
+ var variants3 = {
915
+ orientation: {
916
+ horizontal: "h-[1px] w-full",
917
+ vertical: "h-full w-[1px]"
918
+ }
919
+ };
920
+ var separatorVariantsConfig = classVarianceAuthority.cva("shrink-0 bg-separator-border-default", {
921
+ variants: variants3,
922
+ defaultVariants: {
923
+ orientation: "horizontal"
924
+ }
925
+ });
926
+ var separatorVariants = extractVariants(variants3);
927
+ var Separator2 = React8__namespace.forwardRef(
928
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
929
+ return /* @__PURE__ */ jsxRuntime.jsx(
930
+ SeparatorPrimitive__namespace.Root,
931
+ {
932
+ ref,
933
+ orientation,
934
+ className: cn(separatorVariantsConfig({ orientation, className })),
935
+ decorative,
936
+ ...props
937
+ }
938
+ );
939
+ }
940
+ );
941
+ Separator2.displayName = "Separator";
942
+ var SpaceSizeEnum = /* @__PURE__ */ ((SpaceSizeEnum2) => {
943
+ SpaceSizeEnum2["xs"] = "gap-1";
944
+ SpaceSizeEnum2["sm"] = "gap-2";
945
+ SpaceSizeEnum2["md"] = "gap-3";
946
+ SpaceSizeEnum2["lg"] = "gap-4";
947
+ SpaceSizeEnum2["xl"] = "gap-5";
948
+ return SpaceSizeEnum2;
949
+ })(SpaceSizeEnum || {});
950
+ var SpaceDirectionEnum = /* @__PURE__ */ ((SpaceDirectionEnum2) => {
951
+ SpaceDirectionEnum2["row"] = "flex-row";
952
+ SpaceDirectionEnum2["column"] = "flex-col";
953
+ return SpaceDirectionEnum2;
954
+ })(SpaceDirectionEnum || {});
955
+ var size3 = {
956
+ xs: "gap-1" /* xs */,
957
+ sm: "gap-2" /* sm */,
958
+ md: "gap-3" /* md */,
959
+ lg: "gap-4" /* lg */,
960
+ xl: "gap-5" /* xl */
961
+ };
962
+ var direction = {
963
+ row: "flex-row" /* row */,
964
+ column: "flex-col" /* column */
965
+ };
966
+ var spaceVariantsConfig = classVarianceAuthority.cva("flex items-start justify-start", {
967
+ variants: {
968
+ size: size3,
969
+ direction
970
+ },
971
+ defaultVariants: {
972
+ size: "md",
973
+ direction: "row"
974
+ }
975
+ });
976
+ var Space = React8__namespace.default.forwardRef(
977
+ ({ size: size4, direction: direction2, className, children }, ref) => {
978
+ return /* @__PURE__ */ jsxRuntime.jsx(
979
+ "div",
980
+ {
981
+ className: cn(spaceVariantsConfig({ size: size4, direction: direction2, className })),
982
+ ref,
983
+ children
984
+ }
985
+ );
986
+ }
987
+ );
988
+ Space.displayName = "Space";
989
+
990
+ // src/i18n/messages/en/pagination.ts
991
+ var messages = {
992
+ totalResultsLabel(pagesSize, totalResults) {
993
+ if (totalResults < pagesSize) {
994
+ pagesSize = totalResults;
995
+ }
996
+ return `Showing ${pagesSize} of ${totalResults} results`;
997
+ },
998
+ currentPageLabel(currentPage = 1, totalPages = 1) {
999
+ return `Page ${currentPage} of ${totalPages}`;
1000
+ }
1001
+ };
1002
+ var pagination_default = messages;
1003
+
1004
+ // src/i18n/messages/en/input-select.ts
1005
+ var messages2 = {
1006
+ noOptions: "No options available"
1007
+ };
1008
+ var input_select_default = messages2;
1009
+
1010
+ // src/i18n/messages/en/index.ts
1011
+ var enMessages = {
1012
+ pagination: pagination_default,
1013
+ inputSelect: input_select_default
1014
+ };
1015
+
1016
+ // src/i18n/messages/es/pagination.ts
1017
+ var messages3 = {
1018
+ totalResultsLabel(pagesSize, totalResults) {
1019
+ if (totalResults < pagesSize) {
1020
+ pagesSize = totalResults;
1021
+ }
1022
+ return `Mostrando ${pagesSize} de ${totalResults} resultados`;
1023
+ },
1024
+ currentPageLabel(currentPage = 1, totalPages = 1) {
1025
+ return `P\xE1gina ${currentPage} de ${totalPages}`;
1026
+ }
1027
+ };
1028
+ var pagination_default2 = messages3;
1029
+
1030
+ // src/i18n/messages/es/input-select.ts
1031
+ var messages4 = {
1032
+ noOptions: "No hay opciones disponibles"
1033
+ };
1034
+ var input_select_default2 = messages4;
1035
+
1036
+ // src/i18n/messages/es/index.ts
1037
+ var esMessages = {
1038
+ pagination: pagination_default2,
1039
+ inputSelect: input_select_default2
1040
+ };
1041
+
1042
+ // src/i18n/messages/pt-br/pagination.ts
1043
+ var messages5 = {
1044
+ totalResultsLabel(pagesSize, totalResults) {
1045
+ if (totalResults < pagesSize) {
1046
+ pagesSize = totalResults;
1047
+ }
1048
+ return `Mostrando ${pagesSize} de ${totalResults} resultados`;
1049
+ },
1050
+ currentPageLabel(currentPage = 1, totalPages = 1) {
1051
+ return `P\xE1gina ${currentPage} de ${totalPages}`;
1052
+ }
1053
+ };
1054
+ var pagination_default3 = messages5;
1055
+
1056
+ // src/i18n/messages/pt-br/input-select.ts
1057
+ var messages6 = {
1058
+ noOptions: "Nenhuma op\xE7\xE3o dispon\xEDvel"
1059
+ };
1060
+ var input_select_default3 = messages6;
1061
+
1062
+ // src/i18n/messages/pt-br/index.ts
1063
+ var ptBrMessages = {
1064
+ pagination: pagination_default3,
1065
+ inputSelect: input_select_default3
1066
+ };
1067
+
1068
+ // src/i18n/messasge-storege-handler.ts
1069
+ var customNebulaI18nStorageKey = "custom-nebula-i18n-key";
1070
+ var localStorageKey = "nebula-i18n-key";
1071
+ var getNebulaI18nStorageKey = () => {
1072
+ if (typeof window === "undefined") {
1073
+ return localStorageKey;
1074
+ }
1075
+ return localStorage.getItem(customNebulaI18nStorageKey) ?? localStorageKey;
1076
+ };
1077
+ var getNebulaLanguage = () => {
1078
+ if (typeof window === "undefined") {
1079
+ return null;
1080
+ }
1081
+ const language = localStorage.getItem(getNebulaI18nStorageKey());
1082
+ return language;
1083
+ };
1084
+ var setNebulaLanguage = (language) => {
1085
+ if (typeof window === "undefined") {
1086
+ return;
1087
+ }
1088
+ localStorage.setItem(getNebulaI18nStorageKey(), language);
1089
+ };
1090
+ var messages7 = /* @__PURE__ */ new Map([
1091
+ [null, enMessages],
1092
+ [void 0, enMessages],
1093
+ ["en-US", enMessages],
1094
+ ["es", esMessages],
1095
+ ["pt-BR", ptBrMessages]
1096
+ ]);
1097
+ var NebulaI18nContext = React8.createContext(
1098
+ null
1099
+ );
1100
+ var NebulaI18nProvider = ({
1101
+ children,
1102
+ customI18nStorageKey
1103
+ }) => {
1104
+ const storageKey = React8.useMemo(
1105
+ () => customI18nStorageKey ?? localStorageKey,
1106
+ [customI18nStorageKey]
1107
+ );
1108
+ const [messages8, setMessages] = React8.useState(
1109
+ messages7.get(getNebulaLanguage()) ?? messages7.get("en-US")
1110
+ );
1111
+ const handleStorageChange = React8.useCallback(
1112
+ ({ detail }) => {
1113
+ if (detail.key === storageKey) {
1114
+ setMessages(
1115
+ messages7.get(detail.value) ?? messages7.get("en-US")
1116
+ );
1117
+ }
1118
+ },
1119
+ [storageKey]
1120
+ );
1121
+ React8.useEffect(() => {
1122
+ if (typeof window === "undefined") {
1123
+ return;
1124
+ }
1125
+ const originalSetItem = localStorage.setItem;
1126
+ localStorage.setItem = function(key, value) {
1127
+ const event = new CustomEvent("localStorageChange", {
1128
+ detail: { key, value }
1129
+ });
1130
+ window.dispatchEvent(event);
1131
+ originalSetItem.call(this, key, value);
1132
+ };
1133
+ window.addEventListener(
1134
+ "localStorageChange",
1135
+ handleStorageChange
1136
+ );
1137
+ return () => {
1138
+ window.removeEventListener(
1139
+ "localStorageChange",
1140
+ handleStorageChange
1141
+ );
1142
+ };
1143
+ }, [handleStorageChange]);
1144
+ React8.useEffect(() => {
1145
+ if (typeof window === "undefined") {
1146
+ return;
1147
+ }
1148
+ if (!customI18nStorageKey) {
1149
+ localStorage.removeItem(customNebulaI18nStorageKey);
1150
+ return;
1151
+ }
1152
+ localStorage.removeItem(localStorageKey);
1153
+ localStorage.setItem(customNebulaI18nStorageKey, customI18nStorageKey);
1154
+ }, [customI18nStorageKey]);
1155
+ return /* @__PURE__ */ jsxRuntime.jsx(NebulaI18nContext.Provider, { value: { messages: messages8 }, children });
1156
+ };
1157
+ var useNebulaI18n = () => {
1158
+ const context = React8.useContext(NebulaI18nContext);
1159
+ if (!context) {
1160
+ throw new Error("useNebulaI18n must be used within a NebulaI18nProvider");
1161
+ }
1162
+ return context;
1163
+ };
1164
+ var Pagination = ({
1165
+ className,
1166
+ total,
1167
+ pageSize,
1168
+ page,
1169
+ onChangePage,
1170
+ ...props
1171
+ }) => {
1172
+ const { messages: messages8 } = useNebulaI18n();
1173
+ const totalPages = React8.useMemo(() => {
1174
+ return Math.ceil(total / (pageSize || 1));
1175
+ }, [total, pageSize]);
1176
+ const handleChangePage = React8.useCallback(
1177
+ (page2) => {
1178
+ if (page2 < 1 || page2 > totalPages) {
1179
+ return;
1180
+ }
1181
+ onChangePage(page2);
1182
+ },
1183
+ [totalPages, onChangePage]
1184
+ );
1185
+ const normalizedPage = React8.useMemo(() => {
1186
+ if (page < 1) {
1187
+ return 1;
1188
+ }
1189
+ if (page > totalPages) {
1190
+ return totalPages;
1191
+ }
1192
+ return page;
1193
+ }, [page, totalPages]);
1194
+ const disabledPreviousPage = normalizedPage === 1 || totalPages === 0;
1195
+ const disabledNextPage = normalizedPage === totalPages || totalPages === 0;
1196
+ const lastPageSize = React8.useMemo(() => {
1197
+ if (totalPages === 0) {
1198
+ return 0;
1199
+ }
1200
+ const lastPageStart = (totalPages - 1) * pageSize;
1201
+ return total - lastPageStart;
1202
+ }, [totalPages, pageSize, total]);
1203
+ const totalResultsLabel = React8.useMemo(() => {
1204
+ if (page === totalPages) {
1205
+ return messages8.pagination.totalResultsLabel(lastPageSize, total);
1206
+ }
1207
+ return messages8.pagination.totalResultsLabel(pageSize, total);
1208
+ }, [messages8.pagination, pageSize, total, page, totalPages, lastPageSize]);
1209
+ const currentPageLabel = React8.useMemo(
1210
+ () => messages8.pagination.currentPageLabel(normalizedPage, totalPages),
1211
+ [messages8.pagination, normalizedPage, totalPages]
1212
+ );
1213
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1214
+ "nav",
1215
+ {
1216
+ role: "navigation",
1217
+ "aria-label": "pagination",
1218
+ className: cn("flex w-full h-12 px-4 items-center", className),
1219
+ ...props,
1220
+ children: [
1221
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds select-none text-pagination-text text-sm font-medium mr-3", children: totalResultsLabel }),
1222
+ /* @__PURE__ */ jsxRuntime.jsxs(PaginationContent, { children: [
1223
+ totalPages > 0 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds select-none text-pagination-text text-sm font-medium mr-[14px]", children: currentPageLabel }),
1224
+ /* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { children: /* @__PURE__ */ jsxRuntime.jsx(
1225
+ PaginationJumpPreviousChunk,
1226
+ {
1227
+ onClick: () => handleChangePage(1),
1228
+ disabled: disabledPreviousPage
1229
+ }
1230
+ ) }),
1231
+ /* @__PURE__ */ jsxRuntime.jsx(
1232
+ PaginationPrevious,
1233
+ {
1234
+ onClick: () => handleChangePage(normalizedPage - 1),
1235
+ disabled: disabledPreviousPage
1236
+ }
1237
+ ),
1238
+ /* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { children: /* @__PURE__ */ jsxRuntime.jsx(
1239
+ PaginationNext,
1240
+ {
1241
+ onClick: () => handleChangePage(normalizedPage + 1),
1242
+ disabled: disabledNextPage
1243
+ }
1244
+ ) }),
1245
+ /* @__PURE__ */ jsxRuntime.jsx(PaginationItem, { children: /* @__PURE__ */ jsxRuntime.jsx(
1246
+ PaginationJumpNextChunk,
1247
+ {
1248
+ onClick: () => handleChangePage(totalPages),
1249
+ disabled: disabledNextPage
1250
+ }
1251
+ ) })
1252
+ ] })
1253
+ ]
1254
+ }
1255
+ );
1256
+ };
1257
+ Pagination.displayName = "Pagination";
1258
+ var PaginationContent = React8.forwardRef(
1259
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1260
+ "ul",
1261
+ {
1262
+ ref,
1263
+ className: cn(
1264
+ "flex flex-row items-center gap-1 flex-1 justify-end",
1265
+ className
1266
+ ),
1267
+ ...props
1268
+ }
1269
+ )
1270
+ );
1271
+ PaginationContent.displayName = "PaginationContent";
1272
+ var PaginationItem = React8.forwardRef(
1273
+ ({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1274
+ "li",
1275
+ {
1276
+ ref,
1277
+ className: cn("flex items-center justify-center", className),
1278
+ ...props
1279
+ }
1280
+ )
1281
+ );
1282
+ PaginationItem.displayName = "PaginationItem";
1283
+ var PaginationButton = ({
1284
+ className,
1285
+ isActive,
1286
+ disabled,
1287
+ ...props
1288
+ }) => {
1289
+ return /* @__PURE__ */ jsxRuntime.jsx(
1290
+ Button,
1291
+ {
1292
+ variant: "ghost",
1293
+ "aria-current": isActive ? "page" : void 0,
1294
+ "aria-disabled": disabled,
1295
+ disabled,
1296
+ className: cn(
1297
+ `
1298
+ h-8
1299
+ w-8
1300
+ p-0
1301
+ !border
1302
+ !border-solid
1303
+ font-semibold
1304
+ select-none
1305
+ border-pagination-border-default
1306
+ text-pagination-icon-default
1307
+ bg-pagination-background-default
1308
+ hover:bg-pagination-background-hover
1309
+ disabled:text-pagination-icon-disabled
1310
+ disabled:bg-pagination-background-disabled
1311
+ disabled:border-pagination-border-disabled
1312
+ disabled:cursor-not-allowed
1313
+ disabled:pointer-events-none
1314
+ focus:bg-unset
1315
+ focus:text-unset
1316
+ focus:border-unset
1317
+ `,
1318
+ className
1319
+ ),
1320
+ ...props
1321
+ }
1322
+ );
1323
+ };
1324
+ PaginationButton.displayName = "PaginationButton";
1325
+ var PaginationPrevious = ({
1326
+ ...props
1327
+ }) => /* @__PURE__ */ jsxRuntime.jsx(PaginationButton, { "aria-label": "Go to previous page", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronLeft, { className: "nebula-ds h-4" }) });
1328
+ PaginationPrevious.displayName = "PaginationPrevious";
1329
+ var PaginationNext = ({
1330
+ ...props
1331
+ }) => /* @__PURE__ */ jsxRuntime.jsx(PaginationButton, { "aria-label": "Go to next page", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronRight, { className: "nebula-ds h-4" }) });
1332
+ PaginationNext.displayName = "PaginationNext";
1333
+ var PaginationJumpNextChunk = ({ ...props }) => /* @__PURE__ */ jsxRuntime.jsx(PaginationButton, { "aria-label": "Go to next chunk", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronsRight, { className: "nebula-ds h-4 w-4" }) });
1334
+ PaginationJumpNextChunk.displayName = "PaginationJumpNextChunk";
1335
+ var PaginationJumpPreviousChunk = ({ ...props }) => /* @__PURE__ */ jsxRuntime.jsx(PaginationButton, { "aria-label": "Go to previous chunk", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronsLeft, { className: "nebula-ds h-4 w-4" }) });
1336
+ PaginationJumpPreviousChunk.displayName = "PaginationJumpPreviousChunk";
1337
+ var tagVariantsEnum = /* @__PURE__ */ ((tagVariantsEnum2) => {
1338
+ tagVariantsEnum2["blue"] = "bg-tag-colorIndicator-blue";
1339
+ tagVariantsEnum2["green"] = "bg-tag-colorIndicator-green";
1340
+ tagVariantsEnum2["yellow"] = "bg-tag-colorIndicator-yellow";
1341
+ tagVariantsEnum2["red"] = "bg-tag-colorIndicator-red";
1342
+ tagVariantsEnum2["orange"] = "bg-tag-colorIndicator-orange";
1343
+ tagVariantsEnum2["gray"] = "bg-tag-colorIndicator-gray";
1344
+ return tagVariantsEnum2;
1345
+ })(tagVariantsEnum || {});
1346
+ var color = {
1347
+ blue: "bg-tag-colorIndicator-blue" /* blue */,
1348
+ green: "bg-tag-colorIndicator-green" /* green */,
1349
+ yellow: "bg-tag-colorIndicator-yellow" /* yellow */,
1350
+ red: "bg-tag-colorIndicator-red" /* red */,
1351
+ orange: "bg-tag-colorIndicator-orange" /* orange */,
1352
+ gray: "bg-tag-colorIndicator-gray" /* gray */
1353
+ };
1354
+ var tagVariantsConfig = classVarianceAuthority.cva("w-2 h-2 block rounded-sm", {
1355
+ variants: {
1356
+ color
1357
+ }
1358
+ });
1359
+ var Tag = React8__namespace.forwardRef(
1360
+ ({ className, color: color2, children, onDelete, ...props }, ref) => {
1361
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1362
+ "div",
1363
+ {
1364
+ ref,
1365
+ className: cn(
1366
+ "flex items-center border border-tag-border px-2 h-6 rounded-full transition-colors hover:bg-tag-background-hover",
1367
+ className
1368
+ ),
1369
+ ...props,
1370
+ children: [
1371
+ color2 && /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(tagVariantsConfig({ color: color2 })) }),
1372
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds text-tag-text text-xs font-medium px-1 leading-none", children }),
1373
+ onDelete && /* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onDelete, children: /* @__PURE__ */ jsxRuntime.jsx(CircleX, { className: "nebula-ds w-3 h-3 block rounded-sm text-tag-icon" }) })
1374
+ ]
1375
+ }
1376
+ );
1377
+ }
1378
+ );
1379
+ Tag.displayName = "Tag";
1380
+ var DropdownIndicator = (props) => /* @__PURE__ */ jsxRuntime.jsx(Select.components.DropdownIndicator, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, { size: "16px" }) });
1381
+ var ClearIndicator = (props) => /* @__PURE__ */ jsxRuntime.jsx(Select.components.ClearIndicator, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(X, { size: "16px" }) });
1382
+ var MultiValueRemove = (props) => /* @__PURE__ */ jsxRuntime.jsx(Select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(CircleX, { size: "16px" }) });
1383
+ var Option = (props) => {
1384
+ const { isSelected, data, innerRef, innerProps } = props;
1385
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1386
+ "div",
1387
+ {
1388
+ ref: innerRef,
1389
+ ...innerProps,
1390
+ className: cn(
1391
+ `
1392
+ flex
1393
+ items-center
1394
+ px-4 py-2
1395
+ gap-2
1396
+ cursor-pointer
1397
+ text-sm
1398
+ hover:text-inputSelect-focus-text
1399
+ hover:bg-listItem-background-hover
1400
+ bg-listItem-background-default
1401
+ `,
1402
+ isSelected ? `
1403
+ text-inputSelect-focus-text
1404
+ font-semibold
1405
+ bg-listItem-background-hover` : `
1406
+ text-inputSelect-default-text
1407
+ `
1408
+ ),
1409
+ children: [
1410
+ isSelected && /* @__PURE__ */ jsxRuntime.jsx(Check, { size: "16px" }),
1411
+ /* @__PURE__ */ jsxRuntime.jsx("span", { children: data.label })
1412
+ ]
1413
+ }
1414
+ );
1415
+ };
1416
+ var controlStyles = (state) => cn([
1417
+ `
1418
+ border
1419
+ bg-inputSelect-default-background
1420
+ rounded-[20px]
1421
+ px-4
1422
+ w-full
1423
+ min-h-10
1424
+ transition
1425
+ `,
1426
+ {
1427
+ "border-inputSelect-focus-border text-inputSelect-focus-text ring-[3px] ring-inputSelect-focus-border": state.isFocused,
1428
+ "border-inputSelect-default-border text-inputSelect-default-text": !state.isFocused,
1429
+ "bg-inputText-background-disabled": state.isDisabled
1430
+ }
1431
+ ]);
1432
+ var placeholderStyles = "text-inputSelect-default-text text-sm";
1433
+ var selectInputStyles = "p-0";
1434
+ var valueContainerStyles = "gap-1";
1435
+ var singleValueStyles = "text-inputSelect-active-text text-sm";
1436
+ var multiValueStyles = "border rounded-full items-center px-2 py-0.2 gap-1.5 text-xs border-inputSelect-default-border";
1437
+ var multiValueLabelStyles = "leading-6 px-2 py-0.2";
1438
+ var indicatorsContainerStyles = "";
1439
+ var clearIndicatorStyles = "text-inputSelect-default-icon mr-2";
1440
+ var dropdownIndicatorStyles = "text-inputSelect-default-icon";
1441
+ var menuStyles = "mt-2 border bg-inputSelect-default-background rounded-2xl overflow-hidden shadow-md shadow-dropdownMenu-shadow";
1442
+ var groupHeadingStyles = "ml-3 mt-2 mb-1 text-inputSelect-default-text text-sm";
1443
+ var noOptionsMessageStyles = "p-2 text-inputSelect-default-text";
1444
+ var createStyledSelect = (BaseSelect, displayName) => {
1445
+ const StyledSelect2 = ({
1446
+ icon,
1447
+ disabled = false,
1448
+ ...props
1449
+ }) => {
1450
+ const { messages: messages8 } = useNebulaI18n();
1451
+ return /* @__PURE__ */ jsxRuntime.jsx(
1452
+ BaseSelect,
1453
+ {
1454
+ unstyled: true,
1455
+ isDisabled: disabled,
1456
+ components: {
1457
+ DropdownIndicator,
1458
+ ClearIndicator,
1459
+ MultiValueRemove,
1460
+ Option,
1461
+ Control: ({ children, ...rest }) => /* @__PURE__ */ jsxRuntime.jsx(Select.components.Control, { ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds flex w-full items-center", children: [
1462
+ icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds text-inputSelect-default-icon pr-2", children: icon }),
1463
+ children
1464
+ ] }) })
1465
+ },
1466
+ classNames: {
1467
+ control: (state) => cn(controlStyles(state)),
1468
+ placeholder: () => placeholderStyles,
1469
+ input: () => selectInputStyles,
1470
+ valueContainer: () => valueContainerStyles,
1471
+ singleValue: () => singleValueStyles,
1472
+ multiValue: () => multiValueStyles,
1473
+ multiValueLabel: () => multiValueLabelStyles,
1474
+ indicatorsContainer: () => indicatorsContainerStyles,
1475
+ clearIndicator: () => clearIndicatorStyles,
1476
+ dropdownIndicator: () => dropdownIndicatorStyles,
1477
+ menu: () => menuStyles,
1478
+ groupHeading: () => groupHeadingStyles,
1479
+ noOptionsMessage: () => noOptionsMessageStyles
1480
+ },
1481
+ noOptionsMessage: () => /* @__PURE__ */ jsxRuntime.jsx("p", { children: messages8.inputSelect.noOptions }),
1482
+ ...props
1483
+ }
1484
+ );
1485
+ };
1486
+ StyledSelect2.displayName = displayName;
1487
+ return StyledSelect2;
1488
+ };
1489
+ var StyledSelect = createStyledSelect(Select__default.default, "Select");
1490
+ var StyledCreatable = createStyledSelect(Creatable__default.default, "Creatable");
1491
+ var StyledAsync = createStyledSelect(Async__default.default, "Async");
1492
+ var StyledAsyncCreatable = createStyledSelect(
1493
+ AsyncCreatable__default.default,
1494
+ "AsyncCreatable"
1495
+ );
1496
+ var InputText = React8__namespace.forwardRef(
1497
+ ({ className, icon, isError = false, onClean, ...props }, ref) => {
1498
+ const initialInputType = props.type || "text";
1499
+ const [type, setType] = React8__namespace.useState(initialInputType);
1500
+ const iconClass = {
1501
+ "text-inputText-icon-danger": isError,
1502
+ "text-inputText-icon-default focus:text-inputText-icon-focus": !isError && !props.value,
1503
+ "text-inputText-icon-filled focus:text-inputText-icon-filled": !isError && !!props.value
1504
+ };
1505
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds relative w-full", children: [
1506
+ icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds absolute left-4 top-1/2 transform -translate-y-1/2", children: /* @__PURE__ */ jsxRuntime.jsx(
1507
+ "span",
1508
+ {
1509
+ className: cn(
1510
+ "w-4 h-4 flex items-center justify-center disabled:text-inputText-icon-disabled",
1511
+ iconClass
1512
+ ),
1513
+ children: icon
1514
+ }
1515
+ ) }),
1516
+ /* @__PURE__ */ jsxRuntime.jsx(
1517
+ "input",
1518
+ {
1519
+ ref,
1520
+ className: cn(
1521
+ "w-full h-10 outline-none rounded-[20px] text-sm leading-none font-medium",
1522
+ "bg-inputText-background-default disabled:bg-inputText-background-disabled",
1523
+ "border border-inputText-border-default focus:ring-[3px] focus:ring-inputText-border-focus focus:border-inputText-border-focus",
1524
+ "text-inputText-text-filled focus:text-inputText-text-focus placeholder:text-inputText-text-default disabled:text-inputText-text-disabled",
1525
+ "disabled:cursor-not-allowed",
1526
+ {
1527
+ "pl-10 pr-4": !!icon,
1528
+ "px-4": !icon,
1529
+ "border-inputText-border-danger focus:border-inputText-border-danger focus:ring-button-danger-border-focus": isError
1530
+ },
1531
+ className
1532
+ ),
1533
+ ...props,
1534
+ type
1535
+ }
1536
+ ),
1537
+ onClean && props.value && /* @__PURE__ */ jsxRuntime.jsx(
1538
+ "button",
1539
+ {
1540
+ type: "button",
1541
+ className: cn("absolute top-1/2 transform -translate-y-1/2", {
1542
+ "right-10": initialInputType === "password",
1543
+ "right-4": initialInputType === "text"
1544
+ }),
1545
+ onClick: onClean,
1546
+ children: /* @__PURE__ */ jsxRuntime.jsx(CircleX, { className: cn("w-4 h-4", iconClass) })
1547
+ }
1548
+ ),
1549
+ initialInputType === "password" && /* @__PURE__ */ jsxRuntime.jsx(
1550
+ "button",
1551
+ {
1552
+ type: "button",
1553
+ className: "nebula-ds absolute right-4 top-1/2 transform -translate-y-1/2",
1554
+ onClick: () => setType((prev) => prev === "text" ? "password" : "text"),
1555
+ children: type === "text" ? /* @__PURE__ */ jsxRuntime.jsx(Eye, { className: cn("w-4 h-4", iconClass) }) : /* @__PURE__ */ jsxRuntime.jsx(EyeOff, { className: cn("w-4 h-4", iconClass) })
1556
+ }
1557
+ )
1558
+ ] });
1559
+ }
1560
+ );
1561
+ InputText.displayName = "InputText";
1562
+ var Dialog = DialogPrimitive__namespace.Root;
1563
+ var DialogTrigger = DialogPrimitive__namespace.Trigger;
1564
+ var DialogPortal = DialogPrimitive__namespace.Portal;
1565
+ var DialogClose = DialogPrimitive__namespace.Close;
1566
+ var DialogOverlay = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1567
+ DialogPrimitive__namespace.Overlay,
1568
+ {
1569
+ ref,
1570
+ className: cn(
1571
+ `fixed
1572
+ inset-0
1573
+ z-50
1574
+ bg-dialog-background-overlay
1575
+ data-[state=open]:animate-in
1576
+ data-[state=closed]:animate-out
1577
+ data-[state=closed]:fade-out-0
1578
+ data-[state=open]:fade-in-0`,
1579
+ className
1580
+ ),
1581
+ ...props
1582
+ }
1583
+ ));
1584
+ DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
1585
+ var DialogContent = React8__namespace.forwardRef(({ className, children, portal = false, ...props }, ref) => {
1586
+ const Comp = portal ? DialogPortal : React8__namespace.Fragment;
1587
+ return /* @__PURE__ */ jsxRuntime.jsxs(Comp, { children: [
1588
+ /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
1589
+ /* @__PURE__ */ jsxRuntime.jsxs(
1590
+ DialogPrimitive__namespace.Content,
1591
+ {
1592
+ ref,
1593
+ className: cn(
1594
+ `rounded-2xl
1595
+ fixed
1596
+ left-[50%]
1597
+ top-[50%]
1598
+ z-50
1599
+ grid
1600
+ w-full
1601
+ max-w-[600px]
1602
+ translate-x-[-50%]
1603
+ translate-y-[-50%]
1604
+ gap-10
1605
+ bg-dialog-background-default
1606
+ p-6
1607
+ shadow-lg
1608
+ duration-200
1609
+ data-[state=open]:animate-in
1610
+ data-[state=closed]:animate-out
1611
+ data-[state=closed]:fade-out-0
1612
+ data-[state=open]:fade-in-0
1613
+ data-[state=closed]:zoom-out-95
1614
+ data-[state=open]:zoom-in-95
1615
+ data-[state=closed]:slide-out-to-left-1/2
1616
+ data-[state=closed]:slide-out-to-top-[48%]
1617
+ data-[state=open]:slide-in-from-left-1/2
1618
+ data-[state=open]:slide-in-from-top-[48%]`,
1619
+ className
1620
+ ),
1621
+ ...props,
1622
+ children: [
1623
+ children,
1624
+ /* @__PURE__ */ jsxRuntime.jsx(
1625
+ DialogPrimitive__namespace.Close,
1626
+ {
1627
+ asChild: true,
1628
+ className: `absolute
1629
+ right-4
1630
+ top-4`,
1631
+ children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "ghost", size: "sm", icon: true, children: [
1632
+ /* @__PURE__ */ jsxRuntime.jsx(X, { className: "nebula-ds !h-4 !w-4 !text-dialog-icon" }),
1633
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds sr-only", children: "Close" })
1634
+ ] })
1635
+ }
1636
+ )
1637
+ ]
1638
+ }
1639
+ )
1640
+ ] });
1641
+ });
1642
+ DialogContent.displayName = DialogPrimitive__namespace.Content.displayName;
1643
+ var DialogHeader = ({
1644
+ className,
1645
+ ...props
1646
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
1647
+ "div",
1648
+ {
1649
+ className: cn("flex flex-col space-y-1.5 text-center", className),
1650
+ ...props
1651
+ }
1652
+ );
1653
+ DialogHeader.displayName = "DialogHeader";
1654
+ var DialogBody = ({
1655
+ className,
1656
+ ...props
1657
+ }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col space-y-2", className), ...props });
1658
+ DialogBody.displayName = "DialogBody";
1659
+ var DialogFooter = ({
1660
+ className,
1661
+ ...props
1662
+ }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex gap-2", className), ...props });
1663
+ DialogFooter.displayName = "DialogFooter";
1664
+ var DialogTitle = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1665
+ DialogPrimitive__namespace.Title,
1666
+ {
1667
+ ref,
1668
+ className: cn(
1669
+ "text-xl font-semibold leading-none tracking-normal text-dialog-title",
1670
+ className
1671
+ ),
1672
+ ...props
1673
+ }
1674
+ ));
1675
+ DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
1676
+ var DialogDescription = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1677
+ DialogPrimitive__namespace.Description,
1678
+ {
1679
+ ref,
1680
+ className: cn("text-base text-center text-dialog-text", className),
1681
+ ...props
1682
+ }
1683
+ ));
1684
+ DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
1685
+ var AlertDialog = AlertDialogPrimitive__namespace.Root;
1686
+ var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
1687
+ var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
1688
+ var AlertDialogOverlay = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1689
+ AlertDialogPrimitive__namespace.Overlay,
1690
+ {
1691
+ className: cn(
1692
+ "fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1693
+ className
1694
+ ),
1695
+ ...props,
1696
+ ref
1697
+ }
1698
+ ));
1699
+ AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
1700
+ var AlertDialogContent = React8__namespace.forwardRef(({ className, portal = false, ...props }, ref) => {
1701
+ const Comp = portal ? AlertDialogPortal : React8__namespace.Fragment;
1702
+ return /* @__PURE__ */ jsxRuntime.jsxs(Comp, { children: [
1703
+ /* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
1704
+ /* @__PURE__ */ jsxRuntime.jsx(
1705
+ AlertDialogPrimitive__namespace.Content,
1706
+ {
1707
+ ref,
1708
+ className: cn(
1709
+ "rounded-2xl fixed left-[50%] top-[50%] z-50 grid w-full max-w-[600px] translate-x-[-50%] translate-y-[-50%] gap-10 bg-dialog-background-default p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
1710
+ className
1711
+ ),
1712
+ ...props
1713
+ }
1714
+ )
1715
+ ] });
1716
+ });
1717
+ AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.displayName;
1718
+ var AlertDialogHeader = ({
1719
+ className,
1720
+ ...props
1721
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
1722
+ "div",
1723
+ {
1724
+ className: cn(
1725
+ "flex flex-col justify-center items-center gap-2 text-center",
1726
+ className
1727
+ ),
1728
+ ...props
1729
+ }
1730
+ );
1731
+ AlertDialogHeader.displayName = "AlertDialogHeader";
1732
+ var AlertDialogFooter = ({
1733
+ className,
1734
+ ...props
1735
+ }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex gap-2", className), ...props });
1736
+ AlertDialogFooter.displayName = "AlertDialogFooter";
1737
+ var AlertDialogTitle = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1738
+ AlertDialogPrimitive__namespace.Title,
1739
+ {
1740
+ ref,
1741
+ className: cn(
1742
+ "text-xl flex flex-col items-center justify-center gap-2 mb-2 font-semibold leading-none tracking-normal text-center text-dialog-title",
1743
+ className
1744
+ ),
1745
+ ...props
1746
+ }
1747
+ ));
1748
+ AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
1749
+ var AlertDialogDescription = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1750
+ AlertDialogPrimitive__namespace.Description,
1751
+ {
1752
+ ref,
1753
+ className: cn("text-base text-center text-dialog-text", className),
1754
+ ...props
1755
+ }
1756
+ ));
1757
+ AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
1758
+ var AlertDialogAction = React8__namespace.forwardRef(({ children, className, variant: variant3, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1759
+ AlertDialogPrimitive__namespace.Action,
1760
+ {
1761
+ ref,
1762
+ className: cn(buttonVariantsConfig({ variant: variant3 }), className),
1763
+ ...props,
1764
+ children: processChildren(children)
1765
+ }
1766
+ ));
1767
+ AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
1768
+ var AlertDialogCancel = React8__namespace.forwardRef(({ children, className, variant: variant3 = "secondary", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1769
+ AlertDialogPrimitive__namespace.Cancel,
1770
+ {
1771
+ ref,
1772
+ className: cn(buttonVariantsConfig({ variant: variant3 }), className),
1773
+ ...props,
1774
+ children: processChildren(children)
1775
+ }
1776
+ ));
1777
+ AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
1778
+ var Checkbox = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1779
+ CheckboxPrimitive__namespace.Root,
1780
+ {
1781
+ ref,
1782
+ className: cn(
1783
+ `
1784
+ peer
1785
+ shrink-0
1786
+ h-4
1787
+ w-4
1788
+ rounded-[4px]
1789
+ border-2
1790
+ transition-colors
1791
+ disabled:cursor-not-allowed
1792
+ disabled:opacity-50
1793
+ bg-checkbox-unselected-background-default
1794
+ hover:bg-checkbox-unselected-background-hover
1795
+ focus:bg-checkbox-unselected-background-focus
1796
+ disabled:bg-checkbox-unselected-background-disabled
1797
+ data-[state=checked]:bg-checkbox-selected-background-default
1798
+ data-[state=checked]:hover:bg-checkbox-selected-background-hover
1799
+ data-[state=checked]:hover:border-checkbox-selected-background-hover
1800
+ data-[state=checked]:focus:bg-checkbox-selected-background-focus
1801
+ data-[state=checked]:focus:border-checkbox-selected-background-focus
1802
+ data-[state=checked]:disabled:bg-checkbox-selected-background-disabled
1803
+ border-checkbox-unselected-border-default
1804
+ hover:border-checkbox-unselected-border-hover
1805
+ focus:border-checkbox-unselected-border-focus
1806
+ disabled:border-checkbox-unselected-border-disabled
1807
+ data-[state=checked]:border-checkbox-selected-border-focus
1808
+ data-[state=checked]:disabled:border-checkbox-unselected-border-disabled
1809
+ focus-visible:outline-none
1810
+ focus-visible:ring-2
1811
+ focus-visible:ring-checkbox-unselected-border-external-focus
1812
+ focus-visible:ring-offset-0
1813
+ text-checkbox-unselected-icon-default
1814
+ data-[state=checked]:text-checkbox-selected-icon-default
1815
+ disabled:data-[state=checked]:text-checkbox-selected-icon-disabled`,
1816
+ className
1817
+ ),
1818
+ ...props,
1819
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1820
+ CheckboxPrimitive__namespace.Indicator,
1821
+ {
1822
+ className: cn("flex items-center justify-center text-current"),
1823
+ children: props.variant === "multiselect" ? /* @__PURE__ */ jsxRuntime.jsx(Minus, { className: "nebula-ds h-3 w-3" }) : /* @__PURE__ */ jsxRuntime.jsx(Check, { className: "nebula-ds h-3 w-3" })
1824
+ }
1825
+ )
1826
+ }
1827
+ ));
1828
+ Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
1829
+ var Drawer = DialogPrimitive__namespace.Root;
1830
+ var DrawerTrigger = DialogPrimitive__namespace.Trigger;
1831
+ var DrawerClose = DialogPrimitive__namespace.Close;
1832
+ var DrawerPortal = DialogPrimitive__namespace.Portal;
1833
+ var DrawerOverlay = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1834
+ DialogPrimitive__namespace.Overlay,
1835
+ {
1836
+ className: cn(
1837
+ "fixed inset-0 z-50 bg-drawer-overlay data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1838
+ className
1839
+ ),
1840
+ ...props,
1841
+ ref
1842
+ }
1843
+ ));
1844
+ DrawerOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
1845
+ var DrawerVariants = classVarianceAuthority.cva(
1846
+ "fixed flex flex-col z-50 shadow-lg transition ease-in-out",
1847
+ {
1848
+ variants: {
1849
+ side: {
1850
+ top: "inset-x-0 top-0 data-[state=open]:animate-slide-in-from-top data-[state=closed]:animate-slide-out-to-top",
1851
+ bottom: "inset-x-0 bottom-0 data-[state=open]:animate-slide-in-from-bottom data-[state=closed]:animate-slide-out-to-bottom",
1852
+ left: "inset-y-0 h-full left-0 w-3/4 data-[state=open]:animate-slide-in-from-left data-[state=closed]:animate-slide-out-to-left sm:max-w-sm",
1853
+ right: "inset-y-0 h-full right-0 w-3/4 data-[state=open]:animate-slide-in-from-right data-[state=closed]:animate-slide-out-to-right sm:max-w-sm"
1854
+ }
1855
+ },
1856
+ defaultVariants: {
1857
+ side: "right"
1858
+ }
1859
+ }
1860
+ );
1861
+ var DrawerContent = React8__namespace.forwardRef(({ side = "right", className, portal = false, children, ...props }, ref) => {
1862
+ const Comp = portal ? DrawerPortal : React8__namespace.Fragment;
1863
+ return /* @__PURE__ */ jsxRuntime.jsxs(Comp, { children: [
1864
+ /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
1865
+ /* @__PURE__ */ jsxRuntime.jsx(
1866
+ DialogPrimitive__namespace.Content,
1867
+ {
1868
+ ref,
1869
+ className: cn(DrawerVariants({ side }), className),
1870
+ ...props,
1871
+ children
1872
+ }
1873
+ )
1874
+ ] });
1875
+ });
1876
+ DrawerContent.displayName = DialogPrimitive__namespace.Content.displayName;
1877
+ var DrawerHeader = ({
1878
+ className,
1879
+ extraActions,
1880
+ ...props
1881
+ }) => {
1882
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds bg-drawer-header-background text-drawer-header-title flex w-full min-h-16 items-start gap-2 p-4 border-b border-drawer-header-border", children: [
1883
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds flex gap-2", children: [
1884
+ /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { size: "sm", variant: "ghost", icon: true, tabIndex: -1, children: [
1885
+ /* @__PURE__ */ jsxRuntime.jsx(X, { className: "nebula-ds !h-4 !w-4" }),
1886
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds sr-only", children: "Close" })
1887
+ ] }) }),
1888
+ /* @__PURE__ */ jsxRuntime.jsx(
1889
+ "div",
1890
+ {
1891
+ className: cn("flex flex-1 flex-col space-y-1 mt-1", className),
1892
+ ...props
1893
+ }
1894
+ )
1895
+ ] }),
1896
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds ml-auto flex items-start", children: extraActions })
1897
+ ] });
1898
+ };
1899
+ DrawerHeader.displayName = "DrawerHeader";
1900
+ var DrawerBody = ({
1901
+ className,
1902
+ ...props
1903
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
1904
+ "div",
1905
+ {
1906
+ className: cn(
1907
+ "p-4 bg-drawer-body-background text-drawer-body-text flex-1 overflow-y-auto",
1908
+ className
1909
+ ),
1910
+ ...props
1911
+ }
1912
+ );
1913
+ DrawerBody.displayName = "DrawerBody";
1914
+ var DrawerFooter = ({
1915
+ className,
1916
+ ...props
1917
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
1918
+ "div",
1919
+ {
1920
+ className: cn(
1921
+ "flex p-4 bg-drawer-footer-background space-x-2 border-t border-drawer-footer-border",
1922
+ className
1923
+ ),
1924
+ ...props
1925
+ }
1926
+ );
1927
+ DrawerFooter.displayName = "DrawerFooter";
1928
+ var DrawerTitle = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1929
+ DialogPrimitive__namespace.Title,
1930
+ {
1931
+ ref,
1932
+ className: cn(
1933
+ "text-base font-semibold text-drawer-header-title",
1934
+ className
1935
+ ),
1936
+ ...props
1937
+ }
1938
+ ));
1939
+ DrawerTitle.displayName = DialogPrimitive__namespace.Title.displayName;
1940
+ var DrawerDescription = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1941
+ DialogPrimitive__namespace.Description,
1942
+ {
1943
+ ref,
1944
+ className: cn("text-sm text-drawer-header-description", className),
1945
+ ...props
1946
+ }
1947
+ ));
1948
+ DrawerDescription.displayName = DialogPrimitive__namespace.Description.displayName;
1949
+ var Breadcrumb = React8__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("nav", { ref, "aria-label": "breadcrumb", ...props }));
1950
+ Breadcrumb.displayName = "Breadcrumb";
1951
+ var BreadcrumbList = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1952
+ "ol",
1953
+ {
1954
+ ref,
1955
+ className: cn(
1956
+ "flex flex-wrap items-center gap-1 break-words font-medium text-sm text-breadcrumb-text-default sm:gap-2.5",
1957
+ className
1958
+ ),
1959
+ ...props
1960
+ }
1961
+ ));
1962
+ BreadcrumbList.displayName = "BreadcrumbList";
1963
+ var BreadcrumbItem = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1964
+ "li",
1965
+ {
1966
+ ref,
1967
+ className: cn(
1968
+ "inline-flex hover:text-breadcrumb-text-hover items-center gap-1.5",
1969
+ className
1970
+ ),
1971
+ ...props
1972
+ }
1973
+ ));
1974
+ BreadcrumbItem.displayName = "BreadcrumbItem";
1975
+ var BreadcrumbLink = React8__namespace.forwardRef(({ asChild, className, ...props }, ref) => {
1976
+ const Comp = asChild ? reactSlot.Slot : "a";
1977
+ return /* @__PURE__ */ jsxRuntime.jsx(
1978
+ Comp,
1979
+ {
1980
+ ref,
1981
+ className: cn(
1982
+ "transition-colors hover:text-breadcrumb-text-hover",
1983
+ className
1984
+ ),
1985
+ ...props
1986
+ }
1987
+ );
1988
+ });
1989
+ BreadcrumbLink.displayName = "BreadcrumbLink";
1990
+ var BreadcrumbPage = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1991
+ "span",
1992
+ {
1993
+ ref,
1994
+ role: "link",
1995
+ "aria-disabled": "true",
1996
+ "aria-current": "page",
1997
+ className: cn("font-medium text-breadcrumb-text-active", className),
1998
+ ...props
1999
+ }
2000
+ ));
2001
+ BreadcrumbPage.displayName = "BreadcrumbPage";
2002
+ var BreadcrumbSeparator = ({
2003
+ children,
2004
+ className,
2005
+ ...props
2006
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
2007
+ "li",
2008
+ {
2009
+ role: "presentation",
2010
+ "aria-hidden": "true",
2011
+ className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
2012
+ ...props,
2013
+ children: children ?? /* @__PURE__ */ jsxRuntime.jsx(ChevronRight, {})
2014
+ }
2015
+ );
2016
+ BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
2017
+ var BreadcrumbEllipsis = ({
2018
+ className,
2019
+ ...props
2020
+ }) => /* @__PURE__ */ jsxRuntime.jsxs(
2021
+ "span",
2022
+ {
2023
+ role: "presentation",
2024
+ "aria-hidden": "true",
2025
+ className: cn(
2026
+ "flex h-5 w-5 p-[2px] rounded-full items-center justify-center hover:bg-breadcrumb-ellipsis-background-hover",
2027
+ className
2028
+ ),
2029
+ ...props,
2030
+ children: [
2031
+ /* @__PURE__ */ jsxRuntime.jsx(Ellipsis, { className: "nebula-ds h-3 w-3" }),
2032
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds sr-only", children: "More" })
2033
+ ]
2034
+ }
2035
+ );
2036
+ BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
2037
+ var Switch = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2038
+ SwitchPrimitives__namespace.Root,
2039
+ {
2040
+ className: cn(
2041
+ `
2042
+ peer
2043
+ inline-flex
2044
+ h-5
2045
+ w-8
2046
+ shrink-0
2047
+ cursor-pointer
2048
+ items-center
2049
+ rounded-full
2050
+ border-2
2051
+ border-transparent
2052
+ shadow-sm
2053
+ transition-colors
2054
+ focus-visible:outline-none
2055
+ focus-visible:ring-2
2056
+ focus-visible:ring-switch-ring
2057
+ focus-visible:ring-offset-background
2058
+ disabled:cursor-not-allowed
2059
+ disabled:opacity-50
2060
+ bg-switch-background-off-default
2061
+ hover:bg-switch-background-off-hover
2062
+ focus:bg-switch-background-off-focus
2063
+ disabled:bg-switch-background-off-disabled
2064
+ data-[state=checked]:bg-switch-background-on-default
2065
+ data-[state=checked]:hover:bg-switch-background-on-hover
2066
+ data-[state=checked]:focus:bg-switch-background-on-focus
2067
+ data-[state=checked]:disabled:bg-switch-background-on-disabled
2068
+ `,
2069
+ className
2070
+ ),
2071
+ ...props,
2072
+ ref,
2073
+ children: /* @__PURE__ */ jsxRuntime.jsx(
2074
+ SwitchPrimitives__namespace.Thumb,
2075
+ {
2076
+ className: cn(
2077
+ `
2078
+ pointer-events-none
2079
+ block
2080
+ h-4
2081
+ w-4
2082
+ rounded-full
2083
+ bg-switch-circle
2084
+ shadow-lg
2085
+ ring-0
2086
+ transition-transform
2087
+ data-[state=checked]:translate-x-3
2088
+ data-[state=unchecked]:translate-x-0
2089
+ `
2090
+ )
2091
+ }
2092
+ )
2093
+ }
2094
+ ));
2095
+ Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
2096
+ var Tooltip = React8__namespace.forwardRef(
2097
+ ({
2098
+ children,
2099
+ content: content2,
2100
+ sideOffset = 4,
2101
+ side = "top",
2102
+ align = "center",
2103
+ portal = false,
2104
+ className,
2105
+ ...props
2106
+ }, ref) => {
2107
+ const Comp = portal ? TooltipPrimitive__namespace.Portal : React8__namespace.Fragment;
2108
+ return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Provider, { children: /* @__PURE__ */ jsxRuntime.jsxs(TooltipPrimitive__namespace.Root, { children: [
2109
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { children }),
2110
+ /* @__PURE__ */ jsxRuntime.jsx(Comp, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2111
+ TooltipPrimitive__namespace.Content,
2112
+ {
2113
+ ref,
2114
+ side,
2115
+ sideOffset,
2116
+ align,
2117
+ className: cn(
2118
+ "select-none rounded-lg bg-tooltip-background px-3 py-1.5 max-w-52 text-xs font-medium leading-tight text-tooltip-text shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity] data-[state=delayed-open]:data-[side=bottom]:animate-slide-up-and-fade data-[state=delayed-open]:data-[side=left]:animate-slide-right-and-fade data-[state=delayed-open]:data-[side=right]:animate-slide-left-and-fade data-[state=delayed-open]:data-[side=top]:animate-slide-down-and-fade",
2119
+ className
2120
+ ),
2121
+ ...props,
2122
+ children: [
2123
+ content2,
2124
+ /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Arrow, { className: "nebula-ds fill-tooltip-background" })
2125
+ ]
2126
+ }
2127
+ ) })
2128
+ ] }) });
2129
+ }
2130
+ );
2131
+ Tooltip.displayName = "Tooltip";
2132
+
2133
+ // src/tailwind.ts
2134
+ function content({ base = "./" } = {}) {
2135
+ const path = "node_modules/@ikatec/nebula-react/dist/**/*.mjs";
2136
+ return `${base}${path}`;
2137
+ }
2138
+ var tailwind = {
2139
+ content
2140
+ // plugin: () => require("tailwindcss")("node_modules/@nebulareact/dist/tailwind.config.js"),
2141
+ };
2142
+ /*! Bundled license information:
2143
+
2144
+ lucide-react/dist/esm/shared/src/utils.js:
2145
+ lucide-react/dist/esm/defaultAttributes.js:
2146
+ lucide-react/dist/esm/Icon.js:
2147
+ lucide-react/dist/esm/createLucideIcon.js:
2148
+ lucide-react/dist/esm/icons/check.js:
2149
+ lucide-react/dist/esm/icons/chevron-down.js:
2150
+ lucide-react/dist/esm/icons/chevron-left.js:
2151
+ lucide-react/dist/esm/icons/chevron-right.js:
2152
+ lucide-react/dist/esm/icons/chevrons-left.js:
2153
+ lucide-react/dist/esm/icons/chevrons-right.js:
2154
+ lucide-react/dist/esm/icons/circle-x.js:
2155
+ lucide-react/dist/esm/icons/circle.js:
2156
+ lucide-react/dist/esm/icons/ellipsis.js:
2157
+ lucide-react/dist/esm/icons/eye-off.js:
2158
+ lucide-react/dist/esm/icons/eye.js:
2159
+ lucide-react/dist/esm/icons/minus.js:
2160
+ lucide-react/dist/esm/icons/x.js:
2161
+ lucide-react/dist/esm/lucide-react.js:
2162
+ (**
2163
+ * @license lucide-react v0.476.0 - ISC
2164
+ *
2165
+ * This source code is licensed under the ISC license.
2166
+ * See the LICENSE file in the root directory of this source tree.
2167
+ *)
2168
+ */
2169
+
2170
+ exports.Alert = Alert;
2171
+ exports.AlertButton = AlertButton;
2172
+ exports.AlertDescription = AlertDescription;
2173
+ exports.AlertDialog = AlertDialog;
2174
+ exports.AlertDialogAction = AlertDialogAction;
2175
+ exports.AlertDialogCancel = AlertDialogCancel;
2176
+ exports.AlertDialogContent = AlertDialogContent;
2177
+ exports.AlertDialogDescription = AlertDialogDescription;
2178
+ exports.AlertDialogFooter = AlertDialogFooter;
2179
+ exports.AlertDialogHeader = AlertDialogHeader;
2180
+ exports.AlertDialogTitle = AlertDialogTitle;
2181
+ exports.AlertDialogTrigger = AlertDialogTrigger;
2182
+ exports.AlertTitle = AlertTitle;
2183
+ exports.Async = StyledAsync;
2184
+ exports.AsyncCreatable = StyledAsyncCreatable;
2185
+ exports.Badge = Badge;
2186
+ exports.Breadcrumb = Breadcrumb;
2187
+ exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
2188
+ exports.BreadcrumbItem = BreadcrumbItem;
2189
+ exports.BreadcrumbLink = BreadcrumbLink;
2190
+ exports.BreadcrumbList = BreadcrumbList;
2191
+ exports.BreadcrumbPage = BreadcrumbPage;
2192
+ exports.BreadcrumbSeparator = BreadcrumbSeparator;
2193
+ exports.Button = Button;
2194
+ exports.Checkbox = Checkbox;
2195
+ exports.Creatable = StyledCreatable;
2196
+ exports.Dialog = Dialog;
2197
+ exports.DialogBody = DialogBody;
2198
+ exports.DialogClose = DialogClose;
2199
+ exports.DialogContent = DialogContent;
2200
+ exports.DialogDescription = DialogDescription;
2201
+ exports.DialogFooter = DialogFooter;
2202
+ exports.DialogHeader = DialogHeader;
2203
+ exports.DialogTitle = DialogTitle;
2204
+ exports.DialogTrigger = DialogTrigger;
2205
+ exports.Drawer = Drawer;
2206
+ exports.DrawerBody = DrawerBody;
2207
+ exports.DrawerClose = DrawerClose;
2208
+ exports.DrawerContent = DrawerContent;
2209
+ exports.DrawerDescription = DrawerDescription;
2210
+ exports.DrawerFooter = DrawerFooter;
2211
+ exports.DrawerHeader = DrawerHeader;
2212
+ exports.DrawerOverlay = DrawerOverlay;
2213
+ exports.DrawerPortal = DrawerPortal;
2214
+ exports.DrawerTitle = DrawerTitle;
2215
+ exports.DrawerTrigger = DrawerTrigger;
2216
+ exports.DropdownMenu = DropdownMenu;
2217
+ exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
2218
+ exports.DropdownMenuContent = DropdownMenuContent;
2219
+ exports.DropdownMenuGroup = DropdownMenuGroup;
2220
+ exports.DropdownMenuItem = DropdownMenuItem;
2221
+ exports.DropdownMenuLabel = DropdownMenuLabel;
2222
+ exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
2223
+ exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
2224
+ exports.DropdownMenuSeparator = DropdownMenuSeparator;
2225
+ exports.DropdownMenuShortcut = DropdownMenuShortcut;
2226
+ exports.DropdownMenuSub = DropdownMenuSub;
2227
+ exports.DropdownMenuSubContent = DropdownMenuSubContent;
2228
+ exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
2229
+ exports.DropdownMenuTrigger = DropdownMenuTrigger;
2230
+ exports.InputText = InputText;
2231
+ exports.Label = Label;
2232
+ exports.NebulaI18nProvider = NebulaI18nProvider;
2233
+ exports.Pagination = Pagination;
2234
+ exports.Popover = Popover;
2235
+ exports.PopoverContent = PopoverContent;
2236
+ exports.PopoverTrigger = PopoverTrigger;
2237
+ exports.Select = StyledSelect;
2238
+ exports.Separator = Separator2;
2239
+ exports.Space = Space;
2240
+ exports.SpaceDirectionEnum = SpaceDirectionEnum;
2241
+ exports.SpaceSizeEnum = SpaceSizeEnum;
2242
+ exports.Switch = Switch;
2243
+ exports.Table = Table;
2244
+ exports.TableBody = TableBody;
2245
+ exports.TableCaption = TableCaption;
2246
+ exports.TableCell = TableCell;
2247
+ exports.TableFooter = TableFooter;
2248
+ exports.TableHead = TableHead;
2249
+ exports.TableHeader = TableHeader;
2250
+ exports.TableRow = TableRow;
2251
+ exports.Tag = Tag;
2252
+ exports.Tooltip = Tooltip;
2253
+ exports.alertVariants = alertVariants;
2254
+ exports.badgeSizeEnum = badgeSizeEnum;
2255
+ exports.badgeVariantEnum = badgeVariantEnum;
2256
+ exports.buttonSizeEnum = buttonSizeEnum;
2257
+ exports.buttonVariantEnum = buttonVariantEnum;
2258
+ exports.buttonVariantsConfig = buttonVariantsConfig;
2259
+ exports.getNebulaLanguage = getNebulaLanguage;
2260
+ exports.messages = messages7;
2261
+ exports.separatorVariants = separatorVariants;
2262
+ exports.setNebulaLanguage = setNebulaLanguage;
2263
+ exports.tagVariantsEnum = tagVariantsEnum;
2264
+ exports.tailwind = tailwind;
2265
+ exports.useNebulaI18n = useNebulaI18n;