@page-speed/forms 0.6.2 → 0.6.4

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 (57) hide show
  1. package/dist/{FormContext-D_K7lO2V.d.ts → FormContext-C6kWSQuv.d.ts} +1 -1
  2. package/dist/{FormContext-BHKCZ_du.d.cts → FormContext-DLG3GzgL.d.cts} +1 -1
  3. package/dist/chunk-A7MVZ757.js +701 -0
  4. package/dist/chunk-A7MVZ757.js.map +1 -0
  5. package/dist/chunk-DCGSRMZT.cjs +728 -0
  6. package/dist/chunk-DCGSRMZT.cjs.map +1 -0
  7. package/dist/{chunk-455PI4LV.js → chunk-J37BGNM6.js} +5 -4
  8. package/dist/chunk-J37BGNM6.js.map +1 -0
  9. package/dist/{chunk-4ROWNTY6.js → chunk-ML6FGUYS.js} +3 -3
  10. package/dist/{chunk-4ROWNTY6.js.map → chunk-ML6FGUYS.js.map} +1 -1
  11. package/dist/{chunk-QRI5TMES.cjs → chunk-QMWZLGON.cjs} +5 -4
  12. package/dist/chunk-QMWZLGON.cjs.map +1 -0
  13. package/dist/chunk-UBDA7CS5.js +3 -0
  14. package/dist/chunk-UBDA7CS5.js.map +1 -0
  15. package/dist/{chunk-ED4UK63G.cjs → chunk-UQ6JPOBF.cjs} +114 -114
  16. package/dist/{chunk-ED4UK63G.cjs.map → chunk-UQ6JPOBF.cjs.map} +1 -1
  17. package/dist/chunk-V7JSGFCI.cjs +4 -0
  18. package/dist/chunk-V7JSGFCI.cjs.map +1 -0
  19. package/dist/core.cjs +14 -14
  20. package/dist/core.d.cts +17 -11
  21. package/dist/core.d.ts +17 -11
  22. package/dist/core.js +3 -3
  23. package/dist/index.cjs +18 -18
  24. package/dist/index.d.cts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +3 -3
  27. package/dist/inputs.cjs +14 -14
  28. package/dist/inputs.d.cts +8 -2
  29. package/dist/inputs.d.ts +8 -2
  30. package/dist/inputs.js +2 -2
  31. package/dist/integration.cjs +115 -17
  32. package/dist/integration.cjs.map +1 -1
  33. package/dist/integration.d.cts +103 -127
  34. package/dist/integration.d.ts +103 -127
  35. package/dist/integration.js +101 -4
  36. package/dist/integration.js.map +1 -1
  37. package/dist/{types-Fbt73kW_.d.ts → types-BhcLAcZe.d.cts} +149 -22
  38. package/dist/{types-Fbt73kW_.d.cts → types-BhcLAcZe.d.ts} +149 -22
  39. package/dist/validation-rules.d.cts +1 -1
  40. package/dist/validation-rules.d.ts +1 -1
  41. package/dist/validation-utils.d.cts +1 -1
  42. package/dist/validation-utils.d.ts +1 -1
  43. package/dist/validation-valibot.d.cts +1 -1
  44. package/dist/validation-valibot.d.ts +1 -1
  45. package/dist/validation.d.cts +1 -1
  46. package/dist/validation.d.ts +1 -1
  47. package/package.json +1 -1
  48. package/dist/chunk-455PI4LV.js.map +0 -1
  49. package/dist/chunk-MJYEXJ3U.js +0 -373
  50. package/dist/chunk-MJYEXJ3U.js.map +0 -1
  51. package/dist/chunk-MUBEMXI7.cjs +0 -397
  52. package/dist/chunk-MUBEMXI7.cjs.map +0 -1
  53. package/dist/chunk-QRI5TMES.cjs.map +0 -1
  54. package/dist/chunk-RS6AXV5S.cjs +0 -309
  55. package/dist/chunk-RS6AXV5S.cjs.map +0 -1
  56. package/dist/chunk-ZEAH6AKP.js +0 -285
  57. package/dist/chunk-ZEAH6AKP.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=chunk-V7JSGFCI.cjs.map
4
+ //# sourceMappingURL=chunk-V7JSGFCI.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-V7JSGFCI.cjs"}
package/dist/core.cjs CHANGED
@@ -1,38 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunkRS6AXV5S_cjs = require('./chunk-RS6AXV5S.cjs');
4
- var chunkMUBEMXI7_cjs = require('./chunk-MUBEMXI7.cjs');
5
- require('./chunk-QRI5TMES.cjs');
3
+ require('./chunk-V7JSGFCI.cjs');
4
+ var chunkDCGSRMZT_cjs = require('./chunk-DCGSRMZT.cjs');
5
+ require('./chunk-QMWZLGON.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "ButtonGroupForm", {
10
10
  enumerable: true,
11
- get: function () { return chunkRS6AXV5S_cjs.ButtonGroupForm; }
11
+ get: function () { return chunkDCGSRMZT_cjs.ButtonGroupForm; }
12
12
  });
13
- Object.defineProperty(exports, "Form", {
13
+ Object.defineProperty(exports, "Field", {
14
14
  enumerable: true,
15
- get: function () { return chunkRS6AXV5S_cjs.Form; }
15
+ get: function () { return chunkDCGSRMZT_cjs.Field; }
16
16
  });
17
- Object.defineProperty(exports, "FormFeedback", {
17
+ Object.defineProperty(exports, "Form", {
18
18
  enumerable: true,
19
- get: function () { return chunkRS6AXV5S_cjs.FormFeedback; }
19
+ get: function () { return chunkDCGSRMZT_cjs.Form; }
20
20
  });
21
- Object.defineProperty(exports, "Field", {
21
+ Object.defineProperty(exports, "FormContext", {
22
22
  enumerable: true,
23
- get: function () { return chunkMUBEMXI7_cjs.Field; }
23
+ get: function () { return chunkDCGSRMZT_cjs.FormContext; }
24
24
  });
25
- Object.defineProperty(exports, "FormContext", {
25
+ Object.defineProperty(exports, "FormFeedback", {
26
26
  enumerable: true,
27
- get: function () { return chunkMUBEMXI7_cjs.FormContext; }
27
+ get: function () { return chunkDCGSRMZT_cjs.FormFeedback; }
28
28
  });
29
29
  Object.defineProperty(exports, "useField", {
30
30
  enumerable: true,
31
- get: function () { return chunkMUBEMXI7_cjs.useField; }
31
+ get: function () { return chunkDCGSRMZT_cjs.useField; }
32
32
  });
33
33
  Object.defineProperty(exports, "useForm", {
34
34
  enumerable: true,
35
- get: function () { return chunkMUBEMXI7_cjs.useForm; }
35
+ get: function () { return chunkDCGSRMZT_cjs.useForm; }
36
36
  });
37
37
  //# sourceMappingURL=core.cjs.map
38
38
  //# sourceMappingURL=core.cjs.map
package/dist/core.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { b as Field, F as Form, d as FormContext, c as FormFeedback, e as FormFeedbackProps, a as useField, u as useForm } from './FormContext-BHKCZ_du.cjs';
1
+ export { b as Field, F as Form, d as FormContext, c as FormFeedback, e as FormFeedbackProps, a as useField, u as useForm } from './FormContext-DLG3GzgL.cjs';
2
2
  import * as React from 'react';
3
- import { I as InputProps } from './types-Fbt73kW_.cjs';
4
- export { E as ErrorHandler, n as FieldInputProps, o as FieldMeta, s as FieldProps, F as FieldValidator, l as FormActions, c as FormErrors, i as FormHelpers, f as FormNotificationConfig, r as FormProps, h as FormRenderConfig, k as FormState, g as FormStyleConfig, d as FormSubmissionBehavior, e as FormSubmissionConfig, b as FormValues, N as NewFormSubmissionActionConfig, S as SubmissionStatus, j as SubmitHandler, T as TouchedFields, p as UseFieldOptions, q as UseFieldReturn, U as UseFormOptions, m as UseFormReturn, a as ValidationMode, V as ValidationSchema } from './types-Fbt73kW_.cjs';
3
+ import { I as InputProps } from './types-BhcLAcZe.cjs';
4
+ export { E as ErrorHandler, n as FieldInputProps, o as FieldMeta, s as FieldProps, F as FieldValidator, l as FormActions, c as FormErrors, i as FormHelpers, t as FormLayoutSettings, f as FormNotificationConfig, r as FormProps, h as FormRenderConfig, k as FormState, g as FormStyleConfig, d as FormSubmissionBehavior, e as FormSubmissionConfig, b as FormValues, N as NewFormSubmissionActionConfig, S as SubmissionStatus, j as SubmitHandler, T as TouchedFields, p as UseFieldOptions, q as UseFieldReturn, U as UseFormOptions, m as UseFormReturn, a as ValidationMode, V as ValidationSchema } from './types-BhcLAcZe.cjs';
5
5
 
6
6
  type ButtonGroupFormSize = "xs" | "sm" | "default" | "lg";
7
7
  type ButtonGroupFormProps = {
@@ -14,9 +14,9 @@ type ButtonGroupFormProps = {
14
14
  */
15
15
  label?: React.ReactNode;
16
16
  /**
17
- * Placeholder text for the input
17
+ * Optional description below the input
18
18
  */
19
- placeholder?: string;
19
+ description?: React.ReactNode;
20
20
  /**
21
21
  * Input props from form field
22
22
  */
@@ -51,6 +51,12 @@ type ButtonGroupFormProps = {
51
51
  * Icon component for icon based submit buttons
52
52
  */
53
53
  submitIconComponent?: React.ReactNode;
54
+ /**
55
+ * Error message text to display below the input group.
56
+ * Should be the raw error string(s) from the form field meta.
57
+ * The ring styling is driven by `inputProps.error` (boolean); this controls the visible message.
58
+ */
59
+ errorText?: string | string[];
54
60
  /**
55
61
  * Additional className for the label
56
62
  */
@@ -62,11 +68,11 @@ type ButtonGroupFormProps = {
62
68
  * Commonly used for newsletter signups and other simple single-field forms.
63
69
  * The input and button automatically adjust sizing together.
64
70
  *
65
- * Size mappings:
66
- * - xs: h-8 text-xs
67
- * - sm: h-9 text-sm
68
- * - default: h-10 text-sm
69
- * - lg: h-12 text-base
71
+ * Size mappings (input height / button height — always equal):
72
+ * - xs: h-6 / h-6
73
+ * - sm: h-9 / h-9
74
+ * - default: h-9 / h-9
75
+ * - lg: h-10 / h-10
70
76
  *
71
77
  * @example
72
78
  * ```tsx
@@ -79,7 +85,7 @@ type ButtonGroupFormProps = {
79
85
  * />
80
86
  * ```
81
87
  */
82
- declare function ButtonGroupForm({ name, label, inputProps, submitLabel, submitVariant, size, isSubmitting, submitIconName, submitIconComponent, className, labelClassName, }: ButtonGroupFormProps): React.JSX.Element;
88
+ declare function ButtonGroupForm({ name, label, description, inputProps, submitLabel, submitVariant, size, isSubmitting, submitIconName, submitIconComponent, errorText, className, labelClassName, }: ButtonGroupFormProps): React.JSX.Element;
83
89
  declare namespace ButtonGroupForm {
84
90
  var displayName: string;
85
91
  }
package/dist/core.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { b as Field, F as Form, d as FormContext, c as FormFeedback, e as FormFeedbackProps, a as useField, u as useForm } from './FormContext-D_K7lO2V.js';
1
+ export { b as Field, F as Form, d as FormContext, c as FormFeedback, e as FormFeedbackProps, a as useField, u as useForm } from './FormContext-C6kWSQuv.js';
2
2
  import * as React from 'react';
3
- import { I as InputProps } from './types-Fbt73kW_.js';
4
- export { E as ErrorHandler, n as FieldInputProps, o as FieldMeta, s as FieldProps, F as FieldValidator, l as FormActions, c as FormErrors, i as FormHelpers, f as FormNotificationConfig, r as FormProps, h as FormRenderConfig, k as FormState, g as FormStyleConfig, d as FormSubmissionBehavior, e as FormSubmissionConfig, b as FormValues, N as NewFormSubmissionActionConfig, S as SubmissionStatus, j as SubmitHandler, T as TouchedFields, p as UseFieldOptions, q as UseFieldReturn, U as UseFormOptions, m as UseFormReturn, a as ValidationMode, V as ValidationSchema } from './types-Fbt73kW_.js';
3
+ import { I as InputProps } from './types-BhcLAcZe.js';
4
+ export { E as ErrorHandler, n as FieldInputProps, o as FieldMeta, s as FieldProps, F as FieldValidator, l as FormActions, c as FormErrors, i as FormHelpers, t as FormLayoutSettings, f as FormNotificationConfig, r as FormProps, h as FormRenderConfig, k as FormState, g as FormStyleConfig, d as FormSubmissionBehavior, e as FormSubmissionConfig, b as FormValues, N as NewFormSubmissionActionConfig, S as SubmissionStatus, j as SubmitHandler, T as TouchedFields, p as UseFieldOptions, q as UseFieldReturn, U as UseFormOptions, m as UseFormReturn, a as ValidationMode, V as ValidationSchema } from './types-BhcLAcZe.js';
5
5
 
6
6
  type ButtonGroupFormSize = "xs" | "sm" | "default" | "lg";
7
7
  type ButtonGroupFormProps = {
@@ -14,9 +14,9 @@ type ButtonGroupFormProps = {
14
14
  */
15
15
  label?: React.ReactNode;
16
16
  /**
17
- * Placeholder text for the input
17
+ * Optional description below the input
18
18
  */
19
- placeholder?: string;
19
+ description?: React.ReactNode;
20
20
  /**
21
21
  * Input props from form field
22
22
  */
@@ -51,6 +51,12 @@ type ButtonGroupFormProps = {
51
51
  * Icon component for icon based submit buttons
52
52
  */
53
53
  submitIconComponent?: React.ReactNode;
54
+ /**
55
+ * Error message text to display below the input group.
56
+ * Should be the raw error string(s) from the form field meta.
57
+ * The ring styling is driven by `inputProps.error` (boolean); this controls the visible message.
58
+ */
59
+ errorText?: string | string[];
54
60
  /**
55
61
  * Additional className for the label
56
62
  */
@@ -62,11 +68,11 @@ type ButtonGroupFormProps = {
62
68
  * Commonly used for newsletter signups and other simple single-field forms.
63
69
  * The input and button automatically adjust sizing together.
64
70
  *
65
- * Size mappings:
66
- * - xs: h-8 text-xs
67
- * - sm: h-9 text-sm
68
- * - default: h-10 text-sm
69
- * - lg: h-12 text-base
71
+ * Size mappings (input height / button height — always equal):
72
+ * - xs: h-6 / h-6
73
+ * - sm: h-9 / h-9
74
+ * - default: h-9 / h-9
75
+ * - lg: h-10 / h-10
70
76
  *
71
77
  * @example
72
78
  * ```tsx
@@ -79,7 +85,7 @@ type ButtonGroupFormProps = {
79
85
  * />
80
86
  * ```
81
87
  */
82
- declare function ButtonGroupForm({ name, label, inputProps, submitLabel, submitVariant, size, isSubmitting, submitIconName, submitIconComponent, className, labelClassName, }: ButtonGroupFormProps): React.JSX.Element;
88
+ declare function ButtonGroupForm({ name, label, description, inputProps, submitLabel, submitVariant, size, isSubmitting, submitIconName, submitIconComponent, errorText, className, labelClassName, }: ButtonGroupFormProps): React.JSX.Element;
83
89
  declare namespace ButtonGroupForm {
84
90
  var displayName: string;
85
91
  }
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
- export { ButtonGroupForm, Form, FormFeedback } from './chunk-ZEAH6AKP.js';
2
- export { Field, FormContext, useField, useForm } from './chunk-MJYEXJ3U.js';
3
- import './chunk-455PI4LV.js';
1
+ import './chunk-UBDA7CS5.js';
2
+ export { ButtonGroupForm, Field, Form, FormContext, FormFeedback, useField, useForm } from './chunk-A7MVZ757.js';
3
+ import './chunk-J37BGNM6.js';
4
4
  //# sourceMappingURL=core.js.map
5
5
  //# sourceMappingURL=core.js.map
package/dist/index.cjs CHANGED
@@ -1,54 +1,54 @@
1
1
  'use strict';
2
2
 
3
- var chunkRS6AXV5S_cjs = require('./chunk-RS6AXV5S.cjs');
4
- var chunkMUBEMXI7_cjs = require('./chunk-MUBEMXI7.cjs');
5
- var chunkQRI5TMES_cjs = require('./chunk-QRI5TMES.cjs');
3
+ require('./chunk-V7JSGFCI.cjs');
4
+ var chunkDCGSRMZT_cjs = require('./chunk-DCGSRMZT.cjs');
5
+ var chunkQMWZLGON_cjs = require('./chunk-QMWZLGON.cjs');
6
6
 
7
7
 
8
8
 
9
- Object.defineProperty(exports, "Form", {
9
+ Object.defineProperty(exports, "Field", {
10
10
  enumerable: true,
11
- get: function () { return chunkRS6AXV5S_cjs.Form; }
11
+ get: function () { return chunkDCGSRMZT_cjs.Field; }
12
12
  });
13
- Object.defineProperty(exports, "FormFeedback", {
13
+ Object.defineProperty(exports, "Form", {
14
14
  enumerable: true,
15
- get: function () { return chunkRS6AXV5S_cjs.FormFeedback; }
15
+ get: function () { return chunkDCGSRMZT_cjs.Form; }
16
16
  });
17
- Object.defineProperty(exports, "Field", {
17
+ Object.defineProperty(exports, "FormContext", {
18
18
  enumerable: true,
19
- get: function () { return chunkMUBEMXI7_cjs.Field; }
19
+ get: function () { return chunkDCGSRMZT_cjs.FormContext; }
20
20
  });
21
- Object.defineProperty(exports, "FormContext", {
21
+ Object.defineProperty(exports, "FormFeedback", {
22
22
  enumerable: true,
23
- get: function () { return chunkMUBEMXI7_cjs.FormContext; }
23
+ get: function () { return chunkDCGSRMZT_cjs.FormFeedback; }
24
24
  });
25
25
  Object.defineProperty(exports, "useField", {
26
26
  enumerable: true,
27
- get: function () { return chunkMUBEMXI7_cjs.useField; }
27
+ get: function () { return chunkDCGSRMZT_cjs.useField; }
28
28
  });
29
29
  Object.defineProperty(exports, "useForm", {
30
30
  enumerable: true,
31
- get: function () { return chunkMUBEMXI7_cjs.useForm; }
31
+ get: function () { return chunkDCGSRMZT_cjs.useForm; }
32
32
  });
33
33
  Object.defineProperty(exports, "FieldDescription", {
34
34
  enumerable: true,
35
- get: function () { return chunkQRI5TMES_cjs.FieldDescription; }
35
+ get: function () { return chunkQMWZLGON_cjs.FieldDescription; }
36
36
  });
37
37
  Object.defineProperty(exports, "FieldError", {
38
38
  enumerable: true,
39
- get: function () { return chunkQRI5TMES_cjs.FieldError; }
39
+ get: function () { return chunkQMWZLGON_cjs.FieldError; }
40
40
  });
41
41
  Object.defineProperty(exports, "FieldGroup", {
42
42
  enumerable: true,
43
- get: function () { return chunkQRI5TMES_cjs.FieldGroup; }
43
+ get: function () { return chunkQMWZLGON_cjs.FieldGroup; }
44
44
  });
45
45
  Object.defineProperty(exports, "FieldWrapper", {
46
46
  enumerable: true,
47
- get: function () { return chunkQRI5TMES_cjs.Field; }
47
+ get: function () { return chunkQMWZLGON_cjs.Field; }
48
48
  });
49
49
  Object.defineProperty(exports, "FormFieldLabel", {
50
50
  enumerable: true,
51
- get: function () { return chunkQRI5TMES_cjs.FieldLabel; }
51
+ get: function () { return chunkQMWZLGON_cjs.FieldLabel; }
52
52
  });
53
53
  //# sourceMappingURL=index.cjs.map
54
54
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- export { b as Field, F as Form, d as FormContext, c as FormFeedback, e as FormFeedbackProps, a as useField, u as useForm } from './FormContext-BHKCZ_du.cjs';
2
- export { E as ErrorHandler, n as FieldInputProps, o as FieldMeta, s as FieldProps, F as FieldValidator, l as FormActions, c as FormErrors, i as FormHelpers, f as FormNotificationConfig, r as FormProps, h as FormRenderConfig, k as FormState, g as FormStyleConfig, d as FormSubmissionBehavior, e as FormSubmissionConfig, b as FormValues, I as InputProps, N as NewFormSubmissionActionConfig, S as SubmissionStatus, j as SubmitHandler, T as TouchedFields, p as UseFieldOptions, q as UseFieldReturn, U as UseFormOptions, m as UseFormReturn, a as ValidationMode, V as ValidationSchema } from './types-Fbt73kW_.cjs';
1
+ export { b as Field, F as Form, d as FormContext, c as FormFeedback, e as FormFeedbackProps, a as useField, u as useForm } from './FormContext-DLG3GzgL.cjs';
2
+ export { E as ErrorHandler, n as FieldInputProps, o as FieldMeta, s as FieldProps, F as FieldValidator, l as FormActions, c as FormErrors, i as FormHelpers, f as FormNotificationConfig, r as FormProps, h as FormRenderConfig, k as FormState, g as FormStyleConfig, d as FormSubmissionBehavior, e as FormSubmissionConfig, b as FormValues, I as InputProps, N as NewFormSubmissionActionConfig, S as SubmissionStatus, j as SubmitHandler, T as TouchedFields, p as UseFieldOptions, q as UseFieldReturn, U as UseFormOptions, m as UseFormReturn, a as ValidationMode, V as ValidationSchema } from './types-BhcLAcZe.cjs';
3
3
  import * as React from 'react';
4
4
 
5
5
  type FieldOrientation = "vertical" | "horizontal";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { b as Field, F as Form, d as FormContext, c as FormFeedback, e as FormFeedbackProps, a as useField, u as useForm } from './FormContext-D_K7lO2V.js';
2
- export { E as ErrorHandler, n as FieldInputProps, o as FieldMeta, s as FieldProps, F as FieldValidator, l as FormActions, c as FormErrors, i as FormHelpers, f as FormNotificationConfig, r as FormProps, h as FormRenderConfig, k as FormState, g as FormStyleConfig, d as FormSubmissionBehavior, e as FormSubmissionConfig, b as FormValues, I as InputProps, N as NewFormSubmissionActionConfig, S as SubmissionStatus, j as SubmitHandler, T as TouchedFields, p as UseFieldOptions, q as UseFieldReturn, U as UseFormOptions, m as UseFormReturn, a as ValidationMode, V as ValidationSchema } from './types-Fbt73kW_.js';
1
+ export { b as Field, F as Form, d as FormContext, c as FormFeedback, e as FormFeedbackProps, a as useField, u as useForm } from './FormContext-C6kWSQuv.js';
2
+ export { E as ErrorHandler, n as FieldInputProps, o as FieldMeta, s as FieldProps, F as FieldValidator, l as FormActions, c as FormErrors, i as FormHelpers, f as FormNotificationConfig, r as FormProps, h as FormRenderConfig, k as FormState, g as FormStyleConfig, d as FormSubmissionBehavior, e as FormSubmissionConfig, b as FormValues, I as InputProps, N as NewFormSubmissionActionConfig, S as SubmissionStatus, j as SubmitHandler, T as TouchedFields, p as UseFieldOptions, q as UseFieldReturn, U as UseFormOptions, m as UseFormReturn, a as ValidationMode, V as ValidationSchema } from './types-BhcLAcZe.js';
3
3
  import * as React from 'react';
4
4
 
5
5
  type FieldOrientation = "vertical" | "horizontal";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Form, FormFeedback } from './chunk-ZEAH6AKP.js';
2
- export { Field, FormContext, useField, useForm } from './chunk-MJYEXJ3U.js';
3
- export { FieldDescription, FieldError, FieldGroup, Field as FieldWrapper, FieldLabel as FormFieldLabel } from './chunk-455PI4LV.js';
1
+ import './chunk-UBDA7CS5.js';
2
+ export { Field, Form, FormContext, FormFeedback, useField, useForm } from './chunk-A7MVZ757.js';
3
+ export { FieldDescription, FieldError, FieldGroup, Field as FieldWrapper, FieldLabel as FormFieldLabel } from './chunk-J37BGNM6.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
package/dist/inputs.cjs CHANGED
@@ -1,57 +1,57 @@
1
1
  'use strict';
2
2
 
3
- var chunkED4UK63G_cjs = require('./chunk-ED4UK63G.cjs');
4
- var chunkQRI5TMES_cjs = require('./chunk-QRI5TMES.cjs');
3
+ var chunkUQ6JPOBF_cjs = require('./chunk-UQ6JPOBF.cjs');
4
+ var chunkQMWZLGON_cjs = require('./chunk-QMWZLGON.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Checkbox", {
9
9
  enumerable: true,
10
- get: function () { return chunkED4UK63G_cjs.Checkbox; }
10
+ get: function () { return chunkUQ6JPOBF_cjs.Checkbox; }
11
11
  });
12
12
  Object.defineProperty(exports, "CheckboxGroup", {
13
13
  enumerable: true,
14
- get: function () { return chunkED4UK63G_cjs.CheckboxGroup; }
14
+ get: function () { return chunkUQ6JPOBF_cjs.CheckboxGroup; }
15
15
  });
16
16
  Object.defineProperty(exports, "DatePicker", {
17
17
  enumerable: true,
18
- get: function () { return chunkED4UK63G_cjs.DatePicker; }
18
+ get: function () { return chunkUQ6JPOBF_cjs.DatePicker; }
19
19
  });
20
20
  Object.defineProperty(exports, "DateRangePicker", {
21
21
  enumerable: true,
22
- get: function () { return chunkED4UK63G_cjs.DateRangePicker; }
22
+ get: function () { return chunkUQ6JPOBF_cjs.DateRangePicker; }
23
23
  });
24
24
  Object.defineProperty(exports, "FileInput", {
25
25
  enumerable: true,
26
- get: function () { return chunkED4UK63G_cjs.FileInput; }
26
+ get: function () { return chunkUQ6JPOBF_cjs.FileInput; }
27
27
  });
28
28
  Object.defineProperty(exports, "MultiSelect", {
29
29
  enumerable: true,
30
- get: function () { return chunkED4UK63G_cjs.MultiSelect; }
30
+ get: function () { return chunkUQ6JPOBF_cjs.MultiSelect; }
31
31
  });
32
32
  Object.defineProperty(exports, "Radio", {
33
33
  enumerable: true,
34
- get: function () { return chunkED4UK63G_cjs.Radio; }
34
+ get: function () { return chunkUQ6JPOBF_cjs.Radio; }
35
35
  });
36
36
  Object.defineProperty(exports, "Select", {
37
37
  enumerable: true,
38
- get: function () { return chunkED4UK63G_cjs.Select; }
38
+ get: function () { return chunkUQ6JPOBF_cjs.Select; }
39
39
  });
40
40
  Object.defineProperty(exports, "Switch", {
41
41
  enumerable: true,
42
- get: function () { return chunkED4UK63G_cjs.Switch; }
42
+ get: function () { return chunkUQ6JPOBF_cjs.Switch; }
43
43
  });
44
44
  Object.defineProperty(exports, "TextArea", {
45
45
  enumerable: true,
46
- get: function () { return chunkED4UK63G_cjs.TextArea; }
46
+ get: function () { return chunkUQ6JPOBF_cjs.TextArea; }
47
47
  });
48
48
  Object.defineProperty(exports, "TimePicker", {
49
49
  enumerable: true,
50
- get: function () { return chunkED4UK63G_cjs.TimePicker; }
50
+ get: function () { return chunkUQ6JPOBF_cjs.TimePicker; }
51
51
  });
52
52
  Object.defineProperty(exports, "TextInput", {
53
53
  enumerable: true,
54
- get: function () { return chunkQRI5TMES_cjs.TextInput; }
54
+ get: function () { return chunkQMWZLGON_cjs.TextInput; }
55
55
  });
56
56
  //# sourceMappingURL=inputs.cjs.map
57
57
  //# sourceMappingURL=inputs.cjs.map
package/dist/inputs.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { I as InputProps } from './types-Fbt73kW_.cjs';
2
+ import { I as InputProps } from './types-BhcLAcZe.cjs';
3
3
 
4
4
  /**
5
5
  * TextInput - High-performance text input component (ShadCN-based)
@@ -26,8 +26,14 @@ import { I as InputProps } from './types-Fbt73kW_.cjs';
26
26
  *
27
27
  * @see https://opensite.ai/developers/page-speed/forms/text-input
28
28
  */
29
- declare function TextInput({ name, value, onChange, onBlur, placeholder, disabled, required, error, className, type, id, ...props }: InputProps<string> & {
29
+ declare function TextInput({ name, value, onChange, onBlur, placeholder, disabled, required, error, className, type, id, suppressValueRing, ...props }: InputProps<string> & {
30
30
  type?: "text" | "email" | "password" | "url" | "tel" | "search";
31
+ /**
32
+ * When true, suppresses the `ring-2 ring-ring` applied when a value is
33
+ * present. Use this when the component is embedded inside a wrapper (e.g.
34
+ * ButtonGroupForm) that renders its own unified ring.
35
+ */
36
+ suppressValueRing?: boolean;
31
37
  }): React.JSX.Element;
32
38
  declare namespace TextInput {
33
39
  var displayName: string;
package/dist/inputs.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { I as InputProps } from './types-Fbt73kW_.js';
2
+ import { I as InputProps } from './types-BhcLAcZe.js';
3
3
 
4
4
  /**
5
5
  * TextInput - High-performance text input component (ShadCN-based)
@@ -26,8 +26,14 @@ import { I as InputProps } from './types-Fbt73kW_.js';
26
26
  *
27
27
  * @see https://opensite.ai/developers/page-speed/forms/text-input
28
28
  */
29
- declare function TextInput({ name, value, onChange, onBlur, placeholder, disabled, required, error, className, type, id, ...props }: InputProps<string> & {
29
+ declare function TextInput({ name, value, onChange, onBlur, placeholder, disabled, required, error, className, type, id, suppressValueRing, ...props }: InputProps<string> & {
30
30
  type?: "text" | "email" | "password" | "url" | "tel" | "search";
31
+ /**
32
+ * When true, suppresses the `ring-2 ring-ring` applied when a value is
33
+ * present. Use this when the component is embedded inside a wrapper (e.g.
34
+ * ButtonGroupForm) that renders its own unified ring.
35
+ */
36
+ suppressValueRing?: boolean;
31
37
  }): React.JSX.Element;
32
38
  declare namespace TextInput {
33
39
  var displayName: string;
package/dist/inputs.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileInput, MultiSelect, Radio, Select, Switch, TextArea, TimePicker } from './chunk-4ROWNTY6.js';
2
- export { TextInput } from './chunk-455PI4LV.js';
1
+ export { Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileInput, MultiSelect, Radio, Select, Switch, TextArea, TimePicker } from './chunk-ML6FGUYS.js';
2
+ export { TextInput } from './chunk-J37BGNM6.js';
3
3
  //# sourceMappingURL=inputs.js.map
4
4
  //# sourceMappingURL=inputs.js.map