@deepnoid/ui 0.1.13 → 0.1.16
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 +157 -147
- package/dist/{chunk-TTY3EEXX.mjs → chunk-2PKM7SLZ.mjs} +4 -4
- 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-ZMJYDLTS.mjs → chunk-CU6CIHC2.mjs} +5 -5
- package/dist/chunk-DQRAFUDA.mjs +1 -0
- package/dist/{chunk-O5UA4WDU.mjs → chunk-EDRRWKRE.mjs} +10 -7
- package/dist/{chunk-OQS4LGZK.mjs → chunk-H4UNPIQJ.mjs} +1 -1
- package/dist/{chunk-NEUCUEIG.mjs → chunk-IB424QKO.mjs} +4 -4
- package/dist/{chunk-U2YKMXVG.mjs → chunk-IL5ENWCR.mjs} +3 -3
- package/dist/{chunk-T5LK5CJS.mjs → chunk-KCPPDCLS.mjs} +4 -5
- 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-VVOOYDJS.mjs → chunk-UFVQPPPW.mjs} +3 -3
- package/dist/{chunk-7R4QY3TA.mjs → chunk-UYPVP36M.mjs} +1 -1
- package/dist/{chunk-M2IRRTFM.mjs → chunk-V3DWFAL7.mjs} +18 -15
- 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.js +3 -4
- package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
- package/dist/components/breadcrumb/index.js +3 -4
- 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.d.mts +1 -1
- package/dist/components/button/icon-button.d.ts +1 -1
- package/dist/components/button/icon-button.js +2 -2
- package/dist/components/button/icon-button.mjs +2 -2
- package/dist/components/button/index.js +3 -3
- package/dist/components/button/index.mjs +5 -5
- package/dist/components/button/text-button.js +1 -1
- 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 +63 -24
- package/dist/components/table/index.mjs +9 -7
- package/dist/components/table/table-body.js +17 -14
- package/dist/components/table/table-body.mjs +3 -3
- package/dist/components/table/table-head.mjs +3 -3
- package/dist/components/table/table.js +63 -24
- 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 +222 -135
- package/dist/index.mjs +47 -42
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/tailwind.config.ts +1 -4
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import "../../chunk-TPFN22HR.mjs";
|
|
3
3
|
import {
|
|
4
4
|
radio_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
5
|
+
} from "../../chunk-33LANVZV.mjs";
|
|
7
6
|
import "../../chunk-27Y6K5NK.mjs";
|
|
8
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
9
9
|
import "../../chunk-AC6TWLRT.mjs";
|
|
10
10
|
export {
|
|
11
11
|
radio_default as Radio
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
radio_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-2ZT6V4QR.mjs";
|
|
4
|
+
} from "../../chunk-33LANVZV.mjs";
|
|
6
5
|
import "../../chunk-27Y6K5NK.mjs";
|
|
7
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
radio_default as default
|
|
@@ -0,0 +1,108 @@
|
|
|
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/index.ts
|
|
22
|
+
var scroll_exports = {};
|
|
23
|
+
__export(scroll_exports, {
|
|
24
|
+
ScrollArea: () => scrollArea_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(scroll_exports);
|
|
27
|
+
|
|
28
|
+
// src/components/scroll/scrollArea.tsx
|
|
29
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
30
|
+
|
|
31
|
+
// src/utils/clsx.ts
|
|
32
|
+
function clsx(...args) {
|
|
33
|
+
var i = 0, tmp, x, str = "";
|
|
34
|
+
while (i < args.length) {
|
|
35
|
+
if (tmp = args[i++]) {
|
|
36
|
+
if (x = toVal(tmp)) {
|
|
37
|
+
str && (str += " ");
|
|
38
|
+
str += x;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return str;
|
|
43
|
+
}
|
|
44
|
+
function toVal(mix) {
|
|
45
|
+
var k, y, str = "";
|
|
46
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
47
|
+
str += mix;
|
|
48
|
+
} else if (typeof mix === "object") {
|
|
49
|
+
if (Array.isArray(mix)) {
|
|
50
|
+
var len = mix.length;
|
|
51
|
+
for (k = 0; k < len; k++) {
|
|
52
|
+
if (mix[k]) {
|
|
53
|
+
if (y = toVal(mix[k])) {
|
|
54
|
+
str && (str += " ");
|
|
55
|
+
str += y;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
} else {
|
|
60
|
+
for (y in mix) {
|
|
61
|
+
if (mix[y]) {
|
|
62
|
+
str && (str += " ");
|
|
63
|
+
str += y;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return str;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// src/components/scroll/scrollArea.tsx
|
|
72
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
73
|
+
var ScrollArea = ({ children, className, direction, size }) => {
|
|
74
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
|
|
75
|
+
};
|
|
76
|
+
ScrollArea.displayName = "ScrollArea";
|
|
77
|
+
var scrollArea_default = ScrollArea;
|
|
78
|
+
var scrollAreaStyle = (0, import_tailwind_variants.tv)({
|
|
79
|
+
base: [
|
|
80
|
+
"h-full",
|
|
81
|
+
"x-full",
|
|
82
|
+
"scrollbar-thumb-trans-soft",
|
|
83
|
+
"hover:scrollbar-thumb-neutral-light",
|
|
84
|
+
"scrollbar-track-neutral-soft",
|
|
85
|
+
"scrollbar-button-neutral-main"
|
|
86
|
+
],
|
|
87
|
+
variants: {
|
|
88
|
+
direction: {
|
|
89
|
+
x: ["overflow-x-auto", "overflow-y-hidden"],
|
|
90
|
+
y: ["overflow-y-auto", "overflow-x-hidden"],
|
|
91
|
+
both: ["overflow-auto"]
|
|
92
|
+
},
|
|
93
|
+
size: {
|
|
94
|
+
sm: ["scrollbar-sm"],
|
|
95
|
+
// "scrollbar-thin",
|
|
96
|
+
md: ["scrollbar-md"],
|
|
97
|
+
lg: ["scrollbar-lg"]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
defaultVariants: {
|
|
101
|
+
direction: "both",
|
|
102
|
+
size: "md"
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
106
|
+
0 && (module.exports = {
|
|
107
|
+
ScrollArea
|
|
108
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ScrollAreaProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
direction?: "x" | "y" | "both";
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
};
|
|
10
|
+
declare const ScrollArea: {
|
|
11
|
+
({ children, className, direction, size }: ScrollAreaProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { ScrollArea as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ScrollAreaProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
direction?: "x" | "y" | "both";
|
|
8
|
+
size?: "sm" | "md" | "lg";
|
|
9
|
+
};
|
|
10
|
+
declare const ScrollArea: {
|
|
11
|
+
({ children, className, direction, size }: ScrollAreaProps): react_jsx_runtime.JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { ScrollArea as default };
|
|
@@ -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) => {
|
|
@@ -663,20 +663,23 @@ var TableBody = ({
|
|
|
663
663
|
);
|
|
664
664
|
const hasRows = rows.length > 0;
|
|
665
665
|
const colSpan = (columns.length || 1) + (selectableRows ? 1 : 0);
|
|
666
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
666
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tbody", { className: slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), children: [
|
|
667
|
+
hasRows && rows.map((row, rowIndex) => {
|
|
668
|
+
const isRowChecked = checkedRows.has(rowIndex);
|
|
669
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "aria-checked": isRowChecked, children: [
|
|
670
|
+
columns.map((column) => /* @__PURE__ */ (0, import_react3.createElement)("td", { ...getCellProps(column, row), key: column.field })),
|
|
671
|
+
selectableRows && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { className: slots.td({ class: classNames == null ? void 0 : classNames.td }), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
672
|
+
checkbox_default,
|
|
673
|
+
{
|
|
674
|
+
size,
|
|
675
|
+
checked: isRowChecked,
|
|
676
|
+
onChange: (e) => onCheckRow(rowIndex, e.target.checked)
|
|
677
|
+
}
|
|
678
|
+
) }) })
|
|
679
|
+
] }, rowIndex);
|
|
680
|
+
}),
|
|
681
|
+
!hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { colSpan, className: slots.td({ class: classNames == null ? void 0 : classNames.td }), children: emptyContent }) })
|
|
682
|
+
] });
|
|
680
683
|
};
|
|
681
684
|
var table_body_default = TableBody;
|
|
682
685
|
|
|
@@ -5197,8 +5200,44 @@ var paginationStyle = tv(
|
|
|
5197
5200
|
}
|
|
5198
5201
|
);
|
|
5199
5202
|
|
|
5200
|
-
// src/components/
|
|
5203
|
+
// src/components/scroll/scrollArea.tsx
|
|
5204
|
+
var import_tailwind_variants5 = require("tailwind-variants");
|
|
5201
5205
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
5206
|
+
var ScrollArea = ({ children, className, direction, size }) => {
|
|
5207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
|
|
5208
|
+
};
|
|
5209
|
+
ScrollArea.displayName = "ScrollArea";
|
|
5210
|
+
var scrollArea_default = ScrollArea;
|
|
5211
|
+
var scrollAreaStyle = (0, import_tailwind_variants5.tv)({
|
|
5212
|
+
base: [
|
|
5213
|
+
"h-full",
|
|
5214
|
+
"x-full",
|
|
5215
|
+
"scrollbar-thumb-trans-soft",
|
|
5216
|
+
"hover:scrollbar-thumb-neutral-light",
|
|
5217
|
+
"scrollbar-track-neutral-soft",
|
|
5218
|
+
"scrollbar-button-neutral-main"
|
|
5219
|
+
],
|
|
5220
|
+
variants: {
|
|
5221
|
+
direction: {
|
|
5222
|
+
x: ["overflow-x-auto", "overflow-y-hidden"],
|
|
5223
|
+
y: ["overflow-y-auto", "overflow-x-hidden"],
|
|
5224
|
+
both: ["overflow-auto"]
|
|
5225
|
+
},
|
|
5226
|
+
size: {
|
|
5227
|
+
sm: ["scrollbar-sm"],
|
|
5228
|
+
// "scrollbar-thin",
|
|
5229
|
+
md: ["scrollbar-md"],
|
|
5230
|
+
lg: ["scrollbar-lg"]
|
|
5231
|
+
}
|
|
5232
|
+
},
|
|
5233
|
+
defaultVariants: {
|
|
5234
|
+
direction: "both",
|
|
5235
|
+
size: "md"
|
|
5236
|
+
}
|
|
5237
|
+
});
|
|
5238
|
+
|
|
5239
|
+
// src/components/table/table.tsx
|
|
5240
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
5202
5241
|
var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
5203
5242
|
const [props, variantProps] = mapPropsVariants(originalProps, tableStyle.variantKeys);
|
|
5204
5243
|
const {
|
|
@@ -5235,9 +5274,9 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5235
5274
|
setCheckedRows(newChecked);
|
|
5236
5275
|
};
|
|
5237
5276
|
const slots = (0, import_react7.useMemo)(() => tableStyle(variantProps), [variantProps]);
|
|
5238
|
-
return /* @__PURE__ */ (0,
|
|
5239
|
-
/* @__PURE__ */ (0,
|
|
5240
|
-
/* @__PURE__ */ (0,
|
|
5277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: divRef, "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
5278
|
+
/* @__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: [
|
|
5279
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5241
5280
|
table_head_default,
|
|
5242
5281
|
{
|
|
5243
5282
|
columns,
|
|
@@ -5249,7 +5288,7 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5249
5288
|
slots
|
|
5250
5289
|
}
|
|
5251
5290
|
),
|
|
5252
|
-
/* @__PURE__ */ (0,
|
|
5291
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5253
5292
|
table_body_default,
|
|
5254
5293
|
{
|
|
5255
5294
|
slots,
|
|
@@ -5263,8 +5302,8 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5263
5302
|
classNames
|
|
5264
5303
|
}
|
|
5265
5304
|
)
|
|
5266
|
-
] }),
|
|
5267
|
-
showPagination && /* @__PURE__ */ (0,
|
|
5305
|
+
] }) }),
|
|
5306
|
+
showPagination && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5268
5307
|
pagination_default,
|
|
5269
5308
|
{
|
|
5270
5309
|
color,
|
|
@@ -5278,9 +5317,9 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5278
5317
|
});
|
|
5279
5318
|
Table.displayName = "Table";
|
|
5280
5319
|
var table_default = Table;
|
|
5281
|
-
var tableStyle = (0,
|
|
5320
|
+
var tableStyle = (0, import_tailwind_variants6.tv)({
|
|
5282
5321
|
slots: {
|
|
5283
|
-
base: ["flex", "flex-col", "relative", "select-none"],
|
|
5322
|
+
base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]"],
|
|
5284
5323
|
table: ["w-full", "h-auto"],
|
|
5285
5324
|
thead: ["w-full"],
|
|
5286
5325
|
tbody: ["w-full"],
|
|
@@ -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-EDRRWKRE.mjs";
|
|
6
|
+
import "../../chunk-V3DWFAL7.mjs";
|
|
7
|
+
import "../../chunk-H4UNPIQJ.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
|
|
@@ -643,19 +643,22 @@ var TableBody = ({
|
|
|
643
643
|
);
|
|
644
644
|
const hasRows = rows.length > 0;
|
|
645
645
|
const colSpan = (columns.length || 1) + (selectableRows ? 1 : 0);
|
|
646
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tbody", { className: slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), children: [
|
|
647
|
+
hasRows && rows.map((row, rowIndex) => {
|
|
648
|
+
const isRowChecked = checkedRows.has(rowIndex);
|
|
649
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "aria-checked": isRowChecked, children: [
|
|
650
|
+
columns.map((column) => /* @__PURE__ */ (0, import_react3.createElement)("td", { ...getCellProps(column, row), key: column.field })),
|
|
651
|
+
selectableRows && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { className: slots.td({ class: classNames == null ? void 0 : classNames.td }), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
652
|
+
checkbox_default,
|
|
653
|
+
{
|
|
654
|
+
size,
|
|
655
|
+
checked: isRowChecked,
|
|
656
|
+
onChange: (e) => onCheckRow(rowIndex, e.target.checked)
|
|
657
|
+
}
|
|
658
|
+
) }) })
|
|
659
|
+
] }, rowIndex);
|
|
660
|
+
}),
|
|
661
|
+
!hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { colSpan, className: slots.td({ class: classNames == null ? void 0 : classNames.td }), children: emptyContent }) })
|
|
662
|
+
] });
|
|
660
663
|
};
|
|
661
664
|
var table_body_default = TableBody;
|
|
@@ -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
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_head_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-H4UNPIQJ.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
|