@krosoft/react 0.0.82 → 0.0.84

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 (33) hide show
  1. package/dist/{AppTitle-BOhhDNS5.js → AppTitle-CJZdhpRm.js} +2 -2
  2. package/dist/FormDialog-CwxZPmv4.js +472 -0
  3. package/dist/{MetricCard-bpuqueI5.js → MetricCard-5kWhYPKJ.js} +1 -1
  4. package/dist/{SearchInput-Dh-92XhU.js → SearchInput-Dpy2amwO.js} +28 -28
  5. package/dist/{TableFilter-BoNsBNbv.js → TableFilter-w9BHeObX.js} +2 -2
  6. package/dist/{TableSettings-D2qjh0E9.js → TableSettings-DNkdLgCN.js} +21 -21
  7. package/dist/components/core/cards/index.js +1 -1
  8. package/dist/components/core/dialogs/AppDialog.d.ts +28 -0
  9. package/dist/components/core/dialogs/AppDialog.d.ts.map +1 -0
  10. package/dist/components/core/dialogs/FormDialog.d.ts +32 -0
  11. package/dist/components/core/dialogs/FormDialog.d.ts.map +1 -0
  12. package/dist/components/core/dialogs/index.d.ts +7 -0
  13. package/dist/components/core/dialogs/index.d.ts.map +1 -0
  14. package/dist/components/core/dialogs/index.js +16 -0
  15. package/dist/components/core/filters/index.js +1 -1
  16. package/dist/components/core/index.d.ts +1 -0
  17. package/dist/components/core/index.d.ts.map +1 -1
  18. package/dist/components/core/index.js +46 -32
  19. package/dist/components/core/inputs/index.js +1 -1
  20. package/dist/components/core/layouts/index.js +1 -1
  21. package/dist/components/core/table/index.js +1 -1
  22. package/dist/components/index.js +96 -82
  23. package/dist/components/ui/dialog.d.ts +20 -0
  24. package/dist/components/ui/dialog.d.ts.map +1 -0
  25. package/dist/components/ui/index.js +1 -1
  26. package/dist/components/ui/progress.d.ts +8 -0
  27. package/dist/components/ui/progress.d.ts.map +1 -0
  28. package/dist/{dropdown-menu-D6j1GdTA.js → dropdown-menu-Q_WkonPk.js} +1 -1
  29. package/dist/{popover-DVVl_ccN.js → popover-BMvYmQOM.js} +598 -590
  30. package/dist/tailwind/index.d.ts +9 -0
  31. package/dist/tailwind/index.d.ts.map +1 -1
  32. package/dist/tailwind/index.js +6 -1
  33. package/package.json +5 -4
@@ -1,7 +1,7 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as k, useEffect as M, useMemo as A } from "react";
3
- import { M as O, a as $, D as j, b as I, c as _, S as z } from "./SearchInput-Dh-92XhU.js";
4
- import { X as C, I as P, S as R, n as B, g as Q, j as V, m as H, L as X, i as G, P as J, e as K, d as U, c as E } from "./popover-DVVl_ccN.js";
3
+ import { M as O, a as $, D as j, b as I, c as _, S as z } from "./SearchInput-Dpy2amwO.js";
4
+ import { X as C, I as P, S as R, n as B, g as Q, j as V, m as H, L as X, i as G, P as J, e as K, d as U, c as E } from "./popover-BMvYmQOM.js";
5
5
  import { B as w, C as W } from "./floating-ui.react-dom-BIcsGc3t.js";
6
6
  import "./card-7XPLAra3.js";
7
7
  import { S as Y, h as Z, i as q, a as ee, c as re } from "./select-CtU681LB.js";
@@ -1,11 +1,11 @@
1
1
  import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { c as j, u as A, v as L } from "./popover-DVVl_ccN.js";
2
+ import { c as j, z as A, B } from "./popover-BMvYmQOM.js";
3
3
  import { B as x } from "./floating-ui.react-dom-BIcsGc3t.js";
4
4
  import "./card-7XPLAra3.js";
5
5
  import "./select-CtU681LB.js";
6
- import { D as M, a as D, E as B, b as _, d as I, e as V } from "./dropdown-menu-D6j1GdTA.js";
6
+ import { D as M, a as D, E as L, b as _, d as I, e as V } from "./dropdown-menu-Q_WkonPk.js";
7
7
  import { L as q } from "./loader-circle-BhJXKs31.js";
8
- import { c as f } from "./createLucideIcon-CRdjzt2A.js";
8
+ import { c as v } from "./createLucideIcon-CRdjzt2A.js";
9
9
  /**
10
10
  * @license lucide-react v1.16.0 - ISC
11
11
  *
@@ -15,7 +15,7 @@ import { c as f } from "./createLucideIcon-CRdjzt2A.js";
15
15
  const E = [
16
16
  ["path", { d: "M12 5v14", key: "s699le" }],
17
17
  ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
18
- ], H = f("arrow-down", E);
18
+ ], H = v("arrow-down", E);
19
19
  /**
20
20
  * @license lucide-react v1.16.0 - ISC
21
21
  *
@@ -27,7 +27,7 @@ const U = [
27
27
  ["path", { d: "M17 20V4", key: "1ejh1v" }],
28
28
  ["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
29
29
  ["path", { d: "M7 4v16", key: "1glfcx" }]
30
- ], G = f("arrow-up-down", U);
30
+ ], G = v("arrow-up-down", U);
31
31
  /**
32
32
  * @license lucide-react v1.16.0 - ISC
33
33
  *
@@ -37,7 +37,7 @@ const U = [
37
37
  const O = [
38
38
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
39
39
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
40
- ], F = f("arrow-up", O);
40
+ ], F = v("arrow-up", O);
41
41
  /**
42
42
  * @license lucide-react v1.16.0 - ISC
43
43
  *
@@ -51,7 +51,7 @@ const J = [
51
51
  ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }],
52
52
  ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }],
53
53
  ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }]
54
- ], Q = f("grip-vertical", J);
54
+ ], Q = v("grip-vertical", J);
55
55
  /**
56
56
  * @license lucide-react v1.16.0 - ISC
57
57
  *
@@ -67,10 +67,10 @@ const W = [
67
67
  }
68
68
  ],
69
69
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
70
- ], X = f("settings", W);
70
+ ], X = v("settings", W);
71
71
  function Y({ actions: c, row: n }) {
72
72
  return /* @__PURE__ */ t(M, { children: [
73
- /* @__PURE__ */ e(D, { asChild: !0, children: /* @__PURE__ */ e(x, { variant: "ghost", size: "icon", className: "h-8 w-8 text-muted-foreground hover:text-foreground", children: /* @__PURE__ */ e(B, { className: "size-4" }) }) }),
73
+ /* @__PURE__ */ e(D, { asChild: !0, children: /* @__PURE__ */ e(x, { variant: "ghost", size: "icon", className: "h-8 w-8 text-muted-foreground hover:text-foreground", children: /* @__PURE__ */ e(L, { className: "size-4" }) }) }),
74
74
  /* @__PURE__ */ e(
75
75
  _,
76
76
  {
@@ -107,12 +107,12 @@ function se({
107
107
  getRowId: o,
108
108
  onRowClick: l,
109
109
  hasBulkActions: u,
110
- selectedRows: v,
110
+ selectedRows: b,
111
111
  toggleRowSelection: g,
112
112
  visibleColumnsArray: i,
113
113
  columnWidths: k,
114
114
  hasActions: N,
115
- actions: b,
115
+ actions: f,
116
116
  columns: w
117
117
  }) {
118
118
  const C = (h, m) => {
@@ -143,7 +143,7 @@ function se({
143
143
  children: /* @__PURE__ */ e(
144
144
  j,
145
145
  {
146
- checked: v.includes(m),
146
+ checked: b.includes(m),
147
147
  onCheckedChange: () => {
148
148
  g(m);
149
149
  }
@@ -163,14 +163,14 @@ function se({
163
163
  d.key
164
164
  );
165
165
  }),
166
- N && b !== void 0 && b.length > 0 ? /* @__PURE__ */ e(
166
+ N && f !== void 0 && f.length > 0 ? /* @__PURE__ */ e(
167
167
  "td",
168
168
  {
169
169
  className: "px-2 py-2 w-12 text-end",
170
170
  onClick: (d) => {
171
171
  d.stopPropagation();
172
172
  },
173
- children: /* @__PURE__ */ e(Y, { actions: b, row: h })
173
+ children: /* @__PURE__ */ e(Y, { actions: f, row: h })
174
174
  }
175
175
  ) : null
176
176
  ]
@@ -230,12 +230,12 @@ function ie({
230
230
  visibleColumnsArray: o,
231
231
  draggableColumns: l,
232
232
  resizableColumns: u,
233
- columnWidths: v,
233
+ columnWidths: b,
234
234
  sortColumn: g,
235
235
  sortDirection: i,
236
236
  handleSort: k,
237
237
  handleDragStart: N,
238
- handleDragOver: b,
238
+ handleDragOver: f,
239
239
  handleDrop: w,
240
240
  handleMouseDown: C,
241
241
  hasActions: h,
@@ -251,7 +251,7 @@ function ie({
251
251
  $ ? "cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800 select-none" : "",
252
252
  T ? "bg-gray-100/80 dark:bg-gray-800/80" : ""
253
253
  ].filter(Boolean).join(" "),
254
- style: { width: v[r.key] },
254
+ style: { width: b[r.key] },
255
255
  draggable: z,
256
256
  onClick: () => {
257
257
  k(r.key);
@@ -260,7 +260,7 @@ function ie({
260
260
  z ? N(p, r.key) : p.preventDefault();
261
261
  },
262
262
  onDragOver: (p) => {
263
- b(p, r.key);
263
+ f(p, r.key);
264
264
  },
265
265
  onDrop: (p) => {
266
266
  w(p, r.key);
@@ -307,7 +307,7 @@ function de({
307
307
  setPageSize: o,
308
308
  currentPage: l,
309
309
  setCurrentPage: u,
310
- pageSizeOptions: v,
310
+ pageSizeOptions: b,
311
311
  totalPages: g
312
312
  }) {
313
313
  return /* @__PURE__ */ t("div", { className: "px-4 py-2 border-t border-border flex items-center justify-between bg-card flex-wrap gap-2", children: [
@@ -327,7 +327,7 @@ function de({
327
327
  o(Number(i.target.value)), u(1);
328
328
  },
329
329
  className: "border border-input bg-background rounded px-2 py-1 text-sm text-foreground",
330
- children: v.map((i) => /* @__PURE__ */ e("option", { value: i, children: i }, i))
330
+ children: b.map((i) => /* @__PURE__ */ e("option", { value: i, children: i }, i))
331
331
  }
332
332
  )
333
333
  ] }),
@@ -361,7 +361,7 @@ function de({
361
361
  u((i) => Math.min(g, i + 1));
362
362
  },
363
363
  disabled: l === g,
364
- children: /* @__PURE__ */ e(L, { className: "size-4" })
364
+ children: /* @__PURE__ */ e(B, { className: "size-4" })
365
365
  }
366
366
  )
367
367
  ] })
@@ -1,4 +1,4 @@
1
- import { K as s, a as d, M as i } from "../../../MetricCard-bpuqueI5.js";
1
+ import { K as s, a as d, M as i } from "../../../MetricCard-5kWhYPKJ.js";
2
2
  export {
3
3
  s as KpiCard,
4
4
  d as KpiCards,
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ export type ButtonVariantType = "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | "styled";
3
+ export interface DialogAction {
4
+ label: string;
5
+ onClick: () => void;
6
+ variant?: ButtonVariantType;
7
+ disabled?: boolean;
8
+ icon?: React.ElementType;
9
+ className?: string;
10
+ }
11
+ export interface AppDialogConfig {
12
+ title: string;
13
+ description?: string;
14
+ icon?: React.ElementType;
15
+ maxWidth?: string;
16
+ actions?: DialogAction[];
17
+ }
18
+ interface AppDialogProps {
19
+ open: boolean;
20
+ onOpenChange: (open: boolean) => void;
21
+ config: AppDialogConfig;
22
+ isLoading?: boolean;
23
+ error?: Error | null;
24
+ children: React.ReactNode;
25
+ }
26
+ export declare function AppDialog({ open, onOpenChange, config, isLoading, error, children }: AppDialogProps): React.ReactElement;
27
+ export {};
28
+ //# sourceMappingURL=AppDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dialogs/AppDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAElH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;CAC1B;AAED,UAAU,cAAc;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,cAAc,GAAG,KAAK,CAAC,YAAY,CAoDxH"}
@@ -0,0 +1,32 @@
1
+ export interface FieldDef<T> {
2
+ key: string;
3
+ label: string;
4
+ fullWidth?: boolean;
5
+ renderView?: (data: T) => React.ReactNode;
6
+ renderEdit?: (data: T, editedData: Partial<T>, onChange: (val: unknown) => void) => React.ReactNode;
7
+ getEditValue?: (data: T) => unknown;
8
+ }
9
+ export interface SectionDef<T> {
10
+ title: string;
11
+ icon?: React.ReactNode;
12
+ fields: FieldDef<T>[];
13
+ }
14
+ interface FormDialogProps<T> {
15
+ open: boolean;
16
+ onOpenChange: (open: boolean) => void;
17
+ data: T | null;
18
+ title: (data: T) => string;
19
+ headerBadge?: (data: T) => React.ReactNode;
20
+ sections: SectionDef<T>[];
21
+ onSave?: (editedData: Partial<T>) => Promise<void>;
22
+ customFooter?: (data: T) => React.ReactNode;
23
+ defaultEditing?: boolean;
24
+ footerActions?: boolean;
25
+ saveLabel?: string;
26
+ cancelLabel?: string;
27
+ hideSaveIcon?: boolean;
28
+ maxWidth?: string;
29
+ }
30
+ export default function FormDialog<T>({ open, onOpenChange, data, title, headerBadge, sections, onSave, customFooter, defaultEditing, footerActions, saveLabel, cancelLabel, hideSaveIcon, maxWidth, }: FormDialogProps<T>): React.ReactElement | null;
31
+ export {};
32
+ //# sourceMappingURL=FormDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dialogs/FormDialog.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAC1C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,KAAK,KAAK,CAAC,SAAS,CAAC;IACpG,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC;CACrC;AAED,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;CACvB;AAED,UAAU,eAAe,CAAC,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IACf,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAC3C,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IAC5C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,EAAE,EACpC,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,cAAsB,EACtB,aAAoB,EACpB,SAAyB,EACzB,WAAuB,EACvB,YAAoB,EACpB,QAAyB,GAC1B,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,GAAG,IAAI,CAoOhD"}
@@ -0,0 +1,7 @@
1
+ export { AppDialog } from "./AppDialog";
2
+ export type { ButtonVariantType, DialogAction, AppDialogConfig } from "./AppDialog";
3
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from "../../ui/dialog";
4
+ export { Progress } from "../../ui/progress";
5
+ export { default as FormDialog } from "./FormDialog";
6
+ export type { FieldDef, SectionDef } from "./FormDialog";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dialogs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { A as i, D as s, a as g, b as l, c as D, d as e, e as r, f as t, g as p, h as n, i as F, F as P, P as c } from "../../../FormDialog-CwxZPmv4.js";
2
+ export {
3
+ i as AppDialog,
4
+ s as Dialog,
5
+ g as DialogClose,
6
+ l as DialogContent,
7
+ D as DialogDescription,
8
+ e as DialogFooter,
9
+ r as DialogHeader,
10
+ t as DialogOverlay,
11
+ p as DialogPortal,
12
+ n as DialogTitle,
13
+ F as DialogTrigger,
14
+ P as FormDialog,
15
+ c as Progress
16
+ };
@@ -1,4 +1,4 @@
1
- import { A as l, a as r, S as i, T as s } from "../../../TableFilter-BoNsBNbv.js";
1
+ import { A as l, a as r, S as i, T as s } from "../../../TableFilter-w9BHeObX.js";
2
2
  export {
3
3
  l as ActiveFilters,
4
4
  r as AdvancedFilters,
@@ -6,5 +6,6 @@ export * from "./table";
6
6
  export * from "./filters";
7
7
  export * from "./table";
8
8
  export * from "./navbar";
9
+ export * from "./dialogs";
9
10
  export * from "./theme";
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -1,39 +1,53 @@
1
- import { K as s, a as o, M as i } from "../../MetricCard-bpuqueI5.js";
2
- import { D as p, a as c, M as S, S as T, b } from "../../SearchInput-Dh-92XhU.js";
3
- import { A as n, a as m } from "../../AppTitle-BOhhDNS5.js";
4
- import { C as f, a as x, E as C, L as k } from "../../LoadingState-DQjGcT2l.js";
1
+ import { K as o, a as t, M as i } from "../../MetricCard-5kWhYPKJ.js";
2
+ import { D as p, a as g, M as c, S as D, b as T } from "../../SearchInput-Dpy2amwO.js";
3
+ import { A as S, a as b } from "../../AppTitle-CJZdhpRm.js";
4
+ import { C as m, a as A, E as f, L as x } from "../../LoadingState-DQjGcT2l.js";
5
5
  import "react/jsx-runtime";
6
6
  import "react";
7
- import { T as h, a as F, b as M, c as P, d as u, e as D } from "../../TableSettings-D2qjh0E9.js";
8
- import { A as v, a as B, S as E, T as L } from "../../TableFilter-BoNsBNbv.js";
9
- import { S as H, T as I } from "../../Topbar-DifQ00kV.js";
10
- import { T as j } from "../../ThemeSelector-BCU1tFyR.js";
7
+ import { T as F, a as P, b as h, c as k, d as M, e as u } from "../../TableSettings-DNkdLgCN.js";
8
+ import { A as K, a as y, S as B, T as E } from "../../TableFilter-w9BHeObX.js";
9
+ import { S as L, T as I } from "../../Topbar-DifQ00kV.js";
10
+ import { A as R, D as j, a as q, b as w, c as z, d as G, e as J, f as N, g as Q, h as U, i as V, F as W, P as X } from "../../FormDialog-CwxZPmv4.js";
11
+ import { T as Z } from "../../ThemeSelector-BCU1tFyR.js";
11
12
  export {
12
- v as ActiveFilters,
13
- B as AdvancedFilters,
14
- n as AppActions,
15
- m as AppTitle,
16
- f as CardSkeleton,
17
- x as CardsSkeleton,
13
+ K as ActiveFilters,
14
+ y as AdvancedFilters,
15
+ S as AppActions,
16
+ R as AppDialog,
17
+ b as AppTitle,
18
+ m as CardSkeleton,
19
+ A as CardsSkeleton,
18
20
  p as DatePicker,
19
- c as DateRangePicker,
20
- C as ErrorState,
21
- s as KpiCard,
22
- o as KpiCards,
23
- k as LoadingState,
21
+ g as DateRangePicker,
22
+ j as Dialog,
23
+ q as DialogClose,
24
+ w as DialogContent,
25
+ z as DialogDescription,
26
+ G as DialogFooter,
27
+ J as DialogHeader,
28
+ N as DialogOverlay,
29
+ Q as DialogPortal,
30
+ U as DialogTitle,
31
+ V as DialogTrigger,
32
+ f as ErrorState,
33
+ W as FormDialog,
34
+ o as KpiCard,
35
+ t as KpiCards,
36
+ x as LoadingState,
24
37
  i as MetricCard,
25
- S as MultiSelect,
26
- T as SearchInput,
27
- E as SearchableFilterPill,
28
- b as SearchableSelect,
29
- H as Sidebar,
30
- h as TableActions,
31
- F as TableBody,
32
- M as TableBulkActions,
33
- L as TableFilter,
34
- P as TableHeader,
35
- u as TablePagination,
36
- D as TableSettings,
37
- j as ThemeSelector,
38
+ c as MultiSelect,
39
+ X as Progress,
40
+ D as SearchInput,
41
+ B as SearchableFilterPill,
42
+ T as SearchableSelect,
43
+ L as Sidebar,
44
+ F as TableActions,
45
+ P as TableBody,
46
+ h as TableBulkActions,
47
+ E as TableFilter,
48
+ k as TableHeader,
49
+ M as TablePagination,
50
+ u as TableSettings,
51
+ Z as ThemeSelector,
38
52
  I as Topbar
39
53
  };
@@ -1,4 +1,4 @@
1
- import { D as t, a as c, M as r, S as s, b as S } from "../../../SearchInput-Dh-92XhU.js";
1
+ import { D as t, a as c, M as r, S as s, b as S } from "../../../SearchInput-Dpy2amwO.js";
2
2
  export {
3
3
  t as DatePicker,
4
4
  c as DateRangePicker,
@@ -1,4 +1,4 @@
1
- import { A as a, a as o } from "../../../AppTitle-BOhhDNS5.js";
1
+ import { A as a, a as o } from "../../../AppTitle-CJZdhpRm.js";
2
2
  export {
3
3
  a as AppActions,
4
4
  o as AppTitle
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { T as t, a as b, b as i, c as l, d as T, e as n } from "../../../TableSettings-D2qjh0E9.js";
3
+ import { T as t, a as b, b as i, c as l, d as T, e as n } from "../../../TableSettings-DNkdLgCN.js";
4
4
  export {
5
5
  t as TableActions,
6
6
  b as TableBody,
@@ -1,91 +1,105 @@
1
- import { K as r, a as o, M as l } from "../MetricCard-bpuqueI5.js";
2
- import { D as S, a as c, M as p, S as n, b as T } from "../SearchInput-Dh-92XhU.js";
3
- import { A as b, a as C } from "../AppTitle-BOhhDNS5.js";
4
- import { C as h, a as f, E as g, L as x } from "../LoadingState-DQjGcT2l.js";
1
+ import { K as o, a as r, M as l } from "../MetricCard-5kWhYPKJ.js";
2
+ import { D as p, a as S, M as c, S as n, b as T } from "../SearchInput-Dpy2amwO.js";
3
+ import { A as d, a as b } from "../AppTitle-CJZdhpRm.js";
4
+ import { C as D, a as m, E as h, L as f } from "../LoadingState-DQjGcT2l.js";
5
5
  import "react/jsx-runtime";
6
6
  import "react";
7
- import { T as u, a as P, b as B, c as D, d as k, e as v } from "../TableSettings-D2qjh0E9.js";
8
- import { A as L, a as I, S as M, T as V } from "../TableFilter-BoNsBNbv.js";
9
- import { S as K, T as w } from "../Topbar-DifQ00kV.js";
10
- import { T as E } from "../ThemeSelector-BCU1tFyR.js";
11
- import { A as q, a as G, b as O, C as R, c as U, I as z, L as J, P as N, d as Q, e as W, S as X, f as Y, g as Z, h as _, i as $, j as aa, k as ea, l as ta, m as sa, n as ra, T as oa, o as la, p as ia, q as Sa, r as ca, s as pa, t as na } from "../popover-DVVl_ccN.js";
12
- import { B as da, b as ba } from "../floating-ui.react-dom-BIcsGc3t.js";
13
- import { C as ma, a as ha, b as fa, c as ga, d as xa, e as Aa } from "../card-7XPLAra3.js";
14
- import { B as Pa, b as Ba } from "../badge-Bw-aBz_H.js";
15
- import { S as ka, a as va, b as Fa, c as La, d as Ia, e as Ma, f as Va, g as Ha, h as Ka, i as wa } from "../select-CtU681LB.js";
7
+ import { T as x, a as P, b as u, c as F, d as v, e as B } from "../TableSettings-DNkdLgCN.js";
8
+ import { A as L, a as H, S as I, T as M } from "../TableFilter-w9BHeObX.js";
9
+ import { S as y, T as K } from "../Topbar-DifQ00kV.js";
10
+ import { A as E, D as O, a as j, b as q, c as G, d as R, e as U, f as z, g as J, h as N, i as Q, F as W, P as X } from "../FormDialog-CwxZPmv4.js";
11
+ import { T as Z } from "../ThemeSelector-BCU1tFyR.js";
12
+ import { A as $, a as aa, b as ea, C as sa, c as ta, I as oa, L as ra, P as la, d as ia, e as pa, S as Sa, f as ca, g as na, h as Ta, i as ga, j as da, k as ba, l as Ca, m as Da, n as ma, T as ha, o as fa, p as Aa, q as xa, r as Pa, s as ua, t as Fa } from "../popover-BMvYmQOM.js";
13
+ import { B as Ba, b as ka } from "../floating-ui.react-dom-BIcsGc3t.js";
14
+ import { C as Ha, a as Ia, b as Ma, c as Va, d as ya, e as Ka } from "../card-7XPLAra3.js";
15
+ import { B as Ea, b as Oa } from "../badge-Bw-aBz_H.js";
16
+ import { S as qa, a as Ga, b as Ra, c as Ua, d as za, e as Ja, f as Na, g as Qa, h as Wa, i as Xa } from "../select-CtU681LB.js";
16
17
  export {
17
18
  L as ActiveFilters,
18
- I as AdvancedFilters,
19
- q as Alert,
20
- G as AlertDescription,
21
- O as AlertTitle,
22
- b as AppActions,
23
- C as AppTitle,
24
- Pa as Badge,
25
- da as Button,
26
- R as Calendar,
27
- ma as Card,
28
- ha as CardContent,
29
- fa as CardDescription,
30
- ga as CardFooter,
31
- xa as CardHeader,
32
- h as CardSkeleton,
33
- Aa as CardTitle,
34
- f as CardsSkeleton,
35
- U as Checkbox,
36
- S as DatePicker,
37
- c as DateRangePicker,
38
- g as ErrorState,
39
- z as Input,
40
- r as KpiCard,
41
- o as KpiCards,
42
- J as Label,
43
- x as LoadingState,
19
+ H as AdvancedFilters,
20
+ $ as Alert,
21
+ aa as AlertDescription,
22
+ ea as AlertTitle,
23
+ d as AppActions,
24
+ E as AppDialog,
25
+ b as AppTitle,
26
+ Ea as Badge,
27
+ Ba as Button,
28
+ sa as Calendar,
29
+ Ha as Card,
30
+ Ia as CardContent,
31
+ Ma as CardDescription,
32
+ Va as CardFooter,
33
+ ya as CardHeader,
34
+ D as CardSkeleton,
35
+ Ka as CardTitle,
36
+ m as CardsSkeleton,
37
+ ta as Checkbox,
38
+ p as DatePicker,
39
+ S as DateRangePicker,
40
+ O as Dialog,
41
+ j as DialogClose,
42
+ q as DialogContent,
43
+ G as DialogDescription,
44
+ R as DialogFooter,
45
+ U as DialogHeader,
46
+ z as DialogOverlay,
47
+ J as DialogPortal,
48
+ N as DialogTitle,
49
+ Q as DialogTrigger,
50
+ h as ErrorState,
51
+ W as FormDialog,
52
+ oa as Input,
53
+ o as KpiCard,
54
+ r as KpiCards,
55
+ ra as Label,
56
+ f as LoadingState,
44
57
  l as MetricCard,
45
- p as MultiSelect,
46
- N as Popover,
47
- Q as PopoverContent,
48
- W as PopoverTrigger,
58
+ c as MultiSelect,
59
+ la as Popover,
60
+ ia as PopoverContent,
61
+ pa as PopoverTrigger,
62
+ X as Progress,
49
63
  n as SearchInput,
50
- M as SearchableFilterPill,
64
+ I as SearchableFilterPill,
51
65
  T as SearchableSelect,
52
- ka as Select,
53
- va as SelectContent,
54
- Fa as SelectGroup,
55
- La as SelectItem,
56
- Ia as SelectLabel,
57
- Ma as SelectScrollDownButton,
58
- Va as SelectScrollUpButton,
59
- Ha as SelectSeparator,
60
- Ka as SelectTrigger,
61
- wa as SelectValue,
62
- X as Sheet,
63
- Y as SheetClose,
64
- Z as SheetContent,
65
- _ as SheetDescription,
66
- $ as SheetFooter,
67
- aa as SheetHeader,
68
- ea as SheetOverlay,
69
- ta as SheetPortal,
70
- sa as SheetTitle,
71
- ra as SheetTrigger,
72
- K as Sidebar,
73
- u as TableActions,
66
+ qa as Select,
67
+ Ga as SelectContent,
68
+ Ra as SelectGroup,
69
+ Ua as SelectItem,
70
+ za as SelectLabel,
71
+ Ja as SelectScrollDownButton,
72
+ Na as SelectScrollUpButton,
73
+ Qa as SelectSeparator,
74
+ Wa as SelectTrigger,
75
+ Xa as SelectValue,
76
+ Sa as Sheet,
77
+ ca as SheetClose,
78
+ na as SheetContent,
79
+ Ta as SheetDescription,
80
+ ga as SheetFooter,
81
+ da as SheetHeader,
82
+ ba as SheetOverlay,
83
+ Ca as SheetPortal,
84
+ Da as SheetTitle,
85
+ ma as SheetTrigger,
86
+ y as Sidebar,
87
+ x as TableActions,
74
88
  P as TableBody,
75
- B as TableBulkActions,
76
- V as TableFilter,
77
- D as TableHeader,
78
- k as TablePagination,
79
- v as TableSettings,
80
- E as ThemeSelector,
81
- oa as Toast,
82
- la as ToastAction,
83
- ia as ToastClose,
84
- Sa as ToastDescription,
85
- ca as ToastProvider,
86
- pa as ToastTitle,
87
- na as ToastViewport,
88
- w as Topbar,
89
- Ba as badgeVariants,
90
- ba as buttonVariants
89
+ u as TableBulkActions,
90
+ M as TableFilter,
91
+ F as TableHeader,
92
+ v as TablePagination,
93
+ B as TableSettings,
94
+ Z as ThemeSelector,
95
+ ha as Toast,
96
+ fa as ToastAction,
97
+ Aa as ToastClose,
98
+ xa as ToastDescription,
99
+ Pa as ToastProvider,
100
+ ua as ToastTitle,
101
+ Fa as ToastViewport,
102
+ K as Topbar,
103
+ Oa as badgeVariants,
104
+ ka as buttonVariants
91
105
  };
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DialogHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.ReactElement;
11
+ displayName: string;
12
+ };
13
+ declare const DialogFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.ReactElement;
15
+ displayName: string;
16
+ };
17
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription };
20
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAWlB,CAAC;AAGF,QAAA,MAAM,aAAa,8JAoBlB,CAAC;AAGF,QAAA,MAAM,YAAY;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY;;CAEvG,CAAC;AAGF,QAAA,MAAM,YAAY;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY;;CAEvG,CAAC;AAGF,QAAA,MAAM,WAAW,oKAIhB,CAAC;AAGF,QAAA,MAAM,iBAAiB,8KAG6H,CAAC;AAGrJ,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { A as t, a as s, b as o, C as r, c as l, I as S, L as n, P as i, d as c, e as p, S as C, f as d, g as T, h, i as b, j as g, k as f, l as m, m as u, n as x, T as B, o as P, p as v, q as A, r as D, s as V, t as I } from "../../popover-DVVl_ccN.js";
1
+ import { A as t, a as s, b as o, C as r, c as l, I as S, L as n, P as i, d as c, e as p, S as C, f as d, g as T, h, i as b, j as g, k as f, l as m, m as u, n as x, T as B, o as P, p as v, q as A, r as D, s as V, t as I } from "../../popover-BMvYmQOM.js";
2
2
  import { B as k, b as w } from "../../floating-ui.react-dom-BIcsGc3t.js";
3
3
  import { C as H, a as j, b as q, c as y, d as G, e as O } from "../../card-7XPLAra3.js";
4
4
  import { B as z, b as E } from "../../badge-Bw-aBz_H.js";