@page-speed/forms 0.7.0 → 0.7.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.
- package/dist/{FormContext-DsNPeCv0.d.ts → FormContext-CRP1KNiH.d.ts} +1 -1
- package/dist/{FormContext-6c1ttFt2.d.cts → FormContext-DmdEAIQ7.d.cts} +1 -1
- package/dist/{chunk-I4EKHIVF.cjs → chunk-4K6J2DOK.cjs} +140 -126
- package/dist/chunk-4K6J2DOK.cjs.map +1 -0
- package/dist/{chunk-6TCB3X5J.js → chunk-AG67TUZI.js} +5 -6
- package/dist/chunk-AG67TUZI.js.map +1 -0
- package/dist/{chunk-J37BGNM6.js → chunk-SUF7WJS6.js} +8 -3
- package/dist/chunk-SUF7WJS6.js.map +1 -0
- package/dist/{chunk-33XRILGQ.cjs → chunk-V4HMVPAB.cjs} +22 -23
- package/dist/chunk-V4HMVPAB.cjs.map +1 -0
- package/dist/{chunk-QMWZLGON.cjs → chunk-WQ4HD5UD.cjs} +8 -2
- package/dist/chunk-WQ4HD5UD.cjs.map +1 -0
- package/dist/{chunk-AI5Q4N6D.js → chunk-ZH6XDBWH.js} +31 -17
- package/dist/chunk-ZH6XDBWH.js.map +1 -0
- package/dist/core.cjs +9 -9
- package/dist/core.d.cts +3 -3
- package/dist/core.d.ts +3 -3
- package/dist/core.js +2 -2
- package/dist/index.cjs +13 -13
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/inputs.cjs +14 -14
- package/dist/inputs.d.cts +1 -1
- package/dist/inputs.d.ts +1 -1
- package/dist/inputs.js +2 -2
- package/dist/integration.cjs +23 -22
- package/dist/integration.cjs.map +1 -1
- package/dist/integration.d.cts +2 -2
- package/dist/integration.d.ts +2 -2
- package/dist/integration.js +5 -4
- package/dist/integration.js.map +1 -1
- package/dist/{types-CrWhdYGP.d.ts → types-BfZYTL89.d.cts} +5 -1
- package/dist/{types-CrWhdYGP.d.cts → types-BfZYTL89.d.ts} +5 -1
- package/dist/validation-rules.d.cts +1 -1
- package/dist/validation-rules.d.ts +1 -1
- package/dist/validation-utils.d.cts +1 -1
- package/dist/validation-utils.d.ts +1 -1
- package/dist/validation-valibot.d.cts +1 -1
- package/dist/validation-valibot.d.ts +1 -1
- package/dist/validation.d.cts +1 -1
- package/dist/validation.d.ts +1 -1
- package/package.json +3 -3
- package/dist/chunk-33XRILGQ.cjs.map +0 -1
- package/dist/chunk-6TCB3X5J.js.map +0 -1
- package/dist/chunk-AI5Q4N6D.js.map +0 -1
- package/dist/chunk-I4EKHIVF.cjs.map +0 -1
- package/dist/chunk-J37BGNM6.js.map +0 -1
- package/dist/chunk-QMWZLGON.cjs.map +0 -1
package/dist/core.cjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./chunk-V7JSGFCI.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var chunkV4HMVPAB_cjs = require('./chunk-V4HMVPAB.cjs');
|
|
5
|
+
require('./chunk-WQ4HD5UD.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ButtonGroupForm", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkV4HMVPAB_cjs.ButtonGroupForm; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "Field", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkV4HMVPAB_cjs.Field; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "Form", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkV4HMVPAB_cjs.Form; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "FormContext", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkV4HMVPAB_cjs.FormContext; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "FormFeedback", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkV4HMVPAB_cjs.FormFeedback; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "useField", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkV4HMVPAB_cjs.useField; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "useForm", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkV4HMVPAB_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-
|
|
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-DmdEAIQ7.cjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { I as InputProps } from './types-
|
|
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-
|
|
3
|
+
import { I as InputProps } from './types-BfZYTL89.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-BfZYTL89.cjs';
|
|
5
5
|
|
|
6
6
|
type ButtonGroupFormSize = "xs" | "sm" | "default" | "lg";
|
|
7
7
|
type ButtonGroupFormProps = {
|
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-
|
|
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-CRP1KNiH.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { I as InputProps } from './types-
|
|
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-
|
|
3
|
+
import { I as InputProps } from './types-BfZYTL89.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-BfZYTL89.js';
|
|
5
5
|
|
|
6
6
|
type ButtonGroupFormSize = "xs" | "sm" | "default" | "lg";
|
|
7
7
|
type ButtonGroupFormProps = {
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './chunk-UBDA7CS5.js';
|
|
2
|
-
export { ButtonGroupForm, Field, Form, FormContext, FormFeedback, useField, useForm } from './chunk-
|
|
3
|
-
import './chunk-
|
|
2
|
+
export { ButtonGroupForm, Field, Form, FormContext, FormFeedback, useField, useForm } from './chunk-AG67TUZI.js';
|
|
3
|
+
import './chunk-SUF7WJS6.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
3
|
require('./chunk-V7JSGFCI.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkV4HMVPAB_cjs = require('./chunk-V4HMVPAB.cjs');
|
|
5
|
+
var chunkWQ4HD5UD_cjs = require('./chunk-WQ4HD5UD.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "Field", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkV4HMVPAB_cjs.Field; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "Form", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkV4HMVPAB_cjs.Form; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "FormContext", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkV4HMVPAB_cjs.FormContext; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "FormFeedback", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkV4HMVPAB_cjs.FormFeedback; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "useField", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkV4HMVPAB_cjs.useField; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "useForm", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkV4HMVPAB_cjs.useForm; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "FieldDescription", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkWQ4HD5UD_cjs.FieldDescription; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "FieldError", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkWQ4HD5UD_cjs.FieldError; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "FieldGroup", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkWQ4HD5UD_cjs.FieldGroup; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "FieldWrapper", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkWQ4HD5UD_cjs.Field; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "FormFieldLabel", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkWQ4HD5UD_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-
|
|
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-
|
|
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-DmdEAIQ7.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-BfZYTL89.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-
|
|
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-
|
|
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-CRP1KNiH.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-BfZYTL89.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
1
|
import './chunk-UBDA7CS5.js';
|
|
2
|
-
export { Field, Form, FormContext, FormFeedback, useField, useForm } from './chunk-
|
|
3
|
-
export { FieldDescription, FieldError, FieldGroup, Field as FieldWrapper, FieldLabel as FormFieldLabel } from './chunk-
|
|
2
|
+
export { Field, Form, FormContext, FormFeedback, useField, useForm } from './chunk-AG67TUZI.js';
|
|
3
|
+
export { FieldDescription, FieldError, FieldGroup, Field as FieldWrapper, FieldLabel as FormFieldLabel } from './chunk-SUF7WJS6.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
|
|
4
|
-
var
|
|
3
|
+
var chunk4K6J2DOK_cjs = require('./chunk-4K6J2DOK.cjs');
|
|
4
|
+
var chunkWQ4HD5UD_cjs = require('./chunk-WQ4HD5UD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Checkbox", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk4K6J2DOK_cjs.Checkbox; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "CheckboxGroup", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk4K6J2DOK_cjs.CheckboxGroup; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "DatePicker", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk4K6J2DOK_cjs.DatePicker; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "DateRangePicker", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk4K6J2DOK_cjs.DateRangePicker; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "FileInput", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk4K6J2DOK_cjs.FileInput; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "MultiSelect", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk4K6J2DOK_cjs.MultiSelect; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "Radio", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk4K6J2DOK_cjs.Radio; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "Select", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk4K6J2DOK_cjs.Select; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "Switch", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk4K6J2DOK_cjs.Switch; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "TextArea", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk4K6J2DOK_cjs.TextArea; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "TimePicker", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk4K6J2DOK_cjs.TimePicker; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "TextInput", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkWQ4HD5UD_cjs.TextInput; }
|
|
55
55
|
});
|
|
56
56
|
//# sourceMappingURL=inputs.cjs.map
|
|
57
57
|
//# sourceMappingURL=inputs.cjs.map
|
package/dist/inputs.d.cts
CHANGED
package/dist/inputs.d.ts
CHANGED
package/dist/inputs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileInput, MultiSelect, Radio, Select, Switch, TextArea, TimePicker } from './chunk-
|
|
2
|
-
export { TextInput } from './chunk-
|
|
1
|
+
export { Checkbox, CheckboxGroup, DatePicker, DateRangePicker, FileInput, MultiSelect, Radio, Select, Switch, TextArea, TimePicker } from './chunk-ZH6XDBWH.js';
|
|
2
|
+
export { TextInput } from './chunk-SUF7WJS6.js';
|
|
3
3
|
//# sourceMappingURL=inputs.js.map
|
|
4
4
|
//# sourceMappingURL=inputs.js.map
|
package/dist/integration.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkV4HMVPAB_cjs = require('./chunk-V4HMVPAB.cjs');
|
|
4
|
+
var chunk4K6J2DOK_cjs = require('./chunk-4K6J2DOK.cjs');
|
|
5
|
+
var chunkWQ4HD5UD_cjs = require('./chunk-WQ4HD5UD.cjs');
|
|
6
6
|
var React2 = require('react');
|
|
7
7
|
|
|
8
8
|
function _interopNamespace(e) {
|
|
@@ -394,7 +394,8 @@ function generateValidationSchema(fields) {
|
|
|
394
394
|
acc[field.name] = (value, allValues) => {
|
|
395
395
|
if (field.required) {
|
|
396
396
|
if (!value || typeof value === "string" && !value.trim()) {
|
|
397
|
-
|
|
397
|
+
const displayName = field.label || chunkWQ4HD5UD_cjs.humanizeFieldName(field.name);
|
|
398
|
+
return `${displayName} is required`;
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
401
|
if (field.type === "email" && value) {
|
|
@@ -565,7 +566,7 @@ function useContactForm(options) {
|
|
|
565
566
|
window.location.assign(destination);
|
|
566
567
|
}, 150);
|
|
567
568
|
}, [navigate, redirectUrl]);
|
|
568
|
-
const form =
|
|
569
|
+
const form = chunkV4HMVPAB_cjs.useForm({
|
|
569
570
|
initialValues: React2.useMemo(
|
|
570
571
|
() => generateInitialValues(formFields),
|
|
571
572
|
[formFields]
|
|
@@ -643,7 +644,7 @@ function DynamicFormField({
|
|
|
643
644
|
const usesInlineCheckboxLabel = field.type === "checkbox";
|
|
644
645
|
const shouldRenderFieldLabel = renderLabel && !usesGroupLegend && !usesInlineCheckboxLabel;
|
|
645
646
|
return /* @__PURE__ */ React2__namespace.createElement(
|
|
646
|
-
|
|
647
|
+
chunkV4HMVPAB_cjs.Field,
|
|
647
648
|
{
|
|
648
649
|
name: field.name,
|
|
649
650
|
label: shouldRenderFieldLabel ? field.label : void 0,
|
|
@@ -652,7 +653,7 @@ function DynamicFormField({
|
|
|
652
653
|
className
|
|
653
654
|
},
|
|
654
655
|
({ 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
|
-
|
|
656
|
+
chunkWQ4HD5UD_cjs.TextInput,
|
|
656
657
|
{
|
|
657
658
|
...formField,
|
|
658
659
|
id: fieldId,
|
|
@@ -663,7 +664,7 @@ function DynamicFormField({
|
|
|
663
664
|
"aria-label": field.label
|
|
664
665
|
}
|
|
665
666
|
), field.type === "number" && /* @__PURE__ */ React2__namespace.createElement(
|
|
666
|
-
|
|
667
|
+
chunkWQ4HD5UD_cjs.TextInput,
|
|
667
668
|
{
|
|
668
669
|
...formField,
|
|
669
670
|
id: fieldId,
|
|
@@ -674,7 +675,7 @@ function DynamicFormField({
|
|
|
674
675
|
"aria-label": field.label
|
|
675
676
|
}
|
|
676
677
|
), field.type === "textarea" && /* @__PURE__ */ React2__namespace.createElement(
|
|
677
|
-
|
|
678
|
+
chunk4K6J2DOK_cjs.TextArea,
|
|
678
679
|
{
|
|
679
680
|
...formField,
|
|
680
681
|
id: fieldId,
|
|
@@ -685,7 +686,7 @@ function DynamicFormField({
|
|
|
685
686
|
"aria-label": field.label
|
|
686
687
|
}
|
|
687
688
|
), field.type === "select" && field.options && /* @__PURE__ */ React2__namespace.createElement(
|
|
688
|
-
|
|
689
|
+
chunk4K6J2DOK_cjs.Select,
|
|
689
690
|
{
|
|
690
691
|
...formField,
|
|
691
692
|
id: fieldId,
|
|
@@ -696,7 +697,7 @@ function DynamicFormField({
|
|
|
696
697
|
"aria-label": field.label
|
|
697
698
|
}
|
|
698
699
|
), field.type === "multi-select" && field.options && /* @__PURE__ */ React2__namespace.createElement(
|
|
699
|
-
|
|
700
|
+
chunk4K6J2DOK_cjs.MultiSelect,
|
|
700
701
|
{
|
|
701
702
|
...formField,
|
|
702
703
|
id: fieldId,
|
|
@@ -707,7 +708,7 @@ function DynamicFormField({
|
|
|
707
708
|
"aria-label": field.label
|
|
708
709
|
}
|
|
709
710
|
), field.type === "radio" && field.options && /* @__PURE__ */ React2__namespace.createElement(
|
|
710
|
-
|
|
711
|
+
chunk4K6J2DOK_cjs.Radio,
|
|
711
712
|
{
|
|
712
713
|
...formField,
|
|
713
714
|
id: fieldId,
|
|
@@ -721,7 +722,7 @@ function DynamicFormField({
|
|
|
721
722
|
"aria-label": field.label
|
|
722
723
|
}
|
|
723
724
|
), field.type === "checkbox" && /* @__PURE__ */ React2__namespace.createElement(
|
|
724
|
-
|
|
725
|
+
chunk4K6J2DOK_cjs.Checkbox,
|
|
725
726
|
{
|
|
726
727
|
...formField,
|
|
727
728
|
id: fieldId,
|
|
@@ -735,7 +736,7 @@ function DynamicFormField({
|
|
|
735
736
|
"aria-label": field.label
|
|
736
737
|
}
|
|
737
738
|
), field.type === "checkbox-group" && field.options && /* @__PURE__ */ React2__namespace.createElement(
|
|
738
|
-
|
|
739
|
+
chunk4K6J2DOK_cjs.CheckboxGroup,
|
|
739
740
|
{
|
|
740
741
|
...formField,
|
|
741
742
|
id: fieldId,
|
|
@@ -749,7 +750,7 @@ function DynamicFormField({
|
|
|
749
750
|
"aria-label": field.label
|
|
750
751
|
}
|
|
751
752
|
), (field.type === "date-picker" || field.type === "date") && /* @__PURE__ */ React2__namespace.createElement(
|
|
752
|
-
|
|
753
|
+
chunk4K6J2DOK_cjs.DatePicker,
|
|
753
754
|
{
|
|
754
755
|
...formField,
|
|
755
756
|
id: fieldId,
|
|
@@ -759,7 +760,7 @@ function DynamicFormField({
|
|
|
759
760
|
"aria-label": field.label
|
|
760
761
|
}
|
|
761
762
|
), field.type === "date-range" && /* @__PURE__ */ React2__namespace.createElement(
|
|
762
|
-
|
|
763
|
+
chunk4K6J2DOK_cjs.DateRangePicker,
|
|
763
764
|
{
|
|
764
765
|
...formField,
|
|
765
766
|
id: fieldId,
|
|
@@ -769,7 +770,7 @@ function DynamicFormField({
|
|
|
769
770
|
"aria-label": field.label
|
|
770
771
|
}
|
|
771
772
|
), field.type === "time" && /* @__PURE__ */ React2__namespace.createElement(
|
|
772
|
-
|
|
773
|
+
chunk4K6J2DOK_cjs.TimePicker,
|
|
773
774
|
{
|
|
774
775
|
...formField,
|
|
775
776
|
id: fieldId,
|
|
@@ -779,7 +780,7 @@ function DynamicFormField({
|
|
|
779
780
|
"aria-label": field.label
|
|
780
781
|
}
|
|
781
782
|
), field.type === "file" && /* @__PURE__ */ React2__namespace.createElement(
|
|
782
|
-
|
|
783
|
+
chunk4K6J2DOK_cjs.FileInput,
|
|
783
784
|
{
|
|
784
785
|
...formField,
|
|
785
786
|
id: fieldId,
|
|
@@ -919,7 +920,7 @@ function FormEngine(props) {
|
|
|
919
920
|
};
|
|
920
921
|
}, [isButtonGroup, buttonGroupSetup, api]);
|
|
921
922
|
return /* @__PURE__ */ React2__namespace.createElement("div", { className: styleRules?.formContainer }, /* @__PURE__ */ React2__namespace.createElement(
|
|
922
|
-
|
|
923
|
+
chunkV4HMVPAB_cjs.Form,
|
|
923
924
|
{
|
|
924
925
|
form,
|
|
925
926
|
fields: isButtonGroup ? formFields : void 0,
|
|
@@ -939,7 +940,7 @@ function FormEngine(props) {
|
|
|
939
940
|
!isButtonGroup && /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(
|
|
940
941
|
"div",
|
|
941
942
|
{
|
|
942
|
-
className:
|
|
943
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
943
944
|
"grid grid-cols-12 gap-6 md:gap-10",
|
|
944
945
|
styleRules?.fieldsContainer
|
|
945
946
|
)
|
|
@@ -948,7 +949,7 @@ function FormEngine(props) {
|
|
|
948
949
|
"div",
|
|
949
950
|
{
|
|
950
951
|
key: field.name,
|
|
951
|
-
className:
|
|
952
|
+
className: chunkWQ4HD5UD_cjs.cn(
|
|
952
953
|
getColumnSpanClass(field.columnSpan ?? 12),
|
|
953
954
|
"min-w-0"
|
|
954
955
|
)
|
|
@@ -966,7 +967,7 @@ function FormEngine(props) {
|
|
|
966
967
|
)
|
|
967
968
|
))
|
|
968
969
|
), /* @__PURE__ */ React2__namespace.createElement(
|
|
969
|
-
|
|
970
|
+
chunkWQ4HD5UD_cjs.Button,
|
|
970
971
|
{
|
|
971
972
|
type: "submit",
|
|
972
973
|
variant: submitButtonSetup?.submitVariant ?? DEFAULT_BUTTON_VARIANT,
|