@deepnoid/ui 0.0.83 → 0.0.86

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 (83) hide show
  1. package/dist/{chunk-GJKNTX2T.mjs → chunk-AHORH5PH.mjs} +6 -4
  2. package/dist/{chunk-7LYJAJIS.mjs → chunk-EWKYBS7I.mjs} +13 -6
  3. package/dist/chunk-FRIK4CS7.mjs +83 -0
  4. package/dist/chunk-HH2LF2SU.mjs +113 -0
  5. package/dist/{chunk-H737LHAY.mjs → chunk-KA4L5SCT.mjs} +8 -8
  6. package/dist/{chunk-BHSCW5D6.mjs → chunk-LGELMZCN.mjs} +1 -1
  7. package/dist/{chunk-6U736HAX.mjs → chunk-PSXPOYLX.mjs} +1 -1
  8. package/dist/{chunk-WIKB37T7.mjs → chunk-QCOPD2HG.mjs} +1 -1
  9. package/dist/{chunk-TLYAFXE2.mjs → chunk-QURXBWKK.mjs} +1902 -746
  10. package/dist/{chunk-KWOLWE6I.mjs → chunk-RVGOARET.mjs} +2 -2
  11. package/dist/{chunk-FLJ4ZZXV.mjs → chunk-SQLRQTFC.mjs} +1 -1
  12. package/dist/chunk-ZOTHPHXA.mjs +41 -0
  13. package/dist/chunk-ZYIIXWVY.mjs +1 -0
  14. package/dist/components/accordion/accordionItem.js +1905 -749
  15. package/dist/components/accordion/accordionItem.mjs +4 -4
  16. package/dist/components/accordion/index.js +1905 -749
  17. package/dist/components/accordion/index.mjs +4 -4
  18. package/dist/components/icon/Icon.d.mts +499 -1
  19. package/dist/components/icon/Icon.d.ts +499 -1
  20. package/dist/components/icon/Icon.js +1940 -778
  21. package/dist/components/icon/Icon.mjs +6 -4
  22. package/dist/components/icon/index.d.mts +1 -1
  23. package/dist/components/icon/index.d.ts +1 -1
  24. package/dist/components/icon/index.js +1910 -751
  25. package/dist/components/icon/index.mjs +7 -5
  26. package/dist/components/icon/template.d.mts +98 -61
  27. package/dist/components/icon/template.d.ts +98 -61
  28. package/dist/components/icon/template.js +1902 -746
  29. package/dist/components/icon/template.mjs +1 -1
  30. package/dist/components/input/index.js +1912 -756
  31. package/dist/components/input/index.mjs +4 -4
  32. package/dist/components/input/input.js +1912 -756
  33. package/dist/components/input/input.mjs +4 -4
  34. package/dist/components/input/input.test.js +1919 -763
  35. package/dist/components/input/input.test.mjs +4 -4
  36. package/dist/components/modal/index.js +1942 -779
  37. package/dist/components/modal/index.mjs +3 -3
  38. package/dist/components/modal/modal.js +1942 -779
  39. package/dist/components/modal/modal.mjs +3 -3
  40. package/dist/components/modal/modal.test.js +1942 -779
  41. package/dist/components/modal/modal.test.mjs +3 -3
  42. package/dist/components/select/index.js +1905 -749
  43. package/dist/components/select/index.mjs +5 -5
  44. package/dist/components/select/option.js +1905 -749
  45. package/dist/components/select/option.mjs +4 -4
  46. package/dist/components/select/select.js +1905 -749
  47. package/dist/components/select/select.mjs +5 -5
  48. package/dist/components/select/select.test.js +1912 -756
  49. package/dist/components/select/select.test.mjs +5 -5
  50. package/dist/components/table/index.js +1905 -749
  51. package/dist/components/table/index.mjs +5 -5
  52. package/dist/components/table/table-body.js +1905 -749
  53. package/dist/components/table/table-body.mjs +4 -4
  54. package/dist/components/table/table.js +1905 -749
  55. package/dist/components/table/table.mjs +5 -5
  56. package/dist/components/table/table.test.js +1912 -756
  57. package/dist/components/table/table.test.mjs +5 -5
  58. package/dist/components/toast/index.d.mts +9 -0
  59. package/dist/components/toast/index.d.ts +9 -0
  60. package/dist/components/toast/index.js +3830 -0
  61. package/dist/components/toast/index.mjs +21 -0
  62. package/dist/components/toast/toast-utils.d.mts +9 -0
  63. package/dist/components/toast/toast-utils.d.ts +9 -0
  64. package/dist/components/toast/toast-utils.js +64 -0
  65. package/dist/components/toast/toast-utils.mjs +8 -0
  66. package/dist/components/toast/toast.d.mts +207 -0
  67. package/dist/components/toast/toast.d.ts +207 -0
  68. package/dist/components/toast/toast.js +3711 -0
  69. package/dist/components/toast/toast.mjs +13 -0
  70. package/dist/components/toast/toast.test.d.mts +2 -0
  71. package/dist/components/toast/toast.test.d.ts +2 -0
  72. package/dist/components/toast/toast.test.js +16594 -0
  73. package/dist/components/toast/toast.test.mjs +28 -0
  74. package/dist/components/toast/use-toast.d.mts +31 -0
  75. package/dist/components/toast/use-toast.d.ts +31 -0
  76. package/dist/components/toast/use-toast.js +3826 -0
  77. package/dist/components/toast/use-toast.mjs +17 -0
  78. package/dist/index.d.mts +4 -1
  79. package/dist/index.d.ts +4 -1
  80. package/dist/index.js +2244 -764
  81. package/dist/index.mjs +133 -19
  82. package/package.json +3 -2
  83. /package/dist/{chunk-M5PMA3CT.mjs → chunk-LUWGOKLG.mjs} +0 -0
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ import "../../chunk-LUWGOKLG.mjs";
3
+ import {
4
+ ToastProvider,
5
+ useToast
6
+ } from "../../chunk-FRIK4CS7.mjs";
7
+ import "../../chunk-ZOTHPHXA.mjs";
8
+ import {
9
+ toast_default
10
+ } from "../../chunk-HH2LF2SU.mjs";
11
+ import "../../chunk-ZYIIXWVY.mjs";
12
+ import "../../chunk-AHORH5PH.mjs";
13
+ import "../../chunk-QURXBWKK.mjs";
14
+ import "../../chunk-E3G5QXSH.mjs";
15
+ import "../../chunk-J725QONZ.mjs";
16
+ import "../../chunk-IZ6II3QA.mjs";
17
+ export {
18
+ toast_default as Toast,
19
+ ToastProvider,
20
+ useToast
21
+ };
@@ -0,0 +1,9 @@
1
+ type ToastPlacement = "top-left" | "top-right" | "top-center" | "bottom-left" | "bottom-right" | "bottom-center";
2
+ declare const getToastPosition: (placement: ToastPlacement, width: number, offset: number) => {
3
+ top: number | undefined;
4
+ left: number | undefined;
5
+ bottom: number | undefined;
6
+ right: number | undefined;
7
+ };
8
+
9
+ export { type ToastPlacement, getToastPosition };
@@ -0,0 +1,9 @@
1
+ type ToastPlacement = "top-left" | "top-right" | "top-center" | "bottom-left" | "bottom-right" | "bottom-center";
2
+ declare const getToastPosition: (placement: ToastPlacement, width: number, offset: number) => {
3
+ top: number | undefined;
4
+ left: number | undefined;
5
+ bottom: number | undefined;
6
+ right: number | undefined;
7
+ };
8
+
9
+ export { type ToastPlacement, getToastPosition };
@@ -0,0 +1,64 @@
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, width, offset) => {
28
+ let top = void 0;
29
+ let left = void 0;
30
+ let bottom = void 0;
31
+ let right = void 0;
32
+ const viewportWidth = window.innerWidth;
33
+ switch (placement) {
34
+ case "top-left":
35
+ top = offset;
36
+ left = offset;
37
+ break;
38
+ case "top-right":
39
+ top = offset;
40
+ right = offset;
41
+ break;
42
+ case "top-center":
43
+ top = offset;
44
+ left = (viewportWidth - width) / 2;
45
+ break;
46
+ case "bottom-left":
47
+ bottom = offset;
48
+ left = offset;
49
+ break;
50
+ case "bottom-right":
51
+ bottom = offset;
52
+ right = offset;
53
+ break;
54
+ case "bottom-center":
55
+ bottom = offset;
56
+ left = (viewportWidth - width) / 2;
57
+ break;
58
+ }
59
+ return { top, left, bottom, right };
60
+ };
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ getToastPosition
64
+ });
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import {
3
+ getToastPosition
4
+ } from "../../chunk-ZOTHPHXA.mjs";
5
+ import "../../chunk-IZ6II3QA.mjs";
6
+ export {
7
+ getToastPosition
8
+ };
@@ -0,0 +1,207 @@
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 { ToastPlacement } from './toast-utils.mjs';
7
+ import { IconName } from '../icon/Icon.mjs';
8
+ import 'react/jsx-runtime';
9
+ import '../icon/template.mjs';
10
+
11
+ interface Props {
12
+ icon?: IconName;
13
+ content?: ReactNode | string;
14
+ placement?: ToastPlacement;
15
+ classNames?: Record<string, string>;
16
+ showIcon?: boolean;
17
+ showCloseButton?: boolean;
18
+ onClose?: () => void;
19
+ }
20
+ type ToastProps = Props & ToastVariantProps;
21
+ declare const Toast: react.ForwardRefExoticComponent<Props & ToastVariantProps & react.RefAttributes<any>>;
22
+
23
+ declare const toast: tailwind_variants.TVReturnType<{
24
+ color: {
25
+ primary: {
26
+ base: string;
27
+ };
28
+ secondary: {
29
+ base: string;
30
+ };
31
+ default: {
32
+ base: string;
33
+ };
34
+ success: {
35
+ base: string;
36
+ };
37
+ info: {
38
+ base: string;
39
+ };
40
+ warning: {
41
+ base: string;
42
+ };
43
+ danger: {
44
+ base: string;
45
+ };
46
+ };
47
+ disableAnimation: {
48
+ true: {
49
+ base: string;
50
+ };
51
+ };
52
+ }, {
53
+ base: string[];
54
+ content: string[];
55
+ }, undefined, {
56
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
57
+ color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
58
+ disableAnimation?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
59
+ } | undefined;
60
+ } & tailwind_variants_dist_config.TWMConfig & {
61
+ twMergeConfig: {
62
+ classGroups: {
63
+ fontSize: {
64
+ text: string[];
65
+ }[];
66
+ borderRadius: {
67
+ rounded: string[];
68
+ }[];
69
+ boxShadow: {
70
+ shadow: string[];
71
+ }[];
72
+ padding: {
73
+ p: string[];
74
+ }[];
75
+ gap: {
76
+ gap: string[];
77
+ }[];
78
+ };
79
+ };
80
+ }, {
81
+ color: {
82
+ primary: {
83
+ base: string;
84
+ };
85
+ secondary: {
86
+ base: string;
87
+ };
88
+ default: {
89
+ base: string;
90
+ };
91
+ success: {
92
+ base: string;
93
+ };
94
+ info: {
95
+ base: string;
96
+ };
97
+ warning: {
98
+ base: string;
99
+ };
100
+ danger: {
101
+ base: string;
102
+ };
103
+ };
104
+ disableAnimation: {
105
+ true: {
106
+ base: string;
107
+ };
108
+ };
109
+ }, {
110
+ base: string[];
111
+ content: string[];
112
+ }, tailwind_variants.TVReturnType<{
113
+ color: {
114
+ primary: {
115
+ base: string;
116
+ };
117
+ secondary: {
118
+ base: string;
119
+ };
120
+ default: {
121
+ base: string;
122
+ };
123
+ success: {
124
+ base: string;
125
+ };
126
+ info: {
127
+ base: string;
128
+ };
129
+ warning: {
130
+ base: string;
131
+ };
132
+ danger: {
133
+ base: string;
134
+ };
135
+ };
136
+ disableAnimation: {
137
+ true: {
138
+ base: string;
139
+ };
140
+ };
141
+ }, {
142
+ base: string[];
143
+ content: string[];
144
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
145
+ color: {
146
+ primary: {
147
+ base: string;
148
+ };
149
+ secondary: {
150
+ base: string;
151
+ };
152
+ default: {
153
+ base: string;
154
+ };
155
+ success: {
156
+ base: string;
157
+ };
158
+ info: {
159
+ base: string;
160
+ };
161
+ warning: {
162
+ base: string;
163
+ };
164
+ danger: {
165
+ base: string;
166
+ };
167
+ };
168
+ disableAnimation: {
169
+ true: {
170
+ base: string;
171
+ };
172
+ };
173
+ }, {
174
+ color: {
175
+ primary: {
176
+ base: string;
177
+ };
178
+ secondary: {
179
+ base: string;
180
+ };
181
+ default: {
182
+ base: string;
183
+ };
184
+ success: {
185
+ base: string;
186
+ };
187
+ info: {
188
+ base: string;
189
+ };
190
+ warning: {
191
+ base: string;
192
+ };
193
+ danger: {
194
+ base: string;
195
+ };
196
+ };
197
+ disableAnimation: {
198
+ true: {
199
+ base: string;
200
+ };
201
+ };
202
+ }>, unknown, unknown, undefined>>;
203
+ type ToastVariantProps = VariantProps<typeof toast>;
204
+ type ToastSlots = keyof ReturnType<typeof toast>;
205
+ type ToastReturnType = ReturnType<typeof toast>;
206
+
207
+ export { type Props, type ToastProps, type ToastReturnType, type ToastSlots, type ToastVariantProps, Toast as default };
@@ -0,0 +1,207 @@
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 { ToastPlacement } from './toast-utils.js';
7
+ import { IconName } from '../icon/Icon.js';
8
+ import 'react/jsx-runtime';
9
+ import '../icon/template.js';
10
+
11
+ interface Props {
12
+ icon?: IconName;
13
+ content?: ReactNode | string;
14
+ placement?: ToastPlacement;
15
+ classNames?: Record<string, string>;
16
+ showIcon?: boolean;
17
+ showCloseButton?: boolean;
18
+ onClose?: () => void;
19
+ }
20
+ type ToastProps = Props & ToastVariantProps;
21
+ declare const Toast: react.ForwardRefExoticComponent<Props & ToastVariantProps & react.RefAttributes<any>>;
22
+
23
+ declare const toast: tailwind_variants.TVReturnType<{
24
+ color: {
25
+ primary: {
26
+ base: string;
27
+ };
28
+ secondary: {
29
+ base: string;
30
+ };
31
+ default: {
32
+ base: string;
33
+ };
34
+ success: {
35
+ base: string;
36
+ };
37
+ info: {
38
+ base: string;
39
+ };
40
+ warning: {
41
+ base: string;
42
+ };
43
+ danger: {
44
+ base: string;
45
+ };
46
+ };
47
+ disableAnimation: {
48
+ true: {
49
+ base: string;
50
+ };
51
+ };
52
+ }, {
53
+ base: string[];
54
+ content: string[];
55
+ }, undefined, {
56
+ responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
57
+ color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
58
+ disableAnimation?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
59
+ } | undefined;
60
+ } & tailwind_variants_dist_config.TWMConfig & {
61
+ twMergeConfig: {
62
+ classGroups: {
63
+ fontSize: {
64
+ text: string[];
65
+ }[];
66
+ borderRadius: {
67
+ rounded: string[];
68
+ }[];
69
+ boxShadow: {
70
+ shadow: string[];
71
+ }[];
72
+ padding: {
73
+ p: string[];
74
+ }[];
75
+ gap: {
76
+ gap: string[];
77
+ }[];
78
+ };
79
+ };
80
+ }, {
81
+ color: {
82
+ primary: {
83
+ base: string;
84
+ };
85
+ secondary: {
86
+ base: string;
87
+ };
88
+ default: {
89
+ base: string;
90
+ };
91
+ success: {
92
+ base: string;
93
+ };
94
+ info: {
95
+ base: string;
96
+ };
97
+ warning: {
98
+ base: string;
99
+ };
100
+ danger: {
101
+ base: string;
102
+ };
103
+ };
104
+ disableAnimation: {
105
+ true: {
106
+ base: string;
107
+ };
108
+ };
109
+ }, {
110
+ base: string[];
111
+ content: string[];
112
+ }, tailwind_variants.TVReturnType<{
113
+ color: {
114
+ primary: {
115
+ base: string;
116
+ };
117
+ secondary: {
118
+ base: string;
119
+ };
120
+ default: {
121
+ base: string;
122
+ };
123
+ success: {
124
+ base: string;
125
+ };
126
+ info: {
127
+ base: string;
128
+ };
129
+ warning: {
130
+ base: string;
131
+ };
132
+ danger: {
133
+ base: string;
134
+ };
135
+ };
136
+ disableAnimation: {
137
+ true: {
138
+ base: string;
139
+ };
140
+ };
141
+ }, {
142
+ base: string[];
143
+ content: string[];
144
+ }, undefined, tailwind_variants_dist_config.TVConfig<{
145
+ color: {
146
+ primary: {
147
+ base: string;
148
+ };
149
+ secondary: {
150
+ base: string;
151
+ };
152
+ default: {
153
+ base: string;
154
+ };
155
+ success: {
156
+ base: string;
157
+ };
158
+ info: {
159
+ base: string;
160
+ };
161
+ warning: {
162
+ base: string;
163
+ };
164
+ danger: {
165
+ base: string;
166
+ };
167
+ };
168
+ disableAnimation: {
169
+ true: {
170
+ base: string;
171
+ };
172
+ };
173
+ }, {
174
+ color: {
175
+ primary: {
176
+ base: string;
177
+ };
178
+ secondary: {
179
+ base: string;
180
+ };
181
+ default: {
182
+ base: string;
183
+ };
184
+ success: {
185
+ base: string;
186
+ };
187
+ info: {
188
+ base: string;
189
+ };
190
+ warning: {
191
+ base: string;
192
+ };
193
+ danger: {
194
+ base: string;
195
+ };
196
+ };
197
+ disableAnimation: {
198
+ true: {
199
+ base: string;
200
+ };
201
+ };
202
+ }>, unknown, unknown, undefined>>;
203
+ type ToastVariantProps = VariantProps<typeof toast>;
204
+ type ToastSlots = keyof ReturnType<typeof toast>;
205
+ type ToastReturnType = ReturnType<typeof toast>;
206
+
207
+ export { type Props, type ToastProps, type ToastReturnType, type ToastSlots, type ToastVariantProps, Toast as default };