@deepnoid/ui 0.0.86 → 0.0.87
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/dist/{chunk-HH2LF2SU.mjs → chunk-2COCX2VX.mjs} +9 -5
- package/dist/{chunk-KA4L5SCT.mjs → chunk-4DLTBZUQ.mjs} +1 -1
- package/dist/{chunk-PSXPOYLX.mjs → chunk-4SWFYTMR.mjs} +1 -1
- package/dist/{chunk-RVGOARET.mjs → chunk-4VIEZ5FT.mjs} +2 -2
- package/dist/{chunk-QURXBWKK.mjs → chunk-IOV7MEPG.mjs} +323 -331
- package/dist/{chunk-SQLRQTFC.mjs → chunk-LY6LJRUX.mjs} +1 -1
- package/dist/{chunk-EWKYBS7I.mjs → chunk-PHQY5T3E.mjs} +1 -1
- package/dist/{chunk-AHORH5PH.mjs → chunk-PRUAIZTU.mjs} +1 -1
- package/dist/{chunk-LGELMZCN.mjs → chunk-QIZOXBOY.mjs} +1 -1
- package/dist/{chunk-FRIK4CS7.mjs → chunk-QX6VJLEM.mjs} +3 -3
- package/dist/{chunk-QCOPD2HG.mjs → chunk-SFNR4F3J.mjs} +1 -1
- package/dist/components/accordion/accordionItem.js +323 -331
- package/dist/components/accordion/accordionItem.mjs +3 -3
- package/dist/components/accordion/index.js +323 -331
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/icon/Icon.js +323 -331
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +323 -331
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.js +323 -331
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +323 -331
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +323 -331
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/input/input.test.js +323 -331
- package/dist/components/input/input.test.mjs +3 -3
- package/dist/components/modal/index.js +323 -331
- package/dist/components/modal/index.mjs +3 -3
- package/dist/components/modal/modal.js +323 -331
- package/dist/components/modal/modal.mjs +3 -3
- package/dist/components/modal/modal.test.js +323 -331
- package/dist/components/modal/modal.test.mjs +3 -3
- package/dist/components/select/index.js +323 -331
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.js +323 -331
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.js +323 -331
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/select/select.test.js +323 -331
- package/dist/components/select/select.test.mjs +4 -4
- package/dist/components/table/index.js +323 -331
- package/dist/components/table/index.mjs +4 -4
- package/dist/components/table/table-body.js +323 -331
- package/dist/components/table/table-body.mjs +3 -3
- package/dist/components/table/table.js +323 -331
- package/dist/components/table/table.mjs +4 -4
- package/dist/components/table/table.test.js +323 -331
- package/dist/components/table/table.test.mjs +4 -4
- package/dist/components/toast/index.js +333 -337
- 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 +331 -335
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/toast.test.js +331 -335
- package/dist/components/toast/toast.test.mjs +3 -3
- package/dist/components/toast/use-toast.js +333 -337
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/index.js +333 -337
- package/dist/index.mjs +11 -11
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PRUAIZTU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
mapPropsVariants
|
|
7
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
@@ -14,7 +14,7 @@ import { forwardRef, useCallback, useImperativeHandle, useMemo, useRef } from "r
|
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
var Toast = forwardRef((originalProps, ref) => {
|
|
16
16
|
const [props, variantProps] = mapPropsVariants(originalProps, toast.variantKeys);
|
|
17
|
-
const { placement, classNames, showIcon = true, showCloseButton = true, onClose, ...toastProps } = props;
|
|
17
|
+
const { width = 300, placement, classNames, showIcon = true, showCloseButton = true, onClose, ...toastProps } = props;
|
|
18
18
|
const slots = useMemo(() => toast({ ...variantProps }), [variantProps]);
|
|
19
19
|
const toastRef = useRef(null);
|
|
20
20
|
useImperativeHandle(
|
|
@@ -31,7 +31,11 @@ var Toast = forwardRef((originalProps, ref) => {
|
|
|
31
31
|
const getBaseProps = useCallback(
|
|
32
32
|
() => ({
|
|
33
33
|
className: slots.base({
|
|
34
|
-
class: [
|
|
34
|
+
class: [
|
|
35
|
+
classNames == null ? void 0 : classNames.base,
|
|
36
|
+
width ? `w-[${width}px]` : "",
|
|
37
|
+
(placement == null ? void 0 : placement.includes("top")) ? "animate-slideInFromTop" : "animate-slideInFromBottom"
|
|
38
|
+
]
|
|
35
39
|
})
|
|
36
40
|
}),
|
|
37
41
|
[slots, classNames == null ? void 0 : classNames.base]
|
|
@@ -47,7 +51,6 @@ var toast_default = Toast;
|
|
|
47
51
|
var toast = tv({
|
|
48
52
|
slots: {
|
|
49
53
|
base: [
|
|
50
|
-
"w-[300px]",
|
|
51
54
|
"relative",
|
|
52
55
|
"inline-flex",
|
|
53
56
|
"items-start",
|
|
@@ -58,7 +61,8 @@ var toast = tv({
|
|
|
58
61
|
"gap-[5px]",
|
|
59
62
|
"z-0",
|
|
60
63
|
"transition-all",
|
|
61
|
-
"duration-300"
|
|
64
|
+
"duration-300",
|
|
65
|
+
"overflow-auto"
|
|
62
66
|
],
|
|
63
67
|
content: [
|
|
64
68
|
"absolute",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
option_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LY6LJRUX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useSelect
|
|
7
7
|
} from "./chunk-S3QS5B7F.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PRUAIZTU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
mapPropsVariants
|
|
13
13
|
} from "./chunk-E3G5QXSH.mjs";
|