@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.
@@ -2099,6 +2099,7 @@ try {
2099
2099
  } catch (err) {}
2100
2100
  function getRenderMode(body, mode) {
2101
2101
  switch (mode) {
2102
+ // Force mode
2102
2103
  case "svg":
2103
2104
  case "bg":
2104
2105
  case "mask":
@@ -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-GR2OHRRF.js";
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-GR2OHRRF.js";
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-GR2OHRRF.js";
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['sx'];
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['sx'];
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.7",
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
- "@ttoss/react-i18n": "^1",
44
- "@ttoss/ui": "^4",
45
- "react": ">=16.8.0"
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.1.0",
53
+ "tsup": "^8.2.4",
54
54
  "yup": "^1.4.0",
55
- "@ttoss/config": "^1.32.6",
56
- "@ttoss/i18n-cli": "^0.7.15",
57
- "@ttoss/react-i18n": "^1.26.12",
58
- "@ttoss/test-utils": "^2.1.10",
59
- "@ttoss/react-icons": "^0.3.10",
60
- "@ttoss/ui": "^4.1.14"
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",