@ttoss/forms 0.26.9 → 0.27.0

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.
@@ -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-MFUCNLSU.js";
2
+ import { FormField, FormFieldCNPJ, FormFieldPatternFormat, isCnpjValid } from "../chunk-GB65RGLC.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, useForm, yupResolver } from "../chunk-MFUCNLSU.js";
2
+ import { Form, useForm, yupResolver } from "../chunk-GB65RGLC.js";
3
3
 
4
4
  // src/MultistepForm/MultistepForm.tsx
5
5
  import * as React3 from "react";
@@ -124,8 +124,8 @@ var FormField = ({
124
124
  };
125
125
 
126
126
  // src/FormFieldCheckbox.tsx
127
- import * as React2 from "react";
128
127
  import { Checkbox, Flex as Flex2, Label as Label2 } from "@ttoss/ui";
128
+ import * as React2 from "react";
129
129
  import { useController as useController2 } from "react-hook-form";
130
130
  import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
131
131
  var FormFieldCheckbox = ({
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-MFUCNLSU.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-GB65RGLC.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.ts CHANGED
@@ -38,7 +38,7 @@ type FormFieldCompleteProps<TFieldValues extends FieldValues = FieldValues, TNam
38
38
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ label, id: idProp, name, defaultValue, disabled, tooltip, onTooltipClick, sx, css, render, }: FormFieldCompleteProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
39
39
 
40
40
  declare const FormFieldCheckbox: <TFieldValues extends FieldValues = FieldValues>({ label, name, sx, ...checkboxProps }: {
41
- label?: string;
41
+ label?: React.ReactNode;
42
42
  name: FieldPath<TFieldValues>;
43
43
  } & CheckboxProps) => react_jsx_runtime.JSX.Element;
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/forms",
3
- "version": "0.26.9",
3
+ "version": "0.27.0",
4
4
  "license": "MIT",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -51,11 +51,11 @@
51
51
  "tsup": "^8.3.5",
52
52
  "yup": "^1.6.1",
53
53
  "@ttoss/config": "^1.35.2",
54
- "@ttoss/i18n-cli": "^0.7.26",
55
54
  "@ttoss/react-icons": "^0.4.9",
56
- "@ttoss/test-utils": "^2.1.22",
55
+ "@ttoss/i18n-cli": "^0.7.26",
56
+ "@ttoss/react-i18n": "^2.0.9",
57
57
  "@ttoss/ui": "^5.0.15",
58
- "@ttoss/react-i18n": "^2.0.9"
58
+ "@ttoss/test-utils": "^2.1.22"
59
59
  },
60
60
  "publishConfig": {
61
61
  "access": "public",