@ttoss/forms 0.24.7 → 0.24.8
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/MultistepForm/index.js +1 -0
- package/dist/esm/Brazil/index.js +1 -1
- package/dist/esm/MultistepForm/index.js +2 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +11 -11
- /package/dist/esm/{chunk-GR2OHRRF.js → chunk-ECFRAK7U.js} +0 -0
package/dist/esm/Brazil/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import { FormField, FormFieldCNPJ, FormFieldPatternFormat, isCnpjValid } from "../chunk-
|
|
2
|
+
import { FormField, FormFieldCNPJ, FormFieldPatternFormat, isCnpjValid } from "../chunk-ECFRAK7U.js";
|
|
3
3
|
|
|
4
4
|
// src/Brazil/FormFieldPhone.tsx
|
|
5
5
|
import { Input } from "@ttoss/ui";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import { Form, __publicField, useForm, yupResolver } from "../chunk-
|
|
2
|
+
import { Form, __publicField, useForm, yupResolver } from "../chunk-ECFRAK7U.js";
|
|
3
3
|
|
|
4
4
|
// src/MultistepForm/MultistepForm.tsx
|
|
5
5
|
import * as React3 from "react";
|
|
@@ -1344,6 +1344,7 @@ try {
|
|
|
1344
1344
|
} catch (err) {}
|
|
1345
1345
|
function getRenderMode(body, mode) {
|
|
1346
1346
|
switch (mode) {
|
|
1347
|
+
// Force mode
|
|
1347
1348
|
case "svg":
|
|
1348
1349
|
case "bg":
|
|
1349
1350
|
case "mask":
|
package/dist/esm/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
-
import { Controller, Form, FormErrorMessage, FormField, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldPatternFormat, FormFieldRadio, FormFieldSelect, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver } from "./chunk-
|
|
2
|
+
import { Controller, Form, FormErrorMessage, FormField, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldPatternFormat, FormFieldRadio, FormFieldSelect, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver } from "./chunk-ECFRAK7U.js";
|
|
3
3
|
export { Controller, Form, FormErrorMessage, FormField, FormFieldCheckbox, FormFieldCreditCardNumber, FormFieldCurrencyInput, FormFieldInput, FormFieldNumericFormat, FormFieldPassword, FormFieldPatternFormat, FormFieldRadio, FormFieldSelect, FormFieldTextarea, FormGroup, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormGroup, useFormState, useWatch, yup, yupResolver };
|
package/dist/index.d.mts
CHANGED
|
@@ -15,7 +15,7 @@ import { NumericFormatProps } from 'react-number-format';
|
|
|
15
15
|
declare const Form: <TFieldValues extends FieldValues = FieldValues>({ children, onSubmit, sx, ...formMethods }: {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
onSubmit?: (data: TFieldValues) => Promise<void> | void;
|
|
18
|
-
sx?: BoxProps[
|
|
18
|
+
sx?: BoxProps["sx"];
|
|
19
19
|
} & FormProviderProps<TFieldValues>) => react_jsx_runtime.JSX.Element;
|
|
20
20
|
|
|
21
21
|
declare const FormErrorMessage: <TFieldValues extends FieldValues = FieldValues>({ name, disabled, }: {
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { NumericFormatProps } from 'react-number-format';
|
|
|
15
15
|
declare const Form: <TFieldValues extends FieldValues = FieldValues>({ children, onSubmit, sx, ...formMethods }: {
|
|
16
16
|
children?: React.ReactNode;
|
|
17
17
|
onSubmit?: (data: TFieldValues) => Promise<void> | void;
|
|
18
|
-
sx?: BoxProps[
|
|
18
|
+
sx?: BoxProps["sx"];
|
|
19
19
|
} & FormProviderProps<TFieldValues>) => react_jsx_runtime.JSX.Element;
|
|
20
20
|
|
|
21
21
|
declare const FormErrorMessage: <TFieldValues extends FieldValues = FieldValues>({ name, disabled, }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/forms",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.8",
|
|
4
4
|
"author": "ttoss",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)"
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"yup": "^1.4.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"
|
|
44
|
-
"@ttoss/ui": "^4",
|
|
45
|
-
"react": "
|
|
43
|
+
"react": ">=16.8.0",
|
|
44
|
+
"@ttoss/ui": "^4.1.15",
|
|
45
|
+
"@ttoss/react-i18n": "^1.26.13"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/jest": "^29.5.12",
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"jest": "^29.7.0",
|
|
51
51
|
"react": "^18.3.1",
|
|
52
52
|
"react-error-boundary": "^4.0.13",
|
|
53
|
-
"tsup": "^8.
|
|
53
|
+
"tsup": "^8.2.4",
|
|
54
54
|
"yup": "^1.4.0",
|
|
55
|
-
"@ttoss/config": "^1.32.
|
|
56
|
-
"@ttoss/i18n-cli": "^0.7.
|
|
57
|
-
"@ttoss/react-i18n": "^1.26.
|
|
58
|
-
"@ttoss/test-utils": "^2.1.
|
|
59
|
-
"@ttoss/react-icons": "^0.3.
|
|
60
|
-
"@ttoss/ui": "^4.1.
|
|
55
|
+
"@ttoss/config": "^1.32.7",
|
|
56
|
+
"@ttoss/i18n-cli": "^0.7.16",
|
|
57
|
+
"@ttoss/react-i18n": "^1.26.13",
|
|
58
|
+
"@ttoss/test-utils": "^2.1.11",
|
|
59
|
+
"@ttoss/react-icons": "^0.3.11",
|
|
60
|
+
"@ttoss/ui": "^4.1.15"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public",
|
|
File without changes
|