dgz-ui-shared 1.1.7 → 1.1.9

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.
Files changed (38) hide show
  1. package/dist/{Actions-Bg4_0weq.cjs → Actions-BYWRve24.cjs} +1 -1
  2. package/dist/{Actions-BuREhr4C.js → Actions-Ch2gh0m4.js} +1 -1
  3. package/dist/{ExportData-DspH4HLF.cjs → ExportData-BfvmBxMk.cjs} +1 -1
  4. package/dist/{ExportData-C97WQKG3.js → ExportData-j0k5_xKx.js} +1 -1
  5. package/dist/MyLimitSelect-CHZKfNok.cjs +6 -0
  6. package/dist/{MyLimitSelect-CSOpZUZQ.js → MyLimitSelect-DHwGBSOL.js} +64 -56
  7. package/dist/components/actions/index.cjs.js +1 -1
  8. package/dist/components/actions/index.es.js +1 -1
  9. package/dist/components/confirm/index.cjs.js +1 -1
  10. package/dist/components/confirm/index.es.js +1 -1
  11. package/dist/components/datatable/index.cjs.js +2 -2
  12. package/dist/components/datatable/index.es.js +4 -4
  13. package/dist/components/export/index.cjs.js +1 -1
  14. package/dist/components/export/index.es.js +1 -1
  15. package/dist/components/modal/index.cjs.js +2 -2
  16. package/dist/components/modal/index.es.js +16 -14
  17. package/dist/components/pagination/index.cjs.js +1 -1
  18. package/dist/components/pagination/index.es.js +1 -1
  19. package/dist/components/theme/index.cjs.js +1 -1
  20. package/dist/components/theme/index.es.js +1 -1
  21. package/dist/components/tooltip/index.cjs.js +1 -1
  22. package/dist/components/tooltip/index.es.js +56 -56
  23. package/dist/dgz-ui-shared.css +1 -1
  24. package/dist/{dropdown-menu-CxOevPOj-Iyvvp16W.cjs → dropdown-menu-BceuJw0L-CubE3SM3.cjs} +1 -1
  25. package/dist/hooks/index.cjs.js +1 -1
  26. package/dist/hooks/index.es.js +1 -1
  27. package/dist/types/App.d.ts.map +1 -1
  28. package/dist/types/components/modal/MyModal.d.ts +2 -1
  29. package/dist/types/components/modal/MyModal.d.ts.map +1 -1
  30. package/dist/types/components/pagination/MyLimitSelect.d.ts +1 -1
  31. package/dist/types/components/pagination/MyLimitSelect.d.ts.map +1 -1
  32. package/dist/types/components/pagination/MyPagination.d.ts.map +1 -1
  33. package/dist/types/components/tooltip/MyTooltip.d.ts.map +1 -1
  34. package/dist/{unstyled-DY5AL_L-.cjs → unstyled-DnN9JQKv.cjs} +1 -1
  35. package/package.json +2 -2
  36. package/dist/MyLimitSelect-DlOUfv_X.cjs +0 -6
  37. package/dist/{dropdown-menu-CxOevPOj-ezMrzPHK.js → dropdown-menu-BceuJw0L-PtnOmyx_.js} +1 -1
  38. package/dist/{unstyled-DpsacMhY.js → unstyled-CsQfnAD2.js} +1 -1
@@ -1 +1 @@
1
- "use strict";const s=require("./jsx-runtime-DUiatUiq.cjs"),n=require("./dropdown-menu-CxOevPOj-Iyvvp16W.cjs"),x=require("./button-Bp2lHjov-D9UnCnYX.cjs"),t=require("./index-CGv7FLNy.cjs"),u=require("./useTranslation-CZf20ucv.cjs"),c=({actions:i})=>{const{t:r}=u.useTranslation();return s.jsxRuntimeExports.jsxs(n.jt,{children:[s.jsxRuntimeExports.jsx(n.Tt,{asChild:!0,children:s.jsxRuntimeExports.jsxs(x.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:[s.jsxRuntimeExports.jsx(t.Wg,{})," ",s.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:r("Actions")}),s.jsxRuntimeExports.jsx(t.f1,{})]})}),s.jsxRuntimeExports.jsx(n.it,{align:"end",children:i.map((e,o)=>s.jsxRuntimeExports.jsx(n.ut,{onClick:()=>e.onClick(),children:e.label},o))})]})};exports.Actions=c;
1
+ "use strict";const s=require("./jsx-runtime-DUiatUiq.cjs"),n=require("./dropdown-menu-BceuJw0L-CubE3SM3.cjs"),u=require("./button-Bp2lHjov-D9UnCnYX.cjs"),t=require("./index-CGv7FLNy.cjs"),x=require("./useTranslation-CZf20ucv.cjs"),c=({actions:i})=>{const{t:r}=x.useTranslation();return s.jsxRuntimeExports.jsxs(n.jt,{children:[s.jsxRuntimeExports.jsx(n.Tt,{asChild:!0,children:s.jsxRuntimeExports.jsxs(u.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:[s.jsxRuntimeExports.jsx(t.Wg,{})," ",s.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:r("Actions")}),s.jsxRuntimeExports.jsx(t.f1,{})]})}),s.jsxRuntimeExports.jsx(n.it,{align:"end",children:i.map((e,o)=>s.jsxRuntimeExports.jsx(n.ut,{onClick:()=>e.onClick(),children:e.label},o))})]})};exports.Actions=c;
@@ -1,5 +1,5 @@
1
1
  import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
- import { j as t, T as e, i as o, u as l } from "./dropdown-menu-CxOevPOj-ezMrzPHK.js";
2
+ import { j as t, T as e, i as o, u as l } from "./dropdown-menu-BceuJw0L-PtnOmyx_.js";
3
3
  import { u as m } from "./button-Bp2lHjov-BTlHPcva.js";
4
4
  import { W as c, f as d } from "./index-BrQ82Wyu.js";
5
5
  import { u as j } from "./useTranslation-dH-uwymc.js";
@@ -1 +1 @@
1
- "use strict";const s=require("./jsx-runtime-DUiatUiq.cjs"),e=require("./dropdown-menu-CxOevPOj-Iyvvp16W.cjs"),u=require("./button-Bp2lHjov-D9UnCnYX.cjs"),n=require("./index-CGv7FLNy.cjs"),a=require("./Spin-BtIXLZuq.cjs"),j=require("./useTranslation-CZf20ucv.cjs"),l=({options:r,loading:i=!1})=>{const{t:x}=j.useTranslation();return s.jsxRuntimeExports.jsxs(e.jt,{children:[s.jsxRuntimeExports.jsx(e.Tt,{asChild:!0,children:s.jsxRuntimeExports.jsxs(u.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:[i?s.jsxRuntimeExports.jsx(a.Spin,{}):s.jsxRuntimeExports.jsx(n.ZC,{})," ",s.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:x("Export")}),s.jsxRuntimeExports.jsx(n.f1,{})]})}),s.jsxRuntimeExports.jsx(e.it,{align:"end",children:r.map((t,o)=>s.jsxRuntimeExports.jsx(e.ut,{onClick:()=>t.onClick(),children:t.label},o))})]})};exports.ExportData=l;
1
+ "use strict";const s=require("./jsx-runtime-DUiatUiq.cjs"),e=require("./dropdown-menu-BceuJw0L-CubE3SM3.cjs"),u=require("./button-Bp2lHjov-D9UnCnYX.cjs"),n=require("./index-CGv7FLNy.cjs"),a=require("./Spin-BtIXLZuq.cjs"),l=require("./useTranslation-CZf20ucv.cjs"),c=({options:r,loading:i=!1})=>{const{t:x}=l.useTranslation();return s.jsxRuntimeExports.jsxs(e.jt,{children:[s.jsxRuntimeExports.jsx(e.Tt,{asChild:!0,children:s.jsxRuntimeExports.jsxs(u.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:[i?s.jsxRuntimeExports.jsx(a.Spin,{}):s.jsxRuntimeExports.jsx(n.ZC,{})," ",s.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:x("Export")}),s.jsxRuntimeExports.jsx(n.f1,{})]})}),s.jsxRuntimeExports.jsx(e.it,{align:"end",children:r.map((t,o)=>s.jsxRuntimeExports.jsx(e.ut,{onClick:()=>t.onClick(),children:t.label},o))})]})};exports.ExportData=c;
@@ -1,5 +1,5 @@
1
1
  import { j as s } from "./jsx-runtime-C5mzlN2N.js";
2
- import { j as e, T as o, i as l, u as m } from "./dropdown-menu-CxOevPOj-ezMrzPHK.js";
2
+ import { j as e, T as o, i as l, u as m } from "./dropdown-menu-BceuJw0L-PtnOmyx_.js";
3
3
  import { u as x } from "./button-Bp2lHjov-BTlHPcva.js";
4
4
  import { Z as c, f as d } from "./index-BrQ82Wyu.js";
5
5
  import { S as j } from "./Spin-4v-RUSBk.js";
@@ -0,0 +1,6 @@
1
+ "use strict";const i=require("./jsx-runtime-DUiatUiq.cjs"),o=require("./index-DqTIeHVj-DlSOwhuZ.cjs"),p=require("react"),w=require("./button-Bp2lHjov-D9UnCnYX.cjs"),y=require("./chevron-right-HWBijj-I-Dp1SvzQb.cjs"),q=require("./createLucideIcon-B950nf2d-CFaVx9a3.cjs"),n=require("./utils-B6fNqzRf-BNysSCt9.cjs"),I=require("./react-select-Dr-07nIb-xlN_DoCo.cjs"),d=require("./useTranslation-CZf20ucv.cjs"),m=require("./input-mask-PwosgXFZ-DkKZA7fM.cjs");function g(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>s[a]})}}return e.default=s,Object.freeze(e)}const f=g(p);/**
2
+ * @license lucide-react v0.511.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const M=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],T=q.k("chevron-left",M),N=({className:s,...e})=>o.ae.jsx("nav",{role:"navigation","aria-label":"pagination",className:n.mo("flex w-full justify-center",s),...e});N.displayName="Pagination";const h=f.forwardRef(({className:s,...e},a)=>o.ae.jsx("ul",{ref:a,className:n.mo("flex flex-row items-center gap-1",s),...e}));h.displayName="PaginationContent";const x=f.forwardRef(({className:s,...e},a)=>o.ae.jsx("li",{ref:a,className:n.mo("",s),...e}));x.displayName="PaginationItem";const u=({className:s,isActive:e,size:a="icon",...l})=>o.ae.jsx("a",{"aria-current":e?"page":void 0,className:n.mo(w.g({variant:e?"tertiary":"ghost",size:a}),"cursor-pointer",s),...l});u.displayName="PaginationLink";const v=({className:s,...e})=>o.ae.jsx(u,{"aria-label":"Go to previous page",size:"default",className:n.mo("gap-1 px-2.5",s),...e,children:o.ae.jsx(T,{className:"h-4 w-4"})});v.displayName="PaginationPrevious";const R=({className:s,...e})=>o.ae.jsx(u,{"aria-label":"Go to next page",size:"default",className:n.mo("gap-1 px-2.5",s),...e,children:o.ae.jsx(y.e,{className:"h-4 w-4"})});R.displayName="PaginationNext";const z=({currentPage:s=1,totalPages:e=0,onPageChange:a})=>{const{t:l}=d.useTranslation(),r=p.useCallback(()=>{const t=[];t.push(1),s-1>2&&t.push("...");for(let j=Math.max(2,s-1);j<=Math.min(e-1,s+1);j++)t.push(j);return s+1<e-1&&t.push("..."),e>1&&t.push(e),t},[s,e]),E=p.useMemo(()=>{const t=[];for(let c=0;c<e;c++)t.push({value:`${c+1}`,label:`${c+1}`});return t},[e]);return i.jsxRuntimeExports.jsxs("div",{className:"flex flex-col items-center justify-end gap-3 lg:flex-row",children:[i.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[i.jsxRuntimeExports.jsxs("div",{className:"min-w-20 font-semibold",children:[l("Go to page"),":"]}),i.jsxRuntimeExports.jsx(I.zm,{className:"min-w-20",isClearable:!1,options:E,value:`${s}`,onChange:t=>a(parseInt(t))})]}),i.jsxRuntimeExports.jsx(N,{className:"justify-end",children:i.jsxRuntimeExports.jsxs(h,{children:[i.jsxRuntimeExports.jsx(x,{children:i.jsxRuntimeExports.jsx(v,{isActive:s>1,size:"sm",className:n.mo(s>1?"disabled":"shadow"),onClick:()=>{s>1&&a(s-1)}})}),r().map((t,c)=>i.jsxRuntimeExports.jsx(x,{onClick:()=>{typeof t=="number"&&a(t)},children:i.jsxRuntimeExports.jsx(u,{size:"sm",className:n.mo("w-9 px-0 text-center",t===s&&"shadow"),isActive:t===s,children:t})},c)),i.jsxRuntimeExports.jsx(x,{children:i.jsxRuntimeExports.jsx(R,{size:"sm",onClick:()=>{s<e&&a(s+1)},className:n.mo(s<e?"disabled":"shadow"),isActive:s<e})})]})})]})},b=50,k=[{value:10,label:"10"},{value:20,label:"20"},{value:50,label:"50"},{value:100,label:"100"}],L=({defaultValue:s=b,options:e=k,onLimitChange:a})=>{const{t:l}=d.useTranslation();return i.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxRuntimeExports.jsxs("span",{className:"font-semibold",children:[l("Rows per page"),":"]}),i.jsxRuntimeExports.jsxs(m.ww,{onValueChange:a,value:`${s}`,children:[i.jsxRuntimeExports.jsx(m.dm,{className:"h-8.5 w-17",children:i.jsxRuntimeExports.jsx(m.Aw,{})}),i.jsxRuntimeExports.jsx(m.fm,{children:e==null?void 0:e.map(r=>i.jsxRuntimeExports.jsx(m.gm,{value:`${r.value}`,children:r.label},r.value))})]})]})};exports.DEFAULT_LIMIT=b;exports.MyLimitSelect=L;exports.MyPagination=z;
@@ -1,20 +1,21 @@
1
1
  import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
2
  import { a as n } from "./index-DqTIeHVj-CeLMF2B2.js";
3
- import * as f from "react";
4
- import { useCallback as R } from "react";
5
- import { g as $ } from "./button-Bp2lHjov-BTlHPcva.js";
3
+ import * as x from "react";
4
+ import { useCallback as b, useMemo as w } from "react";
5
+ import { g as y } from "./button-Bp2lHjov-BTlHPcva.js";
6
+ import { e as z } from "./chevron-right-HWBijj-I-CVwIY20F.js";
7
+ import { k as R } from "./createLucideIcon-B950nf2d-C2YhAyqE.js";
6
8
  import { m } from "./utils-B6fNqzRf-B1_jG1K7.js";
7
- import { e as k } from "./chevron-right-HWBijj-I-CVwIY20F.js";
8
- import { k as z } from "./createLucideIcon-B950nf2d-C2YhAyqE.js";
9
- import { w as p, d as h, A as j, f as N, g as v } from "./input-mask-PwosgXFZ-D_jh0tAh.js";
10
- import { u } from "./useTranslation-dH-uwymc.js";
9
+ import { z as $ } from "./react-select-Dr-07nIb-DE_aB_nz.js";
10
+ import { u as p } from "./useTranslation-dH-uwymc.js";
11
+ import { w as A, d as k, A as M, f as I, g } from "./input-mask-PwosgXFZ-D_jh0tAh.js";
11
12
  /**
12
13
  * @license lucide-react v0.511.0 - ISC
13
14
  *
14
15
  * This source code is licensed under the ISC license.
15
16
  * See the LICENSE file in the root directory of this source tree.
16
17
  */
17
- const g = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], I = z("chevron-left", g), w = ({ className: s, ...a }) => /* @__PURE__ */ n.jsx(
18
+ const C = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], L = R("chevron-left", C), N = ({ className: s, ...a }) => /* @__PURE__ */ n.jsx(
18
19
  "nav",
19
20
  {
20
21
  role: "navigation",
@@ -23,8 +24,8 @@ const g = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], I = z("chevron-lef
23
24
  ...a
24
25
  }
25
26
  );
26
- w.displayName = "Pagination";
27
- const b = f.forwardRef(({ className: s, ...a }, l) => /* @__PURE__ */ n.jsx(
27
+ N.displayName = "Pagination";
28
+ const h = x.forwardRef(({ className: s, ...a }, l) => /* @__PURE__ */ n.jsx(
28
29
  "ul",
29
30
  {
30
31
  ref: l,
@@ -32,91 +33,98 @@ const b = f.forwardRef(({ className: s, ...a }, l) => /* @__PURE__ */ n.jsx(
32
33
  ...a
33
34
  }
34
35
  ));
35
- b.displayName = "PaginationContent";
36
- const r = f.forwardRef(({ className: s, ...a }, l) => /* @__PURE__ */ n.jsx("li", { ref: l, className: m("", s), ...a }));
36
+ h.displayName = "PaginationContent";
37
+ const r = x.forwardRef(({ className: s, ...a }, l) => /* @__PURE__ */ n.jsx("li", { ref: l, className: m("", s), ...a }));
37
38
  r.displayName = "PaginationItem";
38
- const d = ({
39
+ const f = ({
39
40
  className: s,
40
41
  isActive: a,
41
42
  size: l = "icon",
42
- ...o
43
+ ...t
43
44
  }) => /* @__PURE__ */ n.jsx(
44
45
  "a",
45
46
  {
46
47
  "aria-current": a ? "page" : void 0,
47
48
  className: m(
48
- $({
49
+ y({
49
50
  variant: a ? "tertiary" : "ghost",
50
51
  size: l
51
52
  }),
52
53
  "cursor-pointer",
53
54
  s
54
55
  ),
55
- ...o
56
+ ...t
56
57
  }
57
58
  );
58
- d.displayName = "PaginationLink";
59
- const y = ({
59
+ f.displayName = "PaginationLink";
60
+ const j = ({
60
61
  className: s,
61
62
  ...a
62
63
  }) => /* @__PURE__ */ n.jsx(
63
- d,
64
+ f,
64
65
  {
65
66
  "aria-label": "Go to previous page",
66
67
  size: "default",
67
68
  className: m("gap-1 px-2.5", s),
68
69
  ...a,
69
- children: /* @__PURE__ */ n.jsx(I, { className: "h-4 w-4" })
70
+ children: /* @__PURE__ */ n.jsx(L, { className: "h-4 w-4" })
70
71
  }
71
72
  );
72
- y.displayName = "PaginationPrevious";
73
- const A = ({
73
+ j.displayName = "PaginationPrevious";
74
+ const v = ({
74
75
  className: s,
75
76
  ...a
76
77
  }) => /* @__PURE__ */ n.jsx(
77
- d,
78
+ f,
78
79
  {
79
80
  "aria-label": "Go to next page",
80
81
  size: "default",
81
82
  className: m("gap-1 px-2.5", s),
82
83
  ...a,
83
- children: /* @__PURE__ */ n.jsx(k, { className: "h-4 w-4" })
84
+ children: /* @__PURE__ */ n.jsx(z, { className: "h-4 w-4" })
84
85
  }
85
86
  );
86
- A.displayName = "PaginationNext";
87
- const U = ({
87
+ v.displayName = "PaginationNext";
88
+ const H = ({
88
89
  currentPage: s = 1,
89
90
  totalPages: a = 0,
90
91
  onPageChange: l
91
92
  }) => {
92
- const { t: o } = u(), t = R(() => {
93
+ const { t } = p(), c = b(() => {
93
94
  const i = [];
94
95
  i.push(1), s - 1 > 2 && i.push("...");
95
- for (let x = Math.max(2, s - 1); x <= Math.min(a - 1, s + 1); x++)
96
- i.push(x);
96
+ for (let d = Math.max(2, s - 1); d <= Math.min(a - 1, s + 1); d++)
97
+ i.push(d);
97
98
  return s + 1 < a - 1 && i.push("..."), a > 1 && i.push(a), i;
98
- }, [s, a]);
99
+ }, [s, a]), u = w(() => {
100
+ const i = [];
101
+ for (let o = 0; o < a; o++)
102
+ i.push({
103
+ value: `${o + 1}`,
104
+ label: `${o + 1}`
105
+ });
106
+ return i;
107
+ }, [a]);
99
108
  return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center justify-end gap-3 lg:flex-row", children: [
100
109
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 text-sm", children: [
101
110
  /* @__PURE__ */ e.jsxs("div", { className: "min-w-20 font-semibold", children: [
102
- o("Go to page"),
111
+ t("Go to page"),
103
112
  ":"
104
113
  ] }),
105
- /* @__PURE__ */ e.jsxs(
106
- p,
114
+ /* @__PURE__ */ e.jsx(
115
+ $,
107
116
  {
108
- onValueChange: (i) => l(parseInt(i)),
117
+ className: "min-w-20",
118
+ isClearable: !1,
119
+ options: u,
109
120
  value: `${s}`,
110
- children: [
111
- /* @__PURE__ */ e.jsx(h, { className: "h-8.5 w-14", children: /* @__PURE__ */ e.jsx(j, {}) }),
112
- /* @__PURE__ */ e.jsx(N, { children: new Array(a).fill(0).map((i, c) => /* @__PURE__ */ e.jsx(v, { value: `${c + 1}`, children: c + 1 }, c + 1)) })
113
- ]
121
+ onChange: (i) => l(parseInt(i))
114
122
  }
115
123
  )
116
124
  ] }),
117
- /* @__PURE__ */ e.jsx(w, { className: "justify-end", children: /* @__PURE__ */ e.jsxs(b, { children: [
125
+ /* @__PURE__ */ e.jsx(N, { className: "justify-end", children: /* @__PURE__ */ e.jsxs(h, { children: [
118
126
  /* @__PURE__ */ e.jsx(r, { children: /* @__PURE__ */ e.jsx(
119
- y,
127
+ j,
120
128
  {
121
129
  isActive: s > 1,
122
130
  size: "sm",
@@ -126,14 +134,14 @@ const U = ({
126
134
  }
127
135
  }
128
136
  ) }),
129
- t().map((i, c) => /* @__PURE__ */ e.jsx(
137
+ c().map((i, o) => /* @__PURE__ */ e.jsx(
130
138
  r,
131
139
  {
132
140
  onClick: () => {
133
141
  typeof i == "number" && l(i);
134
142
  },
135
143
  children: /* @__PURE__ */ e.jsx(
136
- d,
144
+ f,
137
145
  {
138
146
  size: "sm",
139
147
  className: m(
@@ -145,10 +153,10 @@ const U = ({
145
153
  }
146
154
  )
147
155
  },
148
- c
156
+ o
149
157
  )),
150
158
  /* @__PURE__ */ e.jsx(r, { children: /* @__PURE__ */ e.jsx(
151
- A,
159
+ v,
152
160
  {
153
161
  size: "sm",
154
162
  onClick: () => {
@@ -160,7 +168,7 @@ const U = ({
160
168
  ) })
161
169
  ] }) })
162
170
  ] });
163
- }, M = 50, L = [
171
+ }, T = 50, D = [
164
172
  {
165
173
  value: 10,
166
174
  label: "10"
@@ -177,25 +185,25 @@ const U = ({
177
185
  value: 100,
178
186
  label: "100"
179
187
  }
180
- ], V = ({
181
- defaultValue: s = M,
182
- options: a = L,
188
+ ], J = ({
189
+ defaultValue: s = T,
190
+ options: a = D,
183
191
  onLimitChange: l
184
192
  }) => {
185
- const { t: o } = u();
193
+ const { t } = p();
186
194
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
187
195
  /* @__PURE__ */ e.jsxs("span", { className: "font-semibold", children: [
188
- o("Rows per page"),
196
+ t("Rows per page"),
189
197
  ":"
190
198
  ] }),
191
- /* @__PURE__ */ e.jsxs(p, { onValueChange: l, value: `${s}`, children: [
192
- /* @__PURE__ */ e.jsx(h, { className: "h-8.5 w-17", children: /* @__PURE__ */ e.jsx(j, {}) }),
193
- /* @__PURE__ */ e.jsx(N, { children: a == null ? void 0 : a.map((t) => /* @__PURE__ */ e.jsx(v, { value: `${t.value}`, children: t.label }, t.value)) })
199
+ /* @__PURE__ */ e.jsxs(A, { onValueChange: l, value: `${s}`, children: [
200
+ /* @__PURE__ */ e.jsx(k, { className: "h-8.5 w-17", children: /* @__PURE__ */ e.jsx(M, {}) }),
201
+ /* @__PURE__ */ e.jsx(I, { children: a == null ? void 0 : a.map((c) => /* @__PURE__ */ e.jsx(g, { value: `${c.value}`, children: c.label }, c.value)) })
194
202
  ] })
195
203
  ] });
196
204
  };
197
205
  export {
198
- M as D,
199
- U as M,
200
- V as a
206
+ T as D,
207
+ H as M,
208
+ J as a
201
209
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../Actions-Bg4_0weq.cjs");exports.Actions=t.Actions;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../Actions-BYWRve24.cjs");exports.Actions=t.Actions;
@@ -1,4 +1,4 @@
1
- import { A as s } from "../../Actions-BuREhr4C.js";
1
+ import { A as s } from "../../Actions-Ch2gh0m4.js";
2
2
  export {
3
3
  s as Actions
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../unstyled-DY5AL_L-.cjs");exports.Confirm=r.Confirm;exports.ConfirmContainer=r.Lt;exports.PasswordConfirm=r.PasswordConfirm;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../unstyled-DnN9JQKv.cjs");exports.Confirm=r.Confirm;exports.ConfirmContainer=r.Lt;exports.PasswordConfirm=r.PasswordConfirm;
@@ -1,4 +1,4 @@
1
- import { C as a, L as n, P as s } from "../../unstyled-DpsacMhY.js";
1
+ import { C as a, L as n, P as s } from "../../unstyled-CsQfnAD2.js";
2
2
  export {
3
3
  a as Confirm,
4
4
  n as ConfirmContainer,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-DUiatUiq.cjs"),Y=require("../../button-Bp2lHjov-D9UnCnYX.cjs"),N=require("../../dropdown-menu-CxOevPOj-Iyvvp16W.cjs"),T=require("../../MyLimitSelect-DlOUfv_X.cjs"),H=require("../../index-CGv7FLNy.cjs"),n=require("react"),y=require("../../lodash-C5w_OPmE.cjs"),m=require("../../index-DqTIeHVj-DlSOwhuZ.cjs"),c=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),z=require("../../useSortable-ByFhUHQb.cjs"),S=require("../../input-mask-PwosgXFZ-DkKZA7fM.cjs"),V=require("../../SortOrder-81BrXp3i.cjs"),U=require("../../Empty--unTFnpg.cjs"),L=require("../../createLucideIcon-BnAj0RnC.cjs"),W=require("../../FilterWrapper-D-9XhNZS.cjs"),K=require("../../Loader-BMHIikqX.cjs"),C=require("../../Actions-Bg4_0weq.cjs"),P=require("../../ExportData-DspH4HLF.cjs"),ee=require("../../useTranslation-CZf20ucv.cjs"),B=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("table",{ref:i,className:c.mo("w-full caption-bottom text-sm",s),...t}));B.displayName="Table";const O=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("thead",{ref:i,className:c.mo("[&_tr]:border-b",s),...t}));O.displayName="TableHeader";const Z=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tbody",{ref:i,className:c.mo("[&_tr:last-child]:border-0",s),...t}));Z.displayName="TableBody";const se=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tfoot",{ref:i,className:c.mo("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",s),...t}));se.displayName="TableFooter";const q=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tr",{ref:i,className:c.mo("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",s),...t}));q.displayName="TableRow";const M=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("th",{ref:i,className:c.mo("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",s),...t}));M.displayName="TableHead";const w=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("td",{ref:i,className:c.mo("p-4 align-middle [&:has([role=checkbox])]:pr-0",s),...t}));w.displayName="TableCell";const te=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("caption",{ref:i,className:c.mo("text-muted-foreground mt-4 text-sm",s),...t}));te.displayName="TableCaption";/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-DUiatUiq.cjs"),Y=require("../../button-Bp2lHjov-D9UnCnYX.cjs"),N=require("../../dropdown-menu-BceuJw0L-CubE3SM3.cjs"),T=require("../../MyLimitSelect-CHZKfNok.cjs"),H=require("../../index-CGv7FLNy.cjs"),n=require("react"),y=require("../../lodash-C5w_OPmE.cjs"),m=require("../../index-DqTIeHVj-DlSOwhuZ.cjs"),c=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),z=require("../../useSortable-ByFhUHQb.cjs"),B=require("../../input-mask-PwosgXFZ-DkKZA7fM.cjs"),S=require("../../SortOrder-81BrXp3i.cjs"),U=require("../../Empty--unTFnpg.cjs"),L=require("../../createLucideIcon-BnAj0RnC.cjs"),V=require("../../FilterWrapper-D-9XhNZS.cjs"),K=require("../../Loader-BMHIikqX.cjs"),C=require("../../Actions-BYWRve24.cjs"),P=require("../../ExportData-BfvmBxMk.cjs"),ee=require("../../useTranslation-CZf20ucv.cjs"),W=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("table",{ref:i,className:c.mo("w-full caption-bottom text-sm",s),...t}));W.displayName="Table";const Z=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("thead",{ref:i,className:c.mo("[&_tr]:border-b",s),...t}));Z.displayName="TableHeader";const J=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tbody",{ref:i,className:c.mo("[&_tr:last-child]:border-0",s),...t}));J.displayName="TableBody";const se=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tfoot",{ref:i,className:c.mo("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",s),...t}));se.displayName="TableFooter";const q=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("tr",{ref:i,className:c.mo("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",s),...t}));q.displayName="TableRow";const M=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("th",{ref:i,className:c.mo("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",s),...t}));M.displayName="TableHead";const b=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("td",{ref:i,className:c.mo("p-4 align-middle [&:has([role=checkbox])]:pr-0",s),...t}));b.displayName="TableCell";const te=n.forwardRef(({className:s,...t},i)=>m.ae.jsx("caption",{ref:i,className:c.mo("text-muted-foreground mt-4 text-sm",s),...t}));te.displayName="TableCaption";/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -18,4 +18,4 @@
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const ce=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ne=L.createLucideIcon("refresh-cw",ce),X=({rows:s=[],columns:t,onRowClick:i,rowKey:p,params:a={page:1,limit:T.DEFAULT_LIMIT},hasNumbers:f=!1,hasCheckbox:u=!1,selectedItems:I,onSelectedItemsChange:k,onSortOrderChange:_,isStickyHeader:l})=>{const{sortObject:d,handleSort:A}=z.useSortable({sortField:a==null?void 0:a.sortField,sortOrder:a==null?void 0:a.sortField,onSortOrderChange:_}),{selectedRows:E,isRowSelected:R,isAllRowsSelected:g,handleSelectAllRows:b,handleSelectRow:j}=z.useDataTable({rows:s,defaultSelectedRows:I});return n.useEffect(()=>{k&&k(E)},[E]),e.jsxRuntimeExports.jsxs(B,{className:"relative",children:[e.jsxRuntimeExports.jsx(O,{className:c.mo("bg-bg",l&&"sticky top-0 z-10"),children:e.jsxRuntimeExports.jsxs(q,{children:[u&&e.jsxRuntimeExports.jsx(M,{className:"w-12 p-3",children:e.jsxRuntimeExports.jsx(S.Zf,{className:"mt-1",checked:g(p),onCheckedChange:r=>b(p,!!r),"aria-label":"Select all"})}),f&&e.jsxRuntimeExports.jsx(M,{className:"w-12 p-2",children:"#"}),t.filter(r=>!r.hidden).map(r=>e.jsxRuntimeExports.jsx(M,{style:r.styles,className:c.mo("p-2",r.sortable&&"cursor-pointer"),onClick:()=>r.sortable&&A(r.dataIndex),children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[r.name," ",r.sortable&&((d==null?void 0:d.sortField)===r.key?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[(d==null?void 0:d.sortOrder)===V.SortOrder.DESC&&e.jsxRuntimeExports.jsx(ie,{size:15}),(d==null?void 0:d.sortOrder)===V.SortOrder.ASC&&e.jsxRuntimeExports.jsx(de,{size:15})]}):e.jsxRuntimeExports.jsx(xe,{size:15}))]})},r.key))]})}),e.jsxRuntimeExports.jsx(Z,{className:"[&>tr:nth-child(even)]:bg-bg-secondary",children:s.length?s.map((r,h)=>e.jsxRuntimeExports.jsxs(q,{onClick:()=>i==null?void 0:i(r),className:c.mo(i&&"cursor-pointer"),"data-state":R(r[p])&&"selected",children:[u&&e.jsxRuntimeExports.jsx(w,{className:"w-12 p-3",onClick:x=>x.stopPropagation(),children:e.jsxRuntimeExports.jsx(S.Zf,{className:"mt-1",checked:R(r[p]),onCheckedChange:x=>j(r[p],!!x),"aria-label":"Select row"})}),f&&e.jsxRuntimeExports.jsx(w,{className:"w-12 p-2",children:(a.page-1)*(a.limit||T.DEFAULT_LIMIT)+h+1}),t.filter(x=>!x.hidden).map(x=>e.jsxRuntimeExports.jsx(w,{className:"text-body-xs-medium max-w-xs p-2",style:x.styles,children:x.render?x.render(y.lodashExports.get(r,x.dataIndex),r):y.lodashExports.get(r,x.dataIndex,"")},`${h}-${x.key}`))]},`${r[p]}`)):e.jsxRuntimeExports.jsx(q,{children:e.jsxRuntimeExports.jsx(w,{colSpan:f?u?t.length+2:t.length+1:t.length,children:e.jsxRuntimeExports.jsx(U.Empty,{})})})})]})},ae=({dataSource:s,columns:t,onRowClick:i,rowKey:p,hasNumbers:a,hasSearch:f,exportOptions:u,hasCheckbox:I,hasPagination:k,isStickyHeader:_,onParamChange:l,dataKey:d="docs",loading:A,tableKey:E,filters:R,actions:g,handleFilterChange:b,params:j,exportLoading:r=!1,onColumnsUpdate:h,hasColumnsVisibilityDropdown:x})=>{const{t:F}=ee.useTranslation(),[$,G]=n.useState([]),{formattedColumns:v,handleColumnsChange:J,resetColumns:Q}=z.useColumns({key:E,columns:t});return n.useEffect(()=>{h==null||h(v)},[v,h]),e.jsxRuntimeExports.jsxs("div",{className:"border-border-alpha-light flex grow flex-col overflow-auto rounded-xl border shadow-xs",children:[(f||x&&E||!y.lodashExports.isEmpty(u)||!y.lodashExports.isEmpty(R))&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"w-full shrink",children:f&&e.jsxRuntimeExports.jsx(W.Search,{defaultValue:y.lodashExports.get(j,"search",""),onSearchChange:o=>l==null?void 0:l({...j,search:o,page:1})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-3",children:[u&&e.jsxRuntimeExports.jsx(P.ExportData,{options:u,loading:r}),x&&E&&e.jsxRuntimeExports.jsxs(N.jt,{children:[e.jsxRuntimeExports.jsx(N.Tt,{asChild:!0,children:e.jsxRuntimeExports.jsxs(Y.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:[e.jsxRuntimeExports.jsx(H.yn,{})," ",e.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:F("Customize columns")}),e.jsxRuntimeExports.jsx(H.f1,{})]})}),e.jsxRuntimeExports.jsxs(N.it,{align:"end",children:[e.jsxRuntimeExports.jsxs(N.ut,{className:"capitalize",onClick:Q,children:[e.jsxRuntimeExports.jsx(ne,{})," ",F("Reset columns")]}),e.jsxRuntimeExports.jsx(N.ft,{}),v.map(o=>e.jsxRuntimeExports.jsx(N.dt,{className:"capitalize",checked:!o.hidden,onCheckedChange:D=>J(o,!D),children:o.name},o.key))]})]}),g&&e.jsxRuntimeExports.jsx(C.Actions,{actions:g}),R&&e.jsxRuntimeExports.jsx(W.FilterWrapper,{filters:R,onFilter:o=>{l==null||l({...j,...o,page:1}),b==null||b(o)}})]})]}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col overflow-auto border-y",children:A?e.jsxRuntimeExports.jsx(K.Loader,{}):e.jsxRuntimeExports.jsx(X,{params:j,rows:y.lodashExports.get(s,d,[]),rowKey:p,selectedItems:$,isStickyHeader:_,columns:v,hasCheckbox:I,hasNumbers:a,onRowClick:i,onSelectedItemsChange:G,onSortOrderChange:({sortField:o,sortOrder:D})=>{l==null||l({...j,sortField:o,sortOrder:D})}})}),k&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"text-sm",children:e.jsxRuntimeExports.jsx(T.MyLimitSelect,{onLimitChange:o=>l==null?void 0:l({...j,limit:o,page:1}),defaultValue:s==null?void 0:s.limit})}),e.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground text-sm",children:[$.length," of ",(s==null?void 0:s.total)||0," row(s) selected."]}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(T.MyPagination,{onPageChange:o=>l==null?void 0:l({...j,page:o}),currentPage:s==null?void 0:s.page,totalPages:s==null?void 0:s.totalPages})})]})]})};exports.DataTable=ae;exports.MyTable=X;
21
+ */const ce=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ne=L.createLucideIcon("refresh-cw",ce),O=({rows:s=[],columns:t,onRowClick:i,rowKey:j,params:a={page:1,limit:T.DEFAULT_LIMIT},hasNumbers:f=!1,hasCheckbox:u=!1,selectedItems:I,onSelectedItemsChange:k,onSortOrderChange:_,isStickyHeader:l})=>{const{sortObject:d,handleSort:A}=z.useSortable({sortField:a==null?void 0:a.sortField,sortOrder:a==null?void 0:a.sortField,onSortOrderChange:_}),{selectedRows:E,isRowSelected:R,isAllRowsSelected:g,handleSelectAllRows:w,handleSelectRow:p}=z.useDataTable({rows:s,defaultSelectedRows:I});return n.useEffect(()=>{k&&k(E)},[E]),e.jsxRuntimeExports.jsxs(W,{className:"relative",children:[e.jsxRuntimeExports.jsx(Z,{className:c.mo("bg-bg",l&&"sticky top-0 z-10"),children:e.jsxRuntimeExports.jsxs(q,{children:[u&&e.jsxRuntimeExports.jsx(M,{className:"w-12 p-3",children:e.jsxRuntimeExports.jsx(B.Zf,{className:"mt-1",checked:g(j),onCheckedChange:r=>w(j,!!r),"aria-label":"Select all"})}),f&&e.jsxRuntimeExports.jsx(M,{className:"w-12 p-2",children:"#"}),t.filter(r=>!r.hidden).map(r=>e.jsxRuntimeExports.jsx(M,{style:r.styles,className:c.mo("p-2",r.sortable&&"cursor-pointer"),onClick:()=>r.sortable&&A(r.dataIndex),children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[r.name," ",r.sortable&&((d==null?void 0:d.sortField)===r.key?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[(d==null?void 0:d.sortOrder)===S.SortOrder.DESC&&e.jsxRuntimeExports.jsx(ie,{size:15}),(d==null?void 0:d.sortOrder)===S.SortOrder.ASC&&e.jsxRuntimeExports.jsx(de,{size:15})]}):e.jsxRuntimeExports.jsx(xe,{size:15}))]})},r.key))]})}),e.jsxRuntimeExports.jsx(J,{className:"[&>tr:nth-child(even)]:bg-bg-secondary",children:s.length?s.map((r,h)=>e.jsxRuntimeExports.jsxs(q,{onClick:()=>i==null?void 0:i(r),className:c.mo(i&&"cursor-pointer"),"data-state":R(r[j])&&"selected",children:[u&&e.jsxRuntimeExports.jsx(b,{className:"w-12 p-3",onClick:x=>x.stopPropagation(),children:e.jsxRuntimeExports.jsx(B.Zf,{className:"mt-1",checked:R(r[j]),onCheckedChange:x=>p(r[j],!!x),"aria-label":"Select row"})}),f&&e.jsxRuntimeExports.jsx(b,{className:"w-12 p-2",children:(a.page-1)*(a.limit||T.DEFAULT_LIMIT)+h+1}),t.filter(x=>!x.hidden).map(x=>e.jsxRuntimeExports.jsx(b,{className:"text-body-xs-medium max-w-xs p-2",style:x.styles,children:x.render?x.render(y.lodashExports.get(r,x.dataIndex),r):y.lodashExports.get(r,x.dataIndex,"")},`${h}-${x.key}`))]},`${r[j]}`)):e.jsxRuntimeExports.jsx(q,{children:e.jsxRuntimeExports.jsx(b,{colSpan:f?u?t.length+2:t.length+1:t.length,children:e.jsxRuntimeExports.jsx(U.Empty,{})})})})]})},ae=({dataSource:s,columns:t,onRowClick:i,rowKey:j,hasNumbers:a,hasSearch:f,exportOptions:u,hasCheckbox:I,hasPagination:k,isStickyHeader:_,onParamChange:l,dataKey:d="docs",loading:A,tableKey:E,filters:R,actions:g,handleFilterChange:w,params:p,exportLoading:r=!1,onColumnsUpdate:h,hasColumnsVisibilityDropdown:x})=>{const{t:F}=ee.useTranslation(),[$,X]=n.useState([]),{formattedColumns:v,handleColumnsChange:G,resetColumns:Q}=z.useColumns({key:E,columns:t});return n.useEffect(()=>{h==null||h(v)},[v,h]),e.jsxRuntimeExports.jsxs("div",{className:"border-border-alpha-light flex grow flex-col overflow-auto rounded-xl border shadow-xs",children:[(f||x&&E||!y.lodashExports.isEmpty(u)||!y.lodashExports.isEmpty(R))&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"w-full shrink",children:f&&e.jsxRuntimeExports.jsx(V.Search,{defaultValue:y.lodashExports.get(p,"search",""),onSearchChange:o=>l==null?void 0:l({...p,search:o,page:1})})}),e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 items-center justify-end gap-3",children:[u&&e.jsxRuntimeExports.jsx(P.ExportData,{options:u,loading:r}),x&&E&&e.jsxRuntimeExports.jsxs(N.jt,{children:[e.jsxRuntimeExports.jsx(N.Tt,{asChild:!0,children:e.jsxRuntimeExports.jsxs(Y.u,{variant:"secondary",size:"sm",className:"ml-auto rounded-lg px-3",children:[e.jsxRuntimeExports.jsx(H.yn,{})," ",e.jsxRuntimeExports.jsx("span",{className:"hidden lg:!inline",children:F("Customize columns")}),e.jsxRuntimeExports.jsx(H.f1,{})]})}),e.jsxRuntimeExports.jsxs(N.it,{align:"end",children:[e.jsxRuntimeExports.jsxs(N.ut,{className:"capitalize",onClick:Q,children:[e.jsxRuntimeExports.jsx(ne,{})," ",F("Reset columns")]}),e.jsxRuntimeExports.jsx(N.ft,{}),v.map(o=>e.jsxRuntimeExports.jsx(N.dt,{className:"capitalize",checked:!o.hidden,onCheckedChange:D=>G(o,!D),children:o.name},o.key))]})]}),g&&e.jsxRuntimeExports.jsx(C.Actions,{actions:g}),R&&e.jsxRuntimeExports.jsx(V.FilterWrapper,{filters:R,onFilter:o=>{l==null||l({...p,...o,page:1}),w==null||w(o)}})]})]}),e.jsxRuntimeExports.jsx("div",{className:"flex flex-col overflow-auto border-y",children:A?e.jsxRuntimeExports.jsx(K.Loader,{}):e.jsxRuntimeExports.jsx(O,{params:p,rows:y.lodashExports.get(s,d,[]),rowKey:j,selectedItems:$,isStickyHeader:_,columns:v,hasCheckbox:I,hasNumbers:a,onRowClick:i,onSelectedItemsChange:X,onSortOrderChange:({sortField:o,sortOrder:D})=>{l==null||l({...p,sortField:o,sortOrder:D})}})}),k&&e.jsxRuntimeExports.jsxs("div",{className:"flex shrink-0 flex-col items-center justify-between gap-3 p-4 lg:flex-row",children:[e.jsxRuntimeExports.jsx("div",{className:"text-sm",children:e.jsxRuntimeExports.jsx(T.MyLimitSelect,{onLimitChange:o=>l==null?void 0:l({...p,limit:o,page:1}),defaultValue:s==null?void 0:s.limit})}),e.jsxRuntimeExports.jsxs("div",{className:"text-muted-foreground text-sm",children:[$.length," of ",(s==null?void 0:s.total)||0," row(s) selected."]}),e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(T.MyPagination,{onPageChange:o=>l==null?void 0:l({...p,page:o}),currentPage:s==null?void 0:s.page,totalPages:s==null?void 0:s.totalPages})})]})]})};exports.DataTable=ae;exports.MyTable=O;
@@ -1,7 +1,7 @@
1
1
  import { j as e } from "../../jsx-runtime-C5mzlN2N.js";
2
2
  import { u as Q } from "../../button-Bp2lHjov-BTlHPcva.js";
3
- import { j as S, T as X, i as Y, u as O, f as U, d as K } from "../../dropdown-menu-CxOevPOj-ezMrzPHK.js";
4
- import { D as F, a as C, M as P } from "../../MyLimitSelect-CSOpZUZQ.js";
3
+ import { j as S, T as X, i as Y, u as O, f as U, d as K } from "../../dropdown-menu-BceuJw0L-PtnOmyx_.js";
4
+ import { D as F, a as C, M as P } from "../../MyLimitSelect-DHwGBSOL.js";
5
5
  import { y as ee, f as se } from "../../index-BrQ82Wyu.js";
6
6
  import { forwardRef as p, useEffect as H, useState as te } from "react";
7
7
  import { l as k } from "../../lodash-CYNxjS-I.js";
@@ -14,8 +14,8 @@ import { E as re } from "../../Empty--aMfJ9Jw.js";
14
14
  import { c as _ } from "../../createLucideIcon-B950nf2d.js";
15
15
  import { S as ae, F as ce } from "../../FilterWrapper-D0bk94tC.js";
16
16
  import { L as oe } from "../../Loader-Bbz39yY0.js";
17
- import { A as xe } from "../../Actions-BuREhr4C.js";
18
- import { E as me } from "../../ExportData-C97WQKG3.js";
17
+ import { A as xe } from "../../Actions-Ch2gh0m4.js";
18
+ import { E as me } from "../../ExportData-j0k5_xKx.js";
19
19
  import { u as fe } from "../../useTranslation-dH-uwymc.js";
20
20
  const V = p(
21
21
  ({ className: s, ...t }, d) => /* @__PURE__ */ h.jsx(
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../ExportData-DspH4HLF.cjs");exports.ExportData=t.ExportData;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../ExportData-BfvmBxMk.cjs");exports.ExportData=t.ExportData;
@@ -1,4 +1,4 @@
1
- import { E as r } from "../../ExportData-C97WQKG3.js";
1
+ import { E as r } from "../../ExportData-j0k5_xKx.js";
2
2
  export {
3
3
  r as ExportData
4
4
  };
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../jsx-runtime-DUiatUiq.cjs"),o=require("../../index-DqTIeHVj-DlSOwhuZ.cjs"),g=require("react"),s=require("../../index-sde7W6lA-DX6VW7zF.cjs"),d=require("../../utils-B6fNqzRf-BNysSCt9.cjs"),N=require("../../createLucideIcon-B950nf2d-CFaVx9a3.cjs");function y(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const c=y(g);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../jsx-runtime-DUiatUiq.cjs"),o=require("../../index-DqTIeHVj-DlSOwhuZ.cjs"),N=require("react"),s=require("../../index-sde7W6lA-DX6VW7zF.cjs"),y=require("../../createLucideIcon-B950nf2d-CFaVx9a3.cjs"),d=require("../../utils-B6fNqzRf-BNysSCt9.cjs");function h(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const c=h(N);/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const h=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],b=N.k("x",h),w=s.ve,R=s.xe,v=s.Ce,i=c.forwardRef(({className:e,...a},t)=>o.ae.jsx(s.Re,{ref:t,className:d.mo("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...a}));i.displayName=s.Re.displayName;const m=c.forwardRef(({className:e,children:a,...t},r)=>o.ae.jsxs(v,{children:[o.ae.jsx(i,{}),o.ae.jsxs(s._e,{ref:r,className:d.mo("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...t,children:[a,o.ae.jsxs(s.Pe,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[o.ae.jsx(b,{className:"h-4 w-4"}),o.ae.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));m.displayName=s._e.displayName;const x=({className:e,...a})=>o.ae.jsx("div",{className:d.mo("flex flex-col space-y-1.5 text-center sm:text-left",e),...a});x.displayName="DialogHeader";const f=({className:e,...a})=>o.ae.jsx("div",{className:d.mo("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a});f.displayName="DialogFooter";const u=c.forwardRef(({className:e,...a},t)=>o.ae.jsx(s.he,{ref:t,className:d.mo("text-lg leading-none font-semibold tracking-tight",e),...a}));u.displayName=s.he.displayName;const p=c.forwardRef(({className:e,...a},t)=>o.ae.jsx(s.Ee,{ref:t,className:d.mo("text-muted-foreground text-sm",e),...a}));p.displayName=s.Ee.displayName;const k=({header:e,footer:a,trigger:t,children:r,size:l="lg",...j})=>n.jsxRuntimeExports.jsxs(w,{...j,children:[t&&n.jsxRuntimeExports.jsx(R,{asChild:!0,children:t}),n.jsxRuntimeExports.jsxs(m,{className:d.mo("data-[state=open]:animate-contentShowTop fixed top-4 bottom-auto max-h-[calc(100vh-2rem)] w-full max-w-lg translate-y-0 overflow-y-auto",l==="xl"&&"max-w-xl",l==="2xl"&&"max-w-2xl",l==="3xl"&&"max-w-3xl",l==="4xl"&&"max-w-5xl",l==="5xl"&&"max-w-5xl",l==="6xl"&&"max-w-6xl",l==="7xl"&&"max-w-7xl",l==="full"&&"max-w-[95%]"),children:[n.jsxRuntimeExports.jsxs(x,{children:[n.jsxRuntimeExports.jsx(u,{children:e}),n.jsxRuntimeExports.jsx(p,{className:"hidden"})]}),r,a&&n.jsxRuntimeExports.jsx(f,{children:a})]})]});exports.MyModal=k;
6
+ */const b=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],w=y.k("x",b),R=s.ve,v=s.xe,k=s.Ce,i=c.forwardRef(({className:e,...a},t)=>o.ae.jsx(s.Re,{ref:t,className:d.mo("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...a}));i.displayName=s.Re.displayName;const m=c.forwardRef(({className:e,children:a,...t},r)=>o.ae.jsxs(k,{children:[o.ae.jsx(i,{}),o.ae.jsxs(s._e,{ref:r,className:d.mo("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...t,children:[a,o.ae.jsxs(s.Pe,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none",children:[o.ae.jsx(w,{className:"h-4 w-4"}),o.ae.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));m.displayName=s._e.displayName;const x=({className:e,...a})=>o.ae.jsx("div",{className:d.mo("flex flex-col space-y-1.5 text-center sm:text-left",e),...a});x.displayName="DialogHeader";const u=({className:e,...a})=>o.ae.jsx("div",{className:d.mo("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...a});u.displayName="DialogFooter";const f=c.forwardRef(({className:e,...a},t)=>o.ae.jsx(s.he,{ref:t,className:d.mo("text-lg leading-none font-semibold tracking-tight",e),...a}));f.displayName=s.he.displayName;const p=c.forwardRef(({className:e,...a},t)=>o.ae.jsx(s.Ee,{ref:t,className:d.mo("text-muted-foreground text-sm",e),...a}));p.displayName=s.Ee.displayName;const E=({header:e,footer:a,trigger:t,children:r,size:l="lg",className:j,...g})=>n.jsxRuntimeExports.jsxs(R,{...g,children:[t&&n.jsxRuntimeExports.jsx(v,{asChild:!0,children:t}),n.jsxRuntimeExports.jsxs(m,{className:d.mo("data-[state=open]:animate-contentShowTop top-4 bottom-auto max-h-[calc(100vh-2rem)] max-w-lg translate-y-0 overflow-y-auto",l==="xl"&&"max-w-xl",l==="2xl"&&"max-w-2xl",l==="3xl"&&"max-w-3xl",l==="4xl"&&"max-w-5xl",l==="5xl"&&"max-w-5xl",l==="6xl"&&"max-w-6xl",l==="7xl"&&"max-w-7xl",l==="full"&&"max-w-[95%]",j),children:[n.jsxRuntimeExports.jsxs(x,{children:[n.jsxRuntimeExports.jsx(f,{children:e}),n.jsxRuntimeExports.jsx(p,{className:"hidden"})]}),r,a&&n.jsxRuntimeExports.jsx(u,{children:a})]})]});exports.MyModal=E;
@@ -1,19 +1,19 @@
1
1
  import { j as l } from "../../jsx-runtime-C5mzlN2N.js";
2
2
  import { a as s } from "../../index-DqTIeHVj-CeLMF2B2.js";
3
3
  import * as n from "react";
4
- import { v as j, x as w, C as b, _ as r, P as k, h as i, E as c, R as x } from "../../index-sde7W6lA-CGLFJGTK.js";
4
+ import { v as w, x as b, C as k, _ as r, P as v, h as i, E as c, R as x } from "../../index-sde7W6lA-CGLFJGTK.js";
5
+ import { k as R } from "../../createLucideIcon-B950nf2d-C2YhAyqE.js";
5
6
  import { m as d } from "../../utils-B6fNqzRf-B1_jG1K7.js";
6
- import { k as v } from "../../createLucideIcon-B950nf2d-C2YhAyqE.js";
7
7
  /**
8
8
  * @license lucide-react v0.511.0 - ISC
9
9
  *
10
10
  * This source code is licensed under the ISC license.
11
11
  * See the LICENSE file in the root directory of this source tree.
12
12
  */
13
- const R = [
13
+ const C = [
14
14
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
15
15
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
16
- ], C = v("x", R), D = j, E = w, M = b, f = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
16
+ ], D = R("x", C), E = w, M = b, P = k, f = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
17
17
  x,
18
18
  {
19
19
  ref: t,
@@ -25,7 +25,7 @@ const R = [
25
25
  }
26
26
  ));
27
27
  f.displayName = x.displayName;
28
- const p = n.forwardRef(({ className: e, children: a, ...t }, m) => /* @__PURE__ */ s.jsxs(M, { children: [
28
+ const p = n.forwardRef(({ className: e, children: a, ...t }, m) => /* @__PURE__ */ s.jsxs(P, { children: [
29
29
  /* @__PURE__ */ s.jsx(f, {}),
30
30
  /* @__PURE__ */ s.jsxs(
31
31
  r,
@@ -38,8 +38,8 @@ const p = n.forwardRef(({ className: e, children: a, ...t }, m) => /* @__PURE__
38
38
  ...t,
39
39
  children: [
40
40
  a,
41
- /* @__PURE__ */ s.jsxs(k, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
42
- /* @__PURE__ */ s.jsx(C, { className: "h-4 w-4" }),
41
+ /* @__PURE__ */ s.jsxs(v, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
42
+ /* @__PURE__ */ s.jsx(D, { className: "h-4 w-4" }),
43
43
  /* @__PURE__ */ s.jsx("span", { className: "sr-only", children: "Close" })
44
44
  ] })
45
45
  ]
@@ -96,20 +96,21 @@ const g = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ s.jsx(
96
96
  }
97
97
  ));
98
98
  g.displayName = c.displayName;
99
- const H = ({
99
+ const S = ({
100
100
  header: e,
101
101
  footer: a,
102
102
  trigger: t,
103
103
  children: m,
104
104
  size: o = "lg",
105
- ...y
106
- }) => /* @__PURE__ */ l.jsxs(D, { ...y, children: [
107
- t && /* @__PURE__ */ l.jsx(E, { asChild: !0, children: t }),
105
+ className: y,
106
+ ...j
107
+ }) => /* @__PURE__ */ l.jsxs(E, { ...j, children: [
108
+ t && /* @__PURE__ */ l.jsx(M, { asChild: !0, children: t }),
108
109
  /* @__PURE__ */ l.jsxs(
109
110
  p,
110
111
  {
111
112
  className: d(
112
- "data-[state=open]:animate-contentShowTop fixed top-4 bottom-auto max-h-[calc(100vh-2rem)] w-full max-w-lg translate-y-0 overflow-y-auto",
113
+ "data-[state=open]:animate-contentShowTop top-4 bottom-auto max-h-[calc(100vh-2rem)] max-w-lg translate-y-0 overflow-y-auto",
113
114
  o === "xl" && "max-w-xl",
114
115
  o === "2xl" && "max-w-2xl",
115
116
  o === "3xl" && "max-w-3xl",
@@ -117,7 +118,8 @@ const H = ({
117
118
  o === "5xl" && "max-w-5xl",
118
119
  o === "6xl" && "max-w-6xl",
119
120
  o === "7xl" && "max-w-7xl",
120
- o === "full" && "max-w-[95%]"
121
+ o === "full" && "max-w-[95%]",
122
+ y
121
123
  ),
122
124
  children: [
123
125
  /* @__PURE__ */ l.jsxs(u, { children: [
@@ -131,5 +133,5 @@ const H = ({
131
133
  )
132
134
  ] });
133
135
  export {
134
- H as MyModal
136
+ S as MyModal
135
137
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../MyLimitSelect-DlOUfv_X.cjs");exports.MyLimitSelect=e.MyLimitSelect;exports.MyPagination=e.MyPagination;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../MyLimitSelect-CHZKfNok.cjs");exports.MyLimitSelect=e.MyLimitSelect;exports.MyPagination=e.MyPagination;
@@ -1,4 +1,4 @@
1
- import { a as t, M as e } from "../../MyLimitSelect-CSOpZUZQ.js";
1
+ import { a as t, M as e } from "../../MyLimitSelect-DHwGBSOL.js";
2
2
  export {
3
3
  t as MyLimitSelect,
4
4
  e as MyPagination
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-DUiatUiq.cjs"),t=require("../../dropdown-menu-CxOevPOj-Iyvvp16W.cjs"),c=require("../../button-Bp2lHjov-D9UnCnYX.cjs"),r=require("../../ThemeMode-BO6tit_Z.cjs"),a=require("../../useTheme-DSAqyhTz.cjs"),u=require("../../useTranslation-CZf20ucv.cjs"),o=require("../../createLucideIcon-BnAj0RnC.cjs");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-DUiatUiq.cjs"),t=require("../../dropdown-menu-BceuJw0L-CubE3SM3.cjs"),c=require("../../button-Bp2lHjov-D9UnCnYX.cjs"),r=require("../../ThemeMode-BO6tit_Z.cjs"),a=require("../../useTheme-DSAqyhTz.cjs"),u=require("../../useTranslation-CZf20ucv.cjs"),o=require("../../createLucideIcon-BnAj0RnC.cjs");/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,5 +1,5 @@
1
1
  import { j as e } from "../../jsx-runtime-C5mzlN2N.js";
2
- import { j as i, T as c, i as m, u as a } from "../../dropdown-menu-CxOevPOj-ezMrzPHK.js";
2
+ import { j as i, T as c, i as m, u as a } from "../../dropdown-menu-BceuJw0L-PtnOmyx_.js";
3
3
  import { u as l } from "../../button-Bp2lHjov-BTlHPcva.js";
4
4
  import { T as r } from "../../ThemeMode-CqURAYDL.js";
5
5
  import { u as h } from "../../useTheme-B5ZHXyfv.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("../../jsx-runtime-DUiatUiq.cjs"),s=require("../../index-DqTIeHVj-DlSOwhuZ.cjs"),X=require("react"),T=require("../../index-VIo8j85K-CmrJh9Wc.cjs"),G=require("../../index-CYIFqWxx-DM9vqAQw.cjs"),U=require("../../utils-B6fNqzRf-BNysSCt9.cjs");function W(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const i=W(X);var[_,ve]=s.j("Tooltip",[T.oo]),k=T.oo(),H="TooltipProvider",J=700,D="tooltip.open",[Q,M]=_(H),S=t=>{const{__scopeTooltip:n,delayDuration:e=J,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:c}=t,l=i.useRef(!0),x=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),s.ae.jsx(Q,{scope:n,isOpenDelayedRef:l,delayDuration:e,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,o)},[o]),isPointerInTransitRef:x,onPointerInTransitChange:i.useCallback(p=>{x.current=p},[]),disableHoverableContent:r,children:c})};S.displayName=H;var R="Tooltip",[Z,O]=_(R),$=t=>{const{__scopeTooltip:n,children:e,open:o,defaultOpen:r,onOpenChange:c,disableHoverableContent:l,delayDuration:x}=t,a=M(R,t.__scopeTooltip),p=k(n),[u,f]=i.useState(null),y=s.g(),d=i.useRef(0),g=l??a.disableHoverableContent,v=x??a.delayDuration,h=i.useRef(!1),[b,m]=s.y({prop:o,defaultProp:r??!1,onChange:q=>{q?(a.onOpen(),document.dispatchEvent(new CustomEvent(D))):a.onClose(),c==null||c(q)},caller:R}),C=i.useMemo(()=>b?h.current?"delayed-open":"instant-open":"closed",[b]),E=i.useCallback(()=>{window.clearTimeout(d.current),d.current=0,h.current=!1,m(!0)},[m]),j=i.useCallback(()=>{window.clearTimeout(d.current),d.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{h.current=!0,m(!0),d.current=0},v)},[v,m]);return i.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),s.ae.jsx(T.io,{...p,children:s.ae.jsx(Z,{scope:n,contentId:y,open:b,stateAttribute:C,trigger:u,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():E()},[a.isOpenDelayedRef,N,E]),onTriggerLeave:i.useCallback(()=>{g?j():(window.clearTimeout(d.current),d.current=0)},[j,g]),onOpen:E,onClose:j,disableHoverableContent:g,children:e})})};$.displayName=R;var L="TooltipTrigger",z=i.forwardRef((t,n)=>{const{__scopeTooltip:e,...o}=t,r=O(L,e),c=M(L,e),l=k(e),x=i.useRef(null),a=s.x(n,x,r.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),f=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.ae.jsx(T.ro,{asChild:!0,...l,children:s.ae.jsx(s.h.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:a,onPointerMove:s.y$1(t.onPointerMove,y=>{y.pointerType!=="touch"&&!u.current&&!c.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:s.y$1(t.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:s.y$1(t.onPointerDown,()=>{r.open&&r.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:s.y$1(t.onFocus,()=>{p.current||r.onOpen()}),onBlur:s.y$1(t.onBlur,r.onClose),onClick:s.y$1(t.onClick,r.onClose)})})});z.displayName=L;var ee="TooltipPortal",[me,te]=_(ee,{forceMount:void 0}),w="TooltipContent",B=i.forwardRef((t,n)=>{const e=te(w,t.__scopeTooltip),{forceMount:o=e.forceMount,side:r="top",...c}=t,l=O(w,t.__scopeTooltip);return s.ae.jsx(s.R,{present:o||l.open,children:l.disableHoverableContent?s.ae.jsx(A,{side:r,...c,ref:n}):s.ae.jsx(ne,{side:r,...c,ref:n})})}),ne=i.forwardRef((t,n)=>{const e=O(w,t.__scopeTooltip),o=M(w,t.__scopeTooltip),r=i.useRef(null),c=s.x(n,r),[l,x]=i.useState(null),{trigger:a,onClose:p}=e,u=r.current,{onPointerInTransitChange:f}=o,y=i.useCallback(()=>{x(null),f(!1)},[f]),d=i.useCallback((g,v)=>{const h=g.currentTarget,b={x:g.clientX,y:g.clientY},m=se(b,h.getBoundingClientRect()),C=le(b,m),E=ce(v.getBoundingClientRect()),j=de([...C,...E]);x(j),f(!0)},[f]);return i.useEffect(()=>()=>y(),[y]),i.useEffect(()=>{if(a&&u){const g=h=>d(h,u),v=h=>d(h,a);return a.addEventListener("pointerleave",g),u.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",v)}}},[a,u,d,y]),i.useEffect(()=>{if(l){const g=v=>{const h=v.target,b={x:v.clientX,y:v.clientY},m=(a==null?void 0:a.contains(h))||(u==null?void 0:u.contains(h)),C=!ue(b,l);m?y():C&&(y(),p())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,u,l,p,y]),s.ae.jsx(A,{...t,ref:c})}),[oe,re]=_(R,{isInside:!1}),ie=s._("TooltipContent"),A=i.forwardRef((t,n)=>{const{__scopeTooltip:e,children:o,"aria-label":r,onEscapeKeyDown:c,onPointerDownOutside:l,...x}=t,a=O(w,e),p=k(e),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(D,u),()=>document.removeEventListener(D,u)),[u]),i.useEffect(()=>{if(a.trigger){const f=y=>{const d=y.target;d!=null&&d.contains(a.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,u]),s.ae.jsx(s.M,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:s.ae.jsxs(T.so,{"data-state":a.stateAttribute,...p,...x,ref:n,style:{...x.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.ae.jsx(ie,{children:o}),s.ae.jsx(oe,{scope:e,isInside:!0,children:s.ae.jsx(G.n,{id:a.contentId,role:"tooltip",children:r||o})})]})})});B.displayName=w;var F="TooltipArrow",ae=i.forwardRef((t,n)=>{const{__scopeTooltip:e,...o}=t,r=k(e);return re(F,e).isInside?null:s.ae.jsx(T.co,{...r,...o,ref:n})});ae.displayName=F;function se(t,n){const e=Math.abs(n.top-t.y),o=Math.abs(n.bottom-t.y),r=Math.abs(n.right-t.x),c=Math.abs(n.left-t.x);switch(Math.min(e,o,r,c)){case c:return"left";case r:return"right";case e:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function le(t,n,e=5){const o=[];switch(n){case"top":o.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":o.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":o.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":o.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return o}function ce(t){const{top:n,right:e,bottom:o,left:r}=t;return[{x:r,y:n},{x:e,y:n},{x:e,y:o},{x:r,y:o}]}function ue(t,n){const{x:e,y:o}=t;let r=!1;for(let c=0,l=n.length-1;c<n.length;l=c++){const x=n[c],a=n[l],p=x.x,u=x.y,f=a.x,y=a.y;u>o!=y>o&&e<(f-p)*(o-u)/(y-u)+p&&(r=!r)}return r}function de(t){const n=t.slice();return n.sort((e,o)=>e.x<o.x?-1:e.x>o.x?1:e.y<o.y?-1:e.y>o.y?1:0),pe(n)}function pe(t){if(t.length<=1)return t.slice();const n=[];for(let o=0;o<t.length;o++){const r=t[o];for(;n.length>=2;){const c=n[n.length-1],l=n[n.length-2];if((c.x-l.x)*(r.y-l.y)>=(c.y-l.y)*(r.x-l.x))n.pop();else break}n.push(r)}n.pop();const e=[];for(let o=t.length-1;o>=0;o--){const r=t[o];for(;e.length>=2;){const c=e[e.length-1],l=e[e.length-2];if((c.x-l.x)*(r.y-l.y)>=(c.y-l.y)*(r.x-l.x))e.pop();else break}e.push(r)}return e.pop(),n.length===1&&e.length===1&&n[0].x===e[0].x&&n[0].y===e[0].y?n:n.concat(e)}var fe=S,xe=$,ye=z,K=B;const ge=fe,Y=xe,V=ye,I=i.forwardRef(({className:t,sideOffset:n=4,...e},o)=>s.ae.jsx(K,{ref:o,sideOffset:n,className:U.mo("bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",t),...e}));I.displayName=K.displayName;const he=({content:t,children:n,show:e=!0,...o})=>e?P.jsxRuntimeExports.jsxs(Y,{children:[P.jsxRuntimeExports.jsx(I,{...o,children:t}),P.jsxRuntimeExports.jsx(V,{children:n})]}):n;exports.MyTooltip=he;exports.Tooltip=Y;exports.TooltipContent=I;exports.TooltipProvider=ge;exports.TooltipTrigger=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("../../jsx-runtime-DUiatUiq.cjs"),s=require("../../index-DqTIeHVj-DlSOwhuZ.cjs"),G=require("react"),T=require("../../index-VIo8j85K-CmrJh9Wc.cjs"),U=require("../../index-CYIFqWxx-DM9vqAQw.cjs"),W=require("../../utils-B6fNqzRf-BNysSCt9.cjs");function J(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const i=J(G);var[k,ve]=s.j("Tooltip",[T.oo]),O=T.oo(),H="TooltipProvider",Q=700,D="tooltip.open",[Z,M]=k(H),S=t=>{const{__scopeTooltip:n,delayDuration:e=Q,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:c}=t,l=i.useRef(!0),x=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),s.ae.jsx(Z,{scope:n,isOpenDelayedRef:l,delayDuration:e,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,o)},[o]),isPointerInTransitRef:x,onPointerInTransitChange:i.useCallback(p=>{x.current=p},[]),disableHoverableContent:r,children:c})};S.displayName=H;var R="Tooltip",[ee,P]=k(R),$=t=>{const{__scopeTooltip:n,children:e,open:o,defaultOpen:r,onOpenChange:c,disableHoverableContent:l,delayDuration:x}=t,a=M(R,t.__scopeTooltip),p=O(n),[u,f]=i.useState(null),y=s.g(),d=i.useRef(0),g=l??a.disableHoverableContent,v=x??a.delayDuration,h=i.useRef(!1),[b,m]=s.y({prop:o,defaultProp:r??!1,onChange:q=>{q?(a.onOpen(),document.dispatchEvent(new CustomEvent(D))):a.onClose(),c==null||c(q)},caller:R}),C=i.useMemo(()=>b?h.current?"delayed-open":"instant-open":"closed",[b]),j=i.useCallback(()=>{window.clearTimeout(d.current),d.current=0,h.current=!1,m(!0)},[m]),E=i.useCallback(()=>{window.clearTimeout(d.current),d.current=0,m(!1)},[m]),N=i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{h.current=!0,m(!0),d.current=0},v)},[v,m]);return i.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),s.ae.jsx(T.io,{...p,children:s.ae.jsx(ee,{scope:n,contentId:y,open:b,stateAttribute:C,trigger:u,onTriggerChange:f,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?N():j()},[a.isOpenDelayedRef,N,j]),onTriggerLeave:i.useCallback(()=>{g?E():(window.clearTimeout(d.current),d.current=0)},[E,g]),onOpen:j,onClose:E,disableHoverableContent:g,children:e})})};$.displayName=R;var L="TooltipTrigger",z=i.forwardRef((t,n)=>{const{__scopeTooltip:e,...o}=t,r=P(L,e),c=M(L,e),l=O(e),x=i.useRef(null),a=s.x(n,x,r.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),f=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),s.ae.jsx(T.ro,{asChild:!0,...l,children:s.ae.jsx(s.h.button,{"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute,...o,ref:a,onPointerMove:s.y$1(t.onPointerMove,y=>{y.pointerType!=="touch"&&!u.current&&!c.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:s.y$1(t.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:s.y$1(t.onPointerDown,()=>{r.open&&r.onClose(),p.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:s.y$1(t.onFocus,()=>{p.current||r.onOpen()}),onBlur:s.y$1(t.onBlur,r.onClose),onClick:s.y$1(t.onClick,r.onClose)})})});z.displayName=L;var te="TooltipPortal",[me,ne]=k(te,{forceMount:void 0}),w="TooltipContent",B=i.forwardRef((t,n)=>{const e=ne(w,t.__scopeTooltip),{forceMount:o=e.forceMount,side:r="top",...c}=t,l=P(w,t.__scopeTooltip);return s.ae.jsx(s.R,{present:o||l.open,children:l.disableHoverableContent?s.ae.jsx(A,{side:r,...c,ref:n}):s.ae.jsx(oe,{side:r,...c,ref:n})})}),oe=i.forwardRef((t,n)=>{const e=P(w,t.__scopeTooltip),o=M(w,t.__scopeTooltip),r=i.useRef(null),c=s.x(n,r),[l,x]=i.useState(null),{trigger:a,onClose:p}=e,u=r.current,{onPointerInTransitChange:f}=o,y=i.useCallback(()=>{x(null),f(!1)},[f]),d=i.useCallback((g,v)=>{const h=g.currentTarget,b={x:g.clientX,y:g.clientY},m=le(b,h.getBoundingClientRect()),C=ce(b,m),j=ue(v.getBoundingClientRect()),E=pe([...C,...j]);x(E),f(!0)},[f]);return i.useEffect(()=>()=>y(),[y]),i.useEffect(()=>{if(a&&u){const g=h=>d(h,u),v=h=>d(h,a);return a.addEventListener("pointerleave",g),u.addEventListener("pointerleave",v),()=>{a.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",v)}}},[a,u,d,y]),i.useEffect(()=>{if(l){const g=v=>{const h=v.target,b={x:v.clientX,y:v.clientY},m=(a==null?void 0:a.contains(h))||(u==null?void 0:u.contains(h)),C=!de(b,l);m?y():C&&(y(),p())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[a,u,l,p,y]),s.ae.jsx(A,{...t,ref:c})}),[re,ie]=k(R,{isInside:!1}),ae=s._("TooltipContent"),A=i.forwardRef((t,n)=>{const{__scopeTooltip:e,children:o,"aria-label":r,onEscapeKeyDown:c,onPointerDownOutside:l,...x}=t,a=P(w,e),p=O(e),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(D,u),()=>document.removeEventListener(D,u)),[u]),i.useEffect(()=>{if(a.trigger){const f=y=>{const d=y.target;d!=null&&d.contains(a.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[a.trigger,u]),s.ae.jsx(s.M,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:s.ae.jsxs(T.so,{"data-state":a.stateAttribute,...p,...x,ref:n,style:{...x.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.ae.jsx(ae,{children:o}),s.ae.jsx(re,{scope:e,isInside:!0,children:s.ae.jsx(U.n,{id:a.contentId,role:"tooltip",children:r||o})})]})})});B.displayName=w;var F="TooltipArrow",se=i.forwardRef((t,n)=>{const{__scopeTooltip:e,...o}=t,r=O(e);return ie(F,e).isInside?null:s.ae.jsx(T.co,{...r,...o,ref:n})});se.displayName=F;function le(t,n){const e=Math.abs(n.top-t.y),o=Math.abs(n.bottom-t.y),r=Math.abs(n.right-t.x),c=Math.abs(n.left-t.x);switch(Math.min(e,o,r,c)){case c:return"left";case r:return"right";case e:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function ce(t,n,e=5){const o=[];switch(n){case"top":o.push({x:t.x-e,y:t.y+e},{x:t.x+e,y:t.y+e});break;case"bottom":o.push({x:t.x-e,y:t.y-e},{x:t.x+e,y:t.y-e});break;case"left":o.push({x:t.x+e,y:t.y-e},{x:t.x+e,y:t.y+e});break;case"right":o.push({x:t.x-e,y:t.y-e},{x:t.x-e,y:t.y+e});break}return o}function ue(t){const{top:n,right:e,bottom:o,left:r}=t;return[{x:r,y:n},{x:e,y:n},{x:e,y:o},{x:r,y:o}]}function de(t,n){const{x:e,y:o}=t;let r=!1;for(let c=0,l=n.length-1;c<n.length;l=c++){const x=n[c],a=n[l],p=x.x,u=x.y,f=a.x,y=a.y;u>o!=y>o&&e<(f-p)*(o-u)/(y-u)+p&&(r=!r)}return r}function pe(t){const n=t.slice();return n.sort((e,o)=>e.x<o.x?-1:e.x>o.x?1:e.y<o.y?-1:e.y>o.y?1:0),fe(n)}function fe(t){if(t.length<=1)return t.slice();const n=[];for(let o=0;o<t.length;o++){const r=t[o];for(;n.length>=2;){const c=n[n.length-1],l=n[n.length-2];if((c.x-l.x)*(r.y-l.y)>=(c.y-l.y)*(r.x-l.x))n.pop();else break}n.push(r)}n.pop();const e=[];for(let o=t.length-1;o>=0;o--){const r=t[o];for(;e.length>=2;){const c=e[e.length-1],l=e[e.length-2];if((c.x-l.x)*(r.y-l.y)>=(c.y-l.y)*(r.x-l.x))e.pop();else break}e.push(r)}return e.pop(),n.length===1&&e.length===1&&n[0].x===e[0].x&&n[0].y===e[0].y?n:n.concat(e)}var xe=S,ye=$,ge=z,K=B;const Y=xe,V=ye,X=ge,I=i.forwardRef(({className:t,sideOffset:n=4,...e},o)=>s.ae.jsx(K,{ref:o,sideOffset:n,className:W.mo("bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",t),...e}));I.displayName=K.displayName;const he=({content:t,children:n,show:e=!0,...o})=>e?_.jsxRuntimeExports.jsx(Y,{children:_.jsxRuntimeExports.jsxs(V,{children:[_.jsxRuntimeExports.jsx(I,{...o,children:t}),_.jsxRuntimeExports.jsx(X,{children:n})]})}):n;exports.MyTooltip=he;exports.Tooltip=V;exports.TooltipContent=I;exports.TooltipProvider=Y;exports.TooltipTrigger=X;