@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
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import "../../chunk-W7ABNK3K.mjs";
3
+ import {
4
+ toast_default
5
+ } from "../../chunk-XTJL67KM.mjs";
6
+ import "../../chunk-5T5F5WVS.mjs";
7
+ import "../../chunk-SDNTEP5C.mjs";
8
+ import "../../chunk-ZYIIXWVY.mjs";
9
+ import "../../chunk-AHORH5PH.mjs";
10
+ import "../../chunk-QURXBWKK.mjs";
11
+ import "../../chunk-E3G5QXSH.mjs";
12
+ import "../../chunk-J725QONZ.mjs";
13
+ import "../../chunk-IZ6II3QA.mjs";
14
+ export {
15
+ toast_default as Toast
16
+ };
@@ -0,0 +1,84 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/components/toast/toast-utils.ts
22
+ var toast_utils_exports = {};
23
+ __export(toast_utils_exports, {
24
+ getToastPosition: () => getToastPosition
25
+ });
26
+ module.exports = __toCommonJS(toast_utils_exports);
27
+ var getToastPosition = (placement, targetRect, width, height, offset) => {
28
+ let x = 0, y = 0;
29
+ switch (placement) {
30
+ case "top":
31
+ x = targetRect.left + targetRect.width / 2 - width / 2;
32
+ y = targetRect.top - height - offset;
33
+ break;
34
+ case "left":
35
+ x = targetRect.left - width - offset;
36
+ y = targetRect.top + targetRect.height / 2 - height / 2;
37
+ break;
38
+ case "right":
39
+ x = targetRect.right + offset;
40
+ y = targetRect.top + targetRect.height / 2 - height / 2;
41
+ break;
42
+ case "bottom":
43
+ x = targetRect.left + targetRect.width / 2 - width / 2;
44
+ y = targetRect.bottom + offset;
45
+ break;
46
+ case "top-start":
47
+ x = targetRect.left;
48
+ y = targetRect.top - height - offset;
49
+ break;
50
+ case "top-end":
51
+ x = targetRect.right - width;
52
+ y = targetRect.top - height - offset;
53
+ break;
54
+ case "bottom-start":
55
+ x = targetRect.left;
56
+ y = targetRect.bottom + offset;
57
+ break;
58
+ case "bottom-end":
59
+ x = targetRect.right - width;
60
+ y = targetRect.bottom + offset;
61
+ break;
62
+ case "left-start":
63
+ x = targetRect.left - width - offset;
64
+ y = targetRect.top;
65
+ break;
66
+ case "left-end":
67
+ x = targetRect.left - width - offset;
68
+ y = targetRect.bottom - height;
69
+ break;
70
+ case "right-start":
71
+ x = targetRect.right + offset;
72
+ y = targetRect.top;
73
+ break;
74
+ case "right-end":
75
+ x = targetRect.right + offset;
76
+ y = targetRect.bottom - height;
77
+ break;
78
+ }
79
+ return { toastX: x, toastY: y };
80
+ };
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ getToastPosition
84
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ getToastPosition
4
+ } from "../../chunk-SDNTEP5C.mjs";
5
+ import "../../chunk-IZ6II3QA.mjs";
6
+ export {
7
+ getToastPosition
8
+ };
@@ -0,0 +1,204 @@
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.js';
7
+ import { T as ToastPlacement } from '../../toast-utils-c66EY-H0.js';
8
+
9
+ interface Props {
10
+ content?: ReactNode | string;
11
+ offset?: number;
12
+ placement?: ToastPlacement;
13
+ classNames?: SlotsToClasses<ToastSlots>;
14
+ showStatusIcon?: boolean;
15
+ showCloseButton?: boolean;
16
+ }
17
+ type ToastProps = Props & ToastVariantProps;
18
+ declare const Toast: react.ForwardRefExoticComponent<Props & ToastVariantProps & react.RefAttributes<HTMLDivElement>>;
19
+
20
+ declare const tooltip: tailwind_variants.TVReturnType<{
21
+ color: {
22
+ primary: {
23
+ base: string;
24
+ };
25
+ secondary: {
26
+ base: string;
27
+ };
28
+ default: {
29
+ base: string;
30
+ };
31
+ success: {
32
+ base: string;
33
+ };
34
+ info: {
35
+ base: string;
36
+ };
37
+ warning: {
38
+ base: string;
39
+ };
40
+ danger: {
41
+ base: string;
42
+ };
43
+ };
44
+ disableAnimation: {
45
+ true: {
46
+ base: string;
47
+ };
48
+ };
49
+ }, {
50
+ base: string[];
51
+ content: string[];
52
+ }, undefined, {
53
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
54
+ color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
55
+ disableAnimation?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
56
+ } | undefined;
57
+ } & tailwind_variants_dist_config.TWMConfig & {
58
+ twMergeConfig: {
59
+ classGroups: {
60
+ fontSize: {
61
+ text: string[];
62
+ }[];
63
+ borderRadius: {
64
+ rounded: string[];
65
+ }[];
66
+ boxShadow: {
67
+ shadow: string[];
68
+ }[];
69
+ padding: {
70
+ p: string[];
71
+ }[];
72
+ gap: {
73
+ gap: string[];
74
+ }[];
75
+ };
76
+ };
77
+ }, {
78
+ color: {
79
+ primary: {
80
+ base: string;
81
+ };
82
+ secondary: {
83
+ base: string;
84
+ };
85
+ default: {
86
+ base: string;
87
+ };
88
+ success: {
89
+ base: string;
90
+ };
91
+ info: {
92
+ base: string;
93
+ };
94
+ warning: {
95
+ base: string;
96
+ };
97
+ danger: {
98
+ base: string;
99
+ };
100
+ };
101
+ disableAnimation: {
102
+ true: {
103
+ base: string;
104
+ };
105
+ };
106
+ }, {
107
+ base: string[];
108
+ content: string[];
109
+ }, tailwind_variants.TVReturnType<{
110
+ color: {
111
+ primary: {
112
+ base: string;
113
+ };
114
+ secondary: {
115
+ base: string;
116
+ };
117
+ default: {
118
+ base: string;
119
+ };
120
+ success: {
121
+ base: string;
122
+ };
123
+ info: {
124
+ base: string;
125
+ };
126
+ warning: {
127
+ base: string;
128
+ };
129
+ danger: {
130
+ base: string;
131
+ };
132
+ };
133
+ disableAnimation: {
134
+ true: {
135
+ base: string;
136
+ };
137
+ };
138
+ }, {
139
+ base: string[];
140
+ content: string[];
141
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
142
+ color: {
143
+ primary: {
144
+ base: string;
145
+ };
146
+ secondary: {
147
+ base: string;
148
+ };
149
+ default: {
150
+ base: string;
151
+ };
152
+ success: {
153
+ base: string;
154
+ };
155
+ info: {
156
+ base: string;
157
+ };
158
+ warning: {
159
+ base: string;
160
+ };
161
+ danger: {
162
+ base: string;
163
+ };
164
+ };
165
+ disableAnimation: {
166
+ true: {
167
+ base: string;
168
+ };
169
+ };
170
+ }, {
171
+ color: {
172
+ primary: {
173
+ base: string;
174
+ };
175
+ secondary: {
176
+ base: string;
177
+ };
178
+ default: {
179
+ base: string;
180
+ };
181
+ success: {
182
+ base: string;
183
+ };
184
+ info: {
185
+ base: string;
186
+ };
187
+ warning: {
188
+ base: string;
189
+ };
190
+ danger: {
191
+ base: string;
192
+ };
193
+ };
194
+ disableAnimation: {
195
+ true: {
196
+ base: string;
197
+ };
198
+ };
199
+ }>, unknown, unknown, undefined>>;
200
+ type ToastVariantProps = VariantProps<typeof tooltip>;
201
+ type ToastSlots = keyof ReturnType<typeof tooltip>;
202
+ type ToastReturnType = ReturnType<typeof tooltip>;
203
+
204
+ export { type Props, type ToastProps, type ToastReturnType, type ToastSlots, type ToastVariantProps, Toast as default };