@deepnoid/ui 0.0.88 → 0.0.90
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-4VIEZ5FT.mjs → chunk-2BCJZILI.mjs} +10 -9
- package/dist/chunk-2ZFHB4JM.mjs +76 -0
- package/dist/{chunk-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
- package/dist/{chunk-IXFP2WQ4.mjs → chunk-6YE26GOI.mjs} +10 -8
- package/dist/chunk-75HLCORR.mjs +1 -0
- package/dist/{chunk-K6HPMTN4.mjs → chunk-7HHFRKJU.mjs} +1 -1
- package/dist/{chunk-H2HUJ4N2.mjs → chunk-A3RWT3JJ.mjs} +9 -4
- package/dist/{chunk-BE2OG6M4.mjs → chunk-ANYPMQH4.mjs} +28 -21
- package/dist/{chunk-5HSZ5AYM.mjs → chunk-B4KZBOGT.mjs} +16 -16
- package/dist/{chunk-KHWFCTPX.mjs → chunk-DWROPKZW.mjs} +6 -6
- package/dist/{chunk-FPCP4OOL.mjs → chunk-EDEV4IK4.mjs} +3 -3
- package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
- package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
- package/dist/{chunk-YGTJU3GD.mjs → chunk-L7P6OBUX.mjs} +10 -17
- package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
- package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
- package/dist/chunk-N6IEGD4K.mjs +119 -0
- package/dist/chunk-OJ2OEI5B.mjs +202 -0
- package/dist/chunk-P732YGHO.mjs +18 -0
- package/dist/{chunk-QRHT7MSO.mjs → chunk-PXUBPWKU.mjs} +1 -1
- package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
- package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
- package/dist/chunk-S2VUKVCH.mjs +319 -0
- package/dist/{chunk-IZOMH2SL.mjs → chunk-S3O52LLG.mjs} +14 -14
- package/dist/chunk-UR64ZUAU.mjs +671 -0
- package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
- package/dist/chunk-WX32MAKV.mjs +219 -0
- package/dist/components/accordion/accordion.d.mts +3 -3
- package/dist/components/accordion/accordion.d.ts +3 -3
- package/dist/components/accordion/accordion.test.mjs +3 -3
- package/dist/components/accordion/accordionItem.d.mts +3 -3
- package/dist/components/accordion/accordionItem.d.ts +3 -3
- package/dist/components/accordion/accordionItem.js +31 -1
- package/dist/components/accordion/accordionItem.mjs +3 -3
- package/dist/components/accordion/index.js +31 -1
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/button/button-group.d.mts +2 -2
- package/dist/components/button/button-group.d.ts +2 -2
- package/dist/components/button/button-group.test.js +4103 -167
- package/dist/components/button/button-group.test.mjs +7 -3
- package/dist/components/button/button.d.mts +360 -12
- package/dist/components/button/button.d.ts +360 -12
- package/dist/components/button/button.js +4054 -110
- package/dist/components/button/button.mjs +5 -1
- package/dist/components/button/button.test.js +4059 -125
- package/dist/components/button/button.test.mjs +7 -3
- package/dist/components/button/index.d.mts +3 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.js +4046 -112
- package/dist/components/button/index.mjs +5 -1
- package/dist/components/card/card.d.mts +3 -3
- package/dist/components/card/card.d.ts +3 -3
- package/dist/components/checkbox/checkbox.d.mts +71 -71
- package/dist/components/checkbox/checkbox.d.ts +71 -71
- package/dist/components/checkbox/checkbox.js +28 -21
- package/dist/components/checkbox/checkbox.mjs +1 -1
- package/dist/components/checkbox/checkbox.test.js +28 -21
- package/dist/components/checkbox/checkbox.test.mjs +4 -4
- package/dist/components/checkbox/index.js +28 -21
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/dateTimePicker/calendar.d.mts +118 -0
- package/dist/components/dateTimePicker/calendar.d.ts +118 -0
- package/dist/components/dateTimePicker/calendar.js +3854 -0
- package/dist/components/dateTimePicker/calendar.mjs +16 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.mts +443 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.ts +443 -0
- package/dist/components/dateTimePicker/dateTimePicker.js +4486 -0
- package/dist/components/dateTimePicker/dateTimePicker.mjs +22 -0
- package/dist/components/dateTimePicker/index.d.mts +5 -0
- package/dist/components/dateTimePicker/index.d.ts +5 -0
- package/dist/components/dateTimePicker/index.js +4487 -0
- package/dist/components/dateTimePicker/index.mjs +21 -0
- package/dist/components/dateTimePicker/timePicker.d.mts +10 -0
- package/dist/components/dateTimePicker/timePicker.d.ts +10 -0
- package/dist/components/dateTimePicker/timePicker.js +342 -0
- package/dist/components/dateTimePicker/timePicker.mjs +13 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.mts +31 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.ts +31 -0
- package/dist/components/dateTimePicker/useDateTimePicker.js +106 -0
- package/dist/components/dateTimePicker/useDateTimePicker.mjs +9 -0
- package/dist/components/dateTimePicker/util.d.mts +4 -0
- package/dist/components/dateTimePicker/util.d.ts +4 -0
- package/dist/components/dateTimePicker/util.js +42 -0
- package/dist/components/dateTimePicker/util.mjs +10 -0
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +30 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +30 -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 +30 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +36 -4
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.d.mts +9 -4
- package/dist/components/input/input.d.ts +9 -4
- package/dist/components/input/input.js +36 -4
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/input/input.test.js +36 -4
- package/dist/components/input/input.test.mjs +6 -6
- package/dist/components/list/index.js +3 -3
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/list/list.d.mts +3 -3
- package/dist/components/list/list.d.ts +3 -3
- package/dist/components/list/list.test.mjs +1 -1
- package/dist/components/list/listItem.d.mts +4 -4
- package/dist/components/list/listItem.d.ts +4 -4
- package/dist/components/list/listItem.js +3 -3
- package/dist/components/list/listItem.mjs +1 -1
- package/dist/components/modal/index.js +506 -128
- package/dist/components/modal/index.mjs +6 -5
- package/dist/components/modal/modal.d.mts +2 -2
- package/dist/components/modal/modal.d.ts +2 -2
- package/dist/components/modal/modal.js +506 -128
- package/dist/components/modal/modal.mjs +6 -5
- package/dist/components/modal/modal.test.js +498 -130
- package/dist/components/modal/modal.test.mjs +6 -5
- package/dist/components/pagination/index.js +16 -16
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.d.mts +2 -2
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/pagination/pagination.js +16 -16
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/pagination/pagination.test.js +16 -16
- package/dist/components/pagination/pagination.test.mjs +2 -2
- package/dist/components/progress/index.js +9 -9
- package/dist/components/progress/index.mjs +1 -1
- package/dist/components/progress/progress.d.mts +35 -35
- package/dist/components/progress/progress.d.ts +35 -35
- package/dist/components/progress/progress.js +9 -9
- package/dist/components/progress/progress.mjs +1 -1
- package/dist/components/progress/progress.test.js +9 -9
- package/dist/components/progress/progress.test.mjs +1 -1
- package/dist/components/radio/index.js +37 -19
- package/dist/components/radio/index.mjs +1 -1
- package/dist/components/radio/radio.d.mts +35 -35
- package/dist/components/radio/radio.d.ts +35 -35
- package/dist/components/radio/radio.js +37 -19
- package/dist/components/radio/radio.mjs +1 -1
- package/dist/components/radio/radio.test.js +37 -19
- package/dist/components/radio/radio.test.mjs +2 -2
- package/dist/components/select/index.js +36 -5
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.js +30 -0
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.d.mts +4 -4
- package/dist/components/select/select.d.ts +4 -4
- package/dist/components/select/select.js +36 -5
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/select/select.test.js +36 -5
- package/dist/components/select/select.test.mjs +9 -9
- package/dist/components/select/useSelect.d.mts +3 -3
- package/dist/components/select/useSelect.d.ts +3 -3
- package/dist/components/slider/index.js +9 -4
- package/dist/components/slider/index.mjs +1 -1
- package/dist/components/slider/slider.d.mts +28 -2
- package/dist/components/slider/slider.d.ts +28 -2
- package/dist/components/slider/slider.js +9 -4
- package/dist/components/slider/slider.mjs +1 -1
- package/dist/components/slider/slider.test.js +9 -4
- package/dist/components/slider/slider.test.mjs +1 -1
- package/dist/components/switch/index.js +14 -14
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +50 -50
- package/dist/components/switch/switch.d.ts +50 -50
- package/dist/components/switch/switch.js +14 -14
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/switch/switch.test.js +14 -14
- package/dist/components/switch/switch.test.mjs +2 -2
- package/dist/components/table/index.js +66 -27
- package/dist/components/table/index.mjs +7 -7
- package/dist/components/table/table-body.d.mts +2 -2
- package/dist/components/table/table-body.d.ts +2 -2
- package/dist/components/table/table-body.js +60 -23
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +28 -21
- package/dist/components/table/table-head.mjs +2 -2
- package/dist/components/table/table.d.mts +26 -12
- package/dist/components/table/table.d.ts +26 -12
- package/dist/components/table/table.js +66 -27
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/table/table.test.js +66 -27
- package/dist/components/table/table.test.mjs +8 -8
- package/dist/components/tabs/tabs.d.mts +3 -3
- package/dist/components/tabs/tabs.d.ts +3 -3
- package/dist/components/tabs/tabs.test.mjs +4 -4
- package/dist/components/textarea/index.d.mts +3 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/index.js +89 -30
- package/dist/components/textarea/index.mjs +2 -1
- package/dist/components/textarea/textarea.d.mts +512 -11
- package/dist/components/textarea/textarea.d.ts +512 -11
- package/dist/components/textarea/textarea.js +89 -30
- package/dist/components/textarea/textarea.mjs +2 -1
- package/dist/components/textarea/textarea.test.js +89 -30
- package/dist/components/textarea/textarea.test.mjs +3 -2
- package/dist/components/toast/index.js +30 -0
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.d.mts +2 -2
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toast/toast.js +30 -0
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/toast.test.js +30 -0
- package/dist/components/toast/toast.test.mjs +5 -5
- package/dist/components/toast/use-toast.js +30 -0
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tooltip/index.d.mts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.mts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.mts +3 -3
- package/dist/components/tooltip/tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip.test.js +4034 -118
- package/dist/components/tooltip/tooltip.test.mjs +7 -4
- package/dist/components/tooltip/useTooltip.d.mts +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3741 -2611
- package/dist/index.mjs +71 -52
- package/dist/{tooltip-utils-DCKA5gnI.d.ts → tooltip-utils-CrCabndd.d.mts} +2 -2
- package/dist/{tooltip-utils-DCKA5gnI.d.mts → tooltip-utils-CrCabndd.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-66WCZEEU.mjs +0 -320
- package/dist/chunk-WOX3SLJB.mjs +0 -162
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./chunk-LUWGOKLG.mjs";
|
|
3
|
-
import {
|
|
4
|
-
ToastProvider,
|
|
5
|
-
useToast
|
|
6
|
-
} from "./chunk-K6HPMTN4.mjs";
|
|
7
|
-
import "./chunk-ZOTHPHXA.mjs";
|
|
8
|
-
import {
|
|
9
|
-
toast_default
|
|
10
|
-
} from "./chunk-QRHT7MSO.mjs";
|
|
11
2
|
import "./chunk-HIE2YRGA.mjs";
|
|
12
3
|
import {
|
|
13
4
|
tooltip_default
|
|
@@ -21,85 +12,102 @@ import {
|
|
|
21
12
|
import "./chunk-RRAZM5D3.mjs";
|
|
22
13
|
import {
|
|
23
14
|
textarea_default
|
|
24
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OJ2OEI5B.mjs";
|
|
16
|
+
import "./chunk-LUWGOKLG.mjs";
|
|
17
|
+
import {
|
|
18
|
+
ToastProvider,
|
|
19
|
+
useToast
|
|
20
|
+
} from "./chunk-7HHFRKJU.mjs";
|
|
21
|
+
import "./chunk-ZOTHPHXA.mjs";
|
|
22
|
+
import {
|
|
23
|
+
toast_default
|
|
24
|
+
} from "./chunk-PXUBPWKU.mjs";
|
|
25
|
+
import "./chunk-LVFI2NOH.mjs";
|
|
26
|
+
import {
|
|
27
|
+
switch_default
|
|
28
|
+
} from "./chunk-S3O52LLG.mjs";
|
|
29
|
+
import "./chunk-2UUH2MBF.mjs";
|
|
30
|
+
import {
|
|
31
|
+
table_default
|
|
32
|
+
} from "./chunk-6YE26GOI.mjs";
|
|
33
|
+
import "./chunk-DWROPKZW.mjs";
|
|
34
|
+
import "./chunk-VG4644BG.mjs";
|
|
35
|
+
import "./chunk-MV2WCFK7.mjs";
|
|
36
|
+
import {
|
|
37
|
+
slider_default
|
|
38
|
+
} from "./chunk-A3RWT3JJ.mjs";
|
|
25
39
|
import "./chunk-QCEKPS7U.mjs";
|
|
26
40
|
import {
|
|
27
41
|
select_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-LY6LJRUX.mjs";
|
|
42
|
+
} from "./chunk-2BCJZILI.mjs";
|
|
30
43
|
import "./chunk-S3QS5B7F.mjs";
|
|
31
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-RZZWHI6O.mjs";
|
|
45
|
+
import "./chunk-7VOQKIIK.mjs";
|
|
32
46
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-PUFNT5LS.mjs";
|
|
36
|
-
import "./chunk-KHWFCTPX.mjs";
|
|
47
|
+
progress_default
|
|
48
|
+
} from "./chunk-N2JULHST.mjs";
|
|
37
49
|
import "./chunk-TPFN22HR.mjs";
|
|
38
50
|
import {
|
|
39
51
|
radio_default
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import {
|
|
43
|
-
slider_default
|
|
44
|
-
} from "./chunk-H2HUJ4N2.mjs";
|
|
45
|
-
import "./chunk-LVFI2NOH.mjs";
|
|
52
|
+
} from "./chunk-QWFOYO3D.mjs";
|
|
53
|
+
import "./chunk-DJOG6Z35.mjs";
|
|
46
54
|
import {
|
|
47
|
-
|
|
48
|
-
} from "./chunk-
|
|
55
|
+
modal_default
|
|
56
|
+
} from "./chunk-L7P6OBUX.mjs";
|
|
49
57
|
import "./chunk-7B7LRG5J.mjs";
|
|
50
58
|
import {
|
|
51
59
|
pagination_default
|
|
52
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-B4KZBOGT.mjs";
|
|
53
61
|
import "./chunk-F3HENRVM.mjs";
|
|
54
|
-
import "./chunk-
|
|
62
|
+
import "./chunk-2GCSFWHD.mjs";
|
|
55
63
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./chunk-
|
|
64
|
+
input_default
|
|
65
|
+
} from "./chunk-3DRIHQOM.mjs";
|
|
66
|
+
import "./chunk-HAOK24MK.mjs";
|
|
67
|
+
import "./chunk-QZ3LVYJW.mjs";
|
|
68
|
+
import {
|
|
69
|
+
checkbox_default
|
|
70
|
+
} from "./chunk-ANYPMQH4.mjs";
|
|
71
|
+
import "./chunk-75HLCORR.mjs";
|
|
72
|
+
import {
|
|
73
|
+
dateTimePicker_default
|
|
74
|
+
} from "./chunk-S2VUKVCH.mjs";
|
|
75
|
+
import "./chunk-2ZFHB4JM.mjs";
|
|
76
|
+
import "./chunk-WX32MAKV.mjs";
|
|
77
|
+
import "./chunk-P732YGHO.mjs";
|
|
78
|
+
import "./chunk-N6IEGD4K.mjs";
|
|
58
79
|
import "./chunk-7MVEAQ7Z.mjs";
|
|
59
80
|
import {
|
|
60
81
|
list_default
|
|
61
82
|
} from "./chunk-EYY4CRRR.mjs";
|
|
62
83
|
import {
|
|
63
84
|
listItem_default
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import "./chunk-DJOG6Z35.mjs";
|
|
66
|
-
import {
|
|
67
|
-
modal_default
|
|
68
|
-
} from "./chunk-YGTJU3GD.mjs";
|
|
85
|
+
} from "./chunk-EDEV4IK4.mjs";
|
|
69
86
|
import "./chunk-NMSDSEBD.mjs";
|
|
70
|
-
import "./chunk-
|
|
87
|
+
import "./chunk-VUYUQGLF.mjs";
|
|
71
88
|
import {
|
|
72
|
-
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import "./chunk-2GCSFWHD.mjs";
|
|
89
|
+
button_group_default
|
|
90
|
+
} from "./chunk-NGQ3MK2J.mjs";
|
|
75
91
|
import {
|
|
76
|
-
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import "./chunk-VUYUQGLF.mjs";
|
|
79
|
-
import "./chunk-HAOK24MK.mjs";
|
|
92
|
+
button_default
|
|
93
|
+
} from "./chunk-UR64ZUAU.mjs";
|
|
80
94
|
import {
|
|
81
95
|
card_default
|
|
82
96
|
} from "./chunk-2ALY3PH5.mjs";
|
|
97
|
+
import "./chunk-27Y6K5NK.mjs";
|
|
83
98
|
import {
|
|
84
99
|
accordion_default
|
|
85
100
|
} from "./chunk-SWR7E3NU.mjs";
|
|
86
101
|
import {
|
|
87
102
|
accordionItem_default
|
|
88
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-L6BQA6GI.mjs";
|
|
89
104
|
import "./chunk-ZYIIXWVY.mjs";
|
|
90
105
|
import {
|
|
91
106
|
Icon_default,
|
|
92
107
|
iconTemplate
|
|
93
|
-
} from "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-27Y6K5NK.mjs";
|
|
108
|
+
} from "./chunk-LCI6RPWE.mjs";
|
|
109
|
+
import "./chunk-IOCRFIQF.mjs";
|
|
96
110
|
import "./chunk-E3G5QXSH.mjs";
|
|
97
|
-
import {
|
|
98
|
-
button_group_default
|
|
99
|
-
} from "./chunk-NGQ3MK2J.mjs";
|
|
100
|
-
import {
|
|
101
|
-
button_default
|
|
102
|
-
} from "./chunk-66WCZEEU.mjs";
|
|
103
111
|
import {
|
|
104
112
|
tv
|
|
105
113
|
} from "./chunk-J725QONZ.mjs";
|
|
@@ -739,6 +747,16 @@ var resolveConfig = (themes = {}, defaultTheme, prefix = "deepnoidUi") => {
|
|
|
739
747
|
}
|
|
740
748
|
}
|
|
741
749
|
}
|
|
750
|
+
resolved.utilities = {
|
|
751
|
+
...resolved.utilities,
|
|
752
|
+
".scrollbar-hide": {
|
|
753
|
+
"-ms-overflow-style": "none",
|
|
754
|
+
"scrollbar-width": "none",
|
|
755
|
+
"&::-webkit-scrollbar": {
|
|
756
|
+
display: "none"
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
};
|
|
742
760
|
return resolved;
|
|
743
761
|
};
|
|
744
762
|
var deepnoidUi = (colorChip = {}, defaultTheme = "light") => {
|
|
@@ -812,6 +830,7 @@ export {
|
|
|
812
830
|
button_group_default as ButtonGroup,
|
|
813
831
|
card_default as Card,
|
|
814
832
|
checkbox_default as CheckBox,
|
|
833
|
+
dateTimePicker_default as DateTimePicker,
|
|
815
834
|
Icon_default as Icon,
|
|
816
835
|
input_default as Input,
|
|
817
836
|
list_default as List,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
type TargetRect = {
|
|
4
4
|
width: number;
|
|
@@ -18,7 +18,7 @@ declare const useTooltip: ({ placement, offset, targetRect }: UseTooltipProps) =
|
|
|
18
18
|
x: number;
|
|
19
19
|
y: number;
|
|
20
20
|
};
|
|
21
|
-
tooltipRef:
|
|
21
|
+
tooltipRef: React.RefObject<HTMLDivElement>;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
type TooltipPlacement = "top" | "left" | "right" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
|
|
3
3
|
type TargetRect = {
|
|
4
4
|
width: number;
|
|
@@ -18,7 +18,7 @@ declare const useTooltip: ({ placement, offset, targetRect }: UseTooltipProps) =
|
|
|
18
18
|
x: number;
|
|
19
19
|
y: number;
|
|
20
20
|
};
|
|
21
|
-
tooltipRef:
|
|
21
|
+
tooltipRef: React.RefObject<HTMLDivElement>;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
type TooltipPlacement = "top" | "left" | "right" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
package/package.json
CHANGED
package/dist/chunk-66WCZEEU.mjs
DELETED
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
tv
|
|
4
|
-
} from "./chunk-J725QONZ.mjs";
|
|
5
|
-
|
|
6
|
-
// src/components/button/button.tsx
|
|
7
|
-
import { forwardRef } from "react";
|
|
8
|
-
import { jsxs } from "react/jsx-runtime";
|
|
9
|
-
var Button = forwardRef(
|
|
10
|
-
({ children, color, size, variant, radius, fullWidth, isInGroup, isDisabled, startContent, endContent, ...props }, ref) => {
|
|
11
|
-
return /* @__PURE__ */ jsxs(
|
|
12
|
-
"button",
|
|
13
|
-
{
|
|
14
|
-
ref,
|
|
15
|
-
...props,
|
|
16
|
-
disabled: isDisabled,
|
|
17
|
-
className: `${button({
|
|
18
|
-
variant,
|
|
19
|
-
color,
|
|
20
|
-
size,
|
|
21
|
-
radius,
|
|
22
|
-
isDisabled,
|
|
23
|
-
fullWidth,
|
|
24
|
-
isInGroup,
|
|
25
|
-
class: props.className
|
|
26
|
-
})} `,
|
|
27
|
-
children: [
|
|
28
|
-
startContent && startContent,
|
|
29
|
-
children,
|
|
30
|
-
endContent && endContent
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
Button.displayName = "Button";
|
|
37
|
-
var button_default = Button;
|
|
38
|
-
var button = tv({
|
|
39
|
-
base: "flex items-center justify-center border whitespace-nowrap transition duration-200",
|
|
40
|
-
variants: {
|
|
41
|
-
variant: {
|
|
42
|
-
solid: "",
|
|
43
|
-
line: "",
|
|
44
|
-
tonal: "",
|
|
45
|
-
trans: "bg-transparent border-transparent",
|
|
46
|
-
ghost: ""
|
|
47
|
-
},
|
|
48
|
-
color: {
|
|
49
|
-
primary: "",
|
|
50
|
-
secondary: "",
|
|
51
|
-
neutral: "",
|
|
52
|
-
info: "",
|
|
53
|
-
success: "",
|
|
54
|
-
warning: "",
|
|
55
|
-
danger: ""
|
|
56
|
-
},
|
|
57
|
-
size: {
|
|
58
|
-
sm: "h-[24px] px-[8px] py-[4.5px] text-sm font-[500] rounded-sm gap-sm",
|
|
59
|
-
md: "h-[30px] px-[16px] py-[6.5px] text-md font-[500] rounded-md gap-md",
|
|
60
|
-
lg: "h-[36px] px-[24px] py-[8px] text-lg font-[500] rounded-lg gap-lg"
|
|
61
|
-
},
|
|
62
|
-
radius: {
|
|
63
|
-
default: "",
|
|
64
|
-
full: "rounded-full",
|
|
65
|
-
none: "rounded-none"
|
|
66
|
-
},
|
|
67
|
-
fullWidth: {
|
|
68
|
-
true: "w-full"
|
|
69
|
-
},
|
|
70
|
-
isDisabled: {
|
|
71
|
-
true: "disabled:bg-neutral-soft disabled:border-neutral-soft disabled:text-neutral-light disabled:pointer-events-none"
|
|
72
|
-
},
|
|
73
|
-
isInGroup: {
|
|
74
|
-
true: "[&:not(:first-child):not(:last-child)]:rounded-none first:rounded-r-none last:rounded-l-none"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
defaultVariants: {
|
|
78
|
-
size: "md",
|
|
79
|
-
variant: "solid",
|
|
80
|
-
color: "primary",
|
|
81
|
-
fullWidth: false,
|
|
82
|
-
isDisabled: false,
|
|
83
|
-
isInGroup: false
|
|
84
|
-
},
|
|
85
|
-
compoundVariants: [
|
|
86
|
-
// solid & color
|
|
87
|
-
{
|
|
88
|
-
variant: "solid",
|
|
89
|
-
color: "primary",
|
|
90
|
-
class: "bg-primary-main hover:bg-primary-dark border-primary-main hover:border-primary-dark text-white"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
variant: "solid",
|
|
94
|
-
color: "secondary",
|
|
95
|
-
class: "bg-secondary-main hover:bg-secondary-dark border-secondary-main hover:border-secondary-dark text-white"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
variant: "solid",
|
|
99
|
-
color: "neutral",
|
|
100
|
-
class: "bg-neutral-main hover:bg-neutral-dark border-neutral-main hover:border-neutral-dark text-white"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
variant: "solid",
|
|
104
|
-
color: "info",
|
|
105
|
-
class: "bg-info-main hover:bg-info-dark border-info-main hover:border-info-dark text-white"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
variant: "solid",
|
|
109
|
-
color: "success",
|
|
110
|
-
class: "bg-success-main hover:bg-success-dark border-success-main hover:border-success-dark text-white"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
variant: "solid",
|
|
114
|
-
color: "warning",
|
|
115
|
-
class: "bg-warning-main hover:bg-warning-dark border-warning-main hover:border-warning-dark text-white"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
variant: "solid",
|
|
119
|
-
color: "danger",
|
|
120
|
-
class: "bg-danger-main hover:bg-danger-dark border-danger-main hover:border-danger-dark text-white"
|
|
121
|
-
},
|
|
122
|
-
// line & color
|
|
123
|
-
{
|
|
124
|
-
variant: "line",
|
|
125
|
-
color: "primary",
|
|
126
|
-
class: "bg-transparent hover:bg-neutral-soft text-primary-main border-primary-main"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
variant: "line",
|
|
130
|
-
color: "secondary",
|
|
131
|
-
class: "bg-transparent hover:bg-neutral-soft text-secondary-main border-secondary-main"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
variant: "line",
|
|
135
|
-
color: "neutral",
|
|
136
|
-
class: "bg-transparent hover:bg-neutral-soft text-neutral-main border-neutral-main"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
variant: "line",
|
|
140
|
-
color: "info",
|
|
141
|
-
class: "bg-transparent hover:bg-neutral-soft text-info-main border-info-main"
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
variant: "line",
|
|
145
|
-
color: "success",
|
|
146
|
-
class: "bg-transparent hover:bg-neutral-soft text-success-main border-success-main"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
variant: "line",
|
|
150
|
-
color: "warning",
|
|
151
|
-
class: "bg-transparent hover:bg-neutral-soft text-warning-main border-warning-main"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
variant: "line",
|
|
155
|
-
color: "danger",
|
|
156
|
-
class: "bg-transparent hover:bg-neutral-soft text-danger-main border-danger-main"
|
|
157
|
-
},
|
|
158
|
-
// tonal & color
|
|
159
|
-
{
|
|
160
|
-
variant: "tonal",
|
|
161
|
-
color: "primary",
|
|
162
|
-
class: "bg-primary-soft hover:bg-primary-light border-primary-soft hover:border-primary-light text-primary-main"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
variant: "tonal",
|
|
166
|
-
color: "secondary",
|
|
167
|
-
class: "bg-secondary-soft hover:bg-secondary-light border-secondary-soft hover:border-secondary-light text-secondary-main"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
variant: "tonal",
|
|
171
|
-
color: "neutral",
|
|
172
|
-
class: "bg-neutral-soft hover:bg-neutral-light border-neutral-soft hover:border-neutral-light text-neutral-main"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
variant: "tonal",
|
|
176
|
-
color: "info",
|
|
177
|
-
class: "bg-info-soft hover:bg-info-light border-info-soft hover:border-info-light text-info-main"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
variant: "tonal",
|
|
181
|
-
color: "success",
|
|
182
|
-
class: "bg-success-soft hover:bg-success-light border-success-soft hover:border-success-light text-success-main"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
variant: "tonal",
|
|
186
|
-
color: "warning",
|
|
187
|
-
class: "bg-warning-soft hover:bg-warning-light border-warning-soft hover:border-warning-light text-warning-main"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
variant: "tonal",
|
|
191
|
-
color: "danger",
|
|
192
|
-
class: "bg-danger-soft hover:bg-danger-light border-danger-soft hover:border-danger-light text-danger-main"
|
|
193
|
-
},
|
|
194
|
-
// trans & color
|
|
195
|
-
{
|
|
196
|
-
variant: "trans",
|
|
197
|
-
color: "primary",
|
|
198
|
-
class: "hover:bg-primary-soft border-transparent hover:border-primary-soft text-primary-main hover:text-primary-main"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
variant: "trans",
|
|
202
|
-
color: "secondary",
|
|
203
|
-
class: "hover:bg-secondary-soft border-transparent hover:border-secondary-soft text-secondary-main hover:text-secondary-main"
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
variant: "trans",
|
|
207
|
-
color: "neutral",
|
|
208
|
-
class: "hover:bg-neutral-soft border-transparent hover:border-neutral-soft text-neutral-main hover:text-neutral-main"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
variant: "trans",
|
|
212
|
-
color: "info",
|
|
213
|
-
class: "hover:bg-info-soft border-transparent hover:border-info-soft text-info-main hover:text-info-main"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
variant: "trans",
|
|
217
|
-
color: "success",
|
|
218
|
-
class: "hover:bg-success-soft border-transparent hover:border-success-soft text-success-main hover:text-success-main"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
variant: "trans",
|
|
222
|
-
color: "warning",
|
|
223
|
-
class: "hover:bg-warning-soft border-transparent hover:border-warning-soft text-warning-main hover:text-warning-main"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
variant: "trans",
|
|
227
|
-
color: "danger",
|
|
228
|
-
class: "hover:bg-danger-soft border-transparent hover:border-danger-soft text-danger-main hover:text-danger-main"
|
|
229
|
-
},
|
|
230
|
-
// ghost & color
|
|
231
|
-
{
|
|
232
|
-
variant: "ghost",
|
|
233
|
-
color: "primary",
|
|
234
|
-
class: "hover:bg-primary-main text-primary-main hover:text-white border-primary-main"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
variant: "ghost",
|
|
238
|
-
color: "secondary",
|
|
239
|
-
class: "hover:bg-secondary-main text-secondary-main hover:text-white border-secondary-main"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
variant: "ghost",
|
|
243
|
-
color: "neutral",
|
|
244
|
-
class: "hover:bg-neutral-main text-neutral-main hover:text-white border-neutral-main"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
variant: "ghost",
|
|
248
|
-
color: "info",
|
|
249
|
-
class: "hover:bg-info-main text-info-main hover:text-white border-info-main"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
variant: "ghost",
|
|
253
|
-
color: "success",
|
|
254
|
-
class: "hover:bg-success-main text-success-main hover:text-white border-success-main"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
variant: "ghost",
|
|
258
|
-
color: "warning",
|
|
259
|
-
class: "hover:bg-warning-main text-warning-main hover:text-white border-warning-main"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
variant: "ghost",
|
|
263
|
-
color: "danger",
|
|
264
|
-
class: "hover:bg-danger-main text-danger-main hover:text-white border-danger-main"
|
|
265
|
-
},
|
|
266
|
-
// variant && color && isInGroup
|
|
267
|
-
{
|
|
268
|
-
variant: ["line", "ghost"],
|
|
269
|
-
color: "primary",
|
|
270
|
-
isInGroup: true,
|
|
271
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-primary-main"]
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
variant: ["line", "ghost"],
|
|
275
|
-
color: "secondary",
|
|
276
|
-
isInGroup: true,
|
|
277
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-secondary-main"]
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
variant: ["line", "ghost"],
|
|
281
|
-
color: "neutral",
|
|
282
|
-
isInGroup: true,
|
|
283
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-neutral-main"]
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
variant: ["line", "ghost"],
|
|
287
|
-
color: "info",
|
|
288
|
-
isInGroup: true,
|
|
289
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-info-main"]
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
variant: ["line", "ghost"],
|
|
293
|
-
color: "success",
|
|
294
|
-
isInGroup: true,
|
|
295
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-success-main"]
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
variant: ["line", "ghost"],
|
|
299
|
-
color: "warning",
|
|
300
|
-
isInGroup: true,
|
|
301
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-warning-main"]
|
|
302
|
-
},
|
|
303
|
-
{
|
|
304
|
-
variant: ["line", "ghost"],
|
|
305
|
-
color: "danger",
|
|
306
|
-
isInGroup: true,
|
|
307
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-danger-main"]
|
|
308
|
-
},
|
|
309
|
-
// variant && isDisabled
|
|
310
|
-
{
|
|
311
|
-
variant: ["line", "ghost"],
|
|
312
|
-
isDisabled: true,
|
|
313
|
-
class: ["disabled:border-neutral-light"]
|
|
314
|
-
}
|
|
315
|
-
]
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
export {
|
|
319
|
-
button_default
|
|
320
|
-
};
|
package/dist/chunk-WOX3SLJB.mjs
DELETED
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// src/components/textarea/textarea.tsx
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
import { tv } from "tailwind-variants";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
var Textarea = forwardRef((props, ref) => {
|
|
8
|
-
const { base, label, textareaWrapper, textarea, innerWrapper, errorMessageText } = textareaStyle(props);
|
|
9
|
-
const { errorMessage, isRequired, isDisabled, ...textareaProps } = props;
|
|
10
|
-
return /* @__PURE__ */ jsxs("div", { className: base(), children: [
|
|
11
|
-
props.label && /* @__PURE__ */ jsx("label", { className: label(), children: props.label }),
|
|
12
|
-
/* @__PURE__ */ jsxs("div", { className: innerWrapper(), children: [
|
|
13
|
-
/* @__PURE__ */ jsx("div", { className: textareaWrapper(), children: /* @__PURE__ */ jsx(
|
|
14
|
-
"textarea",
|
|
15
|
-
{
|
|
16
|
-
ref,
|
|
17
|
-
className: textarea(),
|
|
18
|
-
disabled: props.isDisabled,
|
|
19
|
-
required: props.isRequired,
|
|
20
|
-
...textareaProps
|
|
21
|
-
}
|
|
22
|
-
) }),
|
|
23
|
-
props.errorMessage && /* @__PURE__ */ jsx("p", { className: errorMessageText(), children: props.errorMessage })
|
|
24
|
-
] })
|
|
25
|
-
] });
|
|
26
|
-
});
|
|
27
|
-
Textarea.displayName = "Textarea";
|
|
28
|
-
var textarea_default = Textarea;
|
|
29
|
-
var textareaStyle = tv({
|
|
30
|
-
slots: {
|
|
31
|
-
base: ["group", "flex", "flex-col", "gap-[10px]"],
|
|
32
|
-
label: ["flex", "items-center"],
|
|
33
|
-
innerWrapper: ["flex", "flex-col", "gap-[6px]"],
|
|
34
|
-
textareaWrapper: [
|
|
35
|
-
"flex",
|
|
36
|
-
"bg-transparent",
|
|
37
|
-
"border-neutral-main",
|
|
38
|
-
"p-[10px]",
|
|
39
|
-
"group-has-[p]:border-danger-main",
|
|
40
|
-
"transition duration-200"
|
|
41
|
-
],
|
|
42
|
-
textarea: [
|
|
43
|
-
"w-full",
|
|
44
|
-
"bg-transparent",
|
|
45
|
-
"placeholder:text-neutral-main",
|
|
46
|
-
"focus-visible:outline-none",
|
|
47
|
-
"resize-none"
|
|
48
|
-
],
|
|
49
|
-
errorMessageText: ["text-s", "text-danger-main"]
|
|
50
|
-
},
|
|
51
|
-
variants: {
|
|
52
|
-
variant: {
|
|
53
|
-
solid: {
|
|
54
|
-
textareaWrapper: ["bg-trans-soft", "hover:bg-trans-light", "has-[:focus]:bg-trans-light"]
|
|
55
|
-
},
|
|
56
|
-
line: {
|
|
57
|
-
textareaWrapper: ["border", "hover:bg-trans-soft", "has-[:focus]:bg-trans-soft"]
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
color: {
|
|
61
|
-
primary: {},
|
|
62
|
-
secondary: {}
|
|
63
|
-
},
|
|
64
|
-
size: {
|
|
65
|
-
sm: {
|
|
66
|
-
base: "gap-[6px]",
|
|
67
|
-
textareaWrapper: "w-[240px] rounded-sm",
|
|
68
|
-
textarea: "text-sm rounded-sm",
|
|
69
|
-
label: "text-sm"
|
|
70
|
-
},
|
|
71
|
-
md: {
|
|
72
|
-
base: "gap-[8px]",
|
|
73
|
-
textareaWrapper: "w-[240px] rounded-md",
|
|
74
|
-
textarea: "text-md rounded-md",
|
|
75
|
-
label: "text-md"
|
|
76
|
-
},
|
|
77
|
-
lg: {
|
|
78
|
-
base: "gap-[10px]",
|
|
79
|
-
textareaWrapper: "w-[240px] rounded-lg",
|
|
80
|
-
textarea: "text-lg rounded-lg",
|
|
81
|
-
label: "text-lg"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
radius: {
|
|
85
|
-
default: {},
|
|
86
|
-
none: {
|
|
87
|
-
textareaWrapper: "rounded-none",
|
|
88
|
-
textarea: "rounded-none"
|
|
89
|
-
},
|
|
90
|
-
full: {
|
|
91
|
-
textareaWrapper: "rounded-full",
|
|
92
|
-
textarea: "rounded-full"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
fullWidth: {
|
|
96
|
-
true: {
|
|
97
|
-
base: "w-full",
|
|
98
|
-
textareaWrapper: "w-full",
|
|
99
|
-
textarea: "w-full"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
isDisabled: {
|
|
103
|
-
true: {
|
|
104
|
-
base: ["opacity-disabled", "pointer-events-none"],
|
|
105
|
-
textareaWrapper: ["border-neutral-light", "pointer-events-none"],
|
|
106
|
-
textarea: ["bg-neutral-soft", "text-neutral-light placeholder:text-neutral-light", "border-neutral-light"],
|
|
107
|
-
label: ["text-neutral-light", "pointer-events-none"]
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
isRequired: {
|
|
111
|
-
true: {
|
|
112
|
-
label: ["after:content-['*']", "after:text-danger-main", "after:ml-0.5"]
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
defaultVariants: {
|
|
117
|
-
variant: "solid",
|
|
118
|
-
color: "primary",
|
|
119
|
-
size: "md",
|
|
120
|
-
fullWidth: false,
|
|
121
|
-
isDisabled: false,
|
|
122
|
-
isRequired: false
|
|
123
|
-
},
|
|
124
|
-
compoundVariants: [
|
|
125
|
-
// variants & color
|
|
126
|
-
{
|
|
127
|
-
variant: "line",
|
|
128
|
-
color: "primary",
|
|
129
|
-
class: {
|
|
130
|
-
textareaWrapper: "has-[:focus]:border-primary-main"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
variant: "line",
|
|
135
|
-
color: "secondary",
|
|
136
|
-
class: {
|
|
137
|
-
textareaWrapper: "has-[:focus]:border-secondary-main",
|
|
138
|
-
textarea: "focus:bg-secondary-main"
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
// Variants & isDisabled
|
|
142
|
-
{
|
|
143
|
-
variant: "line",
|
|
144
|
-
isDisabled: true,
|
|
145
|
-
class: {
|
|
146
|
-
textareaWrapper: "bg-neutral-soft"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
// isRequired & isDisabled
|
|
150
|
-
{
|
|
151
|
-
isRequired: true,
|
|
152
|
-
isDisabled: true,
|
|
153
|
-
class: {
|
|
154
|
-
label: "after:text-danger-light"
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
export {
|
|
161
|
-
textarea_default
|
|
162
|
-
};
|