@kingsimba/nc-ui 0.1.44 → 0.1.45

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.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- function d({ size: n = 24, color: r = "currentColor", strokeWidth: e = 2, className: i, style: c }) {
2
+ function d({ size: n = 24, color: r = "currentColor", strokeWidth: e = 2, className: i, style: h }) {
3
3
  return /* @__PURE__ */ t(
4
4
  "svg",
5
5
  {
@@ -12,10 +12,10 @@ function d({ size: n = 24, color: r = "currentColor", strokeWidth: e = 2, classN
12
12
  strokeLinecap: "round",
13
13
  strokeLinejoin: "round",
14
14
  className: i,
15
- style: c,
15
+ style: h,
16
16
  children: [
17
- /* @__PURE__ */ o("line", { x1: "20", y1: "4", x2: "4", y2: "20" }),
18
- /* @__PURE__ */ o("line", { x1: "4", y1: "4", x2: "20", y2: "20" })
17
+ /* @__PURE__ */ o("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
18
+ /* @__PURE__ */ o("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
19
19
  ]
20
20
  }
21
21
  );
@@ -42,7 +42,7 @@ function l({ size: n = 24, className: r, style: e }) {
42
42
  }
43
43
  );
44
44
  }
45
- function s({ size: n = 24, className: r, style: e }) {
45
+ function a({ size: n = 24, className: r, style: e }) {
46
46
  return /* @__PURE__ */ t(
47
47
  "svg",
48
48
  {
@@ -51,7 +51,7 @@ function s({ size: n = 24, className: r, style: e }) {
51
51
  viewBox: "0 0 24 24",
52
52
  fill: "none",
53
53
  stroke: "currentColor",
54
- strokeWidth: 1.5,
54
+ strokeWidth: 2,
55
55
  strokeLinecap: "round",
56
56
  strokeLinejoin: "round",
57
57
  className: r,
@@ -65,7 +65,7 @@ function s({ size: n = 24, className: r, style: e }) {
65
65
  }
66
66
  );
67
67
  }
68
- function u({ size: n = 24, className: r, style: e }) {
68
+ function s({ size: n = 24, className: r, style: e }) {
69
69
  return /* @__PURE__ */ t(
70
70
  "svg",
71
71
  {
@@ -86,13 +86,13 @@ function u({ size: n = 24, className: r, style: e }) {
86
86
  }
87
87
  );
88
88
  }
89
- function a({ size: n = 24, className: r, style: e }) {
89
+ function u({ size: n = 24, className: r, style: e }) {
90
90
  return /* @__PURE__ */ t(
91
91
  "svg",
92
92
  {
93
93
  width: n,
94
94
  height: n,
95
- viewBox: "-2 -2 28 28",
95
+ viewBox: "0 0 24 24",
96
96
  fill: "none",
97
97
  stroke: "currentColor",
98
98
  strokeWidth: 2,
@@ -130,7 +130,7 @@ function k({ size: n = 24, className: r, style: e }) {
130
130
  }
131
131
  );
132
132
  }
133
- function x({ size: n = 24, className: r, style: e }) {
133
+ function p({ size: n = 24, className: r, style: e }) {
134
134
  return /* @__PURE__ */ t(
135
135
  "svg",
136
136
  {
@@ -151,7 +151,7 @@ function x({ size: n = 24, className: r, style: e }) {
151
151
  }
152
152
  );
153
153
  }
154
- function v({ size: n = 24, className: r, style: e }) {
154
+ function x({ size: n = 24, className: r, style: e }) {
155
155
  return /* @__PURE__ */ o(
156
156
  "svg",
157
157
  {
@@ -169,7 +169,7 @@ function v({ size: n = 24, className: r, style: e }) {
169
169
  }
170
170
  );
171
171
  }
172
- function p({ size: n = 24, className: r, style: e }) {
172
+ function v({ size: n = 24, className: r, style: e }) {
173
173
  return /* @__PURE__ */ o(
174
174
  "svg",
175
175
  {
@@ -187,7 +187,7 @@ function p({ size: n = 24, className: r, style: e }) {
187
187
  }
188
188
  );
189
189
  }
190
- function f({ size: n = 24, className: r, style: e }) {
190
+ function L({ size: n = 24, className: r, style: e }) {
191
191
  return /* @__PURE__ */ o(
192
192
  "svg",
193
193
  {
@@ -205,13 +205,13 @@ function f({ size: n = 24, className: r, style: e }) {
205
205
  }
206
206
  );
207
207
  }
208
- function w({ size: n = 24, className: r, style: e }) {
208
+ function g({ size: n = 24, className: r, style: e }) {
209
209
  return /* @__PURE__ */ t(
210
210
  "svg",
211
211
  {
212
212
  width: n,
213
213
  height: n,
214
- viewBox: "-2 -2 28 28",
214
+ viewBox: "0 0 24 24",
215
215
  fill: "none",
216
216
  stroke: "currentColor",
217
217
  strokeWidth: 2,
@@ -220,15 +220,15 @@ function w({ size: n = 24, className: r, style: e }) {
220
220
  className: r,
221
221
  style: e,
222
222
  children: [
223
- /* @__PURE__ */ o("path", { d: "M21 2v6h-6" }),
223
+ /* @__PURE__ */ o("path", { d: "M21 3v5h-5" }),
224
224
  /* @__PURE__ */ o("path", { d: "M3 12a9 9 0 0 1 15-6.7L21 8" }),
225
- /* @__PURE__ */ o("path", { d: "M3 22v-6h6" }),
225
+ /* @__PURE__ */ o("path", { d: "M3 21v-5h5" }),
226
226
  /* @__PURE__ */ o("path", { d: "M21 12a9 9 0 0 1-15 6.7L3 16" })
227
227
  ]
228
228
  }
229
229
  );
230
230
  }
231
- function g({ size: n = 24, className: r, style: e }) {
231
+ function w({ size: n = 24, className: r, style: e }) {
232
232
  return /* @__PURE__ */ t(
233
233
  "svg",
234
234
  {
@@ -249,13 +249,13 @@ function g({ size: n = 24, className: r, style: e }) {
249
249
  }
250
250
  );
251
251
  }
252
- function y({ size: n = 24, className: r, style: e }) {
252
+ function f({ size: n = 24, className: r, style: e }) {
253
253
  return /* @__PURE__ */ t(
254
254
  "svg",
255
255
  {
256
256
  width: n,
257
257
  height: n,
258
- viewBox: "0 0 24 24",
258
+ viewBox: "-2.1 -2.1 28.2 28.2",
259
259
  fill: "none",
260
260
  stroke: "currentColor",
261
261
  strokeWidth: 2,
@@ -270,7 +270,7 @@ function y({ size: n = 24, className: r, style: e }) {
270
270
  }
271
271
  );
272
272
  }
273
- function L({ size: n = 24, className: r, style: e }) {
273
+ function y({ size: n = 24, className: r, style: e }) {
274
274
  return /* @__PURE__ */ t(
275
275
  "svg",
276
276
  {
@@ -279,7 +279,7 @@ function L({ size: n = 24, className: r, style: e }) {
279
279
  viewBox: "0 0 24 24",
280
280
  fill: "none",
281
281
  stroke: "currentColor",
282
- strokeWidth: 2,
282
+ strokeWidth: 1.5,
283
283
  strokeLinecap: "round",
284
284
  strokeLinejoin: "round",
285
285
  className: r,
@@ -293,7 +293,7 @@ function L({ size: n = 24, className: r, style: e }) {
293
293
  }
294
294
  );
295
295
  }
296
- function C({ size: n = 24, className: r, style: e }) {
296
+ function M({ size: n = 24, className: r, style: e }) {
297
297
  return /* @__PURE__ */ t(
298
298
  "svg",
299
299
  {
@@ -315,7 +315,7 @@ function C({ size: n = 24, className: r, style: e }) {
315
315
  }
316
316
  );
317
317
  }
318
- function M({ size: n = 24, className: r, style: e }) {
318
+ function C({ size: n = 24, className: r, style: e }) {
319
319
  return /* @__PURE__ */ t(
320
320
  "svg",
321
321
  {
@@ -338,6 +338,28 @@ function M({ size: n = 24, className: r, style: e }) {
338
338
  );
339
339
  }
340
340
  function I({ size: n = 24, className: r, style: e }) {
341
+ return /* @__PURE__ */ t(
342
+ "svg",
343
+ {
344
+ width: n,
345
+ height: n,
346
+ viewBox: "0 0 24 24",
347
+ fill: "none",
348
+ stroke: "currentColor",
349
+ strokeWidth: 2,
350
+ strokeLinecap: "round",
351
+ strokeLinejoin: "round",
352
+ className: r,
353
+ style: e,
354
+ children: [
355
+ /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
356
+ /* @__PURE__ */ o("path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }),
357
+ /* @__PURE__ */ o("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
358
+ ]
359
+ }
360
+ );
361
+ }
362
+ function j({ size: n = 24, className: r, style: e }) {
341
363
  return /* @__PURE__ */ t(
342
364
  "svg",
343
365
  {
@@ -358,7 +380,7 @@ function I({ size: n = 24, className: r, style: e }) {
358
380
  }
359
381
  );
360
382
  }
361
- function j({ size: n = 24, className: r, style: e }) {
383
+ function B({ size: n = 24, className: r, style: e }) {
362
384
  return /* @__PURE__ */ t(
363
385
  "svg",
364
386
  {
@@ -379,13 +401,13 @@ function j({ size: n = 24, className: r, style: e }) {
379
401
  }
380
402
  );
381
403
  }
382
- function B({ size: n = 24, className: r, style: e }) {
404
+ function W({ size: n = 24, className: r, style: e }) {
383
405
  return /* @__PURE__ */ t(
384
406
  "svg",
385
407
  {
386
408
  width: n,
387
409
  height: n,
388
- viewBox: "0 0 24 24",
410
+ viewBox: "-1.5 -1.5 27 27",
389
411
  fill: "none",
390
412
  stroke: "currentColor",
391
413
  strokeWidth: 2,
@@ -400,7 +422,7 @@ function B({ size: n = 24, className: r, style: e }) {
400
422
  }
401
423
  );
402
424
  }
403
- function W({ size: n = 24, className: r, style: e }) {
425
+ function V({ size: n = 24, className: r, style: e }) {
404
426
  return /* @__PURE__ */ t(
405
427
  "svg",
406
428
  {
@@ -421,7 +443,7 @@ function W({ size: n = 24, className: r, style: e }) {
421
443
  }
422
444
  );
423
445
  }
424
- function V({ size: n = 24, className: r, style: e }) {
446
+ function H({ size: n = 24, className: r, style: e }) {
425
447
  return /* @__PURE__ */ o(
426
448
  "svg",
427
449
  {
@@ -439,7 +461,7 @@ function V({ size: n = 24, className: r, style: e }) {
439
461
  }
440
462
  );
441
463
  }
442
- function H({ size: n = 24, className: r, style: e }) {
464
+ function A({ size: n = 24, className: r, style: e }) {
443
465
  return /* @__PURE__ */ t(
444
466
  "svg",
445
467
  {
@@ -482,7 +504,7 @@ function m({ size: n = 24, className: r, style: e }) {
482
504
  }
483
505
  );
484
506
  }
485
- function A({ size: n = 24, className: r, style: e }) {
507
+ function S({ size: n = 24, className: r, style: e }) {
486
508
  return /* @__PURE__ */ t(
487
509
  "svg",
488
510
  {
@@ -501,6 +523,28 @@ function A({ size: n = 24, className: r, style: e }) {
501
523
  );
502
524
  }
503
525
  function E({ size: n = 24, className: r, style: e }) {
526
+ return /* @__PURE__ */ t(
527
+ "svg",
528
+ {
529
+ width: n,
530
+ height: n,
531
+ viewBox: "0 0 24 24",
532
+ fill: "none",
533
+ stroke: "currentColor",
534
+ strokeWidth: 2.5,
535
+ strokeLinecap: "round",
536
+ strokeLinejoin: "round",
537
+ className: r,
538
+ style: e,
539
+ children: [
540
+ /* @__PURE__ */ o("path", { d: "M4 6h16" }),
541
+ /* @__PURE__ */ o("path", { d: "M4 12h16" }),
542
+ /* @__PURE__ */ o("path", { d: "M4 18h16" })
543
+ ]
544
+ }
545
+ );
546
+ }
547
+ function D({ size: n = 24, className: r, style: e }) {
504
548
  return /* @__PURE__ */ t(
505
549
  "svg",
506
550
  {
@@ -516,12 +560,12 @@ function E({ size: n = 24, className: r, style: e }) {
516
560
  style: e,
517
561
  children: [
518
562
  /* @__PURE__ */ o("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24" }),
519
- /* @__PURE__ */ o("line", { x1: "1", y1: "1", x2: "23", y2: "23" })
563
+ /* @__PURE__ */ o("line", { x1: "4", y1: "4", x2: "20", y2: "20" })
520
564
  ]
521
565
  }
522
566
  );
523
567
  }
524
- function D({ size: n = 24, className: r, style: e }) {
568
+ function P({ size: n = 24, className: r, style: e }) {
525
569
  return /* @__PURE__ */ t(
526
570
  "svg",
527
571
  {
@@ -542,31 +586,209 @@ function D({ size: n = 24, className: r, style: e }) {
542
586
  }
543
587
  );
544
588
  }
589
+ function R({ size: n = 24, className: r, style: e }) {
590
+ return /* @__PURE__ */ t(
591
+ "svg",
592
+ {
593
+ width: n,
594
+ height: n,
595
+ viewBox: "0 0 24 24",
596
+ fill: "none",
597
+ stroke: "currentColor",
598
+ strokeWidth: 2,
599
+ strokeLinecap: "round",
600
+ strokeLinejoin: "round",
601
+ className: r,
602
+ style: e,
603
+ children: [
604
+ /* @__PURE__ */ o("rect", { x: "8", y: "8", width: "14", height: "14", rx: "2" }),
605
+ /* @__PURE__ */ o("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
606
+ ]
607
+ }
608
+ );
609
+ }
610
+ function Z({ size: n = 24, className: r, style: e }) {
611
+ return /* @__PURE__ */ o(
612
+ "svg",
613
+ {
614
+ width: n,
615
+ height: n,
616
+ viewBox: "0 0 24 24",
617
+ fill: "none",
618
+ stroke: "currentColor",
619
+ strokeWidth: 2,
620
+ strokeLinecap: "round",
621
+ strokeLinejoin: "round",
622
+ className: r,
623
+ style: e,
624
+ children: /* @__PURE__ */ o("path", { d: "M5.33 3H18.67A1.5 1.5 0 0 1 19.79 5.5L14.4 11.6V21L9.6 18.6V11.6L4.21 5.5A1.5 1.5 0 0 1 5.33 3Z" })
625
+ }
626
+ );
627
+ }
628
+ function F({ size: n = 24, className: r, style: e }) {
629
+ return /* @__PURE__ */ t(
630
+ "svg",
631
+ {
632
+ width: n,
633
+ height: n,
634
+ viewBox: "0 0 24 24",
635
+ fill: "none",
636
+ stroke: "currentColor",
637
+ strokeWidth: 2,
638
+ strokeLinecap: "round",
639
+ strokeLinejoin: "round",
640
+ className: r,
641
+ style: e,
642
+ children: [
643
+ /* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "4.5" }),
644
+ /* @__PURE__ */ o("path", { d: "M12 4.5V2" }),
645
+ /* @__PURE__ */ o("path", { d: "M19.5 12H22" }),
646
+ /* @__PURE__ */ o("path", { d: "M12 19.5V22" }),
647
+ /* @__PURE__ */ o("path", { d: "M4.5 12H2" }),
648
+ /* @__PURE__ */ o("path", { d: "M17.3 6.7 19.07 4.93" }),
649
+ /* @__PURE__ */ o("path", { d: "M6.7 6.7 4.93 4.93" }),
650
+ /* @__PURE__ */ o("path", { d: "M6.7 17.3 4.93 19.07" }),
651
+ /* @__PURE__ */ o("path", { d: "M17.3 17.3 19.07 19.07" })
652
+ ]
653
+ }
654
+ );
655
+ }
656
+ function b({ size: n = 24, className: r, style: e }) {
657
+ return /* @__PURE__ */ o(
658
+ "svg",
659
+ {
660
+ width: n,
661
+ height: n,
662
+ viewBox: "0 0 24 24",
663
+ fill: "none",
664
+ stroke: "currentColor",
665
+ strokeWidth: 2,
666
+ strokeLinecap: "round",
667
+ strokeLinejoin: "round",
668
+ className: r,
669
+ style: e,
670
+ children: /* @__PURE__ */ o("path", { d: "M12 3.5a6.01 6.01 0 0 0 8.5 8.5 8.5 8.5 0 1 1-8.5-8.5Z" })
671
+ }
672
+ );
673
+ }
674
+ function Q({ size: n = 24, className: r, style: e }) {
675
+ return /* @__PURE__ */ t(
676
+ "svg",
677
+ {
678
+ width: n,
679
+ height: n,
680
+ viewBox: "0 0 24 24",
681
+ fill: "none",
682
+ stroke: "currentColor",
683
+ strokeWidth: 1.5,
684
+ strokeLinecap: "round",
685
+ strokeLinejoin: "round",
686
+ className: r,
687
+ style: e,
688
+ children: [
689
+ /* @__PURE__ */ o("path", { d: "M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Z" }),
690
+ /* @__PURE__ */ o("path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7" }),
691
+ /* @__PURE__ */ o("path", { d: "M7 3v4a1 1 0 0 0 1 1h7" })
692
+ ]
693
+ }
694
+ );
695
+ }
696
+ function T({ size: n = 24, className: r, style: e }) {
697
+ return /* @__PURE__ */ t(
698
+ "svg",
699
+ {
700
+ width: n,
701
+ height: n,
702
+ viewBox: "0 0 24 24",
703
+ fill: "none",
704
+ stroke: "currentColor",
705
+ strokeWidth: 1.5,
706
+ strokeLinecap: "round",
707
+ strokeLinejoin: "round",
708
+ className: r,
709
+ style: e,
710
+ children: [
711
+ /* @__PURE__ */ o("path", { d: "M10.092 3.25c.485-2 3.33-2 3.815 0a1.963 1.963 0 002.93 1.214c1.757-1.071 3.77.941 2.699 2.699a1.963 1.963 0 001.213 2.929c2 .485 2 3.33 0 3.815a1.963 1.963 0 00-1.214 2.93c1.071 1.757-.941 3.77-2.699 2.699a1.963 1.963 0 00-2.929 1.213c-.485 2-3.33 2-3.815 0a1.963 1.963 0 00-2.93-1.214c-1.757 1.071-3.77-.941-2.699-2.699a1.963 1.963 0 00-1.213-2.929c-2-.485-2-3.33 0-3.815a1.963 1.963 0 001.214-2.93c-1.071-1.757.941-3.77 2.699-2.699 1.134.692 2.615.08 2.929-1.213z" }),
712
+ /* @__PURE__ */ o("path", { d: "M15.417 12a3.417 3.417 0 11-6.833 0 3.417 3.417 0 016.833 0z" })
713
+ ]
714
+ }
715
+ );
716
+ }
717
+ function U({ size: n = 24, className: r, style: e }) {
718
+ return /* @__PURE__ */ t(
719
+ "svg",
720
+ {
721
+ width: n,
722
+ height: n,
723
+ viewBox: "0 0 24 24",
724
+ fill: "none",
725
+ stroke: "currentColor",
726
+ strokeWidth: 2,
727
+ strokeLinecap: "round",
728
+ strokeLinejoin: "round",
729
+ className: r,
730
+ style: e,
731
+ children: [
732
+ /* @__PURE__ */ o("rect", { x: "4", y: "4", width: "16", height: "16", rx: "2" }),
733
+ /* @__PURE__ */ o("path", { d: "m8.5 9.5 2.5 2.5-2.5 2.5" }),
734
+ /* @__PURE__ */ o("path", { d: "M13.5 14.5h2.5" })
735
+ ]
736
+ }
737
+ );
738
+ }
739
+ function q({ size: n = 24, className: r, style: e }) {
740
+ return /* @__PURE__ */ o(
741
+ "svg",
742
+ {
743
+ width: n,
744
+ height: n,
745
+ viewBox: "0 0 24 24",
746
+ fill: "none",
747
+ stroke: "currentColor",
748
+ strokeWidth: 2,
749
+ strokeLinecap: "round",
750
+ strokeLinejoin: "round",
751
+ className: r,
752
+ style: e,
753
+ children: /* @__PURE__ */ o("path", { d: "M13.43 3.37A1.55 1.55 0 0 0 10.57 3.37L8.58 8.15L3.44 8.56A1.55 1.55 0 0 0 2.54 11.29L6.47 14.65L5.27 19.67A1.55 1.55 0 0 0 7.58 21.36L12 18.66L16.42 21.36A1.55 1.55 0 0 0 18.73 19.67L17.53 14.65L21.46 11.29A1.55 1.55 0 0 0 20.56 8.56L15.42 8.15Z" })
754
+ }
755
+ );
756
+ }
545
757
  export {
546
- B as C,
547
- H as D,
548
- y as E,
549
- s as H,
550
- M as I,
758
+ W as C,
759
+ A as D,
760
+ f as E,
761
+ Z as F,
762
+ a as H,
763
+ C as I,
551
764
  k as L,
552
- V as M,
553
- I as P,
554
- w as R,
555
- D as S,
556
- L as T,
557
- x as U,
558
- u as V,
559
- a as W,
560
- f as a,
561
- p as b,
562
- v as c,
765
+ E as M,
766
+ j as P,
767
+ I as Q,
768
+ g as R,
769
+ Q as S,
770
+ y as T,
771
+ p as U,
772
+ s as V,
773
+ u as W,
774
+ L as a,
775
+ v as b,
776
+ x as c,
563
777
  d,
564
- C as e,
565
- l as f,
566
- E as g,
567
- A as h,
568
- m as i,
569
- W as j,
570
- j as k,
571
- g as l
778
+ U as e,
779
+ R as f,
780
+ M as g,
781
+ l as h,
782
+ D as i,
783
+ H as j,
784
+ b as k,
785
+ S as l,
786
+ m,
787
+ V as n,
788
+ B as o,
789
+ w as p,
790
+ P as q,
791
+ T as r,
792
+ q as s,
793
+ F as t
572
794
  };
@@ -0,0 +1 @@
1
+ "use strict";const n=require("react/jsx-runtime");function s({size:o=24,color:r="currentColor",strokeWidth:e=2,className:t,style:i}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",className:t,style:i,children:[n.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function c({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h8"}),n.jsx("polyline",{points:"17 4 20 4 20 7"}),n.jsx("line",{x1:"13",y1:"11",x2:"20",y2:"4"})]})}function h({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("rect",{x:"3",y:"4",width:"18",height:"14",rx:"2"}),n.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),n.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"21"}),n.jsx("line",{x1:"7",y1:"11",x2:"17",y2:"11"})]})}function d({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),n.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function x({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M1.5 9a15.5 15.5 0 0 1 21 0"}),n.jsx("path",{d:"M5 12.5a10 10 0 0 1 14 0"}),n.jsx("path",{d:"M8.5 16a5 5 0 0 1 7 0"}),n.jsx("circle",{cx:"12",cy:"20",r:"1.5",fill:"currentColor"})]})}function l({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),n.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function u({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),n.jsx("path",{d:"M8 11V7a4 4 0 0 1 7.83-1"})]})}function a({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("polyline",{points:"9 18 15 12 9 6"})})}function j({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("polyline",{points:"15 18 9 12 15 6"})})}function k({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("polyline",{points:"6 9 12 15 18 9"})})}function p({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M21 3v5h-5"}),n.jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8"}),n.jsx("path",{d:"M3 21v-5h5"}),n.jsx("path",{d:"M21 12a9 9 0 0 1-15 6.7L3 16"})]})}function v({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),n.jsx("path",{d:"M3 3v5h5"})]})}function L({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"-2.1 -2.1 28.2 28.2",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),n.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}function w({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("polyline",{points:"3 6 5 6 21 6"}),n.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),n.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),n.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}function f({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M4 4h5l2 2h9a1 1 0 0 1 1 1v2H3V5a1 1 0 0 1 1-1z"}),n.jsx("path",{d:"M2 9h20l-2 11H4L2 9z"}),n.jsx("path",{d:"M8 14h8",strokeDasharray:"2 2",opacity:"0.5"})]})}function g({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("circle",{cx:"12",cy:"12",r:"10"}),n.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),n.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})}function I({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("circle",{cx:"12",cy:"12",r:"10"}),n.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),n.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}function y({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),n.jsx("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})]})}function M({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M12 2v10"}),n.jsx("path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"})]})}function C({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"-1.5 -1.5 27 27",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),n.jsx("circle",{cx:"12",cy:"13",r:"4"})]})}function B({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),n.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function W({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}function V({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("circle",{cx:"9.5",cy:"4",r:"2",opacity:"0.5"}),n.jsx("circle",{cx:"9.5",cy:"4",r:"3.5",opacity:"0.3"}),n.jsx("path",{d:"M8 13V5.5a1.5 1.5 0 0 1 3 0V12"}),n.jsx("path",{d:"M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5"}),n.jsx("path",{d:"M14 10.5a1.5 1.5 0 0 1 3 0v1.5"}),n.jsx("path",{d:"M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1-6 6h-2h.2a6 6 0 0 1-5-2.7l-.2-.3c-.3-.5-1.4-2.4-3.2-6.3l-.5-.8a.6.6 0 0 1 .5-.8h2.5"})]})}function H({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:[n.jsx("circle",{cx:"12",cy:"5",r:"2"}),n.jsx("circle",{cx:"12",cy:"12",r:"2"}),n.jsx("circle",{cx:"12",cy:"19",r:"2"})]})}function A({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:[n.jsx("circle",{cx:"5",cy:"12",r:"2"}),n.jsx("circle",{cx:"12",cy:"12",r:"2"}),n.jsx("circle",{cx:"19",cy:"12",r:"2"})]})}function S({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M4 6h16"}),n.jsx("path",{d:"M4 12h16"}),n.jsx("path",{d:"M4 18h16"})]})}function m({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),n.jsx("line",{x1:"4",y1:"4",x2:"20",y2:"20"})]})}function E({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("circle",{cx:"11",cy:"11",r:"8"}),n.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}function R({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("rect",{x:"8",y:"8",width:"14",height:"14",rx:"2"}),n.jsx("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})]})}function P({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("path",{d:"M5.33 3H18.67A1.5 1.5 0 0 1 19.79 5.5L14.4 11.6V21L9.6 18.6V11.6L4.21 5.5A1.5 1.5 0 0 1 5.33 3Z"})})}function D({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("circle",{cx:"12",cy:"12",r:"4.5"}),n.jsx("path",{d:"M12 4.5V2"}),n.jsx("path",{d:"M19.5 12H22"}),n.jsx("path",{d:"M12 19.5V22"}),n.jsx("path",{d:"M4.5 12H2"}),n.jsx("path",{d:"M17.3 6.7 19.07 4.93"}),n.jsx("path",{d:"M6.7 6.7 4.93 4.93"}),n.jsx("path",{d:"M6.7 17.3 4.93 19.07"}),n.jsx("path",{d:"M17.3 17.3 19.07 19.07"})]})}function F({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("path",{d:"M12 3.5a6.01 6.01 0 0 0 8.5 8.5 8.5 8.5 0 1 1-8.5-8.5Z"})})}function Z({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Z"}),n.jsx("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),n.jsx("path",{d:"M7 3v4a1 1 0 0 0 1 1h7"})]})}function b({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M10.092 3.25c.485-2 3.33-2 3.815 0a1.963 1.963 0 002.93 1.214c1.757-1.071 3.77.941 2.699 2.699a1.963 1.963 0 001.213 2.929c2 .485 2 3.33 0 3.815a1.963 1.963 0 00-1.214 2.93c1.071 1.757-.941 3.77-2.699 2.699a1.963 1.963 0 00-2.929 1.213c-.485 2-3.33 2-3.815 0a1.963 1.963 0 00-2.93-1.214c-1.757 1.071-3.77-.941-2.699-2.699a1.963 1.963 0 00-1.213-2.929c-2-.485-2-3.33 0-3.815a1.963 1.963 0 001.214-2.93c-1.071-1.757.941-3.77 2.699-2.699 1.134.692 2.615.08 2.929-1.213z"}),n.jsx("path",{d:"M15.417 12a3.417 3.417 0 11-6.833 0 3.417 3.417 0 016.833 0z"})]})}function Q({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),n.jsx("path",{d:"m8.5 9.5 2.5 2.5-2.5 2.5"}),n.jsx("path",{d:"M13.5 14.5h2.5"})]})}function T({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("path",{d:"M13.43 3.37A1.55 1.55 0 0 0 10.57 3.37L8.58 8.15L3.44 8.56A1.55 1.55 0 0 0 2.54 11.29L6.47 14.65L5.27 19.67A1.55 1.55 0 0 0 7.58 21.36L12 18.66L16.42 21.36A1.55 1.55 0 0 0 18.73 19.67L17.53 14.65L21.46 11.29A1.55 1.55 0 0 0 20.56 8.56L15.42 8.15Z"})})}exports.CameraIcon=C;exports.ChevronDownIcon=k;exports.ChevronLeftIcon=j;exports.ChevronRightIcon=a;exports.CloseIcon=s;exports.ConsoleIcon=Q;exports.CopyIcon=R;exports.DoubleClickIcon=V;exports.EditIcon=L;exports.EmptyFolderIcon=f;exports.ExternalLinkIcon=c;exports.EyeHiddenIcon=m;exports.FilterIcon=P;exports.HideAppsIcon=h;exports.InfoIcon=g;exports.LockIcon=l;exports.MenuIcon=S;exports.MinusIcon=W;exports.MoonIcon=F;exports.MoreHorizontalIcon=A;exports.MoreIcon=H;exports.PieChartIcon=y;exports.PlusIcon=B;exports.PowerIcon=M;exports.QuestionIcon=I;exports.RefreshIcon=p;exports.RevertIcon=v;exports.SaveIcon=Z;exports.SearchIcon=E;exports.SettingsIcon=b;exports.StarIcon=T;exports.SunIcon=D;exports.TrashIcon=w;exports.UnlockIcon=u;exports.ViewIcon=d;exports.WifiIcon=x;
package/dist/icons.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./GeneratedIcons-CGjL38ny.cjs");exports.CameraIcon=o.CameraIcon;exports.ChevronDownIcon=o.ChevronDownIcon;exports.ChevronLeftIcon=o.ChevronLeftIcon;exports.ChevronRightIcon=o.ChevronRightIcon;exports.CloseIcon=o.CloseIcon;exports.DoubleClickIcon=o.DoubleClickIcon;exports.EditIcon=o.EditIcon;exports.EmptyFolderIcon=o.EmptyFolderIcon;exports.ExternalLinkIcon=o.ExternalLinkIcon;exports.EyeHiddenIcon=o.EyeHiddenIcon;exports.HideAppsIcon=o.HideAppsIcon;exports.InfoIcon=o.InfoIcon;exports.LockIcon=o.LockIcon;exports.MinusIcon=o.MinusIcon;exports.MoreHorizontalIcon=o.MoreHorizontalIcon;exports.MoreIcon=o.MoreIcon;exports.PieChartIcon=o.PieChartIcon;exports.PlusIcon=o.PlusIcon;exports.PowerIcon=o.PowerIcon;exports.RefreshIcon=o.RefreshIcon;exports.RevertIcon=o.RevertIcon;exports.SearchIcon=o.SearchIcon;exports.TrashIcon=o.TrashIcon;exports.UnlockIcon=o.UnlockIcon;exports.ViewIcon=o.ViewIcon;exports.WifiIcon=o.WifiIcon;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./GeneratedIcons-DGITx4_M.cjs");exports.CameraIcon=o.CameraIcon;exports.ChevronDownIcon=o.ChevronDownIcon;exports.ChevronLeftIcon=o.ChevronLeftIcon;exports.ChevronRightIcon=o.ChevronRightIcon;exports.CloseIcon=o.CloseIcon;exports.ConsoleIcon=o.ConsoleIcon;exports.CopyIcon=o.CopyIcon;exports.DoubleClickIcon=o.DoubleClickIcon;exports.EditIcon=o.EditIcon;exports.EmptyFolderIcon=o.EmptyFolderIcon;exports.ExternalLinkIcon=o.ExternalLinkIcon;exports.EyeHiddenIcon=o.EyeHiddenIcon;exports.FilterIcon=o.FilterIcon;exports.HideAppsIcon=o.HideAppsIcon;exports.InfoIcon=o.InfoIcon;exports.LockIcon=o.LockIcon;exports.MenuIcon=o.MenuIcon;exports.MinusIcon=o.MinusIcon;exports.MoonIcon=o.MoonIcon;exports.MoreHorizontalIcon=o.MoreHorizontalIcon;exports.MoreIcon=o.MoreIcon;exports.PieChartIcon=o.PieChartIcon;exports.PlusIcon=o.PlusIcon;exports.PowerIcon=o.PowerIcon;exports.QuestionIcon=o.QuestionIcon;exports.RefreshIcon=o.RefreshIcon;exports.RevertIcon=o.RevertIcon;exports.SaveIcon=o.SaveIcon;exports.SearchIcon=o.SearchIcon;exports.SettingsIcon=o.SettingsIcon;exports.StarIcon=o.StarIcon;exports.SunIcon=o.SunIcon;exports.TrashIcon=o.TrashIcon;exports.UnlockIcon=o.UnlockIcon;exports.ViewIcon=o.ViewIcon;exports.WifiIcon=o.WifiIcon;
package/dist/icons.d.ts CHANGED
@@ -3,6 +3,8 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
3
3
 
4
4
  /**
5
5
  * Camera icon for video/image capture functionality.
6
+ * Optically sized to 89%: the body spans the full 24-unit box, so at 1:1 it
7
+ * reads heavier than round icons like InfoIcon.
6
8
  */
7
9
  export declare function CameraIcon({ size, className, style }: IconProps): JSX_2.Element;
8
10
 
@@ -29,6 +31,19 @@ export declare function CloseIcon({ size, color, strokeWidth, className, style }
29
31
  strokeWidth?: number;
30
32
  }): JSX_2.Element;
31
33
 
34
+ /**
35
+ * Console icon - Terminal window. Same 2-unit margin as SaveIcon: an outer
36
+ * rectangle spanning the full 24-unit box would be the widest silhouette in the
37
+ * set, so the frame is inset to 4..20 (16 units) and reads level with the
38
+ * circles. The prompt chevron and the output underline sit inside the frame.
39
+ */
40
+ export declare function ConsoleIcon({ size, className, style }: IconProps): JSX_2.Element;
41
+
42
+ /**
43
+ * Copy icon - Two overlapping sheets for copy-to-clipboard actions.
44
+ */
45
+ export declare function CopyIcon({ size, className, style }: IconProps): JSX_2.Element;
46
+
32
47
  /**
33
48
  * DoubleClick icon - Mouse cursor with double-click indicators and movement arrow.
34
49
  * Used to enable/disable double-click to move robot feature.
@@ -37,6 +52,8 @@ export declare function DoubleClickIcon({ size, className, style }: IconProps):
37
52
 
38
53
  /**
39
54
  * Edit icon - Pencil for editing mode.
55
+ * Optically sized to 85%: the pencil fills its box corner-to-corner, so at full
56
+ * size it reads heavier than round icons like InfoIcon.
40
57
  */
41
58
  export declare function EditIcon({ size, className, style }: IconProps): JSX_2.Element;
42
59
 
@@ -55,6 +72,11 @@ export declare function ExternalLinkIcon({ size, className, style }: IconProps):
55
72
  */
56
73
  export declare function EyeHiddenIcon({ size, className, style }: IconProps): JSX_2.Element;
57
74
 
75
+ /**
76
+ * Filter icon - Funnel for narrowing down a list or dataset.
77
+ */
78
+ export declare function FilterIcon({ size, className, style }: IconProps): JSX_2.Element;
79
+
58
80
  /**
59
81
  * HideApps icon - "Show Desktop" style icon to collapse the right toolbar panel.
60
82
  * Similar to Windows "Show Desktop" button.
@@ -79,11 +101,26 @@ export declare function InfoIcon({ size, className, style }: IconProps): JSX_2.E
79
101
  */
80
102
  export declare function LockIcon({ size, className, style }: IconProps): JSX_2.Element;
81
103
 
104
+ /**
105
+ * Menu icon - Hamburger button for opening navigation or action menus.
106
+ * Uses a 2.5px stroke: three short bars carry less ink than a full outline,
107
+ * so the slightly heavier weight keeps it level with the rest of the set.
108
+ */
109
+ export declare function MenuIcon({ size, className, style }: IconProps): JSX_2.Element;
110
+
82
111
  /**
83
112
  * Minus icon for zoom out functionality.
84
113
  */
85
114
  export declare function MinusIcon({ size, className, style }: IconProps): JSX_2.Element;
86
115
 
116
+ /**
117
+ * Moon icon - Dark theme. Outer arc is a circle of radius 8.5 rather than the
118
+ * full 10: a crescent is one compact solid mass, so matching the sun's ink area
119
+ * would still make it read heavier than the sun's sparse rays.
120
+ * The bite is a semicircle on the chord, so it reaches the circle's centre.
121
+ */
122
+ export declare function MoonIcon({ size, className, style }: IconProps): JSX_2.Element;
123
+
87
124
  /**
88
125
  * More Horizontal icon - Horizontal three dots for menu/options.
89
126
  */
@@ -110,8 +147,17 @@ export declare function PlusIcon({ size, className, style }: IconProps): JSX_2.E
110
147
  */
111
148
  export declare function PowerIcon({ size, className, style }: IconProps): JSX_2.Element;
112
149
 
150
+ /**
151
+ * Question icon - circle with "?" for help and unknown values. Same 10-unit
152
+ * ring as InfoIcon so the two pair cleanly; the hook and dot mirror the "i"
153
+ * stem and dot, leaving a 4-unit gap above the dot in both.
154
+ */
155
+ export declare function QuestionIcon({ size, className, style }: IconProps): JSX_2.Element;
156
+
113
157
  /**
114
158
  * Refresh icon for scanning networks.
159
+ * Paths are drawn to the full 24-unit box; do not add viewBox padding here,
160
+ * it scales the glyph (and its stroke) down relative to the rest of the set.
115
161
  */
116
162
  export declare function RefreshIcon({ size, className, style }: IconProps): JSX_2.Element;
117
163
 
@@ -120,11 +166,47 @@ export declare function RefreshIcon({ size, className, style }: IconProps): JSX_
120
166
  */
121
167
  export declare function RevertIcon({ size, className, style }: IconProps): JSX_2.Element;
122
168
 
169
+ /**
170
+ * Save icon - Floppy disk. The body is a rounded square spanning 3 to 21 with a
171
+ * 45° cut across the top-right corner: a solid square silhouette reads heavier
172
+ * than the set's circles and sparse glyphs, so it is held to a 20-unit ink box
173
+ * (2 units of margin per side) and a 1.5 stroke rather than the full 22 and 2.
174
+ */
175
+ export declare function SaveIcon({ size, className, style }: IconProps): JSX_2.Element;
176
+
123
177
  /**
124
178
  * Search icon - Magnifying glass icon for search functionality.
125
179
  */
126
180
  export declare function SearchIcon({ size, className, style }: IconProps): JSX_2.Element;
127
181
 
182
+ /**
183
+ * Settings icon - Gear. Six lobes joined to the hub by rounded webs rather than
184
+ * straight flanks: the profile is built from 1.963-unit arcs throughout, so the
185
+ * tooth/valley transition carries no straight run and reads soft at every size.
186
+ * 1.5px stroke and a 3.417-unit bore, so the glyph fills the same 22x22 outer
187
+ * box (1 unit of margin per side) as the rest of the set.
188
+ */
189
+ export declare function SettingsIcon({ size, className, style }: IconProps): JSX_2.Element;
190
+
191
+ /**
192
+ * Star icon - Five-pointed star for favourites and ratings. Outer radius 12.92
193
+ * with a 0.45 inner ratio: the classic 0.382 pentagram proportion goes
194
+ * needle-thin once the arms are down at 16px, while anything above ~0.5 starts
195
+ * reading as a pentagon. Each tip carries a real 1.55-unit fillet - a plain
196
+ * strokeLinejoin only softens by half the stroke width, which leaves the points
197
+ * visibly sharp. 1.55 is the largest radius that still leaves 1.42 units of
198
+ * straight edge between neighbouring tips; beyond ~1.85 the fillets collide and
199
+ * the star turns blobby. Sized so the ink box spans the set's full 22 units
200
+ * across rather than the 17.5 a 10-unit radius gives.
201
+ */
202
+ export declare function StarIcon({ size, className, style }: IconProps): JSX_2.Element;
203
+
204
+ /**
205
+ * Sun icon - Light theme. Pairs with MoonIcon as a matched toggle set:
206
+ * both fill the same 22x22 ink box with 1 unit of margin on every side.
207
+ */
208
+ export declare function SunIcon({ size, className, style }: IconProps): JSX_2.Element;
209
+
128
210
  /**
129
211
  * Trash icon for deleting items.
130
212
  */
package/dist/icons.js CHANGED
@@ -1,29 +1,39 @@
1
- import { C as a, a as s, b as c, c as I, d as e, D as r, E as i, e as h, f as l, g as t, H as C, I as d, L as f, M as k, h as E, i as p, P as v, j as H, k as L, R as M, l as P, S as R, T as m, U as u, V as w, W as D } from "./GeneratedIcons-HFZmBTBT.js";
1
+ import { C as a, a as s, b as c, c as I, d as e, e as r, f as i, D as t, E as l, g as C, h, i as d, F as f, H as p, I as u, L as M, M as S, j as k, k as v, l as E, m, P as H, n as L, o as P, Q as R, R as g, p as w, S as y, q as D, r as F, s as b, t as x, T as Q, U as T, V as U, W as V } from "./GeneratedIcons-ChNhuTDj.js";
2
2
  export {
3
3
  a as CameraIcon,
4
4
  s as ChevronDownIcon,
5
5
  c as ChevronLeftIcon,
6
6
  I as ChevronRightIcon,
7
7
  e as CloseIcon,
8
- r as DoubleClickIcon,
9
- i as EditIcon,
10
- h as EmptyFolderIcon,
11
- l as ExternalLinkIcon,
12
- t as EyeHiddenIcon,
13
- C as HideAppsIcon,
14
- d as InfoIcon,
15
- f as LockIcon,
8
+ r as ConsoleIcon,
9
+ i as CopyIcon,
10
+ t as DoubleClickIcon,
11
+ l as EditIcon,
12
+ C as EmptyFolderIcon,
13
+ h as ExternalLinkIcon,
14
+ d as EyeHiddenIcon,
15
+ f as FilterIcon,
16
+ p as HideAppsIcon,
17
+ u as InfoIcon,
18
+ M as LockIcon,
19
+ S as MenuIcon,
16
20
  k as MinusIcon,
21
+ v as MoonIcon,
17
22
  E as MoreHorizontalIcon,
18
- p as MoreIcon,
19
- v as PieChartIcon,
20
- H as PlusIcon,
21
- L as PowerIcon,
22
- M as RefreshIcon,
23
- P as RevertIcon,
24
- R as SearchIcon,
25
- m as TrashIcon,
26
- u as UnlockIcon,
27
- w as ViewIcon,
28
- D as WifiIcon
23
+ m as MoreIcon,
24
+ H as PieChartIcon,
25
+ L as PlusIcon,
26
+ P as PowerIcon,
27
+ R as QuestionIcon,
28
+ g as RefreshIcon,
29
+ w as RevertIcon,
30
+ y as SaveIcon,
31
+ D as SearchIcon,
32
+ F as SettingsIcon,
33
+ b as StarIcon,
34
+ x as SunIcon,
35
+ Q as TrashIcon,
36
+ T as UnlockIcon,
37
+ U as ViewIcon,
38
+ V as WifiIcon
29
39
  };
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var pt=Object.defineProperty;var ft=(e,t,r)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ne=(e,t,r)=>ft(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),X=require("./GeneratedIcons-CGjL38ny.cjs"),l=require("react"),ve=require("react-dom"),te=require("react-i18next"),ht=require("i18next"),mt=require("./clsx-C11secjj.cjs");function Ce({size:e="default",color:t,overlay:r=!1,className:s=""}){const o=n.jsx("svg",{className:`nc-activity-indicator nc-${e} ${s}`,viewBox:"0 0 50 50",style:t?{color:t}:void 0,children:n.jsx("circle",{className:"nc-activity-indicator-circle",cx:"25",cy:"25",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})});return r?n.jsx("div",{className:"nc-activity-indicator-overlay",children:o}):o}function J({variant:e="default",block:t,size:r="default",appearance:s="default",className:o,disabled:i,textSelectable:a,loading:c,onClick:d,children:p,...f}){const w=["nc-button",e!=="default"?`nc-${e}`:"",t?"nc-block":"",r==="small"?"nc-small":"",r==="large"?"nc-large":"",s==="transparent"?"nc-transparent":"",i||c?"nc-disabled":"",a?"nc-text-selectable":"",c?"nc-loading":"",o??""].filter(Boolean).join(" "),u=b=>{if(!c){if(a){const k=window.getSelection();if(k&&k.toString().length>0)return}d==null||d(b)}};return n.jsxs("button",{className:w,disabled:i||c,onClick:u,...f,children:[c&&n.jsx(Ce,{size:"small",className:"nc-button-spinner",color:s==="transparent"||e!=="default"&&e!=="ghost"?"white":void 0}),p]})}const gt={info:"primary",success:"success",warning:"warning",error:"danger",danger:"danger"};function bt({code:e,text:t,type:r,button:s,onAction:o,children:i,onClose:a,className:c="",style:d}){const p=i??n.jsxs(n.Fragment,{children:[e!==void 0&&n.jsx("span",{className:"nc-alert-code",children:e}),t]});return n.jsxs("div",{className:`nc-alert nc-${r} ${c}`.trim(),style:d,children:[n.jsxs("div",{className:"nc-alert-main",children:[n.jsx("div",{className:`nc-alert-message nc-${r}`,children:p}),a&&n.jsx("button",{type:"button",className:"nc-alert-close","aria-label":"Close alert",onClick:a,children:n.jsx(X.CloseIcon,{size:16})})]}),s&&n.jsx("span",{className:"nc-alert-action",children:n.jsx(J,{size:"small",variant:s.variant??gt[r],onClick:o,children:s.text})})]})}function xt({percentage:e=.5,status:t="discharging",darkMode:r=!1,colored:s=!1}){const o=Math.max(0,Math.min(1,Number(e)||0)),i=o===0?"-":String(Math.round(o*100));let a;s?o<.1?a="var(--nc-danger)":o<.2?a="var(--nc-warning)":a="var(--nc-success)":a=r?"rgba(255,255,255,0.35)":"#000000";const c="var(--nc-battery-shell-bg)",d=24,p=14,f=2,w=0,u=12,b=0,k=0,x=0,v=d,y=p,m=y-b*2,h=v-b*2,g=Math.max(1,Math.min(4,y/4)),N=o===0?0:.05+o*.95,A=d+f+u,$=20,L=.65,S=Math.max(p,$*L),T=d+f+1,j=(p-$*L)/2;return n.jsxs("svg",{className:"nc-battery",width:A,height:S,viewBox:`0 0 ${A} ${S}`,role:"img","aria-label":`Battery ${i==="-"?"-":`${i}%`} ${t}`,children:[n.jsx("defs",{children:n.jsx("mask",{id:`nc-battery-fill-mask-${o}`,children:n.jsx("rect",{x:"0",y:"0",width:h*N,height:m,fill:"white"})})}),n.jsx("rect",{x:k,y:x,rx:g,ry:g,width:v,height:y,fill:c}),n.jsx("rect",{x:k+b,y:x+b,width:h,height:m,fill:a,rx:g,ry:g,mask:`url(#nc-battery-fill-mask-${o})`}),n.jsx("text",{x:k+v/2,y:p-3,fontSize:11,fontWeight:"bold",fill:"var(--nc-battery-text-contrast)",textAnchor:"middle",children:i}),n.jsx("rect",{x:d+w,y:p*.26,width:f,height:p*.48,rx:.8,ry:.8,fill:o===1?a:c}),t==="charging"?n.jsx("g",{transform:`translate(${T}, ${j}) scale(${L})`,fill:a,children:n.jsx("path",{d:"M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z"})}):null]})}function vt({value:e,onChange:t,options:r,disabled:s,size:o="default"}){return n.jsx("div",{className:`nc-button-group ${o==="small"?"nc-small":o==="tiny"?"nc-tiny":""}`,children:r.map(i=>{const a=s||!!i.disabled;return n.jsx("button",{type:"button",className:`nc-button-group-item ${e===i.key?"nc-active":""}`,onClick:()=>!a&&t(i.key),disabled:a,children:i.label},i.key)})})}function wt({size:e}){return n.jsx("svg",{className:`nc-checkbox-icon ${e==="small"?"nc-small":e==="tiny"?"nc-tiny":""}`,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M2 6L5 9L10 3",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function yt({checked:e,onChange:t,disabled:r,label:s,size:o="default",labelColor:i,style:a,className:c=""}){const d=o==="small",p=o==="tiny";return n.jsxs("label",{className:`nc-checkbox-label ${d?"nc-small":""} ${p?"nc-tiny":""} ${r?"nc-disabled":""} ${c}`.trim(),style:a,onClick:f=>{r||(f.preventDefault(),t(!e))},children:[n.jsx("span",{role:"checkbox","aria-checked":e,tabIndex:0,className:`nc-checkbox-box ${d?"nc-small":""} ${p?"nc-tiny":""} ${e?"nc-checked":""}`,onKeyDown:f=>{r||(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),t(!e))},children:e&&n.jsx(wt,{size:o})}),s&&n.jsx("span",{className:"nc-checkbox-text",style:i?{color:i}:void 0,children:s})]})}function jt({option:e,onChange:t,selected:r,highlighted:s,small:o,renderOption:i,index:a}){const c=l.useRef(null),{t:d}=te.useTranslation(),p=e.disabled===!0;return l.useEffect(()=>{s&&c.current&&c.current.scrollIntoView({block:"nearest"})},[s]),n.jsx("div",{ref:c,className:`nc-combo-dropdown-option ${o?"nc-small":""} ${s?"nc-highlighted":""} ${p?"nc-disabled":""}`,role:"option",onClick:()=>{p||t(e.value,e.label)},"aria-selected":r,"aria-disabled":p,style:{cursor:p?"default":"pointer",opacity:p?.4:void 0,background:s&&!p?"rgba(59,130,246,0.18)":r&&!p?"rgba(59,130,246,0.12)":void 0},children:i?i(e,a,!!s):n.jsxs(n.Fragment,{children:[e.label,e.default&&n.jsxs("span",{style:{fontSize:"0.85em",color:"var(--nc-text-weak)",marginLeft:6},children:["(",d("common.default"),")"]})]})})}function kt({isOpen:e,options:t,onSelect:r,selectedValue:s,placement:o="bottom",anchorRef:i,small:a,highlightedIndex:c=-1,renderOption:d}){const[p,f]=l.useState({top:0,left:0,width:0}),[w,u]=l.useState(o),{t:b}=te.useTranslation();if(l.useEffect(()=>{if(e&&i.current){const x=i.current.getBoundingClientRect();let v=o;if(o==="bottom"){const y=window.innerHeight-x.bottom,m=x.top;y<320&&m>y&&(v="top")}u(v),f({top:v==="top"?x.top-4:x.bottom+4,left:x.left,width:x.width})}},[e,i,o]),!e)return null;const k=n.jsx("div",{className:"nc-combo-dropdown",onMouseDown:x=>x.stopPropagation(),style:{position:"fixed",top:w==="top"?void 0:p.top,bottom:w==="top"?window.innerHeight-p.top:void 0,left:p.left,width:p.width,zIndex:1e3,maxHeight:300,overflowY:"auto"},children:t.length===0?n.jsx("div",{className:`nc-combo-dropdown-option nc-no-results ${a?"nc-small":""}`,children:b("common.noResults")}):t.map((x,v)=>n.jsx(jt,{option:x,onChange:r,selected:x.value===s,highlighted:v===c,small:a,renderOption:d,index:v},x.value))});return ve.createPortal(k,document.body)}function Nt({onClick:e,small:t}){return n.jsx("span",{role:"button",tabIndex:0,className:`nc-combo-button nc-combo-clear ${t?"nc-small":""}`,onClick:r=>{r.stopPropagation(),e()},onMouseDown:r=>r.stopPropagation(),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation(),e())},"aria-label":"Clear selection",children:"✕"})}function St({open:e,small:t}){return n.jsx("span",{"aria-hidden":!0,className:`nc-combo-button nc-combo-toggle ${t?"nc-small":""} ${e?"nc-open":""}`,children:"▾"})}function At({value:e,onChange:t,placeholder:r="Select…",options:s,candidates:o,renderOption:i,renderSelected:a,selectedOption:c,disabled:d,label:p,clearable:f=!0,allowTyping:w=!1,placement:u="bottom",size:b="default",appearance:k="default",textAlign:x="left",style:v,className:y}){const[m,h]=l.useState(!1),[g,N]=l.useState(""),[A,$]=l.useState(-1),L=l.useRef(null),S=l.useRef(null),T=l.useRef(null),j=b==="small",{t:C}=te.useTranslation(),P=!!o,V=w||P,[M,E]=l.useState([]),[D,K]=l.useState(()=>{if(s&&e){const I=s.find(H=>H.value===e);return I?I.label:""}return o&&e?e:""});l.useEffect(()=>{if(!e){K("");return}if(s){const I=s.find(H=>H.value===e);I&&K(I.label)}else o&&K(e)},[e,s,o]);const W=(I,H=!1)=>{if(!o)return;T.current&&clearTimeout(T.current);const z=async()=>{try{const Y=await o(I);E(Y),$(-1)}catch{E([])}};H?z():T.current=setTimeout(z,200)},G=l.useMemo(()=>{if(P)return M;const I=g.toLowerCase();return V?(s||[]).filter(H=>H.label.toLowerCase().includes(I)):s||[]},[s,g,V,P,M]);l.useEffect(()=>{m&&$(-1)},[m,G]),l.useEffect(()=>{if(!f&&!e&&s&&s.length>0&&t){const I=s.find(H=>H.default)||s[0];t(I.value)}},[f,e,s,t]),l.useEffect(()=>{function I(H){var z;H.target instanceof Node&&L.current&&((z=L.current.parentElement)!=null&&z.contains(H.target)||h(!1))}return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);const B=c??(s?s.find(I=>I.value===e):e?{label:D,value:e}:void 0),_=B&&f,oe=!d&&!_,de=`nc-align-${x}`,fe=!(m&&V)&&!!B,ie=(I,H,z=!1)=>{var Y;K(H),t==null||t(I),h(!1),N(""),z&&((Y=L.current)==null||Y.blur())},he=()=>{t==null||t(void 0),N(""),h(!1)},me=I=>{if(!m){(I.key==="ArrowDown"||I.key==="ArrowUp")&&(h(!0),I.preventDefault());return}const H=(z,Y)=>{if(Y===1){for(let F=z;F<G.length;F++)if(!G[F].disabled)return F;for(let F=0;F<z;F++)if(!G[F].disabled)return F}else{for(let F=z;F>=0;F--)if(!G[F].disabled)return F;for(let F=G.length-1;F>z;F--)if(!G[F].disabled)return F}return z};switch(I.key){case"ArrowDown":I.preventDefault(),$(z=>{const Y=z+1,F=Y>=G.length?0:Y;return H(F,1)});break;case"ArrowUp":I.preventDefault(),$(z=>{const Y=z-1,F=Y<0?G.length-1:Y;return H(F,-1)});break;case"Enter":I.preventDefault(),A>=0&&A<G.length&&!G[A].disabled&&ie(G[A].value,G[A].label,!0);break;case"Escape":I.preventDefault(),h(!1),N("");break}};return n.jsxs("div",{className:`nc-combo-container ${k==="transparent"?"nc-transparent":""} ${k==="plain"?"nc-plain":""} ${m?"nc-open":""} ${de} ${y||""}`.trim(),style:{position:"relative",...v},children:[p&&n.jsx("span",{className:`nc-label ${j?"nc-small":""}`,children:p}),n.jsxs("div",{ref:S,style:{position:"relative",display:"flex",alignItems:"center"},onMouseDown:I=>{if(d||V&&I.target===L.current)return;const H=!m;if(h(z=>(!z&&V&&B&&N(B.label),!z)),P&&H){const z=V&&B?B.label:"";E([]),setTimeout(()=>W(z,!0),0)}V&&!m&&setTimeout(()=>{var z,Y;(z=L.current)==null||z.focus(),(Y=L.current)==null||Y.select()},0)},children:[n.jsx("input",{ref:L,className:`nc-input ${j?"nc-small":""}`,placeholder:r,onFocus:()=>{if(!d&&V){h(!0);const I=B?B.label:"";B&&(N(I),setTimeout(()=>{var H;return(H=L.current)==null?void 0:H.select()},0)),P&&(E([]),W(I,!0))}},onChange:I=>{const H=I.target.value;V&&(N(H),P&&W(H))},onKeyDown:me,value:m&&V?g:(B==null?void 0:B.label)||"",readOnly:d||!V,style:{width:"100%",paddingRight:oe||_?j?32:44:12,caretColor:w?void 0:"transparent",cursor:w?void 0:"pointer",userSelect:w?void 0:"none",color:fe?"transparent":"var(--nc-text)"}}),fe&&n.jsx("div",{"aria-hidden":!0,className:`nc-combo-overlay ${de}`,style:{position:"absolute",left:j?8:12,right:oe||_?j?12:24:j?8:12,top:"50%",transform:"translateY(-50%)",pointerEvents:"none",display:"flex",alignItems:"center",gap:6},children:a&&B?a(B):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:`nc-combo-overlay-text ${j?"nc-small":""}`,children:B==null?void 0:B.label}),(B==null?void 0:B.default)&&n.jsxs("span",{className:`nc-combo-overlay-default ${j?"nc-small":""}`,children:["(",C("common.default"),")"]})]})}),_&&n.jsx(Nt,{onClick:he,small:j}),oe&&n.jsx(St,{open:m,small:j})]}),n.jsx(kt,{isOpen:m,options:G,onSelect:ie,selectedValue:e,placement:u,anchorRef:S,small:j,highlightedIndex:A,renderOption:i})]})}function Ct({onClick:e,loading:t=!1,disabled:r=!1,size:s="default",title:o,"aria-label":i}){const a=s==="small"?14:s==="large"?20:18,c=t?"Refreshing...":"Refresh",d=t?"Refreshing":"Refresh";return n.jsx("button",{className:"nc-icon-button",onClick:e,disabled:r||t,title:o??c,"aria-label":i??d,"data-size":s,children:n.jsx(X.RefreshIcon,{size:a,className:t?"nc-spinning":""})})}function Re({onClick:e,disabled:t=!1,size:r="default",title:s="Close","aria-label":o="Close"}){const i=r==="small"?14:r==="large"?20:18;return n.jsx("button",{className:"nc-icon-button nc-icon-button-close",onClick:e,disabled:t,title:s,"aria-label":o,"data-size":r,children:n.jsx(X.CloseIcon,{size:i})})}function Rt({onClick:e,disabled:t=!1,size:r="default",title:s="Edit","aria-label":o="Edit"}){const i=r==="small"?14:r==="large"?20:18;return n.jsx("button",{className:"nc-icon-button nc-icon-button-edit",onClick:e,disabled:t,title:s,"aria-label":o,"data-size":r,children:n.jsx(X.EditIcon,{size:i})})}function Mt({onClick:e,disabled:t=!1,size:r="default",title:s="Delete","aria-label":o="Delete"}){const i=r==="small"?14:r==="large"?20:18;return n.jsx("button",{className:"nc-icon-button nc-icon-button-trash",onClick:e,disabled:t,title:s,"aria-label":o,"data-size":r,children:n.jsx(X.TrashIcon,{size:i})})}function It({onClick:e,disabled:t=!1,children:r,title:s,"aria-label":o,size:i="default"}){return n.jsx("button",{className:"nc-hyperlink",onClick:e,disabled:t,title:s,"aria-label":o,"data-size":i,children:r})}function Et({open:e,onClose:t,options:r,anchorRef:s,anchor:o,preferredDirection:i="down"}){const a=l.useRef(null),[c,d]=l.useState({top:0,left:0}),p=o||(s==null?void 0:s.current);if(l.useEffect(()=>{if(!e||!p||!a.current)return;const u=p.getBoundingClientRect(),b=a.current.getBoundingClientRect(),k=window.innerHeight,x=window.innerWidth,v=u.bottom+8,y=v+b.height<=k-8;let m=i;(!y&&i==="down"||i==="up"&&y)&&(m="up");let h;m==="down"?h=v:h=u.top-b.height-8;let g=u.left;g+b.width>x-8&&(g=u.right-b.width),d({top:Math.max(8,h),left:Math.max(8,g)})},[e,p,i]),l.useEffect(()=>{if(!e)return;const u=k=>{a.current&&!a.current.contains(k.target)&&p&&!p.contains(k.target)&&t()},b=k=>{k.key==="Escape"&&t()};return document.addEventListener("mousedown",u),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",b)}},[e,t,p]),!e)return null;const f=u=>{u.type!=="separator"&&!u.disabled&&u.onClick&&(u.onClick(),t())},w=r.some(u=>u.icon);return ve.createPortal(n.jsx("div",{ref:a,className:"nc-context-menu",style:{position:"fixed",top:`${c.top}px`,left:`${c.left}px`,zIndex:1e4},role:"menu",children:r.map(u=>{if(u.type==="separator")return n.jsx("div",{className:"nc-context-menu-separator",role:"separator"},u.id);const b=["nc-context-menu-item",u.variant&&u.variant!=="default"?`nc-${u.variant}`:"",u.disabled?"nc-disabled":"",w&&!u.icon?"nc-indented":""].filter(Boolean).join(" ");return n.jsxs("button",{className:b,onClick:()=>f(u),disabled:u.disabled,role:"menuitem",children:[u.icon&&n.jsx("span",{className:"nc-context-menu-icon",children:u.icon}),n.jsx("span",{className:"nc-context-menu-label",children:u.label})]},u.id)})}),document.body)}const Ue=l.createContext(null);function qe(){const e=l.useContext(Ue);if(!e)throw new Error("useDialog must be used inside a Dialog component");return e}function ce({children:e,onClick:t,...r}){const{close:s}=qe(),{t:o}=te.useTranslation(),i=a=>{t==null||t(a),s()};return n.jsx(J,{onClick:i,...r,children:e??o("common.close")})}function $t({open:e,onClose:t,title:r,children:s,style:o,footerType:i="ok-cancel",footer:a,onOk:c,onSave:d,onDelete:p,onCancel:f,onConnect:w,closeOnOverlay:u=!0,primaryDisabled:b=!1,fullScreen:k=!1,hideTitleBar:x=!1,className:v="",onContentHeightChange:y}){const m=l.useRef(null),h=l.useRef(null),{t:g}=te.useTranslation(),N={close:t},A=S=>{u&&S.target===S.currentTarget&&t()};if(l.useEffect(()=>{e&&m.current&&m.current.focus()},[e]),l.useEffect(()=>{if(!y||!h.current)return;const S=new ResizeObserver(T=>{for(const j of T){const C=j.contentRect.height;y(C)}});return S.observe(h.current),()=>{S.disconnect()}},[y]),!e)return null;const $=()=>{switch(i){case"ok":return n.jsx("div",{className:"nc-dialog-footer",children:n.jsx(J,{variant:"primary",onClick:c??t,disabled:b,children:g("common.ok")})});case"ok-cancel":return n.jsxs("div",{className:"nc-dialog-footer",children:[n.jsx(ce,{onClick:f,children:g("common.cancel")}),n.jsx(J,{variant:"primary",onClick:c??t,disabled:b,children:g("common.ok")})]});case"save-cancel":return n.jsxs("div",{className:"nc-dialog-footer",children:[n.jsx(ce,{onClick:f,children:g("common.cancel")}),n.jsx(J,{variant:"primary",onClick:d,disabled:b,children:g("common.save")})]});case"delete-cancel":return n.jsxs("div",{className:"nc-dialog-footer",children:[n.jsx(ce,{onClick:f,children:g("common.cancel")}),n.jsx(J,{variant:"danger",onClick:p,disabled:b,children:g("common.delete")})]});case"connect":return n.jsxs("div",{className:"nc-dialog-footer",children:[n.jsx(ce,{onClick:f,children:g("common.cancel")}),n.jsx(J,{variant:"primary",onClick:w,disabled:b,children:g("common.connect")})]});case"close":return n.jsx("div",{className:"nc-dialog-footer",children:n.jsx(ce,{variant:"primary"})});case"gotit":return n.jsx("div",{className:"nc-dialog-footer",children:n.jsx(ce,{variant:"primary",children:g("common.gotit")})});case"custom":return n.jsx("div",{className:"nc-dialog-footer",children:a});case"none":return null;default:return null}},L=n.jsx(Ue.Provider,{value:N,children:n.jsx("div",{className:`nc-dialog-overlay${k?" nc-fullscreen":""}`,onClick:A,children:n.jsxs("div",{ref:m,className:`nc-dialog-container ${v}`,style:o,tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":x?void 0:"nc-dialog-title",children:[!x&&n.jsxs("div",{className:"nc-dialog-header",children:[n.jsx("h3",{id:"nc-dialog-title",className:"nc-dialog-title",children:r}),n.jsx(Re,{onClick:t,"aria-label":"Close dialog"})]}),n.jsx("div",{ref:h,className:"nc-dialog-content",children:s}),$()]})})});return k?ve.createPortal(L,document.body):L}function Tt({onClick:e,size:t="default",rightOffset:r=4}){const s=t==="small"?28:34;return n.jsx("button",{className:"nc-button nc-ghost",onClick:e,onMouseDown:o=>{o.preventDefault(),o.stopPropagation()},tabIndex:-1,"aria-label":"Clear input",style:{position:"absolute",right:r,padding:0,minHeight:0,height:s,width:s,border:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:t==="small"?"12px":"14px"},children:"✕"})}function Pt({visible:e,onClick:t,size:r="default"}){const s=r==="small"?28:34,o=r==="small"?16:18;return n.jsx("button",{className:"nc-button nc-ghost",onClick:t,onMouseDown:i=>{i.preventDefault(),i.stopPropagation()},tabIndex:-1,"aria-label":e?"Hide password":"Show password",style:{position:"absolute",right:4,padding:0,minHeight:0,height:s,width:s,border:"none",display:"flex",alignItems:"center",justifyContent:"center"},children:e?n.jsx(X.EyeHiddenIcon,{size:o}):n.jsx(X.ViewIcon,{size:o})})}function Lt({value:e,defaultValue:t="",onChange:r,onChangeConfirmed:s,onEnter:o,onClear:i,placeholder:a,disabled:c,label:d,clearable:p=!0,type:f="text",className:w="",size:u="default",appearance:b="default",style:k,leadingIcon:x,showPasswordToggle:v=!1,multiline:y=!1,rows:m=3,validator:h,showErrorMessage:g=!0}){const N=l.useRef(null),A=l.useRef(null),$=l.useRef(!1),[L,S]=l.useState(!1),[T,j]=l.useState(!1),[C,P]=l.useState(!1),V=e!==void 0,[M,E]=l.useState(t),D=V?e:M,[K,W]=l.useState(D),G=h?h(D):null,B=!!G,_=!y&&b==="plain",oe=_&&T,de=oe?K:D;l.useEffect(()=>{oe||W(D)},[D,oe]);const fe=f==="password",ie=fe&&v&&!c&&!y,he=p&&de&&!c&&(T||C),me=u==="small"?32:44;let I=12;he&&ie?I=me*2:(he||ie)&&(I=me);const z=x?u==="small"?28:34:void 0,Y=()=>{if(!_)return D;const U=K!==D;return V||E(K),U&&(r==null||r(K),s==null||s(K)),K},F=()=>{W(D)},ut=()=>{var U,Z,We;if(_){W(""),i==null||i(),(U=N.current)==null||U.focus();return}V||E(""),r==null||r(""),i==null||i(),y?(Z=A.current)==null||Z.focus():(We=N.current)==null||We.focus()},Le=U=>{if(_&&U.key==="Escape"){U.preventDefault(),$.current=!0,F(),U.currentTarget.blur();return}if(U.key==="Enter"&&!y){const Z=_?Y():D;_&&(U.preventDefault(),$.current=!0,U.currentTarget.blur()),o==null||o(Z)}},Be=U=>{const Z=U.target.value;if(_){W(Z),r==null||r(Z);return}V||E(Z),r==null||r(Z)},ze=()=>{j(!0),_&&W(D)},De=()=>{if(_&&$.current){$.current=!1,j(!1);return}_&&Y(),j(!1)},Ve=`nc-input ${u==="small"?"nc-small ":""}${!y&&b==="plain"?"nc-plain ":""}${B?"nc-error ":""}${w}`;return n.jsxs("div",{className:"nc-col",style:{position:"relative",flex:1,...k},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:[d&&n.jsx("span",{className:"nc-label",children:d}),n.jsxs("div",{style:{position:"relative",display:"flex",alignItems:y?"flex-start":"center"},children:[x&&n.jsx("span",{className:"nc-input-leading-icon",style:{height:y?void 0:"100%",top:y?10:void 0},children:x}),y?n.jsx("textarea",{ref:A,className:Ve,placeholder:a,value:de,onChange:Be,onKeyDown:Le,onFocus:ze,onBlur:De,readOnly:c,"aria-disabled":c,tabIndex:c?-1:void 0,rows:m,style:{width:"100%",paddingRight:I,...z!==void 0?{paddingLeft:z}:{}}}):n.jsx("input",{ref:N,type:fe&&L?"text":f,className:Ve,placeholder:a,value:de,onChange:Be,onKeyDown:Le,onFocus:ze,onBlur:De,readOnly:c,"aria-disabled":c,tabIndex:c?-1:void 0,style:{width:"100%",paddingRight:I,...z!==void 0?{paddingLeft:z}:{}}}),he&&n.jsx(Tt,{onClick:ut,size:u,rightOffset:ie?me+4:4}),ie&&n.jsx(Pt,{visible:L,onClick:()=>S(!L),size:u})]}),B&&g&&n.jsx("span",{className:"nc-error-message",children:G})]})}function Bt({children:e,onClick:t,showBorder:r=!0,selectable:s=!1,style:o}){const[i,a]=l.useState(!1),c=d=>{if(t){if(s){const p=window.getSelection();if(p&&p.toString().length>0)return}t(d)}};return n.jsx("div",{onClick:c,onMouseDown:()=>t&&a(!0),onMouseUp:()=>a(!1),onMouseLeave:()=>a(!1),style:{cursor:t?"pointer":"default",userSelect:s?"text":void 0,borderBottom:r?void 0:"none",...o},className:`nc-list-group-item ${t?"nc-list-group-item-clickable":""} ${i?"nc-list-group-item-active":""}`,children:n.jsx("div",{style:{flex:1},children:e})})}function zt({title:e,titleTools:t,children:r,style:s}){return n.jsxs("div",{className:"nc-list-group",style:s,children:[(e||t)&&n.jsxs("div",{className:"nc-list-group-title",children:[n.jsx("div",{children:e}),t&&n.jsx("div",{className:"nc-list-group-title-tools",children:t})]}),n.jsx("div",{className:"nc-list-group-content",children:r})]})}function Dt({values:e,onChange:t,options:r,placeholder:s="Select…",label:o}){const[i,a]=l.useState(!1),[c,d]=l.useState(""),p=l.useRef(null),f=l.useMemo(()=>r.filter(u=>u.label.toLowerCase().includes(c.toLowerCase())),[r,c]);l.useEffect(()=>{function u(b){!(b.target instanceof Node)||!p.current||p.current.contains(b.target)||a(!1)}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const w=u=>{e.includes(u)?t(e.filter(b=>b!==u)):t([...e,u])};return n.jsxs("div",{ref:p,className:"nc-col",style:{position:"relative"},children:[o&&n.jsx("span",{className:"nc-label",children:o}),n.jsxs("div",{className:"nc-row",style:{flexWrap:"wrap",gap:6,minHeight:42,alignItems:"center",border:"1px solid var(--nc-button-border)",borderRadius:8,background:"var(--nc-button-bg)",padding:"4px 8px"},children:[e.length===0&&n.jsx("span",{className:"nc-label",children:s}),e.map(u=>{const b=r.find(k=>k.value===u);return b?n.jsxs("span",{style:{padding:"4px 8px",borderRadius:6,display:"inline-flex",alignItems:"center",gap:4,background:"var(--nc-button-bg)",border:"1px solid var(--nc-button-border)"},children:[b.label,n.jsx("button",{className:"nc-button nc-ghost",style:{padding:0,minHeight:0,height:20,width:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"none"},onClick:()=>w(u),"aria-label":`Remove ${b.label}`,children:"✕"})]},u):null}),n.jsx("input",{className:"nc-input",value:c,onChange:u=>d(u.target.value),onFocus:()=>a(!0),style:{minWidth:50,border:"none",background:"transparent",padding:4,minHeight:32,flex:1}})]}),i&&n.jsxs("div",{className:"nc-combo-dropdown",style:{position:"absolute",top:"100%",left:0,right:0,zIndex:10,marginTop:4,boxShadow:"0 4px 12px var(--nc-shadow)"},children:[f.map(u=>{const b=e.includes(u.value);return n.jsxs("div",{className:"nc-section nc-row",style:{justifyContent:"space-between",cursor:"pointer",padding:12},onMouseDown:()=>w(u.value),children:[n.jsx("span",{children:u.label}),n.jsx("span",{children:b?"✔️":""})]},u.value)}),f.length===0&&n.jsx("div",{className:"nc-section nc-label",children:"No results"})]})]})}function we(e){if(!e)return null;const t=/^\d{2}-\d{1,2}$/,r=/^\d{4}-\d{1,2}$/;if(!t.test(e)&&!r.test(e))return"Format must be YY-M(M) or YYYY-M(M)";const s=e.split("-"),o=parseInt(s[1],10);return o<1||o>12?"Month must be between 1 and 12":null}function xe(e){if(!e)return"";const t=e.split("-");if(t.length!==2)return e;let r=t[0];const s=t[1].padStart(2,"0");if(r.length===2){const o=parseInt(r,10);r=String(o<50?2e3+o:1900+o)}return`${r}-${s}`}function He(e){if(!e)return"";const t=xe(e);if(!/^\d{4}-\d{2}$/.test(t))return e;const[r,s]=t.split("-");return`${r}/${s}`}function Fe(){const e=new Date,t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0");return`${t}-${r}`}function Vt({startMonth:e,endMonth:t,onChange:r,label:s,className:o="",disabled:i=!1,size:a="default"}){const[c,d]=l.useState(!1),[p,f]=l.useState(""),[w,u]=l.useState(""),[b,k]=l.useState({top:0,left:0,width:0,right:void 0}),x=l.useRef(null),v=l.useRef(null);l.useEffect(()=>{if(c&&x.current){const j=x.current.getBoundingClientRect(),P=Math.max(j.width,400);window.innerWidth-j.left<P&&j.right>=P?k({top:j.bottom+4,left:0,right:window.innerWidth-j.right,width:P}):k({top:j.bottom+4,left:j.left,right:void 0,width:P})}},[c]),l.useEffect(()=>{if(!c)return;const j=C=>{x.current&&!x.current.contains(C.target)&&v.current&&!v.current.contains(C.target)&&d(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[c]);const y=()=>{f(e||Fe()),u(t||Fe()),d(!0)},m=()=>{d(!1)},h=()=>{const j=we(p),C=we(w);if(j||C)return;const P=xe(p),V=xe(w);P&&V&&(r==null||r(P,V)),d(!1)},g=e&&t?`${He(e)} - ${He(t)}`:"Select month range",N=we(p),A=we(w),$=xe(p),L=xe(w),S=$&&L&&$>L,T=c?ve.createPortal(n.jsx("div",{ref:v,className:"nc-month-range-picker-popup",style:{position:"fixed",top:b.top,...b.right!==void 0?{right:b.right}:{left:b.left},width:b.width,zIndex:1e3},children:n.jsxs("div",{className:"nc-month-range-picker-content",children:[n.jsxs("div",{className:"nc-month-range-picker-row",children:[n.jsxs("div",{className:"nc-month-range-picker-column",children:[n.jsx("label",{className:"nc-label",children:"Start Month"}),n.jsx("input",{type:"text",className:`nc-month-input ${N?"nc-error":""}`,value:p,onChange:j=>f(j.target.value),placeholder:"YY-M(M) or YYYY-M(M)"}),N&&n.jsx("div",{className:"nc-month-error-text",children:N})]}),n.jsxs("div",{className:"nc-month-range-picker-column",children:[n.jsx("label",{className:"nc-label",children:"End Month"}),n.jsx("input",{type:"text",className:`nc-month-input ${A?"nc-error":""}`,value:w,onChange:j=>u(j.target.value),placeholder:"YY-M(M) or YYYY-M(M)"}),A&&n.jsx("div",{className:"nc-month-error-text",children:A})]})]}),S&&!N&&!A&&n.jsx("div",{className:"nc-month-range-error",children:"End month must be after or equal to start month"}),n.jsxs("div",{className:"nc-month-range-picker-footer",children:[n.jsx(J,{variant:"primary",onClick:h,disabled:!p||!w||!!N||!!A||!!S,children:"Apply"}),n.jsx(J,{variant:"ghost",onClick:m,children:"Cancel"})]})]})}),document.body):null;return n.jsxs("div",{className:`nc-month-range-picker ${a==="small"?"nc-small ":""}${o}`,children:[s&&n.jsx("label",{className:`nc-label${a==="small"?" nc-small":""}`,children:s}),n.jsx("button",{ref:x,className:`nc-month-range-picker-input${a==="small"?" nc-small":""}`,onClick:y,disabled:i,children:g}),T]})}const Wt=5,Ht=3;function Ft({value:e,onChange:t,min:r,max:s,step:o=1,label:i,disabled:a,className:c="",style:d,size:p="default"}){const f=p==="small",w=(String(o).split(".")[1]||"").length,u=l.useRef(null),b=l.useRef(!1),k=l.useRef(null),[x,v]=l.useState(!1),[y,m]=l.useState(()=>String(e)),h=M=>parseFloat(M.toFixed(w)),g=M=>{const E=h(M);m(String(E)),t(E)},N=()=>{const M=e-o;r!==void 0&&M<r||g(parseFloat(M.toFixed(10)))},A=()=>{const M=e+o;s!==void 0&&M>s||g(parseFloat(M.toFixed(10)))},$=M=>{const E=M.target.value;if(m(E),E==="")return;const D=parseFloat(E);isNaN(D)||t(D)},L=()=>{const M=y;if(M===""){g(r!==void 0?r:0);return}const E=parseFloat(M);if(isNaN(E)){g(r!==void 0?r:0);return}let D=h(E);r!==void 0&&(D=Math.max(r,D)),s!==void 0&&(D=Math.min(s,D)),D!==E?g(D):m(String(D))},S=M=>{a||M.button!==0||(b.current=!1,u.current={startY:M.clientY,startValue:e,pointerId:M.pointerId,hasMoved:!1,lastValue:e},k.current=setTimeout(()=>{b.current=!0,v(!0)},200),M.currentTarget.setPointerCapture(M.pointerId))},T=M=>{const E=u.current;if(!E||E.pointerId!==M.pointerId)return;const D=E.startY-M.clientY;if(Math.abs(D)>=Ht&&(E.hasMoved=!0,b.current=!0,k.current&&(clearTimeout(k.current),k.current=null),v(!0)),!E.hasMoved)return;const K=Math.trunc(D/Wt);let W=E.startValue+K*o;r!==void 0&&(W=Math.max(r,W)),s!==void 0&&(W=Math.min(s,W)),W=h(W),W!==E.lastValue&&(E.lastValue=W,m(String(W)),t(W))},j=M=>{const E=u.current;!E||E.pointerId!==M.pointerId||(k.current&&(clearTimeout(k.current),k.current=null),M.currentTarget.hasPointerCapture(M.pointerId)&&M.currentTarget.releasePointerCapture(M.pointerId),u.current=null,v(!1))},C=M=>E=>{if(b.current){b.current=!1,E.preventDefault();return}M()},P=y===""?NaN:parseFloat(y),V=y===""||isNaN(P)||r!==void 0&&P<r||s!==void 0&&P>s;return n.jsxs("div",{className:`nc-col nc-number-input-col ${f?"nc-small":""}`,children:[i&&n.jsx("span",{className:`nc-label ${f?"nc-small":""}`,children:i}),n.jsxs("div",{className:`nc-number-input-container ${f?"nc-small":""} ${c}`,style:d,children:[n.jsx("input",{className:`nc-input nc-number-input ${f?"nc-small":""} ${V?"nc-error":""}`,type:"number",value:y,onChange:$,onBlur:L,min:r,max:s,step:o,disabled:a}),n.jsxs("div",{className:`nc-number-input-spinners ${f?"nc-small":""} ${a?"nc-disabled":""} ${x?"nc-dragging":""}`,children:[n.jsx("button",{className:`nc-number-input-spin nc-number-input-spin-up ${f?"nc-small":""}`,onClick:C(A),onPointerDown:S,onPointerMove:T,onPointerUp:j,onPointerCancel:j,disabled:a||s!==void 0&&e>=s,tabIndex:-1,children:"▲"}),n.jsx("button",{className:`nc-number-input-spin nc-number-input-spin-down ${f?"nc-small":""}`,onClick:C(N),onPointerDown:S,onPointerMove:T,onPointerUp:j,onPointerCancel:j,disabled:a||r!==void 0&&e<=r,tabIndex:-1,children:"▼"})]})]})]})}function Ot({value:e,onChange:t,min:r=0,max:s=100,step:o=1,label:i,disabled:a,showValue:c=!0,formatValue:d=f=>f.toString(),width:p=200}){const f=u=>{const b=parseFloat(u.target.value);t(b)},w=(e-r)/(s-r)*100;return n.jsxs("div",{className:"nc-col",style:{gap:6},children:[i&&n.jsx("span",{className:"nc-label",children:i}),n.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[n.jsx("input",{type:"range",className:"nc-slider",value:e,onChange:f,min:r,max:s,step:o,disabled:a,style:{width:p,"--nc-slider-percentage":`${w}%`}}),c&&n.jsx("span",{style:{color:"var(--nc-text)",fontFamily:"monospace",fontSize:14,minWidth:60,textAlign:"right"},children:d(e)})]})]})}const Gt=({size:e=24,className:t,style:r})=>n.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:t,style:r,children:n.jsx("polyline",{points:"18 15 12 9 6 15"})});function Xe({children:e,className:t="",style:r}){return n.jsx("div",{className:`nc-tab-panel ${t}`,style:r,children:e})}function Yt({active:e,children:t,keepMounted:r=!1,className:s="",style:o}){const i=l.Children.toArray(t).filter(c=>l.isValidElement(c)&&(c.type===Xe||c.type.displayName==="TabPanel"));if(r)return n.jsx("div",{className:`nc-tab-panels ${s}`,style:o,children:i.map(c=>{const d=c.props.tab===e;return n.jsx("div",{className:`nc-tab-panel-wrapper ${d?"nc-active":""}`,style:{display:d?void 0:"none"},"aria-hidden":!d,children:c},c.props.tab)})});const a=i.find(c=>c.props.tab===e);return n.jsx("div",{className:`nc-tab-panels ${s}`,style:o,children:a})}function Kt({tabs:e,active:t,onChange:r,onClose:s,permanentTabs:o,className:i,toolbar:a,multiline:c,orientation:d="horizontal",style:p}){const f=l.useRef(null),[w,u]=l.useState(!1),[b,k]=l.useState(!1),x=d==="verticalLeft"||d==="verticalRight",v=l.useRef(!1),y=l.useRef(0),m=l.useRef(0),h=l.useRef(!1);l.useEffect(()=>{const S=()=>{if(f.current)if(x){const{scrollTop:j,scrollHeight:C,clientHeight:P}=f.current;u(j>1),k(j<C-P-1)}else{const{scrollLeft:j,scrollWidth:C,clientWidth:P}=f.current;u(j>1),k(j<C-P-1)}},T=f.current;if(T)return S(),T.addEventListener("scroll",S),window.addEventListener("resize",S),()=>{T.removeEventListener("scroll",S),window.removeEventListener("resize",S)}},[e,x]);const g=S=>{f.current&&(v.current=!0,h.current=!1,y.current=x?S.clientY:S.clientX,m.current=x?f.current.scrollTop:f.current.scrollLeft,f.current.style.cursor="grabbing",f.current.style.userSelect="none")},N=S=>{if(!v.current||!f.current)return;const T=x?S.clientY:S.clientX,j=y.current-T;Math.abs(j)>3&&(h.current=!0),x?f.current.scrollTop=m.current+j:f.current.scrollLeft=m.current+j},A=()=>{f.current&&(v.current=!1,f.current.style.cursor="",f.current.style.userSelect="")},$=()=>{A()};l.useEffect(()=>{const S=f.current;if(!S||x)return;const T=j=>{j.deltaY!==0&&(j.preventDefault(),S.scrollLeft+=j.deltaY*.3)};return S.addEventListener("wheel",T,{passive:!1}),()=>{S.removeEventListener("wheel",T)}},[x]);const L=S=>{h.current||r(S)};return n.jsxs("div",{className:`nc-tab-container ${x?`nc-vertical nc-${d}`:""} ${i||""}`,style:p,children:[n.jsxs("div",{className:"nc-tab-scroll-wrapper",children:[w&&n.jsx("div",{className:`nc-tab-scroll-indicator ${x?"nc-top":"nc-left"}`,children:x?n.jsx(Gt,{size:16}):n.jsx(X.ChevronLeftIcon,{size:16})}),n.jsx("div",{ref:f,className:`nc-tab-scroll ${c?"nc-multiline":""}`,onMouseDown:g,onMouseMove:N,onMouseUp:A,onMouseLeave:$,style:{cursor:"grab"},children:e.map(S=>{const T=typeof S=="string"?S:S.id,j=typeof S=="string"?S:S.label,C=s&&!(o!=null&&o.includes(T));return n.jsxs("div",{className:`nc-tab-item ${t===T?"nc-active":""} ${C?"nc-closable":""}`,onClick:()=>L(T),role:"button",tabIndex:0,onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&r(T)},children:[n.jsx("span",{className:"nc-tab-label",children:x?j:typeof j=="string"?j.toUpperCase():j}),C&&n.jsx("span",{className:"nc-tab-close",role:"button",tabIndex:0,"aria-label":`Close ${typeof j=="string"?j:T}`,onClick:P=>{P.stopPropagation(),s(T)},onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&(P.stopPropagation(),s(T))},children:n.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},T)})}),b&&n.jsx("div",{className:`nc-tab-scroll-indicator ${x?"nc-bottom":"nc-right"}`,children:x?n.jsx(X.ChevronDownIcon,{size:16}):n.jsx(X.ChevronRightIcon,{size:16})})]}),a&&n.jsx("div",{className:"nc-tab-toolbar",children:a})]})}function _t({checked:e,onChange:t,disabled:r,label:s}){return n.jsxs("label",{className:"nc-row",style:{gap:10,alignItems:"center",cursor:r?"not-allowed":"pointer"},children:[s&&n.jsx("span",{className:"nc-label",children:s}),n.jsx("span",{role:"switch","aria-checked":e,tabIndex:0,onKeyDown:o=>{r||(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),t(!e))},onClick:()=>!r&&t(!e),style:{position:"relative",width:56,height:30,borderRadius:18,padding:4,display:"inline-flex",alignItems:"center",justifyContent:"flex-start",border:`2px solid ${e?"var(--nc-primary)":"var(--nc-button-border)"}`,background:e?"rgba(99,102,241,0.08)":"transparent",transition:"border-color 160ms, background 160ms"},children:n.jsx("span",{style:{width:22,height:22,borderRadius:12,background:e?"var(--nc-text)":"var(--nc-muted)",transform:`translateX(${e?24:0}px)`,transition:"transform 160ms, background 160ms",boxShadow:e?"0 2px 6px rgba(99,102,241,0.28)":"0 1px 2px rgba(0,0,0,0.08)",border:"none"}})})]})}const Oe=["var(--nc-csv-col-0)","var(--nc-csv-col-1)","var(--nc-csv-col-2)","var(--nc-csv-col-3)","var(--nc-csv-col-4)","var(--nc-csv-col-5)","var(--nc-csv-col-6)","var(--nc-csv-col-7)","var(--nc-csv-col-8)","var(--nc-csv-col-9)"];function Ut(e,t){const s=e.slice(0,t).split(`
1
+ "use strict";var pt=Object.defineProperty;var ft=(e,t,r)=>t in e?pt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ne=(e,t,r)=>ft(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),X=require("./GeneratedIcons-DGITx4_M.cjs"),l=require("react"),ve=require("react-dom"),te=require("react-i18next"),ht=require("i18next"),mt=require("./clsx-C11secjj.cjs");function Ce({size:e="default",color:t,overlay:r=!1,className:s=""}){const o=n.jsx("svg",{className:`nc-activity-indicator nc-${e} ${s}`,viewBox:"0 0 50 50",style:t?{color:t}:void 0,children:n.jsx("circle",{className:"nc-activity-indicator-circle",cx:"25",cy:"25",r:"20",fill:"none",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})});return r?n.jsx("div",{className:"nc-activity-indicator-overlay",children:o}):o}function J({variant:e="default",block:t,size:r="default",appearance:s="default",className:o,disabled:i,textSelectable:a,loading:c,onClick:d,children:p,...f}){const w=["nc-button",e!=="default"?`nc-${e}`:"",t?"nc-block":"",r==="small"?"nc-small":"",r==="large"?"nc-large":"",s==="transparent"?"nc-transparent":"",i||c?"nc-disabled":"",a?"nc-text-selectable":"",c?"nc-loading":"",o??""].filter(Boolean).join(" "),u=b=>{if(!c){if(a){const k=window.getSelection();if(k&&k.toString().length>0)return}d==null||d(b)}};return n.jsxs("button",{className:w,disabled:i||c,onClick:u,...f,children:[c&&n.jsx(Ce,{size:"small",className:"nc-button-spinner",color:s==="transparent"||e!=="default"&&e!=="ghost"?"white":void 0}),p]})}const gt={info:"primary",success:"success",warning:"warning",error:"danger",danger:"danger"};function bt({code:e,text:t,type:r,button:s,onAction:o,children:i,onClose:a,className:c="",style:d}){const p=i??n.jsxs(n.Fragment,{children:[e!==void 0&&n.jsx("span",{className:"nc-alert-code",children:e}),t]});return n.jsxs("div",{className:`nc-alert nc-${r} ${c}`.trim(),style:d,children:[n.jsxs("div",{className:"nc-alert-main",children:[n.jsx("div",{className:`nc-alert-message nc-${r}`,children:p}),a&&n.jsx("button",{type:"button",className:"nc-alert-close","aria-label":"Close alert",onClick:a,children:n.jsx(X.CloseIcon,{size:16})})]}),s&&n.jsx("span",{className:"nc-alert-action",children:n.jsx(J,{size:"small",variant:s.variant??gt[r],onClick:o,children:s.text})})]})}function xt({percentage:e=.5,status:t="discharging",darkMode:r=!1,colored:s=!1}){const o=Math.max(0,Math.min(1,Number(e)||0)),i=o===0?"-":String(Math.round(o*100));let a;s?o<.1?a="var(--nc-danger)":o<.2?a="var(--nc-warning)":a="var(--nc-success)":a=r?"rgba(255,255,255,0.35)":"#000000";const c="var(--nc-battery-shell-bg)",d=24,p=14,f=2,w=0,u=12,b=0,k=0,x=0,v=d,y=p,m=y-b*2,h=v-b*2,g=Math.max(1,Math.min(4,y/4)),N=o===0?0:.05+o*.95,A=d+f+u,$=20,L=.65,S=Math.max(p,$*L),T=d+f+1,j=(p-$*L)/2;return n.jsxs("svg",{className:"nc-battery",width:A,height:S,viewBox:`0 0 ${A} ${S}`,role:"img","aria-label":`Battery ${i==="-"?"-":`${i}%`} ${t}`,children:[n.jsx("defs",{children:n.jsx("mask",{id:`nc-battery-fill-mask-${o}`,children:n.jsx("rect",{x:"0",y:"0",width:h*N,height:m,fill:"white"})})}),n.jsx("rect",{x:k,y:x,rx:g,ry:g,width:v,height:y,fill:c}),n.jsx("rect",{x:k+b,y:x+b,width:h,height:m,fill:a,rx:g,ry:g,mask:`url(#nc-battery-fill-mask-${o})`}),n.jsx("text",{x:k+v/2,y:p-3,fontSize:11,fontWeight:"bold",fill:"var(--nc-battery-text-contrast)",textAnchor:"middle",children:i}),n.jsx("rect",{x:d+w,y:p*.26,width:f,height:p*.48,rx:.8,ry:.8,fill:o===1?a:c}),t==="charging"?n.jsx("g",{transform:`translate(${T}, ${j}) scale(${L})`,fill:a,children:n.jsx("path",{d:"M10 0 L2 11 H8 L5 20 L14 8 H8 L10 0 Z"})}):null]})}function vt({value:e,onChange:t,options:r,disabled:s,size:o="default"}){return n.jsx("div",{className:`nc-button-group ${o==="small"?"nc-small":o==="tiny"?"nc-tiny":""}`,children:r.map(i=>{const a=s||!!i.disabled;return n.jsx("button",{type:"button",className:`nc-button-group-item ${e===i.key?"nc-active":""}`,onClick:()=>!a&&t(i.key),disabled:a,children:i.label},i.key)})})}function wt({size:e}){return n.jsx("svg",{className:`nc-checkbox-icon ${e==="small"?"nc-small":e==="tiny"?"nc-tiny":""}`,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M2 6L5 9L10 3",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function yt({checked:e,onChange:t,disabled:r,label:s,size:o="default",labelColor:i,style:a,className:c=""}){const d=o==="small",p=o==="tiny";return n.jsxs("label",{className:`nc-checkbox-label ${d?"nc-small":""} ${p?"nc-tiny":""} ${r?"nc-disabled":""} ${c}`.trim(),style:a,onClick:f=>{r||(f.preventDefault(),t(!e))},children:[n.jsx("span",{role:"checkbox","aria-checked":e,tabIndex:0,className:`nc-checkbox-box ${d?"nc-small":""} ${p?"nc-tiny":""} ${e?"nc-checked":""}`,onKeyDown:f=>{r||(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),t(!e))},children:e&&n.jsx(wt,{size:o})}),s&&n.jsx("span",{className:"nc-checkbox-text",style:i?{color:i}:void 0,children:s})]})}function jt({option:e,onChange:t,selected:r,highlighted:s,small:o,renderOption:i,index:a}){const c=l.useRef(null),{t:d}=te.useTranslation(),p=e.disabled===!0;return l.useEffect(()=>{s&&c.current&&c.current.scrollIntoView({block:"nearest"})},[s]),n.jsx("div",{ref:c,className:`nc-combo-dropdown-option ${o?"nc-small":""} ${s?"nc-highlighted":""} ${p?"nc-disabled":""}`,role:"option",onClick:()=>{p||t(e.value,e.label)},"aria-selected":r,"aria-disabled":p,style:{cursor:p?"default":"pointer",opacity:p?.4:void 0,background:s&&!p?"rgba(59,130,246,0.18)":r&&!p?"rgba(59,130,246,0.12)":void 0},children:i?i(e,a,!!s):n.jsxs(n.Fragment,{children:[e.label,e.default&&n.jsxs("span",{style:{fontSize:"0.85em",color:"var(--nc-text-weak)",marginLeft:6},children:["(",d("common.default"),")"]})]})})}function kt({isOpen:e,options:t,onSelect:r,selectedValue:s,placement:o="bottom",anchorRef:i,small:a,highlightedIndex:c=-1,renderOption:d}){const[p,f]=l.useState({top:0,left:0,width:0}),[w,u]=l.useState(o),{t:b}=te.useTranslation();if(l.useEffect(()=>{if(e&&i.current){const x=i.current.getBoundingClientRect();let v=o;if(o==="bottom"){const y=window.innerHeight-x.bottom,m=x.top;y<320&&m>y&&(v="top")}u(v),f({top:v==="top"?x.top-4:x.bottom+4,left:x.left,width:x.width})}},[e,i,o]),!e)return null;const k=n.jsx("div",{className:"nc-combo-dropdown",onMouseDown:x=>x.stopPropagation(),style:{position:"fixed",top:w==="top"?void 0:p.top,bottom:w==="top"?window.innerHeight-p.top:void 0,left:p.left,width:p.width,zIndex:1e3,maxHeight:300,overflowY:"auto"},children:t.length===0?n.jsx("div",{className:`nc-combo-dropdown-option nc-no-results ${a?"nc-small":""}`,children:b("common.noResults")}):t.map((x,v)=>n.jsx(jt,{option:x,onChange:r,selected:x.value===s,highlighted:v===c,small:a,renderOption:d,index:v},x.value))});return ve.createPortal(k,document.body)}function Nt({onClick:e,small:t}){return n.jsx("span",{role:"button",tabIndex:0,className:`nc-combo-button nc-combo-clear ${t?"nc-small":""}`,onClick:r=>{r.stopPropagation(),e()},onMouseDown:r=>r.stopPropagation(),onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation(),e())},"aria-label":"Clear selection",children:"✕"})}function St({open:e,small:t}){return n.jsx("span",{"aria-hidden":!0,className:`nc-combo-button nc-combo-toggle ${t?"nc-small":""} ${e?"nc-open":""}`,children:"▾"})}function At({value:e,onChange:t,placeholder:r="Select…",options:s,candidates:o,renderOption:i,renderSelected:a,selectedOption:c,disabled:d,label:p,clearable:f=!0,allowTyping:w=!1,placement:u="bottom",size:b="default",appearance:k="default",textAlign:x="left",style:v,className:y}){const[m,h]=l.useState(!1),[g,N]=l.useState(""),[A,$]=l.useState(-1),L=l.useRef(null),S=l.useRef(null),T=l.useRef(null),j=b==="small",{t:C}=te.useTranslation(),P=!!o,V=w||P,[M,E]=l.useState([]),[D,K]=l.useState(()=>{if(s&&e){const I=s.find(H=>H.value===e);return I?I.label:""}return o&&e?e:""});l.useEffect(()=>{if(!e){K("");return}if(s){const I=s.find(H=>H.value===e);I&&K(I.label)}else o&&K(e)},[e,s,o]);const W=(I,H=!1)=>{if(!o)return;T.current&&clearTimeout(T.current);const z=async()=>{try{const Y=await o(I);E(Y),$(-1)}catch{E([])}};H?z():T.current=setTimeout(z,200)},G=l.useMemo(()=>{if(P)return M;const I=g.toLowerCase();return V?(s||[]).filter(H=>H.label.toLowerCase().includes(I)):s||[]},[s,g,V,P,M]);l.useEffect(()=>{m&&$(-1)},[m,G]),l.useEffect(()=>{if(!f&&!e&&s&&s.length>0&&t){const I=s.find(H=>H.default)||s[0];t(I.value)}},[f,e,s,t]),l.useEffect(()=>{function I(H){var z;H.target instanceof Node&&L.current&&((z=L.current.parentElement)!=null&&z.contains(H.target)||h(!1))}return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[]);const B=c??(s?s.find(I=>I.value===e):e?{label:D,value:e}:void 0),_=B&&f,oe=!d&&!_,de=`nc-align-${x}`,fe=!(m&&V)&&!!B,ie=(I,H,z=!1)=>{var Y;K(H),t==null||t(I),h(!1),N(""),z&&((Y=L.current)==null||Y.blur())},he=()=>{t==null||t(void 0),N(""),h(!1)},me=I=>{if(!m){(I.key==="ArrowDown"||I.key==="ArrowUp")&&(h(!0),I.preventDefault());return}const H=(z,Y)=>{if(Y===1){for(let F=z;F<G.length;F++)if(!G[F].disabled)return F;for(let F=0;F<z;F++)if(!G[F].disabled)return F}else{for(let F=z;F>=0;F--)if(!G[F].disabled)return F;for(let F=G.length-1;F>z;F--)if(!G[F].disabled)return F}return z};switch(I.key){case"ArrowDown":I.preventDefault(),$(z=>{const Y=z+1,F=Y>=G.length?0:Y;return H(F,1)});break;case"ArrowUp":I.preventDefault(),$(z=>{const Y=z-1,F=Y<0?G.length-1:Y;return H(F,-1)});break;case"Enter":I.preventDefault(),A>=0&&A<G.length&&!G[A].disabled&&ie(G[A].value,G[A].label,!0);break;case"Escape":I.preventDefault(),h(!1),N("");break}};return n.jsxs("div",{className:`nc-combo-container ${k==="transparent"?"nc-transparent":""} ${k==="plain"?"nc-plain":""} ${m?"nc-open":""} ${de} ${y||""}`.trim(),style:{position:"relative",...v},children:[p&&n.jsx("span",{className:`nc-label ${j?"nc-small":""}`,children:p}),n.jsxs("div",{ref:S,style:{position:"relative",display:"flex",alignItems:"center"},onMouseDown:I=>{if(d||V&&I.target===L.current)return;const H=!m;if(h(z=>(!z&&V&&B&&N(B.label),!z)),P&&H){const z=V&&B?B.label:"";E([]),setTimeout(()=>W(z,!0),0)}V&&!m&&setTimeout(()=>{var z,Y;(z=L.current)==null||z.focus(),(Y=L.current)==null||Y.select()},0)},children:[n.jsx("input",{ref:L,className:`nc-input ${j?"nc-small":""}`,placeholder:r,onFocus:()=>{if(!d&&V){h(!0);const I=B?B.label:"";B&&(N(I),setTimeout(()=>{var H;return(H=L.current)==null?void 0:H.select()},0)),P&&(E([]),W(I,!0))}},onChange:I=>{const H=I.target.value;V&&(N(H),P&&W(H))},onKeyDown:me,value:m&&V?g:(B==null?void 0:B.label)||"",readOnly:d||!V,style:{width:"100%",paddingRight:oe||_?j?32:44:12,caretColor:w?void 0:"transparent",cursor:w?void 0:"pointer",userSelect:w?void 0:"none",color:fe?"transparent":"var(--nc-text)"}}),fe&&n.jsx("div",{"aria-hidden":!0,className:`nc-combo-overlay ${de}`,style:{position:"absolute",left:j?8:12,right:oe||_?j?12:24:j?8:12,top:"50%",transform:"translateY(-50%)",pointerEvents:"none",display:"flex",alignItems:"center",gap:6},children:a&&B?a(B):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:`nc-combo-overlay-text ${j?"nc-small":""}`,children:B==null?void 0:B.label}),(B==null?void 0:B.default)&&n.jsxs("span",{className:`nc-combo-overlay-default ${j?"nc-small":""}`,children:["(",C("common.default"),")"]})]})}),_&&n.jsx(Nt,{onClick:he,small:j}),oe&&n.jsx(St,{open:m,small:j})]}),n.jsx(kt,{isOpen:m,options:G,onSelect:ie,selectedValue:e,placement:u,anchorRef:S,small:j,highlightedIndex:A,renderOption:i})]})}function Ct({onClick:e,loading:t=!1,disabled:r=!1,size:s="default",title:o,"aria-label":i}){const a=s==="small"?14:s==="large"?20:18,c=t?"Refreshing...":"Refresh",d=t?"Refreshing":"Refresh";return n.jsx("button",{className:"nc-icon-button",onClick:e,disabled:r||t,title:o??c,"aria-label":i??d,"data-size":s,children:n.jsx(X.RefreshIcon,{size:a,className:t?"nc-spinning":""})})}function Re({onClick:e,disabled:t=!1,size:r="default",title:s="Close","aria-label":o="Close"}){const i=r==="small"?14:r==="large"?20:18;return n.jsx("button",{className:"nc-icon-button nc-icon-button-close",onClick:e,disabled:t,title:s,"aria-label":o,"data-size":r,children:n.jsx(X.CloseIcon,{size:i})})}function Rt({onClick:e,disabled:t=!1,size:r="default",title:s="Edit","aria-label":o="Edit"}){const i=r==="small"?14:r==="large"?20:18;return n.jsx("button",{className:"nc-icon-button nc-icon-button-edit",onClick:e,disabled:t,title:s,"aria-label":o,"data-size":r,children:n.jsx(X.EditIcon,{size:i})})}function Mt({onClick:e,disabled:t=!1,size:r="default",title:s="Delete","aria-label":o="Delete"}){const i=r==="small"?14:r==="large"?20:18;return n.jsx("button",{className:"nc-icon-button nc-icon-button-trash",onClick:e,disabled:t,title:s,"aria-label":o,"data-size":r,children:n.jsx(X.TrashIcon,{size:i})})}function It({onClick:e,disabled:t=!1,children:r,title:s,"aria-label":o,size:i="default"}){return n.jsx("button",{className:"nc-hyperlink",onClick:e,disabled:t,title:s,"aria-label":o,"data-size":i,children:r})}function Et({open:e,onClose:t,options:r,anchorRef:s,anchor:o,preferredDirection:i="down"}){const a=l.useRef(null),[c,d]=l.useState({top:0,left:0}),p=o||(s==null?void 0:s.current);if(l.useEffect(()=>{if(!e||!p||!a.current)return;const u=p.getBoundingClientRect(),b=a.current.getBoundingClientRect(),k=window.innerHeight,x=window.innerWidth,v=u.bottom+8,y=v+b.height<=k-8;let m=i;(!y&&i==="down"||i==="up"&&y)&&(m="up");let h;m==="down"?h=v:h=u.top-b.height-8;let g=u.left;g+b.width>x-8&&(g=u.right-b.width),d({top:Math.max(8,h),left:Math.max(8,g)})},[e,p,i]),l.useEffect(()=>{if(!e)return;const u=k=>{a.current&&!a.current.contains(k.target)&&p&&!p.contains(k.target)&&t()},b=k=>{k.key==="Escape"&&t()};return document.addEventListener("mousedown",u),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",u),document.removeEventListener("keydown",b)}},[e,t,p]),!e)return null;const f=u=>{u.type!=="separator"&&!u.disabled&&u.onClick&&(u.onClick(),t())},w=r.some(u=>u.icon);return ve.createPortal(n.jsx("div",{ref:a,className:"nc-context-menu",style:{position:"fixed",top:`${c.top}px`,left:`${c.left}px`,zIndex:1e4},role:"menu",children:r.map(u=>{if(u.type==="separator")return n.jsx("div",{className:"nc-context-menu-separator",role:"separator"},u.id);const b=["nc-context-menu-item",u.variant&&u.variant!=="default"?`nc-${u.variant}`:"",u.disabled?"nc-disabled":"",w&&!u.icon?"nc-indented":""].filter(Boolean).join(" ");return n.jsxs("button",{className:b,onClick:()=>f(u),disabled:u.disabled,role:"menuitem",children:[u.icon&&n.jsx("span",{className:"nc-context-menu-icon",children:u.icon}),n.jsx("span",{className:"nc-context-menu-label",children:u.label})]},u.id)})}),document.body)}const Ue=l.createContext(null);function qe(){const e=l.useContext(Ue);if(!e)throw new Error("useDialog must be used inside a Dialog component");return e}function ce({children:e,onClick:t,...r}){const{close:s}=qe(),{t:o}=te.useTranslation(),i=a=>{t==null||t(a),s()};return n.jsx(J,{onClick:i,...r,children:e??o("common.close")})}function $t({open:e,onClose:t,title:r,children:s,style:o,footerType:i="ok-cancel",footer:a,onOk:c,onSave:d,onDelete:p,onCancel:f,onConnect:w,closeOnOverlay:u=!0,primaryDisabled:b=!1,fullScreen:k=!1,hideTitleBar:x=!1,className:v="",onContentHeightChange:y}){const m=l.useRef(null),h=l.useRef(null),{t:g}=te.useTranslation(),N={close:t},A=S=>{u&&S.target===S.currentTarget&&t()};if(l.useEffect(()=>{e&&m.current&&m.current.focus()},[e]),l.useEffect(()=>{if(!y||!h.current)return;const S=new ResizeObserver(T=>{for(const j of T){const C=j.contentRect.height;y(C)}});return S.observe(h.current),()=>{S.disconnect()}},[y]),!e)return null;const $=()=>{switch(i){case"ok":return n.jsx("div",{className:"nc-dialog-footer",children:n.jsx(J,{variant:"primary",onClick:c??t,disabled:b,children:g("common.ok")})});case"ok-cancel":return n.jsxs("div",{className:"nc-dialog-footer",children:[n.jsx(ce,{onClick:f,children:g("common.cancel")}),n.jsx(J,{variant:"primary",onClick:c??t,disabled:b,children:g("common.ok")})]});case"save-cancel":return n.jsxs("div",{className:"nc-dialog-footer",children:[n.jsx(ce,{onClick:f,children:g("common.cancel")}),n.jsx(J,{variant:"primary",onClick:d,disabled:b,children:g("common.save")})]});case"delete-cancel":return n.jsxs("div",{className:"nc-dialog-footer",children:[n.jsx(ce,{onClick:f,children:g("common.cancel")}),n.jsx(J,{variant:"danger",onClick:p,disabled:b,children:g("common.delete")})]});case"connect":return n.jsxs("div",{className:"nc-dialog-footer",children:[n.jsx(ce,{onClick:f,children:g("common.cancel")}),n.jsx(J,{variant:"primary",onClick:w,disabled:b,children:g("common.connect")})]});case"close":return n.jsx("div",{className:"nc-dialog-footer",children:n.jsx(ce,{variant:"primary"})});case"gotit":return n.jsx("div",{className:"nc-dialog-footer",children:n.jsx(ce,{variant:"primary",children:g("common.gotit")})});case"custom":return n.jsx("div",{className:"nc-dialog-footer",children:a});case"none":return null;default:return null}},L=n.jsx(Ue.Provider,{value:N,children:n.jsx("div",{className:`nc-dialog-overlay${k?" nc-fullscreen":""}`,onClick:A,children:n.jsxs("div",{ref:m,className:`nc-dialog-container ${v}`,style:o,tabIndex:-1,role:"dialog","aria-modal":"true","aria-labelledby":x?void 0:"nc-dialog-title",children:[!x&&n.jsxs("div",{className:"nc-dialog-header",children:[n.jsx("h3",{id:"nc-dialog-title",className:"nc-dialog-title",children:r}),n.jsx(Re,{onClick:t,"aria-label":"Close dialog"})]}),n.jsx("div",{ref:h,className:"nc-dialog-content",children:s}),$()]})})});return k?ve.createPortal(L,document.body):L}function Tt({onClick:e,size:t="default",rightOffset:r=4}){const s=t==="small"?28:34;return n.jsx("button",{className:"nc-button nc-ghost",onClick:e,onMouseDown:o=>{o.preventDefault(),o.stopPropagation()},tabIndex:-1,"aria-label":"Clear input",style:{position:"absolute",right:r,padding:0,minHeight:0,height:s,width:s,border:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:t==="small"?"12px":"14px"},children:"✕"})}function Pt({visible:e,onClick:t,size:r="default"}){const s=r==="small"?28:34,o=r==="small"?16:18;return n.jsx("button",{className:"nc-button nc-ghost",onClick:t,onMouseDown:i=>{i.preventDefault(),i.stopPropagation()},tabIndex:-1,"aria-label":e?"Hide password":"Show password",style:{position:"absolute",right:4,padding:0,minHeight:0,height:s,width:s,border:"none",display:"flex",alignItems:"center",justifyContent:"center"},children:e?n.jsx(X.EyeHiddenIcon,{size:o}):n.jsx(X.ViewIcon,{size:o})})}function Lt({value:e,defaultValue:t="",onChange:r,onChangeConfirmed:s,onEnter:o,onClear:i,placeholder:a,disabled:c,label:d,clearable:p=!0,type:f="text",className:w="",size:u="default",appearance:b="default",style:k,leadingIcon:x,showPasswordToggle:v=!1,multiline:y=!1,rows:m=3,validator:h,showErrorMessage:g=!0}){const N=l.useRef(null),A=l.useRef(null),$=l.useRef(!1),[L,S]=l.useState(!1),[T,j]=l.useState(!1),[C,P]=l.useState(!1),V=e!==void 0,[M,E]=l.useState(t),D=V?e:M,[K,W]=l.useState(D),G=h?h(D):null,B=!!G,_=!y&&b==="plain",oe=_&&T,de=oe?K:D;l.useEffect(()=>{oe||W(D)},[D,oe]);const fe=f==="password",ie=fe&&v&&!c&&!y,he=p&&de&&!c&&(T||C),me=u==="small"?32:44;let I=12;he&&ie?I=me*2:(he||ie)&&(I=me);const z=x?u==="small"?28:34:void 0,Y=()=>{if(!_)return D;const U=K!==D;return V||E(K),U&&(r==null||r(K),s==null||s(K)),K},F=()=>{W(D)},ut=()=>{var U,Z,We;if(_){W(""),i==null||i(),(U=N.current)==null||U.focus();return}V||E(""),r==null||r(""),i==null||i(),y?(Z=A.current)==null||Z.focus():(We=N.current)==null||We.focus()},Le=U=>{if(_&&U.key==="Escape"){U.preventDefault(),$.current=!0,F(),U.currentTarget.blur();return}if(U.key==="Enter"&&!y){const Z=_?Y():D;_&&(U.preventDefault(),$.current=!0,U.currentTarget.blur()),o==null||o(Z)}},Be=U=>{const Z=U.target.value;if(_){W(Z),r==null||r(Z);return}V||E(Z),r==null||r(Z)},ze=()=>{j(!0),_&&W(D)},De=()=>{if(_&&$.current){$.current=!1,j(!1);return}_&&Y(),j(!1)},Ve=`nc-input ${u==="small"?"nc-small ":""}${!y&&b==="plain"?"nc-plain ":""}${B?"nc-error ":""}${w}`;return n.jsxs("div",{className:"nc-col",style:{position:"relative",flex:1,...k},onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:[d&&n.jsx("span",{className:"nc-label",children:d}),n.jsxs("div",{style:{position:"relative",display:"flex",alignItems:y?"flex-start":"center"},children:[x&&n.jsx("span",{className:"nc-input-leading-icon",style:{height:y?void 0:"100%",top:y?10:void 0},children:x}),y?n.jsx("textarea",{ref:A,className:Ve,placeholder:a,value:de,onChange:Be,onKeyDown:Le,onFocus:ze,onBlur:De,readOnly:c,"aria-disabled":c,tabIndex:c?-1:void 0,rows:m,style:{width:"100%",paddingRight:I,...z!==void 0?{paddingLeft:z}:{}}}):n.jsx("input",{ref:N,type:fe&&L?"text":f,className:Ve,placeholder:a,value:de,onChange:Be,onKeyDown:Le,onFocus:ze,onBlur:De,readOnly:c,"aria-disabled":c,tabIndex:c?-1:void 0,style:{width:"100%",paddingRight:I,...z!==void 0?{paddingLeft:z}:{}}}),he&&n.jsx(Tt,{onClick:ut,size:u,rightOffset:ie?me+4:4}),ie&&n.jsx(Pt,{visible:L,onClick:()=>S(!L),size:u})]}),B&&g&&n.jsx("span",{className:"nc-error-message",children:G})]})}function Bt({children:e,onClick:t,showBorder:r=!0,selectable:s=!1,style:o}){const[i,a]=l.useState(!1),c=d=>{if(t){if(s){const p=window.getSelection();if(p&&p.toString().length>0)return}t(d)}};return n.jsx("div",{onClick:c,onMouseDown:()=>t&&a(!0),onMouseUp:()=>a(!1),onMouseLeave:()=>a(!1),style:{cursor:t?"pointer":"default",userSelect:s?"text":void 0,borderBottom:r?void 0:"none",...o},className:`nc-list-group-item ${t?"nc-list-group-item-clickable":""} ${i?"nc-list-group-item-active":""}`,children:n.jsx("div",{style:{flex:1},children:e})})}function zt({title:e,titleTools:t,children:r,style:s}){return n.jsxs("div",{className:"nc-list-group",style:s,children:[(e||t)&&n.jsxs("div",{className:"nc-list-group-title",children:[n.jsx("div",{children:e}),t&&n.jsx("div",{className:"nc-list-group-title-tools",children:t})]}),n.jsx("div",{className:"nc-list-group-content",children:r})]})}function Dt({values:e,onChange:t,options:r,placeholder:s="Select…",label:o}){const[i,a]=l.useState(!1),[c,d]=l.useState(""),p=l.useRef(null),f=l.useMemo(()=>r.filter(u=>u.label.toLowerCase().includes(c.toLowerCase())),[r,c]);l.useEffect(()=>{function u(b){!(b.target instanceof Node)||!p.current||p.current.contains(b.target)||a(!1)}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[]);const w=u=>{e.includes(u)?t(e.filter(b=>b!==u)):t([...e,u])};return n.jsxs("div",{ref:p,className:"nc-col",style:{position:"relative"},children:[o&&n.jsx("span",{className:"nc-label",children:o}),n.jsxs("div",{className:"nc-row",style:{flexWrap:"wrap",gap:6,minHeight:42,alignItems:"center",border:"1px solid var(--nc-button-border)",borderRadius:8,background:"var(--nc-button-bg)",padding:"4px 8px"},children:[e.length===0&&n.jsx("span",{className:"nc-label",children:s}),e.map(u=>{const b=r.find(k=>k.value===u);return b?n.jsxs("span",{style:{padding:"4px 8px",borderRadius:6,display:"inline-flex",alignItems:"center",gap:4,background:"var(--nc-button-bg)",border:"1px solid var(--nc-button-border)"},children:[b.label,n.jsx("button",{className:"nc-button nc-ghost",style:{padding:0,minHeight:0,height:20,width:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"none"},onClick:()=>w(u),"aria-label":`Remove ${b.label}`,children:"✕"})]},u):null}),n.jsx("input",{className:"nc-input",value:c,onChange:u=>d(u.target.value),onFocus:()=>a(!0),style:{minWidth:50,border:"none",background:"transparent",padding:4,minHeight:32,flex:1}})]}),i&&n.jsxs("div",{className:"nc-combo-dropdown",style:{position:"absolute",top:"100%",left:0,right:0,zIndex:10,marginTop:4,boxShadow:"0 4px 12px var(--nc-shadow)"},children:[f.map(u=>{const b=e.includes(u.value);return n.jsxs("div",{className:"nc-section nc-row",style:{justifyContent:"space-between",cursor:"pointer",padding:12},onMouseDown:()=>w(u.value),children:[n.jsx("span",{children:u.label}),n.jsx("span",{children:b?"✔️":""})]},u.value)}),f.length===0&&n.jsx("div",{className:"nc-section nc-label",children:"No results"})]})]})}function we(e){if(!e)return null;const t=/^\d{2}-\d{1,2}$/,r=/^\d{4}-\d{1,2}$/;if(!t.test(e)&&!r.test(e))return"Format must be YY-M(M) or YYYY-M(M)";const s=e.split("-"),o=parseInt(s[1],10);return o<1||o>12?"Month must be between 1 and 12":null}function xe(e){if(!e)return"";const t=e.split("-");if(t.length!==2)return e;let r=t[0];const s=t[1].padStart(2,"0");if(r.length===2){const o=parseInt(r,10);r=String(o<50?2e3+o:1900+o)}return`${r}-${s}`}function He(e){if(!e)return"";const t=xe(e);if(!/^\d{4}-\d{2}$/.test(t))return e;const[r,s]=t.split("-");return`${r}/${s}`}function Fe(){const e=new Date,t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0");return`${t}-${r}`}function Vt({startMonth:e,endMonth:t,onChange:r,label:s,className:o="",disabled:i=!1,size:a="default"}){const[c,d]=l.useState(!1),[p,f]=l.useState(""),[w,u]=l.useState(""),[b,k]=l.useState({top:0,left:0,width:0,right:void 0}),x=l.useRef(null),v=l.useRef(null);l.useEffect(()=>{if(c&&x.current){const j=x.current.getBoundingClientRect(),P=Math.max(j.width,400);window.innerWidth-j.left<P&&j.right>=P?k({top:j.bottom+4,left:0,right:window.innerWidth-j.right,width:P}):k({top:j.bottom+4,left:j.left,right:void 0,width:P})}},[c]),l.useEffect(()=>{if(!c)return;const j=C=>{x.current&&!x.current.contains(C.target)&&v.current&&!v.current.contains(C.target)&&d(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[c]);const y=()=>{f(e||Fe()),u(t||Fe()),d(!0)},m=()=>{d(!1)},h=()=>{const j=we(p),C=we(w);if(j||C)return;const P=xe(p),V=xe(w);P&&V&&(r==null||r(P,V)),d(!1)},g=e&&t?`${He(e)} - ${He(t)}`:"Select month range",N=we(p),A=we(w),$=xe(p),L=xe(w),S=$&&L&&$>L,T=c?ve.createPortal(n.jsx("div",{ref:v,className:"nc-month-range-picker-popup",style:{position:"fixed",top:b.top,...b.right!==void 0?{right:b.right}:{left:b.left},width:b.width,zIndex:1e3},children:n.jsxs("div",{className:"nc-month-range-picker-content",children:[n.jsxs("div",{className:"nc-month-range-picker-row",children:[n.jsxs("div",{className:"nc-month-range-picker-column",children:[n.jsx("label",{className:"nc-label",children:"Start Month"}),n.jsx("input",{type:"text",className:`nc-month-input ${N?"nc-error":""}`,value:p,onChange:j=>f(j.target.value),placeholder:"YY-M(M) or YYYY-M(M)"}),N&&n.jsx("div",{className:"nc-month-error-text",children:N})]}),n.jsxs("div",{className:"nc-month-range-picker-column",children:[n.jsx("label",{className:"nc-label",children:"End Month"}),n.jsx("input",{type:"text",className:`nc-month-input ${A?"nc-error":""}`,value:w,onChange:j=>u(j.target.value),placeholder:"YY-M(M) or YYYY-M(M)"}),A&&n.jsx("div",{className:"nc-month-error-text",children:A})]})]}),S&&!N&&!A&&n.jsx("div",{className:"nc-month-range-error",children:"End month must be after or equal to start month"}),n.jsxs("div",{className:"nc-month-range-picker-footer",children:[n.jsx(J,{variant:"primary",onClick:h,disabled:!p||!w||!!N||!!A||!!S,children:"Apply"}),n.jsx(J,{variant:"ghost",onClick:m,children:"Cancel"})]})]})}),document.body):null;return n.jsxs("div",{className:`nc-month-range-picker ${a==="small"?"nc-small ":""}${o}`,children:[s&&n.jsx("label",{className:`nc-label${a==="small"?" nc-small":""}`,children:s}),n.jsx("button",{ref:x,className:`nc-month-range-picker-input${a==="small"?" nc-small":""}`,onClick:y,disabled:i,children:g}),T]})}const Wt=5,Ht=3;function Ft({value:e,onChange:t,min:r,max:s,step:o=1,label:i,disabled:a,className:c="",style:d,size:p="default"}){const f=p==="small",w=(String(o).split(".")[1]||"").length,u=l.useRef(null),b=l.useRef(!1),k=l.useRef(null),[x,v]=l.useState(!1),[y,m]=l.useState(()=>String(e)),h=M=>parseFloat(M.toFixed(w)),g=M=>{const E=h(M);m(String(E)),t(E)},N=()=>{const M=e-o;r!==void 0&&M<r||g(parseFloat(M.toFixed(10)))},A=()=>{const M=e+o;s!==void 0&&M>s||g(parseFloat(M.toFixed(10)))},$=M=>{const E=M.target.value;if(m(E),E==="")return;const D=parseFloat(E);isNaN(D)||t(D)},L=()=>{const M=y;if(M===""){g(r!==void 0?r:0);return}const E=parseFloat(M);if(isNaN(E)){g(r!==void 0?r:0);return}let D=h(E);r!==void 0&&(D=Math.max(r,D)),s!==void 0&&(D=Math.min(s,D)),D!==E?g(D):m(String(D))},S=M=>{a||M.button!==0||(b.current=!1,u.current={startY:M.clientY,startValue:e,pointerId:M.pointerId,hasMoved:!1,lastValue:e},k.current=setTimeout(()=>{b.current=!0,v(!0)},200),M.currentTarget.setPointerCapture(M.pointerId))},T=M=>{const E=u.current;if(!E||E.pointerId!==M.pointerId)return;const D=E.startY-M.clientY;if(Math.abs(D)>=Ht&&(E.hasMoved=!0,b.current=!0,k.current&&(clearTimeout(k.current),k.current=null),v(!0)),!E.hasMoved)return;const K=Math.trunc(D/Wt);let W=E.startValue+K*o;r!==void 0&&(W=Math.max(r,W)),s!==void 0&&(W=Math.min(s,W)),W=h(W),W!==E.lastValue&&(E.lastValue=W,m(String(W)),t(W))},j=M=>{const E=u.current;!E||E.pointerId!==M.pointerId||(k.current&&(clearTimeout(k.current),k.current=null),M.currentTarget.hasPointerCapture(M.pointerId)&&M.currentTarget.releasePointerCapture(M.pointerId),u.current=null,v(!1))},C=M=>E=>{if(b.current){b.current=!1,E.preventDefault();return}M()},P=y===""?NaN:parseFloat(y),V=y===""||isNaN(P)||r!==void 0&&P<r||s!==void 0&&P>s;return n.jsxs("div",{className:`nc-col nc-number-input-col ${f?"nc-small":""}`,children:[i&&n.jsx("span",{className:`nc-label ${f?"nc-small":""}`,children:i}),n.jsxs("div",{className:`nc-number-input-container ${f?"nc-small":""} ${c}`,style:d,children:[n.jsx("input",{className:`nc-input nc-number-input ${f?"nc-small":""} ${V?"nc-error":""}`,type:"number",value:y,onChange:$,onBlur:L,min:r,max:s,step:o,disabled:a}),n.jsxs("div",{className:`nc-number-input-spinners ${f?"nc-small":""} ${a?"nc-disabled":""} ${x?"nc-dragging":""}`,children:[n.jsx("button",{className:`nc-number-input-spin nc-number-input-spin-up ${f?"nc-small":""}`,onClick:C(A),onPointerDown:S,onPointerMove:T,onPointerUp:j,onPointerCancel:j,disabled:a||s!==void 0&&e>=s,tabIndex:-1,children:"▲"}),n.jsx("button",{className:`nc-number-input-spin nc-number-input-spin-down ${f?"nc-small":""}`,onClick:C(N),onPointerDown:S,onPointerMove:T,onPointerUp:j,onPointerCancel:j,disabled:a||r!==void 0&&e<=r,tabIndex:-1,children:"▼"})]})]})]})}function Ot({value:e,onChange:t,min:r=0,max:s=100,step:o=1,label:i,disabled:a,showValue:c=!0,formatValue:d=f=>f.toString(),width:p=200}){const f=u=>{const b=parseFloat(u.target.value);t(b)},w=(e-r)/(s-r)*100;return n.jsxs("div",{className:"nc-col",style:{gap:6},children:[i&&n.jsx("span",{className:"nc-label",children:i}),n.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center"},children:[n.jsx("input",{type:"range",className:"nc-slider",value:e,onChange:f,min:r,max:s,step:o,disabled:a,style:{width:p,"--nc-slider-percentage":`${w}%`}}),c&&n.jsx("span",{style:{color:"var(--nc-text)",fontFamily:"monospace",fontSize:14,minWidth:60,textAlign:"right"},children:d(e)})]})]})}const Gt=({size:e=24,className:t,style:r})=>n.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:t,style:r,children:n.jsx("polyline",{points:"18 15 12 9 6 15"})});function Xe({children:e,className:t="",style:r}){return n.jsx("div",{className:`nc-tab-panel ${t}`,style:r,children:e})}function Yt({active:e,children:t,keepMounted:r=!1,className:s="",style:o}){const i=l.Children.toArray(t).filter(c=>l.isValidElement(c)&&(c.type===Xe||c.type.displayName==="TabPanel"));if(r)return n.jsx("div",{className:`nc-tab-panels ${s}`,style:o,children:i.map(c=>{const d=c.props.tab===e;return n.jsx("div",{className:`nc-tab-panel-wrapper ${d?"nc-active":""}`,style:{display:d?void 0:"none"},"aria-hidden":!d,children:c},c.props.tab)})});const a=i.find(c=>c.props.tab===e);return n.jsx("div",{className:`nc-tab-panels ${s}`,style:o,children:a})}function Kt({tabs:e,active:t,onChange:r,onClose:s,permanentTabs:o,className:i,toolbar:a,multiline:c,orientation:d="horizontal",style:p}){const f=l.useRef(null),[w,u]=l.useState(!1),[b,k]=l.useState(!1),x=d==="verticalLeft"||d==="verticalRight",v=l.useRef(!1),y=l.useRef(0),m=l.useRef(0),h=l.useRef(!1);l.useEffect(()=>{const S=()=>{if(f.current)if(x){const{scrollTop:j,scrollHeight:C,clientHeight:P}=f.current;u(j>1),k(j<C-P-1)}else{const{scrollLeft:j,scrollWidth:C,clientWidth:P}=f.current;u(j>1),k(j<C-P-1)}},T=f.current;if(T)return S(),T.addEventListener("scroll",S),window.addEventListener("resize",S),()=>{T.removeEventListener("scroll",S),window.removeEventListener("resize",S)}},[e,x]);const g=S=>{f.current&&(v.current=!0,h.current=!1,y.current=x?S.clientY:S.clientX,m.current=x?f.current.scrollTop:f.current.scrollLeft,f.current.style.cursor="grabbing",f.current.style.userSelect="none")},N=S=>{if(!v.current||!f.current)return;const T=x?S.clientY:S.clientX,j=y.current-T;Math.abs(j)>3&&(h.current=!0),x?f.current.scrollTop=m.current+j:f.current.scrollLeft=m.current+j},A=()=>{f.current&&(v.current=!1,f.current.style.cursor="",f.current.style.userSelect="")},$=()=>{A()};l.useEffect(()=>{const S=f.current;if(!S||x)return;const T=j=>{j.deltaY!==0&&(j.preventDefault(),S.scrollLeft+=j.deltaY*.3)};return S.addEventListener("wheel",T,{passive:!1}),()=>{S.removeEventListener("wheel",T)}},[x]);const L=S=>{h.current||r(S)};return n.jsxs("div",{className:`nc-tab-container ${x?`nc-vertical nc-${d}`:""} ${i||""}`,style:p,children:[n.jsxs("div",{className:"nc-tab-scroll-wrapper",children:[w&&n.jsx("div",{className:`nc-tab-scroll-indicator ${x?"nc-top":"nc-left"}`,children:x?n.jsx(Gt,{size:16}):n.jsx(X.ChevronLeftIcon,{size:16})}),n.jsx("div",{ref:f,className:`nc-tab-scroll ${c?"nc-multiline":""}`,onMouseDown:g,onMouseMove:N,onMouseUp:A,onMouseLeave:$,style:{cursor:"grab"},children:e.map(S=>{const T=typeof S=="string"?S:S.id,j=typeof S=="string"?S:S.label,C=s&&!(o!=null&&o.includes(T));return n.jsxs("div",{className:`nc-tab-item ${t===T?"nc-active":""} ${C?"nc-closable":""}`,onClick:()=>L(T),role:"button",tabIndex:0,onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&r(T)},children:[n.jsx("span",{className:"nc-tab-label",children:x?j:typeof j=="string"?j.toUpperCase():j}),C&&n.jsx("span",{className:"nc-tab-close",role:"button",tabIndex:0,"aria-label":`Close ${typeof j=="string"?j:T}`,onClick:P=>{P.stopPropagation(),s(T)},onKeyDown:P=>{(P.key==="Enter"||P.key===" ")&&(P.stopPropagation(),s(T))},children:n.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[n.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},T)})}),b&&n.jsx("div",{className:`nc-tab-scroll-indicator ${x?"nc-bottom":"nc-right"}`,children:x?n.jsx(X.ChevronDownIcon,{size:16}):n.jsx(X.ChevronRightIcon,{size:16})})]}),a&&n.jsx("div",{className:"nc-tab-toolbar",children:a})]})}function _t({checked:e,onChange:t,disabled:r,label:s}){return n.jsxs("label",{className:"nc-row",style:{gap:10,alignItems:"center",cursor:r?"not-allowed":"pointer"},children:[s&&n.jsx("span",{className:"nc-label",children:s}),n.jsx("span",{role:"switch","aria-checked":e,tabIndex:0,onKeyDown:o=>{r||(o.key==="Enter"||o.key===" ")&&(o.preventDefault(),t(!e))},onClick:()=>!r&&t(!e),style:{position:"relative",width:56,height:30,borderRadius:18,padding:4,display:"inline-flex",alignItems:"center",justifyContent:"flex-start",border:`2px solid ${e?"var(--nc-primary)":"var(--nc-button-border)"}`,background:e?"rgba(99,102,241,0.08)":"transparent",transition:"border-color 160ms, background 160ms"},children:n.jsx("span",{style:{width:22,height:22,borderRadius:12,background:e?"var(--nc-text)":"var(--nc-muted)",transform:`translateX(${e?24:0}px)`,transition:"transform 160ms, background 160ms",boxShadow:e?"0 2px 6px rgba(99,102,241,0.28)":"0 1px 2px rgba(0,0,0,0.08)",border:"none"}})})]})}const Oe=["var(--nc-csv-col-0)","var(--nc-csv-col-1)","var(--nc-csv-col-2)","var(--nc-csv-col-3)","var(--nc-csv-col-4)","var(--nc-csv-col-5)","var(--nc-csv-col-6)","var(--nc-csv-col-7)","var(--nc-csv-col-8)","var(--nc-csv-col-9)"];function Ut(e,t){const s=e.slice(0,t).split(`
2
2
  `),o=s.length,a=s[o-1].split(" "),c=a.length,d=a[c-1].length+1;return{line:o,column:c,character:d,offset:t}}function qt(e,t,r,s){const o=e.split(`
3
3
  `),i=Math.max(1,Math.min(t,o.length));let a=0;for(let w=0;w<i-1;w++)a+=o[w].length+1;const d=o[i-1].split(" "),p=Math.max(1,Math.min(r,d.length));for(let w=0;w<p-1;w++)a+=d[w].length+1;const f=Math.max(1,Math.min(s,d[p-1].length+1));return a+=f-1,a}function Xt(e,t){const r=e.split(`
4
4
  `),s=Math.max(1,Math.min(t,r.length));let o=0;for(let i=0;i<s-1;i++)o+=r[i].length+1;return o}const Jt=l.forwardRef(function({value:t,onChange:r,placeholder:s,className:o,style:i,showLineNumbers:a=!1,onCursorChange:c,highlightLine:d},p){const f=l.useRef(null),w=l.useRef(null),u=l.useRef(null);l.useImperativeHandle(p,()=>({goToLine(m){const h=f.current;if(!h)return;const g=Xt(t,m);h.focus(),h.setSelectionRange(g,g);const N=parseFloat(getComputedStyle(h).lineHeight)||18;h.scrollTop=(Math.max(1,m)-1)*N,k(),b()},goToPosition(m,h,g){const N=f.current;if(!N)return;const A=qt(t,m,h,g);N.focus(),N.setSelectionRange(A,A);const $=parseFloat(getComputedStyle(N).lineHeight)||18;N.scrollTop=(Math.max(1,m)-1)*$,k(),b()}}),[t]);const b=l.useCallback(()=>{if(!c||!f.current)return;const m=Ut(t,f.current.selectionStart);c(m)},[c,t]),k=l.useCallback(()=>{const m=f.current;m&&(w.current&&(w.current.scrollTop=m.scrollTop,w.current.scrollLeft=m.scrollLeft),u.current&&(u.current.scrollTop=m.scrollTop))},[]);l.useEffect(()=>{if(d==null||d<1)return;const m=f.current;if(!m)return;const h=parseFloat(getComputedStyle(m).lineHeight)||18,g=(d-1)*h,N=g+h;(g<m.scrollTop||N>m.scrollTop+m.clientHeight)&&(m.scrollTop=g-m.clientHeight/2+h/2),k()},[d]);const x=l.useMemo(()=>t.split(`
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ var ht = Object.defineProperty;
2
2
  var mt = (e, t, n) => t in e ? ht(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var se = (e, t, n) => mt(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as s, jsxs as A, Fragment as Pe } from "react/jsx-runtime";
5
- import { d as Le, E as gt, R as bt, T as vt, g as wt, V as yt, b as xt, a as kt, c as Nt } from "./GeneratedIcons-HFZmBTBT.js";
5
+ import { d as Le, E as gt, R as bt, T as vt, i as wt, V as yt, b as xt, a as kt, c as Nt } from "./GeneratedIcons-ChNhuTDj.js";
6
6
  import ze, { useState as E, useRef as Y, useEffect as V, useMemo as $e, createContext as ge, useContext as ae, Children as At, isValidElement as St, forwardRef as Ct, useImperativeHandle as Mt, useCallback as X, Suspense as $t } from "react";
7
7
  import { createPortal as Ae } from "react-dom";
8
8
  import { useTranslation as oe } from "react-i18next";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kingsimba/nc-ui",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -1 +0,0 @@
1
- "use strict";const n=require("react/jsx-runtime");function s({size:o=24,color:r="currentColor",strokeWidth:e=2,className:t,style:i}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",className:t,style:i,children:[n.jsx("line",{x1:"20",y1:"4",x2:"4",y2:"20"}),n.jsx("line",{x1:"4",y1:"4",x2:"20",y2:"20"})]})}function c({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h8"}),n.jsx("polyline",{points:"17 4 20 4 20 7"}),n.jsx("line",{x1:"13",y1:"11",x2:"20",y2:"4"})]})}function h({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("rect",{x:"3",y:"4",width:"18",height:"14",rx:"2"}),n.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),n.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"21"}),n.jsx("line",{x1:"7",y1:"11",x2:"17",y2:"11"})]})}function x({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),n.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function l({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"-2 -2 28 28",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M1.5 9a15.5 15.5 0 0 1 21 0"}),n.jsx("path",{d:"M5 12.5a10 10 0 0 1 14 0"}),n.jsx("path",{d:"M8.5 16a5 5 0 0 1 7 0"}),n.jsx("circle",{cx:"12",cy:"20",r:"1.5",fill:"currentColor"})]})}function d({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),n.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function u({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),n.jsx("path",{d:"M8 11V7a4 4 0 0 1 7.83-1"})]})}function j({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("polyline",{points:"9 18 15 12 9 6"})})}function a({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("polyline",{points:"15 18 9 12 15 6"})})}function k({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("polyline",{points:"6 9 12 15 18 9"})})}function v({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"-2 -2 28 28",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M21 2v6h-6"}),n.jsx("path",{d:"M3 12a9 9 0 0 1 15-6.7L21 8"}),n.jsx("path",{d:"M3 22v-6h6"}),n.jsx("path",{d:"M21 12a9 9 0 0 1-15 6.7L3 16"})]})}function p({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}),n.jsx("path",{d:"M3 3v5h5"})]})}function f({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),n.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}function w({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("polyline",{points:"3 6 5 6 21 6"}),n.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),n.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),n.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}function y({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M4 4h5l2 2h9a1 1 0 0 1 1 1v2H3V5a1 1 0 0 1 1-1z"}),n.jsx("path",{d:"M2 9h20l-2 11H4L2 9z"}),n.jsx("path",{d:"M8 14h8",strokeDasharray:"2 2",opacity:"0.5"})]})}function L({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("circle",{cx:"12",cy:"12",r:"10"}),n.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),n.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})}function g({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),n.jsx("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})]})}function I({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M12 2v10"}),n.jsx("path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"})]})}function C({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),n.jsx("circle",{cx:"12",cy:"13",r:"4"})]})}function M({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),n.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function B({size:o=24,className:r,style:e}){return n.jsx("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:n.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}function W({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("circle",{cx:"9.5",cy:"4",r:"2",opacity:"0.5"}),n.jsx("circle",{cx:"9.5",cy:"4",r:"3.5",opacity:"0.3"}),n.jsx("path",{d:"M8 13V5.5a1.5 1.5 0 0 1 3 0V12"}),n.jsx("path",{d:"M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5"}),n.jsx("path",{d:"M14 10.5a1.5 1.5 0 0 1 3 0v1.5"}),n.jsx("path",{d:"M17 11.5a1.5 1.5 0 0 1 3 0v4.5a6 6 0 0 1-6 6h-2h.2a6 6 0 0 1-5-2.7l-.2-.3c-.3-.5-1.4-2.4-3.2-6.3l-.5-.8a.6.6 0 0 1 .5-.8h2.5"})]})}function H({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:[n.jsx("circle",{cx:"12",cy:"5",r:"2"}),n.jsx("circle",{cx:"12",cy:"12",r:"2"}),n.jsx("circle",{cx:"12",cy:"19",r:"2"})]})}function V({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:[n.jsx("circle",{cx:"5",cy:"12",r:"2"}),n.jsx("circle",{cx:"12",cy:"12",r:"2"}),n.jsx("circle",{cx:"19",cy:"12",r:"2"})]})}function E({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),n.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})}function m({size:o=24,className:r,style:e}){return n.jsxs("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[n.jsx("circle",{cx:"11",cy:"11",r:"8"}),n.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}exports.CameraIcon=C;exports.ChevronDownIcon=k;exports.ChevronLeftIcon=a;exports.ChevronRightIcon=j;exports.CloseIcon=s;exports.DoubleClickIcon=W;exports.EditIcon=f;exports.EmptyFolderIcon=y;exports.ExternalLinkIcon=c;exports.EyeHiddenIcon=E;exports.HideAppsIcon=h;exports.InfoIcon=L;exports.LockIcon=d;exports.MinusIcon=B;exports.MoreHorizontalIcon=V;exports.MoreIcon=H;exports.PieChartIcon=g;exports.PlusIcon=M;exports.PowerIcon=I;exports.RefreshIcon=v;exports.RevertIcon=p;exports.SearchIcon=m;exports.TrashIcon=w;exports.UnlockIcon=u;exports.ViewIcon=x;exports.WifiIcon=l;