@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 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
  }
@@ -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: string | default_2.ReactNode;
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 right-5 top-5 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" }) })
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(({ className: e, children: t, hasCloseIcon: a, overlayClasses: n, ...r }, o) => /* @__PURE__ */ u.jsxs(PJ, { children: [
38784
- /* @__PURE__ */ u.jsx(g3, { className: n }),
38785
- /* @__PURE__ */ u.jsx(Ba, { trapped: !1, children: /* @__PURE__ */ u.jsxs(
38786
- Vt.Content,
38787
- {
38788
- ref: o,
38789
- className: ye(
38790
- "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col gap-4 rounded-t-[10px] border color-bg-default",
38791
- e
38792
- ),
38793
- ...r,
38794
- children: [
38795
- t,
38796
- a && /* @__PURE__ */ u.jsx(S0, { className: "absolute top-6 right-6 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" }) })
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(A0, { open: e, onOpenChange: (g) => t(g), children: /* @__PURE__ */ u.jsxs(
38863
- T0,
38871
+ }) => BJ("(max-width: 768px)") ? /* @__PURE__ */ u.jsx(
38872
+ A0,
38864
38873
  {
38865
- className: ye("w-full", f),
38866
- hasCloseIcon: d,
38867
- overlayClasses: ye(h, { "bg-transparent": y }),
38868
- children: [
38869
- /* @__PURE__ */ u.jsx(I0, { className: "px-6 pt-6", children: /* @__PURE__ */ u.jsx(D0, { className: "text-left text-heading-md", children: a }) }),
38870
- /* @__PURE__ */ u.jsxs(
38871
- "div",
38872
- {
38873
- className: ye(
38874
- "flex flex-col gap-4 w-full h-full border-t-[1px] text-body-sm color-text-default",
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
- "px-6 pt-6 pb-2": !c
38877
- },
38878
- c
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
- n && /* @__PURE__ */ u.jsx("p", { children: n }),
38882
- r && r
38883
- ]
38884
- }
38885
- ),
38886
- /* @__PURE__ */ u.jsxs(N0, { className: "px-5 pb-5 gap-2 w-full", children: [
38887
- s && /* @__PURE__ */ u.jsx(S0, { asChild: !0, children: /* @__PURE__ */ u.jsx(
38888
- Et,
38889
- {
38890
- disabled: s == null ? void 0 : s.isLoading,
38891
- isLoading: s == null ? void 0 : s.isLoading,
38892
- className: s == null ? void 0 : s.className,
38893
- variant: (s == null ? void 0 : s.variant) || "ghost",
38894
- onClick: s == null ? void 0 : s.onClick,
38895
- children: s == null ? void 0 : s.label
38896
- }
38897
- ) }),
38898
- o && /* @__PURE__ */ u.jsx(
38899
- Et,
38900
- {
38901
- disabled: o == null ? void 0 : o.isLoading,
38902
- isLoading: o == null ? void 0 : o.isLoading,
38903
- className: o == null ? void 0 : o.className,
38904
- variant: (o == null ? void 0 : o.variant) || "default",
38905
- onClick: o == null ? void 0 : o.onClick,
38906
- children: o == null ? void 0 : o.label
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
- ) }) : /* @__PURE__ */ u.jsx(u3, { open: e, onOpenChange: t, children: /* @__PURE__ */ u.jsxs(
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-5 pb-5 gap-2", children: [
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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse/ui",
3
- "version": "4.1.2-patch-1",
3
+ "version": "4.1.2-patch-2",
4
4
  "files": [
5
5
  "/dist"
6
6
  ],