@deepnoid/ui 0.1.27 → 0.1.29
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 +174 -164
- package/dist/{chunk-UNH3BCGN.mjs → chunk-26MNALVL.mjs} +1 -1
- package/dist/{chunk-3IU2RPSM.mjs → chunk-2SDYFOZL.mjs} +46 -35
- package/dist/{chunk-HWL7TPUN.mjs → chunk-2TKEWFGH.mjs} +1 -1
- package/dist/chunk-3KVZDFMV.mjs +132 -0
- package/dist/{chunk-PMMTMYRI.mjs → chunk-6K3E5BVO.mjs} +7 -7
- package/dist/{chunk-BQUZRVYW.mjs → chunk-7J3KVOTS.mjs} +7 -7
- package/dist/{chunk-OUAKGMDW.mjs → chunk-7W2ZI2DD.mjs} +4 -4
- package/dist/{chunk-XRC5OUYQ.mjs → chunk-A5KQHWS3.mjs} +1 -1
- package/dist/{chunk-YBDA3WQP.mjs → chunk-BB7MFKNQ.mjs} +1 -1
- package/dist/{chunk-SCFTSNCK.mjs → chunk-ECMBAKSJ.mjs} +6 -6
- package/dist/{chunk-GRA2LU42.mjs → chunk-EHRFXDSN.mjs} +6 -5
- package/dist/{chunk-IRAHS4WS.mjs → chunk-III2QUWF.mjs} +2 -2
- package/dist/{chunk-E4UUZOR4.mjs → chunk-KLUC2BV6.mjs} +4 -4
- package/dist/{chunk-C7OF5HJF.mjs → chunk-KXA73VTJ.mjs} +5 -5
- package/dist/{chunk-B3DFSXGC.mjs → chunk-LR3SWRB4.mjs} +6 -6
- package/dist/{chunk-DLQFMOBN.mjs → chunk-QJJKJYNR.mjs} +4 -4
- package/dist/{chunk-XA6PVFTW.mjs → chunk-RCJOJPRS.mjs} +6 -6
- package/dist/chunk-RLXOHILK.mjs +1 -0
- package/dist/{chunk-XQGD4ZIX.mjs → chunk-SP3JVQY3.mjs} +1 -1
- package/dist/{chunk-QY7LYAXT.mjs → chunk-W45H2ZMW.mjs} +5 -5
- package/dist/{chunk-PX4PFLJ3.mjs → chunk-X4F7JYBA.mjs} +18 -33
- package/dist/{chunk-Q72LZAPG.mjs → chunk-X6D7C7QZ.mjs} +4 -4
- package/dist/{chunk-6HX3PPL6.mjs → chunk-Y6XQTWB5.mjs} +4 -4
- package/dist/components/avatar/avatar.js +46 -35
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +46 -35
- 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 +46 -35
- package/dist/components/breadcrumb/breadcrumb.mjs +8 -8
- package/dist/components/breadcrumb/index.js +46 -35
- package/dist/components/breadcrumb/index.mjs +8 -8
- package/dist/components/button/button.js +46 -35
- package/dist/components/button/button.mjs +5 -5
- package/dist/components/button/icon-button.js +46 -35
- package/dist/components/button/icon-button.mjs +5 -5
- package/dist/components/button/index.js +46 -35
- package/dist/components/button/index.mjs +7 -7
- 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.js +46 -35
- package/dist/components/chip/chip.mjs +4 -4
- package/dist/components/chip/index.js +46 -35
- package/dist/components/chip/index.mjs +4 -4
- package/dist/components/dateTimePicker/calendar.js +46 -35
- package/dist/components/dateTimePicker/calendar.mjs +4 -4
- package/dist/components/dateTimePicker/dateTimePicker.js +46 -35
- package/dist/components/dateTimePicker/dateTimePicker.mjs +9 -9
- package/dist/components/dateTimePicker/index.js +46 -35
- package/dist/components/dateTimePicker/index.mjs +9 -9
- package/dist/components/dateTimePicker/timePicker.js +46 -35
- package/dist/components/dateTimePicker/timePicker.mjs +7 -7
- package/dist/components/fileUpload/fileUpload.d.mts +92 -0
- package/dist/components/fileUpload/fileUpload.d.ts +92 -0
- package/dist/components/fileUpload/fileUpload.js +5648 -0
- package/dist/components/fileUpload/fileUpload.mjs +28 -0
- package/dist/components/fileUpload/index.d.mts +5 -0
- package/dist/components/fileUpload/index.d.ts +5 -0
- package/dist/components/fileUpload/index.js +5647 -0
- package/dist/components/fileUpload/index.mjs +25 -0
- package/dist/components/icon/Icon.d.mts +9 -5
- package/dist/components/icon/Icon.d.ts +9 -5
- package/dist/components/icon/Icon.js +46 -35
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +46 -35
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +3 -2
- package/dist/components/icon/template.d.ts +3 -2
- package/dist/components/icon/template.js +46 -35
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +48 -36
- package/dist/components/input/index.mjs +4 -4
- package/dist/components/input/input.js +48 -36
- package/dist/components/input/input.mjs +4 -4
- package/dist/components/list/index.js +46 -35
- package/dist/components/list/index.mjs +8 -8
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +46 -35
- package/dist/components/list/listItem.mjs +5 -5
- package/dist/components/modal/index.js +46 -35
- package/dist/components/modal/index.mjs +9 -9
- package/dist/components/modal/modal.js +46 -35
- package/dist/components/modal/modal.mjs +9 -9
- package/dist/components/pagination/index.js +48 -36
- package/dist/components/pagination/index.mjs +5 -5
- package/dist/components/pagination/pagination.js +48 -36
- package/dist/components/pagination/pagination.mjs +5 -5
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.js +46 -35
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/select.js +46 -35
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/table/index.js +48 -36
- package/dist/components/table/index.mjs +12 -12
- package/dist/components/table/table-body.mjs +3 -3
- package/dist/components/table/table-head.mjs +3 -3
- package/dist/components/table/table.js +48 -36
- package/dist/components/table/table.mjs +9 -9
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.js +46 -35
- package/dist/components/toast/index.mjs +5 -5
- package/dist/components/toast/toast.js +46 -35
- package/dist/components/toast/toast.mjs +4 -4
- package/dist/components/toast/use-toast.js +46 -35
- package/dist/components/toast/use-toast.mjs +5 -5
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.js +60 -64
- package/dist/components/tree/index.mjs +4 -4
- package/dist/components/tree/tree.d.mts +10 -5
- package/dist/components/tree/tree.d.ts +10 -5
- package/dist/components/tree/tree.js +60 -64
- package/dist/components/tree/tree.mjs +4 -4
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +180 -65
- package/dist/index.mjs +54 -49
- package/package.json +1 -1
- package/dist/{chunk-WFMFC7R6.mjs → chunk-2PKM7SLZ.mjs} +3 -3
- package/dist/{chunk-QIRL6HY6.mjs → chunk-33LANVZV.mjs} +3 -3
- package/dist/{chunk-Z2537DF6.mjs → chunk-IL5ENWCR.mjs} +3 -3
- package/dist/{chunk-LL6F3WDX.mjs → chunk-P5QCU457.mjs} +3 -3
- package/dist/{chunk-2YMAKIZ6.mjs → chunk-SSMMWMQC.mjs} +3 -3
- package/dist/{chunk-HIVPDIEP.mjs → chunk-UFVQPPPW.mjs} +3 -3
- package/dist/{chunk-D6QI3DJG.mjs → chunk-YLRYHUTW.mjs} +3 -3
|
@@ -518,22 +518,61 @@ var template = {
|
|
|
518
518
|
}
|
|
519
519
|
);
|
|
520
520
|
},
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
521
|
+
plus: ({ className }) => {
|
|
522
|
+
return /* @__PURE__ */ jsxs(
|
|
523
|
+
"svg",
|
|
524
|
+
{
|
|
525
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
526
|
+
width: "18",
|
|
527
|
+
height: "18",
|
|
528
|
+
viewBox: "0 0 18 18",
|
|
529
|
+
fill: "none",
|
|
530
|
+
className,
|
|
531
|
+
children: [
|
|
532
|
+
/* @__PURE__ */ jsx("path", { d: "M4.5 9H13.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
533
|
+
/* @__PURE__ */ jsx("path", { d: "M9 13.5V4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
);
|
|
537
|
+
},
|
|
538
|
+
minus: ({ className }) => {
|
|
524
539
|
return /* @__PURE__ */ jsx(
|
|
525
540
|
"svg",
|
|
526
541
|
{
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
542
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
543
|
+
width: "18",
|
|
544
|
+
height: "18",
|
|
545
|
+
viewBox: "0 0 18 18",
|
|
530
546
|
fill: "none",
|
|
547
|
+
className,
|
|
548
|
+
children: /* @__PURE__ */ jsx("path", { d: "M4.5 9H13.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
549
|
+
}
|
|
550
|
+
);
|
|
551
|
+
},
|
|
552
|
+
pencil: ({ className }) => {
|
|
553
|
+
return /* @__PURE__ */ jsx(
|
|
554
|
+
"svg",
|
|
555
|
+
{
|
|
531
556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
557
|
+
width: "18",
|
|
558
|
+
height: "18",
|
|
559
|
+
viewBox: "0 0 18 18",
|
|
560
|
+
fill: "none",
|
|
532
561
|
className,
|
|
533
|
-
children: /* @__PURE__ */ jsx(
|
|
562
|
+
children: /* @__PURE__ */ jsx(
|
|
563
|
+
"path",
|
|
564
|
+
{
|
|
565
|
+
d: "M12.6465 3.36525L13.9117 2.09925C14.1755 1.83549 14.5332 1.68732 14.9062 1.68732C15.2793 1.68732 15.637 1.83549 15.9008 2.09925C16.1645 2.36301 16.3127 2.72074 16.3127 3.09375C16.3127 3.46676 16.1645 3.82449 15.9008 4.08825L7.9365 12.0525C7.53999 12.4488 7.05102 12.74 6.51375 12.9L4.5 13.5L5.1 11.4863C5.25996 10.949 5.55123 10.46 5.9475 10.0635L12.6465 3.36525ZM12.6465 3.36525L14.625 5.34375M13.5 10.5V14.0625C13.5 14.5101 13.3222 14.9393 13.0057 15.2557C12.6893 15.5722 12.2601 15.75 11.8125 15.75H3.9375C3.48995 15.75 3.06072 15.5722 2.74426 15.2557C2.42779 14.9393 2.25 14.5101 2.25 14.0625V6.1875C2.25 5.73995 2.42779 5.31073 2.74426 4.99426C3.06072 4.67779 3.48995 4.5 3.9375 4.5H7.5",
|
|
566
|
+
stroke: "currentColor",
|
|
567
|
+
strokeLinecap: "round",
|
|
568
|
+
strokeLinejoin: "round"
|
|
569
|
+
}
|
|
570
|
+
)
|
|
534
571
|
}
|
|
535
572
|
);
|
|
536
573
|
},
|
|
574
|
+
// ----------------------------------- old ---------------------------------
|
|
575
|
+
// ** Status **
|
|
537
576
|
check: ({ className, fill }) => {
|
|
538
577
|
return /* @__PURE__ */ jsx(
|
|
539
578
|
"svg",
|
|
@@ -2180,34 +2219,6 @@ var template = {
|
|
|
2180
2219
|
}
|
|
2181
2220
|
);
|
|
2182
2221
|
},
|
|
2183
|
-
pencil: ({ className, fill }) => {
|
|
2184
|
-
return /* @__PURE__ */ jsx(
|
|
2185
|
-
"svg",
|
|
2186
|
-
{
|
|
2187
|
-
width: "24",
|
|
2188
|
-
height: "24",
|
|
2189
|
-
viewBox: "0 0 24 24",
|
|
2190
|
-
fill: "none",
|
|
2191
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2192
|
-
className,
|
|
2193
|
-
children: fill ? /* @__PURE__ */ jsx(
|
|
2194
|
-
"path",
|
|
2195
|
-
{
|
|
2196
|
-
d: "M21.7313 2.26918C21.239 1.77699 20.5714 1.50049 19.8753 1.50049C19.1791 1.50049 18.5115 1.77699 18.0193 2.26918L16.8623 3.42618L20.5743 7.13818L21.7313 5.98118C22.2234 5.48891 22.4999 4.8213 22.4999 4.12518C22.4999 3.42906 22.2234 2.76145 21.7313 2.26918ZM19.5133 8.19918L15.8013 4.48718L3.65125 16.6372C3.03411 17.254 2.58043 18.015 2.33125 18.8512L1.53125 21.5362C1.49263 21.6657 1.48975 21.8033 1.52292 21.9344C1.55608 22.0655 1.62407 22.1852 1.71967 22.2808C1.81527 22.3764 1.93494 22.4443 2.06601 22.4775C2.19709 22.5107 2.33469 22.5078 2.46425 22.4692L5.14925 21.6692C5.98548 21.42 6.74642 20.9663 7.36325 20.3492L19.5133 8.19918Z",
|
|
2197
|
-
fill: "currentColor"
|
|
2198
|
-
}
|
|
2199
|
-
) : /* @__PURE__ */ jsx(
|
|
2200
|
-
"path",
|
|
2201
|
-
{
|
|
2202
|
-
d: "M16.862 4.487L18.549 2.799C18.9007 2.44733 19.3777 2.24976 19.875 2.24976C20.3723 2.24976 20.8493 2.44733 21.201 2.799C21.5527 3.15068 21.7502 3.62766 21.7502 4.125C21.7502 4.62235 21.5527 5.09933 21.201 5.451L6.832 19.82C6.30332 20.3484 5.65137 20.7367 4.935 20.95L2.25 21.75L3.05 19.065C3.26328 18.3486 3.65163 17.6967 4.18 17.168L16.863 4.487H16.862ZM16.862 4.487L19.5 7.125",
|
|
2203
|
-
stroke: "currentColor",
|
|
2204
|
-
strokeLinecap: "round",
|
|
2205
|
-
strokeLinejoin: "round"
|
|
2206
|
-
}
|
|
2207
|
-
)
|
|
2208
|
-
}
|
|
2209
|
-
);
|
|
2210
|
-
},
|
|
2211
2222
|
"pencil-square": ({ className, fill }) => {
|
|
2212
2223
|
return /* @__PURE__ */ jsx(
|
|
2213
2224
|
"svg",
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
input_default
|
|
4
|
+
} from "./chunk-EHRFXDSN.mjs";
|
|
5
|
+
import {
|
|
6
|
+
button_default
|
|
7
|
+
} from "./chunk-7J3KVOTS.mjs";
|
|
8
|
+
import {
|
|
9
|
+
icon_button_default
|
|
10
|
+
} from "./chunk-6K3E5BVO.mjs";
|
|
11
|
+
|
|
12
|
+
// src/components/fileUpload/fileUpload.tsx
|
|
13
|
+
import { useRef, useState, useEffect } from "react";
|
|
14
|
+
import { tv } from "tailwind-variants";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
function FileUpload({
|
|
17
|
+
buttonText,
|
|
18
|
+
maxSizeMB = 10,
|
|
19
|
+
placeholder,
|
|
20
|
+
accept = [],
|
|
21
|
+
acceptErrorMessage = "The file type is not allowed.",
|
|
22
|
+
sizeErrorMessage = `File is too large.`,
|
|
23
|
+
onFileUpload,
|
|
24
|
+
helperMessage,
|
|
25
|
+
showProgress,
|
|
26
|
+
classNames
|
|
27
|
+
}) {
|
|
28
|
+
const fileInputRef = useRef(null);
|
|
29
|
+
const uploadIntervalRef = useRef(null);
|
|
30
|
+
const [file, setFile] = useState(null);
|
|
31
|
+
const [uploadProgress, setUploadProgress] = useState(0);
|
|
32
|
+
const [errorMessage, setErrorMessage] = useState("");
|
|
33
|
+
const slots = fileUploadStyle();
|
|
34
|
+
const handleButtonClick = () => {
|
|
35
|
+
var _a;
|
|
36
|
+
(_a = fileInputRef.current) == null ? void 0 : _a.click();
|
|
37
|
+
};
|
|
38
|
+
const validateFile = (file2) => {
|
|
39
|
+
if (accept.length && !accept.includes(file2.type)) {
|
|
40
|
+
return acceptErrorMessage;
|
|
41
|
+
}
|
|
42
|
+
const sizeMB = file2.size / 1024 / 1024;
|
|
43
|
+
if (sizeMB > maxSizeMB) {
|
|
44
|
+
return `${sizeErrorMessage} (${maxSizeMB}MB)`;
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
47
|
+
};
|
|
48
|
+
const startUploadSimulation = (file2) => {
|
|
49
|
+
let progress = 0;
|
|
50
|
+
setUploadProgress(0);
|
|
51
|
+
uploadIntervalRef.current = window.setInterval(() => {
|
|
52
|
+
progress += 10;
|
|
53
|
+
setUploadProgress(progress);
|
|
54
|
+
if (progress >= 100) {
|
|
55
|
+
clearInterval(uploadIntervalRef.current);
|
|
56
|
+
onFileUpload == null ? void 0 : onFileUpload(file2);
|
|
57
|
+
}
|
|
58
|
+
}, 100);
|
|
59
|
+
};
|
|
60
|
+
const handleFileChange = (e) => {
|
|
61
|
+
var _a;
|
|
62
|
+
const selectedFile = (_a = e.target.files) == null ? void 0 : _a[0];
|
|
63
|
+
if (!selectedFile) return;
|
|
64
|
+
const error = validateFile(selectedFile);
|
|
65
|
+
if (error) {
|
|
66
|
+
setErrorMessage(error);
|
|
67
|
+
setFile(null);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
setFile(selectedFile);
|
|
71
|
+
setErrorMessage("");
|
|
72
|
+
startUploadSimulation(selectedFile);
|
|
73
|
+
};
|
|
74
|
+
const handleCancelUpload = () => {
|
|
75
|
+
if (uploadIntervalRef.current) {
|
|
76
|
+
clearInterval(uploadIntervalRef.current);
|
|
77
|
+
}
|
|
78
|
+
setFile(null);
|
|
79
|
+
setUploadProgress(0);
|
|
80
|
+
setErrorMessage("");
|
|
81
|
+
};
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
return () => {
|
|
84
|
+
if (uploadIntervalRef.current) {
|
|
85
|
+
clearInterval(uploadIntervalRef.current);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}, []);
|
|
89
|
+
return /* @__PURE__ */ jsxs("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
90
|
+
/* @__PURE__ */ jsxs("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
|
|
91
|
+
/* @__PURE__ */ jsxs("div", { className: slots.inputWrapper(), children: [
|
|
92
|
+
/* @__PURE__ */ jsx(input_default, { name: "file", readOnly: true, variant: "outline", full: true, placeholder, defaultValue: file == null ? void 0 : file.name }),
|
|
93
|
+
file && /* @__PURE__ */ jsx(
|
|
94
|
+
icon_button_default,
|
|
95
|
+
{
|
|
96
|
+
name: "close",
|
|
97
|
+
variant: "ghost",
|
|
98
|
+
color: "neutral",
|
|
99
|
+
onClick: handleCancelUpload,
|
|
100
|
+
classNames: { base: slots.cancelButton() },
|
|
101
|
+
"aria-label": "cancel"
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
] }),
|
|
105
|
+
/* @__PURE__ */ jsx(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, children: buttonText }),
|
|
106
|
+
/* @__PURE__ */ jsx("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
|
|
107
|
+
] }),
|
|
108
|
+
showProgress && file && uploadProgress < 100 && /* @__PURE__ */ jsx("div", { className: slots.progressBarContainer(), children: /* @__PURE__ */ jsx("div", { className: slots.progressBar(), style: { width: `${uploadProgress}%` } }) }),
|
|
109
|
+
!errorMessage && helperMessage && /* @__PURE__ */ jsx("p", { className: slots.helperMessage(), children: helperMessage }),
|
|
110
|
+
errorMessage && /* @__PURE__ */ jsx("p", { className: slots.errorMessage(), children: errorMessage })
|
|
111
|
+
] });
|
|
112
|
+
}
|
|
113
|
+
FileUpload.displayName = "FileUpload";
|
|
114
|
+
var fileUpload_default = FileUpload;
|
|
115
|
+
var fileUploadStyle = tv({
|
|
116
|
+
slots: {
|
|
117
|
+
base: ["flex", "flex-col", "gap-[5px]"],
|
|
118
|
+
container: ["flex", "items-center", "gap-[10px]"],
|
|
119
|
+
inputWrapper: ["relative", "flex-1"],
|
|
120
|
+
cancelButton: ["absolute", "top-1/2", "right-0", "-translate-y-1/2"],
|
|
121
|
+
progressBarContainer: ["w-full", "h-[5px]", "bg-neutral-light", "rounded-full", "overflow-hidden"],
|
|
122
|
+
progressBar: ["h-full", "bg-primary-main", "transition-all"],
|
|
123
|
+
errorMessage: ["text-danger-main", "text-sm"],
|
|
124
|
+
helperMessage: ["text-neutral-main", "text-sm"]
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
FileUpload,
|
|
130
|
+
fileUpload_default,
|
|
131
|
+
fileUploadStyle
|
|
132
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useRipple
|
|
4
|
-
} from "./chunk-6PNKRBUT.mjs";
|
|
5
2
|
import {
|
|
6
3
|
ripple_default
|
|
7
4
|
} from "./chunk-LXHUO6VM.mjs";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
useRipple
|
|
7
|
+
} from "./chunk-6PNKRBUT.mjs";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
Icon_default
|
|
10
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
14
11
|
import {
|
|
15
12
|
mapPropsVariants
|
|
16
13
|
} 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,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
useRipple
|
|
4
|
-
} from "./chunk-6PNKRBUT.mjs";
|
|
5
2
|
import {
|
|
6
3
|
ripple_default
|
|
7
4
|
} from "./chunk-LXHUO6VM.mjs";
|
|
8
5
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
useRipple
|
|
7
|
+
} from "./chunk-6PNKRBUT.mjs";
|
|
11
8
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./chunk-
|
|
9
|
+
Icon_default
|
|
10
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
14
11
|
import {
|
|
15
12
|
mapPropsVariants
|
|
16
13
|
} 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";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
4
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
8
5
|
import {
|
|
9
6
|
clsx
|
|
10
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
11
8
|
import {
|
|
12
9
|
mapPropsVariants
|
|
13
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
+
import {
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/toast/toast.tsx
|
|
16
16
|
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
toast_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7W2ZI2DD.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/toast/use-toast.tsx
|
|
10
10
|
import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
calendar_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X6D7C7QZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
timePicker_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QJJKJYNR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
useDatePicker
|
|
10
10
|
} from "./chunk-FWJ2ZKH6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Icon_default
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
tv
|
|
16
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
13
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
17
14
|
import {
|
|
18
15
|
mapPropsVariants
|
|
19
16
|
} 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";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
4
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
8
5
|
import {
|
|
9
6
|
clsx
|
|
10
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
11
8
|
import {
|
|
12
9
|
mapPropsVariants
|
|
13
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
+
import {
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/input/input.tsx
|
|
16
16
|
import React, { forwardRef, useRef, useCallback, useMemo } from "react";
|
|
@@ -103,9 +103,10 @@ var Input = forwardRef((originalProps, ref) => {
|
|
|
103
103
|
{
|
|
104
104
|
...inputProps,
|
|
105
105
|
ref: ref || inputRef,
|
|
106
|
+
readOnly: props.readOnly,
|
|
106
107
|
className: clsx(
|
|
107
108
|
slots.input({ class: classNames == null ? void 0 : classNames.input }),
|
|
108
|
-
inputProps.readOnly ? "!text-body-foreground placeholder
|
|
109
|
+
inputProps.readOnly ? "!text-body-foreground placeholder:!text-body-foreground" : ""
|
|
109
110
|
),
|
|
110
111
|
size: 0
|
|
111
112
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
4
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
8
5
|
import {
|
|
9
6
|
clsx
|
|
10
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
11
8
|
import {
|
|
12
9
|
mapPropsVariants
|
|
13
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
+
import {
|
|
12
|
+
tv
|
|
13
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/select/select.tsx
|
|
16
16
|
import { forwardRef, useMemo, useState, useRef, useEffect } 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-EHRFXDSN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
tv
|
|
13
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
10
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
14
11
|
import {
|
|
15
12
|
clsx
|
|
16
13
|
} from "./chunk-27Y6K5NK.mjs";
|
|
17
14
|
import {
|
|
18
15
|
mapPropsVariants
|
|
19
16
|
} from "./chunk-E3G5QXSH.mjs";
|
|
17
|
+
import {
|
|
18
|
+
tv
|
|
19
|
+
} from "./chunk-4ZJFD3L3.mjs";
|
|
20
20
|
|
|
21
21
|
// src/components/pagination/pagination.tsx
|
|
22
22
|
import { forwardRef, useMemo, useState } from "react";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
backdrop_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P5QCU457.mjs";
|
|
5
5
|
import {
|
|
6
6
|
button_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7J3KVOTS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
tv
|
|
13
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
10
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
14
11
|
import {
|
|
15
12
|
mapPropsVariants
|
|
16
13
|
} 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,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
list_default
|
|
4
|
-
} from "./chunk-HIVPDIEP.mjs";
|
|
5
2
|
import {
|
|
6
3
|
listItem_default
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-W45H2ZMW.mjs";
|
|
5
|
+
import {
|
|
6
|
+
list_default
|
|
7
|
+
} from "./chunk-UFVQPPPW.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/dateTimePicker/timePicker.tsx
|
|
10
10
|
import { useState, useRef, useEffect } from "react";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
scrollArea_default
|
|
4
|
+
} from "./chunk-M37VBNB3.mjs";
|
|
2
5
|
import {
|
|
3
6
|
table_body_default
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A5KQHWS3.mjs";
|
|
5
8
|
import {
|
|
6
9
|
table_head_default
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
scrollArea_default
|
|
10
|
-
} from "./chunk-M37VBNB3.mjs";
|
|
10
|
+
} from "./chunk-26MNALVL.mjs";
|
|
11
11
|
import {
|
|
12
12
|
pagination_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KXA73VTJ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
clsx
|
|
16
16
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
avatar_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SP3JVQY3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Icon_default
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
tv
|
|
10
|
-
} from "./chunk-4ZJFD3L3.mjs";
|
|
7
|
+
} from "./chunk-2TKEWFGH.mjs";
|
|
11
8
|
import {
|
|
12
9
|
mapPropsVariants
|
|
13
10
|
} from "./chunk-E3G5QXSH.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";
|