neatkit 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/{Button-DtrX4X-s.cjs → Button-6oWs-pyF.cjs} +1 -1
  2. package/dist/{Button-LmEHdRkW.js → Button-B0E-M8mp.js} +1 -1
  3. package/dist/Button.cjs +1 -1
  4. package/dist/Button.js +1 -1
  5. package/dist/Card.cjs +1 -1
  6. package/dist/Card.js +75 -2
  7. package/dist/Checkbox.cjs +1 -1
  8. package/dist/Checkbox.js +1 -1
  9. package/dist/Code-f0GWveGp.cjs +4 -0
  10. package/dist/{Code-Bp2X1k-g.js → Code-pROJjsiG.js} +57 -58
  11. package/dist/Code.cjs +1 -1
  12. package/dist/Code.js +1 -1
  13. package/dist/Icon-BFaHVAoQ.cjs +1 -0
  14. package/dist/{Icon-NT3kRJYz.js → Icon-Cj1s40xn.js} +122 -91
  15. package/dist/Icon.cjs +1 -1
  16. package/dist/Icon.js +1 -1
  17. package/dist/Input.cjs +1 -1
  18. package/dist/Input.js +1 -1
  19. package/dist/Markdown.cjs +1 -1
  20. package/dist/Markdown.js +76 -75
  21. package/dist/Modal.cjs +1 -1
  22. package/dist/Modal.js +1 -1
  23. package/dist/PinInput.cjs +1 -1
  24. package/dist/PinInput.js +228 -192
  25. package/dist/Select.cjs +1 -1
  26. package/dist/Select.js +1 -1
  27. package/dist/Sidebar.cjs +1 -1
  28. package/dist/Sidebar.js +427 -344
  29. package/dist/{Table-GeoE4h-u.js → Table-B2G8CHJ9.js} +111 -108
  30. package/dist/Table-Z8Q6XRkc.cjs +1 -0
  31. package/dist/Table.cjs +1 -1
  32. package/dist/Table.js +1 -1
  33. package/dist/components/Card/Card.d.ts +22 -23
  34. package/dist/components/Card/components/CardBody.d.ts +24 -0
  35. package/dist/components/Card/components/CardFooter.d.ts +24 -0
  36. package/dist/components/Card/components/CardHeader.d.ts +24 -0
  37. package/dist/components/Card/index.d.ts +1 -1
  38. package/dist/components/Code/Code.d.ts +9 -7
  39. package/dist/components/Code/index.d.ts +1 -1
  40. package/dist/components/Icon/icons/ChainIcon.d.ts +11 -0
  41. package/dist/components/Icon/utils/registry.d.ts +1 -0
  42. package/dist/components/PinInput/hooks/usePinInput.d.ts +1 -1
  43. package/dist/components/Sidebar/Sidebar.d.ts +5 -0
  44. package/dist/components/Sidebar/components/SidebarFooter.d.ts +5 -0
  45. package/dist/components/Sidebar/hooks/useContentBelow.d.ts +23 -0
  46. package/dist/components/Sidebar/utils/children.d.ts +16 -0
  47. package/dist/components/Table/Table.d.ts +8 -2
  48. package/dist/components/Table/index.d.ts +1 -1
  49. package/dist/style.css +1 -1
  50. package/package.json +1 -1
  51. package/dist/Card-CPq6dsut.js +0 -34
  52. package/dist/Card-CQ-8_1tO.cjs +0 -1
  53. package/dist/Code-B7s_rN0G.cjs +0 -4
  54. package/dist/Icon-CMSHMSDJ.cjs +0 -1
  55. package/dist/Table-Bjw9lUKS.cjs +0 -1
@@ -229,6 +229,36 @@ const m = l(function(t, e) {
229
229
  }
230
230
  );
231
231
  }), V = l(function(t, e) {
232
+ const { height: c, width: n, ...r } = t;
233
+ return /* @__PURE__ */ s(
234
+ "svg",
235
+ {
236
+ ...r,
237
+ ref: e,
238
+ xmlns: "http://www.w3.org/2000/svg",
239
+ width: n,
240
+ height: c,
241
+ viewBox: "0 0 14 14",
242
+ fill: "none",
243
+ children: [
244
+ /* @__PURE__ */ o(
245
+ "path",
246
+ {
247
+ fill: "currentColor",
248
+ d: "M13.42 2.312 11.666.576A2.02 2.02 0 0 0 8.85.568L6.904 2.467c-.78.76-.783 2-.009 2.763l1.113-1.068c-.113-.34.026-.73.301-1l1.239-1.208a1.01 1.01 0 0 1 1.409.005l1.053 1.04c.387.384.386 1.001-.004 1.383L10.767 5.59c-.262.256-.692.396-1.026.306l-1.09 1.07c.776.766 2.036.77 2.816.008l1.945-1.897c.781-.762.784-2 .008-2.765M6.293 9.261c.093.333-.055.763-.323 1.025l-1.157 1.13a1.027 1.027 0 0 1-1.434-.005l-1.074-1.06a.985.985 0 0 1 .005-1.408l1.158-1.13c.282-.274.687-.413 1.04-.296L5.626 6.41a2.057 2.057 0 0 0-2.869-.009L.879 8.235a1.97 1.97 0 0 0-.008 2.817l1.787 1.767a2.06 2.06 0 0 0 2.868.008l1.877-1.833a1.97 1.97 0 0 0 .008-2.816z"
249
+ }
250
+ ),
251
+ /* @__PURE__ */ o(
252
+ "path",
253
+ {
254
+ fill: "currentColor",
255
+ d: "M5.073 8.757a.68.68 0 0 0 .961.004l3.207-3.19a.678.678 0 1 0-.956-.964l-3.208 3.19a.68.68 0 0 0-.004.96"
256
+ }
257
+ )
258
+ ]
259
+ }
260
+ );
261
+ }), Z = l(function(t, e) {
232
262
  const { height: c, width: n, ...r } = t;
233
263
  return /* @__PURE__ */ o(
234
264
  "svg",
@@ -249,7 +279,7 @@ const m = l(function(t, e) {
249
279
  )
250
280
  }
251
281
  );
252
- }), Z = l(function(t, e) {
282
+ }), R = l(function(t, e) {
253
283
  const { height: c, width: n, ...r } = t;
254
284
  return /* @__PURE__ */ o(
255
285
  "svg",
@@ -272,7 +302,7 @@ const m = l(function(t, e) {
272
302
  )
273
303
  }
274
304
  );
275
- }), R = l(function(t, e) {
305
+ }), A = l(function(t, e) {
276
306
  const { height: c, width: n, ...r } = t;
277
307
  return /* @__PURE__ */ o(
278
308
  "svg",
@@ -296,7 +326,7 @@ const m = l(function(t, e) {
296
326
  )
297
327
  }
298
328
  );
299
- }), A = l(function(t, e) {
329
+ }), y = l(function(t, e) {
300
330
  const { height: c, width: n, ...r } = t;
301
331
  return /* @__PURE__ */ o(
302
332
  "svg",
@@ -320,7 +350,7 @@ const m = l(function(t, e) {
320
350
  )
321
351
  }
322
352
  );
323
- }), y = l(function(t, e) {
353
+ }), W = l(function(t, e) {
324
354
  const { height: c, width: n, ...r } = t;
325
355
  return /* @__PURE__ */ o(
326
356
  "svg",
@@ -344,7 +374,7 @@ const m = l(function(t, e) {
344
374
  )
345
375
  }
346
376
  );
347
- }), W = l(function(t, e) {
377
+ }), z = l(function(t, e) {
348
378
  const { height: c, width: n, ...r } = t;
349
379
  return /* @__PURE__ */ o(
350
380
  "svg",
@@ -368,7 +398,7 @@ const m = l(function(t, e) {
368
398
  )
369
399
  }
370
400
  );
371
- }), z = l(function(t, e) {
401
+ }), b = l(function(t, e) {
372
402
  const { height: c, width: n, ...r } = t;
373
403
  return /* @__PURE__ */ o(
374
404
  "svg",
@@ -383,7 +413,7 @@ const m = l(function(t, e) {
383
413
  children: /* @__PURE__ */ o("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5", clipRule: "evenodd" })
384
414
  }
385
415
  );
386
- }), b = l(function(t, e) {
416
+ }), j = l(function(t, e) {
387
417
  const { height: c, width: n, ...r } = t;
388
418
  return /* @__PURE__ */ o(
389
419
  "svg",
@@ -406,7 +436,7 @@ const m = l(function(t, e) {
406
436
  )
407
437
  }
408
438
  );
409
- }), j = l(function(t, e) {
439
+ }), q = l(function(t, e) {
410
440
  const { height: c, width: n, ...r } = t;
411
441
  return /* @__PURE__ */ o(
412
442
  "svg",
@@ -430,7 +460,7 @@ const m = l(function(t, e) {
430
460
  )
431
461
  }
432
462
  );
433
- }), q = l(function(t, e) {
463
+ }), G = l(function(t, e) {
434
464
  const { height: c, width: n, ...r } = t;
435
465
  return /* @__PURE__ */ o(
436
466
  "svg",
@@ -451,7 +481,7 @@ const m = l(function(t, e) {
451
481
  )
452
482
  }
453
483
  );
454
- }), G = l(function(t, e) {
484
+ }), S = l(function(t, e) {
455
485
  const { height: c, width: n, ...r } = t;
456
486
  return /* @__PURE__ */ s(
457
487
  "svg",
@@ -485,7 +515,7 @@ const m = l(function(t, e) {
485
515
  ]
486
516
  }
487
517
  );
488
- }), S = l(function(t, e) {
518
+ }), E = l(function(t, e) {
489
519
  const { height: c, width: n, ...r } = t;
490
520
  return /* @__PURE__ */ s(
491
521
  "svg",
@@ -515,7 +545,7 @@ const m = l(function(t, e) {
515
545
  ]
516
546
  }
517
547
  );
518
- }), E = l(function(t, e) {
548
+ }), D = l(function(t, e) {
519
549
  const { height: c, width: n, ...r } = t;
520
550
  return /* @__PURE__ */ o(
521
551
  "svg",
@@ -539,7 +569,7 @@ const m = l(function(t, e) {
539
569
  )
540
570
  }
541
571
  );
542
- }), D = l(function(t, e) {
572
+ }), F = l(function(t, e) {
543
573
  const { height: c, width: n, ...r } = t;
544
574
  return /* @__PURE__ */ o(
545
575
  "svg",
@@ -560,7 +590,7 @@ const m = l(function(t, e) {
560
590
  )
561
591
  }
562
592
  );
563
- }), F = l(function(t, e) {
593
+ }), T = l(function(t, e) {
564
594
  const { height: c, width: n, ...r } = t;
565
595
  return /* @__PURE__ */ o(
566
596
  "svg",
@@ -575,7 +605,7 @@ const m = l(function(t, e) {
575
605
  children: /* @__PURE__ */ o("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M12 5.5v4.867c0 .746 0 1.12-.14 1.405a1.3 1.3 0 0 1-.562.583c-.275.145-.635.145-1.355.145H4.557c-.72 0-1.08 0-1.355-.145a1.3 1.3 0 0 1-.562-.583c-.14-.285-.14-.659-.14-1.405V3.633c0-.746 0-1.12.14-1.405.123-.25.32-.455.562-.583.275-.145.635-.145 1.355-.145h3.586M12 5.5l-3.857-4M12 5.5H8.786a.655.655 0 0 1-.643-.667V1.5" })
576
606
  }
577
607
  );
578
- }), T = l(function(t, e) {
608
+ }), U = l(function(t, e) {
579
609
  const { height: c, width: n, ...r } = t;
580
610
  return /* @__PURE__ */ o(
581
611
  "svg",
@@ -590,7 +620,7 @@ const m = l(function(t, e) {
590
620
  children: /* @__PURE__ */ o("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M2.49 2.25H5.19c.413 0 .508.004.588.021q.133.03.243.093c.064.036.128.088.421.358l.098.09c.244.224.45.42.7.56q.232.13.486.205l.17.044c.278.061.564.058.912.058h2.702c.447 0 .74 0 .966.017.217.017.307.045.356.068a.75.75 0 0 1 .342.308c.013.024.04.084.056.27.018.198.019.459.019.872v5c0 .413-.001.675-.019.872-.016.186-.043.246-.056.27a.75.75 0 0 1-.342.309c-.049.023-.139.051-.356.067-.225.017-.52.018-.966.018H2.489c-.447 0-.74 0-.966-.018-.217-.016-.307-.044-.356-.067a.75.75 0 0 1-.342-.309c-.013-.024-.04-.084-.056-.27a11 11 0 0 1-.019-.872V3.786c0-.413.001-.675.019-.872.016-.186.043-.246.056-.27a.75.75 0 0 1 .342-.309c.049-.023.139-.051.356-.067.225-.017.52-.018.966-.018" })
591
621
  }
592
622
  );
593
- }), U = l(function(t, e) {
623
+ }), K = l(function(t, e) {
594
624
  const { height: c, width: n, ...r } = t;
595
625
  return /* @__PURE__ */ o(
596
626
  "svg",
@@ -613,7 +643,7 @@ const m = l(function(t, e) {
613
643
  )
614
644
  }
615
645
  );
616
- }), K = l(function(t, e) {
646
+ }), N = l(function(t, e) {
617
647
  const { height: c, width: n, ...r } = t;
618
648
  return /* @__PURE__ */ o(
619
649
  "svg",
@@ -634,7 +664,7 @@ const m = l(function(t, e) {
634
664
  )
635
665
  }
636
666
  );
637
- }), N = l(function(t, e) {
667
+ }), O = l(function(t, e) {
638
668
  const { height: c, width: n, ...r } = t;
639
669
  return /* @__PURE__ */ o(
640
670
  "svg",
@@ -657,7 +687,7 @@ const m = l(function(t, e) {
657
687
  )
658
688
  }
659
689
  );
660
- }), O = l(function(t, e) {
690
+ }), Q = l(function(t, e) {
661
691
  const { height: c, width: n, ...r } = t;
662
692
  return /* @__PURE__ */ o(
663
693
  "svg",
@@ -680,7 +710,7 @@ const m = l(function(t, e) {
680
710
  )
681
711
  }
682
712
  );
683
- }), Q = l(function(t, e) {
713
+ }), $ = l(function(t, e) {
684
714
  const { height: c, width: n, ...r } = t;
685
715
  return /* @__PURE__ */ o(
686
716
  "svg",
@@ -703,7 +733,7 @@ const m = l(function(t, e) {
703
733
  )
704
734
  }
705
735
  );
706
- }), $ = l(function(t, e) {
736
+ }), J = l(function(t, e) {
707
737
  const { height: c, width: n, ...r } = t;
708
738
  return /* @__PURE__ */ o(
709
739
  "svg",
@@ -724,7 +754,7 @@ const m = l(function(t, e) {
724
754
  )
725
755
  }
726
756
  );
727
- }), J = l(function(t, e) {
757
+ }), X = l(function(t, e) {
728
758
  const { height: c, width: n, ...r } = t;
729
759
  return /* @__PURE__ */ o(
730
760
  "svg",
@@ -745,7 +775,7 @@ const m = l(function(t, e) {
745
775
  )
746
776
  }
747
777
  );
748
- }), X = l(function(t, e) {
778
+ }), Y = l(function(t, e) {
749
779
  const { height: c, width: n, ...r } = t;
750
780
  return /* @__PURE__ */ o(
751
781
  "svg",
@@ -766,7 +796,7 @@ const m = l(function(t, e) {
766
796
  )
767
797
  }
768
798
  );
769
- }), Y = l(function(t, e) {
799
+ }), _ = l(function(t, e) {
770
800
  const { height: c, width: n, ...r } = t;
771
801
  return /* @__PURE__ */ s(
772
802
  "svg",
@@ -793,7 +823,7 @@ const m = l(function(t, e) {
793
823
  ]
794
824
  }
795
825
  );
796
- }), _ = l(function(t, e) {
826
+ }), o0 = l(function(t, e) {
797
827
  const { height: c, width: n, ...r } = t;
798
828
  return /* @__PURE__ */ s(
799
829
  "svg",
@@ -834,7 +864,7 @@ const m = l(function(t, e) {
834
864
  ]
835
865
  }
836
866
  );
837
- }), o0 = l(function(t, e) {
867
+ }), n0 = l(function(t, e) {
838
868
  const { height: c, width: n, ...r } = t;
839
869
  return /* @__PURE__ */ o(
840
870
  "svg",
@@ -857,7 +887,7 @@ const m = l(function(t, e) {
857
887
  )
858
888
  }
859
889
  );
860
- }), n0 = l(function(t, e) {
890
+ }), r0 = l(function(t, e) {
861
891
  const { height: c, width: n, ...r } = t;
862
892
  return /* @__PURE__ */ o(
863
893
  "svg",
@@ -880,7 +910,7 @@ const m = l(function(t, e) {
880
910
  )
881
911
  }
882
912
  );
883
- }), r0 = l(function(t, e) {
913
+ }), t0 = l(function(t, e) {
884
914
  const { height: c, width: n, ...r } = t;
885
915
  return /* @__PURE__ */ s(
886
916
  "svg",
@@ -916,7 +946,7 @@ const m = l(function(t, e) {
916
946
  ]
917
947
  }
918
948
  );
919
- }), t0 = l(function(t, e) {
949
+ }), e0 = l(function(t, e) {
920
950
  const { height: c, width: n, ...r } = t;
921
951
  return /* @__PURE__ */ o(
922
952
  "svg",
@@ -937,7 +967,7 @@ const m = l(function(t, e) {
937
967
  )
938
968
  }
939
969
  );
940
- }), e0 = l(function(t, e) {
970
+ }), c0 = l(function(t, e) {
941
971
  const { height: c, width: n, ...r } = t;
942
972
  return /* @__PURE__ */ o(
943
973
  "svg",
@@ -960,7 +990,7 @@ const m = l(function(t, e) {
960
990
  )
961
991
  }
962
992
  );
963
- }), c0 = l(function(t, e) {
993
+ }), l0 = l(function(t, e) {
964
994
  const { height: c, width: n, ...r } = t;
965
995
  return /* @__PURE__ */ o(
966
996
  "svg",
@@ -981,7 +1011,7 @@ const m = l(function(t, e) {
981
1011
  )
982
1012
  }
983
1013
  );
984
- }), l0 = l(function(t, e) {
1014
+ }), i0 = l(function(t, e) {
985
1015
  const { height: c, width: n, ...r } = t;
986
1016
  return /* @__PURE__ */ o(
987
1017
  "svg",
@@ -1004,7 +1034,7 @@ const m = l(function(t, e) {
1004
1034
  )
1005
1035
  }
1006
1036
  );
1007
- }), i0 = l(function(t, e) {
1037
+ }), s0 = l(function(t, e) {
1008
1038
  const { height: c, width: n, ...r } = t;
1009
1039
  return /* @__PURE__ */ s(
1010
1040
  "svg",
@@ -1024,7 +1054,7 @@ const m = l(function(t, e) {
1024
1054
  ]
1025
1055
  }
1026
1056
  );
1027
- }), s0 = l(function(t, e) {
1057
+ }), h0 = l(function(t, e) {
1028
1058
  const { height: c, width: n, ...r } = t;
1029
1059
  return /* @__PURE__ */ o(
1030
1060
  "svg",
@@ -1042,7 +1072,7 @@ const m = l(function(t, e) {
1042
1072
  ] })
1043
1073
  }
1044
1074
  );
1045
- }), h0 = l(function(t, e) {
1075
+ }), a0 = l(function(t, e) {
1046
1076
  const { height: c, width: n, ...r } = t;
1047
1077
  return /* @__PURE__ */ o(
1048
1078
  "svg",
@@ -1065,7 +1095,7 @@ const m = l(function(t, e) {
1065
1095
  )
1066
1096
  }
1067
1097
  );
1068
- }), a0 = l(function(t, e) {
1098
+ }), v0 = l(function(t, e) {
1069
1099
  const { height: c, width: n, ...r } = t;
1070
1100
  return /* @__PURE__ */ s(
1071
1101
  "svg",
@@ -1083,7 +1113,7 @@ const m = l(function(t, e) {
1083
1113
  ]
1084
1114
  }
1085
1115
  );
1086
- }), v0 = l(function(t, e) {
1116
+ }), w0 = l(function(t, e) {
1087
1117
  const { height: c, width: n, ...r } = t;
1088
1118
  return /* @__PURE__ */ o(
1089
1119
  "svg",
@@ -1104,7 +1134,7 @@ const m = l(function(t, e) {
1104
1134
  )
1105
1135
  }
1106
1136
  );
1107
- }), w0 = l(function(t, e) {
1137
+ }), d0 = l(function(t, e) {
1108
1138
  const { height: c, width: n, ...r } = t;
1109
1139
  return /* @__PURE__ */ s(
1110
1140
  "svg",
@@ -1128,7 +1158,7 @@ const m = l(function(t, e) {
1128
1158
  ]
1129
1159
  }
1130
1160
  );
1131
- }), d0 = l(function(t, e) {
1161
+ }), g0 = l(function(t, e) {
1132
1162
  const { height: c, width: n, ...r } = t;
1133
1163
  return /* @__PURE__ */ o(
1134
1164
  "svg",
@@ -1143,7 +1173,7 @@ const m = l(function(t, e) {
1143
1173
  children: /* @__PURE__ */ o("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "M4.031 4.031h.006M6.195 1.5H4.5c-1.05 0-1.575 0-1.976.204-.353.18-.64.467-.82.82-.204.4-.204.926-.204 1.976v1.695c0 .458 0 .688.052.904.046.19.121.374.224.542.116.189.278.35.603.675l2.937 2.938c.743.742 1.114 1.114 1.542 1.253.377.122.782.122 1.159 0 .428-.14.8-.51 1.542-1.253l1.695-1.695c.742-.743 1.114-1.114 1.253-1.542a1.88 1.88 0 0 0 0-1.159c-.14-.428-.51-.8-1.253-1.542L8.316 2.38c-.324-.325-.486-.487-.675-.603a1.9 1.9 0 0 0-.542-.224C6.883 1.5 6.653 1.5 6.195 1.5M4.344 4.031a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0" })
1144
1174
  }
1145
1175
  );
1146
- }), g0 = l(function(t, e) {
1176
+ }), u0 = l(function(t, e) {
1147
1177
  const { height: c, width: n, ...r } = t;
1148
1178
  return /* @__PURE__ */ o(
1149
1179
  "svg",
@@ -1166,7 +1196,7 @@ const m = l(function(t, e) {
1166
1196
  )
1167
1197
  }
1168
1198
  );
1169
- }), u0 = l(function(t, e) {
1199
+ }), f0 = l(function(t, e) {
1170
1200
  const { height: c, width: n, ...r } = t;
1171
1201
  return /* @__PURE__ */ o(
1172
1202
  "svg",
@@ -1187,7 +1217,7 @@ const m = l(function(t, e) {
1187
1217
  )
1188
1218
  }
1189
1219
  );
1190
- }), f0 = l(function(t, e) {
1220
+ }), p0 = l(function(t, e) {
1191
1221
  const { height: c, width: n, ...r } = t;
1192
1222
  return /* @__PURE__ */ s(
1193
1223
  "svg",
@@ -1222,7 +1252,7 @@ const m = l(function(t, e) {
1222
1252
  ]
1223
1253
  }
1224
1254
  );
1225
- }), p0 = l(function(t, e) {
1255
+ }), C0 = l(function(t, e) {
1226
1256
  const { height: c, width: n, ...r } = t;
1227
1257
  return /* @__PURE__ */ o(
1228
1258
  "svg",
@@ -1243,61 +1273,62 @@ const m = l(function(t, e) {
1243
1273
  )
1244
1274
  }
1245
1275
  );
1246
- }), C0 = {
1247
- projects: i0,
1248
- chat: V,
1276
+ }), m0 = {
1277
+ projects: s0,
1278
+ chat: Z,
1249
1279
  articles: x,
1250
- mail: r0,
1251
- github: N,
1252
- globe: O,
1253
- google: Q,
1254
- microsoft: t0,
1280
+ mail: t0,
1281
+ github: O,
1282
+ globe: Q,
1283
+ google: $,
1284
+ microsoft: e0,
1255
1285
  bing: L,
1256
1286
  apple: m,
1257
- twitter: g0,
1258
- facebook: D,
1259
- instagram: _,
1260
- linkedin: n0,
1261
- reddit: h0,
1262
- exit: E,
1287
+ twitter: u0,
1288
+ facebook: F,
1289
+ instagram: o0,
1290
+ linkedin: r0,
1291
+ reddit: a0,
1292
+ exit: D,
1263
1293
  camera: P,
1264
- "qr-code": s0,
1265
- download: j,
1266
- save: v0,
1267
- pencil: c0,
1294
+ "qr-code": h0,
1295
+ download: q,
1296
+ save: w0,
1297
+ pencil: l0,
1268
1298
  "arrow-left": I,
1269
1299
  "arrow-right": M,
1270
- cross: b,
1271
- checkmark: Z,
1272
- plus: l0,
1273
- minus: e0,
1274
- window: p0,
1275
- user: u0,
1276
- duplicate: q,
1277
- eye: G,
1278
- "eye-off": S,
1279
- signal: w0,
1300
+ cross: j,
1301
+ checkmark: R,
1302
+ plus: i0,
1303
+ minus: c0,
1304
+ window: C0,
1305
+ chain: V,
1306
+ user: f0,
1307
+ duplicate: G,
1308
+ eye: S,
1309
+ "eye-off": E,
1310
+ signal: d0,
1280
1311
  audio: k,
1281
- hardware: $,
1312
+ hardware: J,
1282
1313
  burger: B,
1283
- repository: a0,
1284
- "chevron-down": R,
1285
- "chevron-up": W,
1286
- "chevron-left": A,
1287
- "chevron-right": y,
1314
+ repository: v0,
1315
+ "chevron-down": A,
1316
+ "chevron-up": z,
1317
+ "chevron-left": y,
1318
+ "chevron-right": W,
1288
1319
  branch: H,
1289
- commit: z,
1290
- folder: T,
1291
- file: F,
1292
- image: X,
1293
- tag: d0,
1294
- key: o0,
1295
- gear: U,
1296
- git: K,
1297
- home: J,
1298
- info: Y,
1299
- warning: f0
1300
- }, I0 = l(function(t, e) {
1320
+ commit: b,
1321
+ folder: U,
1322
+ file: T,
1323
+ image: Y,
1324
+ tag: g0,
1325
+ key: n0,
1326
+ gear: K,
1327
+ git: N,
1328
+ home: X,
1329
+ info: _,
1330
+ warning: p0
1331
+ }, M0 = l(function(t, e) {
1301
1332
  const {
1302
1333
  "aria-hidden": c,
1303
1334
  "aria-label": n,
@@ -1309,7 +1340,7 @@ const m = l(function(t, e) {
1309
1340
  style: f,
1310
1341
  type: v,
1311
1342
  ...p
1312
- } = t, w = C0[v];
1343
+ } = t, w = m0[v];
1313
1344
  if (!w)
1314
1345
  return console.warn(`Icon type "${v}" not found`), null;
1315
1346
  const d = n !== void 0 || r !== void 0;
@@ -1329,5 +1360,5 @@ const m = l(function(t, e) {
1329
1360
  });
1330
1361
  });
1331
1362
  export {
1332
- I0 as I
1363
+ M0 as I
1333
1364
  };
package/dist/Icon.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Icon-CMSHMSDJ.cjs");exports.default=e.Icon;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Icon-BFaHVAoQ.cjs");exports.default=e.Icon;
package/dist/Icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { I as f } from "./Icon-NT3kRJYz.js";
1
+ import { I as f } from "./Icon-Cj1s40xn.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/dist/Input.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),t=require("react"),x=require("./Button-DtrX4X-s.cjs"),$=require("./Spinner-BE0F4y2S.cjs"),S=require("./aria-DM-xYEHQ.cjs"),F=require("./reference-C2guRuR0.cjs");function v(e){return Array.isArray(e)?e.length>0:e!=null&&String(e).length>0}function G(e,s,n){s.current=e,F.assignElementReference(n,e)}function J(e){var n;const s=(n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"))==null?void 0:n.set;s?s.call(e,""):e.value=""}const K=t.forwardRef(function(s,n){const{"aria-busy":V,"aria-invalid":b,className:m,clearable:y=!1,defaultValue:g,disabled:C=!1,id:A,invalid:h=!1,loading:l=!1,onChange:d,readOnly:p=!1,style:N,type:r="text",value:o,...P}=s,q=t.useId(),I=t.useRef(null),[O,R]=t.useState(v(g)),[c,w]=t.useState(!1);t.useEffect(()=>{r!=="password"&&w(!1)},[r]);const B=t.useCallback(a=>G(a,I,n),[n]),f=A??`${q}-control`,u=C||l,T=h||S.hasInvalidState(b),E=o!==void 0?v(o):O,D=r==="password"&&c?"text":r,H=S.resolveAriaInvalid(h,b),_=y&&E&&!p&&!u,j=r==="password"&&!l,k=_||j;function M(a){o===void 0&&R(v(a.currentTarget.value)),d==null||d(a)}function U(){const a=I.current;a&&(J(a),a.dispatchEvent(new Event("input",{bubbles:!0})),a.focus())}function z(){w(a=>!a)}return i.jsxs("div",{className:["nk-input",m].filter(Boolean).join(" "),"data-clearable":y||void 0,"data-disabled":u||void 0,"data-invalid":T||void 0,"data-loading":l||void 0,"data-read-only":p||void 0,"data-has-trailing-action":k||void 0,style:N,children:[i.jsx("input",{...P,ref:B,"aria-busy":l?!0:V,"aria-invalid":H,className:"nk-input__control",defaultValue:g,disabled:u,id:f,onChange:M,readOnly:p,type:D,value:o}),k?i.jsxs("span",{className:"nk-input__trailing",children:[_?i.jsx(x.Button,{"aria-controls":f,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,j?i.jsx(x.Button,{"aria-controls":f,"aria-label":c?"Hide password":"Show password","aria-pressed":c,className:"nk-input__action",disabled:u,icon:c?"eye-off":"eye",onClick:z,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,l?i.jsx($.Spinner,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})});exports.default=K;
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),t=require("react"),x=require("./Button-6oWs-pyF.cjs"),$=require("./Spinner-BE0F4y2S.cjs"),S=require("./aria-DM-xYEHQ.cjs"),F=require("./reference-C2guRuR0.cjs");function v(e){return Array.isArray(e)?e.length>0:e!=null&&String(e).length>0}function G(e,s,n){s.current=e,F.assignElementReference(n,e)}function J(e){var n;const s=(n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"))==null?void 0:n.set;s?s.call(e,""):e.value=""}const K=t.forwardRef(function(s,n){const{"aria-busy":V,"aria-invalid":b,className:m,clearable:y=!1,defaultValue:g,disabled:C=!1,id:A,invalid:h=!1,loading:l=!1,onChange:d,readOnly:p=!1,style:N,type:r="text",value:o,...P}=s,q=t.useId(),I=t.useRef(null),[O,R]=t.useState(v(g)),[c,w]=t.useState(!1);t.useEffect(()=>{r!=="password"&&w(!1)},[r]);const B=t.useCallback(a=>G(a,I,n),[n]),f=A??`${q}-control`,u=C||l,T=h||S.hasInvalidState(b),E=o!==void 0?v(o):O,D=r==="password"&&c?"text":r,H=S.resolveAriaInvalid(h,b),_=y&&E&&!p&&!u,j=r==="password"&&!l,k=_||j;function M(a){o===void 0&&R(v(a.currentTarget.value)),d==null||d(a)}function U(){const a=I.current;a&&(J(a),a.dispatchEvent(new Event("input",{bubbles:!0})),a.focus())}function z(){w(a=>!a)}return i.jsxs("div",{className:["nk-input",m].filter(Boolean).join(" "),"data-clearable":y||void 0,"data-disabled":u||void 0,"data-invalid":T||void 0,"data-loading":l||void 0,"data-read-only":p||void 0,"data-has-trailing-action":k||void 0,style:N,children:[i.jsx("input",{...P,ref:B,"aria-busy":l?!0:V,"aria-invalid":H,className:"nk-input__control",defaultValue:g,disabled:u,id:f,onChange:M,readOnly:p,type:D,value:o}),k?i.jsxs("span",{className:"nk-input__trailing",children:[_?i.jsx(x.Button,{"aria-controls":f,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,j?i.jsx(x.Button,{"aria-controls":f,"aria-label":c?"Hide password":"Show password","aria-pressed":c,className:"nk-input__action",disabled:u,icon:c?"eye-off":"eye",onClick:z,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,l?i.jsx($.Spinner,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})});exports.default=K;
package/dist/Input.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsxs as _, jsx as d } from "react/jsx-runtime";
3
3
  import { forwardRef as F, useId as G, useRef as J, useState as V, useEffect as K, useCallback as L } from "react";
4
- import { B as C } from "./Button-LmEHdRkW.js";
4
+ import { B as C } from "./Button-B0E-M8mp.js";
5
5
  import { S as M } from "./Spinner-CmxlDlOk.js";
6
6
  import { h as Q, r as W } from "./aria-Bv-xVREf.js";
7
7
  import { a as X } from "./reference-CXMr27nM.js";
package/dist/Markdown.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),M=require("react"),G=require("react-markdown"),W=require("rehype-raw"),H=require("rehype-sanitize"),V=require("rehype-slug"),J=require("remark-gfm"),Y=require("./Alert-LJDkNUqH.cjs"),X=require("./Code-B7s_rN0G.cjs"),Q=require("./Divider-C7XGlr26.cjs"),_=require("./Table-Bjw9lUKS.cjs"),k=require("./Text-DWYlIcPj.cjs"),Z={bash:"Shell",c:"C","c++":"C++",cpp:"C++",css:"CSS",go:"Go",golang:"Go",html:"HTML",js:"JavaScript",javascript:"JavaScript",jsx:"JavaScript",json:"JSON",markdown:"Markdown",md:"Markdown",py:"Python",python:"Python",rb:"Ruby",ruby:"Ruby",rs:"Rust",rust:"Rust",sh:"Shell",shell:"Shell",sql:"SQL",ts:"TypeScript",tsx:"TypeScript",typescript:"TypeScript",xml:"HTML",yaml:"YAML",yml:"YAML"};function ee(e){var a;const o=(a=e==null?void 0:e.split(/\s+/).find(f=>f.startsWith("language-")))==null?void 0:a.slice(9).toLowerCase();return o?Z[o]:void 0}const A="md-",B=["a","blockquote","br","code","del","em","h1","h2","h3","h4","h5","h6","hr","img","input","li","ol","p","picture","pre","section","source","strong","sup","table","tbody","td","th","thead","tr","ul"],ne={...H.defaultSchema,allowComments:!1,allowDoctypes:!1,ancestors:{...H.defaultSchema.ancestors,source:["picture"]},attributes:{"*":["dir","id","lang","title"],a:["ariaDescribedBy","ariaLabel","dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href","hrefLang"],code:[["className",/^language-[\w+-]+$/]],h2:[["className","sr-only"]],img:["alt","height","src","srcSet","width"],input:["checked",["disabled",!0],"readOnly",["type","checkbox"]],li:[["className","task-list-item"]],ol:["start",["className","contains-task-list"]],section:["dataFootnotes",["className","footnotes"]],source:["media","srcSet","type"],td:["align","colSpan","rowSpan"],th:["align","colSpan","rowSpan","scope"],ul:[["className","contains-task-list"]]},clobber:H.defaultSchema.clobber,clobberPrefix:A,strip:["script","style"],tagNames:[...B]};function re(e,o){const a=o.flags.replace(/[gy]/g,"");return new RegExp(o.source,a).test(e)}function te(e){if(!e)return null;try{const o=new URL(e);return o.protocol!=="http:"&&o.protocol!=="https:"||o.username||o.password?null:o}catch{return null}}function R(e,o,a){if(e.includes("\\")||/[\u0000-\u0020\u007f]/.test(e)||o===void 0)return;const f=/^[a-z][a-z\d+.-]*:/i.test(e),m=e.startsWith("//");if(o==="*")return!f&&!m||/^https?:/i.test(e)||m?e:void 0;const s=Array.isArray(o)?o:[o],t=te(a);try{let n=null;if(f?n=new URL(e):t&&(n=new URL(e,t)),!n||n.protocol!=="http:"&&n.protocol!=="https:"||n.username||n.password)return;const r=n.href;return s.some(l=>re(r,l))?r:void 0}catch{return}}function v(e,o,a){if(!e)return;const m=e.split(",").map(s=>{const t=s.trim().split(/\s+/),[n,r]=t,u=r===void 0||/^(?:\d+w|(?:\d+(?:\.\d+)?|\.\d+)x)$/.test(r);if(t.length>2||!u||n===void 0||n.length===0)return null;const l=R(n,o,a);return l?`${l}${r?` ${r}`:""}`:null});if(!m.some(s=>s===null))return m.join(", ")}function oe(){function e(o){o.children=o.children.filter(a=>a.type!=="element"||a.tagName!=="input"||a.position===void 0),o.children.forEach(a=>{a.type==="element"&&e(a)})}return o=>e(o)}function S(e,o){return Array.isArray(e)?e.map(a=>typeof a=="string"?`${o}${a}`:a):typeof e=="string"?e.split(/\s+/).map(a=>`${o}${a}`).join(" "):e}function se(e){const{clobberPrefix:o,prefix:a}=e;function f(m){if(m.type==="element"){const{properties:s}=m;s.id=S(s.id,a),s.name=S(s.name,a),s.ariaDescribedBy=S(s.ariaDescribedBy,a),s.ariaLabelledBy=S(s.ariaLabelledBy,a),typeof s.href=="string"&&s.href.startsWith("#")&&(s.href=`#${o}${a}${s.href.slice(1)}`)}"children"in m&&m.children.forEach(f)}return m=>f(m)}function C(e){return e==="center"||e==="left"||e==="right"?e:void 0}function E(e){return e.type==="text"?e.value:"children"in e?e.children.map(E).join(""):""}function T(e){return typeof e=="string"?e:void 0}function ie(e){if(!e)return null;const o=e.children.find(n=>n.type==="element"&&n.tagName==="code");if(!o||e.children.some(n=>n!==o&&(n.type!=="text"||n.value.trim().length>0)))return null;const f=o.properties.className;let m;Array.isArray(f)?m=f.join(" "):typeof f=="string"&&(m=f);const s=o.children.map(E).join("").replace(/\n$/,"");return{codeProps:{className:m,dir:T(o.properties.dir),id:T(o.properties.id),lang:T(o.properties.lang),title:T(o.properties.title)},content:s}}function ae(e,o,a,f,m){return{a:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,...i}=t;return d.jsx("a",{...i,className:["nk-markdown__link",r].filter(Boolean).join(" "),onClick:m,children:n})},blockquote:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...l}=t;return d.jsx("blockquote",{...l,className:"nk-markdown__blockquote",children:n})},code:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,...i}=t;return d.jsx("code",{...i,className:["nk-markdown__inline-code",r].filter(Boolean).join(" "),children:n})},h1:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,ref:i,...c}=t;return d.jsx(k.Text,{...c,as:"h1",className:["nk-markdown__heading",r].filter(Boolean).join(" "),size:"heading",weight:"semibold",children:n})},h2:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,ref:i,...c}=t;return d.jsx(k.Text,{...c,as:"h2",className:["nk-markdown__heading",r!=null&&r.split(/\s+/).includes("sr-only")?"nk-markdown__visually-hidden":void 0].filter(Boolean).join(" "),size:"title",weight:"semibold",children:n})},h3:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,ref:i,...c}=t;return d.jsx(k.Text,{...c,as:"h3",className:["nk-markdown__heading",r].filter(Boolean).join(" "),size:"subtitle",weight:"semibold",children:n})},h4:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,ref:i,...c}=t;return d.jsx(k.Text,{...c,as:"h4",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"semibold",children:n})},h5:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,ref:i,...c}=t;return d.jsx(k.Text,{...c,as:"h5",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"semibold",children:n})},h6:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,ref:i,...c}=t;return d.jsx(k.Text,{...c,as:"h6",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"medium",children:n})},hr:function(t){const{dangerouslySetInnerHTML:n,node:r,...u}=t;return d.jsx(Q.Divider,{...u})},img:function(t){const{alt:n,className:r,dangerouslySetInnerHTML:u,node:l,src:i,srcSet:c,...b}=t,x=R(typeof i=="string"?i:"",e,o),L=v(c,e,o);return x?d.jsx("img",{...b,alt:n??"",className:["nk-markdown__image",r].filter(Boolean).join(" "),decoding:"async",loading:"lazy",src:x,srcSet:L}):n?d.jsx("span",{className:"nk-markdown__blocked-image",children:n}):null},input:function(t){const{checked:n,className:r,dangerouslySetInnerHTML:u,node:l,...i}=t;return d.jsxs(d.Fragment,{children:[d.jsx("input",{...i,"aria-label":n?"Completed task":"Incomplete task",checked:n,className:["nk-markdown__task-control","nk-markdown__visually-hidden",r].filter(Boolean).join(" "),disabled:!0,readOnly:!0,type:"checkbox"}),d.jsx("span",{"aria-hidden":"true",className:"nk-markdown__task",children:n?"☒":"☐"})]})},li:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,...i}=t,c=(r==null?void 0:r.split(/\s+/).includes("task-list-item"))??!1;return d.jsx("li",{...i,className:["nk-markdown__list-item",c?"nk-markdown__list-item--task":void 0].filter(Boolean).join(" "),children:n})},ol:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,...i}=t,c=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return d.jsx("ol",{...i,className:["nk-markdown__list","nk-markdown__list--ordered",c?"nk-markdown__list--tasks":void 0].filter(Boolean).join(" "),children:n})},p:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,ref:i,...c}=t;return d.jsx(k.Text,{...c,className:["nk-markdown__paragraph",r].filter(Boolean).join(" "),children:n})},picture:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,...i}=t;return d.jsx("picture",{...i,className:["nk-markdown__picture",r].filter(Boolean).join(" "),children:n})},pre:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,ref:l,...i}=t,c=ie(u);return c?d.jsx(X.Code,{code:c.content,codeProps:c.codeProps,language:ee(c.codeProps.className),maxHighlightLength:a,maxLineCount:f,preProps:i}):d.jsx("pre",{...i,children:n})},source:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,srcSet:l,...i}=t,c=v(l,e,o);return c?d.jsx("source",{...i,srcSet:c}):null},table:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...l}=t;return d.jsx(_.Table,{...l,children:n})},tbody:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...l}=t;return d.jsx(_.Table.Body,{...l,children:n})},td:function(t){const{align:n,children:r,dangerouslySetInnerHTML:u,node:l,style:i,...c}=t;return d.jsx(_.Table.Cell,{...c,align:C((i==null?void 0:i.textAlign)??n),children:r})},th:function(t){const{align:n,children:r,dangerouslySetInnerHTML:u,node:l,style:i,...c}=t;return d.jsx(_.Table.HeaderCell,{...c,align:C((i==null?void 0:i.textAlign)??n),children:r})},thead:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...l}=t;return d.jsx(_.Table.Head,{...l,children:n})},tr:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,onClick:l,...i}=t;return d.jsx(_.Table.Row,{...i,children:n})},ul:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:l,...i}=t,c=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return d.jsx("ul",{...i,className:["nk-markdown__list","nk-markdown__list--unordered",c?"nk-markdown__list--tasks":void 0].filter(Boolean).join(" "),children:n})}}}const le={clobberPrefix:""},ce=25e3,de="Markdown content exceeds the rendering limit.";function ue(e,o){if(!e.startsWith("#")||e.length===1)return null;let a=e.slice(1);try{a=decodeURIComponent(a)}catch{return null}return o.getElementById(a)}function me(e){const o=e.tabIndex<0&&!e.hasAttribute("tabindex");if(o&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),!!o){if(e.ownerDocument.activeElement!==e){e.removeAttribute("tabindex");return}e.addEventListener("blur",()=>e.removeAttribute("tabindex"),{once:!0})}}function fe(e,o){const a=e,f=new a.HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:o});e.dispatchEvent(f)}function he(e){return e===null?null:Number.isFinite(e)?Math.max(0,Math.floor(e)):0}const pe=M.forwardRef(function(o,a){const{allowedImageSources:f,anchorPrefix:m="",className:s,content:t,dangerouslySetInnerHTML:n,imageBaseUrl:r,maxCodeHighlightLength:u,maxCodeLineCount:l,maxContentLength:i=ce,rehypePlugins:c,remarkPlugins:b,scrollOffset:g=128,style:x,...L}=o,P=he(i),D=P!==null&&t.length>P,j=M.useCallback(h=>{var N;if(h.defaultPrevented||h.button!==0||h.metaKey||h.ctrlKey||h.shiftKey||h.altKey)return;const y=h.currentTarget.getAttribute("href");if(!y)return;const w=ue(y,h.currentTarget.ownerDocument);if(!w||typeof w.scrollIntoView!="function")return;const p=w.ownerDocument.defaultView;if(!p)return;h.preventDefault();const z=((N=p.matchMedia)==null?void 0:N.call(p,"(prefers-reduced-motion: reduce)").matches)??!1,F=g===null||z?"auto":"smooth",U=p.location.href,K=p.location.hash!==y;p.location.hash!==y&&p.history.pushState(p.history.state,"",y),me(w),w.scrollIntoView({behavior:F,block:"start"}),K&&fe(p,U)},[g]),O=M.useMemo(()=>ae(f,r,u,l,j),[f,j,r,u,l]),q=M.useMemo(()=>[J,...b??[]],[b]),$=M.useMemo(()=>[W,...c??[],oe,V,[se,{clobberPrefix:A,prefix:m}],[H,ne]],[m,c]),I={...x};if(g!==null){const h=Number.isFinite(g)?Math.max(0,g):0;I["--nk-markdown-scroll-offset"]=`${h}px`}return d.jsx("div",{...L,ref:a,className:["nk-markdown",s].filter(Boolean).join(" "),style:I,children:D?d.jsx(Y.Alert,{role:"alert",tone:"warning",children:de}):d.jsx(G,{allowedElements:B,components:O,rehypePlugins:$,remarkPlugins:q,remarkRehypeOptions:le,children:t})})});exports.default=pe;
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),M=require("react"),G=require("react-markdown"),W=require("rehype-raw"),H=require("rehype-sanitize"),V=require("rehype-slug"),J=require("remark-gfm"),Y=require("./Alert-LJDkNUqH.cjs"),X=require("./Code-f0GWveGp.cjs"),Q=require("./Divider-C7XGlr26.cjs"),_=require("./Table-Z8Q6XRkc.cjs"),k=require("./Text-DWYlIcPj.cjs"),Z={bash:"Shell",c:"C","c++":"C++",cpp:"C++",css:"CSS",go:"Go",golang:"Go",html:"HTML",js:"JavaScript",javascript:"JavaScript",jsx:"JavaScript",json:"JSON",markdown:"Markdown",md:"Markdown",py:"Python",python:"Python",rb:"Ruby",ruby:"Ruby",rs:"Rust",rust:"Rust",sh:"Shell",shell:"Shell",sql:"SQL",ts:"TypeScript",tsx:"TypeScript",typescript:"TypeScript",xml:"HTML",yaml:"YAML",yml:"YAML"};function ee(e){var a;const o=(a=e==null?void 0:e.split(/\s+/).find(f=>f.startsWith("language-")))==null?void 0:a.slice(9).toLowerCase();return o?Z[o]:void 0}const A="md-",B=["a","blockquote","br","code","del","em","h1","h2","h3","h4","h5","h6","hr","img","input","li","ol","p","picture","pre","section","source","strong","sup","table","tbody","td","th","thead","tr","ul"],ne={...H.defaultSchema,allowComments:!1,allowDoctypes:!1,ancestors:{...H.defaultSchema.ancestors,source:["picture"]},attributes:{"*":["dir","id","lang","title"],a:["ariaDescribedBy","ariaLabel","dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href","hrefLang"],code:[["className",/^language-[\w+-]+$/]],h2:[["className","sr-only"]],img:["alt","height","src","srcSet","width"],input:["checked",["disabled",!0],"readOnly",["type","checkbox"]],li:[["className","task-list-item"]],ol:["start",["className","contains-task-list"]],section:["dataFootnotes",["className","footnotes"]],source:["media","srcSet","type"],td:["align","colSpan","rowSpan"],th:["align","colSpan","rowSpan","scope"],ul:[["className","contains-task-list"]]},clobber:H.defaultSchema.clobber,clobberPrefix:A,strip:["script","style"],tagNames:[...B]};function re(e,o){const a=o.flags.replace(/[gy]/g,"");return new RegExp(o.source,a).test(e)}function te(e){if(!e)return null;try{const o=new URL(e);return o.protocol!=="http:"&&o.protocol!=="https:"||o.username||o.password?null:o}catch{return null}}function R(e,o,a){if(e.includes("\\")||/[\u0000-\u0020\u007f]/.test(e)||o===void 0)return;const f=/^[a-z][a-z\d+.-]*:/i.test(e),m=e.startsWith("//");if(o==="*")return!f&&!m||/^https?:/i.test(e)||m?e:void 0;const s=Array.isArray(o)?o:[o],t=te(a);try{let n=null;if(f?n=new URL(e):t&&(n=new URL(e,t)),!n||n.protocol!=="http:"&&n.protocol!=="https:"||n.username||n.password)return;const r=n.href;return s.some(c=>re(r,c))?r:void 0}catch{return}}function v(e,o,a){if(!e)return;const m=e.split(",").map(s=>{const t=s.trim().split(/\s+/),[n,r]=t,u=r===void 0||/^(?:\d+w|(?:\d+(?:\.\d+)?|\.\d+)x)$/.test(r);if(t.length>2||!u||n===void 0||n.length===0)return null;const c=R(n,o,a);return c?`${c}${r?` ${r}`:""}`:null});if(!m.some(s=>s===null))return m.join(", ")}function oe(){function e(o){o.children=o.children.filter(a=>a.type!=="element"||a.tagName!=="input"||a.position===void 0),o.children.forEach(a=>{a.type==="element"&&e(a)})}return o=>e(o)}function S(e,o){return Array.isArray(e)?e.map(a=>typeof a=="string"?`${o}${a}`:a):typeof e=="string"?e.split(/\s+/).map(a=>`${o}${a}`).join(" "):e}function se(e){const{clobberPrefix:o,prefix:a}=e;function f(m){if(m.type==="element"){const{properties:s}=m;s.id=S(s.id,a),s.name=S(s.name,a),s.ariaDescribedBy=S(s.ariaDescribedBy,a),s.ariaLabelledBy=S(s.ariaLabelledBy,a),typeof s.href=="string"&&s.href.startsWith("#")&&(s.href=`#${o}${a}${s.href.slice(1)}`)}"children"in m&&m.children.forEach(f)}return m=>f(m)}function C(e){return e==="center"||e==="left"||e==="right"?e:void 0}function E(e){return e.type==="text"?e.value:"children"in e?e.children.map(E).join(""):""}function T(e){return typeof e=="string"?e:void 0}function ie(e){if(!e)return null;const o=e.children.find(n=>n.type==="element"&&n.tagName==="code");if(!o||e.children.some(n=>n!==o&&(n.type!=="text"||n.value.trim().length>0)))return null;const f=o.properties.className;let m;Array.isArray(f)?m=f.join(" "):typeof f=="string"&&(m=f);const s=o.children.map(E).join("").replace(/\n$/,"");return{codeProps:{className:m,dir:T(o.properties.dir),id:T(o.properties.id),lang:T(o.properties.lang),title:T(o.properties.title)},content:s}}function ae(e,o,a,f,m){return{a:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("a",{...i,className:["nk-markdown__link",r].filter(Boolean).join(" "),onClick:m,children:n})},blockquote:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx("blockquote",{...c,className:"nk-markdown__blockquote",children:n})},code:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("code",{...i,className:["nk-markdown__inline-code",r].filter(Boolean).join(" "),children:n})},h1:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h1",className:["nk-markdown__heading",r].filter(Boolean).join(" "),size:"heading",weight:"semibold",children:n})},h2:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h2",className:["nk-markdown__heading",r!=null&&r.split(/\s+/).includes("sr-only")?"nk-markdown__visually-hidden":void 0].filter(Boolean).join(" "),size:"title",weight:"semibold",children:n})},h3:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h3",className:["nk-markdown__heading",r].filter(Boolean).join(" "),size:"subtitle",weight:"semibold",children:n})},h4:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h4",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"semibold",children:n})},h5:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h5",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"semibold",children:n})},h6:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,as:"h6",className:["nk-markdown__heading",r].filter(Boolean).join(" "),weight:"medium",children:n})},hr:function(t){const{dangerouslySetInnerHTML:n,node:r,...u}=t;return d.jsx(Q.Divider,{...u})},img:function(t){const{alt:n,className:r,dangerouslySetInnerHTML:u,node:c,src:i,srcSet:l,...b}=t,x=R(typeof i=="string"?i:"",e,o),L=v(l,e,o);return x?d.jsx("img",{...b,alt:n??"",className:["nk-markdown__image",r].filter(Boolean).join(" "),decoding:"async",loading:"lazy",src:x,srcSet:L}):n?d.jsx("span",{className:"nk-markdown__blocked-image",children:n}):null},input:function(t){const{checked:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsxs(d.Fragment,{children:[d.jsx("input",{...i,"aria-label":n?"Completed task":"Incomplete task",checked:n,className:["nk-markdown__task-control","nk-markdown__visually-hidden",r].filter(Boolean).join(" "),disabled:!0,readOnly:!0,type:"checkbox"}),d.jsx("span",{"aria-hidden":"true",className:"nk-markdown__task",children:n?"☒":"☐"})]})},li:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("task-list-item"))??!1;return d.jsx("li",{...i,className:["nk-markdown__list-item",l?"nk-markdown__list-item--task":void 0].filter(Boolean).join(" "),children:n})},ol:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return d.jsx("ol",{...i,className:["nk-markdown__list","nk-markdown__list--ordered",l?"nk-markdown__list--tasks":void 0].filter(Boolean).join(" "),children:n})},p:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,ref:i,...l}=t;return d.jsx(k.Text,{...l,className:["nk-markdown__paragraph",r].filter(Boolean).join(" "),children:n})},picture:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t;return d.jsx("picture",{...i,className:["nk-markdown__picture",r].filter(Boolean).join(" "),children:n})},pre:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,ref:c,...i}=t,l=ie(u);return l?d.jsx(X.Code,{code:l.content,codeProps:l.codeProps,language:ee(l.codeProps.className),maxHighlightLength:a,maxLineCount:f,preProps:i}):d.jsx("pre",{...i,children:n})},source:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,srcSet:c,...i}=t,l=v(c,e,o);return l?d.jsx("source",{...i,srcSet:l}):null},table:function(t){const{children:n,dangerouslySetInnerHTML:r,frame:u,node:c,...i}=t;return d.jsx(_.Table,{...i,children:n})},tbody:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx(_.Table.Body,{...c,children:n})},td:function(t){const{align:n,children:r,dangerouslySetInnerHTML:u,node:c,style:i,...l}=t;return d.jsx(_.Table.Cell,{...l,align:C((i==null?void 0:i.textAlign)??n),children:r})},th:function(t){const{align:n,children:r,dangerouslySetInnerHTML:u,node:c,style:i,...l}=t;return d.jsx(_.Table.HeaderCell,{...l,align:C((i==null?void 0:i.textAlign)??n),children:r})},thead:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,...c}=t;return d.jsx(_.Table.Head,{...c,children:n})},tr:function(t){const{children:n,dangerouslySetInnerHTML:r,node:u,onClick:c,...i}=t;return d.jsx(_.Table.Row,{...i,children:n})},ul:function(t){const{children:n,className:r,dangerouslySetInnerHTML:u,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return d.jsx("ul",{...i,className:["nk-markdown__list","nk-markdown__list--unordered",l?"nk-markdown__list--tasks":void 0].filter(Boolean).join(" "),children:n})}}}const le={clobberPrefix:""},ce=25e3,de="Markdown content exceeds the rendering limit.";function ue(e,o){if(!e.startsWith("#")||e.length===1)return null;let a=e.slice(1);try{a=decodeURIComponent(a)}catch{return null}return o.getElementById(a)}function me(e){const o=e.tabIndex<0&&!e.hasAttribute("tabindex");if(o&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),!!o){if(e.ownerDocument.activeElement!==e){e.removeAttribute("tabindex");return}e.addEventListener("blur",()=>e.removeAttribute("tabindex"),{once:!0})}}function fe(e,o){const a=e,f=new a.HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:o});e.dispatchEvent(f)}function he(e){return e===null?null:Number.isFinite(e)?Math.max(0,Math.floor(e)):0}const pe=M.forwardRef(function(o,a){const{allowedImageSources:f,anchorPrefix:m="",className:s,content:t,dangerouslySetInnerHTML:n,imageBaseUrl:r,maxCodeHighlightLength:u,maxCodeLineCount:c,maxContentLength:i=ce,rehypePlugins:l,remarkPlugins:b,scrollOffset:g=128,style:x,...L}=o,P=he(i),D=P!==null&&t.length>P,j=M.useCallback(h=>{var N;if(h.defaultPrevented||h.button!==0||h.metaKey||h.ctrlKey||h.shiftKey||h.altKey)return;const y=h.currentTarget.getAttribute("href");if(!y)return;const w=ue(y,h.currentTarget.ownerDocument);if(!w||typeof w.scrollIntoView!="function")return;const p=w.ownerDocument.defaultView;if(!p)return;h.preventDefault();const z=((N=p.matchMedia)==null?void 0:N.call(p,"(prefers-reduced-motion: reduce)").matches)??!1,F=g===null||z?"auto":"smooth",U=p.location.href,K=p.location.hash!==y;p.location.hash!==y&&p.history.pushState(p.history.state,"",y),me(w),w.scrollIntoView({behavior:F,block:"start"}),K&&fe(p,U)},[g]),O=M.useMemo(()=>ae(f,r,u,c,j),[f,j,r,u,c]),q=M.useMemo(()=>[J,...b??[]],[b]),$=M.useMemo(()=>[W,...l??[],oe,V,[se,{clobberPrefix:A,prefix:m}],[H,ne]],[m,l]),I={...x};if(g!==null){const h=Number.isFinite(g)?Math.max(0,g):0;I["--nk-markdown-scroll-offset"]=`${h}px`}return d.jsx("div",{...L,ref:a,className:["nk-markdown",s].filter(Boolean).join(" "),style:I,children:D?d.jsx(Y.Alert,{role:"alert",tone:"warning",children:de}):d.jsx(G,{allowedElements:B,components:O,rehypePlugins:$,remarkPlugins:q,remarkRehypeOptions:le,children:t})})});exports.default=pe;