@deepnoid/ui 0.1.66 → 0.1.68
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/.turbo/turbo-build.log +181 -181
- package/dist/{chunk-37HWNOK3.mjs → chunk-337VFHYV.mjs} +3 -3
- package/dist/{chunk-RDAADKOZ.mjs → chunk-3WBUF37A.mjs} +4 -4
- package/dist/{chunk-OXQZAEOP.mjs → chunk-3YXCBM7H.mjs} +5 -5
- package/dist/{chunk-MIQMNEXX.mjs → chunk-4IKNOB5Y.mjs} +2 -2
- package/dist/{chunk-YIIFWADW.mjs → chunk-5IESFXPF.mjs} +4 -4
- package/dist/{chunk-UHT6GDT2.mjs → chunk-63JDURFU.mjs} +19 -23
- package/dist/{chunk-UFVQPPPW.mjs → chunk-B6XJNGQL.mjs} +3 -3
- package/dist/{chunk-GJHU6PFC.mjs → chunk-BGLH2JB6.mjs} +2 -2
- package/dist/{chunk-LCLEMQ5R.mjs → chunk-BUH3JK3B.mjs} +4 -4
- package/dist/{chunk-ZJURCHUU.mjs → chunk-CFB4JWDA.mjs} +4 -4
- package/dist/{chunk-KXTA5GBQ.mjs → chunk-EKWUOA5B.mjs} +1 -1
- package/dist/{chunk-XODEITY4.mjs → chunk-F5XBEFX5.mjs} +5 -5
- package/dist/{chunk-EP66I5EV.mjs → chunk-FMZEP4LD.mjs} +4 -4
- package/dist/{chunk-SSMMWMQC.mjs → chunk-FRKIXGG5.mjs} +3 -3
- package/dist/{chunk-P5QCU457.mjs → chunk-FZJ5PLRU.mjs} +3 -3
- package/dist/{chunk-TMCRSM54.mjs → chunk-HLLRDA4A.mjs} +6 -6
- package/dist/{chunk-QEPJICMO.mjs → chunk-I6MFQAQE.mjs} +3 -3
- package/dist/{chunk-5UWNYEG4.mjs → chunk-IHERL7SE.mjs} +6 -6
- package/dist/{chunk-IL5ENWCR.mjs → chunk-JPFA7PPB.mjs} +3 -3
- package/dist/{chunk-ZGPNJQZX.mjs → chunk-KCAGZUYM.mjs} +3 -3
- package/dist/{chunk-LZVR2G2W.mjs → chunk-KOZ7WRQU.mjs} +3 -3
- package/dist/{chunk-HLPTI3UO.mjs → chunk-LIP5CNY3.mjs} +7 -7
- package/dist/{chunk-G4OFX2OO.mjs → chunk-MNGULMJI.mjs} +5 -5
- package/dist/{chunk-YLYLDWUR.mjs → chunk-N5BS5LZJ.mjs} +6 -6
- package/dist/{chunk-NLDBVRJT.mjs → chunk-NQYWOEB3.mjs} +4 -4
- package/dist/{chunk-4SDLHEKS.mjs → chunk-ORXMPU2C.mjs} +3 -3
- package/dist/{chunk-2XWRY3U7.mjs → chunk-Q6IUCVAN.mjs} +14 -19
- package/dist/{chunk-6XSBM3DG.mjs → chunk-SJTGJ6NC.mjs} +1 -1
- package/dist/{chunk-7H5XPHY6.mjs → chunk-SKOCUCE5.mjs} +4 -4
- package/dist/{chunk-VGFGIXS6.mjs → chunk-STAE4IPE.mjs} +3 -3
- package/dist/{chunk-UCU5ON5M.mjs → chunk-TKB2JL2E.mjs} +1 -1
- package/dist/{chunk-ZSEX6SVO.mjs → chunk-TVTIX7MO.mjs} +4 -4
- package/dist/{chunk-TVIVXGEN.mjs → chunk-UTWY7OBW.mjs} +1 -1
- package/dist/{chunk-4ZJFD3L3.mjs → chunk-XOPCRI7Z.mjs} +9 -1
- package/dist/{chunk-SQF2SUJZ.mjs → chunk-YZ7HQHTL.mjs} +584 -3
- package/dist/{chunk-YOE2AVC6.mjs → chunk-ZY7MY7KH.mjs} +4 -4
- package/dist/components/avatar/avatar.js +593 -4
- package/dist/components/avatar/avatar.mjs +3 -3
- package/dist/components/avatar/index.js +593 -4
- package/dist/components/avatar/index.mjs +3 -3
- package/dist/components/backdrop/backdrop.js +9 -1
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +9 -1
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +593 -4
- package/dist/components/breadcrumb/breadcrumb.mjs +9 -9
- package/dist/components/breadcrumb/index.js +593 -4
- package/dist/components/breadcrumb/index.mjs +9 -9
- package/dist/components/button/button-group.js +9 -1
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.js +593 -4
- package/dist/components/button/button.mjs +4 -4
- package/dist/components/button/icon-button.js +593 -4
- package/dist/components/button/icon-button.mjs +4 -4
- package/dist/components/button/index.js +593 -4
- package/dist/components/button/index.mjs +8 -8
- package/dist/components/button/text-button.js +9 -1
- package/dist/components/button/text-button.mjs +3 -3
- package/dist/components/charts/areaChart.js +9 -1
- package/dist/components/charts/areaChart.mjs +2 -2
- package/dist/components/charts/barChart.js +9 -1
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.js +9 -1
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.js +9 -1
- package/dist/components/charts/index.mjs +6 -6
- package/dist/components/checkbox/checkbox.js +9 -1
- package/dist/components/checkbox/checkbox.mjs +3 -3
- package/dist/components/checkbox/index.js +9 -1
- package/dist/components/checkbox/index.mjs +3 -3
- package/dist/components/chip/chip.js +593 -4
- package/dist/components/chip/chip.mjs +4 -4
- package/dist/components/chip/index.js +593 -4
- package/dist/components/chip/index.mjs +4 -4
- package/dist/components/dateTimePicker/calendar.js +593 -4
- package/dist/components/dateTimePicker/calendar.mjs +4 -4
- package/dist/components/dateTimePicker/dateTimePicker.js +593 -4
- package/dist/components/dateTimePicker/dateTimePicker.mjs +9 -9
- package/dist/components/dateTimePicker/index.js +593 -4
- package/dist/components/dateTimePicker/index.mjs +9 -9
- package/dist/components/dateTimePicker/timePicker.js +593 -4
- package/dist/components/dateTimePicker/timePicker.mjs +7 -7
- package/dist/components/drawer/drawer.js +9 -1
- package/dist/components/drawer/drawer.mjs +3 -3
- package/dist/components/drawer/index.js +9 -1
- package/dist/components/drawer/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +593 -4
- package/dist/components/fileUpload/fileUpload.mjs +10 -10
- package/dist/components/fileUpload/index.js +593 -4
- package/dist/components/fileUpload/index.mjs +10 -10
- package/dist/components/icon/Icon.d.mts +71 -3
- package/dist/components/icon/Icon.d.ts +71 -3
- package/dist/components/icon/Icon.js +584 -3
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +584 -3
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +20 -3
- package/dist/components/icon/template.d.ts +20 -3
- package/dist/components/icon/template.js +584 -3
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +593 -4
- package/dist/components/input/index.mjs +5 -5
- package/dist/components/input/input.js +593 -4
- package/dist/components/input/input.mjs +5 -5
- package/dist/components/list/index.js +593 -4
- package/dist/components/list/index.mjs +6 -6
- package/dist/components/list/list.js +9 -1
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +593 -4
- package/dist/components/list/listItem.mjs +5 -5
- package/dist/components/modal/index.js +593 -4
- package/dist/components/modal/index.mjs +10 -10
- package/dist/components/modal/modal.js +593 -4
- package/dist/components/modal/modal.mjs +10 -10
- package/dist/components/pagination/index.js +593 -4
- package/dist/components/pagination/index.mjs +6 -6
- package/dist/components/pagination/pagination.js +593 -4
- package/dist/components/pagination/pagination.mjs +6 -6
- package/dist/components/radio/index.js +9 -1
- package/dist/components/radio/index.mjs +3 -3
- package/dist/components/radio/radio.js +9 -1
- package/dist/components/radio/radio.mjs +3 -3
- package/dist/components/select/index.js +593 -4
- package/dist/components/select/index.mjs +5 -5
- package/dist/components/select/select.js +593 -4
- package/dist/components/select/select.mjs +5 -5
- package/dist/components/table/definition-table.js +9 -1
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.js +9 -1
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +619 -38
- package/dist/components/table/index.mjs +11 -11
- package/dist/components/table/table-body.js +27 -23
- package/dist/components/table/table-body.mjs +4 -4
- package/dist/components/table/table-head.js +9 -1
- package/dist/components/table/table-head.mjs +4 -4
- package/dist/components/table/table.d.mts +12 -12
- package/dist/components/table/table.d.ts +12 -12
- package/dist/components/table/table.js +619 -38
- package/dist/components/table/table.mjs +10 -10
- package/dist/components/tabs/index.js +9 -1
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.js +9 -1
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/textarea/index.mjs +2 -2
- package/dist/components/textarea/textarea.mjs +2 -2
- package/dist/components/toast/index.js +593 -4
- package/dist/components/toast/index.mjs +6 -6
- package/dist/components/toast/toast.js +593 -4
- package/dist/components/toast/toast.mjs +5 -5
- package/dist/components/toast/use-toast.js +593 -4
- package/dist/components/toast/use-toast.mjs +6 -6
- package/dist/components/tooltip/index.js +9 -1
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +9 -1
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.js +593 -4
- package/dist/components/tree/index.mjs +4 -4
- package/dist/components/tree/tree.js +593 -4
- package/dist/components/tree/tree.mjs +4 -4
- package/dist/index.js +619 -38
- package/dist/index.mjs +48 -48
- package/dist/utils/tailwind-variants.js +9 -1
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/{chunk-6Q2BXHJL.mjs → chunk-4EIGHKUO.mjs} +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
5
5
|
import {
|
|
6
6
|
clsx
|
|
7
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
mapPropsVariants
|
|
10
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/radio/radio.tsx
|
|
13
13
|
import { forwardRef, useMemo } from "react";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-6PN3DGOE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
checkbox_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SKOCUCE5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
clsx
|
|
10
10
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -20,7 +20,6 @@ var TableBody = ({
|
|
|
20
20
|
rowCheckbox = false,
|
|
21
21
|
checkedRows,
|
|
22
22
|
onCheckRow,
|
|
23
|
-
// onRowClick,
|
|
24
23
|
isLoading = false,
|
|
25
24
|
emptyContent,
|
|
26
25
|
skeletonRow,
|
|
@@ -48,27 +47,24 @@ var TableBody = ({
|
|
|
48
47
|
rowCheckbox && renderTdSkeleton(`skeleton-checkbox-${rowIndex}`)
|
|
49
48
|
] }, `skeleton-${rowIndex}`);
|
|
50
49
|
const renderEmptyRow = () => /* @__PURE__ */ jsx("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ jsx("td", { colSpan: columns.length + (rowCheckbox ? 1 : 0), className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) });
|
|
51
|
-
const renderDataRow = (row, rowIndex) => (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
rowCheckbox && renderCheckboxCell(rowIndex)
|
|
70
|
-
] }, rowIndex)
|
|
71
|
-
);
|
|
50
|
+
const renderDataRow = (row, rowIndex) => /* @__PURE__ */ jsxs("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
51
|
+
columns.map((column, colIdx) => {
|
|
52
|
+
var _a;
|
|
53
|
+
const value = row[column.field];
|
|
54
|
+
const formattedValue = ((_a = column.valueFormatter) == null ? void 0 : _a.call(column, { value, field: column.field })) || value;
|
|
55
|
+
const content = column.renderCell ? column.renderCell({ id: row.id, field: column.field, value, formattedValue, row }) : formattedValue;
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
"td",
|
|
58
|
+
{
|
|
59
|
+
className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), column.className),
|
|
60
|
+
style: getCellStyle(column),
|
|
61
|
+
children: content
|
|
62
|
+
},
|
|
63
|
+
`${rowIndex}-${colIdx}`
|
|
64
|
+
);
|
|
65
|
+
}),
|
|
66
|
+
rowCheckbox && renderCheckboxCell(rowIndex)
|
|
67
|
+
] }, rowIndex);
|
|
72
68
|
const renderRows = () => {
|
|
73
69
|
if (isLoading) return skeletonRow ? Array.from({ length: skeletonRow }, (_, idx) => renderSkeletonRow(idx)) : /* @__PURE__ */ jsx(Fragment, {});
|
|
74
70
|
if (!rows.length && emptyContent) return renderEmptyRow();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
2
5
|
import {
|
|
3
6
|
mapPropsVariants
|
|
4
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/list/list.tsx
|
|
10
10
|
import { Children, cloneElement, forwardRef, isValidElement, useMemo } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
list_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B6XJNGQL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
listItem_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LIP5CNY3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/dateTimePicker/timePicker.tsx
|
|
10
10
|
import { useState, useRef, useEffect } from "react";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-LXHUO6VM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
11
|
+
import {
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
11
14
|
import {
|
|
12
15
|
mapPropsVariants
|
|
13
16
|
} from "./chunk-E3G5QXSH.mjs";
|
|
14
|
-
import {
|
|
15
|
-
tv
|
|
16
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
17
17
|
|
|
18
18
|
// src/components/button/button.tsx
|
|
19
19
|
import React, { forwardRef, useMemo, useCallback } from "react";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-P732YGHO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Icon_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
9
|
+
import {
|
|
10
|
+
tv
|
|
11
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
9
12
|
import {
|
|
10
13
|
mapPropsVariants
|
|
11
14
|
} from "./chunk-E3G5QXSH.mjs";
|
|
12
|
-
import {
|
|
13
|
-
tv
|
|
14
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
15
15
|
|
|
16
16
|
// src/components/dateTimePicker/calendar.tsx
|
|
17
17
|
import React, {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
tv
|
|
7
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
8
8
|
import {
|
|
9
9
|
clsx
|
|
10
10
|
} from "./chunk-27Y6K5NK.mjs";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/select/select.tsx
|
|
16
16
|
import { forwardRef, useMemo, useState, useRef, useEffect } from "react";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-LXHUO6VM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
11
|
+
import {
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
11
14
|
import {
|
|
12
15
|
mapPropsVariants
|
|
13
16
|
} from "./chunk-E3G5QXSH.mjs";
|
|
14
|
-
import {
|
|
15
|
-
tv
|
|
16
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
17
17
|
|
|
18
18
|
// src/components/button/icon-button.tsx
|
|
19
19
|
import { forwardRef, useMemo, useCallback } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
2
5
|
import {
|
|
3
6
|
mapPropsVariants
|
|
4
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/tabs/tabs.tsx
|
|
10
10
|
import { forwardRef, useCallback, useMemo, useState } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
2
5
|
import {
|
|
3
6
|
clsx
|
|
4
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/backdrop/backdrop.tsx
|
|
10
10
|
import { useEffect, useState } from "react";
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
} from "./chunk-F3HENRVM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
input_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MNGULMJI.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
14
14
|
import {
|
|
15
15
|
clsx
|
|
16
16
|
} from "./chunk-27Y6K5NK.mjs";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./chunk-
|
|
18
|
+
mapPropsVariants
|
|
19
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
20
20
|
|
|
21
21
|
// src/components/pagination/pagination.tsx
|
|
22
22
|
import { forwardRef, useMemo, useState } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
2
5
|
import {
|
|
3
6
|
mapPropsVariants
|
|
4
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/charts/barChart.tsx
|
|
10
10
|
import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
timePicker_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BGLH2JB6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useDatePicker
|
|
7
7
|
} from "./chunk-FWJ2ZKH6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
calendar_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CFB4JWDA.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Icon_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
14
|
+
import {
|
|
15
|
+
tv
|
|
16
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
14
17
|
import {
|
|
15
18
|
mapPropsVariants
|
|
16
19
|
} from "./chunk-E3G5QXSH.mjs";
|
|
17
|
-
import {
|
|
18
|
-
tv
|
|
19
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
20
20
|
|
|
21
21
|
// src/components/dateTimePicker/dateTimePicker.tsx
|
|
22
22
|
import React, { forwardRef, useCallback, useMemo } from "react";
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getTailClassName,
|
|
7
7
|
getTailStyles
|
|
8
8
|
} from "./chunk-WSIADHVC.mjs";
|
|
9
|
+
import {
|
|
10
|
+
tv
|
|
11
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
9
12
|
import {
|
|
10
13
|
mapPropsVariants
|
|
11
14
|
} from "./chunk-E3G5QXSH.mjs";
|
|
12
|
-
import {
|
|
13
|
-
tv
|
|
14
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
15
15
|
|
|
16
16
|
// src/components/tooltip/tooltip.tsx
|
|
17
17
|
import { forwardRef, useCallback, useMemo, useRef, useState, useEffect } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
2
5
|
import {
|
|
3
6
|
clsx
|
|
4
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/table/definition-table.tsx
|
|
10
10
|
import { forwardRef, useMemo } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
input_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MNGULMJI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
button_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BUH3JK3B.mjs";
|
|
8
8
|
import {
|
|
9
9
|
icon_button_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FMZEP4LD.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/fileUpload/fileUpload.tsx
|
|
13
13
|
import { useRef, useState, useEffect } from "react";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
avatar_default
|
|
4
|
+
} from "./chunk-4IKNOB5Y.mjs";
|
|
2
5
|
import {
|
|
3
6
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
8
|
+
import {
|
|
9
|
+
tv
|
|
10
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
5
11
|
import {
|
|
6
12
|
mapPropsVariants
|
|
7
13
|
} from "./chunk-E3G5QXSH.mjs";
|
|
8
|
-
import {
|
|
9
|
-
avatar_default
|
|
10
|
-
} from "./chunk-MIQMNEXX.mjs";
|
|
11
|
-
import {
|
|
12
|
-
tv
|
|
13
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/list/listItem.tsx
|
|
16
16
|
import { forwardRef, useMemo } from "react";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
tv
|
|
7
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
8
8
|
import {
|
|
9
9
|
clsx
|
|
10
10
|
} from "./chunk-27Y6K5NK.mjs";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/input/input.tsx
|
|
16
16
|
import {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
backdrop_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FZJ5PLRU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
button_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BUH3JK3B.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
11
|
+
import {
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
11
14
|
import {
|
|
12
15
|
mapPropsVariants
|
|
13
16
|
} from "./chunk-E3G5QXSH.mjs";
|
|
14
|
-
import {
|
|
15
|
-
tv
|
|
16
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
17
17
|
|
|
18
18
|
// src/components/modal/modal.tsx
|
|
19
19
|
import { forwardRef, useMemo, useEffect } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UTWY7OBW.mjs";
|
|
5
|
+
import {
|
|
6
|
+
tv
|
|
7
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
5
8
|
import {
|
|
6
9
|
mapPropsVariants
|
|
7
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
8
|
-
import {
|
|
9
|
-
tv
|
|
10
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/chip/chip.tsx
|
|
13
13
|
import { forwardRef, useMemo } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
2
5
|
import {
|
|
3
6
|
mapPropsVariants
|
|
4
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/charts/circularProgress.tsx
|
|
10
10
|
import { RadialBarChart, RadialBar, PolarAngleAxis } from "recharts";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_body_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-63JDURFU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
table_head_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TKB2JL2E.mjs";
|
|
8
8
|
import {
|
|
9
9
|
scrollArea_default
|
|
10
10
|
} from "./chunk-M37VBNB3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
pagination_default
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
mapPropsVariants
|
|
16
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
13
|
+
} from "./chunk-HLLRDA4A.mjs";
|
|
17
14
|
import {
|
|
18
15
|
clsx
|
|
19
16
|
} from "./chunk-27Y6K5NK.mjs";
|
|
17
|
+
import {
|
|
18
|
+
mapPropsVariants
|
|
19
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
20
20
|
|
|
21
21
|
// src/components/table/table.tsx
|
|
22
22
|
import {
|
|
@@ -24,7 +24,6 @@ import {
|
|
|
24
24
|
useEffect,
|
|
25
25
|
useImperativeHandle,
|
|
26
26
|
useMemo,
|
|
27
|
-
useRef,
|
|
28
27
|
useState
|
|
29
28
|
} from "react";
|
|
30
29
|
import { tv } from "tailwind-variants";
|
|
@@ -35,7 +34,6 @@ var Table = forwardRef((originalProps, ref) => {
|
|
|
35
34
|
rows,
|
|
36
35
|
columns,
|
|
37
36
|
rowCheckbox = false,
|
|
38
|
-
// onRowClick,
|
|
39
37
|
totalData = 0,
|
|
40
38
|
pagination,
|
|
41
39
|
onPageChange,
|
|
@@ -50,37 +48,34 @@ var Table = forwardRef((originalProps, ref) => {
|
|
|
50
48
|
const { page = 1, perPage = 15 } = pagination || {};
|
|
51
49
|
const showPagination = pagination && totalData > 0 && !isLoading;
|
|
52
50
|
const [checkedRows, setCheckedRows] = useState(/* @__PURE__ */ new Set());
|
|
53
|
-
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
onCheckedRowsChange == null ? void 0 : onCheckedRowsChange(getCheckedRowData(checkedRows));
|
|
53
|
+
}, [checkedRows]);
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
setCheckedRows(/* @__PURE__ */ new Set());
|
|
56
|
+
}, [rows]);
|
|
54
57
|
useImperativeHandle(
|
|
55
58
|
ref,
|
|
56
59
|
() => ({
|
|
57
60
|
checkedRows,
|
|
58
|
-
setCheckedRows
|
|
59
|
-
setCheckedRows(rowsSet);
|
|
60
|
-
onCheckedRowsChange == null ? void 0 : onCheckedRowsChange(getCheckedRowData(rowsSet));
|
|
61
|
-
}
|
|
61
|
+
setCheckedRows
|
|
62
62
|
}),
|
|
63
63
|
[checkedRows]
|
|
64
64
|
);
|
|
65
|
-
useEffect(() => {
|
|
66
|
-
setCheckedRows(/* @__PURE__ */ new Set());
|
|
67
|
-
}, [rows]);
|
|
68
65
|
const handleAllRowCheck = (checked) => {
|
|
69
66
|
const updated = checked ? new Set(rows.map((_, i) => i)) : /* @__PURE__ */ new Set();
|
|
70
67
|
setCheckedRows(updated);
|
|
71
|
-
onCheckedRowsChange == null ? void 0 : onCheckedRowsChange(getCheckedRowData(updated));
|
|
72
68
|
};
|
|
73
69
|
const handleRowCheck = (index, checked) => {
|
|
74
70
|
setCheckedRows((prev) => {
|
|
75
71
|
const updated = new Set(prev);
|
|
76
72
|
checked ? updated.add(index) : updated.delete(index);
|
|
77
|
-
onCheckedRowsChange == null ? void 0 : onCheckedRowsChange(getCheckedRowData(updated));
|
|
78
73
|
return updated;
|
|
79
74
|
});
|
|
80
75
|
};
|
|
81
76
|
const getCheckedRowData = (checked) => Array.from(checked).map((index) => rows[index]).filter((row) => row !== void 0);
|
|
82
77
|
const slots = useMemo(() => tableStyle(variantProps), [variantProps]);
|
|
83
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
78
|
+
return /* @__PURE__ */ jsxs("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
84
79
|
/* @__PURE__ */ jsx(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ jsxs("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
85
80
|
/* @__PURE__ */ jsx(
|
|
86
81
|
table_head_default,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
toast_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3YXCBM7H.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/toast/use-toast.tsx
|
|
10
10
|
import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
5
5
|
import {
|
|
6
6
|
clsx
|
|
7
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
mapPropsVariants
|
|
10
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/checkbox/checkbox.tsx
|
|
13
13
|
import { forwardRef, useMemo } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
2
5
|
import {
|
|
3
6
|
mapPropsVariants
|
|
4
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/charts/areaChart.tsx
|
|
10
10
|
import { forwardRef, useMemo, useState, useRef, useEffect, useId } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-XOPCRI7Z.mjs";
|
|
5
5
|
import {
|
|
6
6
|
clsx
|
|
7
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
9
|
+
mapPropsVariants
|
|
10
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/button/text-button.tsx
|
|
13
13
|
import {
|
|
@@ -389,7 +389,15 @@ var boxShadow = {
|
|
|
389
389
|
"border-9": "inner 0 0 0 9px inset",
|
|
390
390
|
"border-10": "inner 0 0 0 10px inset",
|
|
391
391
|
inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
|
|
392
|
-
|
|
392
|
+
"inner-sm": "inset 0 4px 8px 0 rgba(0, 0, 0, 0.2)",
|
|
393
|
+
"inner-md": "inset 0 6px 12px 0 rgba(0, 0, 0, 0.2)",
|
|
394
|
+
"inner-lg": "inset 0 8px 16px 0 rgba(0, 0, 0, 0.2)",
|
|
395
|
+
"inner-xl": "inset 0 10px 20px 0 rgba(0, 0, 0, 0.2)",
|
|
396
|
+
drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)",
|
|
397
|
+
"drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
|
|
398
|
+
"drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
|
|
399
|
+
"drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
|
|
400
|
+
"drop-xl": "0 10px 30px 0 rgba(0, 0, 0, 0.1)"
|
|
393
401
|
};
|
|
394
402
|
|
|
395
403
|
// ../tailwind-config/src/border/radius.ts
|