@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
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import "../../chunk-DJOG6Z35.mjs";
|
|
3
3
|
import {
|
|
4
4
|
modal_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-PHQY5T3E.mjs";
|
|
6
6
|
import "../../chunk-VUYUQGLF.mjs";
|
|
7
7
|
import "../../chunk-NGQ3MK2J.mjs";
|
|
8
8
|
import "../../chunk-66WCZEEU.mjs";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-PRUAIZTU.mjs";
|
|
10
|
+
import "../../chunk-IOV7MEPG.mjs";
|
|
11
11
|
import "../../chunk-E3G5QXSH.mjs";
|
|
12
12
|
import "../../chunk-J725QONZ.mjs";
|
|
13
13
|
import "../../chunk-IZ6II3QA.mjs";
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
import react__default, { ReactNode } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
|
+
import { IconName } from '../icon/Icon.mjs';
|
|
7
|
+
import 'react/jsx-runtime';
|
|
8
|
+
import '../icon/template.mjs';
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
color?: "primary" | "secondary" | "neutral" | "success" | "info" | "warning" | "danger";
|
|
12
|
+
classNames?: SlotsToClasses<ModalSlots>;
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
icon?: IconName | JSX.Element;
|
|
15
|
+
title?: string;
|
|
16
|
+
subTitle?: string;
|
|
17
|
+
content?: ReactNode | string;
|
|
18
|
+
confirmButtonText?: string;
|
|
19
|
+
cancelButtonText?: string;
|
|
20
|
+
showCloseButton?: boolean;
|
|
21
|
+
isDismissable?: boolean;
|
|
22
|
+
isKeyboardDismissDisabled?: boolean;
|
|
23
|
+
onConfirm?: () => void;
|
|
24
|
+
onCancel?: () => void;
|
|
25
|
+
}
|
|
26
|
+
type ModalProps = Props & ModalVariantProps;
|
|
27
|
+
declare const Modal: react__default.ForwardRefExoticComponent<Props & ModalVariantProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
declare const modal: tailwind_variants.TVReturnType<{
|
|
30
|
+
color: {
|
|
31
|
+
primary: {
|
|
32
|
+
icon: string;
|
|
33
|
+
};
|
|
34
|
+
secondary: {
|
|
35
|
+
icon: string;
|
|
36
|
+
};
|
|
37
|
+
neutral: {
|
|
38
|
+
icon: string;
|
|
39
|
+
};
|
|
40
|
+
success: {
|
|
41
|
+
icon: string;
|
|
42
|
+
};
|
|
43
|
+
info: {
|
|
44
|
+
icon: string;
|
|
45
|
+
};
|
|
46
|
+
warning: {
|
|
47
|
+
icon: string;
|
|
48
|
+
};
|
|
49
|
+
danger: {
|
|
50
|
+
icon: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
backdrop: string[];
|
|
55
|
+
modalWrapper: string[];
|
|
56
|
+
icon: string[];
|
|
57
|
+
closeIcon: string[];
|
|
58
|
+
titleWrapper: string[];
|
|
59
|
+
title: string;
|
|
60
|
+
subTitle: string;
|
|
61
|
+
bodyWrapper: string[];
|
|
62
|
+
body: string[];
|
|
63
|
+
content: string[];
|
|
64
|
+
footerWrapper: string[];
|
|
65
|
+
}, undefined, {
|
|
66
|
+
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
67
|
+
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
} & tailwind_variants_dist_config.TWMConfig & {
|
|
70
|
+
twMergeConfig: {
|
|
71
|
+
classGroups: {
|
|
72
|
+
fontSize: {
|
|
73
|
+
text: string[];
|
|
74
|
+
}[];
|
|
75
|
+
borderRadius: {
|
|
76
|
+
rounded: string[];
|
|
77
|
+
}[];
|
|
78
|
+
boxShadow: {
|
|
79
|
+
shadow: string[];
|
|
80
|
+
}[];
|
|
81
|
+
padding: {
|
|
82
|
+
p: string[];
|
|
83
|
+
}[];
|
|
84
|
+
gap: {
|
|
85
|
+
gap: string[];
|
|
86
|
+
}[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
color: {
|
|
91
|
+
primary: {
|
|
92
|
+
icon: string;
|
|
93
|
+
};
|
|
94
|
+
secondary: {
|
|
95
|
+
icon: string;
|
|
96
|
+
};
|
|
97
|
+
neutral: {
|
|
98
|
+
icon: string;
|
|
99
|
+
};
|
|
100
|
+
success: {
|
|
101
|
+
icon: string;
|
|
102
|
+
};
|
|
103
|
+
info: {
|
|
104
|
+
icon: string;
|
|
105
|
+
};
|
|
106
|
+
warning: {
|
|
107
|
+
icon: string;
|
|
108
|
+
};
|
|
109
|
+
danger: {
|
|
110
|
+
icon: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
}, {
|
|
114
|
+
backdrop: string[];
|
|
115
|
+
modalWrapper: string[];
|
|
116
|
+
icon: string[];
|
|
117
|
+
closeIcon: string[];
|
|
118
|
+
titleWrapper: string[];
|
|
119
|
+
title: string;
|
|
120
|
+
subTitle: string;
|
|
121
|
+
bodyWrapper: string[];
|
|
122
|
+
body: string[];
|
|
123
|
+
content: string[];
|
|
124
|
+
footerWrapper: string[];
|
|
125
|
+
}, tailwind_variants.TVReturnType<{
|
|
126
|
+
color: {
|
|
127
|
+
primary: {
|
|
128
|
+
icon: string;
|
|
129
|
+
};
|
|
130
|
+
secondary: {
|
|
131
|
+
icon: string;
|
|
132
|
+
};
|
|
133
|
+
neutral: {
|
|
134
|
+
icon: string;
|
|
135
|
+
};
|
|
136
|
+
success: {
|
|
137
|
+
icon: string;
|
|
138
|
+
};
|
|
139
|
+
info: {
|
|
140
|
+
icon: string;
|
|
141
|
+
};
|
|
142
|
+
warning: {
|
|
143
|
+
icon: string;
|
|
144
|
+
};
|
|
145
|
+
danger: {
|
|
146
|
+
icon: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}, {
|
|
150
|
+
backdrop: string[];
|
|
151
|
+
modalWrapper: string[];
|
|
152
|
+
icon: string[];
|
|
153
|
+
closeIcon: string[];
|
|
154
|
+
titleWrapper: string[];
|
|
155
|
+
title: string;
|
|
156
|
+
subTitle: string;
|
|
157
|
+
bodyWrapper: string[];
|
|
158
|
+
body: string[];
|
|
159
|
+
content: string[];
|
|
160
|
+
footerWrapper: string[];
|
|
161
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
162
|
+
color: {
|
|
163
|
+
primary: {
|
|
164
|
+
icon: string;
|
|
165
|
+
};
|
|
166
|
+
secondary: {
|
|
167
|
+
icon: string;
|
|
168
|
+
};
|
|
169
|
+
neutral: {
|
|
170
|
+
icon: string;
|
|
171
|
+
};
|
|
172
|
+
success: {
|
|
173
|
+
icon: string;
|
|
174
|
+
};
|
|
175
|
+
info: {
|
|
176
|
+
icon: string;
|
|
177
|
+
};
|
|
178
|
+
warning: {
|
|
179
|
+
icon: string;
|
|
180
|
+
};
|
|
181
|
+
danger: {
|
|
182
|
+
icon: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
}, {
|
|
186
|
+
color: {
|
|
187
|
+
primary: {
|
|
188
|
+
icon: string;
|
|
189
|
+
};
|
|
190
|
+
secondary: {
|
|
191
|
+
icon: string;
|
|
192
|
+
};
|
|
193
|
+
neutral: {
|
|
194
|
+
icon: string;
|
|
195
|
+
};
|
|
196
|
+
success: {
|
|
197
|
+
icon: string;
|
|
198
|
+
};
|
|
199
|
+
info: {
|
|
200
|
+
icon: string;
|
|
201
|
+
};
|
|
202
|
+
warning: {
|
|
203
|
+
icon: string;
|
|
204
|
+
};
|
|
205
|
+
danger: {
|
|
206
|
+
icon: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
}>, unknown, unknown, undefined>>;
|
|
210
|
+
type ModalVariantProps = VariantProps<typeof modal>;
|
|
211
|
+
type ModalSlots = keyof ReturnType<typeof modal>;
|
|
212
|
+
type ModalReturnType = ReturnType<typeof modal>;
|
|
213
|
+
|
|
214
|
+
export { type ModalProps, type ModalReturnType, type ModalSlots, type ModalVariantProps, type Props, Modal as default, modal };
|