@ttoss/forms 0.33.1 → 0.33.3
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/esm/Brazil/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { FormField, FormFieldCNPJ, FormFieldPatternFormat, __name, isCnpjValid } from "../chunk-
|
|
3
|
+
import { FormField, FormFieldCNPJ, FormFieldPatternFormat, __name, isCnpjValid } from "../chunk-LSSFZMBY.js";
|
|
4
4
|
|
|
5
5
|
// src/Brazil/FormFieldPhone.tsx
|
|
6
6
|
import { Input } from "@ttoss/ui";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Form, useForm, yupResolver } from "../chunk-
|
|
4
|
-
import { __name } from "../chunk-
|
|
3
|
+
import { Form, useForm, yupResolver } from "../chunk-EOMFHI2R.js";
|
|
4
|
+
import { __name } from "../chunk-LSSFZMBY.js";
|
|
5
5
|
|
|
6
6
|
// src/MultistepForm/MultistepForm.tsx
|
|
7
7
|
import { Flex as Flex6 } from "@ttoss/ui";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { FormErrorMessage, FormField, FormFieldPatternFormat, __name, isCnpjValid } from "./chunk-
|
|
3
|
+
import { FormErrorMessage, FormField, FormFieldPatternFormat, __name, isCnpjValid } from "./chunk-LSSFZMBY.js";
|
|
4
4
|
|
|
5
5
|
// src/Form.tsx
|
|
6
6
|
import { Box } from "@ttoss/ui";
|
|
@@ -95,10 +95,8 @@ var FormField = /* @__PURE__ */__name(({
|
|
|
95
95
|
if (! /* @__PURE__ */React2.isValidElement(child)) {
|
|
96
96
|
return null;
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
const elementProps = {
|
|
98
|
+
const mergeProps = {
|
|
100
99
|
id,
|
|
101
|
-
...childProps,
|
|
102
100
|
...(warning && {
|
|
103
101
|
trailingIcon: "warning-alt"
|
|
104
102
|
})
|
|
@@ -113,7 +111,7 @@ var FormField = /* @__PURE__ */__name(({
|
|
|
113
111
|
sx: {
|
|
114
112
|
position: "relative"
|
|
115
113
|
}
|
|
116
|
-
}, /* @__PURE__ */React2.
|
|
114
|
+
}, /* @__PURE__ */React2.cloneElement(child, mergeProps)), /* @__PURE__ */React2.createElement(Label, {
|
|
117
115
|
"aria-disabled": disabled,
|
|
118
116
|
htmlFor: id,
|
|
119
117
|
tooltip: labelTooltip
|
|
@@ -129,7 +127,7 @@ var FormField = /* @__PURE__ */__name(({
|
|
|
129
127
|
"aria-disabled": disabled,
|
|
130
128
|
htmlFor: id,
|
|
131
129
|
tooltip: labelTooltip
|
|
132
|
-
}, label), /* @__PURE__ */React2.
|
|
130
|
+
}, label), /* @__PURE__ */React2.cloneElement(child, mergeProps));
|
|
133
131
|
});
|
|
134
132
|
}, [render, controllerReturnWithDisabled, label, disabled, id, labelTooltip, warning]);
|
|
135
133
|
return /* @__PURE__ */React2.createElement(Flex, {
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import { Controller, Form, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldRadio, FormFieldRadioCard, FormFieldRadioCardIcony, FormFieldSelect, FormFieldSwitch, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver } from "./chunk-
|
|
3
|
-
import { FormErrorMessage, FormField, FormFieldPatternFormat } from "./chunk-
|
|
2
|
+
import { Controller, Form, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldRadio, FormFieldRadioCard, FormFieldRadioCardIcony, FormFieldSelect, FormFieldSwitch, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver } from "./chunk-EOMFHI2R.js";
|
|
3
|
+
import { FormErrorMessage, FormField, FormFieldPatternFormat } from "./chunk-LSSFZMBY.js";
|
|
4
4
|
export { Controller, Form, FormErrorMessage, FormField, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldPatternFormat, FormFieldRadio, FormFieldRadioCard, FormFieldRadioCardIcony, FormFieldSelect, FormFieldSwitch, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/forms",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "ttoss",
|
|
6
6
|
"contributors": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=16.8.0",
|
|
42
|
-
"@ttoss/react-i18n": "^2.0.
|
|
43
|
-
"@ttoss/ui": "^6.0.
|
|
42
|
+
"@ttoss/react-i18n": "^2.0.24",
|
|
43
|
+
"@ttoss/ui": "^6.0.3"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/jest": "^30.0.0",
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
"yup": "^1.7.1",
|
|
53
53
|
"@ttoss/config": "^1.35.12",
|
|
54
54
|
"@ttoss/i18n-cli": "^0.7.38",
|
|
55
|
-
"@ttoss/react-
|
|
56
|
-
"@ttoss/test-utils": "^4.0.
|
|
57
|
-
"@ttoss/react-
|
|
58
|
-
"@ttoss/ui": "^6.0.
|
|
55
|
+
"@ttoss/react-icons": "^0.5.5",
|
|
56
|
+
"@ttoss/test-utils": "^4.0.1",
|
|
57
|
+
"@ttoss/react-i18n": "^2.0.24",
|
|
58
|
+
"@ttoss/ui": "^6.0.3"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public",
|