@fileverse/ui 4.1.2-patch-1 → 4.1.2-patch-2
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/index.css +0 -9
- package/dist/index.es.d.ts +2 -1
- package/dist/index.es.js +88 -68
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1088,9 +1088,6 @@ video {
|
|
|
1088
1088
|
.right-5 {
|
|
1089
1089
|
right: 1.25rem;
|
|
1090
1090
|
}
|
|
1091
|
-
.right-6 {
|
|
1092
|
-
right: 1.5rem;
|
|
1093
|
-
}
|
|
1094
1091
|
.top-0 {
|
|
1095
1092
|
top: 0px;
|
|
1096
1093
|
}
|
|
@@ -1103,12 +1100,6 @@ video {
|
|
|
1103
1100
|
.top-3 {
|
|
1104
1101
|
top: 0.75rem;
|
|
1105
1102
|
}
|
|
1106
|
-
.top-5 {
|
|
1107
|
-
top: 1.25rem;
|
|
1108
|
-
}
|
|
1109
|
-
.top-6 {
|
|
1110
|
-
top: 1.5rem;
|
|
1111
|
-
}
|
|
1112
1103
|
.top-\[50\%\] {
|
|
1113
1104
|
top: 50%;
|
|
1114
1105
|
}
|
package/dist/index.es.d.ts
CHANGED
|
@@ -306,6 +306,7 @@ export declare const DrawerContent: React_2.ForwardRefExoticComponent<DrawerCont
|
|
|
306
306
|
declare interface DrawerContentProps extends React_2.ComponentPropsWithoutRef<typeof Drawer_2.Content> {
|
|
307
307
|
hasCloseIcon?: boolean;
|
|
308
308
|
overlayClasses?: string;
|
|
309
|
+
onClose?: (open: boolean) => void;
|
|
309
310
|
}
|
|
310
311
|
|
|
311
312
|
export declare const DrawerDescription: React_2.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React_2.RefAttributes<HTMLParagraphElement>, "ref"> & React_2.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -383,7 +384,7 @@ export declare const DynamicModal: ({ open, onOpenChange, title, description, co
|
|
|
383
384
|
export declare interface DynamicModalProps {
|
|
384
385
|
open: boolean;
|
|
385
386
|
onOpenChange: (open: boolean) => void;
|
|
386
|
-
title
|
|
387
|
+
title?: string | default_2.ReactNode;
|
|
387
388
|
description?: string;
|
|
388
389
|
content?: default_2.ReactNode;
|
|
389
390
|
primaryAction?: {
|
package/dist/index.es.js
CHANGED
|
@@ -38719,7 +38719,7 @@ const j0 = p.forwardRef(
|
|
|
38719
38719
|
...o,
|
|
38720
38720
|
children: [
|
|
38721
38721
|
t,
|
|
38722
|
-
a && /* @__PURE__ */ u.jsx(h3, { className: "absolute
|
|
38722
|
+
a && /* @__PURE__ */ u.jsx(h3, { className: "absolute top-2 right-4 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default", children: /* @__PURE__ */ u.jsx(To, { name: "Close", className: "h-5 w-5", fill: "#363B3F" }) })
|
|
38723
38723
|
]
|
|
38724
38724
|
}
|
|
38725
38725
|
) })
|
|
@@ -38780,24 +38780,33 @@ const Lae = Vt.Trigger, PJ = Vt.Portal, S0 = Vt.Close, g3 = p.forwardRef(({ clas
|
|
|
38780
38780
|
}
|
|
38781
38781
|
));
|
|
38782
38782
|
g3.displayName = Vt.Overlay.displayName;
|
|
38783
|
-
const T0 = p.forwardRef(
|
|
38784
|
-
/* @__PURE__ */ u.
|
|
38785
|
-
|
|
38786
|
-
|
|
38787
|
-
|
|
38788
|
-
|
|
38789
|
-
|
|
38790
|
-
|
|
38791
|
-
|
|
38792
|
-
|
|
38793
|
-
|
|
38794
|
-
|
|
38795
|
-
|
|
38796
|
-
|
|
38797
|
-
|
|
38798
|
-
|
|
38799
|
-
|
|
38800
|
-
|
|
38783
|
+
const T0 = p.forwardRef(
|
|
38784
|
+
({ className: e, children: t, hasCloseIcon: a, overlayClasses: n, onClose: r, ...o }, s) => /* @__PURE__ */ u.jsxs(PJ, { children: [
|
|
38785
|
+
/* @__PURE__ */ u.jsx(g3, { className: n }),
|
|
38786
|
+
/* @__PURE__ */ u.jsx(Ba, { trapped: !1, children: /* @__PURE__ */ u.jsxs(
|
|
38787
|
+
Vt.Content,
|
|
38788
|
+
{
|
|
38789
|
+
ref: s,
|
|
38790
|
+
className: ye(
|
|
38791
|
+
"fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col gap-4 rounded-t-[10px] border color-bg-default",
|
|
38792
|
+
e
|
|
38793
|
+
),
|
|
38794
|
+
...o,
|
|
38795
|
+
children: [
|
|
38796
|
+
t,
|
|
38797
|
+
a && /* @__PURE__ */ u.jsx(
|
|
38798
|
+
S0,
|
|
38799
|
+
{
|
|
38800
|
+
onClick: () => r == null ? void 0 : r(!1),
|
|
38801
|
+
className: "absolute top-2 right-4 rounded-sm ring-offset-white hover:color-bg-default-hover p-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-focused focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:color-bg-default-selected data-[state=open]:color-text-default",
|
|
38802
|
+
children: /* @__PURE__ */ u.jsx(To, { name: "Close", className: "h-5 w-5", fill: "#363B3F" })
|
|
38803
|
+
}
|
|
38804
|
+
)
|
|
38805
|
+
]
|
|
38806
|
+
}
|
|
38807
|
+
) })
|
|
38808
|
+
] })
|
|
38809
|
+
);
|
|
38801
38810
|
T0.displayName = "DrawerContent";
|
|
38802
38811
|
const I0 = ({
|
|
38803
38812
|
className: e,
|
|
@@ -38859,57 +38868,68 @@ const jae = ({
|
|
|
38859
38868
|
hasCloseIcon: d,
|
|
38860
38869
|
overlayClasses: h,
|
|
38861
38870
|
noOverlay: y
|
|
38862
|
-
}) => BJ("(max-width: 768px)") ? /* @__PURE__ */ u.jsx(
|
|
38863
|
-
|
|
38871
|
+
}) => BJ("(max-width: 768px)") ? /* @__PURE__ */ u.jsx(
|
|
38872
|
+
A0,
|
|
38864
38873
|
{
|
|
38865
|
-
|
|
38866
|
-
|
|
38867
|
-
|
|
38868
|
-
|
|
38869
|
-
|
|
38870
|
-
|
|
38871
|
-
|
|
38872
|
-
|
|
38873
|
-
|
|
38874
|
-
|
|
38874
|
+
dismissible: !l,
|
|
38875
|
+
open: e,
|
|
38876
|
+
onOpenChange: (g) => {
|
|
38877
|
+
l || t(g);
|
|
38878
|
+
},
|
|
38879
|
+
children: /* @__PURE__ */ u.jsxs(
|
|
38880
|
+
T0,
|
|
38881
|
+
{
|
|
38882
|
+
className: ye("w-full", f),
|
|
38883
|
+
hasCloseIcon: d,
|
|
38884
|
+
onClose: t,
|
|
38885
|
+
overlayClasses: ye(h, { "bg-transparent": y }),
|
|
38886
|
+
children: [
|
|
38887
|
+
a && /* @__PURE__ */ u.jsx(I0, { className: "px-6 pt-6", children: /* @__PURE__ */ u.jsx(D0, { className: "text-left text-heading-md", children: a }) }),
|
|
38888
|
+
/* @__PURE__ */ u.jsxs(
|
|
38889
|
+
"div",
|
|
38875
38890
|
{
|
|
38876
|
-
|
|
38877
|
-
|
|
38878
|
-
|
|
38891
|
+
className: ye(
|
|
38892
|
+
"flex flex-col gap-4 w-full h-full border-t-[1px] text-body-sm color-text-default",
|
|
38893
|
+
{
|
|
38894
|
+
"px-6 pt-6 pb-2": !c
|
|
38895
|
+
},
|
|
38896
|
+
c
|
|
38897
|
+
),
|
|
38898
|
+
children: [
|
|
38899
|
+
n && /* @__PURE__ */ u.jsx("p", { children: n }),
|
|
38900
|
+
r && r
|
|
38901
|
+
]
|
|
38902
|
+
}
|
|
38879
38903
|
),
|
|
38880
|
-
children: [
|
|
38881
|
-
|
|
38882
|
-
|
|
38883
|
-
|
|
38884
|
-
|
|
38885
|
-
|
|
38886
|
-
|
|
38887
|
-
|
|
38888
|
-
|
|
38889
|
-
|
|
38890
|
-
|
|
38891
|
-
|
|
38892
|
-
|
|
38893
|
-
|
|
38894
|
-
|
|
38895
|
-
|
|
38896
|
-
|
|
38897
|
-
|
|
38898
|
-
|
|
38899
|
-
|
|
38900
|
-
|
|
38901
|
-
|
|
38902
|
-
|
|
38903
|
-
|
|
38904
|
-
|
|
38905
|
-
|
|
38906
|
-
|
|
38907
|
-
}
|
|
38908
|
-
)
|
|
38909
|
-
] })
|
|
38910
|
-
]
|
|
38904
|
+
/* @__PURE__ */ u.jsxs(N0, { className: "px-6 pb-4 gap-2 w-full", children: [
|
|
38905
|
+
s && /* @__PURE__ */ u.jsx(S0, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
38906
|
+
Et,
|
|
38907
|
+
{
|
|
38908
|
+
disabled: s == null ? void 0 : s.isLoading,
|
|
38909
|
+
isLoading: s == null ? void 0 : s.isLoading,
|
|
38910
|
+
className: s == null ? void 0 : s.className,
|
|
38911
|
+
variant: (s == null ? void 0 : s.variant) || "ghost",
|
|
38912
|
+
onClick: s == null ? void 0 : s.onClick,
|
|
38913
|
+
children: s == null ? void 0 : s.label
|
|
38914
|
+
}
|
|
38915
|
+
) }),
|
|
38916
|
+
o && /* @__PURE__ */ u.jsx(
|
|
38917
|
+
Et,
|
|
38918
|
+
{
|
|
38919
|
+
disabled: o == null ? void 0 : o.isLoading,
|
|
38920
|
+
isLoading: o == null ? void 0 : o.isLoading,
|
|
38921
|
+
className: o == null ? void 0 : o.className,
|
|
38922
|
+
variant: (o == null ? void 0 : o.variant) || "default",
|
|
38923
|
+
onClick: o == null ? void 0 : o.onClick,
|
|
38924
|
+
children: o == null ? void 0 : o.label
|
|
38925
|
+
}
|
|
38926
|
+
)
|
|
38927
|
+
] })
|
|
38928
|
+
]
|
|
38929
|
+
}
|
|
38930
|
+
)
|
|
38911
38931
|
}
|
|
38912
|
-
)
|
|
38932
|
+
) : /* @__PURE__ */ u.jsx(u3, { open: e, onOpenChange: t, children: /* @__PURE__ */ u.jsxs(
|
|
38913
38933
|
j0,
|
|
38914
38934
|
{
|
|
38915
38935
|
className: ye(f),
|
|
@@ -38917,7 +38937,7 @@ const jae = ({
|
|
|
38917
38937
|
hasCloseIcon: d,
|
|
38918
38938
|
overlayClasses: ye(h, { "bg-transparent": y }),
|
|
38919
38939
|
children: [
|
|
38920
|
-
/* @__PURE__ */ u.jsx(y3, { className: "px-6 pt-4", children: /* @__PURE__ */ u.jsx(v3, { className: "text-heading-md", children: a }) }),
|
|
38940
|
+
a && /* @__PURE__ */ u.jsx(y3, { className: "px-6 pt-4", children: /* @__PURE__ */ u.jsx(v3, { className: "text-heading-md", children: a }) }),
|
|
38921
38941
|
/* @__PURE__ */ u.jsxs(
|
|
38922
38942
|
"div",
|
|
38923
38943
|
{
|
|
@@ -38934,7 +38954,7 @@ const jae = ({
|
|
|
38934
38954
|
]
|
|
38935
38955
|
}
|
|
38936
38956
|
),
|
|
38937
|
-
/* @__PURE__ */ u.jsxs(m3, { className: "px-
|
|
38957
|
+
/* @__PURE__ */ u.jsxs(m3, { className: "px-6 pb-4 gap-2", children: [
|
|
38938
38958
|
s && /* @__PURE__ */ u.jsx(h3, { asChild: !0, children: /* @__PURE__ */ u.jsx(
|
|
38939
38959
|
Et,
|
|
38940
38960
|
{
|