@zydon/common 1.2.80 → 1.2.82

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Upload.d.ts","sourceRoot":"","sources":["../../../src/components/upload/Upload.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAiF3C,QAAA,MAAM,MAAM,8MAoBT,WAAW,4CAyIb,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Upload.d.ts","sourceRoot":"","sources":["../../../src/components/upload/Upload.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAiF3C,QAAA,MAAM,MAAM,8MAoBT,WAAW,4CAmHb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { UploadProps } from '../../../types/upload';
2
- declare const MultiFilePreview: ({ thumbnail, files, onRemove, sx }: UploadProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const MultiFilePreview: ({ thumbnail, files, onRemove, onHandlePrincipal, isPrincipal, sx, }: UploadProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default MultiFilePreview;
4
4
  //# sourceMappingURL=MultiFilePreview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiFilePreview.d.ts","sourceRoot":"","sources":["../../../../src/components/upload/preview/MultiFilePreview.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,QAAA,MAAM,gBAAgB,uCAAwC,WAAW,mDA0GxE,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"MultiFilePreview.d.ts","sourceRoot":"","sources":["../../../../src/components/upload/preview/MultiFilePreview.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,QAAA,MAAM,gBAAgB,wEAOnB,WAAW,mDAyIb,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { p as rt, f as C, n as B, r as mn, c as gn, i as tt, d as Ts, a as yn, v as Vs, w as ie, b as yt, e as K, g as R, t as Pt, h as et, j as Ss, k as bs, l as k, m as nt, o as vn, q as xt, s as vt, u as As, x as Ds, y as Cs, z as at, A as Ms, B as Pn, C as Kt, D as xn, E as Tn, F as w, G as zt, H as dt, P as ws, I as Ls, L as Rs, S as Bs, J as Vn, K as Sn, M as bn, N as Et, O as jt, Q as ye, R as Ht, T as Fs, U as An, V as Dn, W as Es, X as js, Y as Cn, Z as Mn, _ as ks, $ as Is, a0 as Os, a1 as Us, a2 as Ns, a3 as Gs, a4 as $s, a5 as Ks, a6 as zs, a7 as Hs } from "./index-3f5f6ec4.js";
1
+ import { p as rt, f as C, n as B, r as mn, c as gn, i as tt, d as Ts, a as yn, v as Vs, w as ie, b as yt, e as K, g as R, t as Pt, h as et, j as Ss, k as bs, l as k, m as nt, o as vn, q as xt, s as vt, u as As, x as Ds, y as Cs, z as at, A as Ms, B as Pn, C as Kt, D as xn, E as Tn, F as w, G as zt, H as dt, P as ws, I as Ls, L as Rs, S as Bs, J as Vn, K as Sn, M as bn, N as Et, O as jt, Q as ye, R as Ht, T as Fs, U as An, V as Dn, W as Es, X as js, Y as Cn, Z as Mn, _ as ks, $ as Is, a0 as Os, a1 as Us, a2 as Ns, a3 as Gs, a4 as $s, a5 as Ks, a6 as zs, a7 as Hs } from "./index-199b4327.js";
2
2
  import wn, { useContext as _t, useId as _s, useEffect as Ws } from "react";
3
3
  import "@mui/material";
4
4
  import "@emotion/react";
@@ -7751,7 +7751,7 @@ const juu = ({
7751
7751
  ...a,
7752
7752
  children: n
7753
7753
  }
7754
- ), En1 = () => import("./features-7a089d22.js").then((e) => e.default), nHn = ({ children: e }) => /* @__PURE__ */ g.jsx(Ft1, { strict: !0, features: En1, children: /* @__PURE__ */ g.jsxs(Bn.div, { style: { height: "100%" }, children: [
7754
+ ), En1 = () => import("./features-3382a7d2.js").then((e) => e.default), nHn = ({ children: e }) => /* @__PURE__ */ g.jsx(Ft1, { strict: !0, features: En1, children: /* @__PURE__ */ g.jsxs(Bn.div, { style: { height: "100%" }, children: [
7755
7755
  " ",
7756
7756
  e,
7757
7757
  " "
@@ -274872,8 +274872,15 @@ const uxn = ({ onDownload: e }) => {
274872
274872
  d,
274873
274873
  a && /* @__PURE__ */ g.jsx(uxn, { onDownload: a })
274874
274874
  ] });
274875
- }, Oou = ({ thumbnail: e, files: t, onRemove: n, sx: a }) => t != null && t.length ? /* @__PURE__ */ g.jsx(eHn, { initial: !1, children: t.map((r) => {
274876
- const { key: u, name: c = "", size: l = 0 } = dSn(r), f = typeof r == "string";
274875
+ }, Oou = ({
274876
+ thumbnail: e,
274877
+ files: t,
274878
+ onRemove: n,
274879
+ onHandlePrincipal: a,
274880
+ isPrincipal: r,
274881
+ sx: u
274882
+ }) => t != null && t.length ? /* @__PURE__ */ g.jsx(eHn, { initial: !1, children: t.map((c) => {
274883
+ const { key: l, name: f = "", size: s = 0 } = dSn(c), d = typeof c == "string";
274877
274884
  return e ? /* @__PURE__ */ g.jsxs(
274878
274885
  Me,
274879
274886
  {
@@ -274889,8 +274896,8 @@ const uxn = ({ onDownload: e }) => {
274889
274896
  borderRadius: 1.25,
274890
274897
  overflow: "hidden",
274891
274898
  position: "relative",
274892
- border: (s) => `solid 1px ${s.palette.divider}`,
274893
- ...a
274899
+ border: (_) => `solid 1px ${_.palette.divider}`,
274900
+ ...u
274894
274901
  },
274895
274902
  children: [
274896
274903
  /* @__PURE__ */ g.jsx(
@@ -274898,7 +274905,7 @@ const uxn = ({ onDownload: e }) => {
274898
274905
  {
274899
274906
  tooltip: !0,
274900
274907
  imageView: !0,
274901
- file: r,
274908
+ file: c,
274902
274909
  sx: { position: "absolute" },
274903
274910
  imgSx: { position: "absolute" }
274904
274911
  }
@@ -274907,24 +274914,41 @@ const uxn = ({ onDownload: e }) => {
274907
274914
  _n,
274908
274915
  {
274909
274916
  size: "small",
274910
- onClick: () => n(r),
274917
+ onClick: () => n(c),
274911
274918
  sx: {
274912
274919
  top: 4,
274913
274920
  right: 4,
274914
274921
  p: "1px",
274915
274922
  position: "absolute",
274916
- color: (s) => q(s.palette.common.white, 0.72),
274917
- bgcolor: (s) => q(s.palette.grey[900], 0.48),
274923
+ color: (_) => q(_.palette.common.white, 0.72),
274924
+ bgcolor: (_) => q(_.palette.grey[900], 0.48),
274918
274925
  "&:hover": {
274919
- bgcolor: (s) => q(s.palette.grey[900], 0.72)
274926
+ bgcolor: (_) => q(_.palette.grey[900], 0.72)
274920
274927
  }
274921
274928
  },
274922
274929
  children: /* @__PURE__ */ g.jsx(Ee, { icon: "CLOSE_MARK_BUTTON", width: 16 })
274923
274930
  }
274931
+ ),
274932
+ a && /* @__PURE__ */ g.jsx(
274933
+ _n,
274934
+ {
274935
+ size: "small",
274936
+ onClick: () => a(c),
274937
+ sx: {
274938
+ top: 271,
274939
+ left: -8,
274940
+ zIndex: 9,
274941
+ position: "absolute",
274942
+ color: (_) => r ? _.palette.secondary.main : _.palette.action.disabled,
274943
+ bgcolor: (_) => r ? _.palette.action.disabled : _.palette.common.white,
274944
+ borderColor: (_) => r ? _.palette.secondary.main : _.palette.divider
274945
+ },
274946
+ children: r ? /* @__PURE__ */ g.jsx(Ee, { icon: "STAR_02", width: 18 }) : /* @__PURE__ */ g.jsx(Ee, { icon: "STAR", width: 18 })
274947
+ }
274924
274948
  )
274925
274949
  ]
274926
274950
  },
274927
- u
274951
+ l
274928
274952
  ) : /* @__PURE__ */ g.jsxs(
274929
274953
  Me,
274930
274954
  {
@@ -274938,27 +274962,27 @@ const uxn = ({ onDownload: e }) => {
274938
274962
  px: 1,
274939
274963
  py: 0.75,
274940
274964
  borderRadius: 0.75,
274941
- border: (s) => `solid 1px ${s.palette.divider}`,
274942
- ...a
274965
+ border: (_) => `solid 1px ${_.palette.divider}`,
274966
+ ...u
274943
274967
  },
274944
274968
  children: [
274945
- /* @__PURE__ */ g.jsx(cxn, { file: r }),
274969
+ /* @__PURE__ */ g.jsx(cxn, { file: c }),
274946
274970
  /* @__PURE__ */ g.jsxs(Me, { flexGrow: 1, sx: { minWidth: 0 }, children: [
274947
- /* @__PURE__ */ g.jsx(it, { variant: "subtitle2", noWrap: !0, children: f ? r : c }),
274948
- /* @__PURE__ */ g.jsx(it, { variant: "caption", sx: { color: "text.secondary" }, children: f ? "" : cSn(l) })
274971
+ /* @__PURE__ */ g.jsx(it, { variant: "subtitle2", noWrap: !0, children: d ? c : f }),
274972
+ /* @__PURE__ */ g.jsx(it, { variant: "caption", sx: { color: "text.secondary" }, children: d ? "" : cSn(s) })
274949
274973
  ] }),
274950
274974
  n && /* @__PURE__ */ g.jsx(
274951
274975
  _n,
274952
274976
  {
274953
274977
  edge: "end",
274954
274978
  size: "small",
274955
- onClick: () => n(r),
274979
+ onClick: () => n(c),
274956
274980
  children: /* @__PURE__ */ g.jsx(Ee, { icon: "CLOSE_MARK_BUTTON" })
274957
274981
  }
274958
274982
  )
274959
274983
  ]
274960
274984
  },
274961
- u
274985
+ l
274962
274986
  );
274963
274987
  }) }) : null;
274964
274988
  function yce(e, t, n, a) {
@@ -276358,31 +276382,14 @@ const gNn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
276358
276382
  children: /* @__PURE__ */ g.jsx(Ee, { icon: "CLOSE_MARK_BUTTON", width: 18 })
276359
276383
  }
276360
276384
  ),
276361
- D && d && /* @__PURE__ */ g.jsx(
276362
- _n,
276363
- {
276364
- size: "small",
276365
- onClick: () => d(),
276366
- sx: {
276367
- top: 16,
276368
- left: 16,
276369
- zIndex: 9,
276370
- position: "absolute",
276371
- color: (I) => q(I.palette.common.white, 0.8),
276372
- bgcolor: (I) => q(I.palette.grey[900], 0.72),
276373
- "&:hover": {
276374
- bgcolor: (I) => q(I.palette.grey[900], 0.48)
276375
- }
276376
- },
276377
- children: _ ? /* @__PURE__ */ g.jsx(Ee, { icon: "STAR_02", width: 18 }) : /* @__PURE__ */ g.jsx(Ee, { icon: "STAR", width: 18 })
276378
- }
276379
- ),
276380
276385
  $ && /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsx(Je, { sx: { my: 3 }, children: /* @__PURE__ */ g.jsx(
276381
276386
  Oou,
276382
276387
  {
276383
276388
  files: l,
276384
276389
  thumbnail: f,
276385
- onRemove: s
276390
+ onRemove: s,
276391
+ onHandlePrincipal: d,
276392
+ isPrincipal: _
276386
276393
  }
276387
276394
  ) }) })
276388
276395
  ] });
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ad as u, a_ as p, ae as d, a$ as m, af as C, ag as v, bO as S, bS as T, bR as g, bQ as k, b0 as P, b2 as A, b3 as I, ah as h, ai as F, aj as y, ak as B, al as M, am as x, an as D, b4 as f, b5 as w, b6 as R, ao as E, bj as L, ap as N, aq as U, ar as W, bl as H, b7 as O, as as G, b8 as V, at as j, au as q, bm as z, av as K, a9 as Z, aw as J, ax as Q, b9 as X, ay as Y, ab as _, az as $, aA as aa, ba as sa, bH as ea, aB as oa, aC as ra, aD as ta, bo as ba, bp as ia, bn as na, b1 as la, bb as ca, aa as ua, aE as pa, bc as da, bd as ma, aF as Ca, aX as va, aG as Sa, be as Ta, aH as ga, aI as ka, aJ as Pa, aK as Aa, bI as Ia, bJ as ha, aL as Fa, aM as ya, aN as Ba, aO as Ma, aY as xa, bf as Da, bq as fa, aP as wa, bW as Ra, bX as Ea, bU as La, bZ as Na, bY as Ua, bV as Wa, bk as Ha, aQ as Oa, aR as Ga, bg as Va, bK as ja, aS as qa, aT as za, bh as Ka, aU as Za, a8 as Ja, aV as Qa, bi as Xa, aZ as Ya, aW as _a, bL as $a, cn as as, ch as ss, b_ as es, bM as os, ce as rs, cf as ts, cg as bs, b$ as is, cp as ns, cm as ls, cl as cs, ci as us, cj as ps, c0 as ds, cd as ms, bP as Cs, c1 as vs, c2 as Ss, c3 as Ts, c4 as gs, c5 as ks, ac as Ps, cb as As, ca as Is, c9 as hs, cc as Fs, c6 as ys, bN as Bs, bT as Ms, c7 as xs, c8 as Ds, co as fs, ck as ws, bE as Rs, bF as Es, bG as Ls, bx as Ns, bA as Us, bs as Ws, bu as Hs, bz as Os, br as Gs, by as Vs, bw as js, bv as qs, bC as zs, bD as Ks, bB as Zs, bt as Js } from "./index-3f5f6ec4.js";
1
+ import { ad as u, a_ as p, ae as d, a$ as m, af as C, ag as v, bO as S, bS as T, bR as g, bQ as k, b0 as P, b2 as A, b3 as I, ah as h, ai as F, aj as y, ak as B, al as M, am as x, an as D, b4 as f, b5 as w, b6 as R, ao as E, bj as L, ap as N, aq as U, ar as W, bl as H, b7 as O, as as G, b8 as V, at as j, au as q, bm as z, av as K, a9 as Z, aw as J, ax as Q, b9 as X, ay as Y, ab as _, az as $, aA as aa, ba as sa, bH as ea, aB as oa, aC as ra, aD as ta, bo as ba, bp as ia, bn as na, b1 as la, bb as ca, aa as ua, aE as pa, bc as da, bd as ma, aF as Ca, aX as va, aG as Sa, be as Ta, aH as ga, aI as ka, aJ as Pa, aK as Aa, bI as Ia, bJ as ha, aL as Fa, aM as ya, aN as Ba, aO as Ma, aY as xa, bf as Da, bq as fa, aP as wa, bW as Ra, bX as Ea, bU as La, bZ as Na, bY as Ua, bV as Wa, bk as Ha, aQ as Oa, aR as Ga, bg as Va, bK as ja, aS as qa, aT as za, bh as Ka, aU as Za, a8 as Ja, aV as Qa, bi as Xa, aZ as Ya, aW as _a, bL as $a, cn as as, ch as ss, b_ as es, bM as os, ce as rs, cf as ts, cg as bs, b$ as is, cp as ns, cm as ls, cl as cs, ci as us, cj as ps, c0 as ds, cd as ms, bP as Cs, c1 as vs, c2 as Ss, c3 as Ts, c4 as gs, c5 as ks, ac as Ps, cb as As, ca as Is, c9 as hs, cc as Fs, c6 as ys, bN as Bs, bT as Ms, c7 as xs, c8 as Ds, co as fs, ck as ws, bE as Rs, bF as Es, bG as Ls, bx as Ns, bA as Us, bs as Ws, bu as Hs, bz as Os, br as Gs, by as Vs, bw as js, bv as qs, bC as zs, bD as Ks, bB as Zs, bt as Js } from "./index-199b4327.js";
2
2
  import "react";
3
3
  import "@mui/material";
4
4
  import "@emotion/react";