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