@syscore/ui-library 1.18.0 → 1.19.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/client/components/icons/UtilityCompare.tsx +8 -15
- package/client/components/icons/UtilityFeedback.tsx +1 -1
- package/client/components/icons/UtilityRevisionsHide.tsx +1 -1
- package/client/components/icons/UtilityRevisionsShow.tsx +9 -9
- package/client/components/icons/UtilityText.tsx +38 -29
- package/client/components/ui/dialog.tsx +21 -11
- package/client/components/ui/mobile-nav.tsx +6 -2
- package/client/global.css +47 -10
- package/client/ui/Dialog.stories.tsx +70 -0
- package/client/ui/MobileNav.stories.tsx +20 -18
- package/client/ui/Navigation.stories.tsx +46 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +87 -77
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2442,30 +2442,30 @@ function DialogOverlay({
|
|
|
2442
2442
|
}
|
|
2443
2443
|
function DialogContent({
|
|
2444
2444
|
className,
|
|
2445
|
+
innerClassName,
|
|
2446
|
+
closeClassName,
|
|
2445
2447
|
children,
|
|
2446
2448
|
showCloseButton = true,
|
|
2447
2449
|
...props
|
|
2448
2450
|
}) {
|
|
2449
|
-
return /* @__PURE__ */ jsx(DialogPortal, { "data-slot": "dialog-portal", children: /* @__PURE__ */ jsx(DialogOverlay, { children: /* @__PURE__ */
|
|
2451
|
+
return /* @__PURE__ */ jsx(DialogPortal, { "data-slot": "dialog-portal", children: /* @__PURE__ */ jsx(DialogOverlay, { className: "overflow-y-auto", children: /* @__PURE__ */ jsx(
|
|
2450
2452
|
SheetPrimitive.Content,
|
|
2451
2453
|
{
|
|
2452
2454
|
"data-slot": "dialog-content",
|
|
2453
2455
|
className: cn("dialog-content", className),
|
|
2454
2456
|
...props,
|
|
2455
|
-
children: [
|
|
2456
|
-
/* @__PURE__ */ jsx("div", { className: "dialog-content-inner", children }),
|
|
2457
|
-
showCloseButton && /* @__PURE__ */ jsxs(
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
)
|
|
2468
|
-
]
|
|
2457
|
+
children: /* @__PURE__ */ jsxs("div", { className: "dialog-content-wrapper", children: [
|
|
2458
|
+
/* @__PURE__ */ jsx("div", { className: cn("dialog-content-inner", innerClassName), children }),
|
|
2459
|
+
showCloseButton && /* @__PURE__ */ jsx("div", { className: "dialog-close", children: /* @__PURE__ */ jsxs(SheetPrimitive.Close, { "data-slot": "dialog-close", children: [
|
|
2460
|
+
/* @__PURE__ */ jsx(
|
|
2461
|
+
UtilityClose,
|
|
2462
|
+
{
|
|
2463
|
+
className: cn("dialog-close-icon", closeClassName)
|
|
2464
|
+
}
|
|
2465
|
+
),
|
|
2466
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
2467
|
+
] }) })
|
|
2468
|
+
] })
|
|
2469
2469
|
}
|
|
2470
2470
|
) }) });
|
|
2471
2471
|
}
|
|
@@ -5762,9 +5762,7 @@ const UtilityClassification = ({
|
|
|
5762
5762
|
}
|
|
5763
5763
|
);
|
|
5764
5764
|
};
|
|
5765
|
-
|
|
5766
|
-
className
|
|
5767
|
-
}) => {
|
|
5765
|
+
function UtilityCompare({ className }) {
|
|
5768
5766
|
return /* @__PURE__ */ jsx(
|
|
5769
5767
|
"div",
|
|
5770
5768
|
{
|
|
@@ -5787,7 +5785,7 @@ const UtilityCompare = ({
|
|
|
5787
5785
|
{
|
|
5788
5786
|
d: "M10.6002 5.79905C10.6002 8.44949 8.45114 10.5981 5.80011 10.5981C3.14908 10.5981 1 8.44949 1 5.79905C1 3.14861 3.14908 1 5.80011 1C8.45114 1 10.6002 3.14861 10.6002 5.79905Z",
|
|
5789
5787
|
fill: "#E0FBF5",
|
|
5790
|
-
stroke: "
|
|
5788
|
+
stroke: "currentColor",
|
|
5791
5789
|
"stroke-width": "2",
|
|
5792
5790
|
"stroke-linecap": "round",
|
|
5793
5791
|
"stroke-linejoin": "round"
|
|
@@ -5797,7 +5795,7 @@ const UtilityCompare = ({
|
|
|
5797
5795
|
"path",
|
|
5798
5796
|
{
|
|
5799
5797
|
d: "M5.80078 16.998L5.80078 24.9965C5.80078 25.845 6.13793 26.6588 6.73806 27.2587C7.33819 27.8587 8.15214 28.1958 9.00086 28.1958L20.2011 28.1958",
|
|
5800
|
-
stroke: "
|
|
5798
|
+
stroke: "currentColor",
|
|
5801
5799
|
"stroke-width": "2",
|
|
5802
5800
|
"stroke-linecap": "round",
|
|
5803
5801
|
"stroke-linejoin": "round"
|
|
@@ -5807,7 +5805,7 @@ const UtilityCompare = ({
|
|
|
5807
5805
|
"path",
|
|
5808
5806
|
{
|
|
5809
5807
|
d: "M10.6002 21.7971L5.80011 16.998L1 21.7971",
|
|
5810
|
-
stroke: "
|
|
5808
|
+
stroke: "currentColor",
|
|
5811
5809
|
"stroke-width": "2",
|
|
5812
5810
|
"stroke-linecap": "round",
|
|
5813
5811
|
"stroke-linejoin": "round"
|
|
@@ -5818,7 +5816,7 @@ const UtilityCompare = ({
|
|
|
5818
5816
|
{
|
|
5819
5817
|
d: "M29.8001 28.2014C29.8001 30.8518 27.651 33.0004 24.9999 33.0004C22.3489 33.0004 20.1998 30.8518 20.1998 28.2014C20.1998 25.551 22.3489 23.4023 24.9999 23.4023C27.651 23.4023 29.8001 25.5509 29.8001 28.2014Z",
|
|
5820
5818
|
fill: "#EFF5FB",
|
|
5821
|
-
stroke: "
|
|
5819
|
+
stroke: "currentColor",
|
|
5822
5820
|
"stroke-width": "2",
|
|
5823
5821
|
"stroke-linecap": "round",
|
|
5824
5822
|
"stroke-linejoin": "round"
|
|
@@ -5828,7 +5826,7 @@ const UtilityCompare = ({
|
|
|
5828
5826
|
"path",
|
|
5829
5827
|
{
|
|
5830
5828
|
d: "M25.0002 16.9946V8.99624C25.0002 8.14771 24.663 7.33394 24.0629 6.73395C23.4628 6.13395 22.6488 5.79687 21.8001 5.79687L10.5999 5.79688",
|
|
5831
|
-
stroke: "
|
|
5829
|
+
stroke: "currentColor",
|
|
5832
5830
|
"stroke-width": "2",
|
|
5833
5831
|
"stroke-linecap": "round",
|
|
5834
5832
|
"stroke-linejoin": "round"
|
|
@@ -5838,7 +5836,7 @@ const UtilityCompare = ({
|
|
|
5838
5836
|
"path",
|
|
5839
5837
|
{
|
|
5840
5838
|
d: "M20.1998 12.2012L24.9999 17.0002L29.8001 12.2012",
|
|
5841
|
-
stroke: "
|
|
5839
|
+
stroke: "currentColor",
|
|
5842
5840
|
"stroke-width": "2",
|
|
5843
5841
|
"stroke-linecap": "round",
|
|
5844
5842
|
"stroke-linejoin": "round"
|
|
@@ -5849,7 +5847,7 @@ const UtilityCompare = ({
|
|
|
5849
5847
|
)
|
|
5850
5848
|
}
|
|
5851
5849
|
);
|
|
5852
|
-
}
|
|
5850
|
+
}
|
|
5853
5851
|
const UtilityDrag = ({ className }) => {
|
|
5854
5852
|
return /* @__PURE__ */ jsx(
|
|
5855
5853
|
"div",
|
|
@@ -6657,47 +6655,56 @@ function UtilityTargetActive({ className, ...props }) {
|
|
|
6657
6655
|
] });
|
|
6658
6656
|
}
|
|
6659
6657
|
function UtilityText({ className }) {
|
|
6660
|
-
return /* @__PURE__ */
|
|
6661
|
-
"
|
|
6658
|
+
return /* @__PURE__ */ jsx(
|
|
6659
|
+
"div",
|
|
6662
6660
|
{
|
|
6663
|
-
className
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
"
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6683
|
-
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6661
|
+
className: cn(
|
|
6662
|
+
"size-4 flex items-center justify-center text-gray-500",
|
|
6663
|
+
className
|
|
6664
|
+
),
|
|
6665
|
+
children: /* @__PURE__ */ jsxs(
|
|
6666
|
+
"svg",
|
|
6667
|
+
{
|
|
6668
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6669
|
+
width: "16",
|
|
6670
|
+
height: "14",
|
|
6671
|
+
viewBox: "0 0 16 14",
|
|
6672
|
+
fill: "none",
|
|
6673
|
+
className: cn("text-inherit w-full h-full"),
|
|
6674
|
+
children: [
|
|
6675
|
+
/* @__PURE__ */ jsx(
|
|
6676
|
+
"path",
|
|
6677
|
+
{
|
|
6678
|
+
d: "M8.75 12.75H0.75",
|
|
6679
|
+
stroke: "currentColor",
|
|
6680
|
+
strokeWidth: "1.5",
|
|
6681
|
+
strokeLinecap: "round",
|
|
6682
|
+
"stroke-linejoin": "round"
|
|
6683
|
+
}
|
|
6684
|
+
),
|
|
6685
|
+
/* @__PURE__ */ jsx(
|
|
6686
|
+
"path",
|
|
6687
|
+
{
|
|
6688
|
+
d: "M10.75 0.75H0.75",
|
|
6689
|
+
stroke: "currentColor",
|
|
6690
|
+
strokeWidth: "1.5",
|
|
6691
|
+
strokeLinecap: "round",
|
|
6692
|
+
strokeLinejoin: "round"
|
|
6693
|
+
}
|
|
6694
|
+
),
|
|
6695
|
+
/* @__PURE__ */ jsx(
|
|
6696
|
+
"path",
|
|
6697
|
+
{
|
|
6698
|
+
d: "M14.75 6.75H0.75",
|
|
6699
|
+
stroke: "currentColor",
|
|
6700
|
+
strokeWidth: "1.5",
|
|
6701
|
+
strokeLinecap: "round",
|
|
6702
|
+
strokeLinejoin: "round"
|
|
6703
|
+
}
|
|
6704
|
+
)
|
|
6705
|
+
]
|
|
6706
|
+
}
|
|
6707
|
+
)
|
|
6701
6708
|
}
|
|
6702
6709
|
);
|
|
6703
6710
|
}
|
|
@@ -6717,7 +6724,7 @@ function UtilityRevisionsHide({ className }) {
|
|
|
6717
6724
|
height: "15",
|
|
6718
6725
|
viewBox: "0 0 17 15",
|
|
6719
6726
|
fill: "none",
|
|
6720
|
-
className: cn("text-inherit"),
|
|
6727
|
+
className: cn("text-inherit w-full h-full"),
|
|
6721
6728
|
children: [
|
|
6722
6729
|
/* @__PURE__ */ jsx(
|
|
6723
6730
|
"path",
|
|
@@ -6882,7 +6889,7 @@ function UtilityFeedback({ className }) {
|
|
|
6882
6889
|
height: "28",
|
|
6883
6890
|
viewBox: "0 0 30 28",
|
|
6884
6891
|
fill: "none",
|
|
6885
|
-
className: cn("text-inherit"),
|
|
6892
|
+
className: cn("text-inherit w-full h-full"),
|
|
6886
6893
|
children: /* @__PURE__ */ jsx(
|
|
6887
6894
|
"path",
|
|
6888
6895
|
{
|
|
@@ -6915,7 +6922,7 @@ function UtilityRevisionsShow({ className }) {
|
|
|
6915
6922
|
height: "26",
|
|
6916
6923
|
viewBox: "0 0 30 26",
|
|
6917
6924
|
fill: "none",
|
|
6918
|
-
className: cn("text-inherit"),
|
|
6925
|
+
className: cn("text-inherit w-full h-full"),
|
|
6919
6926
|
children: [
|
|
6920
6927
|
/* @__PURE__ */ jsx(
|
|
6921
6928
|
"path",
|
|
@@ -6928,20 +6935,20 @@ function UtilityRevisionsShow({ className }) {
|
|
|
6928
6935
|
"path",
|
|
6929
6936
|
{
|
|
6930
6937
|
d: "M9.84194 11.5L1 20.5006V25.0009H14.2629L18.6839 20.5006",
|
|
6931
|
-
stroke: "
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6938
|
+
stroke: "currentColor",
|
|
6939
|
+
strokeWidth: "2",
|
|
6940
|
+
strokeLinecap: "round",
|
|
6941
|
+
strokeLinejoin: "round"
|
|
6935
6942
|
}
|
|
6936
6943
|
),
|
|
6937
6944
|
/* @__PURE__ */ jsx(
|
|
6938
6945
|
"path",
|
|
6939
6946
|
{
|
|
6940
6947
|
d: "M28.9999 13.0008L22.2211 19.9013C21.6702 20.451 20.9295 20.7589 20.158 20.7589C19.3865 20.7589 18.6458 20.451 18.0949 19.9013L10.4319 12.1008C9.89184 11.5399 9.58936 10.7859 9.58936 10.0006C9.58936 9.21531 9.89184 8.4613 10.4319 7.90048L17.2107 1",
|
|
6941
|
-
stroke: "
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6948
|
+
stroke: "currentColor",
|
|
6949
|
+
strokeWidth: "2",
|
|
6950
|
+
strokeLinecap: "round",
|
|
6951
|
+
strokeLinejoin: "round"
|
|
6945
6952
|
}
|
|
6946
6953
|
)
|
|
6947
6954
|
]
|
|
@@ -12565,8 +12572,11 @@ const MobileNavTrigger = ({
|
|
|
12565
12572
|
}
|
|
12566
12573
|
};
|
|
12567
12574
|
return /* @__PURE__ */ jsx(
|
|
12568
|
-
|
|
12575
|
+
Button,
|
|
12569
12576
|
{
|
|
12577
|
+
variant: "clear",
|
|
12578
|
+
size: "icon",
|
|
12579
|
+
type: "button",
|
|
12570
12580
|
onClick: handleClick,
|
|
12571
12581
|
disabled,
|
|
12572
12582
|
"data-active": activeKey === value || void 0,
|