@kingsimba/nc-ui 0.1.48 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/{GeneratedIcons-eOaZDTB3.js → GeneratedIcons-Jg9slqRu.js} +125 -80
- package/dist/GeneratedIcons-LGFRi6GT.cjs +1 -0
- package/dist/code-editor.cjs +4 -4
- package/dist/code-editor.js +320 -77
- package/dist/icons.cjs +1 -1
- package/dist/icons.d.ts +16 -0
- package/dist/icons.js +32 -30
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +52 -0
- package/dist/index.js +1724 -1489
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/GeneratedIcons-Z-RSoFyY.cjs +0 -1
package/README.md
CHANGED
|
@@ -70,6 +70,7 @@ function MyComponent() {
|
|
|
70
70
|
|
|
71
71
|
nc-ui provides 23+ ready-to-use components. Click any component to see it in the interactive demo:
|
|
72
72
|
|
|
73
|
+
<!-- prettier-ignore -->
|
|
73
74
|
| Component | Description |
|
|
74
75
|
| ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
|
|
75
76
|
| [ActivityIndicator](https://kingsimba.github.io/nc-ui/?app=ui-components&tab=activity) | Loading spinner with size variants and overlay mode |
|
|
@@ -97,6 +98,7 @@ nc-ui provides 23+ ready-to-use components. Click any component to see it in the
|
|
|
97
98
|
| [Slider](https://kingsimba.github.io/nc-ui/?app=ui-components&tab=slider) | Range slider with value display |
|
|
98
99
|
| [Tabs](https://kingsimba.github.io/nc-ui/?app=ui-components&tab=tabs) | Tabbed navigation component |
|
|
99
100
|
| [Toggle](https://kingsimba.github.io/nc-ui/?app=ui-components&tab=toggle) | Switch/toggle with on/off states |
|
|
101
|
+
| [VersionPicker](https://kingsimba.github.io/nc-ui/?app=ui-components&tab=version-picker) | Version and Git ref picker grouped by release series |
|
|
100
102
|
| [YamlTextArea](https://kingsimba.github.io/nc-ui/?app=ui-components&tab=yaml-textarea) | YAML editor with syntax highlighting and validation (import from `@kingsimba/nc-ui/yaml`) |
|
|
101
103
|
|
|
102
104
|
## App Framework
|
|
@@ -180,9 +182,9 @@ The library uses CSS variables with `nc-` prefix. Override them in your app:
|
|
|
180
182
|
/* ... see theme.css for all variables */
|
|
181
183
|
}
|
|
182
184
|
|
|
183
|
-
/*
|
|
184
|
-
:root.
|
|
185
|
-
--nc-primary: #your-
|
|
185
|
+
/* Dark theme - add .dark class to :root */
|
|
186
|
+
:root.dark {
|
|
187
|
+
--nc-primary: #your-dark-primary;
|
|
186
188
|
}
|
|
187
189
|
```
|
|
188
190
|
|
|
@@ -273,6 +273,27 @@ function g({ size: r = 24, className: n, style: e }) {
|
|
|
273
273
|
);
|
|
274
274
|
}
|
|
275
275
|
function M({ size: r = 24, className: n, style: e }) {
|
|
276
|
+
return /* @__PURE__ */ t(
|
|
277
|
+
"svg",
|
|
278
|
+
{
|
|
279
|
+
width: r,
|
|
280
|
+
height: r,
|
|
281
|
+
viewBox: "0 0 24 24",
|
|
282
|
+
fill: "none",
|
|
283
|
+
stroke: "currentColor",
|
|
284
|
+
strokeWidth: 1.7,
|
|
285
|
+
strokeLinecap: "round",
|
|
286
|
+
strokeLinejoin: "round",
|
|
287
|
+
className: n,
|
|
288
|
+
style: e,
|
|
289
|
+
children: [
|
|
290
|
+
/* @__PURE__ */ o("circle", { cx: "12", cy: "12", r: "10" }),
|
|
291
|
+
/* @__PURE__ */ o("path", { d: "M12 7v5l4 2", strokeWidth: 2.2 })
|
|
292
|
+
]
|
|
293
|
+
}
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
function y({ size: r = 24, className: n, style: e }) {
|
|
276
297
|
return /* @__PURE__ */ t(
|
|
277
298
|
"svg",
|
|
278
299
|
{
|
|
@@ -293,7 +314,7 @@ function M({ size: r = 24, className: n, style: e }) {
|
|
|
293
314
|
}
|
|
294
315
|
);
|
|
295
316
|
}
|
|
296
|
-
function
|
|
317
|
+
function C({ size: r = 24, className: n, style: e }) {
|
|
297
318
|
return /* @__PURE__ */ t(
|
|
298
319
|
"svg",
|
|
299
320
|
{
|
|
@@ -316,7 +337,7 @@ function y({ size: r = 24, className: n, style: e }) {
|
|
|
316
337
|
}
|
|
317
338
|
);
|
|
318
339
|
}
|
|
319
|
-
function
|
|
340
|
+
function A({ size: r = 24, className: n, style: e }) {
|
|
320
341
|
return /* @__PURE__ */ t(
|
|
321
342
|
"svg",
|
|
322
343
|
{
|
|
@@ -340,7 +361,7 @@ function C({ size: r = 24, className: n, style: e }) {
|
|
|
340
361
|
}
|
|
341
362
|
);
|
|
342
363
|
}
|
|
343
|
-
function
|
|
364
|
+
function I({ size: r = 24, className: n, style: e }) {
|
|
344
365
|
return /* @__PURE__ */ t(
|
|
345
366
|
"svg",
|
|
346
367
|
{
|
|
@@ -362,7 +383,7 @@ function A({ size: r = 24, className: n, style: e }) {
|
|
|
362
383
|
}
|
|
363
384
|
);
|
|
364
385
|
}
|
|
365
|
-
function
|
|
386
|
+
function B({ size: r = 24, className: n, style: e }) {
|
|
366
387
|
return /* @__PURE__ */ t(
|
|
367
388
|
"svg",
|
|
368
389
|
{
|
|
@@ -384,7 +405,7 @@ function I({ size: r = 24, className: n, style: e }) {
|
|
|
384
405
|
}
|
|
385
406
|
);
|
|
386
407
|
}
|
|
387
|
-
function
|
|
408
|
+
function W({ size: r = 24, className: n, style: e }) {
|
|
388
409
|
return /* @__PURE__ */ o(
|
|
389
410
|
"svg",
|
|
390
411
|
{
|
|
@@ -426,7 +447,7 @@ function j({ size: r = 24, className: n, style: e }) {
|
|
|
426
447
|
}
|
|
427
448
|
);
|
|
428
449
|
}
|
|
429
|
-
function
|
|
450
|
+
function Z({ size: r = 24, className: n, style: e }) {
|
|
430
451
|
return /* @__PURE__ */ o(
|
|
431
452
|
"svg",
|
|
432
453
|
{
|
|
@@ -446,7 +467,7 @@ function W({ size: r = 24, className: n, style: e }) {
|
|
|
446
467
|
}
|
|
447
468
|
);
|
|
448
469
|
}
|
|
449
|
-
function
|
|
470
|
+
function V({ size: r = 24, className: n, style: e }) {
|
|
450
471
|
return /* @__PURE__ */ t(
|
|
451
472
|
"svg",
|
|
452
473
|
{
|
|
@@ -467,7 +488,7 @@ function Z({ size: r = 24, className: n, style: e }) {
|
|
|
467
488
|
}
|
|
468
489
|
);
|
|
469
490
|
}
|
|
470
|
-
function
|
|
491
|
+
function H({ size: r = 24, className: n, style: e }) {
|
|
471
492
|
return /* @__PURE__ */ t(
|
|
472
493
|
"svg",
|
|
473
494
|
{
|
|
@@ -488,7 +509,7 @@ function V({ size: r = 24, className: n, style: e }) {
|
|
|
488
509
|
}
|
|
489
510
|
);
|
|
490
511
|
}
|
|
491
|
-
function
|
|
512
|
+
function F({ size: r = 24, className: n, style: e }) {
|
|
492
513
|
return /* @__PURE__ */ t(
|
|
493
514
|
"svg",
|
|
494
515
|
{
|
|
@@ -509,7 +530,7 @@ function H({ size: r = 24, className: n, style: e }) {
|
|
|
509
530
|
}
|
|
510
531
|
);
|
|
511
532
|
}
|
|
512
|
-
function
|
|
533
|
+
function S({ size: r = 24, className: n, style: e }) {
|
|
513
534
|
return /* @__PURE__ */ t(
|
|
514
535
|
"svg",
|
|
515
536
|
{
|
|
@@ -530,7 +551,7 @@ function F({ size: r = 24, className: n, style: e }) {
|
|
|
530
551
|
}
|
|
531
552
|
);
|
|
532
553
|
}
|
|
533
|
-
function
|
|
554
|
+
function m({ size: r = 24, className: n, style: e }) {
|
|
534
555
|
return /* @__PURE__ */ o(
|
|
535
556
|
"svg",
|
|
536
557
|
{
|
|
@@ -548,7 +569,7 @@ function S({ size: r = 24, className: n, style: e }) {
|
|
|
548
569
|
}
|
|
549
570
|
);
|
|
550
571
|
}
|
|
551
|
-
function
|
|
572
|
+
function P({ size: r = 24, className: n, style: e }) {
|
|
552
573
|
return /* @__PURE__ */ t(
|
|
553
574
|
"svg",
|
|
554
575
|
{
|
|
@@ -573,7 +594,7 @@ function m({ size: r = 24, className: n, style: e }) {
|
|
|
573
594
|
}
|
|
574
595
|
);
|
|
575
596
|
}
|
|
576
|
-
function
|
|
597
|
+
function R({ size: r = 24, className: n, style: e }) {
|
|
577
598
|
return /* @__PURE__ */ t(
|
|
578
599
|
"svg",
|
|
579
600
|
{
|
|
@@ -591,7 +612,7 @@ function P({ size: r = 24, className: n, style: e }) {
|
|
|
591
612
|
}
|
|
592
613
|
);
|
|
593
614
|
}
|
|
594
|
-
function
|
|
615
|
+
function D({ size: r = 24, className: n, style: e }) {
|
|
595
616
|
return /* @__PURE__ */ t(
|
|
596
617
|
"svg",
|
|
597
618
|
{
|
|
@@ -609,7 +630,7 @@ function R({ size: r = 24, className: n, style: e }) {
|
|
|
609
630
|
}
|
|
610
631
|
);
|
|
611
632
|
}
|
|
612
|
-
function
|
|
633
|
+
function E({ size: r = 24, className: n, style: e }) {
|
|
613
634
|
return /* @__PURE__ */ t(
|
|
614
635
|
"svg",
|
|
615
636
|
{
|
|
@@ -631,7 +652,7 @@ function D({ size: r = 24, className: n, style: e }) {
|
|
|
631
652
|
}
|
|
632
653
|
);
|
|
633
654
|
}
|
|
634
|
-
function
|
|
655
|
+
function Q({ size: r = 24, className: n, style: e }) {
|
|
635
656
|
return /* @__PURE__ */ t(
|
|
636
657
|
"svg",
|
|
637
658
|
{
|
|
@@ -652,7 +673,7 @@ function E({ size: r = 24, className: n, style: e }) {
|
|
|
652
673
|
}
|
|
653
674
|
);
|
|
654
675
|
}
|
|
655
|
-
function
|
|
676
|
+
function T({ size: r = 24, className: n, style: e }) {
|
|
656
677
|
return /* @__PURE__ */ t(
|
|
657
678
|
"svg",
|
|
658
679
|
{
|
|
@@ -673,7 +694,7 @@ function Q({ size: r = 24, className: n, style: e }) {
|
|
|
673
694
|
}
|
|
674
695
|
);
|
|
675
696
|
}
|
|
676
|
-
function
|
|
697
|
+
function U({ size: r = 24, className: n, style: e }) {
|
|
677
698
|
return /* @__PURE__ */ t(
|
|
678
699
|
"svg",
|
|
679
700
|
{
|
|
@@ -694,7 +715,7 @@ function T({ size: r = 24, className: n, style: e }) {
|
|
|
694
715
|
}
|
|
695
716
|
);
|
|
696
717
|
}
|
|
697
|
-
function
|
|
718
|
+
function b({ size: r = 24, className: n, style: e }) {
|
|
698
719
|
return /* @__PURE__ */ t(
|
|
699
720
|
"svg",
|
|
700
721
|
{
|
|
@@ -721,7 +742,7 @@ function U({ size: r = 24, className: n, style: e }) {
|
|
|
721
742
|
}
|
|
722
743
|
);
|
|
723
744
|
}
|
|
724
|
-
function
|
|
745
|
+
function K({ size: r = 24, className: n, style: e }) {
|
|
725
746
|
return /* @__PURE__ */ t(
|
|
726
747
|
"svg",
|
|
727
748
|
{
|
|
@@ -743,7 +764,7 @@ function b({ size: r = 24, className: n, style: e }) {
|
|
|
743
764
|
}
|
|
744
765
|
);
|
|
745
766
|
}
|
|
746
|
-
function
|
|
767
|
+
function q({ size: r = 24, className: n, style: e }) {
|
|
747
768
|
return /* @__PURE__ */ o(
|
|
748
769
|
"svg",
|
|
749
770
|
{
|
|
@@ -761,7 +782,7 @@ function K({ size: r = 24, className: n, style: e }) {
|
|
|
761
782
|
}
|
|
762
783
|
);
|
|
763
784
|
}
|
|
764
|
-
function
|
|
785
|
+
function G({ size: r = 24, className: n, style: e }) {
|
|
765
786
|
return /* @__PURE__ */ t(
|
|
766
787
|
"svg",
|
|
767
788
|
{
|
|
@@ -789,7 +810,7 @@ function q({ size: r = 24, className: n, style: e }) {
|
|
|
789
810
|
}
|
|
790
811
|
);
|
|
791
812
|
}
|
|
792
|
-
function
|
|
813
|
+
function J({ size: r = 24, className: n, style: e }) {
|
|
793
814
|
return /* @__PURE__ */ t(
|
|
794
815
|
"svg",
|
|
795
816
|
{
|
|
@@ -817,7 +838,7 @@ function G({ size: r = 24, className: n, style: e }) {
|
|
|
817
838
|
}
|
|
818
839
|
);
|
|
819
840
|
}
|
|
820
|
-
function
|
|
841
|
+
function N({ size: r = 24, className: n, style: e }) {
|
|
821
842
|
return /* @__PURE__ */ o(
|
|
822
843
|
"svg",
|
|
823
844
|
{
|
|
@@ -835,7 +856,7 @@ function J({ size: r = 24, className: n, style: e }) {
|
|
|
835
856
|
}
|
|
836
857
|
);
|
|
837
858
|
}
|
|
838
|
-
function
|
|
859
|
+
function O({ size: r = 24, className: n, style: e }) {
|
|
839
860
|
return /* @__PURE__ */ o(
|
|
840
861
|
"svg",
|
|
841
862
|
{
|
|
@@ -853,7 +874,7 @@ function N({ size: r = 24, className: n, style: e }) {
|
|
|
853
874
|
}
|
|
854
875
|
);
|
|
855
876
|
}
|
|
856
|
-
function
|
|
877
|
+
function X({ size: r = 24, className: n, style: e }) {
|
|
857
878
|
return /* @__PURE__ */ t(
|
|
858
879
|
"svg",
|
|
859
880
|
{
|
|
@@ -875,7 +896,7 @@ function O({ size: r = 24, className: n, style: e }) {
|
|
|
875
896
|
}
|
|
876
897
|
);
|
|
877
898
|
}
|
|
878
|
-
function
|
|
899
|
+
function Y({ size: r = 24, className: n, style: e }) {
|
|
879
900
|
return /* @__PURE__ */ t(
|
|
880
901
|
"svg",
|
|
881
902
|
{
|
|
@@ -896,7 +917,7 @@ function X({ size: r = 24, className: n, style: e }) {
|
|
|
896
917
|
}
|
|
897
918
|
);
|
|
898
919
|
}
|
|
899
|
-
function
|
|
920
|
+
function _({ size: r = 24, className: n, style: e }) {
|
|
900
921
|
return /* @__PURE__ */ t(
|
|
901
922
|
"svg",
|
|
902
923
|
{
|
|
@@ -918,7 +939,7 @@ function Y({ size: r = 24, className: n, style: e }) {
|
|
|
918
939
|
}
|
|
919
940
|
);
|
|
920
941
|
}
|
|
921
|
-
function
|
|
942
|
+
function $({ size: r = 24, className: n, style: e }) {
|
|
922
943
|
return /* @__PURE__ */ t(
|
|
923
944
|
"svg",
|
|
924
945
|
{
|
|
@@ -939,7 +960,7 @@ function _({ size: r = 24, className: n, style: e }) {
|
|
|
939
960
|
}
|
|
940
961
|
);
|
|
941
962
|
}
|
|
942
|
-
function
|
|
963
|
+
function z({ size: r = 24, className: n, style: e }) {
|
|
943
964
|
return /* @__PURE__ */ o(
|
|
944
965
|
"svg",
|
|
945
966
|
{
|
|
@@ -957,7 +978,7 @@ function $({ size: r = 24, className: n, style: e }) {
|
|
|
957
978
|
}
|
|
958
979
|
);
|
|
959
980
|
}
|
|
960
|
-
function
|
|
981
|
+
function r1({ size: r = 24, className: n, style: e }) {
|
|
961
982
|
return /* @__PURE__ */ o(
|
|
962
983
|
"svg",
|
|
963
984
|
{
|
|
@@ -975,7 +996,7 @@ function z({ size: r = 24, className: n, style: e }) {
|
|
|
975
996
|
}
|
|
976
997
|
);
|
|
977
998
|
}
|
|
978
|
-
function
|
|
999
|
+
function o1({ size: r = 24, className: n, style: e }) {
|
|
979
1000
|
return /* @__PURE__ */ o(
|
|
980
1001
|
"svg",
|
|
981
1002
|
{
|
|
@@ -993,7 +1014,7 @@ function r1({ size: r = 24, className: n, style: e }) {
|
|
|
993
1014
|
}
|
|
994
1015
|
);
|
|
995
1016
|
}
|
|
996
|
-
function
|
|
1017
|
+
function n1({ size: r = 24, className: n, style: e }) {
|
|
997
1018
|
return /* @__PURE__ */ t(
|
|
998
1019
|
"svg",
|
|
999
1020
|
{
|
|
@@ -1014,7 +1035,7 @@ function o1({ size: r = 24, className: n, style: e }) {
|
|
|
1014
1035
|
}
|
|
1015
1036
|
);
|
|
1016
1037
|
}
|
|
1017
|
-
function
|
|
1038
|
+
function e1({ size: r = 24, className: n, style: e }) {
|
|
1018
1039
|
return /* @__PURE__ */ o(
|
|
1019
1040
|
"svg",
|
|
1020
1041
|
{
|
|
@@ -1032,7 +1053,7 @@ function n1({ size: r = 24, className: n, style: e }) {
|
|
|
1032
1053
|
}
|
|
1033
1054
|
);
|
|
1034
1055
|
}
|
|
1035
|
-
function
|
|
1056
|
+
function t1({ size: r = 24, className: n, style: e }) {
|
|
1036
1057
|
return /* @__PURE__ */ o(
|
|
1037
1058
|
"svg",
|
|
1038
1059
|
{
|
|
@@ -1046,7 +1067,7 @@ function e1({ size: r = 24, className: n, style: e }) {
|
|
|
1046
1067
|
}
|
|
1047
1068
|
);
|
|
1048
1069
|
}
|
|
1049
|
-
function
|
|
1070
|
+
function i1({ size: r = 24, className: n, style: e }) {
|
|
1050
1071
|
return /* @__PURE__ */ t(
|
|
1051
1072
|
"svg",
|
|
1052
1073
|
{
|
|
@@ -1063,7 +1084,7 @@ function t1({ size: r = 24, className: n, style: e }) {
|
|
|
1063
1084
|
}
|
|
1064
1085
|
);
|
|
1065
1086
|
}
|
|
1066
|
-
function
|
|
1087
|
+
function h1({ size: r = 24, className: n, style: e }) {
|
|
1067
1088
|
return /* @__PURE__ */ o(
|
|
1068
1089
|
"svg",
|
|
1069
1090
|
{
|
|
@@ -1077,57 +1098,81 @@ function i1({ size: r = 24, className: n, style: e }) {
|
|
|
1077
1098
|
}
|
|
1078
1099
|
);
|
|
1079
1100
|
}
|
|
1101
|
+
function c1({ size: r = 24, className: n, style: e }) {
|
|
1102
|
+
return /* @__PURE__ */ t(
|
|
1103
|
+
"svg",
|
|
1104
|
+
{
|
|
1105
|
+
width: r,
|
|
1106
|
+
height: r,
|
|
1107
|
+
viewBox: "0 0 24 24",
|
|
1108
|
+
fill: "none",
|
|
1109
|
+
stroke: "currentColor",
|
|
1110
|
+
strokeWidth: 2,
|
|
1111
|
+
strokeLinecap: "round",
|
|
1112
|
+
strokeLinejoin: "round",
|
|
1113
|
+
className: n,
|
|
1114
|
+
style: e,
|
|
1115
|
+
children: [
|
|
1116
|
+
/* @__PURE__ */ o("path", { d: "M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z" }),
|
|
1117
|
+
/* @__PURE__ */ o("line", { x1: "12", y1: "9", x2: "12", y2: "13.2" }),
|
|
1118
|
+
/* @__PURE__ */ o("circle", { cx: "12", cy: "17", r: "1.2", fill: "currentColor", stroke: "none" })
|
|
1119
|
+
]
|
|
1120
|
+
}
|
|
1121
|
+
);
|
|
1122
|
+
}
|
|
1080
1123
|
export {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1124
|
+
s as $,
|
|
1125
|
+
T as A,
|
|
1126
|
+
Y as B,
|
|
1127
|
+
F as C,
|
|
1128
|
+
P as D,
|
|
1129
|
+
y as E,
|
|
1130
|
+
q as F,
|
|
1131
|
+
r1 as G,
|
|
1088
1132
|
a as H,
|
|
1089
|
-
|
|
1090
|
-
|
|
1133
|
+
W as I,
|
|
1134
|
+
z as J,
|
|
1091
1135
|
v as K,
|
|
1092
1136
|
k as L,
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1137
|
+
E as M,
|
|
1138
|
+
h1 as N,
|
|
1139
|
+
e1 as O,
|
|
1140
|
+
i1 as P,
|
|
1141
|
+
Z as Q,
|
|
1098
1142
|
w as R,
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1143
|
+
X as S,
|
|
1144
|
+
J as T,
|
|
1145
|
+
G as U,
|
|
1146
|
+
A as V,
|
|
1147
|
+
C as W,
|
|
1148
|
+
p as X,
|
|
1149
|
+
$ as Y,
|
|
1150
|
+
u as Z,
|
|
1151
|
+
c1 as _,
|
|
1107
1152
|
f as a,
|
|
1108
1153
|
x as b,
|
|
1109
1154
|
L as c,
|
|
1110
1155
|
d,
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1156
|
+
_ as e,
|
|
1157
|
+
b as f,
|
|
1158
|
+
U as g,
|
|
1159
|
+
K as h,
|
|
1160
|
+
I as i,
|
|
1116
1161
|
l as j,
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1162
|
+
Q as k,
|
|
1163
|
+
M as l,
|
|
1164
|
+
B as m,
|
|
1165
|
+
m as n,
|
|
1166
|
+
O as o,
|
|
1167
|
+
N as p,
|
|
1168
|
+
D as q,
|
|
1169
|
+
R as r,
|
|
1170
|
+
n1 as s,
|
|
1171
|
+
V as t,
|
|
1172
|
+
t1 as u,
|
|
1173
|
+
o1 as v,
|
|
1174
|
+
S as w,
|
|
1175
|
+
H as x,
|
|
1176
|
+
j as y,
|
|
1177
|
+
g as z
|
|
1133
1178
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime");function s({size:n=24,color:r="currentColor",strokeWidth:e=2,className:t,style:i}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round",className:t,style:i,children:[o.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}function c({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M18 13v5a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h7"}),o.jsx("polyline",{points:"17 4 20 4 20 7"}),o.jsx("line",{x1:"13",y1:"11",x2:"20",y2:"4"})]})}function h({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("rect",{x:"3",y:"4",width:"18",height:"14",rx:"2"}),o.jsx("line",{x1:"8",y1:"21",x2:"16",y2:"21"}),o.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"21"}),o.jsx("line",{x1:"7",y1:"11",x2:"17",y2:"11"})]})}function d({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}function l({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M1.5 9a15.5 15.5 0 0 1 21 0"}),o.jsx("path",{d:"M5 12.5a10 10 0 0 1 14 0"}),o.jsx("path",{d:"M8.5 16a5 5 0 0 1 7 0"}),o.jsx("circle",{cx:"12",cy:"20",r:"1.5",fill:"currentColor"})]})}function x({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),o.jsx("path",{d:"M8 11V7a4 4 0 0 1 8 0v4"})]})}function u({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("rect",{x:"5",y:"11",width:"14",height:"10",rx:"2"}),o.jsx("path",{d:"M8 11V7a4 4 0 0 1 7.83-1"})]})}function a({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"7",cy:"12",r:"4"}),o.jsx("path",{d:"M11 12h10"}),o.jsx("path",{d:"M15.5 12v3"}),o.jsx("path",{d:"M18.5 12v3"})]})}function j({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.jsx("polyline",{points:"9 18 15 12 9 6"})})}function k({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.jsx("polyline",{points:"15 18 9 12 15 6"})})}function p({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})}function v({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M20 4v4.44h-4.44"}),o.jsx("path",{d:"M4 12A8 8 0 0 1 17.33 6.04L20 8.44"}),o.jsx("path",{d:"M4 20v-4.44h4.44"}),o.jsx("path",{d:"M20 12A8 8 0 0 1 6.67 17.96L4 15.56"})]})}function L({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M4 12A8 8 0 1 0 12 4A8.67 8.67 0 0 0 6.01 6.44L4 8.44"}),o.jsx("path",{d:"M4 4v4.44h4.44"})]})}function f({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"M12 7v5l4 2",strokeWidth:2.2})]})}function w({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"-2.1 -2.1 28.2 28.2",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M11 4H5a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-6"}),o.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 g({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("polyline",{points:"3 6 5 6 21 6"}),o.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"}),o.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),o.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}function I({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:[o.jsx("path",{d:"M7.15 6V4A2.85 2.85 0 0 1 10 1.15h4A2.85 2.85 0 0 1 16.85 4v2Z"}),o.jsx("rect",{x:"2.15",y:"5.15",width:"19.7",height:"1.7",rx:"0.85"}),o.jsx("path",{fillRule:"evenodd",d:"M4.15 6.85h15.7V20a2.85 2.85 0 0 1-2.85 2.85h-10A2.85 2.85 0 0 1 4.15 20ZM9.15 11a0.85 0.85 0 0 1 1.7 0v6a0.85 0.85 0 0 1-1.7 0ZM13.15 11a0.85 0.85 0 0 1 1.7 0v6a0.85 0.85 0 0 1-1.7 0Z"})]})}function M({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M4 4h5l2 2h9a1 1 0 0 1 1 1v2H3V5a1 1 0 0 1 1-1z"}),o.jsx("path",{d:"M2 9h20l-2 11H4L2 9z"}),o.jsx("path",{d:"M8 14h8",strokeDasharray:"2 2",opacity:"0.5"})]})}function y({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("line",{x1:"12",y1:"17.2",x2:"12",y2:"12.3",strokeWidth:2.6}),o.jsx("circle",{cx:"12",cy:"7.4",r:"1.6",fill:"currentColor",stroke:"none"})]})}function C({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:o.jsx("path",{fillRule:"evenodd",d:"M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22ZM12 5.7a1.7 1.7 0 1 0 0 3.4 1.7 1.7 0 0 0 0-3.4ZM10.6 12.4a1.4 1.4 0 0 1 2.8 0v4.7a1.4 1.4 0 0 1-2.8 0Z"})})}function A({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),o.jsx("circle",{cx:"12",cy:"17",r:"1.2",fill:"currentColor",stroke:"none"})]})}function B({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:o.jsx("path",{fillRule:"evenodd",d:"M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22ZM8.24 8.63A4 4 0 1 1 12 14a1 1 0 0 1 0-2A2 2 0 1 0 10.12 9.32a1 1 0 0 1-1.88-.69ZM12 15.8a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4Z"})})}function W({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}),o.jsx("path",{d:"M22 12A10 10 0 0 0 12 2v10z"})]})}function Z({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M12 2v10"}),o.jsx("path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"})]})}function F({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"-1.5 -1.5 27 27",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.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"}),o.jsx("circle",{cx:"12",cy:"13",r:"4"})]})}function V({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),o.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]})}function H({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})})}function S({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"9.5",cy:"4",r:"2",opacity:"0.5"}),o.jsx("circle",{cx:"9.5",cy:"4",r:"3.5",opacity:"0.3"}),o.jsx("path",{d:"M8 13V5.5a1.5 1.5 0 0 1 3 0V12"}),o.jsx("path",{d:"M11 11.5v-2a1.5 1.5 0 0 1 3 0v2.5"}),o.jsx("path",{d:"M14 10.5a1.5 1.5 0 0 1 3 0v1.5"}),o.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 P({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:[o.jsx("circle",{cx:"12",cy:"5",r:"2"}),o.jsx("circle",{cx:"12",cy:"12",r:"2"}),o.jsx("circle",{cx:"12",cy:"19",r:"2"})]})}function R({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:[o.jsx("circle",{cx:"5",cy:"12",r:"2"}),o.jsx("circle",{cx:"12",cy:"12",r:"2"}),o.jsx("circle",{cx:"19",cy:"12",r:"2"})]})}function m({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M4 6h16"}),o.jsx("path",{d:"M4 12h16"}),o.jsx("path",{d:"M4 18h16"})]})}function E({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.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"}),o.jsx("line",{x1:"4",y1:"4",x2:"20",y2:"20"})]})}function D({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"11",cy:"11",r:"8"}),o.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}function Q({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("rect",{x:"8.4",y:"8.4",width:"12.6",height:"12.6",rx:"1.8"}),o.jsx("path",{d:"M4.8 15.6c-.99 0-1.8-.81-1.8-1.8V4.8c0-.99.81-1.8 1.8-1.8h9c.99 0 1.8.81 1.8 1.8"})]})}function T({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("rect",{x:"8.4",y:"8.4",width:"12.6",height:"12.6",rx:"1.8"}),o.jsx("path",{d:"M4.8 15.6c-.99 0-1.8-.81-1.8-1.8V4.8c0-.99.81-1.8 1.8-1.8h9c.99 0 1.8.81 1.8 1.8",fill:"none"})]})}function U({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M3 21h18"}),o.jsx("path",{d:"M12 3v14"}),o.jsx("path",{d:"M7 12l5 5 5-5"})]})}function b({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.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 K({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"4.5"}),o.jsx("path",{d:"M12 4.5V2"}),o.jsx("path",{d:"M19.5 12H22"}),o.jsx("path",{d:"M12 19.5V22"}),o.jsx("path",{d:"M4.5 12H2"}),o.jsx("path",{d:"M17.3 6.7 19.07 4.93"}),o.jsx("path",{d:"M6.7 6.7 4.93 4.93"}),o.jsx("path",{d:"M6.7 17.3 4.93 19.07"}),o.jsx("path",{d:"M17.3 17.3 19.07 19.07"})]})}function q({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"12",cy:"12",r:"4.5"}),o.jsx("path",{d:"M12 4.5V2"}),o.jsx("path",{d:"M19.5 12H22"}),o.jsx("path",{d:"M12 19.5V22"}),o.jsx("path",{d:"M4.5 12H2"}),o.jsx("path",{d:"M17.3 6.7 19.07 4.93"}),o.jsx("path",{d:"M6.7 6.7 4.93 4.93"}),o.jsx("path",{d:"M6.7 17.3 4.93 19.07"}),o.jsx("path",{d:"M17.3 17.3 19.07 19.07"})]})}function G({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.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 J({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.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 N({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.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"}),o.jsx("path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}),o.jsx("path",{d:"M7 3v4a1 1 0 0 0 1 1h7"})]})}function O({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.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"}),o.jsx("path",{d:"M15.417 12a3.417 3.417 0 11-6.833 0 3.417 3.417 0 016.833 0z"})]})}function X({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),o.jsx("path",{d:"m8.5 9.5 2.5 2.5-2.5 2.5"}),o.jsx("path",{d:"M13.5 14.5h2.5"})]})}function Y({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("circle",{cx:"12",cy:"6.42",r:"4.47"}),o.jsx("path",{d:"M20.94 22.05v-2.23a4.47 4.47 0 0 0-4.47-4.47H7.53a4.47 4.47 0 0 0-4.47 4.47v2.23"})]})}function _({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.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"})})}function $({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.jsx("path",{d:"M13.11 3.14A1.2 1.2 0 0 0 10.89 3.14L8.73 8.33L3.12 8.78A1.2 1.2 0 0 0 2.44 10.89L6.71 14.55L5.41 20.02A1.2 1.2 0 0 0 7.2 21.32L12 18.39L16.8 21.32A1.2 1.2 0 0 0 18.59 20.02L17.29 14.55L21.56 10.89A1.2 1.2 0 0 0 20.88 8.78L15.27 8.33Z"})})}function z({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.jsx("path",{d:"M4.79 4.8A1.92 1.95 0 0 1 7.71 3.14L19.18 10.34A1.92 1.95 0 0 1 19.18 13.66L7.71 20.86A1.92 1.95 0 0 1 4.79 19.2Z"})})}function o1({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M4.85 4.8A1.9 1.95 0 0 1 6.75 2.85L7.63 2.85A1.9 1.95 0 0 1 9.53 4.8L9.53 19.2A1.9 1.95 0 0 1 7.63 21.15L6.75 21.15A1.9 1.95 0 0 1 4.85 19.2Z"}),o.jsx("path",{d:"M14.47 4.8A1.9 1.95 0 0 1 16.37 2.85L17.25 2.85A1.9 1.95 0 0 1 19.15 4.8L19.15 19.2A1.9 1.95 0 0 1 17.25 21.15L16.37 21.15A1.9 1.95 0 0 1 14.47 19.2Z"})]})}function n1({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:o.jsx("path",{d:"M4.85 6.75A1.9 1.9 0 0 1 6.75 4.85L17.25 4.85A1.9 1.9 0 0 1 19.15 6.75L19.15 17.25A1.9 1.9 0 0 1 17.25 19.15L6.75 19.15A1.9 1.9 0 0 1 4.85 17.25Z"})})}function r1({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:o.jsx("path",{d:"M4 4A2 2 0 0 1 7.05 2.3L20.05 10.3A2 2 0 0 1 20.05 13.7L7.05 21.7A2 2 0 0 1 4 20Z"})})}function e1({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:[o.jsx("path",{d:"M4 4A2 2 0 0 1 6 2L7 2A2 2 0 0 1 9 4L9 20A2 2 0 0 1 7 22L6 22A2 2 0 0 1 4 20Z"}),o.jsx("path",{d:"M15 4A2 2 0 0 1 17 2L18 2A2 2 0 0 1 20 4L20 20A2 2 0 0 1 18 22L17 22A2 2 0 0 1 15 20Z"})]})}function t1({size:n=24,className:r,style:e}){return o.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor",className:r,style:e,children:o.jsx("path",{d:"M4 6A2 2 0 0 1 6 4L18 4A2 2 0 0 1 20 6L20 18A2 2 0 0 1 18 20L6 20A2 2 0 0 1 4 18Z"})})}function i1({size:n=24,className:r,style:e}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:r,style:e,children:[o.jsx("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z"}),o.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13.2"}),o.jsx("circle",{cx:"12",cy:"17",r:"1.2",fill:"currentColor",stroke:"none"})]})}exports.CameraIcon=F;exports.ChevronDownIcon=p;exports.ChevronLeftIcon=k;exports.ChevronRightIcon=j;exports.CloseIcon=s;exports.ConsoleIcon=X;exports.CopyFilledIcon=T;exports.CopyIcon=Q;exports.DoubleClickIcon=S;exports.DownloadIcon=U;exports.EditIcon=w;exports.EmptyFolderIcon=M;exports.ExternalLinkIcon=c;exports.EyeHiddenIcon=E;exports.FilterIcon=b;exports.HideAppsIcon=h;exports.HistoryIcon=f;exports.InfoFilledIcon=C;exports.InfoIcon=y;exports.KeyIcon=a;exports.LockIcon=x;exports.MenuIcon=m;exports.MinusIcon=H;exports.MoonFilledIcon=J;exports.MoonIcon=G;exports.MoreHorizontalIcon=R;exports.MoreIcon=P;exports.PauseFilledIcon=e1;exports.PauseIcon=o1;exports.PieChartIcon=W;exports.PlayFilledIcon=r1;exports.PlayIcon=z;exports.PlusIcon=V;exports.PowerIcon=Z;exports.QuestionFilledIcon=B;exports.QuestionIcon=A;exports.RefreshIcon=v;exports.RevertIcon=L;exports.SaveIcon=N;exports.SearchIcon=D;exports.SettingsIcon=O;exports.StarFilledIcon=$;exports.StarIcon=_;exports.StopFilledIcon=t1;exports.StopIcon=n1;exports.SunFilledIcon=q;exports.SunIcon=K;exports.TrashFilledIcon=I;exports.TrashIcon=g;exports.UnlockIcon=u;exports.UserIcon=Y;exports.ViewIcon=d;exports.WarningIcon=i1;exports.WifiIcon=l;
|
package/dist/code-editor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
-
`).length,[
|
|
3
|
-
`),[
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),l=require("react"),h=require("./index-Isl3QL-U.cjs"),p=h.Prism;function $(){const t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation"},o={variable:/^\$\(|^`|\)$|`$/},e={bash:a,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:o},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/},r={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:e},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:e},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:e.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:e.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};a.inside=r;const S=o,i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"];for(const s of i)S[s]=r[s];return r}const I=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;p.languages.bash||(p.languages.bash=$());p.languages.protobuf||(p.languages.protobuf=p.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),p.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:I}},builtin:I,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}}));function B(t,a,o,e){if(!a)return{content:t,column:e+t.length};let r=e;return{content:Array.from(t,(i,s)=>{if(i===" ")return r++,n.jsx("span",{className:"nc-code-editor-whitespace","aria-hidden":"true",children:"·"},s);if(i===" "){const u=o-r%o;return r+=u,n.jsx("span",{className:"nc-code-editor-whitespace nc-code-editor-tab",style:{width:`${u}ch`},"aria-hidden":"true",children:"→"},s)}return r++,i}),column:r}}function U(t){var r;const a=(r=t.split(".").pop())==null?void 0:r.toLowerCase();if(!a)return;const o={ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",json:"json",yaml:"yaml",yml:"yaml",py:"python",rb:"ruby",rs:"rust",go:"go",java:"java",c:"c",cpp:"cpp",h:"c",hpp:"cpp",cs:"csharp",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",md:"markdown",markdown:"markdown",html:"html",htm:"html",css:"css",scss:"scss",sql:"sql",xml:"xml",svg:"xml",toml:"toml",ini:"ini",cfg:"ini",conf:"ini",properties:"properties",env:"properties",nginx:"nginx",dockerfile:"docker",makefile:"makefile",cmake:"cmake",lua:"lua",php:"php",pl:"perl",pm:"perl",r:"r",swift:"swift",kt:"kotlin",scala:"scala",dart:"dart",graphql:"graphql",proto:"protobuf"};if(o[a])return o[a];const e=t.toLowerCase();if(o[e])return o[e]}function R({value:t,onChange:a,language:o,readOnly:e=!1,minHeight:r=100,maxHeight:S,lineNumbers:i=!0,showWhitespace:s=!1,tabSize:u=8,colorTheme:E="auto",className:y="",style:O={}}){const f=Number.isFinite(u)?Math.max(1,Math.floor(u)):8,_=l.useMemo(()=>t.split(`
|
|
2
|
+
`).length,[t]),D=l.useMemo(()=>Array.from({length:_},(m,d)=>d+1).join(`
|
|
3
|
+
`),[_]),[C,L]=l.useState(!1);l.useEffect(()=>{const m=()=>{const c=getComputedStyle(document.documentElement).getPropertyValue("--nc-bg").trim();L(c.startsWith("#0")||c.startsWith("#1")||c.startsWith("#2")||c.startsWith("#3"))};m();const d=new MutationObserver(m);return d.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),()=>d.disconnect()},[]);const k=E==="dark"||E==="auto"&&C?h.themes_exports.vsDark:h.themes_exports.vsLight,P=l.useCallback(m=>{const d=o||"text";return n.jsx(h.Highlight2,{theme:k,code:m,language:d,children:({tokens:c,getLineProps:H,getTokenProps:G})=>n.jsx(n.Fragment,{children:c.map((w,A)=>{let T=0;return n.jsxs("div",{...H({line:w}),children:[w.map((N,j)=>{const x=G({token:N}),v=B(N.content,s,f,T);return T=v.column,n.jsx("span",{...x,style:{...x.style,opacity:e?.7:void 0},children:v.content},j)}),s&&A<c.length-1&&n.jsx("span",{className:"nc-code-editor-line-ending","aria-hidden":"true",children:"↵"})]},A)})})})},[k,o,f,e,s]),b=l.useRef(null),g=l.useRef(null),M=()=>{b.current&&g.current&&(g.current.scrollTop=b.current.scrollTop)};return n.jsxs("div",{className:`nc-code-editor ${y}`.trim(),style:{display:"flex",flexDirection:"column",gap:4,...O},children:[n.jsx("style",{children:`
|
|
4
4
|
.code-editor-container,
|
|
5
5
|
.code-editor-container * {
|
|
6
6
|
white-space: pre !important;
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
font-weight: inherit;
|
|
33
33
|
white-space: inherit;
|
|
34
34
|
}
|
|
35
|
-
`}),
|
|
35
|
+
`}),n.jsxs("div",{className:"nc-code-editor-container",style:{border:"1px solid var(--nc-border)",background:e?"var(--nc-bg-secondary)":"var(--nc-bg-tertiary)",minHeight:r,maxHeight:S,display:"flex"},children:[i&&n.jsx("div",{ref:g,style:{padding:"10px 8px",paddingRight:12,background:"var(--nc-bg-tertiary)",borderRight:"1px solid var(--nc-border)",color:"var(--nc-text-weak)",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:13,lineHeight:"1.5",textAlign:"right",userSelect:"none",whiteSpace:"pre",minWidth:40,overflow:"hidden"},children:D}),n.jsx("div",{ref:b,className:`code-editor-container${e?" read-only":""}`,style:{flex:1,overflowX:"auto",overflowY:"auto",color:"var(--nc-text)"},onScroll:M,children:n.jsx(h._default,{value:t,onValueChange:a,highlight:P,padding:10,readOnly:e,style:{fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:13,lineHeight:"1.5",minHeight:Math.max(r-2,0),background:"transparent",color:"var(--nc-text)",whiteSpace:"pre",minWidth:"max-content",tabSize:f},textareaClassName:"code-editor-textarea"})})]})]})}exports.CodeEditor=R;exports.default=R;exports.detectLanguage=U;
|