@vinyasa/form 1.0.22 → 1.0.23

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 (140) hide show
  1. package/dist/cjs/autocomplete.cjs +709 -309
  2. package/dist/cjs/autocomplete.css +1 -1
  3. package/dist/cjs/checkbox.cjs +399 -244
  4. package/dist/cjs/checkbox.css +5 -1
  5. package/dist/cjs/color-picker.cjs +478 -325
  6. package/dist/cjs/color-picker.css +1 -1
  7. package/dist/cjs/combobox.cjs +574 -359
  8. package/dist/cjs/combobox.css +1 -1
  9. package/dist/cjs/date-picker.cjs +522 -322
  10. package/dist/cjs/date-picker.css +1 -1
  11. package/dist/cjs/dropzone.cjs +562 -391
  12. package/dist/cjs/dropzone.css +1 -1
  13. package/dist/cjs/field.cjs +353 -0
  14. package/dist/cjs/field.css +139 -0
  15. package/dist/cjs/file-upload.cjs +667 -380
  16. package/dist/cjs/file-upload.css +44 -1
  17. package/dist/cjs/index.cjs +3066 -2546
  18. package/dist/cjs/index.css +9 -1
  19. package/dist/cjs/input.cjs +220 -74
  20. package/dist/cjs/input.css +1 -1
  21. package/dist/cjs/multi-select.cjs +756 -400
  22. package/dist/cjs/multi-select.css +1 -1
  23. package/dist/cjs/number-input.cjs +267 -125
  24. package/dist/cjs/number-input.css +1 -1
  25. package/dist/cjs/otp-input.cjs +232 -85
  26. package/dist/cjs/otp-input.css +1 -1
  27. package/dist/cjs/password-input.cjs +239 -93
  28. package/dist/cjs/password-input.css +1 -1
  29. package/dist/cjs/radio-group.cjs +388 -246
  30. package/dist/cjs/radio-group.css +1 -1
  31. package/dist/cjs/range-slider.cjs +106 -62
  32. package/dist/cjs/rich-text-editor.cjs +549 -517
  33. package/dist/cjs/rich-text-editor.css +1 -1
  34. package/dist/cjs/search-input.cjs +244 -98
  35. package/dist/cjs/search-input.css +1 -1
  36. package/dist/cjs/select.cjs +485 -353
  37. package/dist/cjs/select.css +1 -1
  38. package/dist/cjs/slider.cjs +129 -155
  39. package/dist/cjs/switch.cjs +376 -239
  40. package/dist/cjs/switch.css +5 -1
  41. package/dist/cjs/tags-input.cjs +264 -113
  42. package/dist/cjs/tags-input.css +1 -1
  43. package/dist/cjs/textarea.cjs +225 -79
  44. package/dist/cjs/textarea.css +1 -1
  45. package/dist/cjs/time-picker.cjs +546 -371
  46. package/dist/cjs/time-picker.css +1 -1
  47. package/dist/cjs/toggle-button.cjs +18 -15
  48. package/dist/esm/{switch.css → 1485.css} +4 -0
  49. package/dist/esm/1485.js +28 -0
  50. package/dist/esm/{2995.css → 2315.css} +1 -1
  51. package/dist/esm/{2995.js → 2315.js} +96 -4
  52. package/dist/esm/2692.js +114 -0
  53. package/dist/esm/27.js +23 -27
  54. package/dist/esm/345.js +81 -0
  55. package/dist/esm/5074.js +66 -0
  56. package/dist/esm/5333.js +72 -0
  57. package/dist/esm/6982.js +35 -0
  58. package/dist/esm/7580.js +34 -0
  59. package/dist/esm/7678.js +101 -0
  60. package/dist/esm/7800.js +131 -0
  61. package/dist/esm/8479.js +115 -0
  62. package/dist/esm/{checkbox.css → 9167.css} +4 -0
  63. package/dist/esm/9167.js +30 -0
  64. package/dist/esm/9545.js +118 -0
  65. package/dist/esm/{2942.css → 9559.css} +43 -0
  66. package/dist/esm/9559.js +179 -0
  67. package/dist/esm/autocomplete.js +2 -95
  68. package/dist/esm/checkbox.js +1 -38
  69. package/dist/esm/color-picker.js +1 -130
  70. package/dist/esm/combobox.js +1 -126
  71. package/dist/esm/components/autocomplete/Autocomplete.d.ts +26 -16
  72. package/dist/esm/components/autocomplete/index.d.ts +1 -3
  73. package/dist/esm/components/checkbox/Checkbox.d.ts +12 -4
  74. package/dist/esm/components/checkbox/index.d.ts +1 -3
  75. package/dist/esm/components/color-picker/ColorPicker.d.ts +28 -21
  76. package/dist/esm/components/color-picker/index.d.ts +1 -3
  77. package/dist/esm/components/combobox/Combobox.d.ts +55 -29
  78. package/dist/esm/components/combobox/index.d.ts +1 -3
  79. package/dist/esm/components/date-picker/DatePicker.d.ts +28 -24
  80. package/dist/esm/components/date-picker/index.d.ts +1 -3
  81. package/dist/esm/components/dropzone/Dropzone.d.ts +52 -9
  82. package/dist/esm/components/dropzone/index.d.ts +1 -3
  83. package/dist/esm/components/field/Field.d.ts +106 -0
  84. package/dist/esm/components/field/index.d.ts +1 -0
  85. package/dist/esm/components/file-upload/FileUpload.d.ts +11 -18
  86. package/dist/esm/components/file-upload/index.d.ts +1 -3
  87. package/dist/esm/components/icon-button/IconButton.d.ts +1 -1
  88. package/dist/esm/components/input/Input.d.ts +3 -5
  89. package/dist/esm/components/multi-select/MultiSelect.d.ts +37 -30
  90. package/dist/esm/components/multi-select/index.d.ts +1 -3
  91. package/dist/esm/components/number-input/NumberInput.d.ts +3 -5
  92. package/dist/esm/components/otp-input/OtpInput.d.ts +2 -4
  93. package/dist/esm/components/password-input/PasswordInput.d.ts +3 -5
  94. package/dist/esm/components/radio-group/RadioGroup.d.ts +18 -10
  95. package/dist/esm/components/radio-group/index.d.ts +1 -3
  96. package/dist/esm/components/range-slider/RangeSlider.d.ts +1 -1
  97. package/dist/esm/components/rich-text-editor/RichTextEditor.d.ts +44 -7
  98. package/dist/esm/components/rich-text-editor/index.d.ts +1 -3
  99. package/dist/esm/components/search-input/SearchInput.d.ts +3 -5
  100. package/dist/esm/components/select/Select.d.ts +36 -23
  101. package/dist/esm/components/select/index.d.ts +1 -3
  102. package/dist/esm/components/slider/Slider.d.ts +17 -10
  103. package/dist/esm/components/slider/index.d.ts +1 -3
  104. package/dist/esm/components/switch/Switch.d.ts +10 -5
  105. package/dist/esm/components/switch/index.d.ts +1 -3
  106. package/dist/esm/components/tags-input/TagsInput.d.ts +3 -5
  107. package/dist/esm/components/textarea/Textarea.d.ts +3 -5
  108. package/dist/esm/components/time-picker/TimePicker.d.ts +31 -23
  109. package/dist/esm/components/time-picker/index.d.ts +1 -3
  110. package/dist/esm/date-picker.js +1 -118
  111. package/dist/esm/dropzone.js +1 -137
  112. package/dist/esm/field.d.ts +2 -24
  113. package/dist/esm/field.js +1 -0
  114. package/dist/esm/file-upload.js +2 -123
  115. package/dist/esm/index.d.ts +15 -14
  116. package/dist/esm/index.js +15 -14
  117. package/dist/esm/input.js +16 -25
  118. package/dist/esm/multi-select.js +2 -164
  119. package/dist/esm/number-input.js +65 -78
  120. package/dist/esm/otp-input.js +31 -38
  121. package/dist/esm/password-input.js +32 -41
  122. package/dist/esm/radio-group.js +1 -44
  123. package/dist/esm/range-slider.js +15 -8
  124. package/dist/esm/rich-text-editor.js +1 -212
  125. package/dist/esm/search-input.js +35 -44
  126. package/dist/esm/select.js +1 -87
  127. package/dist/esm/slider.js +1 -4
  128. package/dist/esm/switch.js +1 -36
  129. package/dist/esm/tags-input.js +51 -59
  130. package/dist/esm/textarea.js +22 -31
  131. package/dist/esm/time-picker.js +1 -137
  132. package/package.json +18 -9
  133. package/dist/esm/2942.js +0 -13
  134. package/dist/esm/4557.js +0 -39
  135. package/dist/esm/dropzone.css +0 -43
  136. /package/dist/esm/{date-picker.css → 2692.css} +0 -0
  137. /package/dist/esm/{select.css → 5333.css} +0 -0
  138. /package/dist/esm/{radio-group.css → 7580.css} +0 -0
  139. /package/dist/esm/{color-picker.css → 7678.css} +0 -0
  140. /package/dist/esm/{rich-text-editor.css → 9545.css} +0 -0
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  var __webpack_modules__ = {
3
+ 51 () {},
3
4
  400 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
4
5
  function toPrimitive(t, r) {
5
6
  if ("object" != typeof t || !t) return t;
@@ -91,17 +92,12 @@ var __webpack_modules__ = {
91
92
  c: ()=>createRuntimeFn
92
93
  });
93
94
  },
94
- 891 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
95
- __webpack_require__.d(__webpack_exports__, {
96
- ij: ()=>descriptionText,
97
- kc: ()=>errorText,
98
- Pf: ()=>label,
99
- Zy: ()=>requiredMark
100
- });
101
- var createRuntimeFn_62c9670f_esm = __webpack_require__(400);
95
+ 318 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
96
+ __webpack_require__(51);
97
+ var _vanilla_extract_recipes_createRuntimeFn__rspack_import_1 = __webpack_require__(400);
102
98
  var descriptionText = 'sbqkrxd';
103
99
  var errorText = 'sbqkrxe';
104
- (0, createRuntimeFn_62c9670f_esm.c)({
100
+ (0, _vanilla_extract_recipes_createRuntimeFn__rspack_import_1.c)({
105
101
  defaultClassName: 'sbqkrx0',
106
102
  variantClassNames: {
107
103
  size: {
@@ -120,51 +116,211 @@ var __webpack_modules__ = {
120
116
  });
121
117
  var label = 'sbqkrxb';
122
118
  var requiredMark = 'sbqkrxc';
119
+ __webpack_require__.d(__webpack_exports__, {
120
+ Pf: ()=>label,
121
+ Zy: ()=>requiredMark,
122
+ ij: ()=>descriptionText,
123
+ kc: ()=>errorText
124
+ });
123
125
  },
124
- 140 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
126
+ 598 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
125
127
  var react_jsx_runtime__rspack_import_0 = __webpack_require__(732);
126
- var _field_css__rspack_import_1 = __webpack_require__(891);
127
- const describedByIds = (id, { description, error })=>{
128
- const ids = [];
129
- if (description) ids.push(`${id}-description`);
130
- if (error) ids.push(`${id}-error`);
131
- return ids.length > 0 ? ids.join(' ') : void 0;
128
+ var _radix_ui_react_slot__rspack_import_1 = __webpack_require__(922);
129
+ var react__rspack_import_2 = __webpack_require__(15);
130
+ var _field_css__rspack_import_3 = __webpack_require__(318);
131
+ function _define_property(obj, key, value) {
132
+ if (key in obj) Object.defineProperty(obj, key, {
133
+ value: value,
134
+ enumerable: true,
135
+ configurable: true,
136
+ writable: true
137
+ });
138
+ else obj[key] = value;
139
+ return obj;
140
+ }
141
+ function _object_spread(target) {
142
+ for(var i = 1; i < arguments.length; i++){
143
+ var source = null != arguments[i] ? arguments[i] : {};
144
+ var ownKeys = Object.keys(source);
145
+ if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
146
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
147
+ }));
148
+ ownKeys.forEach(function(key) {
149
+ _define_property(target, key, source[key]);
150
+ });
151
+ }
152
+ return target;
153
+ }
154
+ function ownKeys(object, enumerableOnly) {
155
+ var keys = Object.keys(object);
156
+ if (Object.getOwnPropertySymbols) {
157
+ var symbols = Object.getOwnPropertySymbols(object);
158
+ if (enumerableOnly) symbols = symbols.filter(function(sym) {
159
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
160
+ });
161
+ keys.push.apply(keys, symbols);
162
+ }
163
+ return keys;
164
+ }
165
+ function _object_spread_props(target, source) {
166
+ source = null != source ? source : {};
167
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
168
+ else ownKeys(Object(source)).forEach(function(key) {
169
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
170
+ });
171
+ return target;
172
+ }
173
+ function _object_without_properties(source, excluded) {
174
+ if (null == source) return {};
175
+ var target = {}, sourceKeys, key, i;
176
+ if ("u" > typeof Reflect && Reflect.ownKeys) {
177
+ sourceKeys = Reflect.ownKeys(Object(source));
178
+ for(i = 0; i < sourceKeys.length; i++){
179
+ key = sourceKeys[i];
180
+ if (!(excluded.indexOf(key) >= 0)) {
181
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
182
+ }
183
+ }
184
+ return target;
185
+ }
186
+ target = _object_without_properties_loose(source, excluded);
187
+ if (Object.getOwnPropertySymbols) {
188
+ sourceKeys = Object.getOwnPropertySymbols(source);
189
+ for(i = 0; i < sourceKeys.length; i++){
190
+ key = sourceKeys[i];
191
+ if (!(excluded.indexOf(key) >= 0)) {
192
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
193
+ }
194
+ }
195
+ }
196
+ return target;
197
+ }
198
+ function _object_without_properties_loose(source, excluded) {
199
+ if (null == source) return {};
200
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
201
+ for(i = 0; i < sourceKeys.length; i++){
202
+ key = sourceKeys[i];
203
+ if (!(excluded.indexOf(key) >= 0)) {
204
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
205
+ }
206
+ }
207
+ return target;
208
+ }
209
+ const FieldContext = /*#__PURE__*/ (0, react__rspack_import_2.createContext)(null);
210
+ const useFieldContext = ()=>(0, react__rspack_import_2.useContext)(FieldContext);
211
+ const useResolvedFieldProps = (props)=>{
212
+ var _ref, _props_id, _ref1, _props_invalid, _props_describedBy;
213
+ const context = useFieldContext();
214
+ const generatedId = (0, react__rspack_import_2.useId)();
215
+ return {
216
+ id: null != (_ref = null != (_props_id = props.id) ? _props_id : null == context ? void 0 : context.id) ? _ref : generatedId,
217
+ invalid: null != (_ref1 = null != (_props_invalid = props.invalid) ? _props_invalid : null == context ? void 0 : context.invalid) ? _ref1 : false,
218
+ describedBy: null != (_props_describedBy = props.describedBy) ? _props_describedBy : null == context ? void 0 : context.describedBy
219
+ };
220
+ };
221
+ const Field = (_0)=>{
222
+ let { invalid = false, children } = _0, rest = _object_without_properties(_0, [
223
+ "invalid",
224
+ "children"
225
+ ]);
226
+ const generatedId = (0, react__rspack_import_2.useId)();
227
+ const descriptionId = `${generatedId}-description`;
228
+ const errorId = `${generatedId}-error`;
229
+ const labelId = `${generatedId}-label`;
230
+ const directChildren = react__rspack_import_2.Children.toArray(children).filter(react__rspack_import_2.isValidElement);
231
+ const describedByIds = directChildren.reduce((ids, child)=>{
232
+ if (child.type === FieldDescription) ids.push(descriptionId);
233
+ if (child.type === FieldError) ids.push(errorId);
234
+ return ids;
235
+ }, []);
236
+ const labelChild = directChildren.find((child)=>child.type === FieldLabel);
237
+ const labelChildText = labelChild && 'string' == typeof labelChild.props.children ? labelChild.props.children : void 0;
238
+ const value = {
239
+ id: generatedId,
240
+ descriptionId,
241
+ errorId,
242
+ describedBy: describedByIds.length > 0 ? describedByIds.join(' ') : void 0,
243
+ invalid,
244
+ labelId: labelChild ? labelId : void 0,
245
+ labelText: labelChildText
246
+ };
247
+ return /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)(FieldContext.Provider, {
248
+ value: value,
249
+ children: /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)("div", _object_spread_props(_object_spread({}, rest), {
250
+ children: children
251
+ }))
252
+ });
132
253
  };
133
- const FieldChrome = ({ id, label, description, error, required, children, disableLabelFor = false })=>/*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsxs)("div", {
254
+ Field.displayName = 'Field';
255
+ const FieldLabel = (_0)=>{
256
+ let { required, htmlFor, id, children } = _0, rest = _object_without_properties(_0, [
257
+ "required",
258
+ "htmlFor",
259
+ "id",
260
+ "children"
261
+ ]);
262
+ const context = useFieldContext();
263
+ const resolvedHtmlFor = false === htmlFor ? void 0 : null != htmlFor ? htmlFor : null == context ? void 0 : context.id;
264
+ return /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsxs)("label", _object_spread_props(_object_spread({
265
+ htmlFor: resolvedHtmlFor,
266
+ id: null != id ? id : null == context ? void 0 : context.labelId,
267
+ className: _field_css__rspack_import_3.Pf
268
+ }, rest), {
134
269
  children: [
135
- label ? /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsxs)("label", {
136
- htmlFor: disableLabelFor ? void 0 : id,
137
- id: `${id}-label`,
138
- className: _field_css__rspack_import_1.Pf,
139
- children: [
140
- label,
141
- required ? /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)("span", {
142
- className: _field_css__rspack_import_1.Zy,
143
- "aria-hidden": "true",
144
- children: "*"
145
- }) : null
146
- ]
147
- }) : null,
148
270
  children,
149
- description ? /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)("p", {
150
- id: `${id}-description`,
151
- className: _field_css__rspack_import_1.ij,
152
- children: description
153
- }) : null,
154
- error ? /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)("p", {
155
- id: `${id}-error`,
156
- className: _field_css__rspack_import_1.kc,
157
- role: "alert",
158
- children: error
271
+ required ? /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)("span", {
272
+ className: _field_css__rspack_import_3.Zy,
273
+ "aria-hidden": "true",
274
+ children: "*"
159
275
  }) : null
160
276
  ]
161
- });
162
- const __rspack_default_export = FieldChrome;
277
+ }));
278
+ };
279
+ FieldLabel.displayName = 'FieldLabel';
280
+ const FieldControl = (_0)=>{
281
+ let { children } = _0, rest = _object_without_properties(_0, [
282
+ "children"
283
+ ]);
284
+ const context = useFieldContext();
285
+ return /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)(_radix_ui_react_slot__rspack_import_1.Slot, _object_spread_props(_object_spread({
286
+ id: null == context ? void 0 : context.id,
287
+ "aria-describedby": null == context ? void 0 : context.describedBy,
288
+ "aria-invalid": null == context ? void 0 : context.invalid
289
+ }, rest), {
290
+ children: children
291
+ }));
292
+ };
293
+ FieldControl.displayName = 'FieldControl';
294
+ const FieldDescription = (_0)=>{
295
+ let { id } = _0, rest = _object_without_properties(_0, [
296
+ "id"
297
+ ]);
298
+ const context = useFieldContext();
299
+ return /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)("p", _object_spread({
300
+ id: null != id ? id : null == context ? void 0 : context.descriptionId,
301
+ className: _field_css__rspack_import_3.ij
302
+ }, rest));
303
+ };
304
+ FieldDescription.displayName = "FieldDescription";
305
+ const FieldError = (_0)=>{
306
+ let { id } = _0, rest = _object_without_properties(_0, [
307
+ "id"
308
+ ]);
309
+ const context = useFieldContext();
310
+ return /*#__PURE__*/ (0, react_jsx_runtime__rspack_import_0.jsx)("p", _object_spread({
311
+ id: null != id ? id : null == context ? void 0 : context.errorId,
312
+ className: _field_css__rspack_import_3.kc,
313
+ role: "alert"
314
+ }, rest));
315
+ };
316
+ FieldError.displayName = 'FieldError';
163
317
  __webpack_require__.d(__webpack_exports__, {}, {
164
- A: __rspack_default_export,
165
- z: describedByIds
318
+ I: useResolvedFieldProps
166
319
  });
167
320
  },
321
+ 922 (module) {
322
+ module.exports = require("@radix-ui/react-slot");
323
+ },
168
324
  15 (module) {
169
325
  module.exports = require("react");
170
326
  },
@@ -225,7 +381,7 @@ var __webpack_exports__ = {};
225
381
  var jsx_runtime_ = __webpack_require__(732);
226
382
  const external_input_otp_namespaceObject = require("input-otp");
227
383
  var external_react_ = __webpack_require__(15);
228
- var field = __webpack_require__(140);
384
+ var Field = __webpack_require__(598);
229
385
  var fakeCaret = '_14kw5nt6';
230
386
  var group = '_14kw5nt0';
231
387
  var groupDisabled = '_14kw5nt1';
@@ -295,52 +451,43 @@ var __webpack_exports__ = {};
295
451
  let _ref = [
296
452
  _0,
297
453
  _1
298
- ], [_ref1, ..._rest] = _ref, { label, description, error, length = 6, disabled, id: idProp, onChange } = _ref1, rest = _object_without_properties(_ref1, [
299
- "label",
300
- "description",
301
- "error",
454
+ ], [_ref1, ..._rest] = _ref, { length = 6, invalid, disabled, id: idProp, onChange } = _ref1, rest = _object_without_properties(_ref1, [
302
455
  "length",
456
+ "invalid",
303
457
  "disabled",
304
458
  "id",
305
459
  "onChange"
306
460
  ]), [ref] = _rest;
307
- const generatedId = (0, external_react_.useId)();
308
- const id = null != idProp ? idProp : generatedId;
309
- return /*#__PURE__*/ (0, jsx_runtime_.jsx)(field.A, {
310
- id: id,
311
- label: label,
312
- description: description,
313
- error: error,
314
- children: /*#__PURE__*/ (0, jsx_runtime_.jsx)(external_input_otp_namespaceObject.OTPInput, _object_spread({
315
- ref: ref,
316
- id: id,
317
- maxLength: length,
318
- pattern: external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS,
319
- disabled: disabled,
320
- onChange: onChange,
321
- "aria-invalid": error ? true : void 0,
322
- "aria-describedby": (0, field.z)(id, {
323
- description,
324
- error
325
- }),
326
- containerClassName: `${group} ${disabled ? groupDisabled : ''}`.trim(),
327
- render: ({ slots })=>/*#__PURE__*/ (0, jsx_runtime_.jsx)(jsx_runtime_.Fragment, {
328
- children: slots.map((slotProps, index)=>/*#__PURE__*/ (0, jsx_runtime_.jsxs)("div", {
329
- className: [
330
- slot,
331
- slotProps.isActive ? slotActive : '',
332
- error ? slotInvalid : ''
333
- ].filter(Boolean).join(' '),
334
- children: [
335
- slotProps.char,
336
- slotProps.hasFakeCaret ? /*#__PURE__*/ (0, jsx_runtime_.jsx)("span", {
337
- className: fakeCaret
338
- }) : null
339
- ]
340
- }, index))
341
- })
342
- }, rest))
461
+ const { id, invalid: isInvalid, describedBy } = (0, Field.I)({
462
+ id: idProp,
463
+ invalid
343
464
  });
465
+ return /*#__PURE__*/ (0, jsx_runtime_.jsx)(external_input_otp_namespaceObject.OTPInput, _object_spread({
466
+ ref: ref,
467
+ id: id,
468
+ maxLength: length,
469
+ pattern: external_input_otp_namespaceObject.REGEXP_ONLY_DIGITS,
470
+ disabled: disabled,
471
+ onChange: onChange,
472
+ "aria-invalid": isInvalid,
473
+ "aria-describedby": describedBy,
474
+ containerClassName: `${group} ${disabled ? groupDisabled : ''}`.trim(),
475
+ render: ({ slots })=>/*#__PURE__*/ (0, jsx_runtime_.jsx)(jsx_runtime_.Fragment, {
476
+ children: slots.map((slotProps, index)=>/*#__PURE__*/ (0, jsx_runtime_.jsxs)("div", {
477
+ className: [
478
+ slot,
479
+ slotProps.isActive ? slotActive : '',
480
+ isInvalid ? slotInvalid : ''
481
+ ].filter(Boolean).join(' '),
482
+ children: [
483
+ slotProps.char,
484
+ slotProps.hasFakeCaret ? /*#__PURE__*/ (0, jsx_runtime_.jsx)("span", {
485
+ className: fakeCaret
486
+ }) : null
487
+ ]
488
+ }, index))
489
+ })
490
+ }, rest));
344
491
  });
345
492
  OtpInput.displayName = 'OtpInput';
346
493
  const otp_input_OtpInput = OtpInput;
@@ -126,7 +126,7 @@
126
126
  }
127
127
 
128
128
  .sbqkrxf {
129
- align-items: center;
129
+ align-items: flex-start;
130
130
  gap: var(--vinyasa-space2);
131
131
  display: inline-flex;
132
132
  }