@deepnoid/ui 0.1.0 → 0.1.1

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 (135) hide show
  1. package/.turbo/turbo-build.log +168 -168
  2. package/dist/{chunk-VWMXZUR2.mjs → chunk-2TJDQIKB.mjs} +1 -1
  3. package/dist/{chunk-IE2BRM7Z.mjs → chunk-2ZT6V4QR.mjs} +0 -9
  4. package/dist/{chunk-PKVQXVCS.mjs → chunk-56VCX2QR.mjs} +1 -1
  5. package/dist/{chunk-UAMIPCUD.mjs → chunk-AMA53H3C.mjs} +2 -2
  6. package/dist/{chunk-MW6Y3FSE.mjs → chunk-AYWI2CRE.mjs} +2 -2
  7. package/dist/{chunk-XAA5KY6A.mjs → chunk-CF6O6TCF.mjs} +1 -1
  8. package/dist/chunk-DUOYMLZL.mjs +283 -0
  9. package/dist/{chunk-QNA2GDTN.mjs → chunk-GLBASISV.mjs} +1 -1
  10. package/dist/{chunk-QJHZJRSQ.mjs → chunk-HKXUNG3H.mjs} +1 -1
  11. package/dist/{chunk-XTGRSVYO.mjs → chunk-J5WJD6XZ.mjs} +1 -1
  12. package/dist/chunk-M2IRRTFM.mjs +79 -0
  13. package/dist/{chunk-Q5WACGVP.mjs → chunk-N4F3R6HG.mjs} +1 -1
  14. package/dist/{chunk-WQBOPCH6.mjs → chunk-ON5SGXHZ.mjs} +1 -1
  15. package/dist/chunk-OQS4LGZK.mjs +27 -0
  16. package/dist/{chunk-KCYJYS66.mjs → chunk-RCU5MLBU.mjs} +1 -1
  17. package/dist/chunk-RT5NKQX4.mjs +285 -0
  18. package/dist/{chunk-X2MQCISM.mjs → chunk-S65S7QZ5.mjs} +1 -1
  19. package/dist/chunk-SPX2BHO2.mjs +314 -0
  20. package/dist/{chunk-3AMZ55Y6.mjs → chunk-SSEQSF5F.mjs} +3 -3
  21. package/dist/{chunk-RRL6KBU4.mjs → chunk-U2YKMXVG.mjs} +1 -1
  22. package/dist/{chunk-VBFXKJTI.mjs → chunk-VRGHUYRU.mjs} +2 -2
  23. package/dist/{chunk-5S4XGPBB.mjs → chunk-VVOOYDJS.mjs} +1 -1
  24. package/dist/{chunk-FYJZ7Q5L.mjs → chunk-XIHAABHB.mjs} +1 -1
  25. package/dist/{chunk-CATOSBI7.mjs → chunk-YCMZELLD.mjs} +2 -2
  26. package/dist/{chunk-2HSK6XGZ.mjs → chunk-YZNQ2QGK.mjs} +1 -1
  27. package/dist/{chunk-P5WT7WJO.mjs → chunk-ZEZ6ZA3N.mjs} +1 -1
  28. package/dist/components/avatar/avatar.js +0 -9
  29. package/dist/components/avatar/avatar.mjs +2 -2
  30. package/dist/components/avatar/index.js +0 -9
  31. package/dist/components/avatar/index.mjs +2 -2
  32. package/dist/components/backdrop/backdrop.js +0 -9
  33. package/dist/components/backdrop/backdrop.mjs +2 -2
  34. package/dist/components/backdrop/index.js +0 -9
  35. package/dist/components/backdrop/index.mjs +2 -2
  36. package/dist/components/breadcrumb/breadcrumb.js +0 -9
  37. package/dist/components/breadcrumb/breadcrumb.mjs +2 -2
  38. package/dist/components/breadcrumb/index.js +0 -9
  39. package/dist/components/breadcrumb/index.mjs +2 -2
  40. package/dist/components/button/button-group.js +0 -9
  41. package/dist/components/button/button-group.mjs +2 -2
  42. package/dist/components/button/button.js +0 -9
  43. package/dist/components/button/button.mjs +2 -2
  44. package/dist/components/button/index.js +0 -9
  45. package/dist/components/button/index.mjs +3 -3
  46. package/dist/components/checkbox/checkbox.js +0 -9
  47. package/dist/components/checkbox/checkbox.mjs +2 -2
  48. package/dist/components/checkbox/index.js +0 -9
  49. package/dist/components/checkbox/index.mjs +2 -2
  50. package/dist/components/chip/chip.js +0 -9
  51. package/dist/components/chip/chip.mjs +2 -2
  52. package/dist/components/chip/index.js +0 -9
  53. package/dist/components/chip/index.mjs +2 -2
  54. package/dist/components/dateTimePicker/calendar.js +0 -9
  55. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  56. package/dist/components/dateTimePicker/dateTimePicker.js +0 -9
  57. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  58. package/dist/components/dateTimePicker/index.js +0 -9
  59. package/dist/components/dateTimePicker/index.mjs +7 -7
  60. package/dist/components/dateTimePicker/timePicker.js +0 -9
  61. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  62. package/dist/components/input/index.d.mts +1 -1
  63. package/dist/components/input/index.d.ts +1 -1
  64. package/dist/components/input/index.js +429 -379
  65. package/dist/components/input/index.mjs +3 -2
  66. package/dist/components/input/input.d.mts +96 -81
  67. package/dist/components/input/input.d.ts +96 -81
  68. package/dist/components/input/input.js +429 -379
  69. package/dist/components/input/input.mjs +3 -2
  70. package/dist/components/list/index.js +0 -9
  71. package/dist/components/list/index.mjs +4 -4
  72. package/dist/components/list/list.js +0 -9
  73. package/dist/components/list/list.mjs +2 -2
  74. package/dist/components/list/listItem.js +0 -9
  75. package/dist/components/list/listItem.mjs +3 -3
  76. package/dist/components/modal/index.js +0 -9
  77. package/dist/components/modal/index.mjs +4 -4
  78. package/dist/components/modal/modal.js +0 -9
  79. package/dist/components/modal/modal.mjs +4 -4
  80. package/dist/components/pagination/index.d.mts +1 -1
  81. package/dist/components/pagination/index.d.ts +1 -1
  82. package/dist/components/pagination/index.js +320 -292
  83. package/dist/components/pagination/index.mjs +5 -4
  84. package/dist/components/pagination/pagination.d.mts +39 -95
  85. package/dist/components/pagination/pagination.d.ts +39 -95
  86. package/dist/components/pagination/pagination.js +322 -296
  87. package/dist/components/pagination/pagination.mjs +7 -8
  88. package/dist/components/radio/index.js +0 -9
  89. package/dist/components/radio/index.mjs +2 -2
  90. package/dist/components/radio/radio.js +0 -9
  91. package/dist/components/radio/radio.mjs +2 -2
  92. package/dist/components/select/index.js +0 -9
  93. package/dist/components/select/index.mjs +3 -3
  94. package/dist/components/select/option.js +0 -9
  95. package/dist/components/select/option.mjs +2 -2
  96. package/dist/components/select/select.js +0 -9
  97. package/dist/components/select/select.mjs +3 -3
  98. package/dist/components/table/index.js +1193 -775
  99. package/dist/components/table/index.mjs +10 -5
  100. package/dist/components/table/table-body.d.mts +10 -16
  101. package/dist/components/table/table-body.d.ts +10 -16
  102. package/dist/components/table/table-body.js +54 -3792
  103. package/dist/components/table/table-body.mjs +3 -6
  104. package/dist/components/table/table-head.d.mts +4 -6
  105. package/dist/components/table/table-head.d.ts +4 -6
  106. package/dist/components/table/table-head.js +6 -44
  107. package/dist/components/table/table-head.mjs +3 -3
  108. package/dist/components/table/table.d.mts +91 -231
  109. package/dist/components/table/table.d.ts +91 -231
  110. package/dist/components/table/table.js +1193 -775
  111. package/dist/components/table/table.mjs +10 -5
  112. package/dist/components/tabs/index.js +0 -9
  113. package/dist/components/tabs/index.mjs +2 -2
  114. package/dist/components/tabs/tabs.js +0 -9
  115. package/dist/components/tabs/tabs.mjs +2 -2
  116. package/dist/components/toast/index.js +0 -9
  117. package/dist/components/toast/index.mjs +3 -3
  118. package/dist/components/toast/toast.js +0 -9
  119. package/dist/components/toast/toast.mjs +2 -2
  120. package/dist/components/toast/use-toast.js +0 -9
  121. package/dist/components/toast/use-toast.mjs +3 -3
  122. package/dist/components/tooltip/index.js +0 -9
  123. package/dist/components/tooltip/index.mjs +2 -2
  124. package/dist/components/tooltip/tooltip.js +0 -9
  125. package/dist/components/tooltip/tooltip.mjs +2 -2
  126. package/dist/index.js +822 -958
  127. package/dist/index.mjs +46 -46
  128. package/dist/utils/tailwind-variants.js +0 -9
  129. package/dist/utils/tailwind-variants.mjs +1 -1
  130. package/package.json +1 -1
  131. package/dist/chunk-5IQKKLZY.mjs +0 -139
  132. package/dist/chunk-PFYYYUJW.mjs +0 -56
  133. package/dist/chunk-RQ76IOYC.mjs +0 -300
  134. package/dist/chunk-SK2A72R2.mjs +0 -263
  135. package/dist/chunk-YGOEKSNZ.mjs +0 -345
@@ -2,14 +2,15 @@
2
2
  import "../../chunk-7B7LRG5J.mjs";
3
3
  import {
4
4
  pagination_default
5
- } from "../../chunk-RQ76IOYC.mjs";
6
- import "../../chunk-F3HENRVM.mjs";
5
+ } from "../../chunk-DUOYMLZL.mjs";
7
6
  import "../../chunk-2GCSFWHD.mjs";
8
- import "../../chunk-SK2A72R2.mjs";
7
+ import "../../chunk-RT5NKQX4.mjs";
8
+ import "../../chunk-F3HENRVM.mjs";
9
9
  import "../../chunk-ZYIIXWVY.mjs";
10
10
  import "../../chunk-24NQEB73.mjs";
11
11
  import "../../chunk-P2TMIZRH.mjs";
12
- import "../../chunk-IE2BRM7Z.mjs";
12
+ import "../../chunk-2ZT6V4QR.mjs";
13
+ import "../../chunk-27Y6K5NK.mjs";
13
14
  import "../../chunk-E3G5QXSH.mjs";
14
15
  import "../../chunk-AC6TWLRT.mjs";
15
16
  export {
@@ -4,196 +4,140 @@ import * as react from 'react';
4
4
  import { ComponentPropsWithRef } from 'react';
5
5
  import { SlotsToClasses } from '../../utils/types.mjs';
6
6
 
7
- interface Props extends Omit<ComponentPropsWithRef<"div">, "ref"> {
7
+ type PaginationSlots = keyof ReturnType<typeof paginationStyle>;
8
+ interface PaginationBaseProps extends Omit<ComponentPropsWithRef<"div">, "ref" | "variant" | "size"> {
8
9
  classNames?: SlotsToClasses<PaginationSlots>;
9
10
  currentPage: number;
10
11
  totalPage: number;
11
12
  groupSize: number;
12
13
  showPageNumber?: boolean;
13
- showPageInput?: boolean;
14
14
  showPageLabel?: boolean;
15
15
  showFirstLastButtons?: boolean;
16
16
  handleChangePage?: (currentPage: number) => void;
17
17
  }
18
- type PaginationProps = Props & PaginationVariantProps;
19
- declare const Pagination: react.ForwardRefExoticComponent<Props & PaginationVariantProps & react.RefAttributes<HTMLDivElement>>;
18
+ declare const Pagination: react.ForwardRefExoticComponent<PaginationBaseProps & PaginationVariantProps & react.RefAttributes<HTMLDivElement>>;
20
19
 
21
- declare const pagination: tailwind_variants.TVReturnType<{
20
+ declare const paginationStyle: tailwind_variants.TVReturnType<{
22
21
  variant: {
23
22
  solid: {
24
23
  button: string[];
25
- icon: string;
26
24
  };
27
- line: {
28
- wrapper: string;
25
+ underline: {
29
26
  button: string[];
30
- icon: string;
31
27
  };
32
28
  };
33
29
  size: {
34
30
  sm: {
35
- wrapper: string;
36
- label: string;
37
- icon: string[];
38
31
  button: string[];
39
32
  };
40
33
  md: {
41
- wrapper: string;
42
- label: string;
43
- icon: string[];
44
34
  button: string[];
45
35
  };
46
36
  lg: {
47
- wrapper: string;
48
- label: string;
49
- icon: string[];
50
37
  button: string[];
51
38
  };
52
39
  xl: {
53
- wrapper: string;
54
- label: string;
55
- icon: string[];
56
40
  button: string[];
57
41
  };
58
42
  };
59
43
  color: {
60
- primary: {
61
- label: string;
62
- };
63
- secondary: {
64
- label: string;
65
- };
44
+ primary: {};
45
+ secondary: {};
46
+ neutral: {};
66
47
  };
67
48
  isDisabled: {
68
49
  true: {
69
- icon: string;
70
- button: string;
50
+ icon: string[];
51
+ button: string[];
71
52
  };
72
53
  };
73
54
  }, {
74
- base: string;
75
- label: string;
76
- wrapper: string;
77
- icon: string;
78
- button: string;
55
+ base: string[];
56
+ wrapper: string[];
57
+ icon: string[];
58
+ button: string[];
59
+ label: string[];
79
60
  }, undefined, {
80
61
  variant: {
81
62
  solid: {
82
63
  button: string[];
83
- icon: string;
84
64
  };
85
- line: {
86
- wrapper: string;
65
+ underline: {
87
66
  button: string[];
88
- icon: string;
89
67
  };
90
68
  };
91
69
  size: {
92
70
  sm: {
93
- wrapper: string;
94
- label: string;
95
- icon: string[];
96
71
  button: string[];
97
72
  };
98
73
  md: {
99
- wrapper: string;
100
- label: string;
101
- icon: string[];
102
74
  button: string[];
103
75
  };
104
76
  lg: {
105
- wrapper: string;
106
- label: string;
107
- icon: string[];
108
77
  button: string[];
109
78
  };
110
79
  xl: {
111
- wrapper: string;
112
- label: string;
113
- icon: string[];
114
80
  button: string[];
115
81
  };
116
82
  };
117
83
  color: {
118
- primary: {
119
- label: string;
120
- };
121
- secondary: {
122
- label: string;
123
- };
84
+ primary: {};
85
+ secondary: {};
86
+ neutral: {};
124
87
  };
125
88
  isDisabled: {
126
89
  true: {
127
- icon: string;
128
- button: string;
90
+ icon: string[];
91
+ button: string[];
129
92
  };
130
93
  };
131
94
  }, {
132
- base: string;
133
- label: string;
134
- wrapper: string;
135
- icon: string;
136
- button: string;
95
+ base: string[];
96
+ wrapper: string[];
97
+ icon: string[];
98
+ button: string[];
99
+ label: string[];
137
100
  }, tailwind_variants.TVReturnType<{
138
101
  variant: {
139
102
  solid: {
140
103
  button: string[];
141
- icon: string;
142
104
  };
143
- line: {
144
- wrapper: string;
105
+ underline: {
145
106
  button: string[];
146
- icon: string;
147
107
  };
148
108
  };
149
109
  size: {
150
110
  sm: {
151
- wrapper: string;
152
- label: string;
153
- icon: string[];
154
111
  button: string[];
155
112
  };
156
113
  md: {
157
- wrapper: string;
158
- label: string;
159
- icon: string[];
160
114
  button: string[];
161
115
  };
162
116
  lg: {
163
- wrapper: string;
164
- label: string;
165
- icon: string[];
166
117
  button: string[];
167
118
  };
168
119
  xl: {
169
- wrapper: string;
170
- label: string;
171
- icon: string[];
172
120
  button: string[];
173
121
  };
174
122
  };
175
123
  color: {
176
- primary: {
177
- label: string;
178
- };
179
- secondary: {
180
- label: string;
181
- };
124
+ primary: {};
125
+ secondary: {};
126
+ neutral: {};
182
127
  };
183
128
  isDisabled: {
184
129
  true: {
185
- icon: string;
186
- button: string;
130
+ icon: string[];
131
+ button: string[];
187
132
  };
188
133
  };
189
134
  }, {
190
- base: string;
191
- label: string;
192
- wrapper: string;
193
- icon: string;
194
- button: string;
135
+ base: string[];
136
+ wrapper: string[];
137
+ icon: string[];
138
+ button: string[];
139
+ label: string[];
195
140
  }, undefined, unknown, unknown, undefined>>;
196
- type PaginationVariantProps = VariantProps<typeof pagination>;
197
- type PaginationSlots = keyof ReturnType<typeof pagination>;
141
+ type PaginationVariantProps = VariantProps<typeof paginationStyle>;
198
142
 
199
- export { Pagination, type PaginationProps, type PaginationSlots, type PaginationVariantProps, type Props, Pagination as default, pagination };
143
+ export { Pagination as default, paginationStyle };
@@ -4,196 +4,140 @@ import * as react from 'react';
4
4
  import { ComponentPropsWithRef } from 'react';
5
5
  import { SlotsToClasses } from '../../utils/types.js';
6
6
 
7
- interface Props extends Omit<ComponentPropsWithRef<"div">, "ref"> {
7
+ type PaginationSlots = keyof ReturnType<typeof paginationStyle>;
8
+ interface PaginationBaseProps extends Omit<ComponentPropsWithRef<"div">, "ref" | "variant" | "size"> {
8
9
  classNames?: SlotsToClasses<PaginationSlots>;
9
10
  currentPage: number;
10
11
  totalPage: number;
11
12
  groupSize: number;
12
13
  showPageNumber?: boolean;
13
- showPageInput?: boolean;
14
14
  showPageLabel?: boolean;
15
15
  showFirstLastButtons?: boolean;
16
16
  handleChangePage?: (currentPage: number) => void;
17
17
  }
18
- type PaginationProps = Props & PaginationVariantProps;
19
- declare const Pagination: react.ForwardRefExoticComponent<Props & PaginationVariantProps & react.RefAttributes<HTMLDivElement>>;
18
+ declare const Pagination: react.ForwardRefExoticComponent<PaginationBaseProps & PaginationVariantProps & react.RefAttributes<HTMLDivElement>>;
20
19
 
21
- declare const pagination: tailwind_variants.TVReturnType<{
20
+ declare const paginationStyle: tailwind_variants.TVReturnType<{
22
21
  variant: {
23
22
  solid: {
24
23
  button: string[];
25
- icon: string;
26
24
  };
27
- line: {
28
- wrapper: string;
25
+ underline: {
29
26
  button: string[];
30
- icon: string;
31
27
  };
32
28
  };
33
29
  size: {
34
30
  sm: {
35
- wrapper: string;
36
- label: string;
37
- icon: string[];
38
31
  button: string[];
39
32
  };
40
33
  md: {
41
- wrapper: string;
42
- label: string;
43
- icon: string[];
44
34
  button: string[];
45
35
  };
46
36
  lg: {
47
- wrapper: string;
48
- label: string;
49
- icon: string[];
50
37
  button: string[];
51
38
  };
52
39
  xl: {
53
- wrapper: string;
54
- label: string;
55
- icon: string[];
56
40
  button: string[];
57
41
  };
58
42
  };
59
43
  color: {
60
- primary: {
61
- label: string;
62
- };
63
- secondary: {
64
- label: string;
65
- };
44
+ primary: {};
45
+ secondary: {};
46
+ neutral: {};
66
47
  };
67
48
  isDisabled: {
68
49
  true: {
69
- icon: string;
70
- button: string;
50
+ icon: string[];
51
+ button: string[];
71
52
  };
72
53
  };
73
54
  }, {
74
- base: string;
75
- label: string;
76
- wrapper: string;
77
- icon: string;
78
- button: string;
55
+ base: string[];
56
+ wrapper: string[];
57
+ icon: string[];
58
+ button: string[];
59
+ label: string[];
79
60
  }, undefined, {
80
61
  variant: {
81
62
  solid: {
82
63
  button: string[];
83
- icon: string;
84
64
  };
85
- line: {
86
- wrapper: string;
65
+ underline: {
87
66
  button: string[];
88
- icon: string;
89
67
  };
90
68
  };
91
69
  size: {
92
70
  sm: {
93
- wrapper: string;
94
- label: string;
95
- icon: string[];
96
71
  button: string[];
97
72
  };
98
73
  md: {
99
- wrapper: string;
100
- label: string;
101
- icon: string[];
102
74
  button: string[];
103
75
  };
104
76
  lg: {
105
- wrapper: string;
106
- label: string;
107
- icon: string[];
108
77
  button: string[];
109
78
  };
110
79
  xl: {
111
- wrapper: string;
112
- label: string;
113
- icon: string[];
114
80
  button: string[];
115
81
  };
116
82
  };
117
83
  color: {
118
- primary: {
119
- label: string;
120
- };
121
- secondary: {
122
- label: string;
123
- };
84
+ primary: {};
85
+ secondary: {};
86
+ neutral: {};
124
87
  };
125
88
  isDisabled: {
126
89
  true: {
127
- icon: string;
128
- button: string;
90
+ icon: string[];
91
+ button: string[];
129
92
  };
130
93
  };
131
94
  }, {
132
- base: string;
133
- label: string;
134
- wrapper: string;
135
- icon: string;
136
- button: string;
95
+ base: string[];
96
+ wrapper: string[];
97
+ icon: string[];
98
+ button: string[];
99
+ label: string[];
137
100
  }, tailwind_variants.TVReturnType<{
138
101
  variant: {
139
102
  solid: {
140
103
  button: string[];
141
- icon: string;
142
104
  };
143
- line: {
144
- wrapper: string;
105
+ underline: {
145
106
  button: string[];
146
- icon: string;
147
107
  };
148
108
  };
149
109
  size: {
150
110
  sm: {
151
- wrapper: string;
152
- label: string;
153
- icon: string[];
154
111
  button: string[];
155
112
  };
156
113
  md: {
157
- wrapper: string;
158
- label: string;
159
- icon: string[];
160
114
  button: string[];
161
115
  };
162
116
  lg: {
163
- wrapper: string;
164
- label: string;
165
- icon: string[];
166
117
  button: string[];
167
118
  };
168
119
  xl: {
169
- wrapper: string;
170
- label: string;
171
- icon: string[];
172
120
  button: string[];
173
121
  };
174
122
  };
175
123
  color: {
176
- primary: {
177
- label: string;
178
- };
179
- secondary: {
180
- label: string;
181
- };
124
+ primary: {};
125
+ secondary: {};
126
+ neutral: {};
182
127
  };
183
128
  isDisabled: {
184
129
  true: {
185
- icon: string;
186
- button: string;
130
+ icon: string[];
131
+ button: string[];
187
132
  };
188
133
  };
189
134
  }, {
190
- base: string;
191
- label: string;
192
- wrapper: string;
193
- icon: string;
194
- button: string;
135
+ base: string[];
136
+ wrapper: string[];
137
+ icon: string[];
138
+ button: string[];
139
+ label: string[];
195
140
  }, undefined, unknown, unknown, undefined>>;
196
- type PaginationVariantProps = VariantProps<typeof pagination>;
197
- type PaginationSlots = keyof ReturnType<typeof pagination>;
141
+ type PaginationVariantProps = VariantProps<typeof paginationStyle>;
198
142
 
199
- export { Pagination, type PaginationProps, type PaginationSlots, type PaginationVariantProps, type Props, Pagination as default, pagination };
143
+ export { Pagination as default, paginationStyle };