@timeax/form-palette 0.0.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 (109) hide show
  1. package/.scaffold-cache.json +537 -0
  2. package/package.json +42 -0
  3. package/src/.scaffold-cache.json +544 -0
  4. package/src/adapters/axios.ts +117 -0
  5. package/src/adapters/index.ts +91 -0
  6. package/src/adapters/inertia.ts +187 -0
  7. package/src/core/adapter-registry.ts +87 -0
  8. package/src/core/bound/bind-host.ts +14 -0
  9. package/src/core/bound/observe-bound-field.ts +172 -0
  10. package/src/core/bound/wait-for-bound-field.ts +57 -0
  11. package/src/core/context.ts +23 -0
  12. package/src/core/core-provider.tsx +818 -0
  13. package/src/core/core-root.tsx +72 -0
  14. package/src/core/core-shell.tsx +44 -0
  15. package/src/core/errors/error-strip.tsx +71 -0
  16. package/src/core/errors/index.ts +2 -0
  17. package/src/core/errors/map-error-bag.ts +51 -0
  18. package/src/core/errors/map-zod.ts +39 -0
  19. package/src/core/hooks/use-button.ts +220 -0
  20. package/src/core/hooks/use-core-context.ts +20 -0
  21. package/src/core/hooks/use-core-utility.ts +0 -0
  22. package/src/core/hooks/use-core.ts +13 -0
  23. package/src/core/hooks/use-field.ts +497 -0
  24. package/src/core/hooks/use-optional-field.ts +28 -0
  25. package/src/core/index.ts +0 -0
  26. package/src/core/registry/binder-registry.ts +82 -0
  27. package/src/core/registry/field-registry.ts +187 -0
  28. package/src/core/test.tsx +17 -0
  29. package/src/global.d.ts +14 -0
  30. package/src/index.ts +68 -0
  31. package/src/input/index.ts +4 -0
  32. package/src/input/input-field.tsx +854 -0
  33. package/src/input/input-layout-graph.ts +230 -0
  34. package/src/input/input-props.ts +190 -0
  35. package/src/lib/get-global-countries.ts +87 -0
  36. package/src/lib/utils.ts +6 -0
  37. package/src/presets/index.ts +0 -0
  38. package/src/presets/shadcn-preset.ts +0 -0
  39. package/src/presets/shadcn-variants/checkbox.tsx +849 -0
  40. package/src/presets/shadcn-variants/chips.tsx +756 -0
  41. package/src/presets/shadcn-variants/color.tsx +284 -0
  42. package/src/presets/shadcn-variants/custom.tsx +227 -0
  43. package/src/presets/shadcn-variants/date.tsx +796 -0
  44. package/src/presets/shadcn-variants/file.tsx +764 -0
  45. package/src/presets/shadcn-variants/keyvalue.tsx +556 -0
  46. package/src/presets/shadcn-variants/multiselect.tsx +1132 -0
  47. package/src/presets/shadcn-variants/number.tsx +176 -0
  48. package/src/presets/shadcn-variants/password.tsx +737 -0
  49. package/src/presets/shadcn-variants/phone.tsx +628 -0
  50. package/src/presets/shadcn-variants/radio.tsx +578 -0
  51. package/src/presets/shadcn-variants/select.tsx +956 -0
  52. package/src/presets/shadcn-variants/slider.tsx +622 -0
  53. package/src/presets/shadcn-variants/text.tsx +343 -0
  54. package/src/presets/shadcn-variants/textarea.tsx +66 -0
  55. package/src/presets/shadcn-variants/toggle.tsx +218 -0
  56. package/src/presets/shadcn-variants/treeselect.tsx +784 -0
  57. package/src/presets/ui/badge.tsx +46 -0
  58. package/src/presets/ui/button.tsx +60 -0
  59. package/src/presets/ui/calendar.tsx +214 -0
  60. package/src/presets/ui/checkbox.tsx +115 -0
  61. package/src/presets/ui/custom.tsx +0 -0
  62. package/src/presets/ui/dialog.tsx +141 -0
  63. package/src/presets/ui/field.tsx +246 -0
  64. package/src/presets/ui/input-mask.tsx +739 -0
  65. package/src/presets/ui/input-otp.tsx +77 -0
  66. package/src/presets/ui/input.tsx +1011 -0
  67. package/src/presets/ui/label.tsx +22 -0
  68. package/src/presets/ui/number.tsx +1370 -0
  69. package/src/presets/ui/popover.tsx +46 -0
  70. package/src/presets/ui/radio-group.tsx +43 -0
  71. package/src/presets/ui/scroll-area.tsx +56 -0
  72. package/src/presets/ui/select.tsx +190 -0
  73. package/src/presets/ui/separator.tsx +28 -0
  74. package/src/presets/ui/slider.tsx +61 -0
  75. package/src/presets/ui/switch.tsx +32 -0
  76. package/src/presets/ui/textarea.tsx +634 -0
  77. package/src/presets/ui/time-dropdowns.tsx +350 -0
  78. package/src/schema/adapter.ts +217 -0
  79. package/src/schema/core.ts +429 -0
  80. package/src/schema/field-map.ts +0 -0
  81. package/src/schema/field.ts +224 -0
  82. package/src/schema/index.ts +0 -0
  83. package/src/schema/input-field.ts +260 -0
  84. package/src/schema/presets.ts +0 -0
  85. package/src/schema/variant.ts +216 -0
  86. package/src/variants/core/checkbox.tsx +54 -0
  87. package/src/variants/core/chips.tsx +22 -0
  88. package/src/variants/core/color.tsx +16 -0
  89. package/src/variants/core/custom.tsx +18 -0
  90. package/src/variants/core/date.tsx +25 -0
  91. package/src/variants/core/file.tsx +9 -0
  92. package/src/variants/core/keyvalue.tsx +12 -0
  93. package/src/variants/core/multiselect.tsx +28 -0
  94. package/src/variants/core/number.tsx +115 -0
  95. package/src/variants/core/password.tsx +35 -0
  96. package/src/variants/core/phone.tsx +16 -0
  97. package/src/variants/core/radio.tsx +38 -0
  98. package/src/variants/core/select.tsx +15 -0
  99. package/src/variants/core/slider.tsx +55 -0
  100. package/src/variants/core/text.tsx +114 -0
  101. package/src/variants/core/textarea.tsx +22 -0
  102. package/src/variants/core/toggle.tsx +50 -0
  103. package/src/variants/core/treeselect.tsx +11 -0
  104. package/src/variants/helpers/selection-summary.tsx +236 -0
  105. package/src/variants/index.ts +75 -0
  106. package/src/variants/registry.ts +38 -0
  107. package/src/variants/select-shared.ts +0 -0
  108. package/src/variants/shared.ts +126 -0
  109. package/tsconfig.json +14 -0
@@ -0,0 +1,537 @@
1
+ {
2
+ "version": 1,
3
+ "entries": {
4
+ "src-test/index.ts": {
5
+ "path": "src-test/index.ts",
6
+ "createdAt": "2025-11-28T04:51:29.901Z",
7
+ "sizeAtCreate": 0,
8
+ "groupName": "default",
9
+ "groupRoot": "."
10
+ },
11
+ "src-test/schema/index.ts": {
12
+ "path": "src-test/schema/index.ts",
13
+ "createdAt": "2025-11-28T04:51:29.906Z",
14
+ "sizeAtCreate": 0,
15
+ "groupName": "default",
16
+ "groupRoot": "."
17
+ },
18
+ "src-test/schema/adapter.ts": {
19
+ "path": "src-test/schema/adapter.ts",
20
+ "createdAt": "2025-11-28T04:51:29.907Z",
21
+ "sizeAtCreate": 0,
22
+ "groupName": "default",
23
+ "groupRoot": "."
24
+ },
25
+ "src-test/schema/field.ts": {
26
+ "path": "src-test/schema/field.ts",
27
+ "createdAt": "2025-11-28T04:51:29.909Z",
28
+ "sizeAtCreate": 0,
29
+ "groupName": "default",
30
+ "groupRoot": "."
31
+ },
32
+ "src-test/schema/field-map.ts": {
33
+ "path": "src-test/schema/field-map.ts",
34
+ "createdAt": "2025-11-28T04:51:29.910Z",
35
+ "sizeAtCreate": 0,
36
+ "groupName": "default",
37
+ "groupRoot": "."
38
+ },
39
+ "src-test/schema/form.ts": {
40
+ "path": "src-test/schema/form.ts",
41
+ "createdAt": "2025-11-28T04:51:29.911Z",
42
+ "sizeAtCreate": 0,
43
+ "groupName": "default",
44
+ "groupRoot": "."
45
+ },
46
+ "src-test/schema/input-field.ts": {
47
+ "path": "src-test/schema/input-field.ts",
48
+ "createdAt": "2025-11-28T04:51:29.912Z",
49
+ "sizeAtCreate": 0,
50
+ "groupName": "default",
51
+ "groupRoot": "."
52
+ },
53
+ "src-test/schema/presets.ts": {
54
+ "path": "src-test/schema/presets.ts",
55
+ "createdAt": "2025-11-28T04:51:29.914Z",
56
+ "sizeAtCreate": 0,
57
+ "groupName": "default",
58
+ "groupRoot": "."
59
+ },
60
+ "src-test/schema/variant.ts": {
61
+ "path": "src-test/schema/variant.ts",
62
+ "createdAt": "2025-11-28T04:51:29.916Z",
63
+ "sizeAtCreate": 0,
64
+ "groupName": "default",
65
+ "groupRoot": "."
66
+ },
67
+ "src-test/runtime/index.ts": {
68
+ "path": "src-test/runtime/index.ts",
69
+ "createdAt": "2025-11-28T04:51:29.918Z",
70
+ "sizeAtCreate": 0,
71
+ "groupName": "default",
72
+ "groupRoot": "."
73
+ },
74
+ "src-test/runtime/context.ts": {
75
+ "path": "src-test/runtime/context.ts",
76
+ "createdAt": "2025-11-28T04:51:29.919Z",
77
+ "sizeAtCreate": 0,
78
+ "groupName": "default",
79
+ "groupRoot": "."
80
+ },
81
+ "src-test/runtime/FormProvider.tsx": {
82
+ "path": "src-test/runtime/FormProvider.tsx",
83
+ "createdAt": "2025-11-28T04:51:29.920Z",
84
+ "sizeAtCreate": 0,
85
+ "groupName": "default",
86
+ "groupRoot": "."
87
+ },
88
+ "src-test/runtime/FormRoot.tsx": {
89
+ "path": "src-test/runtime/FormRoot.tsx",
90
+ "createdAt": "2025-11-28T04:51:29.921Z",
91
+ "sizeAtCreate": 0,
92
+ "groupName": "default",
93
+ "groupRoot": "."
94
+ },
95
+ "src-test/runtime/Form.tsx": {
96
+ "path": "src-test/runtime/Form.tsx",
97
+ "createdAt": "2025-11-28T04:51:29.922Z",
98
+ "sizeAtCreate": 0,
99
+ "groupName": "default",
100
+ "groupRoot": "."
101
+ },
102
+ "src-test/runtime/registry/field-registry.ts": {
103
+ "path": "src-test/runtime/registry/field-registry.ts",
104
+ "createdAt": "2025-11-28T04:51:29.924Z",
105
+ "sizeAtCreate": 0,
106
+ "groupName": "default",
107
+ "groupRoot": "."
108
+ },
109
+ "src-test/runtime/registry/binder-registry.ts": {
110
+ "path": "src-test/runtime/registry/binder-registry.ts",
111
+ "createdAt": "2025-11-28T04:51:29.926Z",
112
+ "sizeAtCreate": 0,
113
+ "groupName": "default",
114
+ "groupRoot": "."
115
+ },
116
+ "src-test/runtime/bound/observe-bound-field.ts": {
117
+ "path": "src-test/runtime/bound/observe-bound-field.ts",
118
+ "createdAt": "2025-11-28T04:51:29.928Z",
119
+ "sizeAtCreate": 0,
120
+ "groupName": "default",
121
+ "groupRoot": "."
122
+ },
123
+ "src-test/runtime/bound/wait-for-bound-field.ts": {
124
+ "path": "src-test/runtime/bound/wait-for-bound-field.ts",
125
+ "createdAt": "2025-11-28T04:51:29.929Z",
126
+ "sizeAtCreate": 0,
127
+ "groupName": "default",
128
+ "groupRoot": "."
129
+ },
130
+ "src-test/runtime/hooks/useForm.ts": {
131
+ "path": "src-test/runtime/hooks/useForm.ts",
132
+ "createdAt": "2025-11-28T04:51:29.931Z",
133
+ "sizeAtCreate": 0,
134
+ "groupName": "default",
135
+ "groupRoot": "."
136
+ },
137
+ "src-test/runtime/hooks/useFormContext.ts": {
138
+ "path": "src-test/runtime/hooks/useFormContext.ts",
139
+ "createdAt": "2025-11-28T04:51:29.932Z",
140
+ "sizeAtCreate": 0,
141
+ "groupName": "default",
142
+ "groupRoot": "."
143
+ },
144
+ "src-test/runtime/hooks/useField.ts": {
145
+ "path": "src-test/runtime/hooks/useField.ts",
146
+ "createdAt": "2025-11-28T04:51:29.934Z",
147
+ "sizeAtCreate": 0,
148
+ "groupName": "default",
149
+ "groupRoot": "."
150
+ },
151
+ "src-test/runtime/hooks/useOptionalField.ts": {
152
+ "path": "src-test/runtime/hooks/useOptionalField.ts",
153
+ "createdAt": "2025-11-28T04:51:29.934Z",
154
+ "sizeAtCreate": 0,
155
+ "groupName": "default",
156
+ "groupRoot": "."
157
+ },
158
+ "src-test/runtime/hooks/useButton.ts": {
159
+ "path": "src-test/runtime/hooks/useButton.ts",
160
+ "createdAt": "2025-11-28T04:51:29.936Z",
161
+ "sizeAtCreate": 0,
162
+ "groupName": "default",
163
+ "groupRoot": "."
164
+ },
165
+ "src-test/runtime/hooks/useFormUtility.ts": {
166
+ "path": "src-test/runtime/hooks/useFormUtility.ts",
167
+ "createdAt": "2025-11-28T04:51:29.937Z",
168
+ "sizeAtCreate": 0,
169
+ "groupName": "default",
170
+ "groupRoot": "."
171
+ },
172
+ "src-test/runtime/errors/map-zod.ts": {
173
+ "path": "src-test/runtime/errors/map-zod.ts",
174
+ "createdAt": "2025-11-28T04:51:29.938Z",
175
+ "sizeAtCreate": 0,
176
+ "groupName": "default",
177
+ "groupRoot": "."
178
+ },
179
+ "src-test/runtime/errors/map-error-bag.ts": {
180
+ "path": "src-test/runtime/errors/map-error-bag.ts",
181
+ "createdAt": "2025-11-28T04:51:29.939Z",
182
+ "sizeAtCreate": 0,
183
+ "groupName": "default",
184
+ "groupRoot": "."
185
+ },
186
+ "src-test/adapters/index.ts": {
187
+ "path": "src-test/adapters/index.ts",
188
+ "createdAt": "2025-11-28T04:51:29.941Z",
189
+ "sizeAtCreate": 0,
190
+ "groupName": "default",
191
+ "groupRoot": "."
192
+ },
193
+ "src-test/adapters/axios.ts": {
194
+ "path": "src-test/adapters/axios.ts",
195
+ "createdAt": "2025-11-28T04:51:29.943Z",
196
+ "sizeAtCreate": 0,
197
+ "groupName": "default",
198
+ "groupRoot": "."
199
+ },
200
+ "src-test/variants/index.ts": {
201
+ "path": "src-test/variants/index.ts",
202
+ "createdAt": "2025-11-28T04:51:29.944Z",
203
+ "sizeAtCreate": 0,
204
+ "groupName": "default",
205
+ "groupRoot": "."
206
+ },
207
+ "src-test/variants/shared.ts": {
208
+ "path": "src-test/variants/shared.ts",
209
+ "createdAt": "2025-11-28T04:51:29.945Z",
210
+ "sizeAtCreate": 0,
211
+ "groupName": "default",
212
+ "groupRoot": "."
213
+ },
214
+ "src-test/variants/select-shared.ts": {
215
+ "path": "src-test/variants/select-shared.ts",
216
+ "createdAt": "2025-11-28T04:51:29.946Z",
217
+ "sizeAtCreate": 0,
218
+ "groupName": "default",
219
+ "groupRoot": "."
220
+ },
221
+ "src-test/variants/registry.ts": {
222
+ "path": "src-test/variants/registry.ts",
223
+ "createdAt": "2025-11-28T04:51:29.947Z",
224
+ "sizeAtCreate": 0,
225
+ "groupName": "default",
226
+ "groupRoot": "."
227
+ },
228
+ "src-test/variants/core/text.tsx": {
229
+ "path": "src-test/variants/core/text.tsx",
230
+ "createdAt": "2025-11-28T04:51:29.949Z",
231
+ "sizeAtCreate": 0,
232
+ "groupName": "default",
233
+ "groupRoot": "."
234
+ },
235
+ "src-test/variants/core/textarea.tsx": {
236
+ "path": "src-test/variants/core/textarea.tsx",
237
+ "createdAt": "2025-11-28T04:51:29.950Z",
238
+ "sizeAtCreate": 0,
239
+ "groupName": "default",
240
+ "groupRoot": "."
241
+ },
242
+ "src-test/variants/core/number.tsx": {
243
+ "path": "src-test/variants/core/number.tsx",
244
+ "createdAt": "2025-11-28T04:51:29.951Z",
245
+ "sizeAtCreate": 0,
246
+ "groupName": "default",
247
+ "groupRoot": "."
248
+ },
249
+ "src-test/variants/core/select.tsx": {
250
+ "path": "src-test/variants/core/select.tsx",
251
+ "createdAt": "2025-11-28T04:51:29.952Z",
252
+ "sizeAtCreate": 0,
253
+ "groupName": "default",
254
+ "groupRoot": "."
255
+ },
256
+ "src-test/variants/core/multiselect.tsx": {
257
+ "path": "src-test/variants/core/multiselect.tsx",
258
+ "createdAt": "2025-11-28T04:51:29.953Z",
259
+ "sizeAtCreate": 0,
260
+ "groupName": "default",
261
+ "groupRoot": "."
262
+ },
263
+ "src-test/variants/core/checkbox.tsx": {
264
+ "path": "src-test/variants/core/checkbox.tsx",
265
+ "createdAt": "2025-11-28T04:51:29.954Z",
266
+ "sizeAtCreate": 0,
267
+ "groupName": "default",
268
+ "groupRoot": "."
269
+ },
270
+ "src-test/variants/core/toggle.tsx": {
271
+ "path": "src-test/variants/core/toggle.tsx",
272
+ "createdAt": "2025-11-28T04:51:29.955Z",
273
+ "sizeAtCreate": 0,
274
+ "groupName": "default",
275
+ "groupRoot": "."
276
+ },
277
+ "src-test/variants/core/radio.tsx": {
278
+ "path": "src-test/variants/core/radio.tsx",
279
+ "createdAt": "2025-11-28T04:51:29.958Z",
280
+ "sizeAtCreate": 0,
281
+ "groupName": "default",
282
+ "groupRoot": "."
283
+ },
284
+ "src-test/variants/core/chips.tsx": {
285
+ "path": "src-test/variants/core/chips.tsx",
286
+ "createdAt": "2025-11-28T04:51:29.960Z",
287
+ "sizeAtCreate": 0,
288
+ "groupName": "default",
289
+ "groupRoot": "."
290
+ },
291
+ "src-test/variants/core/treeselect.tsx": {
292
+ "path": "src-test/variants/core/treeselect.tsx",
293
+ "createdAt": "2025-11-28T04:51:29.961Z",
294
+ "sizeAtCreate": 0,
295
+ "groupName": "default",
296
+ "groupRoot": "."
297
+ },
298
+ "src-test/variants/core/date.tsx": {
299
+ "path": "src-test/variants/core/date.tsx",
300
+ "createdAt": "2025-11-28T04:51:29.963Z",
301
+ "sizeAtCreate": 0,
302
+ "groupName": "default",
303
+ "groupRoot": "."
304
+ },
305
+ "src-test/variants/core/file.tsx": {
306
+ "path": "src-test/variants/core/file.tsx",
307
+ "createdAt": "2025-11-28T04:51:29.964Z",
308
+ "sizeAtCreate": 0,
309
+ "groupName": "default",
310
+ "groupRoot": "."
311
+ },
312
+ "src-test/variants/core/color.tsx": {
313
+ "path": "src-test/variants/core/color.tsx",
314
+ "createdAt": "2025-11-28T04:51:29.966Z",
315
+ "sizeAtCreate": 0,
316
+ "groupName": "default",
317
+ "groupRoot": "."
318
+ },
319
+ "src-test/variants/core/phone.tsx": {
320
+ "path": "src-test/variants/core/phone.tsx",
321
+ "createdAt": "2025-11-28T04:51:29.967Z",
322
+ "sizeAtCreate": 0,
323
+ "groupName": "default",
324
+ "groupRoot": "."
325
+ },
326
+ "src-test/variants/core/password.tsx": {
327
+ "path": "src-test/variants/core/password.tsx",
328
+ "createdAt": "2025-11-28T04:51:29.969Z",
329
+ "sizeAtCreate": 0,
330
+ "groupName": "default",
331
+ "groupRoot": "."
332
+ },
333
+ "src-test/variants/core/keyvalue.tsx": {
334
+ "path": "src-test/variants/core/keyvalue.tsx",
335
+ "createdAt": "2025-11-28T04:51:29.970Z",
336
+ "sizeAtCreate": 0,
337
+ "groupName": "default",
338
+ "groupRoot": "."
339
+ },
340
+ "src-test/variants/core/custom.tsx": {
341
+ "path": "src-test/variants/core/custom.tsx",
342
+ "createdAt": "2025-11-28T04:51:29.971Z",
343
+ "sizeAtCreate": 0,
344
+ "groupName": "default",
345
+ "groupRoot": "."
346
+ },
347
+ "src-test/input/index.ts": {
348
+ "path": "src-test/input/index.ts",
349
+ "createdAt": "2025-11-28T04:51:29.974Z",
350
+ "sizeAtCreate": 0,
351
+ "groupName": "default",
352
+ "groupRoot": "."
353
+ },
354
+ "src-test/input/InputField.tsx": {
355
+ "path": "src-test/input/InputField.tsx",
356
+ "createdAt": "2025-11-28T04:51:29.975Z",
357
+ "sizeAtCreate": 0,
358
+ "groupName": "default",
359
+ "groupRoot": "."
360
+ },
361
+ "src-test/input/input-props.ts": {
362
+ "path": "src-test/input/input-props.ts",
363
+ "createdAt": "2025-11-28T04:51:29.976Z",
364
+ "sizeAtCreate": 0,
365
+ "groupName": "default",
366
+ "groupRoot": "."
367
+ },
368
+ "src-test/presets/index.ts": {
369
+ "path": "src-test/presets/index.ts",
370
+ "createdAt": "2025-11-28T04:51:29.978Z",
371
+ "sizeAtCreate": 0,
372
+ "groupName": "default",
373
+ "groupRoot": "."
374
+ },
375
+ "src-test/presets/shadcn-preset.ts": {
376
+ "path": "src-test/presets/shadcn-preset.ts",
377
+ "createdAt": "2025-11-28T04:51:29.980Z",
378
+ "sizeAtCreate": 0,
379
+ "groupName": "default",
380
+ "groupRoot": "."
381
+ },
382
+ "src-test/presets/shadcn-variants/index.ts": {
383
+ "path": "src-test/presets/shadcn-variants/index.ts",
384
+ "createdAt": "2025-11-28T04:51:29.982Z",
385
+ "sizeAtCreate": 0,
386
+ "groupName": "default",
387
+ "groupRoot": "."
388
+ },
389
+ "src-test/presets/shadcn-variants/text.tsx": {
390
+ "path": "src-test/presets/shadcn-variants/text.tsx",
391
+ "createdAt": "2025-11-28T04:51:29.984Z",
392
+ "sizeAtCreate": 0,
393
+ "groupName": "default",
394
+ "groupRoot": "."
395
+ },
396
+ "src-test/presets/shadcn-variants/textarea.tsx": {
397
+ "path": "src-test/presets/shadcn-variants/textarea.tsx",
398
+ "createdAt": "2025-11-28T04:51:29.985Z",
399
+ "sizeAtCreate": 0,
400
+ "groupName": "default",
401
+ "groupRoot": "."
402
+ },
403
+ "src-test/presets/shadcn-variants/number.tsx": {
404
+ "path": "src-test/presets/shadcn-variants/number.tsx",
405
+ "createdAt": "2025-11-28T04:51:29.986Z",
406
+ "sizeAtCreate": 0,
407
+ "groupName": "default",
408
+ "groupRoot": "."
409
+ },
410
+ "src-test/presets/shadcn-variants/select.tsx": {
411
+ "path": "src-test/presets/shadcn-variants/select.tsx",
412
+ "createdAt": "2025-11-28T04:51:29.987Z",
413
+ "sizeAtCreate": 0,
414
+ "groupName": "default",
415
+ "groupRoot": "."
416
+ },
417
+ "src-test/presets/shadcn-variants/multiselect.tsx": {
418
+ "path": "src-test/presets/shadcn-variants/multiselect.tsx",
419
+ "createdAt": "2025-11-28T04:51:29.989Z",
420
+ "sizeAtCreate": 0,
421
+ "groupName": "default",
422
+ "groupRoot": "."
423
+ },
424
+ "src-test/presets/shadcn-variants/checkbox.tsx": {
425
+ "path": "src-test/presets/shadcn-variants/checkbox.tsx",
426
+ "createdAt": "2025-11-28T04:51:29.991Z",
427
+ "sizeAtCreate": 0,
428
+ "groupName": "default",
429
+ "groupRoot": "."
430
+ },
431
+ "src-test/presets/shadcn-variants/toggle.tsx": {
432
+ "path": "src-test/presets/shadcn-variants/toggle.tsx",
433
+ "createdAt": "2025-11-28T04:51:29.992Z",
434
+ "sizeAtCreate": 0,
435
+ "groupName": "default",
436
+ "groupRoot": "."
437
+ },
438
+ "src-test/presets/shadcn-variants/radio.tsx": {
439
+ "path": "src-test/presets/shadcn-variants/radio.tsx",
440
+ "createdAt": "2025-11-28T04:51:29.993Z",
441
+ "sizeAtCreate": 0,
442
+ "groupName": "default",
443
+ "groupRoot": "."
444
+ },
445
+ "src-test/presets/shadcn-variants/chips.tsx": {
446
+ "path": "src-test/presets/shadcn-variants/chips.tsx",
447
+ "createdAt": "2025-11-28T04:51:29.994Z",
448
+ "sizeAtCreate": 0,
449
+ "groupName": "default",
450
+ "groupRoot": "."
451
+ },
452
+ "src-test/presets/shadcn-variants/treeselect.tsx": {
453
+ "path": "src-test/presets/shadcn-variants/treeselect.tsx",
454
+ "createdAt": "2025-11-28T04:51:29.995Z",
455
+ "sizeAtCreate": 0,
456
+ "groupName": "default",
457
+ "groupRoot": "."
458
+ },
459
+ "src-test/presets/shadcn-variants/date.tsx": {
460
+ "path": "src-test/presets/shadcn-variants/date.tsx",
461
+ "createdAt": "2025-11-28T04:51:29.996Z",
462
+ "sizeAtCreate": 0,
463
+ "groupName": "default",
464
+ "groupRoot": "."
465
+ },
466
+ "src-test/presets/shadcn-variants/file.tsx": {
467
+ "path": "src-test/presets/shadcn-variants/file.tsx",
468
+ "createdAt": "2025-11-28T04:51:29.997Z",
469
+ "sizeAtCreate": 0,
470
+ "groupName": "default",
471
+ "groupRoot": "."
472
+ },
473
+ "src-test/presets/shadcn-variants/color.tsx": {
474
+ "path": "src-test/presets/shadcn-variants/color.tsx",
475
+ "createdAt": "2025-11-28T04:51:29.998Z",
476
+ "sizeAtCreate": 0,
477
+ "groupName": "default",
478
+ "groupRoot": "."
479
+ },
480
+ "src-test/presets/shadcn-variants/phone.tsx": {
481
+ "path": "src-test/presets/shadcn-variants/phone.tsx",
482
+ "createdAt": "2025-11-28T04:51:29.999Z",
483
+ "sizeAtCreate": 0,
484
+ "groupName": "default",
485
+ "groupRoot": "."
486
+ },
487
+ "src-test/presets/shadcn-variants/password.tsx": {
488
+ "path": "src-test/presets/shadcn-variants/password.tsx",
489
+ "createdAt": "2025-11-28T04:51:30.000Z",
490
+ "sizeAtCreate": 0,
491
+ "groupName": "default",
492
+ "groupRoot": "."
493
+ },
494
+ "src-test/presets/shadcn-variants/keyvalue.tsx": {
495
+ "path": "src-test/presets/shadcn-variants/keyvalue.tsx",
496
+ "createdAt": "2025-11-28T04:51:30.001Z",
497
+ "sizeAtCreate": 0,
498
+ "groupName": "default",
499
+ "groupRoot": "."
500
+ },
501
+ "src-test/presets/shadcn-variants/custom.tsx": {
502
+ "path": "src-test/presets/shadcn-variants/custom.tsx",
503
+ "createdAt": "2025-11-28T04:51:30.002Z",
504
+ "sizeAtCreate": 0,
505
+ "groupName": "default",
506
+ "groupRoot": "."
507
+ },
508
+ "src-test/utils/index.ts": {
509
+ "path": "src-test/utils/index.ts",
510
+ "createdAt": "2025-11-28T04:51:30.004Z",
511
+ "sizeAtCreate": 0,
512
+ "groupName": "default",
513
+ "groupRoot": "."
514
+ },
515
+ "src-test/utils/controllable.ts": {
516
+ "path": "src-test/utils/controllable.ts",
517
+ "createdAt": "2025-11-28T04:51:30.006Z",
518
+ "sizeAtCreate": 0,
519
+ "groupName": "default",
520
+ "groupRoot": "."
521
+ },
522
+ "src-test/utils/merge-refs.ts": {
523
+ "path": "src-test/utils/merge-refs.ts",
524
+ "createdAt": "2025-11-28T04:51:30.007Z",
525
+ "sizeAtCreate": 0,
526
+ "groupName": "default",
527
+ "groupRoot": "."
528
+ },
529
+ "src-test/utils/classnames.ts": {
530
+ "path": "src-test/utils/classnames.ts",
531
+ "createdAt": "2025-11-28T04:51:30.008Z",
532
+ "sizeAtCreate": 0,
533
+ "groupName": "default",
534
+ "groupRoot": "."
535
+ }
536
+ }
537
+ }
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@timeax/form-palette",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "description": "This package extracts and standardizes the **form + input + variant system** from an existing Laravel/Inertia/React project into a **reusable, framework-friendly** library",
6
+ "keywords": [
7
+ "Form",
8
+ "react-form",
9
+ "react-forms",
10
+ "form-palette",
11
+ "inputfields",
12
+ "inputs",
13
+ "input"
14
+ ],
15
+ "homepage": "https://github.com/timeax/form-palette-root#readme",
16
+ "bugs": {
17
+ "url": "https://github.com/timeax/form-palette-root/issues"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/timeax/form-palette-root.git"
22
+ },
23
+ "license": "MIT",
24
+ "author": "David Okpako",
25
+ "type": "module",
26
+ "main": "index.cjs",
27
+ "module": "index.mjs",
28
+ "types": "dist/index.d.ts",
29
+ "sideEffects": false,
30
+ "scripts": {
31
+ "build": "tsc -p tsconfig.json",
32
+ "dev": "tsc -p tsconfig.json --watch",
33
+ "postpublish": "npm version patch --no-git-tag-version"
34
+ },
35
+ "peerDependencies": {
36
+ "react": "^18.0.0",
37
+ "react-dom": "^18.0.0"
38
+ },
39
+ "devDependencies": {
40
+ "typescript": "^5.1.6"
41
+ }
42
+ }