@deepnoid/ui 0.1.0 → 0.1.2

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 +173 -173
  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-XAA5KY6A.mjs → chunk-CF6O6TCF.mjs} +1 -1
  7. package/dist/{chunk-3AMZ55Y6.mjs → chunk-DNFBQYVG.mjs} +3 -3
  8. package/dist/{chunk-QNA2GDTN.mjs → chunk-GLBASISV.mjs} +1 -1
  9. package/dist/{chunk-QJHZJRSQ.mjs → chunk-HKXUNG3H.mjs} +1 -1
  10. package/dist/{chunk-XTGRSVYO.mjs → chunk-J5WJD6XZ.mjs} +1 -1
  11. package/dist/{chunk-MW6Y3FSE.mjs → chunk-KWWYMTJP.mjs} +4 -4
  12. package/dist/chunk-M2IRRTFM.mjs +79 -0
  13. package/dist/{chunk-Q5WACGVP.mjs → chunk-N4F3R6HG.mjs} +1 -1
  14. package/dist/chunk-OELLMF2V.mjs +283 -0
  15. package/dist/{chunk-WQBOPCH6.mjs → chunk-ON5SGXHZ.mjs} +1 -1
  16. package/dist/chunk-OQS4LGZK.mjs +27 -0
  17. package/dist/chunk-OYNGJ33M.mjs +285 -0
  18. package/dist/{chunk-KCYJYS66.mjs → chunk-RCU5MLBU.mjs} +1 -1
  19. package/dist/{chunk-X2MQCISM.mjs → chunk-S65S7QZ5.mjs} +1 -1
  20. package/dist/chunk-TMSBICKB.mjs +314 -0
  21. package/dist/{chunk-RRL6KBU4.mjs → chunk-U2YKMXVG.mjs} +1 -1
  22. package/dist/{chunk-CATOSBI7.mjs → chunk-VP3NVHFU.mjs} +2 -2
  23. package/dist/{chunk-VBFXKJTI.mjs → chunk-VRGHUYRU.mjs} +2 -2
  24. package/dist/{chunk-5S4XGPBB.mjs → chunk-VVOOYDJS.mjs} +1 -1
  25. package/dist/{chunk-FYJZ7Q5L.mjs → chunk-XIHAABHB.mjs} +1 -1
  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 +4 -3
  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 +6 -7
  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 +56 -56
  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
@@ -108,252 +108,6 @@ __export(input_exports, {
108
108
  module.exports = __toCommonJS(input_exports);
109
109
  var import_react = __toESM(require("react"));
110
110
 
111
- // src/utils/tailwind-variants.ts
112
- var import_tailwind_variants = require("tailwind-variants");
113
-
114
- // ../tailwind-config/src/plugin.ts
115
- var import_plugin = __toESM(require_plugin());
116
-
117
- // ../tailwind-config/src/typography/font.ts
118
- var fontSize = {
119
- h1: [
120
- "40px",
121
- {
122
- letterSpacing: "-2%",
123
- fontWeight: "700"
124
- }
125
- ],
126
- h2: [
127
- "34px",
128
- {
129
- letterSpacing: "-2%",
130
- fontWeight: "700"
131
- }
132
- ],
133
- h3: [
134
- "28px",
135
- {
136
- letterSpacing: "-2%",
137
- fontWeight: "700"
138
- }
139
- ],
140
- h4: [
141
- "24px",
142
- {
143
- letterSpacing: "-2%",
144
- fontWeight: "700"
145
- }
146
- ],
147
- h5: [
148
- "20px",
149
- {
150
- letterSpacing: "-2%",
151
- fontWeight: "600"
152
- }
153
- ],
154
- sm: [
155
- "12px",
156
- {
157
- lineHeight: "18px",
158
- letterSpacing: "-2%",
159
- fontWeight: "400"
160
- }
161
- ],
162
- md: [
163
- "14px",
164
- {
165
- lineHeight: "21px",
166
- letterSpacing: "-2%",
167
- fontWeight: "400"
168
- }
169
- ],
170
- lg: [
171
- "16px",
172
- {
173
- lineHeight: "24px",
174
- letterSpacing: "-2%",
175
- fontWeight: "400"
176
- }
177
- ],
178
- xl: [
179
- "18px",
180
- {
181
- lineHeight: "27px",
182
- letterSpacing: "-2%",
183
- fontWeight: "400"
184
- }
185
- ]
186
- };
187
-
188
- // ../tailwind-config/src/animation/slide.ts
189
- var sliceAnimation = {
190
- slideInFromTop: "slideInFromTop 0.5s ease-out",
191
- slideInFromBottom: "slideInFromBottom 0.5s ease-out",
192
- slideInFromLeft: "slideInFromLeft 0.5s ease-out",
193
- slideInFromRight: "slideInFromRight 0.5s ease-out",
194
- slideOutToTop: "slideOutToTop 0.5s ease-in",
195
- slideOutToBottom: "slideOutToBottom 0.5s ease-in",
196
- slideOutToLeft: "slideOutToLeft 0.5s ease-in",
197
- slideOutToRight: "slideOutToRight 0.5s ease-in"
198
- };
199
- var sliceKeyframe = {
200
- slideInFromTop: {
201
- "0%": {
202
- transform: "translateY(-10px)",
203
- opacity: "0"
204
- },
205
- "100%": {
206
- transform: "translateY(0)",
207
- opacity: "1"
208
- }
209
- },
210
- slideInFromBottom: {
211
- "0%": {
212
- transform: "translateY(10px)",
213
- opacity: "0"
214
- },
215
- "100%": {
216
- transform: "translateY(0)",
217
- opacity: "1"
218
- }
219
- },
220
- slideInFromLeft: {
221
- "0%": {
222
- transform: "translateX(-10px)",
223
- opacity: "0"
224
- },
225
- "100%": {
226
- transform: "translateX(0)",
227
- opacity: "1"
228
- }
229
- },
230
- slideInFromRight: {
231
- "0%": {
232
- transform: "translateX(10px)",
233
- opacity: "0"
234
- },
235
- "100%": {
236
- transform: "translateX(0)",
237
- opacity: "1"
238
- }
239
- },
240
- slideOutToTop: {
241
- "0%": {
242
- transform: "translateY(0)",
243
- opacity: "1"
244
- },
245
- "100%": {
246
- transform: "translateY(-10px)",
247
- opacity: "0"
248
- }
249
- },
250
- slideOutToBottom: {
251
- "0%": {
252
- transform: "translateY(0)",
253
- opacity: "1"
254
- },
255
- "100%": {
256
- transform: "translateY(10px)",
257
- opacity: "0"
258
- }
259
- },
260
- slideOutToLeft: {
261
- "0%": {
262
- transform: "translateX(0)",
263
- opacity: "1"
264
- },
265
- "100%": {
266
- transform: "translateX(-10px)",
267
- opacity: "0"
268
- }
269
- },
270
- slideOutToRight: {
271
- "0%": {
272
- transform: "translateX(0)",
273
- opacity: "1"
274
- },
275
- "100%": {
276
- transform: "translateX(10px)",
277
- opacity: "0"
278
- }
279
- }
280
- };
281
-
282
- // ../tailwind-config/src/animation/index.ts
283
- var animation = { ...sliceAnimation };
284
- var keyframes = { ...sliceKeyframe };
285
-
286
- // ../tailwind-config/src/shadow/index.ts
287
- var boxShadow = {
288
- "border-1": "inner 0 0 0 1px inset",
289
- "border-2": "inner 0 0 0 2px inset",
290
- "border-3": "inner 0 0 0 3px inset",
291
- "border-4": "inner 0 0 0 4px inset",
292
- "border-5": "inner 0 0 0 5px inset",
293
- "border-6": "inner 0 0 0 6px inset",
294
- "border-7": "inner 0 0 0 7px inset",
295
- "border-8": "inner 0 0 0 8px inset",
296
- "border-9": "inner 0 0 0 9px inset",
297
- "border-10": "inner 0 0 0 10px inset",
298
- inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
299
- drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)"
300
- };
301
-
302
- // ../tailwind-config/src/border/radius.ts
303
- var borderRadius = {
304
- sm: "4px",
305
- md: "6px",
306
- lg: "8px",
307
- xl: "10px",
308
- none: "0",
309
- full: "9999px"
310
- };
311
-
312
- // ../tailwind-config/src/space/gap.ts
313
- var gap = {
314
- sm: "4px",
315
- md: "6px",
316
- lg: "8px",
317
- xl: "10px"
318
- };
319
-
320
- // src/utils/tailwind-variants.ts
321
- function typedKeys(obj) {
322
- return Object.keys(obj);
323
- }
324
- var COMMON_SIZE = ["sm", "md", "lg", "xl"];
325
- var tv = (0, import_tailwind_variants.createTV)({
326
- twMergeConfig: {
327
- classGroups: {
328
- fontSize: [{ text: [...typedKeys(fontSize)] }],
329
- borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
330
- boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
331
- padding: [{ p: [...COMMON_SIZE] }],
332
- gap: [{ gap: [...typedKeys(gap)] }]
333
- }
334
- }
335
- });
336
-
337
- // src/utils/props.ts
338
- var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
339
- if (!variantKeys) {
340
- return [props, {}];
341
- }
342
- const picked = variantKeys.reduce((acc, key) => {
343
- if (key in props) {
344
- return { ...acc, [key]: props[key] };
345
- } else {
346
- return acc;
347
- }
348
- }, {});
349
- if (removeVariantProps) {
350
- const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
351
- return [omitted, picked];
352
- } else {
353
- return [props, picked];
354
- }
355
- };
356
-
357
111
  // src/components/icon/template.tsx
358
112
  var import_jsx_runtime = require("react/jsx-runtime");
359
113
  var template = {
@@ -4026,46 +3780,290 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
4026
3780
  };
4027
3781
  var Icon_default = Icon;
4028
3782
 
4029
- // src/components/input/input.tsx
4030
- var import_jsx_runtime3 = require("react/jsx-runtime");
4031
- var Input = (0, import_react.forwardRef)((originalProps, ref) => {
4032
- const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
4033
- const { classNames, label, errorMessage, startContent, endContent, ...inputProps } = props;
4034
- const inputRef = (0, import_react.useRef)(null);
4035
- const slots = (0, import_react.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
4036
- const getBaseProps = (0, import_react.useCallback)(
4037
- () => ({
4038
- className: slots.base({ class: classNames == null ? void 0 : classNames.base })
4039
- }),
4040
- [slots, classNames]
4041
- );
4042
- const getLabelProps = (0, import_react.useCallback)(
4043
- () => ({
4044
- className: slots.label({ class: classNames == null ? void 0 : classNames.label })
4045
- }),
4046
- [slots, classNames]
4047
- );
4048
- const getInnerWrapperProps = (0, import_react.useCallback)(
4049
- () => ({
4050
- className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper })
4051
- }),
4052
- [slots, classNames]
4053
- );
4054
- const getInputWrapperProps = (0, import_react.useCallback)(
4055
- () => ({
4056
- className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper })
4057
- }),
4058
- [slots, classNames]
4059
- );
4060
- const getInputProps = (0, import_react.useCallback)(
4061
- () => ({
4062
- ...inputProps,
4063
- ref: ref || inputRef,
4064
- className: slots.input({ class: classNames == null ? void 0 : classNames.input }),
4065
- size: 0
4066
- }),
4067
- [slots, classNames, inputProps, ref]
4068
- );
3783
+ // src/utils/tailwind-variants.ts
3784
+ var import_tailwind_variants = require("tailwind-variants");
3785
+
3786
+ // ../tailwind-config/src/plugin.ts
3787
+ var import_plugin = __toESM(require_plugin());
3788
+
3789
+ // ../tailwind-config/src/typography/font.ts
3790
+ var fontSize = {
3791
+ h1: [
3792
+ "40px",
3793
+ {
3794
+ fontWeight: "700"
3795
+ }
3796
+ ],
3797
+ h2: [
3798
+ "34px",
3799
+ {
3800
+ fontWeight: "700"
3801
+ }
3802
+ ],
3803
+ h3: [
3804
+ "28px",
3805
+ {
3806
+ fontWeight: "700"
3807
+ }
3808
+ ],
3809
+ h4: [
3810
+ "24px",
3811
+ {
3812
+ fontWeight: "700"
3813
+ }
3814
+ ],
3815
+ h5: [
3816
+ "20px",
3817
+ {
3818
+ fontWeight: "600"
3819
+ }
3820
+ ],
3821
+ sm: [
3822
+ "12px",
3823
+ {
3824
+ lineHeight: "18px",
3825
+ fontWeight: "400"
3826
+ }
3827
+ ],
3828
+ md: [
3829
+ "14px",
3830
+ {
3831
+ lineHeight: "21px",
3832
+ fontWeight: "400"
3833
+ }
3834
+ ],
3835
+ lg: [
3836
+ "16px",
3837
+ {
3838
+ lineHeight: "24px",
3839
+ fontWeight: "400"
3840
+ }
3841
+ ],
3842
+ xl: [
3843
+ "18px",
3844
+ {
3845
+ lineHeight: "27px",
3846
+ fontWeight: "400"
3847
+ }
3848
+ ]
3849
+ };
3850
+
3851
+ // ../tailwind-config/src/animation/slide.ts
3852
+ var sliceAnimation = {
3853
+ slideInFromTop: "slideInFromTop 0.5s ease-out",
3854
+ slideInFromBottom: "slideInFromBottom 0.5s ease-out",
3855
+ slideInFromLeft: "slideInFromLeft 0.5s ease-out",
3856
+ slideInFromRight: "slideInFromRight 0.5s ease-out",
3857
+ slideOutToTop: "slideOutToTop 0.5s ease-in",
3858
+ slideOutToBottom: "slideOutToBottom 0.5s ease-in",
3859
+ slideOutToLeft: "slideOutToLeft 0.5s ease-in",
3860
+ slideOutToRight: "slideOutToRight 0.5s ease-in"
3861
+ };
3862
+ var sliceKeyframe = {
3863
+ slideInFromTop: {
3864
+ "0%": {
3865
+ transform: "translateY(-10px)",
3866
+ opacity: "0"
3867
+ },
3868
+ "100%": {
3869
+ transform: "translateY(0)",
3870
+ opacity: "1"
3871
+ }
3872
+ },
3873
+ slideInFromBottom: {
3874
+ "0%": {
3875
+ transform: "translateY(10px)",
3876
+ opacity: "0"
3877
+ },
3878
+ "100%": {
3879
+ transform: "translateY(0)",
3880
+ opacity: "1"
3881
+ }
3882
+ },
3883
+ slideInFromLeft: {
3884
+ "0%": {
3885
+ transform: "translateX(-10px)",
3886
+ opacity: "0"
3887
+ },
3888
+ "100%": {
3889
+ transform: "translateX(0)",
3890
+ opacity: "1"
3891
+ }
3892
+ },
3893
+ slideInFromRight: {
3894
+ "0%": {
3895
+ transform: "translateX(10px)",
3896
+ opacity: "0"
3897
+ },
3898
+ "100%": {
3899
+ transform: "translateX(0)",
3900
+ opacity: "1"
3901
+ }
3902
+ },
3903
+ slideOutToTop: {
3904
+ "0%": {
3905
+ transform: "translateY(0)",
3906
+ opacity: "1"
3907
+ },
3908
+ "100%": {
3909
+ transform: "translateY(-10px)",
3910
+ opacity: "0"
3911
+ }
3912
+ },
3913
+ slideOutToBottom: {
3914
+ "0%": {
3915
+ transform: "translateY(0)",
3916
+ opacity: "1"
3917
+ },
3918
+ "100%": {
3919
+ transform: "translateY(10px)",
3920
+ opacity: "0"
3921
+ }
3922
+ },
3923
+ slideOutToLeft: {
3924
+ "0%": {
3925
+ transform: "translateX(0)",
3926
+ opacity: "1"
3927
+ },
3928
+ "100%": {
3929
+ transform: "translateX(-10px)",
3930
+ opacity: "0"
3931
+ }
3932
+ },
3933
+ slideOutToRight: {
3934
+ "0%": {
3935
+ transform: "translateX(0)",
3936
+ opacity: "1"
3937
+ },
3938
+ "100%": {
3939
+ transform: "translateX(10px)",
3940
+ opacity: "0"
3941
+ }
3942
+ }
3943
+ };
3944
+
3945
+ // ../tailwind-config/src/animation/index.ts
3946
+ var animation = { ...sliceAnimation };
3947
+ var keyframes = { ...sliceKeyframe };
3948
+
3949
+ // ../tailwind-config/src/shadow/index.ts
3950
+ var boxShadow = {
3951
+ "border-1": "inner 0 0 0 1px inset",
3952
+ "border-2": "inner 0 0 0 2px inset",
3953
+ "border-3": "inner 0 0 0 3px inset",
3954
+ "border-4": "inner 0 0 0 4px inset",
3955
+ "border-5": "inner 0 0 0 5px inset",
3956
+ "border-6": "inner 0 0 0 6px inset",
3957
+ "border-7": "inner 0 0 0 7px inset",
3958
+ "border-8": "inner 0 0 0 8px inset",
3959
+ "border-9": "inner 0 0 0 9px inset",
3960
+ "border-10": "inner 0 0 0 10px inset",
3961
+ inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
3962
+ drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)"
3963
+ };
3964
+
3965
+ // ../tailwind-config/src/border/radius.ts
3966
+ var borderRadius = {
3967
+ sm: "4px",
3968
+ md: "6px",
3969
+ lg: "8px",
3970
+ xl: "10px",
3971
+ none: "0",
3972
+ full: "9999px"
3973
+ };
3974
+
3975
+ // ../tailwind-config/src/space/gap.ts
3976
+ var gap = {
3977
+ sm: "4px",
3978
+ md: "6px",
3979
+ lg: "8px",
3980
+ xl: "10px"
3981
+ };
3982
+
3983
+ // src/utils/tailwind-variants.ts
3984
+ function typedKeys(obj) {
3985
+ return Object.keys(obj);
3986
+ }
3987
+ var COMMON_SIZE = ["sm", "md", "lg", "xl"];
3988
+ var tv = (0, import_tailwind_variants.createTV)({
3989
+ twMergeConfig: {
3990
+ classGroups: {
3991
+ fontSize: [{ text: [...typedKeys(fontSize)] }],
3992
+ borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
3993
+ boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
3994
+ padding: [{ p: [...COMMON_SIZE] }],
3995
+ gap: [{ gap: [...typedKeys(gap)] }]
3996
+ }
3997
+ }
3998
+ });
3999
+
4000
+ // src/utils/props.ts
4001
+ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
4002
+ if (!variantKeys) {
4003
+ return [props, {}];
4004
+ }
4005
+ const picked = variantKeys.reduce((acc, key) => {
4006
+ if (key in props) {
4007
+ return { ...acc, [key]: props[key] };
4008
+ } else {
4009
+ return acc;
4010
+ }
4011
+ }, {});
4012
+ if (removeVariantProps) {
4013
+ const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
4014
+ return [omitted, picked];
4015
+ } else {
4016
+ return [props, picked];
4017
+ }
4018
+ };
4019
+
4020
+ // src/utils/clsx.ts
4021
+ function clsx(...args) {
4022
+ var i = 0, tmp, x, str = "";
4023
+ while (i < args.length) {
4024
+ if (tmp = args[i++]) {
4025
+ if (x = toVal(tmp)) {
4026
+ str && (str += " ");
4027
+ str += x;
4028
+ }
4029
+ }
4030
+ }
4031
+ return str;
4032
+ }
4033
+ function toVal(mix) {
4034
+ var k, y, str = "";
4035
+ if (typeof mix === "string" || typeof mix === "number") {
4036
+ str += mix;
4037
+ } else if (typeof mix === "object") {
4038
+ if (Array.isArray(mix)) {
4039
+ var len = mix.length;
4040
+ for (k = 0; k < len; k++) {
4041
+ if (mix[k]) {
4042
+ if (y = toVal(mix[k])) {
4043
+ str && (str += " ");
4044
+ str += y;
4045
+ }
4046
+ }
4047
+ }
4048
+ } else {
4049
+ for (y in mix) {
4050
+ if (mix[y]) {
4051
+ str && (str += " ");
4052
+ str += y;
4053
+ }
4054
+ }
4055
+ }
4056
+ }
4057
+ return str;
4058
+ }
4059
+
4060
+ // src/components/input/input.tsx
4061
+ var import_jsx_runtime3 = require("react/jsx-runtime");
4062
+ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
4063
+ const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
4064
+ const { classNames, label, helperText, errorText, startContent, endContent, ...inputProps } = props;
4065
+ const inputRef = (0, import_react.useRef)(null);
4066
+ const slots = (0, import_react.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
4069
4067
  const getContentProps = (0, import_react.useCallback)(
4070
4068
  () => ({
4071
4069
  className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
@@ -4073,12 +4071,6 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
4073
4071
  }),
4074
4072
  [slots, classNames, originalProps.size]
4075
4073
  );
4076
- const getErrorMessageProps = (0, import_react.useCallback)(
4077
- () => ({
4078
- className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
4079
- }),
4080
- [slots, classNames]
4081
- );
4082
4074
  const renderStartContent = () => {
4083
4075
  if (import_react.default.isValidElement(startContent)) {
4084
4076
  const existingProps = startContent.props;
@@ -4112,7 +4104,7 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
4112
4104
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
4113
4105
  };
4114
4106
  return import_react.default.cloneElement(endContent, mergedProps);
4115
- } else if (errorMessage) {
4107
+ } else if (errorText) {
4116
4108
  const iconProps = { ...getContentProps(), className: getContentProps().className };
4117
4109
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
4118
4110
  } else {
@@ -4131,146 +4123,204 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
4131
4123
  return renderContentWithIcon();
4132
4124
  }
4133
4125
  };
4134
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ...getBaseProps(), children: [
4135
- label && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { ...getLabelProps(), children: label }),
4136
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ...getInnerWrapperProps(), children: [
4137
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ...getInputWrapperProps(), children: [
4138
- startContent && renderStartContent(),
4139
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { ...getInputProps() }),
4140
- renderEndContent()
4141
- ] }),
4142
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
4143
- ] })
4144
- ] });
4126
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4127
+ "div",
4128
+ {
4129
+ className: clsx(
4130
+ slots.base({ class: classNames == null ? void 0 : classNames.base }),
4131
+ variantProps.direction === "horizon" ? slots.horizon({ class: classNames == null ? void 0 : classNames.horizon }) : slots.vertical({ class: classNames == null ? void 0 : classNames.vertical })
4132
+ ),
4133
+ children: [
4134
+ label && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
4135
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper }), children: [
4136
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
4137
+ "div",
4138
+ {
4139
+ className: clsx(
4140
+ slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
4141
+ inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
4142
+ ),
4143
+ children: [
4144
+ startContent && renderStartContent(),
4145
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { ...inputProps, ref: ref || inputRef, className: slots.input({ class: classNames == null ? void 0 : classNames.input }), size: 0 }),
4146
+ renderEndContent()
4147
+ ]
4148
+ }
4149
+ ),
4150
+ helperText && !errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.helperText({ class: classNames == null ? void 0 : classNames.helperText }), children: helperText }),
4151
+ errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: clsx("error", slots.errorText({ class: classNames == null ? void 0 : classNames.errorText })), children: errorText })
4152
+ ] })
4153
+ ]
4154
+ }
4155
+ );
4145
4156
  });
4146
4157
  Input.displayName = "Input";
4147
4158
  var input_default = Input;
4148
4159
  var inputStyle = tv({
4149
4160
  slots: {
4150
- base: ["group/input", "flex", "flex-col"],
4151
- label: ["flex", "items-center"],
4161
+ base: ["group/input", "flex"],
4162
+ vertical: ["flex-col"],
4163
+ horizon: ["flex-row", "gap-0"],
4164
+ label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
4152
4165
  innerWrapper: ["flex", "flex-col"],
4153
- inputWrapper: [
4166
+ inputWrapper: ["flex", "items-center", "transition", "duration-200", "group-has-[p.error]/input:bg-danger-soft"],
4167
+ input: [
4168
+ "w-full",
4169
+ "h-full",
4170
+ "bg-transparent",
4171
+ "text-neutral-main",
4172
+ "placeholder:text-neutral-main",
4173
+ "focus:outline-none",
4174
+ "focus:ring-0",
4175
+ "group-has-[:hover]/input:text-neutral-dark",
4176
+ "group-has-[:hover]/input:placeholder:text-neutral-dark",
4177
+ "group-has-[:focus]/input:text-neutral-dark",
4178
+ "group-has-[:focus]/input:placeholder:text-neutral-dark",
4179
+ "group-has-[p.error]/input:text-danger-main",
4180
+ "group-has-[p.error]/input:placeholder:text-danger-main"
4181
+ ],
4182
+ content: [
4154
4183
  "flex",
4155
4184
  "items-center",
4156
- "transition",
4157
- "duration-200",
4158
- "group-has-[p]/input:border-danger-main",
4159
- "group-has-[p]/input:bg-danger-soft"
4185
+ "select-none",
4186
+ "text-neutral-main",
4187
+ "group-has-[:hover]/input:text-neutral-dark",
4188
+ "group-has-[p.error]/input:text-danger-main"
4160
4189
  ],
4161
- input: ["w-full", "h-full", "bg-transparent", "placeholder:text-neutral-main", "focus-visible:outline-none"],
4162
- content: ["flex", "items-center", "select-none", "group-has-[p]/input:text-danger-main"],
4163
- errorMessage: ["text-danger-main"]
4190
+ helperText: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
4191
+ errorText: ["text-danger-main"],
4192
+ readonly: ["pointer-events-none"]
4164
4193
  },
4165
4194
  variants: {
4166
4195
  variant: {
4167
4196
  solid: {
4168
- inputWrapper: ["bg-trans-soft", "hover:bg-trans-light", "has-[:focus]:bg-trans-light"]
4197
+ inputWrapper: ["!border-transparent", "bg-trans-soft", "group-has-[:focus]/input:text-body-foreground"],
4198
+ readonly: ["!bg-trans-light"]
4169
4199
  },
4170
- normal: {
4200
+ outline: {
4171
4201
  inputWrapper: [
4172
- "bg-transparent",
4173
- "border",
4174
- "border-neutral-main",
4175
- "hover:bg-trans-soft",
4176
- "has-[:focus]:bg-trans-soft"
4177
- ]
4202
+ "border-neutral-light",
4203
+ "group-has-[:hover]/input:bg-trans-soft",
4204
+ "group-has-[:focus]/input:bg-body-background",
4205
+ "group-has-[p.error]/input:border-danger-main"
4206
+ ],
4207
+ readonly: ["!bg-trans-soft"]
4178
4208
  },
4179
- line: {
4209
+ underline: {
4180
4210
  inputWrapper: [
4181
4211
  "bg-transparent",
4182
- "border-b",
4183
- "border-neutral-main",
4184
4212
  "!rounded-none",
4185
- "hover:bg-trans-soft",
4186
- "has-[:focus]:bg-trans-soft"
4187
- ]
4213
+ "!border-t-transparent",
4214
+ "!border-l-transparent",
4215
+ "!border-r-transparent",
4216
+ "group-has-[:hover]/input:bg-trans-soft",
4217
+ "group-has-[:focus]/input:bg-body-background",
4218
+ "group-has-[p.error]/input:border-danger-main"
4219
+ ],
4220
+ readonly: ["!bg-trans-soft"]
4188
4221
  }
4189
4222
  },
4190
4223
  color: {
4191
4224
  primary: {
4192
- inputWrapper: ["has-[:focus]:border-primary-main"],
4193
- content: ["text-primary-main"]
4225
+ content: [
4226
+ "group-has-[:focus]/input:text-primary-main",
4227
+ "!group-has-[p.error]:not(input:focus):hover/input:text-primary-main"
4228
+ ],
4229
+ helperText: [
4230
+ "group-has-[:focus]/input:text-primary-main",
4231
+ "group-has-[:focus:hover]/input:text-primary-main",
4232
+ "group-has-[:focus]/input:hover:text-primary-main"
4233
+ ]
4194
4234
  },
4195
4235
  secondary: {
4196
- inputWrapper: ["has-[:focus]:border-secondary-main"],
4197
- content: ["text-secondary-main"]
4236
+ content: [
4237
+ "group-has-[:focus]/input:text-secondary-main",
4238
+ "!group-has-[p.error]:not(input:focus):hover/input:text-secondary-main"
4239
+ ],
4240
+ helperText: [
4241
+ "group-has-[:focus]/input:text-secondary-main",
4242
+ "group-has-[:focus:hover]/input:text-secondary-main",
4243
+ "group-has-[:focus]/input:hover:text-secondary-main"
4244
+ ]
4198
4245
  }
4199
4246
  },
4200
4247
  size: {
4201
4248
  sm: {
4202
- base: ["text-sm", "gap-[6px]"],
4203
- innerWrapper: ["group-has-[p]/input:gap-[6px]"],
4204
- inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[6px]", "py-[4.5px]", "gap-[6px]"],
4205
- errorMessage: ["text-sm"]
4249
+ base: ["text-sm", "gap-[4px]"],
4250
+ label: ["text-sm"],
4251
+ innerWrapper: ["gap-[4px]"],
4252
+ inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]", "border-sm"],
4253
+ helperText: ["text-sm"],
4254
+ errorText: ["text-sm"]
4206
4255
  },
4207
4256
  md: {
4208
- base: ["text-md", "gap-[8px]"],
4209
- innerWrapper: ["group-has-[p]/input:gap-[8px]"],
4210
- inputWrapper: ["w-[240px]", "h-[30px]", "rounded-md", "px-[8px]", "py-[6.5px]", "gap-[8px]"],
4211
- errorMessage: ["text-md"]
4257
+ base: ["text-md", "gap-[6px]"],
4258
+ label: ["text-md"],
4259
+ innerWrapper: ["gap-[6px]"],
4260
+ inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]", "border-md"],
4261
+ helperText: ["text-sm"],
4262
+ errorText: ["text-sm"]
4212
4263
  },
4213
4264
  lg: {
4214
- base: ["text-lg", "gap-[10px]"],
4215
- innerWrapper: ["group-has-[p]/input:gap-[10px]"],
4216
- inputWrapper: ["w-[240px]", "h-[36px]", "rounded-lg", "px-[10px]", "py-[8px]", "gap-[10px]"],
4217
- errorMessage: ["text-lg"]
4265
+ base: ["text-lg", "gap-[8px]"],
4266
+ label: ["text-lg"],
4267
+ innerWrapper: ["gap-[8px]"],
4268
+ inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]", "border-lg"],
4269
+ helperText: ["text-md"],
4270
+ errorText: ["text-md"]
4218
4271
  },
4219
4272
  xl: {
4220
4273
  base: ["text-xl", "gap-[10px]"],
4221
- innerWrapper: ["group-has-[p]/input:gap-[10px]"],
4222
- inputWrapper: ["w-[240px]", "h-[36px]", "rounded-xl", "px-[10px]", "py-[8px]", "gap-[10px]"],
4223
- errorMessage: ["text-xl"]
4274
+ label: ["text-xl"],
4275
+ innerWrapper: ["gap-[10px]"],
4276
+ inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]", "border-xl"],
4277
+ helperText: ["text-md"],
4278
+ errorText: ["text-md"]
4224
4279
  }
4225
4280
  },
4226
- radius: {
4227
- default: "",
4228
- none: {
4229
- inputWrapper: ["rounded-none"]
4230
- },
4231
- full: {
4232
- inputWrapper: ["rounded-full"]
4233
- }
4281
+ direction: {
4282
+ vertical: "",
4283
+ horizon: ""
4234
4284
  },
4235
- fullWidth: {
4285
+ full: {
4236
4286
  true: {
4237
4287
  base: ["w-full"],
4238
4288
  innerWrapper: ["flex-1"],
4239
4289
  inputWrapper: ["w-full"]
4240
4290
  }
4241
4291
  },
4242
- isDisabled: {
4292
+ disabled: {
4243
4293
  true: {
4244
- label: ["text-neutral-light"],
4245
- inputWrapper: ["bg-neutral-soft", "border-neutral-light", "pointer-events-none"],
4246
- input: ["text-neutral-light", "placeholder:text-neutral-light"],
4247
- content: ["text-neutral-light", "group-has-[p]/input:text-danger-light"],
4248
- errorMessage: ["text-danger-light"]
4249
- }
4250
- },
4251
- isRequired: {
4252
- true: {
4253
- label: ["after:content-['*']", "after:text-danger-main", "after:ml-0.5"]
4294
+ inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "!group-has-[p.error]/input:text-danger-light"],
4295
+ input: [
4296
+ "text-neutral-light",
4297
+ "placeholder:text-neutral-light",
4298
+ "group-has-[p.error]/input:text-danger-light",
4299
+ "group-has-[p.error]/input:placeholder:text-danger-light"
4300
+ ],
4301
+ content: ["text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
4302
+ helperText: ["!text-neutral-light"],
4303
+ errorText: ["!text-danger-light"]
4254
4304
  }
4255
4305
  }
4256
4306
  },
4257
- defaultVariants: {
4258
- variant: "solid",
4259
- color: "primary",
4260
- size: "md",
4261
- fullWidth: false,
4262
- isDisabled: false,
4263
- isRequired: false
4264
- },
4265
4307
  compoundVariants: [
4266
4308
  {
4267
- isDisabled: true,
4268
- isRequired: true,
4309
+ disabled: true,
4310
+ variant: ["outline", "underline"],
4269
4311
  class: {
4270
- label: ["after:text-danger-light"]
4312
+ inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:border-danger-light"]
4271
4313
  }
4272
4314
  }
4273
- ]
4315
+ ],
4316
+ defaultVariants: {
4317
+ variant: "solid",
4318
+ color: "primary",
4319
+ size: "md",
4320
+ direction: "vertical",
4321
+ disabled: false,
4322
+ readonly: false
4323
+ }
4274
4324
  });
4275
4325
  // Annotate the CommonJS export names for ESM import in node:
4276
4326
  0 && (module.exports = {