@ttoss/forms 0.23.2 → 0.23.4
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/Brazil/index.d.mts +1 -1
- package/dist/Brazil/index.d.ts +1 -1
- package/dist/MultistepForm/index.d.mts +1 -1
- package/dist/MultistepForm/index.d.ts +1 -1
- package/dist/MultistepForm/index.js +12 -14
- package/dist/esm/MultistepForm/index.js +12 -14
- package/dist/index.d.mts +12 -15
- package/dist/index.d.ts +12 -15
- package/package.json +10 -10
- /package/dist/{FormFieldPatternFormat-DF8nU9tn.d.mts → FormFieldPatternFormat-CkcL14ho.d.mts} +0 -0
- /package/dist/{FormFieldPatternFormat-DF8nU9tn.d.ts → FormFieldPatternFormat-CkcL14ho.d.ts} +0 -0
- /package/dist/{typings.d-KteERiXO.d.mts → typings.d-HZBqJJjn.d.mts} +0 -0
- /package/dist/{typings.d-KteERiXO.d.ts → typings.d-HZBqJJjn.d.ts} +0 -0
package/dist/Brazil/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { PatternFormatProps } from 'react-number-format';
|
|
3
|
-
import { F as FormFieldPatternFormatProps } from '../FormFieldPatternFormat-
|
|
3
|
+
import { F as FormFieldPatternFormatProps } from '../FormFieldPatternFormat-CkcL14ho.mjs';
|
|
4
4
|
|
|
5
5
|
type FormFieldCNPJProps = {
|
|
6
6
|
label: string;
|
package/dist/Brazil/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { PatternFormatProps } from 'react-number-format';
|
|
3
|
-
import { F as FormFieldPatternFormatProps } from '../FormFieldPatternFormat-
|
|
3
|
+
import { F as FormFieldPatternFormatProps } from '../FormFieldPatternFormat-CkcL14ho.js';
|
|
4
4
|
|
|
5
5
|
type FormFieldCNPJProps = {
|
|
6
6
|
label: string;
|
|
@@ -898,10 +898,10 @@ var import_ui18 = require("@ttoss/ui");
|
|
|
898
898
|
// ../react-icons/src/Icon.tsx
|
|
899
899
|
var React4 = __toESM(require("react"));
|
|
900
900
|
|
|
901
|
-
// ../../node_modules/.pnpm/@iconify-icon+react@2.
|
|
901
|
+
// ../../node_modules/.pnpm/@iconify-icon+react@2.1.0_react@18.2.0/node_modules/@iconify-icon/react/dist/iconify.mjs
|
|
902
902
|
var import_react = __toESM(require("react"), 1);
|
|
903
903
|
|
|
904
|
-
// ../../node_modules/.pnpm/iconify-icon@2.
|
|
904
|
+
// ../../node_modules/.pnpm/iconify-icon@2.1.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
905
905
|
var defaultIconDimensions = Object.freeze({
|
|
906
906
|
left: 0,
|
|
907
907
|
top: 0,
|
|
@@ -2082,9 +2082,6 @@ function parseIconValue(value, onload) {
|
|
|
2082
2082
|
loading
|
|
2083
2083
|
};
|
|
2084
2084
|
}
|
|
2085
|
-
function getInline(node) {
|
|
2086
|
-
return node.hasAttribute("inline");
|
|
2087
|
-
}
|
|
2088
2085
|
var isBuggedSafari = false;
|
|
2089
2086
|
try {
|
|
2090
2087
|
isBuggedSafari = navigator.vendor.indexOf("Apple") === 0;
|
|
@@ -2507,6 +2504,7 @@ function exportFunctions() {
|
|
|
2507
2504
|
disableCache: storage2 => toggleBrowserCache(storage2, false),
|
|
2508
2505
|
iconLoaded: iconLoaded$1,
|
|
2509
2506
|
iconExists: iconLoaded$1,
|
|
2507
|
+
// deprecated, kept to avoid breaking changes
|
|
2510
2508
|
getIcon: getIcon$1,
|
|
2511
2509
|
listIcons: listIcons$1,
|
|
2512
2510
|
addIcon: addIcon$1,
|
|
@@ -2671,7 +2669,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2671
2669
|
// Icon
|
|
2672
2670
|
"icon",
|
|
2673
2671
|
// Mode
|
|
2674
|
-
"mode", "inline", "
|
|
2672
|
+
"mode", "inline", "noobserver",
|
|
2675
2673
|
// Customisations
|
|
2676
2674
|
"width", "height", "rotate", "flip"];
|
|
2677
2675
|
const IconifyIcon2 = class extends ParentClass {
|
|
@@ -2696,7 +2694,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2696
2694
|
const root = this._shadowRoot = this.attachShadow({
|
|
2697
2695
|
mode: "open"
|
|
2698
2696
|
});
|
|
2699
|
-
const inline =
|
|
2697
|
+
const inline = this.hasAttribute("inline");
|
|
2700
2698
|
updateStyle(root, inline);
|
|
2701
2699
|
this._state = setPendingState({
|
|
2702
2700
|
value: ""
|
|
@@ -2747,7 +2745,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2747
2745
|
switch (name2) {
|
|
2748
2746
|
case "inline":
|
|
2749
2747
|
{
|
|
2750
|
-
const newInline =
|
|
2748
|
+
const newInline = this.hasAttribute("inline");
|
|
2751
2749
|
const state = this._state;
|
|
2752
2750
|
if (newInline !== state.inline) {
|
|
2753
2751
|
state.inline = newInline;
|
|
@@ -2755,9 +2753,9 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2755
2753
|
}
|
|
2756
2754
|
break;
|
|
2757
2755
|
}
|
|
2758
|
-
case "
|
|
2756
|
+
case "noobserver":
|
|
2759
2757
|
{
|
|
2760
|
-
const value = this.
|
|
2758
|
+
const value = this.hasAttribute("noobserver");
|
|
2761
2759
|
if (value) {
|
|
2762
2760
|
this.startObserver();
|
|
2763
2761
|
} else {
|
|
@@ -2791,7 +2789,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2791
2789
|
* Get/set inline
|
|
2792
2790
|
*/
|
|
2793
2791
|
get inline() {
|
|
2794
|
-
return
|
|
2792
|
+
return this.hasAttribute("inline");
|
|
2795
2793
|
}
|
|
2796
2794
|
set inline(value) {
|
|
2797
2795
|
if (value) {
|
|
@@ -2935,7 +2933,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2935
2933
|
* Start observer
|
|
2936
2934
|
*/
|
|
2937
2935
|
startObserver() {
|
|
2938
|
-
if (!this._observer) {
|
|
2936
|
+
if (!this._observer && !this.hasAttribute("noobserver")) {
|
|
2939
2937
|
try {
|
|
2940
2938
|
this._observer = new IntersectionObserver(entries => {
|
|
2941
2939
|
const intersecting = entries.some(entry => entry.isIntersecting);
|
|
@@ -3013,7 +3011,7 @@ var {
|
|
|
3013
3011
|
_api
|
|
3014
3012
|
} = IconifyIconComponent;
|
|
3015
3013
|
|
|
3016
|
-
// ../../node_modules/.pnpm/@iconify-icon+react@2.
|
|
3014
|
+
// ../../node_modules/.pnpm/@iconify-icon+react@2.1.0_react@18.2.0/node_modules/@iconify-icon/react/dist/iconify.mjs
|
|
3017
3015
|
var Icon = import_react.default.forwardRef((props, ref) => {
|
|
3018
3016
|
const newProps = {
|
|
3019
3017
|
...props,
|
|
@@ -3245,6 +3243,6 @@ iconify-icon/dist/iconify-icon.mjs:
|
|
|
3245
3243
|
* Licensed under MIT.
|
|
3246
3244
|
*
|
|
3247
3245
|
* @license MIT
|
|
3248
|
-
* @version 2.
|
|
3246
|
+
* @version 2.1.0
|
|
3249
3247
|
*)
|
|
3250
3248
|
*/
|
|
@@ -154,10 +154,10 @@ import { CloseButton, Flex as Flex4, Image as Image2, Text as Text4 } from "@tto
|
|
|
154
154
|
// ../react-icons/src/Icon.tsx
|
|
155
155
|
import * as React2 from "react";
|
|
156
156
|
|
|
157
|
-
// ../../node_modules/.pnpm/@iconify-icon+react@2.
|
|
157
|
+
// ../../node_modules/.pnpm/@iconify-icon+react@2.1.0_react@18.2.0/node_modules/@iconify-icon/react/dist/iconify.mjs
|
|
158
158
|
import React from "react";
|
|
159
159
|
|
|
160
|
-
// ../../node_modules/.pnpm/iconify-icon@2.
|
|
160
|
+
// ../../node_modules/.pnpm/iconify-icon@2.1.0/node_modules/iconify-icon/dist/iconify-icon.mjs
|
|
161
161
|
var defaultIconDimensions = Object.freeze({
|
|
162
162
|
left: 0,
|
|
163
163
|
top: 0,
|
|
@@ -1338,9 +1338,6 @@ function parseIconValue(value, onload) {
|
|
|
1338
1338
|
loading
|
|
1339
1339
|
};
|
|
1340
1340
|
}
|
|
1341
|
-
function getInline(node) {
|
|
1342
|
-
return node.hasAttribute("inline");
|
|
1343
|
-
}
|
|
1344
1341
|
var isBuggedSafari = false;
|
|
1345
1342
|
try {
|
|
1346
1343
|
isBuggedSafari = navigator.vendor.indexOf("Apple") === 0;
|
|
@@ -1763,6 +1760,7 @@ function exportFunctions() {
|
|
|
1763
1760
|
disableCache: storage2 => toggleBrowserCache(storage2, false),
|
|
1764
1761
|
iconLoaded: iconLoaded$1,
|
|
1765
1762
|
iconExists: iconLoaded$1,
|
|
1763
|
+
// deprecated, kept to avoid breaking changes
|
|
1766
1764
|
getIcon: getIcon$1,
|
|
1767
1765
|
listIcons: listIcons$1,
|
|
1768
1766
|
addIcon: addIcon$1,
|
|
@@ -1927,7 +1925,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
1927
1925
|
// Icon
|
|
1928
1926
|
"icon",
|
|
1929
1927
|
// Mode
|
|
1930
|
-
"mode", "inline", "
|
|
1928
|
+
"mode", "inline", "noobserver",
|
|
1931
1929
|
// Customisations
|
|
1932
1930
|
"width", "height", "rotate", "flip"];
|
|
1933
1931
|
const IconifyIcon2 = class extends ParentClass {
|
|
@@ -1952,7 +1950,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
1952
1950
|
const root = this._shadowRoot = this.attachShadow({
|
|
1953
1951
|
mode: "open"
|
|
1954
1952
|
});
|
|
1955
|
-
const inline =
|
|
1953
|
+
const inline = this.hasAttribute("inline");
|
|
1956
1954
|
updateStyle(root, inline);
|
|
1957
1955
|
this._state = setPendingState({
|
|
1958
1956
|
value: ""
|
|
@@ -2003,7 +2001,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2003
2001
|
switch (name2) {
|
|
2004
2002
|
case "inline":
|
|
2005
2003
|
{
|
|
2006
|
-
const newInline =
|
|
2004
|
+
const newInline = this.hasAttribute("inline");
|
|
2007
2005
|
const state = this._state;
|
|
2008
2006
|
if (newInline !== state.inline) {
|
|
2009
2007
|
state.inline = newInline;
|
|
@@ -2011,9 +2009,9 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2011
2009
|
}
|
|
2012
2010
|
break;
|
|
2013
2011
|
}
|
|
2014
|
-
case "
|
|
2012
|
+
case "noobserver":
|
|
2015
2013
|
{
|
|
2016
|
-
const value = this.
|
|
2014
|
+
const value = this.hasAttribute("noobserver");
|
|
2017
2015
|
if (value) {
|
|
2018
2016
|
this.startObserver();
|
|
2019
2017
|
} else {
|
|
@@ -2047,7 +2045,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2047
2045
|
* Get/set inline
|
|
2048
2046
|
*/
|
|
2049
2047
|
get inline() {
|
|
2050
|
-
return
|
|
2048
|
+
return this.hasAttribute("inline");
|
|
2051
2049
|
}
|
|
2052
2050
|
set inline(value) {
|
|
2053
2051
|
if (value) {
|
|
@@ -2191,7 +2189,7 @@ function defineIconifyIcon(name = "iconify-icon") {
|
|
|
2191
2189
|
* Start observer
|
|
2192
2190
|
*/
|
|
2193
2191
|
startObserver() {
|
|
2194
|
-
if (!this._observer) {
|
|
2192
|
+
if (!this._observer && !this.hasAttribute("noobserver")) {
|
|
2195
2193
|
try {
|
|
2196
2194
|
this._observer = new IntersectionObserver(entries => {
|
|
2197
2195
|
const intersecting = entries.some(entry => entry.isIntersecting);
|
|
@@ -2269,7 +2267,7 @@ var {
|
|
|
2269
2267
|
_api
|
|
2270
2268
|
} = IconifyIconComponent;
|
|
2271
2269
|
|
|
2272
|
-
// ../../node_modules/.pnpm/@iconify-icon+react@2.
|
|
2270
|
+
// ../../node_modules/.pnpm/@iconify-icon+react@2.1.0_react@18.2.0/node_modules/@iconify-icon/react/dist/iconify.mjs
|
|
2273
2271
|
var Icon = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
2274
2272
|
const newProps = {
|
|
2275
2273
|
...props,
|
|
@@ -2498,6 +2496,6 @@ iconify-icon/dist/iconify-icon.mjs:
|
|
|
2498
2496
|
* Licensed under MIT.
|
|
2499
2497
|
*
|
|
2500
2498
|
* @license MIT
|
|
2501
|
-
* @version 2.
|
|
2499
|
+
* @version 2.1.0
|
|
2502
2500
|
*)
|
|
2503
2501
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
export { yupResolver } from '@hookform/resolvers/yup';
|
|
2
|
-
import './typings.d-
|
|
2
|
+
import './typings.d-HZBqJJjn.mjs';
|
|
3
3
|
import * as yup from 'yup';
|
|
4
4
|
export { yup };
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import * as react_hook_form from 'react-hook-form';
|
|
7
|
-
import { FieldValues, FieldPath, UseControllerReturn, FieldPathValue } from 'react-hook-form';
|
|
8
|
-
export * from 'react-hook-form';
|
|
9
|
-
export { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch } from 'react-hook-form';
|
|
10
6
|
import * as React from 'react';
|
|
11
7
|
import { BoxProps, SxProp, CheckboxProps, InputProps, InputPasswordProps, RadioProps, SelectProps, TextareaProps } from '@ttoss/ui';
|
|
12
|
-
import {
|
|
13
|
-
export
|
|
8
|
+
import { FieldValues, FormProviderProps, FieldPath, UseControllerReturn, FieldPathValue } from 'react-hook-form';
|
|
9
|
+
export * from 'react-hook-form';
|
|
10
|
+
export { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch } from 'react-hook-form';
|
|
11
|
+
import { F as FormFieldPatternFormatProps } from './FormFieldPatternFormat-CkcL14ho.mjs';
|
|
12
|
+
export { a as FormFieldPatternFormat } from './FormFieldPatternFormat-CkcL14ho.mjs';
|
|
14
13
|
import { NumericFormatProps } from 'react-number-format';
|
|
15
14
|
|
|
16
15
|
declare const Form: <TFieldValues extends FieldValues = FieldValues>({ children, onSubmit, sx, ...formMethods }: {
|
|
17
16
|
children?: React.ReactNode;
|
|
18
|
-
onSubmit?: (
|
|
17
|
+
onSubmit?: (data: TFieldValues) => Promise<void> | void;
|
|
19
18
|
sx?: BoxProps['sx'];
|
|
20
|
-
} &
|
|
21
|
-
children: React.ReactNode | React.ReactNode[];
|
|
22
|
-
} & react_hook_form.UseFormReturn<TFieldValues, any, undefined>) => react_jsx_runtime.JSX.Element;
|
|
19
|
+
} & FormProviderProps<TFieldValues>) => react_jsx_runtime.JSX.Element;
|
|
23
20
|
|
|
24
21
|
type FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
25
22
|
label?: string;
|
|
@@ -36,7 +33,7 @@ type FormFieldCompleteProps<TFieldValues extends FieldValues = FieldValues, TNam
|
|
|
36
33
|
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;
|
|
37
34
|
|
|
38
35
|
declare const FormFieldCheckbox: <TFieldValues extends FieldValues = FieldValues>({ label, name, sx, ...checkboxProps }: {
|
|
39
|
-
label?: string
|
|
36
|
+
label?: string;
|
|
40
37
|
name: FieldPath<TFieldValues>;
|
|
41
38
|
} & CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
42
39
|
|
|
@@ -78,16 +75,16 @@ type FormRadioOption = {
|
|
|
78
75
|
label: string;
|
|
79
76
|
};
|
|
80
77
|
declare const FormFieldRadio: <TFieldValues extends FieldValues = FieldValues>({ label, name, options, sx, ...radioProps }: {
|
|
81
|
-
label?: string
|
|
78
|
+
label?: string;
|
|
82
79
|
name: FieldPath<TFieldValues>;
|
|
83
80
|
options: FormRadioOption[];
|
|
84
81
|
} & RadioProps) => react_jsx_runtime.JSX.Element;
|
|
85
82
|
|
|
86
83
|
type FormFieldSelectProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = Omit<SelectProps, 'defaultValue'> & FormFieldProps<TFieldValues, TName>;
|
|
87
|
-
declare const FormFieldSelect: <TFieldValues extends FieldValues = FieldValues>({ label, name, id, defaultValue, sx, css, disabled, tooltip, onTooltipClick, ...selectProps }: FormFieldSelectProps<TFieldValues
|
|
84
|
+
declare const FormFieldSelect: <TFieldValues extends FieldValues = FieldValues>({ label, name, id, defaultValue, sx, css, disabled, tooltip, onTooltipClick, ...selectProps }: FormFieldSelectProps<TFieldValues>) => react_jsx_runtime.JSX.Element;
|
|
88
85
|
|
|
89
86
|
declare const FormFieldTextarea: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ label, name, sx, ...textareaProps }: {
|
|
90
|
-
label?: string
|
|
87
|
+
label?: string;
|
|
91
88
|
name: TName;
|
|
92
89
|
} & TextareaProps) => react_jsx_runtime.JSX.Element;
|
|
93
90
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
export { yupResolver } from '@hookform/resolvers/yup';
|
|
2
|
-
import './typings.d-
|
|
2
|
+
import './typings.d-HZBqJJjn.js';
|
|
3
3
|
import * as yup from 'yup';
|
|
4
4
|
export { yup };
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import * as react_hook_form from 'react-hook-form';
|
|
7
|
-
import { FieldValues, FieldPath, UseControllerReturn, FieldPathValue } from 'react-hook-form';
|
|
8
|
-
export * from 'react-hook-form';
|
|
9
|
-
export { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch } from 'react-hook-form';
|
|
10
6
|
import * as React from 'react';
|
|
11
7
|
import { BoxProps, SxProp, CheckboxProps, InputProps, InputPasswordProps, RadioProps, SelectProps, TextareaProps } from '@ttoss/ui';
|
|
12
|
-
import {
|
|
13
|
-
export
|
|
8
|
+
import { FieldValues, FormProviderProps, FieldPath, UseControllerReturn, FieldPathValue } from 'react-hook-form';
|
|
9
|
+
export * from 'react-hook-form';
|
|
10
|
+
export { Controller, FormProvider, useController, useFieldArray, useForm, useFormContext, useFormState, useWatch } from 'react-hook-form';
|
|
11
|
+
import { F as FormFieldPatternFormatProps } from './FormFieldPatternFormat-CkcL14ho.js';
|
|
12
|
+
export { a as FormFieldPatternFormat } from './FormFieldPatternFormat-CkcL14ho.js';
|
|
14
13
|
import { NumericFormatProps } from 'react-number-format';
|
|
15
14
|
|
|
16
15
|
declare const Form: <TFieldValues extends FieldValues = FieldValues>({ children, onSubmit, sx, ...formMethods }: {
|
|
17
16
|
children?: React.ReactNode;
|
|
18
|
-
onSubmit?: (
|
|
17
|
+
onSubmit?: (data: TFieldValues) => Promise<void> | void;
|
|
19
18
|
sx?: BoxProps['sx'];
|
|
20
|
-
} &
|
|
21
|
-
children: React.ReactNode | React.ReactNode[];
|
|
22
|
-
} & react_hook_form.UseFormReturn<TFieldValues, any, undefined>) => react_jsx_runtime.JSX.Element;
|
|
19
|
+
} & FormProviderProps<TFieldValues>) => react_jsx_runtime.JSX.Element;
|
|
23
20
|
|
|
24
21
|
type FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
|
|
25
22
|
label?: string;
|
|
@@ -36,7 +33,7 @@ type FormFieldCompleteProps<TFieldValues extends FieldValues = FieldValues, TNam
|
|
|
36
33
|
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;
|
|
37
34
|
|
|
38
35
|
declare const FormFieldCheckbox: <TFieldValues extends FieldValues = FieldValues>({ label, name, sx, ...checkboxProps }: {
|
|
39
|
-
label?: string
|
|
36
|
+
label?: string;
|
|
40
37
|
name: FieldPath<TFieldValues>;
|
|
41
38
|
} & CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
42
39
|
|
|
@@ -78,16 +75,16 @@ type FormRadioOption = {
|
|
|
78
75
|
label: string;
|
|
79
76
|
};
|
|
80
77
|
declare const FormFieldRadio: <TFieldValues extends FieldValues = FieldValues>({ label, name, options, sx, ...radioProps }: {
|
|
81
|
-
label?: string
|
|
78
|
+
label?: string;
|
|
82
79
|
name: FieldPath<TFieldValues>;
|
|
83
80
|
options: FormRadioOption[];
|
|
84
81
|
} & RadioProps) => react_jsx_runtime.JSX.Element;
|
|
85
82
|
|
|
86
83
|
type FormFieldSelectProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = Omit<SelectProps, 'defaultValue'> & FormFieldProps<TFieldValues, TName>;
|
|
87
|
-
declare const FormFieldSelect: <TFieldValues extends FieldValues = FieldValues>({ label, name, id, defaultValue, sx, css, disabled, tooltip, onTooltipClick, ...selectProps }: FormFieldSelectProps<TFieldValues
|
|
84
|
+
declare const FormFieldSelect: <TFieldValues extends FieldValues = FieldValues>({ label, name, id, defaultValue, sx, css, disabled, tooltip, onTooltipClick, ...selectProps }: FormFieldSelectProps<TFieldValues>) => react_jsx_runtime.JSX.Element;
|
|
88
85
|
|
|
89
86
|
declare const FormFieldTextarea: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ label, name, sx, ...textareaProps }: {
|
|
90
|
-
label?: string
|
|
87
|
+
label?: string;
|
|
91
88
|
name: TName;
|
|
92
89
|
} & TextareaProps) => react_jsx_runtime.JSX.Element;
|
|
93
90
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/forms",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.4",
|
|
4
4
|
"author": "ttoss",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)"
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=16.8.0",
|
|
44
|
-
"@ttoss/react-i18n": "^1.26.
|
|
45
|
-
"@ttoss/ui": "^4.1.
|
|
44
|
+
"@ttoss/react-i18n": "^1.26.4",
|
|
45
|
+
"@ttoss/ui": "^4.1.6"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/jest": "^29.5.12",
|
|
49
|
-
"@types/react": "^18.2.
|
|
49
|
+
"@types/react": "^18.2.79",
|
|
50
50
|
"jest": "^29.7.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-error-boundary": "^4.0.13",
|
|
53
53
|
"theme-ui": "^0.16.2",
|
|
54
54
|
"tsup": "^8.0.2",
|
|
55
55
|
"yup": "^1.4.0",
|
|
56
|
-
"@ttoss/config": "^1.
|
|
57
|
-
"@ttoss/i18n-cli": "^0.7.
|
|
58
|
-
"@ttoss/react-i18n": "^1.26.
|
|
59
|
-
"@ttoss/react-icons": "^0.3.
|
|
60
|
-
"@ttoss/
|
|
61
|
-
"@ttoss/
|
|
56
|
+
"@ttoss/config": "^1.32.0",
|
|
57
|
+
"@ttoss/i18n-cli": "^0.7.8",
|
|
58
|
+
"@ttoss/react-i18n": "^1.26.4",
|
|
59
|
+
"@ttoss/react-icons": "^0.3.3",
|
|
60
|
+
"@ttoss/test-utils": "^2.1.3",
|
|
61
|
+
"@ttoss/ui": "^4.1.6"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public",
|
/package/dist/{FormFieldPatternFormat-DF8nU9tn.d.mts → FormFieldPatternFormat-CkcL14ho.d.mts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|