@page-speed/forms 0.5.4 → 0.5.6

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 (31) hide show
  1. package/dist/{chunk-232KNGJI.js → chunk-A7R6GEMA.js} +4 -4
  2. package/dist/chunk-A7R6GEMA.js.map +1 -0
  3. package/dist/{chunk-EX6CRLKG.cjs → chunk-KPHMVGTU.cjs} +6 -6
  4. package/dist/{chunk-EX6CRLKG.cjs.map → chunk-KPHMVGTU.cjs.map} +1 -1
  5. package/dist/{chunk-VLGZG2VP.js → chunk-N2HOVRRN.js} +4 -4
  6. package/dist/{chunk-VLGZG2VP.js.map → chunk-N2HOVRRN.js.map} +1 -1
  7. package/dist/{chunk-27JUYRDE.cjs → chunk-O4ZLR7AN.cjs} +10 -10
  8. package/dist/{chunk-27JUYRDE.cjs.map → chunk-O4ZLR7AN.cjs.map} +1 -1
  9. package/dist/{chunk-24RPM43T.js → chunk-Q7VR374Y.js} +3 -3
  10. package/dist/{chunk-24RPM43T.js.map → chunk-Q7VR374Y.js.map} +1 -1
  11. package/dist/{chunk-DKLLPKZN.cjs → chunk-QQSBW6N3.cjs} +4 -4
  12. package/dist/chunk-QQSBW6N3.cjs.map +1 -0
  13. package/dist/{chunk-5NT5T5XY.js → chunk-QZ4PK62A.js} +4 -4
  14. package/dist/{chunk-5NT5T5XY.js.map → chunk-QZ4PK62A.js.map} +1 -1
  15. package/dist/{chunk-ZYFTT6DB.cjs → chunk-WVSLOSNU.cjs} +122 -122
  16. package/dist/{chunk-ZYFTT6DB.cjs.map → chunk-WVSLOSNU.cjs.map} +1 -1
  17. package/dist/core.cjs +9 -9
  18. package/dist/core.js +3 -3
  19. package/dist/index.cjs +14 -14
  20. package/dist/index.js +3 -3
  21. package/dist/inputs.cjs +14 -14
  22. package/dist/inputs.js +2 -2
  23. package/dist/integration.cjs +18 -18
  24. package/dist/integration.cjs.map +1 -1
  25. package/dist/integration.d.cts +1 -1
  26. package/dist/integration.d.ts +1 -1
  27. package/dist/integration.js +4 -4
  28. package/dist/integration.js.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/chunk-232KNGJI.js.map +0 -1
  31. package/dist/chunk-DKLLPKZN.cjs.map +0 -1
package/dist/core.cjs CHANGED
@@ -1,34 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var chunk27JUYRDE_cjs = require('./chunk-27JUYRDE.cjs');
4
- var chunkEX6CRLKG_cjs = require('./chunk-EX6CRLKG.cjs');
5
- require('./chunk-DKLLPKZN.cjs');
3
+ var chunkO4ZLR7AN_cjs = require('./chunk-O4ZLR7AN.cjs');
4
+ var chunkKPHMVGTU_cjs = require('./chunk-KPHMVGTU.cjs');
5
+ require('./chunk-QQSBW6N3.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "Form", {
10
10
  enumerable: true,
11
- get: function () { return chunk27JUYRDE_cjs.Form; }
11
+ get: function () { return chunkO4ZLR7AN_cjs.Form; }
12
12
  });
13
13
  Object.defineProperty(exports, "FormFeedback", {
14
14
  enumerable: true,
15
- get: function () { return chunk27JUYRDE_cjs.FormFeedback; }
15
+ get: function () { return chunkO4ZLR7AN_cjs.FormFeedback; }
16
16
  });
17
17
  Object.defineProperty(exports, "Field", {
18
18
  enumerable: true,
19
- get: function () { return chunkEX6CRLKG_cjs.Field; }
19
+ get: function () { return chunkKPHMVGTU_cjs.Field; }
20
20
  });
21
21
  Object.defineProperty(exports, "FormContext", {
22
22
  enumerable: true,
23
- get: function () { return chunkEX6CRLKG_cjs.FormContext; }
23
+ get: function () { return chunkKPHMVGTU_cjs.FormContext; }
24
24
  });
25
25
  Object.defineProperty(exports, "useField", {
26
26
  enumerable: true,
27
- get: function () { return chunkEX6CRLKG_cjs.useField; }
27
+ get: function () { return chunkKPHMVGTU_cjs.useField; }
28
28
  });
29
29
  Object.defineProperty(exports, "useForm", {
30
30
  enumerable: true,
31
- get: function () { return chunkEX6CRLKG_cjs.useForm; }
31
+ get: function () { return chunkKPHMVGTU_cjs.useForm; }
32
32
  });
33
33
  //# sourceMappingURL=core.cjs.map
34
34
  //# sourceMappingURL=core.cjs.map
package/dist/core.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Form, FormFeedback } from './chunk-VLGZG2VP.js';
2
- export { Field, FormContext, useField, useForm } from './chunk-24RPM43T.js';
3
- import './chunk-232KNGJI.js';
1
+ export { Form, FormFeedback } from './chunk-N2HOVRRN.js';
2
+ export { Field, FormContext, useField, useForm } from './chunk-Q7VR374Y.js';
3
+ import './chunk-A7R6GEMA.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 chunk27JUYRDE_cjs = require('./chunk-27JUYRDE.cjs');
4
- var chunkEX6CRLKG_cjs = require('./chunk-EX6CRLKG.cjs');
5
- var chunkDKLLPKZN_cjs = require('./chunk-DKLLPKZN.cjs');
3
+ var chunkO4ZLR7AN_cjs = require('./chunk-O4ZLR7AN.cjs');
4
+ var chunkKPHMVGTU_cjs = require('./chunk-KPHMVGTU.cjs');
5
+ var chunkQQSBW6N3_cjs = require('./chunk-QQSBW6N3.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "Form", {
10
10
  enumerable: true,
11
- get: function () { return chunk27JUYRDE_cjs.Form; }
11
+ get: function () { return chunkO4ZLR7AN_cjs.Form; }
12
12
  });
13
13
  Object.defineProperty(exports, "FormFeedback", {
14
14
  enumerable: true,
15
- get: function () { return chunk27JUYRDE_cjs.FormFeedback; }
15
+ get: function () { return chunkO4ZLR7AN_cjs.FormFeedback; }
16
16
  });
17
17
  Object.defineProperty(exports, "Field", {
18
18
  enumerable: true,
19
- get: function () { return chunkEX6CRLKG_cjs.Field; }
19
+ get: function () { return chunkKPHMVGTU_cjs.Field; }
20
20
  });
21
21
  Object.defineProperty(exports, "FormContext", {
22
22
  enumerable: true,
23
- get: function () { return chunkEX6CRLKG_cjs.FormContext; }
23
+ get: function () { return chunkKPHMVGTU_cjs.FormContext; }
24
24
  });
25
25
  Object.defineProperty(exports, "useField", {
26
26
  enumerable: true,
27
- get: function () { return chunkEX6CRLKG_cjs.useField; }
27
+ get: function () { return chunkKPHMVGTU_cjs.useField; }
28
28
  });
29
29
  Object.defineProperty(exports, "useForm", {
30
30
  enumerable: true,
31
- get: function () { return chunkEX6CRLKG_cjs.useForm; }
31
+ get: function () { return chunkKPHMVGTU_cjs.useForm; }
32
32
  });
33
33
  Object.defineProperty(exports, "FieldDescription", {
34
34
  enumerable: true,
35
- get: function () { return chunkDKLLPKZN_cjs.FieldDescription; }
35
+ get: function () { return chunkQQSBW6N3_cjs.FieldDescription; }
36
36
  });
37
37
  Object.defineProperty(exports, "FieldError", {
38
38
  enumerable: true,
39
- get: function () { return chunkDKLLPKZN_cjs.FieldError; }
39
+ get: function () { return chunkQQSBW6N3_cjs.FieldError; }
40
40
  });
41
41
  Object.defineProperty(exports, "FieldGroup", {
42
42
  enumerable: true,
43
- get: function () { return chunkDKLLPKZN_cjs.FieldGroup; }
43
+ get: function () { return chunkQQSBW6N3_cjs.FieldGroup; }
44
44
  });
45
45
  Object.defineProperty(exports, "FieldWrapper", {
46
46
  enumerable: true,
47
- get: function () { return chunkDKLLPKZN_cjs.Field; }
47
+ get: function () { return chunkQQSBW6N3_cjs.Field; }
48
48
  });
49
49
  Object.defineProperty(exports, "FormFieldLabel", {
50
50
  enumerable: true,
51
- get: function () { return chunkDKLLPKZN_cjs.FieldLabel; }
51
+ get: function () { return chunkQQSBW6N3_cjs.FieldLabel; }
52
52
  });
53
53
  //# sourceMappingURL=index.cjs.map
54
54
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { Form, FormFeedback } from './chunk-VLGZG2VP.js';
2
- export { Field, FormContext, useField, useForm } from './chunk-24RPM43T.js';
3
- export { FieldDescription, FieldError, FieldGroup, Field as FieldWrapper, FieldLabel as FormFieldLabel } from './chunk-232KNGJI.js';
1
+ export { Form, FormFeedback } from './chunk-N2HOVRRN.js';
2
+ export { Field, FormContext, useField, useForm } from './chunk-Q7VR374Y.js';
3
+ export { FieldDescription, FieldError, FieldGroup, Field as FieldWrapper, FieldLabel as FormFieldLabel } from './chunk-A7R6GEMA.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 chunkZYFTT6DB_cjs = require('./chunk-ZYFTT6DB.cjs');
4
- require('./chunk-DKLLPKZN.cjs');
3
+ var chunkWVSLOSNU_cjs = require('./chunk-WVSLOSNU.cjs');
4
+ require('./chunk-QQSBW6N3.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "Checkbox", {
9
9
  enumerable: true,
10
- get: function () { return chunkZYFTT6DB_cjs.Checkbox; }
10
+ get: function () { return chunkWVSLOSNU_cjs.Checkbox; }
11
11
  });
12
12
  Object.defineProperty(exports, "CheckboxGroup", {
13
13
  enumerable: true,
14
- get: function () { return chunkZYFTT6DB_cjs.CheckboxGroup; }
14
+ get: function () { return chunkWVSLOSNU_cjs.CheckboxGroup; }
15
15
  });
16
16
  Object.defineProperty(exports, "DatePicker", {
17
17
  enumerable: true,
18
- get: function () { return chunkZYFTT6DB_cjs.DatePicker; }
18
+ get: function () { return chunkWVSLOSNU_cjs.DatePicker; }
19
19
  });
20
20
  Object.defineProperty(exports, "DateRangePicker", {
21
21
  enumerable: true,
22
- get: function () { return chunkZYFTT6DB_cjs.DateRangePicker; }
22
+ get: function () { return chunkWVSLOSNU_cjs.DateRangePicker; }
23
23
  });
24
24
  Object.defineProperty(exports, "FileInput", {
25
25
  enumerable: true,
26
- get: function () { return chunkZYFTT6DB_cjs.FileInput; }
26
+ get: function () { return chunkWVSLOSNU_cjs.FileInput; }
27
27
  });
28
28
  Object.defineProperty(exports, "MultiSelect", {
29
29
  enumerable: true,
30
- get: function () { return chunkZYFTT6DB_cjs.MultiSelect; }
30
+ get: function () { return chunkWVSLOSNU_cjs.MultiSelect; }
31
31
  });
32
32
  Object.defineProperty(exports, "Radio", {
33
33
  enumerable: true,
34
- get: function () { return chunkZYFTT6DB_cjs.Radio; }
34
+ get: function () { return chunkWVSLOSNU_cjs.Radio; }
35
35
  });
36
36
  Object.defineProperty(exports, "Select", {
37
37
  enumerable: true,
38
- get: function () { return chunkZYFTT6DB_cjs.Select; }
38
+ get: function () { return chunkWVSLOSNU_cjs.Select; }
39
39
  });
40
40
  Object.defineProperty(exports, "Switch", {
41
41
  enumerable: true,
42
- get: function () { return chunkZYFTT6DB_cjs.Switch; }
42
+ get: function () { return chunkWVSLOSNU_cjs.Switch; }
43
43
  });
44
44
  Object.defineProperty(exports, "TextArea", {
45
45
  enumerable: true,
46
- get: function () { return chunkZYFTT6DB_cjs.TextArea; }
46
+ get: function () { return chunkWVSLOSNU_cjs.TextArea; }
47
47
  });
48
48
  Object.defineProperty(exports, "TextInput", {
49
49
  enumerable: true,
50
- get: function () { return chunkZYFTT6DB_cjs.TextInput; }
50
+ get: function () { return chunkWVSLOSNU_cjs.TextInput; }
51
51
  });
52
52
  Object.defineProperty(exports, "TimePicker", {
53
53
  enumerable: true,
54
- get: function () { return chunkZYFTT6DB_cjs.TimePicker; }
54
+ get: function () { return chunkWVSLOSNU_cjs.TimePicker; }
55
55
  });
56
56
  //# sourceMappingURL=inputs.cjs.map
57
57
  //# sourceMappingURL=inputs.cjs.map
package/dist/inputs.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileInput, MultiSelect, Radio, Select, Switch, TextArea, TextInput, TimePicker } from './chunk-5NT5T5XY.js';
2
- import './chunk-232KNGJI.js';
1
+ export { Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileInput, MultiSelect, Radio, Select, Switch, TextArea, TextInput, TimePicker } from './chunk-QZ4PK62A.js';
2
+ import './chunk-A7R6GEMA.js';
3
3
  //# sourceMappingURL=inputs.js.map
4
4
  //# sourceMappingURL=inputs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkEX6CRLKG_cjs = require('./chunk-EX6CRLKG.cjs');
4
- var chunkZYFTT6DB_cjs = require('./chunk-ZYFTT6DB.cjs');
5
- require('./chunk-DKLLPKZN.cjs');
3
+ var chunkKPHMVGTU_cjs = require('./chunk-KPHMVGTU.cjs');
4
+ var chunkWVSLOSNU_cjs = require('./chunk-WVSLOSNU.cjs');
5
+ require('./chunk-QQSBW6N3.cjs');
6
6
  var React2 = require('react');
7
7
 
8
8
  function _interopNamespace(e) {
@@ -565,7 +565,7 @@ function useContactForm(options) {
565
565
  window.location.assign(destination);
566
566
  }, 150);
567
567
  }, [navigate, redirectUrl]);
568
- const form = chunkEX6CRLKG_cjs.useForm({
568
+ const form = chunkKPHMVGTU_cjs.useForm({
569
569
  initialValues: React2.useMemo(
570
570
  () => generateInitialValues(formFields),
571
571
  [formFields]
@@ -636,14 +636,14 @@ function DynamicFormField({
636
636
  onFileUpload,
637
637
  onFileRemove,
638
638
  isUploading = false,
639
- renderLabel = false
639
+ renderLabel = true
640
640
  }) {
641
641
  const fieldId = field.name;
642
642
  const usesGroupLegend = field.type === "radio" || field.type === "checkbox-group";
643
643
  const usesInlineCheckboxLabel = field.type === "checkbox";
644
644
  const shouldRenderFieldLabel = renderLabel && !usesGroupLegend && !usesInlineCheckboxLabel;
645
645
  return /* @__PURE__ */ React2__namespace.createElement(
646
- chunkEX6CRLKG_cjs.Field,
646
+ chunkKPHMVGTU_cjs.Field,
647
647
  {
648
648
  name: field.name,
649
649
  label: shouldRenderFieldLabel ? field.label : void 0,
@@ -652,7 +652,7 @@ function DynamicFormField({
652
652
  className
653
653
  },
654
654
  ({ field: formField, meta }) => /* @__PURE__ */ React2__namespace.createElement("div", null, (field.type === "text" || field.type === "email" || field.type === "tel" || field.type === "search" || field.type === "password" || field.type === "url") && /* @__PURE__ */ React2__namespace.createElement(
655
- chunkZYFTT6DB_cjs.TextInput,
655
+ chunkWVSLOSNU_cjs.TextInput,
656
656
  {
657
657
  ...formField,
658
658
  id: fieldId,
@@ -663,7 +663,7 @@ function DynamicFormField({
663
663
  "aria-label": field.label
664
664
  }
665
665
  ), field.type === "number" && /* @__PURE__ */ React2__namespace.createElement(
666
- chunkZYFTT6DB_cjs.TextInput,
666
+ chunkWVSLOSNU_cjs.TextInput,
667
667
  {
668
668
  ...formField,
669
669
  id: fieldId,
@@ -674,7 +674,7 @@ function DynamicFormField({
674
674
  "aria-label": field.label
675
675
  }
676
676
  ), field.type === "textarea" && /* @__PURE__ */ React2__namespace.createElement(
677
- chunkZYFTT6DB_cjs.TextArea,
677
+ chunkWVSLOSNU_cjs.TextArea,
678
678
  {
679
679
  ...formField,
680
680
  id: fieldId,
@@ -685,7 +685,7 @@ function DynamicFormField({
685
685
  "aria-label": field.label
686
686
  }
687
687
  ), field.type === "select" && field.options && /* @__PURE__ */ React2__namespace.createElement(
688
- chunkZYFTT6DB_cjs.Select,
688
+ chunkWVSLOSNU_cjs.Select,
689
689
  {
690
690
  ...formField,
691
691
  id: fieldId,
@@ -696,7 +696,7 @@ function DynamicFormField({
696
696
  "aria-label": field.label
697
697
  }
698
698
  ), field.type === "multi-select" && field.options && /* @__PURE__ */ React2__namespace.createElement(
699
- chunkZYFTT6DB_cjs.MultiSelect,
699
+ chunkWVSLOSNU_cjs.MultiSelect,
700
700
  {
701
701
  ...formField,
702
702
  id: fieldId,
@@ -707,7 +707,7 @@ function DynamicFormField({
707
707
  "aria-label": field.label
708
708
  }
709
709
  ), field.type === "radio" && field.options && /* @__PURE__ */ React2__namespace.createElement(
710
- chunkZYFTT6DB_cjs.Radio,
710
+ chunkWVSLOSNU_cjs.Radio,
711
711
  {
712
712
  ...formField,
713
713
  id: fieldId,
@@ -721,7 +721,7 @@ function DynamicFormField({
721
721
  "aria-label": field.label
722
722
  }
723
723
  ), field.type === "checkbox" && /* @__PURE__ */ React2__namespace.createElement(
724
- chunkZYFTT6DB_cjs.Checkbox,
724
+ chunkWVSLOSNU_cjs.Checkbox,
725
725
  {
726
726
  ...formField,
727
727
  id: fieldId,
@@ -735,7 +735,7 @@ function DynamicFormField({
735
735
  "aria-label": field.label
736
736
  }
737
737
  ), field.type === "checkbox-group" && field.options && /* @__PURE__ */ React2__namespace.createElement(
738
- chunkZYFTT6DB_cjs.CheckboxGroup,
738
+ chunkWVSLOSNU_cjs.CheckboxGroup,
739
739
  {
740
740
  ...formField,
741
741
  id: fieldId,
@@ -749,7 +749,7 @@ function DynamicFormField({
749
749
  "aria-label": field.label
750
750
  }
751
751
  ), (field.type === "date-picker" || field.type === "date") && /* @__PURE__ */ React2__namespace.createElement(
752
- chunkZYFTT6DB_cjs.DatePicker,
752
+ chunkWVSLOSNU_cjs.DatePicker,
753
753
  {
754
754
  ...formField,
755
755
  id: fieldId,
@@ -759,7 +759,7 @@ function DynamicFormField({
759
759
  "aria-label": field.label
760
760
  }
761
761
  ), field.type === "date-range" && /* @__PURE__ */ React2__namespace.createElement(
762
- chunkZYFTT6DB_cjs.DateRangePicker,
762
+ chunkWVSLOSNU_cjs.DateRangePicker,
763
763
  {
764
764
  ...formField,
765
765
  id: fieldId,
@@ -769,7 +769,7 @@ function DynamicFormField({
769
769
  "aria-label": field.label
770
770
  }
771
771
  ), field.type === "time" && /* @__PURE__ */ React2__namespace.createElement(
772
- chunkZYFTT6DB_cjs.TimePicker,
772
+ chunkWVSLOSNU_cjs.TimePicker,
773
773
  {
774
774
  ...formField,
775
775
  id: fieldId,
@@ -779,7 +779,7 @@ function DynamicFormField({
779
779
  "aria-label": field.label
780
780
  }
781
781
  ), field.type === "file" && /* @__PURE__ */ React2__namespace.createElement(
782
- chunkZYFTT6DB_cjs.FileInput,
782
+ chunkWVSLOSNU_cjs.FileInput,
783
783
  {
784
784
  ...formField,
785
785
  id: fieldId,