@deepnoid/ui 0.1.14 → 0.1.17
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 +139 -129
- package/dist/{chunk-KSZEUKBY.mjs → chunk-2PKM7SLZ.mjs} +3 -3
- package/dist/{chunk-56VCX2QR.mjs → chunk-33LANVZV.mjs} +3 -3
- package/dist/{chunk-2KAR2PTQ.mjs → chunk-36JC3WXM.mjs} +3 -3
- package/dist/{chunk-YQGZRSUQ.mjs → chunk-3MPMVCR7.mjs} +3 -3
- package/dist/{chunk-2ZT6V4QR.mjs → chunk-4ZJFD3L3.mjs} +54 -7
- package/dist/chunk-AL4SMNMR.mjs +40 -0
- package/dist/{chunk-QRAHATAM.mjs → chunk-CU6CIHC2.mjs} +3 -3
- package/dist/chunk-DQRAFUDA.mjs +1 -0
- package/dist/{chunk-NEUCUEIG.mjs → chunk-IB424QKO.mjs} +4 -4
- package/dist/{chunk-U2YKMXVG.mjs → chunk-IL5ENWCR.mjs} +3 -3
- package/dist/{chunk-KFBG45BI.mjs → chunk-KCPPDCLS.mjs} +2 -2
- package/dist/{chunk-56RN6YOP.mjs → chunk-LNNTSCMC.mjs} +3 -3
- package/dist/{chunk-WB24YDE2.mjs → chunk-LPZOH3RP.mjs} +1 -1
- package/dist/chunk-M37VBNB3.mjs +44 -0
- package/dist/{chunk-6G7GOPSB.mjs → chunk-OKLT5ESS.mjs} +5 -5
- package/dist/{chunk-HJZWSGUX.mjs → chunk-P5QCU457.mjs} +3 -3
- package/dist/{chunk-NJ4PBW65.mjs → chunk-P6NVCCBZ.mjs} +1 -1
- package/dist/{chunk-GQS6V47G.mjs → chunk-QEXS35XA.mjs} +1 -1
- package/dist/{chunk-4GLKWK3Z.mjs → chunk-S6DHANZX.mjs} +3 -3
- package/dist/{chunk-ZEZ6ZA3N.mjs → chunk-SSMMWMQC.mjs} +3 -3
- package/dist/{chunk-72JRFZCH.mjs → chunk-TVEEKI4Q.mjs} +8 -5
- package/dist/{chunk-VVOOYDJS.mjs → chunk-UFVQPPPW.mjs} +3 -3
- package/dist/{chunk-7R4QY3TA.mjs → chunk-UYPVP36M.mjs} +1 -1
- package/dist/{chunk-D7WPZ5C6.mjs → chunk-V3DWFAL7.mjs} +1 -1
- package/dist/{chunk-7R4NOC2G.mjs → chunk-VBY63YVZ.mjs} +4 -4
- package/dist/{chunk-57WBWSSL.mjs → chunk-XBIHKPK4.mjs} +4 -4
- package/dist/{chunk-LP724WOP.mjs → chunk-XKEXTBMD.mjs} +3 -3
- package/dist/{chunk-GXWSYM7Z.mjs → chunk-YD7UPDCV.mjs} +4 -4
- package/dist/{chunk-J5WJD6XZ.mjs → chunk-YLRYHUTW.mjs} +3 -3
- package/dist/{chunk-AHTNXGAY.mjs → chunk-ZQFIB7ZW.mjs} +2 -2
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
- package/dist/components/breadcrumb/index.mjs +6 -6
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/icon-button.mjs +2 -2
- package/dist/components/button/index.mjs +5 -5
- package/dist/components/button/text-button.mjs +2 -2
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/dateTimePicker/calendar.mjs +2 -2
- package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
- package/dist/components/dateTimePicker/index.mjs +7 -7
- package/dist/components/dateTimePicker/timePicker.mjs +5 -5
- package/dist/components/input/index.mjs +2 -2
- package/dist/components/input/input.mjs +2 -2
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.mjs +6 -6
- package/dist/components/modal/modal.mjs +6 -6
- package/dist/components/pagination/index.mjs +3 -3
- package/dist/components/pagination/pagination.mjs +3 -3
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/scroll/index.d.mts +3 -0
- package/dist/components/scroll/index.d.ts +3 -0
- package/dist/components/scroll/index.js +108 -0
- package/dist/components/scroll/index.mjs +10 -0
- package/dist/components/scroll/scrollArea.d.mts +15 -0
- package/dist/components/scroll/scrollArea.d.ts +15 -0
- package/dist/components/scroll/scrollArea.js +102 -0
- package/dist/components/scroll/scrollArea.mjs +9 -0
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/option.mjs +2 -2
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/index.js +61 -12
- package/dist/components/table/index.mjs +9 -7
- package/dist/components/table/table-body.mjs +3 -3
- package/dist/components/table/table-head.js +16 -3
- package/dist/components/table/table-head.mjs +3 -3
- package/dist/components/table/table.js +61 -12
- package/dist/components/table/table.mjs +9 -7
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +215 -117
- package/dist/index.mjs +44 -39
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/tailwind.config.ts +1 -4
- package/dist/chunk-OQS4LGZK.mjs +0 -27
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/components/scroll/scrollArea.tsx
|
|
22
|
+
var scrollArea_exports = {};
|
|
23
|
+
__export(scrollArea_exports, {
|
|
24
|
+
default: () => scrollArea_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(scrollArea_exports);
|
|
27
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
28
|
+
|
|
29
|
+
// src/utils/clsx.ts
|
|
30
|
+
function clsx(...args) {
|
|
31
|
+
var i = 0, tmp, x, str = "";
|
|
32
|
+
while (i < args.length) {
|
|
33
|
+
if (tmp = args[i++]) {
|
|
34
|
+
if (x = toVal(tmp)) {
|
|
35
|
+
str && (str += " ");
|
|
36
|
+
str += x;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return str;
|
|
41
|
+
}
|
|
42
|
+
function toVal(mix) {
|
|
43
|
+
var k, y, str = "";
|
|
44
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
45
|
+
str += mix;
|
|
46
|
+
} else if (typeof mix === "object") {
|
|
47
|
+
if (Array.isArray(mix)) {
|
|
48
|
+
var len = mix.length;
|
|
49
|
+
for (k = 0; k < len; k++) {
|
|
50
|
+
if (mix[k]) {
|
|
51
|
+
if (y = toVal(mix[k])) {
|
|
52
|
+
str && (str += " ");
|
|
53
|
+
str += y;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
} else {
|
|
58
|
+
for (y in mix) {
|
|
59
|
+
if (mix[y]) {
|
|
60
|
+
str && (str += " ");
|
|
61
|
+
str += y;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return str;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// src/components/scroll/scrollArea.tsx
|
|
70
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
71
|
+
var ScrollArea = ({ children, className, direction, size }) => {
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
|
|
73
|
+
};
|
|
74
|
+
ScrollArea.displayName = "ScrollArea";
|
|
75
|
+
var scrollArea_default = ScrollArea;
|
|
76
|
+
var scrollAreaStyle = (0, import_tailwind_variants.tv)({
|
|
77
|
+
base: [
|
|
78
|
+
"h-full",
|
|
79
|
+
"x-full",
|
|
80
|
+
"scrollbar-thumb-trans-soft",
|
|
81
|
+
"hover:scrollbar-thumb-neutral-light",
|
|
82
|
+
"scrollbar-track-neutral-soft",
|
|
83
|
+
"scrollbar-button-neutral-main"
|
|
84
|
+
],
|
|
85
|
+
variants: {
|
|
86
|
+
direction: {
|
|
87
|
+
x: ["overflow-x-auto", "overflow-y-hidden"],
|
|
88
|
+
y: ["overflow-y-auto", "overflow-x-hidden"],
|
|
89
|
+
both: ["overflow-auto"]
|
|
90
|
+
},
|
|
91
|
+
size: {
|
|
92
|
+
sm: ["scrollbar-sm"],
|
|
93
|
+
// "scrollbar-thin",
|
|
94
|
+
md: ["scrollbar-md"],
|
|
95
|
+
lg: ["scrollbar-lg"]
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
defaultVariants: {
|
|
99
|
+
direction: "both",
|
|
100
|
+
size: "md"
|
|
101
|
+
}
|
|
102
|
+
});
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import "../../chunk-QCEKPS7U.mjs";
|
|
3
3
|
import {
|
|
4
4
|
select_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-IB424QKO.mjs";
|
|
6
|
+
import "../../chunk-P6NVCCBZ.mjs";
|
|
7
7
|
import "../../chunk-S3QS5B7F.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-DADMVOYI.mjs";
|
|
10
10
|
import "../../chunk-A7OXEUCC.mjs";
|
|
11
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
12
11
|
import "../../chunk-E3G5QXSH.mjs";
|
|
12
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
13
13
|
import "../../chunk-AC6TWLRT.mjs";
|
|
14
14
|
export {
|
|
15
15
|
select_default as Select
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
option_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-P6NVCCBZ.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-DADMVOYI.mjs";
|
|
7
7
|
import "../../chunk-A7OXEUCC.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
9
9
|
import "../../chunk-AC6TWLRT.mjs";
|
|
10
10
|
export {
|
|
11
11
|
option_default as default
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-IB424QKO.mjs";
|
|
5
|
+
import "../../chunk-P6NVCCBZ.mjs";
|
|
6
6
|
import "../../chunk-S3QS5B7F.mjs";
|
|
7
7
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
8
8
|
import "../../chunk-DADMVOYI.mjs";
|
|
9
9
|
import "../../chunk-A7OXEUCC.mjs";
|
|
10
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
11
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
12
12
|
import "../../chunk-AC6TWLRT.mjs";
|
|
13
13
|
export {
|
|
14
14
|
select_default as default
|
|
@@ -108,7 +108,7 @@ module.exports = __toCommonJS(table_exports);
|
|
|
108
108
|
|
|
109
109
|
// src/components/table/table.tsx
|
|
110
110
|
var import_react7 = require("react");
|
|
111
|
-
var
|
|
111
|
+
var import_tailwind_variants6 = require("tailwind-variants");
|
|
112
112
|
|
|
113
113
|
// src/utils/props.ts
|
|
114
114
|
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
@@ -603,9 +603,22 @@ var TableHead = ({ columns, slots, size, selectableRows, isCheckedAll, className
|
|
|
603
603
|
e.preventDefault();
|
|
604
604
|
onCheckAll(!isCheckedAll);
|
|
605
605
|
};
|
|
606
|
-
const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
607
|
-
|
|
608
|
-
|
|
606
|
+
const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
607
|
+
"th",
|
|
608
|
+
{
|
|
609
|
+
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column),
|
|
610
|
+
style: {
|
|
611
|
+
width: column.width ? `${column.width}px` : void 0,
|
|
612
|
+
minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
|
|
613
|
+
maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
|
|
614
|
+
height: column.height ? `${column.height}px` : void 0
|
|
615
|
+
},
|
|
616
|
+
children: column.headerName
|
|
617
|
+
},
|
|
618
|
+
`${column.field}${index}thead`
|
|
619
|
+
));
|
|
620
|
+
const renderSelectAllCheckbox = () => selectableRows && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { className: slots.th({ class: classNames == null ? void 0 : classNames.th }), onClick: handleClickCheckAll, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(checkbox_default, { size, checked: isCheckedAll }) }) });
|
|
621
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
609
622
|
renderColumnHeaders(),
|
|
610
623
|
renderSelectAllCheckbox()
|
|
611
624
|
] }) });
|
|
@@ -5200,8 +5213,44 @@ var paginationStyle = tv(
|
|
|
5200
5213
|
}
|
|
5201
5214
|
);
|
|
5202
5215
|
|
|
5203
|
-
// src/components/
|
|
5216
|
+
// src/components/scroll/scrollArea.tsx
|
|
5217
|
+
var import_tailwind_variants5 = require("tailwind-variants");
|
|
5204
5218
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5219
|
+
var ScrollArea = ({ children, className, direction, size }) => {
|
|
5220
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
|
|
5221
|
+
};
|
|
5222
|
+
ScrollArea.displayName = "ScrollArea";
|
|
5223
|
+
var scrollArea_default = ScrollArea;
|
|
5224
|
+
var scrollAreaStyle = (0, import_tailwind_variants5.tv)({
|
|
5225
|
+
base: [
|
|
5226
|
+
"h-full",
|
|
5227
|
+
"x-full",
|
|
5228
|
+
"scrollbar-thumb-trans-soft",
|
|
5229
|
+
"hover:scrollbar-thumb-neutral-light",
|
|
5230
|
+
"scrollbar-track-neutral-soft",
|
|
5231
|
+
"scrollbar-button-neutral-main"
|
|
5232
|
+
],
|
|
5233
|
+
variants: {
|
|
5234
|
+
direction: {
|
|
5235
|
+
x: ["overflow-x-auto", "overflow-y-hidden"],
|
|
5236
|
+
y: ["overflow-y-auto", "overflow-x-hidden"],
|
|
5237
|
+
both: ["overflow-auto"]
|
|
5238
|
+
},
|
|
5239
|
+
size: {
|
|
5240
|
+
sm: ["scrollbar-sm"],
|
|
5241
|
+
// "scrollbar-thin",
|
|
5242
|
+
md: ["scrollbar-md"],
|
|
5243
|
+
lg: ["scrollbar-lg"]
|
|
5244
|
+
}
|
|
5245
|
+
},
|
|
5246
|
+
defaultVariants: {
|
|
5247
|
+
direction: "both",
|
|
5248
|
+
size: "md"
|
|
5249
|
+
}
|
|
5250
|
+
});
|
|
5251
|
+
|
|
5252
|
+
// src/components/table/table.tsx
|
|
5253
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
5205
5254
|
var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
5206
5255
|
const [props, variantProps] = mapPropsVariants(originalProps, tableStyle.variantKeys);
|
|
5207
5256
|
const {
|
|
@@ -5238,9 +5287,9 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5238
5287
|
setCheckedRows(newChecked);
|
|
5239
5288
|
};
|
|
5240
5289
|
const slots = (0, import_react7.useMemo)(() => tableStyle(variantProps), [variantProps]);
|
|
5241
|
-
return /* @__PURE__ */ (0,
|
|
5242
|
-
/* @__PURE__ */ (0,
|
|
5243
|
-
/* @__PURE__ */ (0,
|
|
5290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: divRef, "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
5291
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(scrollArea_default, { size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
5292
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5244
5293
|
table_head_default,
|
|
5245
5294
|
{
|
|
5246
5295
|
columns,
|
|
@@ -5252,7 +5301,7 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5252
5301
|
slots
|
|
5253
5302
|
}
|
|
5254
5303
|
),
|
|
5255
|
-
/* @__PURE__ */ (0,
|
|
5304
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5256
5305
|
table_body_default,
|
|
5257
5306
|
{
|
|
5258
5307
|
slots,
|
|
@@ -5266,8 +5315,8 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5266
5315
|
classNames
|
|
5267
5316
|
}
|
|
5268
5317
|
)
|
|
5269
|
-
] }),
|
|
5270
|
-
showPagination && /* @__PURE__ */ (0,
|
|
5318
|
+
] }) }),
|
|
5319
|
+
showPagination && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5271
5320
|
pagination_default,
|
|
5272
5321
|
{
|
|
5273
5322
|
color,
|
|
@@ -5281,7 +5330,7 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5281
5330
|
});
|
|
5282
5331
|
Table.displayName = "Table";
|
|
5283
5332
|
var table_default = Table;
|
|
5284
|
-
var tableStyle = (0,
|
|
5333
|
+
var tableStyle = (0, import_tailwind_variants6.tv)({
|
|
5285
5334
|
slots: {
|
|
5286
5335
|
base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]"],
|
|
5287
5336
|
table: ["w-full", "h-auto"],
|
|
@@ -2,22 +2,24 @@
|
|
|
2
2
|
import "../../chunk-2UUH2MBF.mjs";
|
|
3
3
|
import {
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-TVEEKI4Q.mjs";
|
|
6
|
+
import "../../chunk-V3DWFAL7.mjs";
|
|
7
|
+
import "../../chunk-AL4SMNMR.mjs";
|
|
8
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
9
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
8
10
|
import "../../chunk-7B7LRG5J.mjs";
|
|
9
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-VBY63YVZ.mjs";
|
|
10
12
|
import "../../chunk-F3HENRVM.mjs";
|
|
11
13
|
import "../../chunk-2GCSFWHD.mjs";
|
|
12
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-36JC3WXM.mjs";
|
|
13
15
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
14
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-YLRYHUTW.mjs";
|
|
15
17
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
18
|
import "../../chunk-DADMVOYI.mjs";
|
|
17
19
|
import "../../chunk-A7OXEUCC.mjs";
|
|
18
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
19
20
|
import "../../chunk-27Y6K5NK.mjs";
|
|
20
21
|
import "../../chunk-E3G5QXSH.mjs";
|
|
22
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
21
23
|
import "../../chunk-AC6TWLRT.mjs";
|
|
22
24
|
export {
|
|
23
25
|
table_default as Table
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_body_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-V3DWFAL7.mjs";
|
|
5
5
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
6
|
+
import "../../chunk-YLRYHUTW.mjs";
|
|
8
7
|
import "../../chunk-27Y6K5NK.mjs";
|
|
9
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
12
12
|
table_body_default as default
|
|
@@ -599,9 +599,22 @@ var TableHead = ({ columns, slots, size, selectableRows, isCheckedAll, className
|
|
|
599
599
|
e.preventDefault();
|
|
600
600
|
onCheckAll(!isCheckedAll);
|
|
601
601
|
};
|
|
602
|
-
const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
603
|
-
|
|
604
|
-
|
|
602
|
+
const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
603
|
+
"th",
|
|
604
|
+
{
|
|
605
|
+
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column),
|
|
606
|
+
style: {
|
|
607
|
+
width: column.width ? `${column.width}px` : void 0,
|
|
608
|
+
minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
|
|
609
|
+
maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
|
|
610
|
+
height: column.height ? `${column.height}px` : void 0
|
|
611
|
+
},
|
|
612
|
+
children: column.headerName
|
|
613
|
+
},
|
|
614
|
+
`${column.field}${index}thead`
|
|
615
|
+
));
|
|
616
|
+
const renderSelectAllCheckbox = () => selectableRows && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { className: slots.th({ class: classNames == null ? void 0 : classNames.th }), onClick: handleClickCheckAll, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(checkbox_default, { size, checked: isCheckedAll }) }) });
|
|
617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
605
618
|
renderColumnHeaders(),
|
|
606
619
|
renderSelectAllCheckbox()
|
|
607
620
|
] }) });
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_head_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-AL4SMNMR.mjs";
|
|
5
5
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
6
|
+
import "../../chunk-YLRYHUTW.mjs";
|
|
8
7
|
import "../../chunk-27Y6K5NK.mjs";
|
|
9
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
12
12
|
table_head_default as default
|
|
@@ -106,7 +106,7 @@ __export(table_exports, {
|
|
|
106
106
|
});
|
|
107
107
|
module.exports = __toCommonJS(table_exports);
|
|
108
108
|
var import_react7 = require("react");
|
|
109
|
-
var
|
|
109
|
+
var import_tailwind_variants6 = require("tailwind-variants");
|
|
110
110
|
|
|
111
111
|
// src/utils/props.ts
|
|
112
112
|
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
@@ -601,9 +601,22 @@ var TableHead = ({ columns, slots, size, selectableRows, isCheckedAll, className
|
|
|
601
601
|
e.preventDefault();
|
|
602
602
|
onCheckAll(!isCheckedAll);
|
|
603
603
|
};
|
|
604
|
-
const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
605
|
-
|
|
606
|
-
|
|
604
|
+
const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
605
|
+
"th",
|
|
606
|
+
{
|
|
607
|
+
className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column),
|
|
608
|
+
style: {
|
|
609
|
+
width: column.width ? `${column.width}px` : void 0,
|
|
610
|
+
minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
|
|
611
|
+
maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
|
|
612
|
+
height: column.height ? `${column.height}px` : void 0
|
|
613
|
+
},
|
|
614
|
+
children: column.headerName
|
|
615
|
+
},
|
|
616
|
+
`${column.field}${index}thead`
|
|
617
|
+
));
|
|
618
|
+
const renderSelectAllCheckbox = () => selectableRows && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { className: slots.th({ class: classNames == null ? void 0 : classNames.th }), onClick: handleClickCheckAll, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(checkbox_default, { size, checked: isCheckedAll }) }) });
|
|
619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
607
620
|
renderColumnHeaders(),
|
|
608
621
|
renderSelectAllCheckbox()
|
|
609
622
|
] }) });
|
|
@@ -5198,8 +5211,44 @@ var paginationStyle = tv(
|
|
|
5198
5211
|
}
|
|
5199
5212
|
);
|
|
5200
5213
|
|
|
5201
|
-
// src/components/
|
|
5214
|
+
// src/components/scroll/scrollArea.tsx
|
|
5215
|
+
var import_tailwind_variants5 = require("tailwind-variants");
|
|
5202
5216
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5217
|
+
var ScrollArea = ({ children, className, direction, size }) => {
|
|
5218
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
|
|
5219
|
+
};
|
|
5220
|
+
ScrollArea.displayName = "ScrollArea";
|
|
5221
|
+
var scrollArea_default = ScrollArea;
|
|
5222
|
+
var scrollAreaStyle = (0, import_tailwind_variants5.tv)({
|
|
5223
|
+
base: [
|
|
5224
|
+
"h-full",
|
|
5225
|
+
"x-full",
|
|
5226
|
+
"scrollbar-thumb-trans-soft",
|
|
5227
|
+
"hover:scrollbar-thumb-neutral-light",
|
|
5228
|
+
"scrollbar-track-neutral-soft",
|
|
5229
|
+
"scrollbar-button-neutral-main"
|
|
5230
|
+
],
|
|
5231
|
+
variants: {
|
|
5232
|
+
direction: {
|
|
5233
|
+
x: ["overflow-x-auto", "overflow-y-hidden"],
|
|
5234
|
+
y: ["overflow-y-auto", "overflow-x-hidden"],
|
|
5235
|
+
both: ["overflow-auto"]
|
|
5236
|
+
},
|
|
5237
|
+
size: {
|
|
5238
|
+
sm: ["scrollbar-sm"],
|
|
5239
|
+
// "scrollbar-thin",
|
|
5240
|
+
md: ["scrollbar-md"],
|
|
5241
|
+
lg: ["scrollbar-lg"]
|
|
5242
|
+
}
|
|
5243
|
+
},
|
|
5244
|
+
defaultVariants: {
|
|
5245
|
+
direction: "both",
|
|
5246
|
+
size: "md"
|
|
5247
|
+
}
|
|
5248
|
+
});
|
|
5249
|
+
|
|
5250
|
+
// src/components/table/table.tsx
|
|
5251
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
5203
5252
|
var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
5204
5253
|
const [props, variantProps] = mapPropsVariants(originalProps, tableStyle.variantKeys);
|
|
5205
5254
|
const {
|
|
@@ -5236,9 +5285,9 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5236
5285
|
setCheckedRows(newChecked);
|
|
5237
5286
|
};
|
|
5238
5287
|
const slots = (0, import_react7.useMemo)(() => tableStyle(variantProps), [variantProps]);
|
|
5239
|
-
return /* @__PURE__ */ (0,
|
|
5240
|
-
/* @__PURE__ */ (0,
|
|
5241
|
-
/* @__PURE__ */ (0,
|
|
5288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: divRef, "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
5289
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(scrollArea_default, { size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
5290
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5242
5291
|
table_head_default,
|
|
5243
5292
|
{
|
|
5244
5293
|
columns,
|
|
@@ -5250,7 +5299,7 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5250
5299
|
slots
|
|
5251
5300
|
}
|
|
5252
5301
|
),
|
|
5253
|
-
/* @__PURE__ */ (0,
|
|
5302
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5254
5303
|
table_body_default,
|
|
5255
5304
|
{
|
|
5256
5305
|
slots,
|
|
@@ -5264,8 +5313,8 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5264
5313
|
classNames
|
|
5265
5314
|
}
|
|
5266
5315
|
)
|
|
5267
|
-
] }),
|
|
5268
|
-
showPagination && /* @__PURE__ */ (0,
|
|
5316
|
+
] }) }),
|
|
5317
|
+
showPagination && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5269
5318
|
pagination_default,
|
|
5270
5319
|
{
|
|
5271
5320
|
color,
|
|
@@ -5279,7 +5328,7 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5279
5328
|
});
|
|
5280
5329
|
Table.displayName = "Table";
|
|
5281
5330
|
var table_default = Table;
|
|
5282
|
-
var tableStyle = (0,
|
|
5331
|
+
var tableStyle = (0, import_tailwind_variants6.tv)({
|
|
5283
5332
|
slots: {
|
|
5284
5333
|
base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]"],
|
|
5285
5334
|
table: ["w-full", "h-auto"],
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-TVEEKI4Q.mjs";
|
|
5
|
+
import "../../chunk-V3DWFAL7.mjs";
|
|
6
|
+
import "../../chunk-AL4SMNMR.mjs";
|
|
7
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
8
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
7
9
|
import "../../chunk-7B7LRG5J.mjs";
|
|
8
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-VBY63YVZ.mjs";
|
|
9
11
|
import "../../chunk-F3HENRVM.mjs";
|
|
10
12
|
import "../../chunk-2GCSFWHD.mjs";
|
|
11
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-36JC3WXM.mjs";
|
|
12
14
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
13
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-YLRYHUTW.mjs";
|
|
14
16
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
17
|
import "../../chunk-DADMVOYI.mjs";
|
|
16
18
|
import "../../chunk-A7OXEUCC.mjs";
|
|
17
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
18
19
|
import "../../chunk-27Y6K5NK.mjs";
|
|
19
20
|
import "../../chunk-E3G5QXSH.mjs";
|
|
21
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
20
22
|
import "../../chunk-AC6TWLRT.mjs";
|
|
21
23
|
export {
|
|
22
24
|
table_default as default
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-3MY6LO7N.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tabs_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
5
|
+
} from "../../chunk-SSMMWMQC.mjs";
|
|
7
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
tabs_default as Tabs
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
tabs,
|
|
4
4
|
tabs_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
5
|
+
} from "../../chunk-SSMMWMQC.mjs";
|
|
7
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
tabs_default as default,
|
|
@@ -3,16 +3,16 @@ import "../../chunk-LUWGOKLG.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
ToastProvider,
|
|
5
5
|
useToast
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-QEXS35XA.mjs";
|
|
7
7
|
import "../../chunk-ZOTHPHXA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
toast_default
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-LNNTSCMC.mjs";
|
|
11
11
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
12
12
|
import "../../chunk-DADMVOYI.mjs";
|
|
13
13
|
import "../../chunk-A7OXEUCC.mjs";
|
|
14
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
15
14
|
import "../../chunk-E3G5QXSH.mjs";
|
|
15
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
16
16
|
import "../../chunk-AC6TWLRT.mjs";
|
|
17
17
|
export {
|
|
18
18
|
toast_default as Toast,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
toast_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-LNNTSCMC.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-DADMVOYI.mjs";
|
|
7
7
|
import "../../chunk-A7OXEUCC.mjs";
|
|
8
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
9
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
12
12
|
toast_default as default
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ToastProvider,
|
|
4
4
|
useToast
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-QEXS35XA.mjs";
|
|
6
6
|
import "../../chunk-ZOTHPHXA.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-LNNTSCMC.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-DADMVOYI.mjs";
|
|
10
10
|
import "../../chunk-A7OXEUCC.mjs";
|
|
11
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
12
11
|
import "../../chunk-E3G5QXSH.mjs";
|
|
12
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
13
13
|
import "../../chunk-AC6TWLRT.mjs";
|
|
14
14
|
export {
|
|
15
15
|
ToastProvider,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-HIE2YRGA.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tooltip_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-IL5ENWCR.mjs";
|
|
6
6
|
import "../../chunk-ZMOAFSYE.mjs";
|
|
7
7
|
import "../../chunk-WSIADHVC.mjs";
|
|
8
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
9
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
12
12
|
tooltip_default as Tooltip
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tooltip_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-IL5ENWCR.mjs";
|
|
5
5
|
import "../../chunk-ZMOAFSYE.mjs";
|
|
6
6
|
import "../../chunk-WSIADHVC.mjs";
|
|
7
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
8
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
9
9
|
import "../../chunk-AC6TWLRT.mjs";
|
|
10
10
|
export {
|
|
11
11
|
tooltip_default as default
|