@deepnoid/ui 0.1.221 → 0.1.223
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 +225 -225
- package/dist/{chunk-3HANNN76.mjs → chunk-2URJGQFC.mjs} +2 -2
- package/dist/{chunk-6CTMLHLK.mjs → chunk-4IEHQI5B.mjs} +1 -1
- package/dist/{chunk-74MC7B4K.mjs → chunk-4S4AAZFC.mjs} +2 -2
- package/dist/{chunk-AXWICOKO.mjs → chunk-6AID2NLT.mjs} +1 -1
- package/dist/{chunk-4MTXDUV3.mjs → chunk-BBRO35V3.mjs} +4 -4
- package/dist/{chunk-JI3WAAZV.mjs → chunk-EJ4GDC6K.mjs} +1 -1
- package/dist/{chunk-I4LNWIIV.mjs → chunk-EVJ46M3U.mjs} +2 -2
- package/dist/{chunk-G4G6YXZH.mjs → chunk-GDHLN463.mjs} +1 -1
- package/dist/{chunk-QAXRJ3EH.mjs → chunk-HFOHFBZH.mjs} +1 -1
- package/dist/{chunk-APQE3TRN.mjs → chunk-KWHCUAFU.mjs} +2 -2
- package/dist/{chunk-US5NY7UP.mjs → chunk-MTT24BLX.mjs} +2 -2
- package/dist/{chunk-QECR6VMW.mjs → chunk-OC5C42CB.mjs} +2 -2
- package/dist/{chunk-AZYWRRZY.mjs → chunk-OXJX5G3O.mjs} +1 -1
- package/dist/{chunk-JYW3GEH6.mjs → chunk-P5L4YI54.mjs} +33 -0
- package/dist/{chunk-54FDYAUN.mjs → chunk-Q3KBMVJS.mjs} +1 -1
- package/dist/{chunk-Q5MFMWG7.mjs → chunk-R2XKPG4K.mjs} +1 -1
- package/dist/{chunk-QPEZ7SFU.mjs → chunk-RH3AHG52.mjs} +1 -1
- package/dist/chunk-RY5VVXQ4.mjs +163 -0
- package/dist/{chunk-PLR4DZBN.mjs → chunk-SKX5QPUD.mjs} +4 -4
- package/dist/{chunk-SNXIHIQG.mjs → chunk-SX3JDFTH.mjs} +10 -10
- package/dist/{chunk-VSVBYQF4.mjs → chunk-TE5JU3WA.mjs} +2 -2
- package/dist/{chunk-MYUAX3Z5.mjs → chunk-V2YH54JQ.mjs} +1 -1
- package/dist/components/avatar/avatar.js +33 -0
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +33 -0
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +33 -0
- package/dist/components/breadcrumb/breadcrumb.mjs +7 -7
- package/dist/components/breadcrumb/index.js +33 -0
- package/dist/components/breadcrumb/index.mjs +7 -7
- package/dist/components/button/button.js +33 -0
- package/dist/components/button/button.mjs +4 -4
- package/dist/components/button/icon-button.js +33 -0
- package/dist/components/button/icon-button.mjs +4 -4
- package/dist/components/button/index.js +33 -0
- package/dist/components/button/index.mjs +8 -8
- package/dist/components/charts/index.mjs +3 -3
- package/dist/components/chip/chip.js +33 -0
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +33 -0
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +33 -0
- package/dist/components/fileUpload/fileUpload.mjs +8 -8
- package/dist/components/fileUpload/index.js +33 -0
- package/dist/components/fileUpload/index.mjs +8 -8
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +33 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +33 -0
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -0
- package/dist/components/icon/template.d.ts +1 -0
- package/dist/components/icon/template.js +33 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +33 -0
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +33 -0
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +33 -0
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.js +33 -0
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/GlobalModalProvider.js +33 -0
- package/dist/components/modal/GlobalModalProvider.mjs +8 -8
- package/dist/components/modal/index.js +33 -0
- package/dist/components/modal/index.mjs +9 -9
- package/dist/components/modal/modal.js +33 -0
- package/dist/components/modal/modal.mjs +7 -7
- package/dist/components/modal/useGlobalModal.mjs +9 -9
- package/dist/components/pagination/index.js +33 -0
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +33 -0
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/picker/datePicker.js +33 -0
- package/dist/components/picker/datePicker.mjs +9 -9
- package/dist/components/picker/index.js +33 -0
- package/dist/components/picker/index.mjs +10 -10
- package/dist/components/picker/timePicker/Panel.mjs +6 -6
- package/dist/components/picker/timePicker/index.js +33 -0
- package/dist/components/picker/timePicker/index.mjs +8 -8
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.js +33 -0
- package/dist/components/select/index.mjs +7 -7
- package/dist/components/select/select.js +33 -0
- package/dist/components/select/select.mjs +7 -7
- package/dist/components/starRating/index.js +33 -0
- package/dist/components/starRating/index.mjs +3 -3
- package/dist/components/starRating/starRating.js +33 -0
- package/dist/components/starRating/starRating.mjs +3 -3
- package/dist/components/table/index.js +33 -0
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.js +33 -0
- package/dist/components/table/table-body.mjs +6 -6
- package/dist/components/table/table-head.js +33 -0
- package/dist/components/table/table-head.mjs +6 -6
- package/dist/components/table/table.js +33 -0
- package/dist/components/table/table.mjs +6 -6
- package/dist/components/timePicker/calendar.js +33 -0
- package/dist/components/timePicker/calendar.mjs +2 -2
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +137 -12
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.d.mts +1 -0
- package/dist/components/toast/toast.d.ts +1 -0
- package/dist/components/toast/toast.js +34 -1
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.d.mts +17 -3
- package/dist/components/toast/use-toast.d.ts +17 -3
- package/dist/components/toast/use-toast.js +137 -12
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tree/index.js +33 -0
- package/dist/components/tree/index.mjs +3 -3
- package/dist/components/tree/tree.js +33 -0
- package/dist/components/tree/tree.mjs +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +137 -12
- package/dist/index.mjs +64 -64
- package/package.json +2 -1
- package/dist/chunk-5UCNLY2A.mjs +0 -71
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
clsx
|
|
7
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -55,7 +55,7 @@ var Toast = forwardRef((originalProps, ref) => {
|
|
|
55
55
|
style: hasShadow ? { boxShadow: "0px 6px 18px rgba(0, 0, 0, 0.10)" } : {},
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
58
|
-
showIcon && /* @__PURE__ */ jsx(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
|
|
58
|
+
showIcon && (originalProps.isLoading ? /* @__PURE__ */ jsx(Icon_default, { name: "loading", className: "mt-[2px] animate-spin" }) : /* @__PURE__ */ jsx(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" })),
|
|
59
59
|
/* @__PURE__ */ jsx("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
|
|
60
60
|
showCloseButton && /* @__PURE__ */ jsx(Icon_default, { name: "close", className: "cursor-pointer", onClick: onClose })
|
|
61
61
|
] }),
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-3IBJXQTJ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
input_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EJ4GDC6K.mjs";
|
|
11
11
|
import {
|
|
12
12
|
Icon_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
14
14
|
import {
|
|
15
15
|
mapPropsVariants
|
|
16
16
|
} from "./chunk-E3G5QXSH.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
ripple_default
|
|
4
|
-
} from "./chunk-LXHUO6VM.mjs";
|
|
5
2
|
import {
|
|
6
3
|
useRipple
|
|
7
4
|
} from "./chunk-SZL743JC.mjs";
|
|
5
|
+
import {
|
|
6
|
+
ripple_default
|
|
7
|
+
} from "./chunk-LXHUO6VM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
11
11
|
import {
|
|
12
12
|
mapPropsVariants
|
|
13
13
|
} from "./chunk-E3G5QXSH.mjs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-4X35QQTI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
button_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SKX5QPUD.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
11
11
|
import {
|
|
12
12
|
mapPropsVariants
|
|
13
13
|
} from "./chunk-E3G5QXSH.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
icon_button_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BBRO35V3.mjs";
|
|
5
5
|
import {
|
|
6
6
|
Icon_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
clsx
|
|
10
10
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
avatar_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HFOHFBZH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
mapPropsVariants
|
|
10
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-ACZ3DQVT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
input_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EJ4GDC6K.mjs";
|
|
8
8
|
import {
|
|
9
9
|
button_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SKX5QPUD.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/fileUpload/fileUpload.tsx
|
|
13
13
|
import { useRef, useState, useEffect } from "react";
|
|
@@ -1737,6 +1737,39 @@ var template = {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
);
|
|
1739
1739
|
},
|
|
1740
|
+
"new-window": ({ className }) => {
|
|
1741
|
+
return /* @__PURE__ */ jsxs(
|
|
1742
|
+
"svg",
|
|
1743
|
+
{
|
|
1744
|
+
width: "24",
|
|
1745
|
+
height: "24",
|
|
1746
|
+
viewBox: "0 0 24 24",
|
|
1747
|
+
fill: "none",
|
|
1748
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1749
|
+
className,
|
|
1750
|
+
children: [
|
|
1751
|
+
/* @__PURE__ */ jsx(
|
|
1752
|
+
"path",
|
|
1753
|
+
{
|
|
1754
|
+
d: "M18 14V18.75C18 19.3467 17.7629 19.919 17.341 20.341C16.919 20.763 16.3467 21 15.75 21H5.25C4.65326 21 4.08097 20.763 3.65901 20.341C3.23705 19.919 3 19.3467 3 18.75V8.25C3 7.65327 3.23705 7.08097 3.65901 6.65901C4.08097 6.23706 4.65326 6 5.25 6H10",
|
|
1755
|
+
stroke: "currentColor",
|
|
1756
|
+
strokeLinecap: "round",
|
|
1757
|
+
strokeLinejoin: "round"
|
|
1758
|
+
}
|
|
1759
|
+
),
|
|
1760
|
+
/* @__PURE__ */ jsx(
|
|
1761
|
+
"path",
|
|
1762
|
+
{
|
|
1763
|
+
d: "M13.5 4.5H19.5V10.5M19.5 4.5L9.75 14.25",
|
|
1764
|
+
stroke: "currentColor",
|
|
1765
|
+
strokeLinecap: "round",
|
|
1766
|
+
strokeLinejoin: "round"
|
|
1767
|
+
}
|
|
1768
|
+
)
|
|
1769
|
+
]
|
|
1770
|
+
}
|
|
1771
|
+
);
|
|
1772
|
+
},
|
|
1740
1773
|
// ----------------------------------- old ---------------------------------
|
|
1741
1774
|
// ** Status **
|
|
1742
1775
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
getToastPosition
|
|
4
|
+
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
|
+
import {
|
|
6
|
+
toast_default
|
|
7
|
+
} from "./chunk-2URJGQFC.mjs";
|
|
8
|
+
|
|
9
|
+
// src/components/toast/use-toast.tsx
|
|
10
|
+
import { createContext, useContext, useState, useCallback, useEffect, useRef, useMemo } from "react";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
var ToastContext = createContext(null);
|
|
13
|
+
var useToast = () => {
|
|
14
|
+
const context = useContext(ToastContext);
|
|
15
|
+
if (!context) {
|
|
16
|
+
throw new Error("useToast must be used within a ToastProvider");
|
|
17
|
+
}
|
|
18
|
+
return context;
|
|
19
|
+
};
|
|
20
|
+
var ToastProvider = ({
|
|
21
|
+
globalOptions,
|
|
22
|
+
children
|
|
23
|
+
}) => {
|
|
24
|
+
const [toasts, setToasts] = useState([]);
|
|
25
|
+
const [containerStyle, setContainerStyle] = useState({});
|
|
26
|
+
const toastRef = useRef(null);
|
|
27
|
+
const timersRef = useRef(/* @__PURE__ */ new Map());
|
|
28
|
+
const startTimer = useCallback((id, duration) => {
|
|
29
|
+
const existing = timersRef.current.get(id);
|
|
30
|
+
if (existing) clearTimeout(existing);
|
|
31
|
+
if (!isFinite(duration) || duration <= 0) {
|
|
32
|
+
timersRef.current.delete(id);
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
const timer = setTimeout(() => {
|
|
36
|
+
setToasts((prev) => prev.filter((t) => t.id !== id));
|
|
37
|
+
timersRef.current.delete(id);
|
|
38
|
+
}, duration);
|
|
39
|
+
timersRef.current.set(id, timer);
|
|
40
|
+
}, []);
|
|
41
|
+
const clearTimer = useCallback((id) => {
|
|
42
|
+
const timer = timersRef.current.get(id);
|
|
43
|
+
if (timer) {
|
|
44
|
+
clearTimeout(timer);
|
|
45
|
+
timersRef.current.delete(id);
|
|
46
|
+
}
|
|
47
|
+
}, []);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
const timers = timersRef.current;
|
|
50
|
+
return () => {
|
|
51
|
+
timers.forEach((timer) => clearTimeout(timer));
|
|
52
|
+
timers.clear();
|
|
53
|
+
};
|
|
54
|
+
}, []);
|
|
55
|
+
const addToast = useCallback(
|
|
56
|
+
(title, options = {}) => {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
const id = Date.now() + Math.floor(Math.random() * 1e5);
|
|
59
|
+
const duration = options.isLoading ? Infinity : (_b = (_a = options.duration) != null ? _a : globalOptions == null ? void 0 : globalOptions.duration) != null ? _b : 3e3;
|
|
60
|
+
const newToast = {
|
|
61
|
+
...globalOptions,
|
|
62
|
+
...options,
|
|
63
|
+
id,
|
|
64
|
+
title,
|
|
65
|
+
duration
|
|
66
|
+
};
|
|
67
|
+
setToasts((prev) => [...prev, newToast]);
|
|
68
|
+
startTimer(id, duration);
|
|
69
|
+
return id;
|
|
70
|
+
},
|
|
71
|
+
[globalOptions, startTimer]
|
|
72
|
+
);
|
|
73
|
+
const removeToast = useCallback(
|
|
74
|
+
(id) => {
|
|
75
|
+
clearTimer(id);
|
|
76
|
+
setToasts((prevToasts) => prevToasts.filter((toast) => toast.id !== id));
|
|
77
|
+
},
|
|
78
|
+
[clearTimer]
|
|
79
|
+
);
|
|
80
|
+
const updateToast = useCallback(
|
|
81
|
+
(id, options) => {
|
|
82
|
+
setToasts(
|
|
83
|
+
(prev) => prev.map((t) => {
|
|
84
|
+
var _a, _b;
|
|
85
|
+
if (t.id !== id) return t;
|
|
86
|
+
const updated = { ...t, ...options };
|
|
87
|
+
if (t.isLoading && options.isLoading === false) {
|
|
88
|
+
const duration = (_b = (_a = options.duration) != null ? _a : globalOptions == null ? void 0 : globalOptions.duration) != null ? _b : 3e3;
|
|
89
|
+
updated.duration = duration;
|
|
90
|
+
startTimer(id, duration);
|
|
91
|
+
}
|
|
92
|
+
return updated;
|
|
93
|
+
})
|
|
94
|
+
);
|
|
95
|
+
},
|
|
96
|
+
[globalOptions == null ? void 0 : globalOptions.duration, startTimer]
|
|
97
|
+
);
|
|
98
|
+
const dismissToast = useCallback(
|
|
99
|
+
(id) => {
|
|
100
|
+
if (id !== void 0) {
|
|
101
|
+
removeToast(id);
|
|
102
|
+
} else {
|
|
103
|
+
timersRef.current.forEach((timer) => clearTimeout(timer));
|
|
104
|
+
timersRef.current.clear();
|
|
105
|
+
setToasts([]);
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
[removeToast]
|
|
109
|
+
);
|
|
110
|
+
const loadingToast = useCallback(
|
|
111
|
+
(title, options = {}) => {
|
|
112
|
+
return addToast(title, { ...options, isLoading: true });
|
|
113
|
+
},
|
|
114
|
+
[addToast]
|
|
115
|
+
);
|
|
116
|
+
const contextValue = useMemo(() => {
|
|
117
|
+
const fn = (title, options) => {
|
|
118
|
+
return addToast(title, options);
|
|
119
|
+
};
|
|
120
|
+
fn.loading = loadingToast;
|
|
121
|
+
fn.update = updateToast;
|
|
122
|
+
fn.dismiss = dismissToast;
|
|
123
|
+
fn.promise = (promise, messages, options = {}) => {
|
|
124
|
+
const id = loadingToast(messages.loading, options);
|
|
125
|
+
return promise.then(
|
|
126
|
+
(data) => {
|
|
127
|
+
const title = typeof messages.success === "function" ? messages.success(data) : messages.success;
|
|
128
|
+
updateToast(id, { title, color: "success", isLoading: false });
|
|
129
|
+
return data;
|
|
130
|
+
},
|
|
131
|
+
(err) => {
|
|
132
|
+
const title = typeof messages.error === "function" ? messages.error(err) : messages.error;
|
|
133
|
+
updateToast(id, { title, color: "danger", isLoading: false });
|
|
134
|
+
throw err;
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
};
|
|
138
|
+
return fn;
|
|
139
|
+
}, [addToast, loadingToast, updateToast, dismissToast]);
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
var _a;
|
|
142
|
+
const width = (globalOptions == null ? void 0 : globalOptions.width) ? globalOptions.width : typeof ((_a = toastRef.current) == null ? void 0 : _a.getWidth) === "function" ? toastRef.current.getWidth() : 300;
|
|
143
|
+
const offset = 20;
|
|
144
|
+
const placement = (globalOptions == null ? void 0 : globalOptions.placement) || "bottom-right";
|
|
145
|
+
const { top, left, bottom, right } = getToastPosition(placement, width, offset);
|
|
146
|
+
setContainerStyle({
|
|
147
|
+
position: "fixed",
|
|
148
|
+
top: top !== void 0 ? `${top}px` : void 0,
|
|
149
|
+
left: left !== void 0 ? `${left}px` : void 0,
|
|
150
|
+
bottom: bottom !== void 0 ? `${bottom}px` : void 0,
|
|
151
|
+
right: right !== void 0 ? `${right}px` : void 0
|
|
152
|
+
});
|
|
153
|
+
}, [globalOptions == null ? void 0 : globalOptions.placement, globalOptions == null ? void 0 : globalOptions.width]);
|
|
154
|
+
return /* @__PURE__ */ jsxs(ToastContext.Provider, { value: contextValue, children: [
|
|
155
|
+
children,
|
|
156
|
+
/* @__PURE__ */ jsx("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast) => /* @__PURE__ */ jsx(toast_default, { ref: toastRef, onClose: () => removeToast(toast.id), ...toast }, toast.id)) })
|
|
157
|
+
] });
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export {
|
|
161
|
+
useToast,
|
|
162
|
+
ToastProvider
|
|
163
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
ripple_default
|
|
4
|
-
} from "./chunk-LXHUO6VM.mjs";
|
|
5
2
|
import {
|
|
6
3
|
useRipple
|
|
7
4
|
} from "./chunk-SZL743JC.mjs";
|
|
5
|
+
import {
|
|
6
|
+
ripple_default
|
|
7
|
+
} from "./chunk-LXHUO6VM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
11
11
|
import {
|
|
12
12
|
mapPropsVariants
|
|
13
13
|
} from "./chunk-E3G5QXSH.mjs";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
day_default
|
|
4
|
-
} from "./chunk-XZYQFBCT.mjs";
|
|
5
2
|
import {
|
|
6
3
|
formatDateToString,
|
|
7
4
|
formatStringToDate
|
|
8
5
|
} from "./chunk-3IBJXQTJ.mjs";
|
|
6
|
+
import {
|
|
7
|
+
day_default
|
|
8
|
+
} from "./chunk-XZYQFBCT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
input_default
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-EJ4GDC6K.mjs";
|
|
12
|
+
import {
|
|
13
|
+
text_button_default
|
|
14
|
+
} from "./chunk-NDNIAALB.mjs";
|
|
12
15
|
import {
|
|
13
16
|
button_default
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SKX5QPUD.mjs";
|
|
15
18
|
import {
|
|
16
19
|
icon_button_default
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import {
|
|
19
|
-
text_button_default
|
|
20
|
-
} from "./chunk-NDNIAALB.mjs";
|
|
20
|
+
} from "./chunk-BBRO35V3.mjs";
|
|
21
21
|
import {
|
|
22
22
|
Icon_default
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
24
24
|
import {
|
|
25
25
|
mapPropsVariants
|
|
26
26
|
} from "./chunk-E3G5QXSH.mjs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-F3HENRVM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
input_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EJ4GDC6K.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6AID2NLT.mjs";
|
|
11
11
|
import {
|
|
12
12
|
clsx
|
|
13
13
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -1844,6 +1844,39 @@ var template = {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
);
|
|
1846
1846
|
},
|
|
1847
|
+
"new-window": ({ className }) => {
|
|
1848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
1849
|
+
"svg",
|
|
1850
|
+
{
|
|
1851
|
+
width: "24",
|
|
1852
|
+
height: "24",
|
|
1853
|
+
viewBox: "0 0 24 24",
|
|
1854
|
+
fill: "none",
|
|
1855
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1856
|
+
className,
|
|
1857
|
+
children: [
|
|
1858
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1859
|
+
"path",
|
|
1860
|
+
{
|
|
1861
|
+
d: "M18 14V18.75C18 19.3467 17.7629 19.919 17.341 20.341C16.919 20.763 16.3467 21 15.75 21H5.25C4.65326 21 4.08097 20.763 3.65901 20.341C3.23705 19.919 3 19.3467 3 18.75V8.25C3 7.65327 3.23705 7.08097 3.65901 6.65901C4.08097 6.23706 4.65326 6 5.25 6H10",
|
|
1862
|
+
stroke: "currentColor",
|
|
1863
|
+
strokeLinecap: "round",
|
|
1864
|
+
strokeLinejoin: "round"
|
|
1865
|
+
}
|
|
1866
|
+
),
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1868
|
+
"path",
|
|
1869
|
+
{
|
|
1870
|
+
d: "M13.5 4.5H19.5V10.5M19.5 4.5L9.75 14.25",
|
|
1871
|
+
stroke: "currentColor",
|
|
1872
|
+
strokeLinecap: "round",
|
|
1873
|
+
strokeLinejoin: "round"
|
|
1874
|
+
}
|
|
1875
|
+
)
|
|
1876
|
+
]
|
|
1877
|
+
}
|
|
1878
|
+
);
|
|
1879
|
+
},
|
|
1847
1880
|
// ----------------------------------- old ---------------------------------
|
|
1848
1881
|
// ** Status **
|
|
1849
1882
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
avatar_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-HFOHFBZH.mjs";
|
|
5
|
+
import "../../chunk-P5L4YI54.mjs";
|
|
6
6
|
import "../../chunk-U4DJHAM5.mjs";
|
|
7
7
|
import "../../chunk-AC6TWLRT.mjs";
|
|
8
8
|
export {
|
|
@@ -1846,6 +1846,39 @@ var template = {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
);
|
|
1848
1848
|
},
|
|
1849
|
+
"new-window": ({ className }) => {
|
|
1850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
1851
|
+
"svg",
|
|
1852
|
+
{
|
|
1853
|
+
width: "24",
|
|
1854
|
+
height: "24",
|
|
1855
|
+
viewBox: "0 0 24 24",
|
|
1856
|
+
fill: "none",
|
|
1857
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1858
|
+
className,
|
|
1859
|
+
children: [
|
|
1860
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1861
|
+
"path",
|
|
1862
|
+
{
|
|
1863
|
+
d: "M18 14V18.75C18 19.3467 17.7629 19.919 17.341 20.341C16.919 20.763 16.3467 21 15.75 21H5.25C4.65326 21 4.08097 20.763 3.65901 20.341C3.23705 19.919 3 19.3467 3 18.75V8.25C3 7.65327 3.23705 7.08097 3.65901 6.65901C4.08097 6.23706 4.65326 6 5.25 6H10",
|
|
1864
|
+
stroke: "currentColor",
|
|
1865
|
+
strokeLinecap: "round",
|
|
1866
|
+
strokeLinejoin: "round"
|
|
1867
|
+
}
|
|
1868
|
+
),
|
|
1869
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1870
|
+
"path",
|
|
1871
|
+
{
|
|
1872
|
+
d: "M13.5 4.5H19.5V10.5M19.5 4.5L9.75 14.25",
|
|
1873
|
+
stroke: "currentColor",
|
|
1874
|
+
strokeLinecap: "round",
|
|
1875
|
+
strokeLinejoin: "round"
|
|
1876
|
+
}
|
|
1877
|
+
)
|
|
1878
|
+
]
|
|
1879
|
+
}
|
|
1880
|
+
);
|
|
1881
|
+
},
|
|
1849
1882
|
// ----------------------------------- old ---------------------------------
|
|
1850
1883
|
// ** Status **
|
|
1851
1884
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "../../chunk-7DLOYKVC.mjs";
|
|
3
3
|
import {
|
|
4
4
|
avatar_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-HFOHFBZH.mjs";
|
|
6
|
+
import "../../chunk-P5L4YI54.mjs";
|
|
7
7
|
import "../../chunk-U4DJHAM5.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
@@ -2091,6 +2091,39 @@ var template = {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
);
|
|
2093
2093
|
},
|
|
2094
|
+
"new-window": ({ className }) => {
|
|
2095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
2096
|
+
"svg",
|
|
2097
|
+
{
|
|
2098
|
+
width: "24",
|
|
2099
|
+
height: "24",
|
|
2100
|
+
viewBox: "0 0 24 24",
|
|
2101
|
+
fill: "none",
|
|
2102
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2103
|
+
className,
|
|
2104
|
+
children: [
|
|
2105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
2106
|
+
"path",
|
|
2107
|
+
{
|
|
2108
|
+
d: "M18 14V18.75C18 19.3467 17.7629 19.919 17.341 20.341C16.919 20.763 16.3467 21 15.75 21H5.25C4.65326 21 4.08097 20.763 3.65901 20.341C3.23705 19.919 3 19.3467 3 18.75V8.25C3 7.65327 3.23705 7.08097 3.65901 6.65901C4.08097 6.23706 4.65326 6 5.25 6H10",
|
|
2109
|
+
stroke: "currentColor",
|
|
2110
|
+
strokeLinecap: "round",
|
|
2111
|
+
strokeLinejoin: "round"
|
|
2112
|
+
}
|
|
2113
|
+
),
|
|
2114
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
2115
|
+
"path",
|
|
2116
|
+
{
|
|
2117
|
+
d: "M13.5 4.5H19.5V10.5M19.5 4.5L9.75 14.25",
|
|
2118
|
+
stroke: "currentColor",
|
|
2119
|
+
strokeLinecap: "round",
|
|
2120
|
+
strokeLinejoin: "round"
|
|
2121
|
+
}
|
|
2122
|
+
)
|
|
2123
|
+
]
|
|
2124
|
+
}
|
|
2125
|
+
);
|
|
2126
|
+
},
|
|
2094
2127
|
// ----------------------------------- old ---------------------------------
|
|
2095
2128
|
// ** Status **
|
|
2096
2129
|
"plus-circle": ({ className, fill }) => {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
breadcrumb_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-4IEHQI5B.mjs";
|
|
5
5
|
import "../../chunk-MY5U63QO.mjs";
|
|
6
|
+
import "../../chunk-NDNIAALB.mjs";
|
|
6
7
|
import "../../chunk-5VTYO3RF.mjs";
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-SKX5QPUD.mjs";
|
|
9
|
+
import "../../chunk-BBRO35V3.mjs";
|
|
9
10
|
import "../../chunk-6WSACUIB.mjs";
|
|
10
|
-
import "../../chunk-LXHUO6VM.mjs";
|
|
11
11
|
import "../../chunk-SZL743JC.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-LXHUO6VM.mjs";
|
|
13
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-6AID2NLT.mjs";
|
|
15
|
+
import "../../chunk-P5L4YI54.mjs";
|
|
16
16
|
import "../../chunk-27Y6K5NK.mjs";
|
|
17
17
|
import "../../chunk-E3G5QXSH.mjs";
|
|
18
18
|
import "../../chunk-U4DJHAM5.mjs";
|