neatkit 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Boundary.cjs +1 -1
- package/dist/Boundary.js +29 -29
- package/dist/Button-BV5OUXpc.js +101 -0
- package/dist/Button-DU4j_IED.cjs +1 -0
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +1 -1
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Code-JDb4VFl7.cjs → Code-B7s_rN0G.cjs} +1 -1
- package/dist/{Code-ClkozPlv.js → Code-Bp2X1k-g.js} +1 -4
- package/dist/Code.cjs +1 -1
- package/dist/Code.js +1 -1
- package/dist/Divider-C7XGlr26.cjs +1 -0
- package/dist/{Divider-BE15WVDI.js → Divider-DZgpYpr-.js} +1 -1
- package/dist/Divider.cjs +1 -1
- package/dist/Divider.js +1 -1
- package/dist/Icon-BIBzgznI.cjs +1 -0
- package/dist/{Icon-BoEUoOk7.js → Icon-CxK1wlGk.js} +98 -52
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/Input.cjs +1 -1
- package/dist/Input.js +1 -1
- package/dist/Markdown.cjs +1 -1
- package/dist/Markdown.js +108 -104
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +1 -1
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +147 -141
- package/dist/Select.cjs +1 -1
- package/dist/Select.js +2 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +310 -295
- package/dist/Table-CADupJEU.js +423 -0
- package/dist/Table-qetwZpTC.cjs +1 -0
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +1 -1
- package/dist/{Tooltip-B4bajPtk.cjs → Tooltip-B2d5ss7S.cjs} +1 -1
- package/dist/{Tooltip-BVqdnKK_.js → Tooltip-BK64rkxV.js} +1 -1
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/albert-sans-cb3e34c4.woff2 +0 -0
- package/dist/components/Icon/icons/GearIcon.d.ts +11 -0
- package/dist/components/Icon/icons/ImageIcon.d.ts +11 -0
- package/dist/components/Icon/utils/registry.d.ts +2 -0
- package/dist/components/Sidebar/Sidebar.d.ts +6 -1
- package/dist/components/Sidebar/components/SidebarFooter.d.ts +5 -0
- package/dist/components/Sidebar/components/SidebarGroup.d.ts +5 -16
- package/dist/components/Sidebar/components/SidebarHeader.d.ts +29 -0
- package/dist/components/Sidebar/components/SidebarItem.d.ts +3 -0
- package/dist/components/Sidebar/components/SidebarPanel.d.ts +2 -2
- package/dist/components/Sidebar/hooks/usePresentation.d.ts +2 -2
- package/dist/components/Sidebar/index.d.ts +1 -1
- package/dist/components/Sidebar/utils/presentation.d.ts +12 -0
- package/dist/components/Sidebar/utils/state.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +21 -209
- package/dist/components/Table/components/TableAction.d.ts +18 -0
- package/dist/components/Table/components/TableActionCell.d.ts +15 -0
- package/dist/components/Table/components/TableActionHeaderCell.d.ts +13 -0
- package/dist/components/Table/components/TableBody.d.ts +27 -0
- package/dist/components/Table/components/TableCell.d.ts +42 -0
- package/dist/components/Table/components/TableFoot.d.ts +19 -0
- package/dist/components/Table/components/TableHead.d.ts +19 -0
- package/dist/components/Table/components/TableHeaderCell.d.ts +23 -0
- package/dist/components/Table/components/TableRow.d.ts +67 -0
- package/dist/components/Table/hooks/useHorizontalOverflow.d.ts +25 -0
- package/dist/components/Table/utils/cell.d.ts +25 -0
- package/dist/components/Table/utils/children.d.ts +18 -0
- package/dist/components/Table/utils/trigger.d.ts +54 -0
- package/dist/floating-position-DIjh2wnP.cjs +1 -0
- package/dist/floating-position-DvR6e334.js +50 -0
- package/dist/style.css +1 -1
- package/dist/{useFloatingPosition-CMirP2-2.js → useFloatingPosition-B3ZC-v3v.js} +1 -1
- package/dist/{useFloatingPosition-BBEUHPqy.cjs → useFloatingPosition-GzkP9dCc.cjs} +1 -1
- package/package.json +2 -1
- package/dist/Button-Chv4O66e.js +0 -99
- package/dist/Button-DCKtFvSo.cjs +0 -1
- package/dist/Divider-CJYbFcSX.cjs +0 -1
- package/dist/Icon-DJ4BigRz.cjs +0 -1
- package/dist/Table-B30TBckZ.js +0 -402
- package/dist/Table-DceR12X9.cjs +0 -1
- package/dist/floating-position-5wJ5G5IT.js +0 -48
- package/dist/floating-position-Cy9xxdH4.cjs +0 -1
|
@@ -540,12 +540,35 @@ const C = l(function(t, e) {
|
|
|
540
540
|
"path",
|
|
541
541
|
{
|
|
542
542
|
fill: "currentColor",
|
|
543
|
-
|
|
543
|
+
fillRule: "evenodd",
|
|
544
|
+
d: "m11.967 5.643 1.78.29a.3.3 0 0 1 .253.298v1.657a.3.3 0 0 1-.25.297l-1.782.312a5 5 0 0 1-.424 1.027l1.054 1.463a.3.3 0 0 1-.031.39l-1.171 1.171a.3.3 0 0 1-.387.034l-1.477-1.037a5 5 0 0 1-1.033.432l-.315 1.774a.3.3 0 0 1-.297.249H6.231a.3.3 0 0 1-.297-.251l-.294-1.766a5 5 0 0 1-1.038-.428l-1.467 1.027a.3.3 0 0 1-.386-.034l-1.171-1.172a.3.3 0 0 1-.032-.388l1.037-1.45a5 5 0 0 1-.434-1.042L.393 8.185a.3.3 0 0 1-.249-.297V6.23c0-.147.107-.273.252-.297l1.757-.292A5 5 0 0 1 2.586 4.6L1.562 3.135a.3.3 0 0 1 .034-.386l1.17-1.17a.3.3 0 0 1 .389-.033l1.455 1.04a5 5 0 0 1 1.035-.426L5.933.397a.3.3 0 0 1 .298-.253h1.656c.147 0 .272.106.297.25l.31 1.773q.541.156 1.034.43l1.46-1.049a.3.3 0 0 1 .388.031l1.172 1.171a.3.3 0 0 1 .033.386l-1.039 1.481a5 5 0 0 1 .425 1.026m-7.003 1.43a2.109 2.109 0 1 0 4.217-.001 2.109 2.109 0 0 0-4.217 0",
|
|
545
|
+
clipRule: "evenodd"
|
|
544
546
|
}
|
|
545
547
|
)
|
|
546
548
|
}
|
|
547
549
|
);
|
|
548
550
|
}), F = l(function(t, e) {
|
|
551
|
+
const { height: c, width: n, ...r } = t;
|
|
552
|
+
return /* @__PURE__ */ o(
|
|
553
|
+
"svg",
|
|
554
|
+
{
|
|
555
|
+
...r,
|
|
556
|
+
ref: e,
|
|
557
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
558
|
+
width: n,
|
|
559
|
+
height: c,
|
|
560
|
+
viewBox: "0 0 14 14",
|
|
561
|
+
fill: "none",
|
|
562
|
+
children: /* @__PURE__ */ o(
|
|
563
|
+
"path",
|
|
564
|
+
{
|
|
565
|
+
fill: "currentColor",
|
|
566
|
+
d: "M6.293.818a1 1 0 0 1 1.414 0l5.586 5.585c.39.39.39 1.025 0 1.415l-5.586 5.585a1 1 0 0 1-1.414 0L.707 7.818a1 1 0 0 1 0-1.415L4.731 2.38l1.215 1.215a1.187 1.187 0 0 0 .554 1.68v4a1.187 1.187 0 1 0 .95 0V5.275q.06-.026.117-.06l1.865 1.864A1.186 1.186 0 0 0 10.537 8.7a1.188 1.188 0 1 0-.434-2.293L8.135 4.44a1.187 1.187 0 0 0-1.411-1.411l-1.32-1.32z"
|
|
567
|
+
}
|
|
568
|
+
)
|
|
569
|
+
}
|
|
570
|
+
);
|
|
571
|
+
}), U = l(function(t, e) {
|
|
549
572
|
const { height: c, width: n, ...r } = t;
|
|
550
573
|
return /* @__PURE__ */ o(
|
|
551
574
|
"svg",
|
|
@@ -568,7 +591,7 @@ const C = l(function(t, e) {
|
|
|
568
591
|
)
|
|
569
592
|
}
|
|
570
593
|
);
|
|
571
|
-
}),
|
|
594
|
+
}), K = l(function(t, e) {
|
|
572
595
|
const { height: c, width: n, ...r } = t;
|
|
573
596
|
return /* @__PURE__ */ o(
|
|
574
597
|
"svg",
|
|
@@ -591,7 +614,7 @@ const C = l(function(t, e) {
|
|
|
591
614
|
)
|
|
592
615
|
}
|
|
593
616
|
);
|
|
594
|
-
}),
|
|
617
|
+
}), N = l(function(t, e) {
|
|
595
618
|
const { height: c, width: n, ...r } = t;
|
|
596
619
|
return /* @__PURE__ */ o(
|
|
597
620
|
"svg",
|
|
@@ -612,7 +635,7 @@ const C = l(function(t, e) {
|
|
|
612
635
|
)
|
|
613
636
|
}
|
|
614
637
|
);
|
|
615
|
-
}),
|
|
638
|
+
}), O = l(function(t, e) {
|
|
616
639
|
const { height: c, width: n, ...r } = t;
|
|
617
640
|
return /* @__PURE__ */ o(
|
|
618
641
|
"svg",
|
|
@@ -633,7 +656,28 @@ const C = l(function(t, e) {
|
|
|
633
656
|
)
|
|
634
657
|
}
|
|
635
658
|
);
|
|
636
|
-
}),
|
|
659
|
+
}), Q = l(function(t, e) {
|
|
660
|
+
const { height: c, width: n, ...r } = t;
|
|
661
|
+
return /* @__PURE__ */ o(
|
|
662
|
+
"svg",
|
|
663
|
+
{
|
|
664
|
+
...r,
|
|
665
|
+
ref: e,
|
|
666
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
667
|
+
width: n,
|
|
668
|
+
height: c,
|
|
669
|
+
viewBox: "0 0 14 14",
|
|
670
|
+
fill: "none",
|
|
671
|
+
children: /* @__PURE__ */ o(
|
|
672
|
+
"path",
|
|
673
|
+
{
|
|
674
|
+
fill: "currentColor",
|
|
675
|
+
d: "M3.85 1c-.355 0-.667 0-.923.02-.265.022-.537.07-.801.205a2.06 2.06 0 0 0-.901.901 2.1 2.1 0 0 0-.204.8C1 3.184 1 3.496 1 3.85v6.3c0 .412-.002.771.034 1.063.027.22.08.443.19.661.198.388.514.704.902.901.264.135.536.183.8.204.257.021.569.021.924.021h6.3c.41 0 .768.001 1.059-.034.221-.027.445-.079.665-.19l.142-.08c.323-.199.586-.482.76-.822.134-.264.182-.536.204-.8.02-.257.02-.569.02-.924v-6.3c0-.355 0-.667-.02-.923a2.1 2.1 0 0 0-.205-.801 2.06 2.06 0 0 0-.901-.901 2.1 2.1 0 0 0-.8-.204C10.816 1 10.504 1 10.15 1zm1.869 7.336a.56.56 0 0 1 .35-.004c.018.006.073.026.207.139.141.118.314.29.587.56l1.092 1.082v.001L9.338 11.5H3.85c-.38 0-.62 0-.801-.016-.172-.014-.224-.037-.241-.046h-.001a.6.6 0 0 1-.159-.123l2.28-2.25.013-.013c.267-.277.436-.451.575-.573.13-.114.184-.137.203-.143m4.313.858a.56.56 0 0 1 .35.004c.019.006.072.029.204.145.138.122.308.296.575.573v.001l.008.008.33.332c0 .319-.001.53-.015.694-.014.172-.037.224-.046.241v.001a.6.6 0 0 1-.127.162L9.55 9.587c.11-.106.198-.187.276-.253.135-.113.19-.134.207-.14M10.15 2.5c.38 0 .62 0 .801.016.172.014.224.037.241.046h.001c.106.053.192.14.245.245.01.018.032.07.046.242.015.181.016.42.016.8v4.302a2 2 0 0 0-.633-.372 2.06 2.06 0 0 0-1.286-.015 2.1 2.1 0 0 0-.72.422 7 7 0 0 0-.375.343l-.567-.563c-.255-.253-.479-.475-.678-.643a2.3 2.3 0 0 0-.515-.342l-.205-.08a2.06 2.06 0 0 0-1.285.015 2.1 2.1 0 0 0-.71.437c-.193.168-.407.39-.651.644L2.5 9.354V3.85c0-.38 0-.62.016-.801.014-.171.037-.224.046-.241v-.001a.56.56 0 0 1 .245-.245c.018-.01.07-.032.242-.046.181-.015.42-.016.8-.016zm-1.181.594a1.937 1.937 0 1 0 0 3.875 1.937 1.937 0 0 0 0-3.875m0 1.25a.687.687 0 1 1 0 1.375.687.687 0 0 1 0-1.375"
|
|
676
|
+
}
|
|
677
|
+
)
|
|
678
|
+
}
|
|
679
|
+
);
|
|
680
|
+
}), T = l(function(t, e) {
|
|
637
681
|
const { height: c, width: n, ...r } = t;
|
|
638
682
|
return /* @__PURE__ */ s(
|
|
639
683
|
"svg",
|
|
@@ -660,7 +704,7 @@ const C = l(function(t, e) {
|
|
|
660
704
|
]
|
|
661
705
|
}
|
|
662
706
|
);
|
|
663
|
-
}),
|
|
707
|
+
}), $ = l(function(t, e) {
|
|
664
708
|
const { height: c, width: n, ...r } = t;
|
|
665
709
|
return /* @__PURE__ */ o(
|
|
666
710
|
"svg",
|
|
@@ -683,7 +727,7 @@ const C = l(function(t, e) {
|
|
|
683
727
|
)
|
|
684
728
|
}
|
|
685
729
|
);
|
|
686
|
-
}),
|
|
730
|
+
}), J = l(function(t, e) {
|
|
687
731
|
const { height: c, width: n, ...r } = t;
|
|
688
732
|
return /* @__PURE__ */ o(
|
|
689
733
|
"svg",
|
|
@@ -706,7 +750,7 @@ const C = l(function(t, e) {
|
|
|
706
750
|
)
|
|
707
751
|
}
|
|
708
752
|
);
|
|
709
|
-
}),
|
|
753
|
+
}), X = l(function(t, e) {
|
|
710
754
|
const { height: c, width: n, ...r } = t;
|
|
711
755
|
return /* @__PURE__ */ s(
|
|
712
756
|
"svg",
|
|
@@ -742,7 +786,7 @@ const C = l(function(t, e) {
|
|
|
742
786
|
]
|
|
743
787
|
}
|
|
744
788
|
);
|
|
745
|
-
}),
|
|
789
|
+
}), Y = l(function(t, e) {
|
|
746
790
|
const { height: c, width: n, ...r } = t;
|
|
747
791
|
return /* @__PURE__ */ o(
|
|
748
792
|
"svg",
|
|
@@ -765,7 +809,7 @@ const C = l(function(t, e) {
|
|
|
765
809
|
)
|
|
766
810
|
}
|
|
767
811
|
);
|
|
768
|
-
}),
|
|
812
|
+
}), _ = l(function(t, e) {
|
|
769
813
|
const { height: c, width: n, ...r } = t;
|
|
770
814
|
return /* @__PURE__ */ o(
|
|
771
815
|
"svg",
|
|
@@ -786,7 +830,7 @@ const C = l(function(t, e) {
|
|
|
786
830
|
)
|
|
787
831
|
}
|
|
788
832
|
);
|
|
789
|
-
}),
|
|
833
|
+
}), o0 = l(function(t, e) {
|
|
790
834
|
const { height: c, width: n, ...r } = t;
|
|
791
835
|
return /* @__PURE__ */ o(
|
|
792
836
|
"svg",
|
|
@@ -809,7 +853,7 @@ const C = l(function(t, e) {
|
|
|
809
853
|
)
|
|
810
854
|
}
|
|
811
855
|
);
|
|
812
|
-
}),
|
|
856
|
+
}), n0 = l(function(t, e) {
|
|
813
857
|
const { height: c, width: n, ...r } = t;
|
|
814
858
|
return /* @__PURE__ */ s(
|
|
815
859
|
"svg",
|
|
@@ -829,7 +873,7 @@ const C = l(function(t, e) {
|
|
|
829
873
|
]
|
|
830
874
|
}
|
|
831
875
|
);
|
|
832
|
-
}),
|
|
876
|
+
}), r0 = l(function(t, e) {
|
|
833
877
|
const { height: c, width: n, ...r } = t;
|
|
834
878
|
return /* @__PURE__ */ o(
|
|
835
879
|
"svg",
|
|
@@ -847,7 +891,7 @@ const C = l(function(t, e) {
|
|
|
847
891
|
] })
|
|
848
892
|
}
|
|
849
893
|
);
|
|
850
|
-
}),
|
|
894
|
+
}), t0 = l(function(t, e) {
|
|
851
895
|
const { height: c, width: n, ...r } = t;
|
|
852
896
|
return /* @__PURE__ */ o(
|
|
853
897
|
"svg",
|
|
@@ -870,7 +914,7 @@ const C = l(function(t, e) {
|
|
|
870
914
|
)
|
|
871
915
|
}
|
|
872
916
|
);
|
|
873
|
-
}),
|
|
917
|
+
}), e0 = l(function(t, e) {
|
|
874
918
|
const { height: c, width: n, ...r } = t;
|
|
875
919
|
return /* @__PURE__ */ s(
|
|
876
920
|
"svg",
|
|
@@ -888,7 +932,7 @@ const C = l(function(t, e) {
|
|
|
888
932
|
]
|
|
889
933
|
}
|
|
890
934
|
);
|
|
891
|
-
}),
|
|
935
|
+
}), c0 = l(function(t, e) {
|
|
892
936
|
const { height: c, width: n, ...r } = t;
|
|
893
937
|
return /* @__PURE__ */ o(
|
|
894
938
|
"svg",
|
|
@@ -909,7 +953,7 @@ const C = l(function(t, e) {
|
|
|
909
953
|
)
|
|
910
954
|
}
|
|
911
955
|
);
|
|
912
|
-
}),
|
|
956
|
+
}), l0 = l(function(t, e) {
|
|
913
957
|
const { height: c, width: n, ...r } = t;
|
|
914
958
|
return /* @__PURE__ */ s(
|
|
915
959
|
"svg",
|
|
@@ -933,7 +977,7 @@ const C = l(function(t, e) {
|
|
|
933
977
|
]
|
|
934
978
|
}
|
|
935
979
|
);
|
|
936
|
-
}),
|
|
980
|
+
}), i0 = l(function(t, e) {
|
|
937
981
|
const { height: c, width: n, ...r } = t;
|
|
938
982
|
return /* @__PURE__ */ o(
|
|
939
983
|
"svg",
|
|
@@ -948,7 +992,7 @@ const C = l(function(t, e) {
|
|
|
948
992
|
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" })
|
|
949
993
|
}
|
|
950
994
|
);
|
|
951
|
-
}),
|
|
995
|
+
}), s0 = l(function(t, e) {
|
|
952
996
|
const { height: c, width: n, ...r } = t;
|
|
953
997
|
return /* @__PURE__ */ o(
|
|
954
998
|
"svg",
|
|
@@ -969,7 +1013,7 @@ const C = l(function(t, e) {
|
|
|
969
1013
|
)
|
|
970
1014
|
}
|
|
971
1015
|
);
|
|
972
|
-
}),
|
|
1016
|
+
}), h0 = l(function(t, e) {
|
|
973
1017
|
const { height: c, width: n, ...r } = t;
|
|
974
1018
|
return /* @__PURE__ */ s(
|
|
975
1019
|
"svg",
|
|
@@ -1004,7 +1048,7 @@ const C = l(function(t, e) {
|
|
|
1004
1048
|
]
|
|
1005
1049
|
}
|
|
1006
1050
|
);
|
|
1007
|
-
}),
|
|
1051
|
+
}), a0 = l(function(t, e) {
|
|
1008
1052
|
const { height: c, width: n, ...r } = t;
|
|
1009
1053
|
return /* @__PURE__ */ o(
|
|
1010
1054
|
"svg",
|
|
@@ -1025,37 +1069,37 @@ const C = l(function(t, e) {
|
|
|
1025
1069
|
)
|
|
1026
1070
|
}
|
|
1027
1071
|
);
|
|
1028
|
-
}),
|
|
1029
|
-
projects:
|
|
1072
|
+
}), v0 = {
|
|
1073
|
+
projects: n0,
|
|
1030
1074
|
chat: H,
|
|
1031
1075
|
articles: C,
|
|
1032
|
-
mail:
|
|
1033
|
-
github:
|
|
1034
|
-
globe:
|
|
1035
|
-
linkedin:
|
|
1036
|
-
reddit:
|
|
1076
|
+
mail: X,
|
|
1077
|
+
github: U,
|
|
1078
|
+
globe: K,
|
|
1079
|
+
linkedin: J,
|
|
1080
|
+
reddit: t0,
|
|
1037
1081
|
exit: G,
|
|
1038
1082
|
camera: Z,
|
|
1039
|
-
"qr-code":
|
|
1083
|
+
"qr-code": r0,
|
|
1040
1084
|
download: j,
|
|
1041
|
-
save:
|
|
1042
|
-
pencil:
|
|
1085
|
+
save: c0,
|
|
1086
|
+
pencil: _,
|
|
1043
1087
|
"arrow-left": m,
|
|
1044
1088
|
"arrow-right": I,
|
|
1045
1089
|
cross: W,
|
|
1046
1090
|
checkmark: P,
|
|
1047
|
-
plus:
|
|
1048
|
-
minus:
|
|
1049
|
-
window:
|
|
1050
|
-
user:
|
|
1091
|
+
plus: o0,
|
|
1092
|
+
minus: Y,
|
|
1093
|
+
window: a0,
|
|
1094
|
+
user: s0,
|
|
1051
1095
|
duplicate: b,
|
|
1052
1096
|
eye: z,
|
|
1053
1097
|
"eye-off": q,
|
|
1054
|
-
signal:
|
|
1098
|
+
signal: l0,
|
|
1055
1099
|
audio: k,
|
|
1056
|
-
hardware:
|
|
1100
|
+
hardware: N,
|
|
1057
1101
|
burger: L,
|
|
1058
|
-
repository:
|
|
1102
|
+
repository: e0,
|
|
1059
1103
|
"chevron-down": B,
|
|
1060
1104
|
"chevron-up": R,
|
|
1061
1105
|
"chevron-left": V,
|
|
@@ -1064,13 +1108,15 @@ const C = l(function(t, e) {
|
|
|
1064
1108
|
commit: y,
|
|
1065
1109
|
folder: E,
|
|
1066
1110
|
file: S,
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1111
|
+
image: Q,
|
|
1112
|
+
tag: i0,
|
|
1113
|
+
key: $,
|
|
1114
|
+
gear: D,
|
|
1115
|
+
git: F,
|
|
1116
|
+
home: O,
|
|
1117
|
+
info: T,
|
|
1118
|
+
warning: h0
|
|
1119
|
+
}, g0 = l(function(t, e) {
|
|
1074
1120
|
const {
|
|
1075
1121
|
"aria-hidden": c,
|
|
1076
1122
|
"aria-label": n,
|
|
@@ -1082,18 +1128,18 @@ const C = l(function(t, e) {
|
|
|
1082
1128
|
style: f,
|
|
1083
1129
|
type: v,
|
|
1084
1130
|
...p
|
|
1085
|
-
} = t,
|
|
1086
|
-
if (!
|
|
1131
|
+
} = t, w = v0[v];
|
|
1132
|
+
if (!w)
|
|
1087
1133
|
return console.warn(`Icon type "${v}" not found`), null;
|
|
1088
|
-
const
|
|
1089
|
-
return x(
|
|
1134
|
+
const d = n !== void 0 || r !== void 0;
|
|
1135
|
+
return x(w, {
|
|
1090
1136
|
...p,
|
|
1091
|
-
"aria-hidden": c ?? (
|
|
1137
|
+
"aria-hidden": c ?? (d ? void 0 : !0),
|
|
1092
1138
|
"aria-label": n,
|
|
1093
1139
|
"aria-labelledby": r,
|
|
1094
1140
|
className: ["nk-icon", g].filter(Boolean).join(" "),
|
|
1095
1141
|
ref: e,
|
|
1096
|
-
role: u ?? (
|
|
1142
|
+
role: u ?? (d ? "img" : void 0),
|
|
1097
1143
|
style: {
|
|
1098
1144
|
...h === void 0 ? void 0 : { height: h, width: h },
|
|
1099
1145
|
...f,
|
|
@@ -1102,5 +1148,5 @@ const C = l(function(t, e) {
|
|
|
1102
1148
|
});
|
|
1103
1149
|
});
|
|
1104
1150
|
export {
|
|
1105
|
-
|
|
1151
|
+
g0 as I
|
|
1106
1152
|
};
|
package/dist/Icon.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Icon-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Icon-BIBzgznI.cjs");exports.default=e.Icon;
|
package/dist/Icon.js
CHANGED
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"),S=require("./Button-
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),t=require("react"),S=require("./Button-DU4j_IED.cjs"),$=require("./Spinner-BXgw60UC.cjs"),w=require("./aria-Bntn6ad_.cjs");function v(a){return Array.isArray(a)?a.length>0:a!=null&&String(a).length>0}function F(a,s,n){s.current=a,typeof n=="function"?n(a):n&&(n.current=a)}function G(a){var n;const s=(n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value"))==null?void 0:n.set;s?s.call(a,""):a.value=""}const J=t.forwardRef(function(s,n){const{"aria-busy":V,"aria-invalid":b,className:C,clearable:y=!1,defaultValue:g,disabled:A=!1,id:N,invalid:h=!1,loading:l=!1,onChange:d,readOnly:p=!1,style:P,type:r="text",value:o,...m}=s,O=t.useId(),I=t.useRef(null),[q,B]=t.useState(v(g)),[u,_]=t.useState(!1);t.useEffect(()=>{r!=="password"&&_(!1)},[r]);const T=t.useCallback(e=>F(e,I,n),[n]),f=N??`${O}-control`,c=A||l,D=h||w.hasInvalidState(b),E=o!==void 0?v(o):q,H=r==="password"&&u?"text":r,M=w.resolveAriaInvalid(h,b),j=y&&E&&!p&&!c,k=r==="password"&&!l,x=j||k;function R(e){o===void 0&&B(v(e.currentTarget.value)),d==null||d(e)}function U(){const e=I.current;e&&(G(e),e.dispatchEvent(new Event("input",{bubbles:!0})),e.focus())}function z(){_(e=>!e)}return i.jsxs("div",{className:["nk-input",C].filter(Boolean).join(" "),"data-clearable":y||void 0,"data-disabled":c||void 0,"data-invalid":D||void 0,"data-loading":l||void 0,"data-read-only":p||void 0,"data-has-trailing-action":x||void 0,style:P,children:[i.jsx("input",{...m,ref:T,"aria-busy":l?!0:V,"aria-invalid":M,className:"nk-input__control",defaultValue:g,disabled:c,id:f,onChange:R,readOnly:p,type:H,value:o}),x?i.jsxs("span",{className:"nk-input__trailing",children:[j?i.jsx(S.Button,{"aria-controls":f,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,k?i.jsx(S.Button,{"aria-controls":f,"aria-label":u?"Hide password":"Show password","aria-pressed":u,className:"nk-input__action",disabled:c,icon:u?"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=J;
|
package/dist/Input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as w, jsx as c } 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-
|
|
4
|
+
import { B as C } from "./Button-BV5OUXpc.js";
|
|
5
5
|
import { S as M } from "./Spinner-CVYvk6YK.js";
|
|
6
6
|
import { h as Q, r as W } from "./aria-CeA9QfD1.js";
|
|
7
7
|
function f(a) {
|
package/dist/Markdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=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-JDb4VFl7.cjs"),Q=require("./Divider-CJYbFcSX.cjs"),_=require("./Table-DceR12X9.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(m=>m.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 m=/^[a-z][a-z\d+.-]*:/i.test(e),h=e.startsWith("//");if(o==="*")return!m&&!h||/^https?:/i.test(e)||h?e:void 0;const s=Array.isArray(o)?o:[o],t=te(a);try{const n=m?new URL(e):t?new URL(e,t):null;if(!n||n.protocol!=="http:"&&n.protocol!=="https:"||n.username||n.password)return;const r=n.href;return s.some(d=>re(r,d))?r:void 0}catch{return}}function v(e,o,a){if(!e)return;const h=e.split(",").map(s=>{const t=s.trim().split(/\s+/),[n,r]=t,d=r===void 0||/^(?:\d+w|(?:\d+(?:\.\d+)?|\.\d+)x)$/.test(r);if(t.length>2||!d||n===void 0||n.length===0)return null;const c=R(n,o,a);return c?`${c}${r?` ${r}`:""}`:null});return h.every(s=>s!==null)?h.join(", "):void 0}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 m(h){if(h.type==="element"){const{properties:s}=h;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 h&&h.children.forEach(m)}return h=>m(h)}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 m=o.properties.className,h=Array.isArray(m)?m.join(" "):typeof m=="string"?m:void 0,s=o.children.map(E).join("").replace(/\n$/,"");return{codeProps:{className:h,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,m,h){return{a:function(t){const{children:n,className:r,dangerouslySetInnerHTML:d,node:c,...i}=t;return u.jsx("a",{...i,className:["nk-markdown__link",r].filter(Boolean).join(" "),onClick:h,children:n})},blockquote:function(t){const{children:n,dangerouslySetInnerHTML:r,node:d,...c}=t;return u.jsx("blockquote",{...c,className:"nk-markdown__blockquote",children:n})},code:function(t){const{children:n,className:r,dangerouslySetInnerHTML:d,node:c,...i}=t;return u.jsx("code",{...i,className:["nk-markdown__inline-code",r].filter(Boolean).join(" "),children:n})},h1:function(t){const{children:n,className:r,dangerouslySetInnerHTML:d,node:c,ref:i,...l}=t;return u.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:d,node:c,ref:i,...l}=t;return u.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:d,node:c,ref:i,...l}=t;return u.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:d,node:c,ref:i,...l}=t;return u.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:d,node:c,ref:i,...l}=t;return u.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:d,node:c,ref:i,...l}=t;return u.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,...d}=t;return u.jsx(Q.Divider,{...d})},img:function(t){const{alt:n,className:r,dangerouslySetInnerHTML:d,node:c,src:i,srcSet:l,...b}=t,x=R(typeof i=="string"?i:"",e,o),L=v(l,e,o);return x?u.jsx("img",{...b,alt:n??"",className:["nk-markdown__image",r].filter(Boolean).join(" "),decoding:"async",loading:"lazy",src:x,srcSet:L}):n?u.jsx("span",{className:"nk-markdown__blocked-image",children:n}):null},input:function(t){const{checked:n,className:r,dangerouslySetInnerHTML:d,node:c,...i}=t;return u.jsxs(u.Fragment,{children:[u.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"}),u.jsx("span",{"aria-hidden":"true",className:"nk-markdown__task",children:n?"☒":"☐"})]})},li:function(t){const{children:n,className:r,dangerouslySetInnerHTML:d,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("task-list-item"))??!1;return u.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:d,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return u.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:d,node:c,ref:i,...l}=t;return u.jsx(k.Text,{...l,className:["nk-markdown__paragraph",r].filter(Boolean).join(" "),children:n})},picture:function(t){const{children:n,className:r,dangerouslySetInnerHTML:d,node:c,...i}=t;return u.jsx("picture",{...i,className:["nk-markdown__picture",r].filter(Boolean).join(" "),children:n})},pre:function(t){const{children:n,dangerouslySetInnerHTML:r,node:d,ref:c,...i}=t,l=ie(d);return l?u.jsx(X.Code,{code:l.content,codeProps:l.codeProps,language:ee(l.codeProps.className),maxHighlightLength:a,maxLineCount:m,preProps:i}):u.jsx("pre",{...i,children:n})},source:function(t){const{children:n,dangerouslySetInnerHTML:r,node:d,srcSet:c,...i}=t,l=v(c,e,o);return l?u.jsx("source",{...i,srcSet:l}):null},table:function(t){const{children:n,dangerouslySetInnerHTML:r,node:d,...c}=t;return u.jsx(_.Table,{...c,children:n})},tbody:function(t){const{children:n,dangerouslySetInnerHTML:r,node:d,...c}=t;return u.jsx(_.Table.Body,{...c,children:n})},td:function(t){const{align:n,children:r,dangerouslySetInnerHTML:d,node:c,style:i,...l}=t;return u.jsx(_.Table.Cell,{...l,align:C((i==null?void 0:i.textAlign)??n),children:r})},th:function(t){const{align:n,children:r,dangerouslySetInnerHTML:d,node:c,style:i,...l}=t;return u.jsx(_.Table.HeaderCell,{...l,align:C((i==null?void 0:i.textAlign)??n),children:r})},thead:function(t){const{children:n,dangerouslySetInnerHTML:r,node:d,...c}=t;return u.jsx(_.Table.Head,{...c,children:n})},tr:function(t){const{children:n,dangerouslySetInnerHTML:r,node:d,onClick:c,...i}=t;return u.jsx(_.Table.Row,{...i,children:n})},ul:function(t){const{children:n,className:r,dangerouslySetInnerHTML:d,node:c,...i}=t,l=(r==null?void 0:r.split(/\s+/).includes("contains-task-list"))??!1;return u.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 he(e,o){const a=e,m=new a.HashChangeEvent("hashchange",{newURL:e.location.href,oldURL:o});e.dispatchEvent(m)}function fe(e){return e===null?null:Number.isFinite(e)?Math.max(0,Math.floor(e)):0}const pe=M.forwardRef(function(o,a){const{allowedImageSources:m,anchorPrefix:h="",className:s,content:t,dangerouslySetInnerHTML:n,imageBaseUrl:r,maxCodeHighlightLength:d,maxCodeLineCount:c,maxContentLength:i=ce,rehypePlugins:l,remarkPlugins:b,scrollOffset:g=128,style:x,...L}=o,j=fe(i),D=j!==null&&t.length>j,P=M.useCallback(f=>{var N;if(f.defaultPrevented||f.button!==0||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey)return;const y=f.currentTarget.getAttribute("href");if(!y)return;const w=ue(y,f.currentTarget.ownerDocument);if(!w||typeof w.scrollIntoView!="function")return;const p=w.ownerDocument.defaultView;if(!p)return;f.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&&he(p,U)},[g]),O=M.useMemo(()=>ae(m,r,d,c,P),[m,P,r,d,c]),q=M.useMemo(()=>[J,...b??[]],[b]),$=M.useMemo(()=>[W,...l??[],oe,V,[se,{clobberPrefix:A,prefix:h}],[H,ne]],[h,l]),I={...x};if(g!==null){const f=Number.isFinite(g)?Math.max(0,g):0;I["--nk-markdown-scroll-offset"]=`${f}px`}return u.jsx("div",{...L,ref:a,className:["nk-markdown",s].filter(Boolean).join(" "),style:I,children:D?u.jsx(Y.Alert,{role:"alert",tone:"warning",children:de}):u.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-B7s_rN0G.cjs"),Q=require("./Divider-C7XGlr26.cjs"),_=require("./Table-qetwZpTC.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;
|