@deepnoid/ui 0.1.191 → 0.1.193
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 +169 -169
- package/dist/{chunk-DT632UOW.mjs → chunk-LCIVAAYP.mjs} +14 -38
- package/dist/components/fileUpload/fileUpload.d.mts +2 -1
- package/dist/components/fileUpload/fileUpload.d.ts +2 -1
- package/dist/components/fileUpload/fileUpload.js +43 -429
- package/dist/components/fileUpload/fileUpload.mjs +1 -1
- package/dist/components/fileUpload/index.js +43 -429
- package/dist/components/fileUpload/index.mjs +1 -1
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.mjs +1 -1
- package/dist/components/toast/index.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +2 -2
- package/dist/index.js +14 -35
- package/dist/index.mjs +26 -26
- package/package.json +1 -1
- package/dist/{chunk-ZVV7ISV7.mjs → chunk-B2TLDEF4.mjs} +3 -3
package/dist/index.js
CHANGED
|
@@ -12483,6 +12483,7 @@ var clampPercentage = (value) => {
|
|
|
12483
12483
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
12484
12484
|
function FileUpload({
|
|
12485
12485
|
buttonText,
|
|
12486
|
+
cancelText,
|
|
12486
12487
|
maxSizeMB = 10,
|
|
12487
12488
|
placeholder,
|
|
12488
12489
|
errorMessage,
|
|
@@ -12583,46 +12584,24 @@ function FileUpload({
|
|
|
12583
12584
|
setMessage(errorMessage);
|
|
12584
12585
|
}
|
|
12585
12586
|
}, [errorMessage]);
|
|
12586
|
-
const shouldShowCloseButton = hasUploadedFile;
|
|
12587
12587
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
12588
12588
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
|
|
12589
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.
|
|
12590
|
-
|
|
12591
|
-
input_default,
|
|
12592
|
-
{
|
|
12593
|
-
name,
|
|
12594
|
-
readOnly: true,
|
|
12595
|
-
variant: "outline",
|
|
12596
|
-
full: true,
|
|
12597
|
-
placeholder,
|
|
12598
|
-
value: displayFileName,
|
|
12599
|
-
errorMessage: message && (message == null ? void 0 : message.length) > 0 ? message : void 0
|
|
12600
|
-
}
|
|
12601
|
-
),
|
|
12602
|
-
shouldShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
12603
|
-
icon_button_default,
|
|
12604
|
-
{
|
|
12605
|
-
name: "close",
|
|
12606
|
-
size: "sm",
|
|
12607
|
-
variant: "ghost",
|
|
12608
|
-
color: "neutral",
|
|
12609
|
-
onClick: handleCancelUpload,
|
|
12610
|
-
classNames: { base: slots.cancelButton() },
|
|
12611
|
-
"aria-label": "cancel"
|
|
12612
|
-
}
|
|
12613
|
-
)
|
|
12614
|
-
] }),
|
|
12615
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
12616
|
-
button_default,
|
|
12589
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: slots.inputWrapper(), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
12590
|
+
input_default,
|
|
12617
12591
|
{
|
|
12618
|
-
|
|
12592
|
+
name,
|
|
12593
|
+
readOnly: true,
|
|
12619
12594
|
variant: "outline",
|
|
12620
|
-
|
|
12621
|
-
|
|
12622
|
-
|
|
12623
|
-
|
|
12595
|
+
full: true,
|
|
12596
|
+
placeholder,
|
|
12597
|
+
value: displayFileName,
|
|
12598
|
+
errorMessage: message && (message == null ? void 0 : message.length) > 0 ? message : void 0
|
|
12624
12599
|
}
|
|
12625
|
-
),
|
|
12600
|
+
) }),
|
|
12601
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex gap-[10px]", children: [
|
|
12602
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, isLoading: isUploading, children: buttonText }),
|
|
12603
|
+
cancelText && (hasUploadedFile || (defaultFile == null ? void 0 : defaultFile.name)) && !isUploading && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(button_default, { type: "button", variant: "soft", color: "danger", onClick: handleCancelUpload, children: cancelText })
|
|
12604
|
+
] }),
|
|
12626
12605
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
|
|
12627
12606
|
] }),
|
|
12628
12607
|
showProgress && currentFile && hasUploadedFile && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(progress_default, { value: uploadProgress }),
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import "./chunk-MBLZYQCN.mjs";
|
|
3
|
+
import {
|
|
4
|
+
tree_default
|
|
5
|
+
} from "./chunk-FRUOUTAU.mjs";
|
|
2
6
|
import "./chunk-HIE2YRGA.mjs";
|
|
3
7
|
import {
|
|
4
8
|
tooltip_default
|
|
5
9
|
} from "./chunk-5KC3IFNR.mjs";
|
|
6
10
|
import "./chunk-ZMOAFSYE.mjs";
|
|
7
11
|
import "./chunk-WSIADHVC.mjs";
|
|
8
|
-
import "./chunk-MBLZYQCN.mjs";
|
|
9
|
-
import {
|
|
10
|
-
tree_default
|
|
11
|
-
} from "./chunk-FRUOUTAU.mjs";
|
|
12
|
-
import "./chunk-3MY6LO7N.mjs";
|
|
13
|
-
import {
|
|
14
|
-
tabs_default
|
|
15
|
-
} from "./chunk-DW3BX4M2.mjs";
|
|
16
12
|
import "./chunk-RRAZM5D3.mjs";
|
|
17
13
|
import {
|
|
18
14
|
textarea_default
|
|
@@ -21,15 +17,11 @@ import "./chunk-LUWGOKLG.mjs";
|
|
|
21
17
|
import {
|
|
22
18
|
ToastProvider,
|
|
23
19
|
useToast
|
|
24
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-B2TLDEF4.mjs";
|
|
21
|
+
import "./chunk-ZOTHPHXA.mjs";
|
|
25
22
|
import {
|
|
26
23
|
toast_default
|
|
27
24
|
} from "./chunk-EYLKPAI5.mjs";
|
|
28
|
-
import "./chunk-ZOTHPHXA.mjs";
|
|
29
|
-
import "./chunk-LVFI2NOH.mjs";
|
|
30
|
-
import {
|
|
31
|
-
switch_default
|
|
32
|
-
} from "./chunk-AGE57VDD.mjs";
|
|
33
25
|
import "./chunk-DX3KXNP6.mjs";
|
|
34
26
|
import {
|
|
35
27
|
definition_table_default
|
|
@@ -37,6 +29,10 @@ import {
|
|
|
37
29
|
import {
|
|
38
30
|
table_default
|
|
39
31
|
} from "./chunk-QSJ2MSBC.mjs";
|
|
32
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
33
|
+
import {
|
|
34
|
+
tabs_default
|
|
35
|
+
} from "./chunk-DW3BX4M2.mjs";
|
|
40
36
|
import "./chunk-MZ76AA76.mjs";
|
|
41
37
|
import {
|
|
42
38
|
skeleton_default
|
|
@@ -45,6 +41,10 @@ import "./chunk-OLQOLLKG.mjs";
|
|
|
45
41
|
import {
|
|
46
42
|
starRating_default
|
|
47
43
|
} from "./chunk-VATACEMI.mjs";
|
|
44
|
+
import "./chunk-LVFI2NOH.mjs";
|
|
45
|
+
import {
|
|
46
|
+
switch_default
|
|
47
|
+
} from "./chunk-AGE57VDD.mjs";
|
|
48
48
|
import "./chunk-TPFN22HR.mjs";
|
|
49
49
|
import {
|
|
50
50
|
radio_default
|
|
@@ -76,10 +76,22 @@ import {
|
|
|
76
76
|
import {
|
|
77
77
|
listItem_default
|
|
78
78
|
} from "./chunk-FVN5YYBG.mjs";
|
|
79
|
+
import "./chunk-RLXOHILK.mjs";
|
|
80
|
+
import {
|
|
81
|
+
fileUpload_default
|
|
82
|
+
} from "./chunk-LCIVAAYP.mjs";
|
|
83
|
+
import "./chunk-7VOQKIIK.mjs";
|
|
84
|
+
import {
|
|
85
|
+
progress_default
|
|
86
|
+
} from "./chunk-KH63CD55.mjs";
|
|
79
87
|
import "./chunk-DJOG6Z35.mjs";
|
|
80
88
|
import {
|
|
81
89
|
modal_default
|
|
82
90
|
} from "./chunk-H5STWOFE.mjs";
|
|
91
|
+
import "./chunk-2GCSFWHD.mjs";
|
|
92
|
+
import {
|
|
93
|
+
input_default
|
|
94
|
+
} from "./chunk-ONBPPSS2.mjs";
|
|
83
95
|
import "./chunk-QZ3LVYJW.mjs";
|
|
84
96
|
import "./chunk-MGEWSREV.mjs";
|
|
85
97
|
import {
|
|
@@ -89,18 +101,6 @@ import "./chunk-32GA3YW4.mjs";
|
|
|
89
101
|
import {
|
|
90
102
|
drawer_default
|
|
91
103
|
} from "./chunk-45Y7ANPK.mjs";
|
|
92
|
-
import "./chunk-RLXOHILK.mjs";
|
|
93
|
-
import {
|
|
94
|
-
fileUpload_default
|
|
95
|
-
} from "./chunk-DT632UOW.mjs";
|
|
96
|
-
import "./chunk-7VOQKIIK.mjs";
|
|
97
|
-
import {
|
|
98
|
-
progress_default
|
|
99
|
-
} from "./chunk-KH63CD55.mjs";
|
|
100
|
-
import "./chunk-2GCSFWHD.mjs";
|
|
101
|
-
import {
|
|
102
|
-
input_default
|
|
103
|
-
} from "./chunk-ONBPPSS2.mjs";
|
|
104
104
|
import "./chunk-3OCNT22V.mjs";
|
|
105
105
|
import {
|
|
106
106
|
areaChart_default
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
toast_default
|
|
4
|
-
} from "./chunk-EYLKPAI5.mjs";
|
|
5
2
|
import {
|
|
6
3
|
getToastPosition
|
|
7
4
|
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
|
+
import {
|
|
6
|
+
toast_default
|
|
7
|
+
} from "./chunk-EYLKPAI5.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/toast/use-toast.tsx
|
|
10
10
|
import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
|