@deepnoid/ui 0.0.84 → 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-XTJL67KM.mjs → chunk-2COCX2VX.mjs} +37 -47
- package/dist/{chunk-KA4L5SCT.mjs → chunk-4DLTBZUQ.mjs} +1 -1
- package/dist/{chunk-RTH3FPAS.mjs → chunk-4SWFYTMR.mjs} +3 -3
- package/dist/{chunk-463XE4SI.mjs → chunk-4VIEZ5FT.mjs} +4 -4
- package/dist/{chunk-NTTHTGDK.mjs → chunk-FNPWLOGV.mjs} +37 -39
- package/dist/{chunk-ILMIS63S.mjs → chunk-H7BLXC5M.mjs} +14 -14
- 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-QX6VJLEM.mjs +83 -0
- package/dist/{chunk-ADDUBJ4I.mjs → chunk-S4DTK5GI.mjs} +1 -1
- package/dist/{chunk-QCOPD2HG.mjs → chunk-SFNR4F3J.mjs} +1 -1
- package/dist/chunk-ZOTHPHXA.mjs +41 -0
- package/dist/components/accordion/accordion.d.mts +154 -0
- package/dist/components/accordion/accordion.test.js +37 -39
- package/dist/components/accordion/accordion.test.mjs +1 -1
- package/dist/components/accordion/accordionItem.d.mts +282 -0
- package/dist/components/accordion/accordionItem.js +323 -331
- package/dist/components/accordion/accordionItem.mjs +3 -3
- package/dist/components/accordion/index.d.mts +6 -0
- package/dist/components/accordion/index.js +323 -331
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/button/button-group.d.mts +14 -0
- package/dist/components/button/button-group.test.d.mts +2 -0
- package/dist/components/button/button-group.test.js +37 -39
- package/dist/components/button/button-group.test.mjs +2 -2
- package/dist/components/button/button.d.mts +18 -0
- package/dist/components/button/button.test.d.mts +2 -0
- package/dist/components/button/button.test.js +50 -52
- package/dist/components/button/button.test.mjs +2 -2
- package/dist/components/button/index.d.mts +3 -0
- package/dist/components/card/card.d.mts +124 -0
- package/dist/components/card/card.test.d.mts +2 -0
- package/dist/components/card/card.test.js +37 -39
- package/dist/components/card/card.test.mjs +1 -1
- package/dist/components/card/index.d.mts +5 -0
- package/dist/components/card/index.d.ts +5 -0
- package/dist/components/checkbox/checkbox.d.mts +349 -0
- package/dist/components/checkbox/checkbox.test.d.mts +2 -0
- package/dist/components/checkbox/checkbox.test.js +37 -39
- package/dist/components/checkbox/checkbox.test.mjs +2 -2
- package/dist/components/checkbox/index.d.mts +5 -0
- package/dist/components/checkbox/index.d.ts +5 -0
- package/dist/components/icon/Icon.d.mts +513 -0
- package/dist/components/icon/Icon.js +323 -331
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.d.mts +4 -0
- package/dist/components/icon/index.d.ts +4 -0
- package/dist/components/icon/index.js +323 -331
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +134 -0
- package/dist/components/icon/template.js +323 -331
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.d.mts +5 -0
- package/dist/components/input/index.d.ts +5 -0
- package/dist/components/input/index.js +323 -331
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.d.mts +437 -0
- package/dist/components/input/input.js +323 -331
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/input/input.test.d.mts +2 -0
- package/dist/components/input/input.test.js +373 -383
- package/dist/components/input/input.test.mjs +5 -5
- package/dist/components/list/index.d.mts +6 -0
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/{dropdown/dropdown.d.ts → list/list.d.mts} +9 -9
- package/dist/components/list/list.test.d.mts +2 -0
- package/dist/components/list/list.test.js +37 -39
- package/dist/components/list/list.test.mjs +1 -1
- package/dist/components/list/listItem.d.mts +183 -0
- package/dist/components/modal/index.d.mts +8 -0
- package/dist/components/modal/index.d.ts +8 -0
- package/dist/components/modal/index.js +323 -331
- package/dist/components/modal/index.mjs +3 -3
- package/dist/components/modal/modal.d.mts +214 -0
- package/dist/components/modal/modal.js +323 -331
- package/dist/components/modal/modal.mjs +3 -3
- package/dist/components/modal/modal.test.d.mts +2 -0
- package/dist/components/modal/modal.test.js +360 -370
- package/dist/components/modal/modal.test.mjs +4 -4
- package/dist/components/pagination/index.d.mts +4 -0
- package/dist/components/pagination/index.d.ts +4 -0
- package/dist/components/pagination/pagination.d.mts +186 -0
- package/dist/components/pagination/pagination.test.d.mts +2 -0
- package/dist/components/pagination/pagination.test.js +37 -39
- package/dist/components/pagination/pagination.test.mjs +1 -1
- package/dist/components/pagination/usePagination.d.mts +16 -0
- package/dist/components/progress/index.d.mts +5 -0
- package/dist/components/progress/index.d.ts +5 -0
- package/dist/components/progress/progress.d.mts +281 -0
- package/dist/components/progress/progress.test.d.mts +2 -0
- package/dist/components/progress/progress.test.d.ts +2 -0
- package/dist/components/progress/progress.test.js +37 -39
- package/dist/components/progress/progress.test.mjs +1 -1
- package/dist/components/radio/index.d.mts +5 -0
- package/dist/components/radio/index.d.ts +5 -0
- package/dist/components/radio/radio.d.mts +278 -0
- package/dist/components/radio/radio.test.d.mts +2 -0
- package/dist/components/radio/radio.test.js +37 -39
- package/dist/components/radio/radio.test.mjs +1 -1
- package/dist/components/select/index.d.mts +5 -0
- package/dist/components/select/index.d.ts +5 -0
- package/dist/components/select/index.js +323 -331
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.d.mts +18 -0
- package/dist/components/select/option.js +323 -331
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.d.mts +449 -0
- package/dist/components/select/select.js +323 -331
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/select/select.test.d.mts +2 -0
- package/dist/components/select/select.test.js +360 -370
- package/dist/components/select/select.test.mjs +6 -6
- package/dist/components/select/useSelect.d.mts +32 -0
- package/dist/components/slider/index.d.mts +5 -0
- package/dist/components/slider/index.d.ts +5 -0
- package/dist/components/slider/slider.d.mts +333 -0
- package/dist/components/slider/slider.test.d.mts +2 -0
- package/dist/components/slider/slider.test.d.ts +2 -0
- package/dist/components/slider/slider.test.js +37 -39
- package/dist/components/slider/slider.test.mjs +1 -1
- package/dist/components/switch/index.d.mts +5 -0
- package/dist/components/switch/index.d.ts +5 -0
- package/dist/components/switch/switch.d.mts +304 -0
- package/dist/components/switch/switch.test.d.mts +2 -0
- package/dist/components/switch/switch.test.d.ts +2 -0
- package/dist/components/switch/switch.test.js +37 -39
- package/dist/components/switch/switch.test.mjs +1 -1
- package/dist/components/table/index.d.mts +5 -0
- package/dist/components/table/index.d.ts +5 -0
- package/dist/components/table/index.js +323 -331
- package/dist/components/table/index.mjs +4 -4
- package/dist/components/table/table-body.d.mts +26 -0
- package/dist/components/table/table-body.js +323 -331
- package/dist/components/table/table-body.mjs +3 -3
- package/dist/components/table/table-head.d.mts +21 -0
- package/dist/components/table/table.d.mts +583 -0
- package/dist/components/table/table.js +323 -331
- package/dist/components/table/table.mjs +4 -4
- package/dist/components/table/table.test.d.mts +2 -0
- package/dist/components/table/table.test.d.ts +2 -0
- package/dist/components/table/table.test.js +360 -370
- package/dist/components/table/table.test.mjs +5 -5
- package/dist/components/tabs/index.d.mts +5 -0
- package/dist/components/tabs/index.d.ts +5 -0
- package/dist/components/tabs/tabs.d.mts +241 -0
- package/dist/components/tabs/tabs.test.d.mts +2 -0
- package/dist/components/tabs/tabs.test.d.ts +2 -0
- package/dist/components/tabs/tabs.test.js +37 -39
- package/dist/components/tabs/tabs.test.mjs +2 -2
- package/dist/components/textarea/index.d.mts +2 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.d.mts +17 -0
- package/dist/components/textarea/textarea.test.d.mts +2 -0
- package/dist/components/textarea/textarea.test.d.ts +2 -0
- package/dist/components/textarea/textarea.test.js +50 -52
- package/dist/components/textarea/textarea.test.mjs +2 -2
- package/dist/components/toast/index.d.mts +9 -0
- package/dist/components/toast/index.d.ts +9 -0
- package/dist/components/toast/index.js +474 -458
- package/dist/components/toast/index.mjs +12 -7
- package/dist/components/toast/toast-utils.d.mts +9 -0
- package/dist/components/toast/toast-utils.d.ts +9 -0
- package/dist/components/toast/toast-utils.js +25 -45
- package/dist/components/toast/toast-utils.mjs +1 -1
- package/dist/components/toast/toast.d.mts +208 -0
- package/dist/components/toast/toast.d.ts +14 -10
- package/dist/components/toast/toast.js +359 -456
- package/dist/components/toast/toast.mjs +3 -5
- package/dist/components/toast/toast.test.d.mts +2 -0
- package/dist/components/toast/toast.test.d.ts +2 -0
- package/dist/components/toast/toast.test.js +400 -499
- package/dist/components/toast/toast.test.mjs +6 -8
- package/dist/components/toast/use-toast.d.mts +31 -0
- package/dist/components/toast/use-toast.d.ts +31 -0
- package/dist/components/toast/use-toast.js +3822 -0
- package/dist/components/toast/use-toast.mjs +17 -0
- package/dist/components/tooltip/index.d.mts +6 -0
- package/dist/components/tooltip/index.d.ts +6 -0
- package/dist/components/tooltip/tooltip-utils.d.mts +2 -0
- package/dist/components/tooltip/tooltip-utils.d.ts +2 -0
- package/dist/components/tooltip/tooltip.d.mts +143 -0
- package/dist/components/tooltip/tooltip.test.d.mts +2 -0
- package/dist/components/tooltip/tooltip.test.d.ts +2 -0
- package/dist/components/tooltip/tooltip.test.js +37 -39
- package/dist/components/tooltip/tooltip.test.mjs +1 -1
- package/dist/components/tooltip/useTooltip.d.mts +2 -0
- package/dist/components/tooltip/useTooltip.d.ts +2 -0
- package/dist/index.d.mts +33 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +576 -511
- package/dist/index.mjs +139 -39
- package/dist/tooltip-utils-DCKA5gnI.d.mts +30 -0
- package/dist/tooltip-utils-DCKA5gnI.d.ts +30 -0
- package/dist/utils/clsx.d.mts +3 -0
- package/dist/utils/props.d.mts +3 -0
- package/dist/utils/tailwind-variants.d.mts +26 -0
- package/dist/utils/types.d.mts +10 -0
- package/package.json +3 -2
- package/dist/chunk-5T5F5WVS.mjs +0 -32
- package/dist/chunk-LXPWTJ3F.mjs +0 -58
- package/dist/chunk-SDNTEP5C.mjs +0 -61
- package/dist/chunk-W7ABNK3K.mjs +0 -1
- package/dist/components/dropdown/dropdown.js +0 -122
- package/dist/components/dropdown/dropdown.mjs +0 -10
- package/dist/components/dropdown/dropdown.test.js +0 -12997
- package/dist/components/dropdown/dropdown.test.mjs +0 -25
- package/dist/components/dropdown/index.js +0 -128
- package/dist/components/dropdown/index.mjs +0 -11
- package/dist/components/toast/useToast.d.ts +0 -0
- package/dist/components/toast/useToast.js +0 -110
- package/dist/components/toast/useToast.mjs +0 -9
- /package/dist/{chunk-RDEWIZV3.mjs → chunk-LUWGOKLG.mjs} +0 -0
- /package/dist/components/{dropdown/dropdown.test.d.ts → accordion/accordion.test.d.mts} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import "./chunk-LUWGOKLG.mjs";
|
|
3
|
+
import {
|
|
4
|
+
ToastProvider,
|
|
5
|
+
useToast
|
|
6
|
+
} from "./chunk-QX6VJLEM.mjs";
|
|
7
|
+
import "./chunk-ZOTHPHXA.mjs";
|
|
8
|
+
import {
|
|
9
|
+
toast_default
|
|
10
|
+
} from "./chunk-2COCX2VX.mjs";
|
|
2
11
|
import "./chunk-HIE2YRGA.mjs";
|
|
3
12
|
import {
|
|
4
13
|
tooltip_default
|
|
5
14
|
} from "./chunk-P6AZMYVR.mjs";
|
|
6
15
|
import "./chunk-DSBSLSJW.mjs";
|
|
7
16
|
import "./chunk-ODMRJXLJ.mjs";
|
|
8
|
-
import "./chunk-RRAZM5D3.mjs";
|
|
9
|
-
import {
|
|
10
|
-
textarea_default
|
|
11
|
-
} from "./chunk-WOX3SLJB.mjs";
|
|
12
|
-
import "./chunk-W7ABNK3K.mjs";
|
|
13
|
-
import {
|
|
14
|
-
toast_default
|
|
15
|
-
} from "./chunk-XTJL67KM.mjs";
|
|
16
|
-
import "./chunk-5T5F5WVS.mjs";
|
|
17
|
-
import "./chunk-SDNTEP5C.mjs";
|
|
18
|
-
import "./chunk-2UUH2MBF.mjs";
|
|
19
|
-
import {
|
|
20
|
-
table_default
|
|
21
|
-
} from "./chunk-RTH3FPAS.mjs";
|
|
22
|
-
import "./chunk-LGELMZCN.mjs";
|
|
23
|
-
import "./chunk-PUFNT5LS.mjs";
|
|
24
17
|
import "./chunk-3MY6LO7N.mjs";
|
|
25
18
|
import {
|
|
26
19
|
tabs_default
|
|
27
20
|
} from "./chunk-KRI5IALM.mjs";
|
|
21
|
+
import "./chunk-RRAZM5D3.mjs";
|
|
22
|
+
import {
|
|
23
|
+
textarea_default
|
|
24
|
+
} from "./chunk-WOX3SLJB.mjs";
|
|
28
25
|
import "./chunk-MV2WCFK7.mjs";
|
|
29
26
|
import {
|
|
30
27
|
slider_default
|
|
@@ -33,10 +30,12 @@ import "./chunk-LVFI2NOH.mjs";
|
|
|
33
30
|
import {
|
|
34
31
|
switch_default
|
|
35
32
|
} from "./chunk-IZOMH2SL.mjs";
|
|
36
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-2UUH2MBF.mjs";
|
|
37
34
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
35
|
+
table_default
|
|
36
|
+
} from "./chunk-4SWFYTMR.mjs";
|
|
37
|
+
import "./chunk-PUFNT5LS.mjs";
|
|
38
|
+
import "./chunk-QIZOXBOY.mjs";
|
|
40
39
|
import "./chunk-TPFN22HR.mjs";
|
|
41
40
|
import {
|
|
42
41
|
radio_default
|
|
@@ -44,38 +43,38 @@ import {
|
|
|
44
43
|
import "./chunk-QCEKPS7U.mjs";
|
|
45
44
|
import {
|
|
46
45
|
select_default
|
|
47
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4VIEZ5FT.mjs";
|
|
47
|
+
import "./chunk-LY6LJRUX.mjs";
|
|
48
48
|
import "./chunk-S3QS5B7F.mjs";
|
|
49
|
-
import "./chunk-SQLRQTFC.mjs";
|
|
50
|
-
import "./chunk-DJOG6Z35.mjs";
|
|
51
|
-
import {
|
|
52
|
-
modal_default
|
|
53
|
-
} from "./chunk-EWKYBS7I.mjs";
|
|
54
49
|
import "./chunk-7B7LRG5J.mjs";
|
|
55
50
|
import {
|
|
56
51
|
pagination_default
|
|
57
52
|
} from "./chunk-5HSZ5AYM.mjs";
|
|
58
53
|
import "./chunk-F3HENRVM.mjs";
|
|
59
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-7VOQKIIK.mjs";
|
|
60
55
|
import {
|
|
61
|
-
|
|
62
|
-
} from "./chunk-
|
|
56
|
+
progress_default
|
|
57
|
+
} from "./chunk-QVGXHUYW.mjs";
|
|
63
58
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
59
|
+
import {
|
|
60
|
+
list_default
|
|
61
|
+
} from "./chunk-EYY4CRRR.mjs";
|
|
64
62
|
import {
|
|
65
63
|
listItem_default
|
|
66
64
|
} from "./chunk-FPCP4OOL.mjs";
|
|
65
|
+
import "./chunk-DJOG6Z35.mjs";
|
|
67
66
|
import {
|
|
68
|
-
|
|
69
|
-
} from "./chunk-
|
|
67
|
+
modal_default
|
|
68
|
+
} from "./chunk-PHQY5T3E.mjs";
|
|
70
69
|
import "./chunk-HAOK24MK.mjs";
|
|
71
70
|
import "./chunk-QZ3LVYJW.mjs";
|
|
72
71
|
import {
|
|
73
72
|
checkbox_default
|
|
74
73
|
} from "./chunk-BE2OG6M4.mjs";
|
|
75
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-2GCSFWHD.mjs";
|
|
76
75
|
import {
|
|
77
|
-
|
|
78
|
-
} from "./chunk-
|
|
76
|
+
input_default
|
|
77
|
+
} from "./chunk-4DLTBZUQ.mjs";
|
|
79
78
|
import "./chunk-NMSDSEBD.mjs";
|
|
80
79
|
import "./chunk-VUYUQGLF.mjs";
|
|
81
80
|
import {
|
|
@@ -93,13 +92,13 @@ import {
|
|
|
93
92
|
} from "./chunk-SWR7E3NU.mjs";
|
|
94
93
|
import {
|
|
95
94
|
accordionItem_default
|
|
96
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-SFNR4F3J.mjs";
|
|
97
96
|
import "./chunk-ZYIIXWVY.mjs";
|
|
98
97
|
import {
|
|
99
98
|
Icon_default,
|
|
100
99
|
iconTemplate
|
|
101
|
-
} from "./chunk-
|
|
102
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-PRUAIZTU.mjs";
|
|
101
|
+
import "./chunk-IOV7MEPG.mjs";
|
|
103
102
|
import "./chunk-E3G5QXSH.mjs";
|
|
104
103
|
import {
|
|
105
104
|
tv
|
|
@@ -520,6 +519,104 @@ var fontSize = {
|
|
|
520
519
|
]
|
|
521
520
|
};
|
|
522
521
|
|
|
522
|
+
// ../tailwind-config/src/animation/slide.ts
|
|
523
|
+
var sliceAnimation = {
|
|
524
|
+
slideInFromTop: "slideInFromTop 0.5s ease-out",
|
|
525
|
+
slideInFromBottom: "slideInFromBottom 0.5s ease-out",
|
|
526
|
+
slideInFromLeft: "slideInFromLeft 0.5s ease-out",
|
|
527
|
+
slideInFromRight: "slideInFromRight 0.5s ease-out",
|
|
528
|
+
slideOutToTop: "slideOutToTop 0.5s ease-in",
|
|
529
|
+
slideOutToBottom: "slideOutToBottom 0.5s ease-in",
|
|
530
|
+
slideOutToLeft: "slideOutToLeft 0.5s ease-in",
|
|
531
|
+
slideOutToRight: "slideOutToRight 0.5s ease-in"
|
|
532
|
+
};
|
|
533
|
+
var sliceKeyframe = {
|
|
534
|
+
slideInFromTop: {
|
|
535
|
+
"0%": {
|
|
536
|
+
transform: "translateY(-10px)",
|
|
537
|
+
opacity: "0"
|
|
538
|
+
},
|
|
539
|
+
"100%": {
|
|
540
|
+
transform: "translateY(0)",
|
|
541
|
+
opacity: "1"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
slideInFromBottom: {
|
|
545
|
+
"0%": {
|
|
546
|
+
transform: "translateY(10px)",
|
|
547
|
+
opacity: "0"
|
|
548
|
+
},
|
|
549
|
+
"100%": {
|
|
550
|
+
transform: "translateY(0)",
|
|
551
|
+
opacity: "1"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
slideInFromLeft: {
|
|
555
|
+
"0%": {
|
|
556
|
+
transform: "translateX(-10px)",
|
|
557
|
+
opacity: "0"
|
|
558
|
+
},
|
|
559
|
+
"100%": {
|
|
560
|
+
transform: "translateX(0)",
|
|
561
|
+
opacity: "1"
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
slideInFromRight: {
|
|
565
|
+
"0%": {
|
|
566
|
+
transform: "translateX(10px)",
|
|
567
|
+
opacity: "0"
|
|
568
|
+
},
|
|
569
|
+
"100%": {
|
|
570
|
+
transform: "translateX(0)",
|
|
571
|
+
opacity: "1"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
slideOutToTop: {
|
|
575
|
+
"0%": {
|
|
576
|
+
transform: "translateY(0)",
|
|
577
|
+
opacity: "1"
|
|
578
|
+
},
|
|
579
|
+
"100%": {
|
|
580
|
+
transform: "translateY(-10px)",
|
|
581
|
+
opacity: "0"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
slideOutToBottom: {
|
|
585
|
+
"0%": {
|
|
586
|
+
transform: "translateY(0)",
|
|
587
|
+
opacity: "1"
|
|
588
|
+
},
|
|
589
|
+
"100%": {
|
|
590
|
+
transform: "translateY(10px)",
|
|
591
|
+
opacity: "0"
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
slideOutToLeft: {
|
|
595
|
+
"0%": {
|
|
596
|
+
transform: "translateX(0)",
|
|
597
|
+
opacity: "1"
|
|
598
|
+
},
|
|
599
|
+
"100%": {
|
|
600
|
+
transform: "translateX(-10px)",
|
|
601
|
+
opacity: "0"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
slideOutToRight: {
|
|
605
|
+
"0%": {
|
|
606
|
+
transform: "translateX(0)",
|
|
607
|
+
opacity: "1"
|
|
608
|
+
},
|
|
609
|
+
"100%": {
|
|
610
|
+
transform: "translateX(10px)",
|
|
611
|
+
opacity: "0"
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
// ../tailwind-config/src/animation/index.ts
|
|
617
|
+
var animation = { ...sliceAnimation };
|
|
618
|
+
var keyframes = { ...sliceKeyframe };
|
|
619
|
+
|
|
523
620
|
// ../../node_modules/flat/index.js
|
|
524
621
|
function isBuffer(obj) {
|
|
525
622
|
return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
|
|
@@ -700,7 +797,9 @@ var deepnoidUi = (colorChip = {}, defaultTheme = "light") => {
|
|
|
700
797
|
borderRadius,
|
|
701
798
|
fontSize,
|
|
702
799
|
boxShadow,
|
|
703
|
-
gap
|
|
800
|
+
gap,
|
|
801
|
+
keyframes,
|
|
802
|
+
animation
|
|
704
803
|
}
|
|
705
804
|
}
|
|
706
805
|
}
|
|
@@ -713,7 +812,6 @@ export {
|
|
|
713
812
|
button_group_default as ButtonGroup,
|
|
714
813
|
card_default as Card,
|
|
715
814
|
checkbox_default as CheckBox,
|
|
716
|
-
dropdown_default as Dropdown,
|
|
717
815
|
Icon_default as Icon,
|
|
718
816
|
input_default as Input,
|
|
719
817
|
list_default as List,
|
|
@@ -729,8 +827,10 @@ export {
|
|
|
729
827
|
tabs_default as Tabs,
|
|
730
828
|
textarea_default as Textarea,
|
|
731
829
|
toast_default as Toast,
|
|
830
|
+
ToastProvider,
|
|
732
831
|
tooltip_default as Tooltip,
|
|
733
832
|
deepnoidUi,
|
|
734
833
|
iconTemplate,
|
|
735
|
-
tv
|
|
834
|
+
tv,
|
|
835
|
+
useToast
|
|
736
836
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type TargetRect = {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
left: number;
|
|
7
|
+
top: number;
|
|
8
|
+
right: number;
|
|
9
|
+
bottom: number;
|
|
10
|
+
};
|
|
11
|
+
interface UseTooltipProps {
|
|
12
|
+
placement: TooltipPlacement;
|
|
13
|
+
offset: number;
|
|
14
|
+
targetRect: TargetRect | null;
|
|
15
|
+
}
|
|
16
|
+
declare const useTooltip: ({ placement, offset, targetRect }: UseTooltipProps) => {
|
|
17
|
+
tooltipPosition: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
tooltipRef: react.RefObject<HTMLDivElement>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type TooltipPlacement = "top" | "left" | "right" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
25
|
+
declare const getTooltipPosition: (placement: TooltipPlacement, targetRect: TargetRect, width: number, height: number, offset: number) => {
|
|
26
|
+
tooltipX: number;
|
|
27
|
+
tooltipY: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { type TooltipPlacement as T, type TargetRect as a, getTooltipPosition as g, useTooltip as u };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
type TargetRect = {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
left: number;
|
|
7
|
+
top: number;
|
|
8
|
+
right: number;
|
|
9
|
+
bottom: number;
|
|
10
|
+
};
|
|
11
|
+
interface UseTooltipProps {
|
|
12
|
+
placement: TooltipPlacement;
|
|
13
|
+
offset: number;
|
|
14
|
+
targetRect: TargetRect | null;
|
|
15
|
+
}
|
|
16
|
+
declare const useTooltip: ({ placement, offset, targetRect }: UseTooltipProps) => {
|
|
17
|
+
tooltipPosition: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
tooltipRef: react.RefObject<HTMLDivElement>;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type TooltipPlacement = "top" | "left" | "right" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
25
|
+
declare const getTooltipPosition: (placement: TooltipPlacement, targetRect: TargetRect, width: number, height: number, offset: number) => {
|
|
26
|
+
tooltipX: number;
|
|
27
|
+
tooltipY: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export { type TooltipPlacement as T, type TargetRect as a, getTooltipPosition as g, useTooltip as u };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
export { VariantProps } from 'tailwind-variants';
|
|
3
|
+
|
|
4
|
+
declare const tv: tailwind_variants.CreateTV<{
|
|
5
|
+
twMergeConfig: {
|
|
6
|
+
classGroups: {
|
|
7
|
+
fontSize: {
|
|
8
|
+
text: string[];
|
|
9
|
+
}[];
|
|
10
|
+
borderRadius: {
|
|
11
|
+
rounded: string[];
|
|
12
|
+
}[];
|
|
13
|
+
boxShadow: {
|
|
14
|
+
shadow: string[];
|
|
15
|
+
}[];
|
|
16
|
+
padding: {
|
|
17
|
+
p: string[];
|
|
18
|
+
}[];
|
|
19
|
+
gap: {
|
|
20
|
+
gap: string[];
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}>;
|
|
25
|
+
|
|
26
|
+
export { tv };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepnoid/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.87",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
"build": "tsup src --dts",
|
|
13
13
|
"build:fast": "tsup src",
|
|
14
14
|
"clean": "rm -rf .turbo",
|
|
15
|
+
"deploy:npm": "npm publish --access=public",
|
|
15
16
|
"lint": "TIMING=1 eslint \"**/*.{ts,tsx,js,jsx}\" --fix",
|
|
16
|
-
"publish:npm": "npm publish --access=public",
|
|
17
|
+
"publish:npm": "npm version patch --no-git-tag-version && npm publish --access=public",
|
|
17
18
|
"test": "jest"
|
|
18
19
|
},
|
|
19
20
|
"jest": {
|
package/dist/chunk-5T5F5WVS.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
getToastPosition
|
|
4
|
-
} from "./chunk-SDNTEP5C.mjs";
|
|
5
|
-
|
|
6
|
-
// src/components/toast/useToast.ts
|
|
7
|
-
import { useState, useEffect, useRef } from "react";
|
|
8
|
-
var useToast = ({ placement, offset, targetRect }) => {
|
|
9
|
-
const [toastPosition, setToastPosition] = useState({ x: 0, y: 0 });
|
|
10
|
-
const toastRef = useRef(null);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
if (targetRect && toastRef.current) {
|
|
13
|
-
const { width, height } = toastRef.current.getBoundingClientRect();
|
|
14
|
-
const scrollX = window.scrollX;
|
|
15
|
-
const scrollY = window.scrollY;
|
|
16
|
-
const adjustedTargetRect = {
|
|
17
|
-
...targetRect,
|
|
18
|
-
left: targetRect.left + scrollX,
|
|
19
|
-
top: targetRect.top + scrollY,
|
|
20
|
-
right: targetRect.right + scrollX,
|
|
21
|
-
bottom: targetRect.bottom + scrollY
|
|
22
|
-
};
|
|
23
|
-
const { toastX, toastY } = getToastPosition(placement, adjustedTargetRect, width, height, offset);
|
|
24
|
-
setToastPosition({ x: toastX, y: toastY });
|
|
25
|
-
}
|
|
26
|
-
}, [placement, offset, targetRect]);
|
|
27
|
-
return { toastPosition, toastRef };
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export {
|
|
31
|
-
useToast
|
|
32
|
-
};
|
package/dist/chunk-LXPWTJ3F.mjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
mapPropsVariants
|
|
4
|
-
} from "./chunk-E3G5QXSH.mjs";
|
|
5
|
-
import {
|
|
6
|
-
tv
|
|
7
|
-
} from "./chunk-J725QONZ.mjs";
|
|
8
|
-
|
|
9
|
-
// src/components/dropdown/dropdown.tsx
|
|
10
|
-
import React, { forwardRef, useCallback, useMemo } from "react";
|
|
11
|
-
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
var Dropdown = forwardRef((originalProps, ref) => {
|
|
13
|
-
const [props, variantProps] = mapPropsVariants(originalProps, dropdown.variantKeys);
|
|
14
|
-
const { children, classNames } = props;
|
|
15
|
-
const slots = useMemo(() => dropdown({ ...variantProps }), [...Object.values(variantProps)]);
|
|
16
|
-
const getBaseProps = useCallback(() => {
|
|
17
|
-
return {
|
|
18
|
-
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
19
|
-
};
|
|
20
|
-
}, [slots, classNames == null ? void 0 : classNames.base]);
|
|
21
|
-
return /* @__PURE__ */ jsx("div", { ref, ...getBaseProps(), children: React.Children.map(children, (child, index) => {
|
|
22
|
-
return React.cloneElement(child, {
|
|
23
|
-
...variantProps,
|
|
24
|
-
...child.props
|
|
25
|
-
});
|
|
26
|
-
}) });
|
|
27
|
-
});
|
|
28
|
-
Dropdown.displayName = "Dropdown";
|
|
29
|
-
var dropdown_default = Dropdown;
|
|
30
|
-
var dropdown = tv({
|
|
31
|
-
slots: {
|
|
32
|
-
base: ["flex", "flex-col"]
|
|
33
|
-
},
|
|
34
|
-
variants: {
|
|
35
|
-
variant: {
|
|
36
|
-
solid: {},
|
|
37
|
-
line: {}
|
|
38
|
-
},
|
|
39
|
-
size: {
|
|
40
|
-
sm: {},
|
|
41
|
-
md: {},
|
|
42
|
-
lg: {}
|
|
43
|
-
},
|
|
44
|
-
color: {
|
|
45
|
-
primary: {},
|
|
46
|
-
secondary: {}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
defaultVariants: {
|
|
50
|
-
variant: "solid",
|
|
51
|
-
color: "primary",
|
|
52
|
-
size: "md"
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
dropdown_default
|
|
58
|
-
};
|
package/dist/chunk-SDNTEP5C.mjs
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/components/toast/toast-utils.ts
|
|
4
|
-
var getToastPosition = (placement, targetRect, width, height, offset) => {
|
|
5
|
-
let x = 0, y = 0;
|
|
6
|
-
switch (placement) {
|
|
7
|
-
case "top":
|
|
8
|
-
x = targetRect.left + targetRect.width / 2 - width / 2;
|
|
9
|
-
y = targetRect.top - height - offset;
|
|
10
|
-
break;
|
|
11
|
-
case "left":
|
|
12
|
-
x = targetRect.left - width - offset;
|
|
13
|
-
y = targetRect.top + targetRect.height / 2 - height / 2;
|
|
14
|
-
break;
|
|
15
|
-
case "right":
|
|
16
|
-
x = targetRect.right + offset;
|
|
17
|
-
y = targetRect.top + targetRect.height / 2 - height / 2;
|
|
18
|
-
break;
|
|
19
|
-
case "bottom":
|
|
20
|
-
x = targetRect.left + targetRect.width / 2 - width / 2;
|
|
21
|
-
y = targetRect.bottom + offset;
|
|
22
|
-
break;
|
|
23
|
-
case "top-start":
|
|
24
|
-
x = targetRect.left;
|
|
25
|
-
y = targetRect.top - height - offset;
|
|
26
|
-
break;
|
|
27
|
-
case "top-end":
|
|
28
|
-
x = targetRect.right - width;
|
|
29
|
-
y = targetRect.top - height - offset;
|
|
30
|
-
break;
|
|
31
|
-
case "bottom-start":
|
|
32
|
-
x = targetRect.left;
|
|
33
|
-
y = targetRect.bottom + offset;
|
|
34
|
-
break;
|
|
35
|
-
case "bottom-end":
|
|
36
|
-
x = targetRect.right - width;
|
|
37
|
-
y = targetRect.bottom + offset;
|
|
38
|
-
break;
|
|
39
|
-
case "left-start":
|
|
40
|
-
x = targetRect.left - width - offset;
|
|
41
|
-
y = targetRect.top;
|
|
42
|
-
break;
|
|
43
|
-
case "left-end":
|
|
44
|
-
x = targetRect.left - width - offset;
|
|
45
|
-
y = targetRect.bottom - height;
|
|
46
|
-
break;
|
|
47
|
-
case "right-start":
|
|
48
|
-
x = targetRect.right + offset;
|
|
49
|
-
y = targetRect.top;
|
|
50
|
-
break;
|
|
51
|
-
case "right-end":
|
|
52
|
-
x = targetRect.right + offset;
|
|
53
|
-
y = targetRect.bottom - height;
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
return { toastX: x, toastY: y };
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export {
|
|
60
|
-
getToastPosition
|
|
61
|
-
};
|
package/dist/chunk-W7ABNK3K.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
|
|
31
|
-
// src/components/dropdown/dropdown.tsx
|
|
32
|
-
var dropdown_exports = {};
|
|
33
|
-
__export(dropdown_exports, {
|
|
34
|
-
default: () => dropdown_default
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(dropdown_exports);
|
|
37
|
-
var import_react = __toESM(require("react"));
|
|
38
|
-
|
|
39
|
-
// src/utils/tailwind-variants.ts
|
|
40
|
-
var import_tailwind_variants = require("tailwind-variants");
|
|
41
|
-
var COMMON_SIZE = ["sm", "md", "lg"];
|
|
42
|
-
var COMMON_RADIUS = ["xlg", "xxlg", "none", "full"];
|
|
43
|
-
var COMMON_FONTSIZE = ["h1", "h2", "h3", "h4", "h5"];
|
|
44
|
-
var COMMON_SHADOW = ["inner", "drop"];
|
|
45
|
-
var tv = (0, import_tailwind_variants.createTV)({
|
|
46
|
-
// twMerge: false,
|
|
47
|
-
twMergeConfig: {
|
|
48
|
-
classGroups: {
|
|
49
|
-
fontSize: [{ text: [...COMMON_SIZE, ...COMMON_FONTSIZE] }],
|
|
50
|
-
borderRadius: [{ rounded: [...COMMON_RADIUS, ...COMMON_SIZE] }],
|
|
51
|
-
boxShadow: [{ shadow: [...COMMON_SHADOW] }],
|
|
52
|
-
padding: [{ p: [...COMMON_SIZE] }],
|
|
53
|
-
gap: [{ gap: [...COMMON_SIZE] }]
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
// src/utils/props.ts
|
|
59
|
-
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
60
|
-
if (!variantKeys) {
|
|
61
|
-
return [props, {}];
|
|
62
|
-
}
|
|
63
|
-
const picked = variantKeys.reduce((acc, key) => {
|
|
64
|
-
if (key in props) {
|
|
65
|
-
return { ...acc, [key]: props[key] };
|
|
66
|
-
} else {
|
|
67
|
-
return acc;
|
|
68
|
-
}
|
|
69
|
-
}, {});
|
|
70
|
-
if (removeVariantProps) {
|
|
71
|
-
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
72
|
-
return [omitted, picked];
|
|
73
|
-
} else {
|
|
74
|
-
return [props, picked];
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
// src/components/dropdown/dropdown.tsx
|
|
79
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
80
|
-
var Dropdown = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
81
|
-
const [props, variantProps] = mapPropsVariants(originalProps, dropdown.variantKeys);
|
|
82
|
-
const { children, classNames } = props;
|
|
83
|
-
const slots = (0, import_react.useMemo)(() => dropdown({ ...variantProps }), [...Object.values(variantProps)]);
|
|
84
|
-
const getBaseProps = (0, import_react.useCallback)(() => {
|
|
85
|
-
return {
|
|
86
|
-
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
87
|
-
};
|
|
88
|
-
}, [slots, classNames == null ? void 0 : classNames.base]);
|
|
89
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, ...getBaseProps(), children: import_react.default.Children.map(children, (child, index) => {
|
|
90
|
-
return import_react.default.cloneElement(child, {
|
|
91
|
-
...variantProps,
|
|
92
|
-
...child.props
|
|
93
|
-
});
|
|
94
|
-
}) });
|
|
95
|
-
});
|
|
96
|
-
Dropdown.displayName = "Dropdown";
|
|
97
|
-
var dropdown_default = Dropdown;
|
|
98
|
-
var dropdown = tv({
|
|
99
|
-
slots: {
|
|
100
|
-
base: ["flex", "flex-col"]
|
|
101
|
-
},
|
|
102
|
-
variants: {
|
|
103
|
-
variant: {
|
|
104
|
-
solid: {},
|
|
105
|
-
line: {}
|
|
106
|
-
},
|
|
107
|
-
size: {
|
|
108
|
-
sm: {},
|
|
109
|
-
md: {},
|
|
110
|
-
lg: {}
|
|
111
|
-
},
|
|
112
|
-
color: {
|
|
113
|
-
primary: {},
|
|
114
|
-
secondary: {}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
defaultVariants: {
|
|
118
|
-
variant: "solid",
|
|
119
|
-
color: "primary",
|
|
120
|
-
size: "md"
|
|
121
|
-
}
|
|
122
|
-
});
|