@deepnoid/ui 0.1.191 → 0.1.192
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 +153 -153
- package/dist/{chunk-DT632UOW.mjs → chunk-HA7PFE74.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/picker/datePicker.mjs +2 -2
- package/dist/components/picker/index.mjs +2 -2
- 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 +18 -18
- package/package.json +1 -1
- package/dist/{chunk-TKQLMBX2.mjs → chunk-2A3APCWC.mjs} +3 -3
- 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 && !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,4 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import "./chunk-3MY6LO7N.mjs";
|
|
3
|
+
import {
|
|
4
|
+
tabs_default
|
|
5
|
+
} from "./chunk-DW3BX4M2.mjs";
|
|
2
6
|
import "./chunk-HIE2YRGA.mjs";
|
|
3
7
|
import {
|
|
4
8
|
tooltip_default
|
|
@@ -9,10 +13,6 @@ import "./chunk-MBLZYQCN.mjs";
|
|
|
9
13
|
import {
|
|
10
14
|
tree_default
|
|
11
15
|
} from "./chunk-FRUOUTAU.mjs";
|
|
12
|
-
import "./chunk-3MY6LO7N.mjs";
|
|
13
|
-
import {
|
|
14
|
-
tabs_default
|
|
15
|
-
} from "./chunk-DW3BX4M2.mjs";
|
|
16
16
|
import "./chunk-RRAZM5D3.mjs";
|
|
17
17
|
import {
|
|
18
18
|
textarea_default
|
|
@@ -21,11 +21,11 @@ import "./chunk-LUWGOKLG.mjs";
|
|
|
21
21
|
import {
|
|
22
22
|
ToastProvider,
|
|
23
23
|
useToast
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-B2TLDEF4.mjs";
|
|
25
|
+
import "./chunk-ZOTHPHXA.mjs";
|
|
25
26
|
import {
|
|
26
27
|
toast_default
|
|
27
28
|
} from "./chunk-EYLKPAI5.mjs";
|
|
28
|
-
import "./chunk-ZOTHPHXA.mjs";
|
|
29
29
|
import "./chunk-LVFI2NOH.mjs";
|
|
30
30
|
import {
|
|
31
31
|
switch_default
|
|
@@ -45,20 +45,10 @@ import "./chunk-OLQOLLKG.mjs";
|
|
|
45
45
|
import {
|
|
46
46
|
starRating_default
|
|
47
47
|
} from "./chunk-VATACEMI.mjs";
|
|
48
|
-
import "./chunk-TPFN22HR.mjs";
|
|
49
|
-
import {
|
|
50
|
-
radio_default
|
|
51
|
-
} from "./chunk-PRNE3U26.mjs";
|
|
52
|
-
import "./chunk-7B7LRG5J.mjs";
|
|
53
|
-
import {
|
|
54
|
-
pagination_default
|
|
55
|
-
} from "./chunk-FCTYG3D3.mjs";
|
|
56
|
-
import "./chunk-F3HENRVM.mjs";
|
|
57
48
|
import "./chunk-4VWG4726.mjs";
|
|
58
49
|
import {
|
|
59
50
|
datePicker_default
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-FWFEKWWD.mjs";
|
|
51
|
+
} from "./chunk-2A3APCWC.mjs";
|
|
62
52
|
import {
|
|
63
53
|
day_default
|
|
64
54
|
} from "./chunk-XZYQFBCT.mjs";
|
|
@@ -69,6 +59,16 @@ import "./chunk-QCEKPS7U.mjs";
|
|
|
69
59
|
import {
|
|
70
60
|
select_default
|
|
71
61
|
} from "./chunk-SJUM4XSW.mjs";
|
|
62
|
+
import "./chunk-FWFEKWWD.mjs";
|
|
63
|
+
import "./chunk-7B7LRG5J.mjs";
|
|
64
|
+
import {
|
|
65
|
+
pagination_default
|
|
66
|
+
} from "./chunk-FCTYG3D3.mjs";
|
|
67
|
+
import "./chunk-F3HENRVM.mjs";
|
|
68
|
+
import "./chunk-TPFN22HR.mjs";
|
|
69
|
+
import {
|
|
70
|
+
radio_default
|
|
71
|
+
} from "./chunk-PRNE3U26.mjs";
|
|
72
72
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
73
73
|
import {
|
|
74
74
|
list_default
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
import "./chunk-RLXOHILK.mjs";
|
|
93
93
|
import {
|
|
94
94
|
fileUpload_default
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-HA7PFE74.mjs";
|
|
96
96
|
import "./chunk-7VOQKIIK.mjs";
|
|
97
97
|
import {
|
|
98
98
|
progress_default
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
day_default
|
|
4
|
+
} from "./chunk-XZYQFBCT.mjs";
|
|
2
5
|
import {
|
|
3
6
|
formatDateToString,
|
|
4
7
|
formatStringToDate
|
|
5
8
|
} from "./chunk-FWFEKWWD.mjs";
|
|
6
|
-
import {
|
|
7
|
-
day_default
|
|
8
|
-
} from "./chunk-XZYQFBCT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
input_default
|
|
11
11
|
} from "./chunk-ONBPPSS2.mjs";
|
|
@@ -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";
|