@deepnoid/ui 0.0.80 → 0.0.84

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.
Files changed (213) hide show
  1. package/dist/{chunk-KWOLWE6I.mjs → chunk-463XE4SI.mjs} +4 -4
  2. package/dist/chunk-5T5F5WVS.mjs +32 -0
  3. package/dist/{chunk-S4DTK5GI.mjs → chunk-ADDUBJ4I.mjs} +1 -1
  4. package/dist/{chunk-GJKNTX2T.mjs → chunk-AHORH5PH.mjs} +6 -4
  5. package/dist/{chunk-7LYJAJIS.mjs → chunk-EWKYBS7I.mjs} +13 -6
  6. package/dist/{chunk-H7BLXC5M.mjs → chunk-ILMIS63S.mjs} +14 -14
  7. package/dist/{chunk-H737LHAY.mjs → chunk-KA4L5SCT.mjs} +8 -8
  8. package/dist/{chunk-DLVQWKQG.mjs → chunk-LGELMZCN.mjs} +24 -19
  9. package/dist/chunk-LXPWTJ3F.mjs +58 -0
  10. package/dist/{chunk-FNPWLOGV.mjs → chunk-NTTHTGDK.mjs} +39 -37
  11. package/dist/{chunk-G3CX6IWH.mjs → chunk-PUFNT5LS.mjs} +18 -6
  12. package/dist/{chunk-WIKB37T7.mjs → chunk-QCOPD2HG.mjs} +1 -1
  13. package/dist/{chunk-TLYAFXE2.mjs → chunk-QURXBWKK.mjs} +1902 -746
  14. package/dist/{chunk-TDMXAHWR.mjs → chunk-RTH3FPAS.mjs} +32 -6
  15. package/dist/chunk-SDNTEP5C.mjs +61 -0
  16. package/dist/{chunk-FLJ4ZZXV.mjs → chunk-SQLRQTFC.mjs} +1 -1
  17. package/dist/chunk-W7ABNK3K.mjs +1 -0
  18. package/dist/chunk-XTJL67KM.mjs +127 -0
  19. package/dist/chunk-ZYIIXWVY.mjs +1 -0
  20. package/dist/components/accordion/accordion.test.js +39 -37
  21. package/dist/components/accordion/accordion.test.mjs +1 -1
  22. package/dist/components/accordion/accordionItem.js +1905 -749
  23. package/dist/components/accordion/accordionItem.mjs +4 -4
  24. package/dist/components/accordion/index.js +1905 -749
  25. package/dist/components/accordion/index.mjs +4 -4
  26. package/dist/components/button/button-group.test.js +39 -37
  27. package/dist/components/button/button-group.test.mjs +2 -2
  28. package/dist/components/button/button.test.js +52 -50
  29. package/dist/components/button/button.test.mjs +2 -2
  30. package/dist/components/card/card.test.js +39 -37
  31. package/dist/components/card/card.test.mjs +1 -1
  32. package/dist/components/checkbox/checkbox.test.js +39 -37
  33. package/dist/components/checkbox/checkbox.test.mjs +2 -2
  34. package/dist/components/{list/list.d.mts → dropdown/dropdown.d.ts} +9 -9
  35. package/dist/components/dropdown/dropdown.js +122 -0
  36. package/dist/components/dropdown/dropdown.mjs +10 -0
  37. package/dist/components/dropdown/dropdown.test.js +12997 -0
  38. package/dist/components/dropdown/dropdown.test.mjs +25 -0
  39. package/dist/components/dropdown/index.js +128 -0
  40. package/dist/components/dropdown/index.mjs +11 -0
  41. package/dist/components/icon/Icon.d.ts +499 -1
  42. package/dist/components/icon/Icon.js +1940 -778
  43. package/dist/components/icon/Icon.mjs +6 -4
  44. package/dist/components/icon/index.js +1910 -751
  45. package/dist/components/icon/index.mjs +7 -5
  46. package/dist/components/icon/template.d.ts +98 -61
  47. package/dist/components/icon/template.js +1902 -746
  48. package/dist/components/icon/template.mjs +1 -1
  49. package/dist/components/input/index.js +1912 -756
  50. package/dist/components/input/index.mjs +4 -4
  51. package/dist/components/input/input.js +1912 -756
  52. package/dist/components/input/input.mjs +4 -4
  53. package/dist/components/input/input.test.js +1983 -825
  54. package/dist/components/input/input.test.mjs +6 -6
  55. package/dist/components/list/index.mjs +3 -3
  56. package/dist/components/list/list.test.js +39 -37
  57. package/dist/components/list/list.test.mjs +1 -1
  58. package/dist/components/modal/index.js +1942 -779
  59. package/dist/components/modal/index.mjs +3 -3
  60. package/dist/components/modal/modal.js +1942 -779
  61. package/dist/components/modal/modal.mjs +3 -3
  62. package/dist/components/modal/modal.test.js +1981 -816
  63. package/dist/components/modal/modal.test.mjs +4 -4
  64. package/dist/components/pagination/pagination.test.js +39 -37
  65. package/dist/components/pagination/pagination.test.mjs +1 -1
  66. package/dist/components/progress/progress.test.d.ts +0 -2
  67. package/dist/components/progress/progress.test.js +39 -37
  68. package/dist/components/progress/progress.test.mjs +1 -1
  69. package/dist/components/radio/radio.test.js +39 -37
  70. package/dist/components/radio/radio.test.mjs +1 -1
  71. package/dist/components/select/index.js +1905 -749
  72. package/dist/components/select/index.mjs +5 -5
  73. package/dist/components/select/option.js +1905 -749
  74. package/dist/components/select/option.mjs +4 -4
  75. package/dist/components/select/select.js +1905 -749
  76. package/dist/components/select/select.mjs +5 -5
  77. package/dist/components/select/select.test.js +1951 -793
  78. package/dist/components/select/select.test.mjs +7 -7
  79. package/dist/components/slider/slider.test.d.ts +0 -2
  80. package/dist/components/slider/slider.test.js +39 -37
  81. package/dist/components/slider/slider.test.mjs +1 -1
  82. package/dist/components/switch/switch.test.d.ts +0 -2
  83. package/dist/components/switch/switch.test.js +39 -37
  84. package/dist/components/switch/switch.test.mjs +1 -1
  85. package/dist/components/table/index.js +1985 -786
  86. package/dist/components/table/index.mjs +6 -6
  87. package/dist/components/table/table-body.d.ts +5 -2
  88. package/dist/components/table/table-body.js +1953 -792
  89. package/dist/components/table/table-body.mjs +4 -4
  90. package/dist/components/table/table-head.d.ts +4 -2
  91. package/dist/components/table/table-head.js +18 -6
  92. package/dist/components/table/table-head.mjs +1 -1
  93. package/dist/components/table/table.d.ts +32 -59
  94. package/dist/components/table/table.js +1985 -786
  95. package/dist/components/table/table.mjs +6 -6
  96. package/dist/components/table/table.test.d.ts +0 -2
  97. package/dist/components/table/table.test.js +2020 -819
  98. package/dist/components/table/table.test.mjs +7 -7
  99. package/dist/components/tabs/tabs.test.d.ts +0 -2
  100. package/dist/components/tabs/tabs.test.js +39 -37
  101. package/dist/components/tabs/tabs.test.mjs +2 -2
  102. package/dist/components/textarea/textarea.test.d.ts +0 -2
  103. package/dist/components/textarea/textarea.test.js +52 -50
  104. package/dist/components/textarea/textarea.test.mjs +2 -2
  105. package/dist/components/toast/index.js +3810 -0
  106. package/dist/components/toast/index.mjs +16 -0
  107. package/dist/components/toast/toast-utils.js +84 -0
  108. package/dist/components/toast/toast-utils.mjs +8 -0
  109. package/dist/components/toast/toast.d.ts +204 -0
  110. package/dist/components/toast/toast.js +3804 -0
  111. package/dist/components/toast/toast.mjs +15 -0
  112. package/dist/components/toast/toast.test.d.ts +0 -0
  113. package/dist/components/toast/toast.test.js +16689 -0
  114. package/dist/components/toast/toast.test.mjs +30 -0
  115. package/dist/components/toast/useToast.d.ts +0 -0
  116. package/dist/components/toast/useToast.js +110 -0
  117. package/dist/components/toast/useToast.mjs +9 -0
  118. package/dist/components/tooltip/tooltip-utils.d.ts +0 -2
  119. package/dist/components/tooltip/tooltip.test.d.ts +0 -2
  120. package/dist/components/tooltip/tooltip.test.js +39 -37
  121. package/dist/components/tooltip/tooltip.test.mjs +1 -1
  122. package/dist/components/tooltip/useTooltip.d.ts +0 -2
  123. package/dist/index.d.ts +4 -1
  124. package/dist/index.js +2247 -793
  125. package/dist/index.mjs +42 -28
  126. package/package.json +4 -3
  127. package/dist/components/accordion/accordion.d.mts +0 -154
  128. package/dist/components/accordion/accordionItem.d.mts +0 -282
  129. package/dist/components/accordion/index.d.mts +0 -6
  130. package/dist/components/button/button-group.d.mts +0 -14
  131. package/dist/components/button/button-group.test.d.mts +0 -2
  132. package/dist/components/button/button.d.mts +0 -18
  133. package/dist/components/button/button.test.d.mts +0 -2
  134. package/dist/components/button/index.d.mts +0 -3
  135. package/dist/components/card/card.d.mts +0 -124
  136. package/dist/components/card/card.test.d.mts +0 -2
  137. package/dist/components/card/index.d.mts +0 -5
  138. package/dist/components/card/index.d.ts +0 -5
  139. package/dist/components/checkbox/checkbox.d.mts +0 -349
  140. package/dist/components/checkbox/checkbox.test.d.mts +0 -2
  141. package/dist/components/checkbox/index.d.mts +0 -5
  142. package/dist/components/checkbox/index.d.ts +0 -5
  143. package/dist/components/icon/Icon.d.mts +0 -15
  144. package/dist/components/icon/index.d.mts +0 -4
  145. package/dist/components/icon/index.d.ts +0 -4
  146. package/dist/components/icon/template.d.mts +0 -97
  147. package/dist/components/input/index.d.mts +0 -5
  148. package/dist/components/input/index.d.ts +0 -5
  149. package/dist/components/input/input.d.mts +0 -437
  150. package/dist/components/input/input.test.d.mts +0 -2
  151. package/dist/components/list/index.d.mts +0 -6
  152. package/dist/components/list/list.test.d.mts +0 -2
  153. package/dist/components/list/listItem.d.mts +0 -183
  154. package/dist/components/modal/index.d.mts +0 -8
  155. package/dist/components/modal/index.d.ts +0 -8
  156. package/dist/components/modal/modal.d.mts +0 -214
  157. package/dist/components/modal/modal.test.d.mts +0 -2
  158. package/dist/components/pagination/index.d.mts +0 -4
  159. package/dist/components/pagination/index.d.ts +0 -4
  160. package/dist/components/pagination/pagination.d.mts +0 -186
  161. package/dist/components/pagination/pagination.test.d.mts +0 -2
  162. package/dist/components/pagination/usePagination.d.mts +0 -16
  163. package/dist/components/progress/index.d.mts +0 -5
  164. package/dist/components/progress/index.d.ts +0 -5
  165. package/dist/components/progress/progress.d.mts +0 -281
  166. package/dist/components/progress/progress.test.d.mts +0 -2
  167. package/dist/components/radio/index.d.mts +0 -5
  168. package/dist/components/radio/index.d.ts +0 -5
  169. package/dist/components/radio/radio.d.mts +0 -278
  170. package/dist/components/radio/radio.test.d.mts +0 -2
  171. package/dist/components/select/index.d.mts +0 -5
  172. package/dist/components/select/index.d.ts +0 -5
  173. package/dist/components/select/option.d.mts +0 -18
  174. package/dist/components/select/select.d.mts +0 -449
  175. package/dist/components/select/select.test.d.mts +0 -2
  176. package/dist/components/select/useSelect.d.mts +0 -32
  177. package/dist/components/slider/index.d.mts +0 -5
  178. package/dist/components/slider/index.d.ts +0 -5
  179. package/dist/components/slider/slider.d.mts +0 -333
  180. package/dist/components/slider/slider.test.d.mts +0 -2
  181. package/dist/components/switch/index.d.mts +0 -5
  182. package/dist/components/switch/index.d.ts +0 -5
  183. package/dist/components/switch/switch.d.mts +0 -304
  184. package/dist/components/switch/switch.test.d.mts +0 -2
  185. package/dist/components/table/index.d.mts +0 -5
  186. package/dist/components/table/index.d.ts +0 -5
  187. package/dist/components/table/table-body.d.mts +0 -23
  188. package/dist/components/table/table-head.d.mts +0 -19
  189. package/dist/components/table/table.d.mts +0 -610
  190. package/dist/components/table/table.test.d.mts +0 -2
  191. package/dist/components/tabs/index.d.mts +0 -5
  192. package/dist/components/tabs/index.d.ts +0 -5
  193. package/dist/components/tabs/tabs.d.mts +0 -241
  194. package/dist/components/tabs/tabs.test.d.mts +0 -2
  195. package/dist/components/textarea/index.d.mts +0 -2
  196. package/dist/components/textarea/index.d.ts +0 -2
  197. package/dist/components/textarea/textarea.d.mts +0 -17
  198. package/dist/components/textarea/textarea.test.d.mts +0 -2
  199. package/dist/components/tooltip/index.d.mts +0 -6
  200. package/dist/components/tooltip/index.d.ts +0 -6
  201. package/dist/components/tooltip/tooltip-utils.d.mts +0 -2
  202. package/dist/components/tooltip/tooltip.d.mts +0 -143
  203. package/dist/components/tooltip/tooltip.test.d.mts +0 -2
  204. package/dist/components/tooltip/useTooltip.d.mts +0 -2
  205. package/dist/index.d.mts +0 -30
  206. package/dist/tooltip-utils-DCKA5gnI.d.mts +0 -30
  207. package/dist/tooltip-utils-DCKA5gnI.d.ts +0 -30
  208. package/dist/utils/clsx.d.mts +0 -3
  209. package/dist/utils/props.d.mts +0 -3
  210. package/dist/utils/tailwind-variants.d.mts +0 -26
  211. package/dist/utils/types.d.mts +0 -10
  212. /package/dist/{chunk-M5PMA3CT.mjs → chunk-RDEWIZV3.mjs} +0 -0
  213. /package/dist/components/{accordion/accordion.test.d.mts → dropdown/dropdown.test.d.ts} +0 -0
@@ -1,241 +0,0 @@
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
-
7
- interface Props {
8
- data?: TabsDataType[];
9
- defaultTabIndex?: number;
10
- classNames?: SlotsToClasses<TabsSlots>;
11
- }
12
- type TabsProps = Props & TabsVariantProps;
13
- type TabsDataType = {
14
- key: string;
15
- title: string;
16
- disabled: boolean;
17
- component: ReactNode;
18
- };
19
- declare const Tabs: react__default.ForwardRefExoticComponent<Props & TabsVariantProps & react__default.RefAttributes<HTMLDivElement>>;
20
-
21
- declare const tabs: tailwind_variants.TVReturnType<{
22
- variant: {
23
- solid: {
24
- tab: string[];
25
- };
26
- line: {
27
- tab: string[];
28
- };
29
- tonal: {
30
- tab: string[];
31
- };
32
- };
33
- color: {
34
- primary: {};
35
- secondary: {};
36
- };
37
- size: {
38
- sm: {
39
- tab: string;
40
- };
41
- md: {
42
- tab: string;
43
- };
44
- lg: {
45
- tab: string;
46
- };
47
- };
48
- fullWidth: {
49
- true: {
50
- base: string;
51
- tabs: string;
52
- tab: string;
53
- };
54
- };
55
- }, {
56
- base: string;
57
- tabs: string;
58
- tab: string[];
59
- contentWrapper: string;
60
- content: string;
61
- }, undefined, {
62
- responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
63
- size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
64
- color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
65
- variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
66
- fullWidth?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
67
- } | undefined;
68
- } & tailwind_variants_dist_config.TWMConfig & {
69
- twMergeConfig: {
70
- classGroups: {
71
- fontSize: {
72
- text: string[];
73
- }[];
74
- borderRadius: {
75
- rounded: string[];
76
- }[];
77
- boxShadow: {
78
- shadow: string[];
79
- }[];
80
- padding: {
81
- p: string[];
82
- }[];
83
- gap: {
84
- gap: string[];
85
- }[];
86
- };
87
- };
88
- }, {
89
- variant: {
90
- solid: {
91
- tab: string[];
92
- };
93
- line: {
94
- tab: string[];
95
- };
96
- tonal: {
97
- tab: string[];
98
- };
99
- };
100
- color: {
101
- primary: {};
102
- secondary: {};
103
- };
104
- size: {
105
- sm: {
106
- tab: string;
107
- };
108
- md: {
109
- tab: string;
110
- };
111
- lg: {
112
- tab: string;
113
- };
114
- };
115
- fullWidth: {
116
- true: {
117
- base: string;
118
- tabs: string;
119
- tab: string;
120
- };
121
- };
122
- }, {
123
- base: string;
124
- tabs: string;
125
- tab: string[];
126
- contentWrapper: string;
127
- content: string;
128
- }, tailwind_variants.TVReturnType<{
129
- variant: {
130
- solid: {
131
- tab: string[];
132
- };
133
- line: {
134
- tab: string[];
135
- };
136
- tonal: {
137
- tab: string[];
138
- };
139
- };
140
- color: {
141
- primary: {};
142
- secondary: {};
143
- };
144
- size: {
145
- sm: {
146
- tab: string;
147
- };
148
- md: {
149
- tab: string;
150
- };
151
- lg: {
152
- tab: string;
153
- };
154
- };
155
- fullWidth: {
156
- true: {
157
- base: string;
158
- tabs: string;
159
- tab: string;
160
- };
161
- };
162
- }, {
163
- base: string;
164
- tabs: string;
165
- tab: string[];
166
- contentWrapper: string;
167
- content: string;
168
- }, undefined, tailwind_variants_dist_config.TVConfig<{
169
- variant: {
170
- solid: {
171
- tab: string[];
172
- };
173
- line: {
174
- tab: string[];
175
- };
176
- tonal: {
177
- tab: string[];
178
- };
179
- };
180
- color: {
181
- primary: {};
182
- secondary: {};
183
- };
184
- size: {
185
- sm: {
186
- tab: string;
187
- };
188
- md: {
189
- tab: string;
190
- };
191
- lg: {
192
- tab: string;
193
- };
194
- };
195
- fullWidth: {
196
- true: {
197
- base: string;
198
- tabs: string;
199
- tab: string;
200
- };
201
- };
202
- }, {
203
- variant: {
204
- solid: {
205
- tab: string[];
206
- };
207
- line: {
208
- tab: string[];
209
- };
210
- tonal: {
211
- tab: string[];
212
- };
213
- };
214
- color: {
215
- primary: {};
216
- secondary: {};
217
- };
218
- size: {
219
- sm: {
220
- tab: string;
221
- };
222
- md: {
223
- tab: string;
224
- };
225
- lg: {
226
- tab: string;
227
- };
228
- };
229
- fullWidth: {
230
- true: {
231
- base: string;
232
- tabs: string;
233
- tab: string;
234
- };
235
- };
236
- }>, unknown, unknown, undefined>>;
237
- type TabsVariantProps = VariantProps<typeof tabs>;
238
- type TabsSlots = keyof ReturnType<typeof tabs>;
239
- type TabsReturnType = ReturnType<typeof tabs>;
240
-
241
- export { type Props, type TabsDataType, type TabsProps, type TabsReturnType, type TabsSlots, type TabsVariantProps, Tabs as default, tabs };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
- export { default as Textarea, TextareaProps } from './textarea.mjs';
2
- import 'react';
@@ -1,2 +0,0 @@
1
- export { default as Textarea, TextareaProps } from './textarea.js';
2
- import 'react';
@@ -1,17 +0,0 @@
1
- import * as react from 'react';
2
- import { ComponentProps } from 'react';
3
-
4
- interface TextareaProps extends Omit<ComponentProps<"textarea">, "size"> {
5
- color?: "primary" | "secondary";
6
- size?: "sm" | "md" | "lg";
7
- variant?: "solid" | "line";
8
- radius?: "default" | "full" | "none";
9
- label?: string;
10
- errorMessage?: string;
11
- fullWidth?: boolean;
12
- isDisabled?: boolean;
13
- isRequired?: boolean;
14
- }
15
- declare const Textarea: react.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & react.RefAttributes<HTMLTextAreaElement>>;
16
-
17
- export { type TextareaProps, Textarea as default };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,6 +0,0 @@
1
- export { default as Tooltip, TooltipProps } from './tooltip.mjs';
2
- import 'tailwind-variants';
3
- import 'tailwind-variants/dist/config';
4
- import 'react';
5
- import '../../utils/types.mjs';
6
- import '../../tooltip-utils-DCKA5gnI.mjs';
@@ -1,6 +0,0 @@
1
- export { default as Tooltip, TooltipProps } from './tooltip.js';
2
- import 'tailwind-variants';
3
- import 'tailwind-variants/dist/config';
4
- import 'react';
5
- import '../../utils/types.js';
6
- import '../../tooltip-utils-DCKA5gnI.js';
@@ -1,2 +0,0 @@
1
- export { T as TooltipPlacement, g as getTooltipPosition } from '../../tooltip-utils-DCKA5gnI.mjs';
2
- import 'react';
@@ -1,143 +0,0 @@
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 * as react from 'react';
5
- import { ReactNode } from 'react';
6
- import { SlotsToClasses } from '../../utils/types.mjs';
7
- import { T as TooltipPlacement } from '../../tooltip-utils-DCKA5gnI.mjs';
8
-
9
- interface Props {
10
- children?: ReactNode;
11
- content?: ReactNode | string;
12
- offset?: number;
13
- placement?: TooltipPlacement;
14
- classNames?: SlotsToClasses<TooltipSlots>;
15
- }
16
- type TooltipProps = Props & TooltipVariantProps;
17
- declare const Tooltip: react.ForwardRefExoticComponent<Props & TooltipVariantProps & react.RefAttributes<HTMLDivElement>>;
18
-
19
- declare const tooltip: tailwind_variants.TVReturnType<{
20
- size: {
21
- sm: {
22
- content: string;
23
- };
24
- md: {
25
- content: string;
26
- };
27
- lg: {
28
- content: string;
29
- };
30
- };
31
- disableAnimation: {
32
- true: {
33
- base: string;
34
- };
35
- };
36
- }, {
37
- base: string[];
38
- content: string[];
39
- }, undefined, {
40
- responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
41
- size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
42
- disableAnimation?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
43
- } | undefined;
44
- } & tailwind_variants_dist_config.TWMConfig & {
45
- twMergeConfig: {
46
- classGroups: {
47
- fontSize: {
48
- text: string[];
49
- }[];
50
- borderRadius: {
51
- rounded: string[];
52
- }[];
53
- boxShadow: {
54
- shadow: string[];
55
- }[];
56
- padding: {
57
- p: string[];
58
- }[];
59
- gap: {
60
- gap: string[];
61
- }[];
62
- };
63
- };
64
- }, {
65
- size: {
66
- sm: {
67
- content: string;
68
- };
69
- md: {
70
- content: string;
71
- };
72
- lg: {
73
- content: string;
74
- };
75
- };
76
- disableAnimation: {
77
- true: {
78
- base: string;
79
- };
80
- };
81
- }, {
82
- base: string[];
83
- content: string[];
84
- }, tailwind_variants.TVReturnType<{
85
- size: {
86
- sm: {
87
- content: string;
88
- };
89
- md: {
90
- content: string;
91
- };
92
- lg: {
93
- content: string;
94
- };
95
- };
96
- disableAnimation: {
97
- true: {
98
- base: string;
99
- };
100
- };
101
- }, {
102
- base: string[];
103
- content: string[];
104
- }, undefined, tailwind_variants_dist_config.TVConfig<{
105
- size: {
106
- sm: {
107
- content: string;
108
- };
109
- md: {
110
- content: string;
111
- };
112
- lg: {
113
- content: string;
114
- };
115
- };
116
- disableAnimation: {
117
- true: {
118
- base: string;
119
- };
120
- };
121
- }, {
122
- size: {
123
- sm: {
124
- content: string;
125
- };
126
- md: {
127
- content: string;
128
- };
129
- lg: {
130
- content: string;
131
- };
132
- };
133
- disableAnimation: {
134
- true: {
135
- base: string;
136
- };
137
- };
138
- }>, unknown, unknown, undefined>>;
139
- type TooltipVariantProps = VariantProps<typeof tooltip>;
140
- type TooltipSlots = keyof ReturnType<typeof tooltip>;
141
- type TooltipReturnType = ReturnType<typeof tooltip>;
142
-
143
- export { type Props, type TooltipProps, type TooltipReturnType, type TooltipSlots, type TooltipVariantProps, Tooltip as default };
@@ -1,2 +0,0 @@
1
-
2
- export { }
@@ -1,2 +0,0 @@
1
- import 'react';
2
- export { a as TargetRect, u as useTooltip } from '../../tooltip-utils-DCKA5gnI.mjs';
package/dist/index.d.mts DELETED
@@ -1,30 +0,0 @@
1
- export { default as Button } from './components/button/button.mjs';
2
- export { default as ButtonGroup } from './components/button/button-group.mjs';
3
- export { default as Input } from './components/input/input.mjs';
4
- export { default as Tabs, TabsDataType } from './components/tabs/tabs.mjs';
5
- export { default as Textarea } from './components/textarea/textarea.mjs';
6
- export { default as Table, TableColumn, TableRow } from './components/table/table.mjs';
7
- export { default as Select } from './components/select/select.mjs';
8
- export { default as CheckBox } from './components/checkbox/checkbox.mjs';
9
- export { default as Radio } from './components/radio/radio.mjs';
10
- export { default as Icon } from './components/icon/Icon.mjs';
11
- export { default as Switch } from './components/switch/switch.mjs';
12
- export { default as Slider } from './components/slider/slider.mjs';
13
- export { default as Progress } from './components/progress/progress.mjs';
14
- export { default as Pagination } from './components/pagination/pagination.mjs';
15
- export { default as Tooltip } from './components/tooltip/tooltip.mjs';
16
- export { default as Modal } from './components/modal/modal.mjs';
17
- export { default as Card } from './components/card/card.mjs';
18
- export { default as Accordion } from './components/accordion/accordion.mjs';
19
- export { default as AccordionItem } from './components/accordion/accordionItem.mjs';
20
- export { default as List } from './components/list/list.mjs';
21
- export { default as ListItem } from './components/list/listItem.mjs';
22
- export { tv } from './utils/tailwind-variants.mjs';
23
- export { deepnoidUi } from '@deepnoid/tailwind-config';
24
- export { VariantProps } from 'tailwind-variants';
25
- import 'react';
26
- import 'tailwind-variants/dist/config';
27
- import './utils/types.mjs';
28
- import 'react/jsx-runtime';
29
- import './components/icon/template.mjs';
30
- import './tooltip-utils-DCKA5gnI.mjs';
@@ -1,30 +0,0 @@
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 };
@@ -1,30 +0,0 @@
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 };
@@ -1,3 +0,0 @@
1
- declare function clsx(...args: any[]): string;
2
-
3
- export { clsx };
@@ -1,3 +0,0 @@
1
- declare const mapPropsVariants: <T extends Record<string, any>, K extends keyof T>(props: T, variantKeys?: K[], removeVariantProps?: boolean) => readonly [Omit<T, K> | T, Pick<T, K> | {}];
2
-
3
- export { mapPropsVariants };
@@ -1,26 +0,0 @@
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 };
@@ -1,10 +0,0 @@
1
- import { ClassValue } from 'tailwind-variants';
2
-
3
- /**
4
- * This Typescript utility transform a list of slots into a list of {slot: classes}
5
- */
6
- type SlotsToClasses<S extends string> = {
7
- [key in S]?: ClassValue;
8
- };
9
-
10
- export type { SlotsToClasses };
File without changes