@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.
- package/dist/{AppTitle-BOhhDNS5.js → AppTitle-CJZdhpRm.js} +2 -2
- package/dist/FormDialog-CwxZPmv4.js +472 -0
- package/dist/{MetricCard-bpuqueI5.js → MetricCard-5kWhYPKJ.js} +1 -1
- package/dist/{SearchInput-Dh-92XhU.js → SearchInput-Dpy2amwO.js} +28 -28
- package/dist/{TableFilter-BoNsBNbv.js → TableFilter-w9BHeObX.js} +2 -2
- package/dist/{TableSettings-D2qjh0E9.js → TableSettings-DNkdLgCN.js} +21 -21
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/dialogs/AppDialog.d.ts +28 -0
- package/dist/components/core/dialogs/AppDialog.d.ts.map +1 -0
- package/dist/components/core/dialogs/FormDialog.d.ts +32 -0
- package/dist/components/core/dialogs/FormDialog.d.ts.map +1 -0
- package/dist/components/core/dialogs/index.d.ts +7 -0
- package/dist/components/core/dialogs/index.d.ts.map +1 -0
- package/dist/components/core/dialogs/index.js +16 -0
- package/dist/components/core/filters/index.js +1 -1
- package/dist/components/core/index.d.ts +1 -0
- package/dist/components/core/index.d.ts.map +1 -1
- package/dist/components/core/index.js +46 -32
- package/dist/components/core/inputs/index.js +1 -1
- package/dist/components/core/layouts/index.js +1 -1
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/index.js +96 -82
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/progress.d.ts +8 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/{dropdown-menu-D6j1GdTA.js → dropdown-menu-Q_WkonPk.js} +1 -1
- package/dist/{popover-DVVl_ccN.js → popover-BMvYmQOM.js} +598 -590
- package/dist/tailwind/index.d.ts +9 -0
- package/dist/tailwind/index.d.ts.map +1 -1
- package/dist/tailwind/index.js +6 -1
- 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-
|
|
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-
|
|
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,
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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(
|
|
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:
|
|
110
|
+
selectedRows: b,
|
|
111
111
|
toggleRowSelection: g,
|
|
112
112
|
visibleColumnsArray: i,
|
|
113
113
|
columnWidths: k,
|
|
114
114
|
hasActions: N,
|
|
115
|
-
actions:
|
|
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:
|
|
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 &&
|
|
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:
|
|
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:
|
|
233
|
+
columnWidths: b,
|
|
234
234
|
sortColumn: g,
|
|
235
235
|
sortDirection: i,
|
|
236
236
|
handleSort: k,
|
|
237
237
|
handleDragStart: N,
|
|
238
|
-
handleDragOver:
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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(
|
|
364
|
+
children: /* @__PURE__ */ e(B, { className: "size-4" })
|
|
365
365
|
}
|
|
366
366
|
)
|
|
367
367
|
] })
|
|
@@ -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 +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
|
|
2
|
-
import { D as p, a as
|
|
3
|
-
import { A as
|
|
4
|
-
import { C as
|
|
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
|
|
8
|
-
import { A as
|
|
9
|
-
import { S as
|
|
10
|
-
import {
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
F as
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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,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-
|
|
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,
|
package/dist/components/index.js
CHANGED
|
@@ -1,91 +1,105 @@
|
|
|
1
|
-
import { K as
|
|
2
|
-
import { D as
|
|
3
|
-
import { A as
|
|
4
|
-
import { C as
|
|
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
|
|
8
|
-
import { A as L, a as
|
|
9
|
-
import { S as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
64
|
+
I as SearchableFilterPill,
|
|
51
65
|
T as SearchableSelect,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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-
|
|
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";
|