form-input-fields 1.0.15 → 1.0.17
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/README.md +576 -273
- package/dist/controls/FormCheckboxField/FormCheckboxField.d.ts +4 -1
- package/dist/controls/FormCheckboxField/FormCheckboxField.d.ts.map +1 -1
- package/dist/controls/FormDateField/FormDateField.d.ts +3 -1
- package/dist/controls/FormDateField/FormDateField.d.ts.map +1 -1
- package/dist/controls/FormDateTextField/FormDateTextField.d.ts +4 -2
- package/dist/controls/FormDateTextField/FormDateTextField.d.ts.map +1 -1
- package/dist/controls/FormDropDownField/FormDropDownField.d.ts +4 -2
- package/dist/controls/FormDropDownField/FormDropDownField.d.ts.map +1 -1
- package/dist/controls/FormMaskField/FormMaskField.d.ts +3 -0
- package/dist/controls/FormMaskField/FormMaskField.d.ts.map +1 -1
- package/dist/controls/FormSwitch/FormSwitch.d.ts +3 -0
- package/dist/controls/FormSwitch/FormSwitch.d.ts.map +1 -1
- package/dist/controls/FormTextField/FormTextField.d.ts +3 -1
- package/dist/controls/FormTextField/FormTextField.d.ts.map +1 -1
- package/dist/index.es.js +5911 -5996
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +78 -156
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
3
|
export interface FormCheckboxFieldProps {
|
|
3
4
|
/**
|
|
4
5
|
* Unique identifier for the checkbox
|
|
@@ -18,6 +19,8 @@ export interface FormCheckboxFieldProps {
|
|
|
18
19
|
* @param checked The new checked state
|
|
19
20
|
*/
|
|
20
21
|
onChange: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
22
|
+
/** The system prop that allows defining system overrides as well as additional CSS styles */
|
|
23
|
+
sx?: SxProps<Theme>;
|
|
21
24
|
}
|
|
22
|
-
export declare const FormCheckboxField: React.MemoExoticComponent<({ id, label, checked, onChange }: FormCheckboxFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
25
|
+
export declare const FormCheckboxField: React.MemoExoticComponent<({ id, label, checked, onChange, sx, }: FormCheckboxFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
23
26
|
//# sourceMappingURL=FormCheckboxField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheckboxField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormCheckboxField/FormCheckboxField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FormCheckboxField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormCheckboxField/FormCheckboxField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAA2C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAIxF,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAEjF,6FAA6F;IAC7F,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AA+BD,eAAO,MAAM,iBAAiB,oEAvB3B,sBAAsB,6CAuBwC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
import { TextFieldProps, SxProps, Theme } from '@mui/material';
|
|
3
3
|
import { FieldProps } from 'formik';
|
|
4
4
|
import { Dayjs } from 'dayjs';
|
|
5
5
|
export interface FormDateFieldProps {
|
|
@@ -28,6 +28,8 @@ export interface FormDateFieldProps {
|
|
|
28
28
|
}) => void;
|
|
29
29
|
/** Show the date format as helper text (default: false) */
|
|
30
30
|
showDateFormat?: boolean;
|
|
31
|
+
/** The system prop that allows defining system overrides as well as additional CSS styles */
|
|
32
|
+
sx?: SxProps<Theme>;
|
|
31
33
|
}
|
|
32
34
|
export type FormDateFieldComponentProps = FieldProps & TextFieldProps & FormDateFieldProps;
|
|
33
35
|
export declare const FormDateField: React.MemoExoticComponent<(props: FormDateFieldComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormDateField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormDateField/FormDateField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAe,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"FormDateField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormDateField/FormDateField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAe,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAC3C,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAMrC,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB,yBAAyB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,sCAAsC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,KAAK,GAAG,IAAI,EACnB,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,cAAc,EAAE,MAAM,CAAC;KACxB,KACE,IAAI,CAAC;IAEV,2DAA2D;IAC3D,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,6FAA6F;IAC7F,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED,MAAM,MAAM,2BAA2B,GAAG,UAAU,GAAG,cAAc,GAAG,kBAAkB,CAAC;AA2G3F,eAAO,MAAM,aAAa,oCAzGa,2BAA2B,6CAyGT,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
import { TextFieldProps, SxProps, Theme } from '@mui/material';
|
|
3
3
|
import { FieldProps } from 'formik';
|
|
4
4
|
import { Dayjs } from 'dayjs';
|
|
5
5
|
export interface FormDateTextFieldProps {
|
|
@@ -39,8 +39,10 @@ export interface FormDateTextFieldProps {
|
|
|
39
39
|
* Custom onBlur handler
|
|
40
40
|
*/
|
|
41
41
|
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
42
|
+
/** The system prop that allows defining system overrides as well as additional CSS styles */
|
|
43
|
+
sx?: SxProps<Theme>;
|
|
42
44
|
}
|
|
43
45
|
type FormDateTextFieldComponentProps = FormDateTextFieldProps & FieldProps & Omit<TextFieldProps, 'value' | 'onChange' | 'onBlur' | 'name' | 'defaultValue' | 'onError' | 'onFocus' | 'InputProps' | 'slots' | 'slotProps'>;
|
|
44
|
-
export declare const FormDateTextField: React.MemoExoticComponent<({ field, form, format, disabled, required, className, helperText, error, onChange, onBlur, ...props }: FormDateTextFieldComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
46
|
+
export declare const FormDateTextField: React.MemoExoticComponent<({ field, form, format, disabled, required, className, helperText, error, onChange, onBlur, sx, ...props }: FormDateTextFieldComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
45
47
|
export {};
|
|
46
48
|
//# sourceMappingURL=FormDateTextField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormDateTextField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormDateTextField/FormDateTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAe,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"FormDateTextField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormDateTextField/FormDateTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAe,cAAc,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAC3C,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAMrC,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;IAEzC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAE7D,6FAA6F;IAC7F,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED,KAAK,+BAA+B,GAAG,sBAAsB,GAC3D,UAAU,GACV,IAAI,CACF,cAAc,EACZ,OAAO,GACP,UAAU,GACV,QAAQ,GACR,MAAM,GACN,cAAc,GACd,SAAS,GACT,SAAS,GACT,YAAY,GACZ,OAAO,GACP,WAAW,CACd,CAAC;AA4DJ,eAAO,MAAM,iBAAiB,wIA7C3B,+BAA+B,6CA6C+B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FieldProps } from 'formik';
|
|
3
|
-
import { TextFieldProps } from '@mui/material';
|
|
3
|
+
import { TextFieldProps, SxProps, Theme } from '@mui/material';
|
|
4
4
|
export interface FormDropDownFieldProps {
|
|
5
5
|
/**
|
|
6
6
|
* Array of items to display in the dropdown
|
|
@@ -55,8 +55,10 @@ export interface FormDropDownFieldProps {
|
|
|
55
55
|
* @default 'standard'
|
|
56
56
|
*/
|
|
57
57
|
variant?: 'standard' | 'outlined' | 'filled';
|
|
58
|
+
/** The system prop that allows defining system overrides as well as additional CSS styles */
|
|
59
|
+
sx?: SxProps<Theme>;
|
|
58
60
|
}
|
|
59
61
|
type FormDropDownFieldComponentProps = FormDropDownFieldProps & FieldProps & Omit<TextFieldProps, 'value' | 'onChange' | 'onBlur' | 'name' | 'defaultValue' | 'onError' | 'onFocus' | 'InputProps' | 'select' | 'SelectProps'>;
|
|
60
|
-
export declare const FormDropDownField: React.MemoExoticComponent<({ field, form, items, addInputSelect, selectText, required, disabled, className, helperText, error, onChange, onBlur, variant, ...props }: FormDropDownFieldComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
62
|
+
export declare const FormDropDownField: React.MemoExoticComponent<({ field, form, items, addInputSelect, selectText, required, disabled, className, helperText, error, onChange, onBlur, variant, sx, ...props }: FormDropDownFieldComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
61
63
|
export {};
|
|
62
64
|
//# sourceMappingURL=FormDropDownField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormDropDownField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormDropDownField/FormDropDownField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAoC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"FormDropDownField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormDropDownField/FormDropDownField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAoC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGjG,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAE3D;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAE7D;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE7C,6FAA6F;IAC7F,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED,KAAK,+BAA+B,GAAG,sBAAsB,GAC3D,UAAU,GACV,IAAI,CACF,cAAc,EACZ,OAAO,GACP,UAAU,GACV,QAAQ,GACR,MAAM,GACN,cAAc,GACd,SAAS,GACT,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,aAAa,CAChB,CAAC;AAsFJ,eAAO,MAAM,iBAAiB,4KApE3B,+BAA+B,6CAoE+B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FieldProps } from 'formik';
|
|
3
3
|
import { TextFieldProps } from '@mui/material/TextField';
|
|
4
|
+
import { SxProps, Theme } from '@mui/material';
|
|
4
5
|
export interface FormMaskFieldProps {
|
|
5
6
|
/**
|
|
6
7
|
* Mask pattern string where:
|
|
@@ -41,6 +42,8 @@ export interface FormMaskFieldProps {
|
|
|
41
42
|
* @default 'standard'
|
|
42
43
|
*/
|
|
43
44
|
variant?: 'standard' | 'outlined' | 'filled';
|
|
45
|
+
/** The system prop that allows defining system overrides as well as additional CSS styles */
|
|
46
|
+
sx?: SxProps<Theme>;
|
|
44
47
|
}
|
|
45
48
|
export type FormMaskFieldComponentProps = FieldProps & TextFieldProps & FormMaskFieldProps;
|
|
46
49
|
export declare const FormMaskField: React.MemoExoticComponent<(props: FormMaskFieldComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormMaskField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormMaskField/FormMaskField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"FormMaskField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormMaskField/FormMaskField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAE3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE;QACL,MAAM,EAAE;YACN,KAAK,EAAE,MAAM,CAAC;YACd,UAAU,EAAE,MAAM,CAAC;YACnB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,GAAG,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KACpC,IAAI,CAAC;IAEV,4DAA4D;IAC5D,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,iDAAiD;IACjD,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE7C,6FAA6F;IAC7F,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED,MAAM,MAAM,2BAA2B,GAAG,UAAU,GAAG,cAAc,GAAG,kBAAkB,CAAC;AAoI3F,eAAO,MAAM,aAAa,oCAlIa,2BAA2B,6CAkIT,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FieldProps } from 'formik';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material';
|
|
3
4
|
import { SwitchProps } from '@mui/material/Switch';
|
|
4
5
|
export interface FormSwitchProps {
|
|
5
6
|
id: string;
|
|
@@ -55,6 +56,8 @@ export interface FormSwitchProps {
|
|
|
55
56
|
* Custom class name for the root element
|
|
56
57
|
*/
|
|
57
58
|
className?: string;
|
|
59
|
+
/** The system prop that allows defining system overrides as well as additional CSS styles */
|
|
60
|
+
sx?: SxProps<Theme>;
|
|
58
61
|
}
|
|
59
62
|
export type FormSwitchComponentProps = FieldProps & SwitchProps & FormSwitchProps;
|
|
60
63
|
export declare const FormSwitch: React.MemoExoticComponent<(props: FormSwitchComponentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormSwitch.d.ts","sourceRoot":"","sources":["../../../src/controls/FormSwitch/FormSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"FormSwitch.d.ts","sourceRoot":"","sources":["../../../src/controls/FormSwitch/FormSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAyD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAEpD;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAEvF;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CACT,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAC1C,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,OAAO,CAAC;KACtB,KACE,IAAI,CAAC;IAEV;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE9D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,6FAA6F;IAC7F,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AAED,MAAM,MAAM,wBAAwB,GAAG,UAAU,GAAG,WAAW,GAAG,eAAe,CAAC;AA+FlF,eAAO,MAAM,UAAU,oCA7Fa,wBAAwB,6CA6FT,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FieldProps } from 'formik';
|
|
3
|
-
import { TextFieldProps } from '@mui/material';
|
|
3
|
+
import { TextFieldProps, SxProps, Theme } from '@mui/material';
|
|
4
4
|
export interface FormTextFieldProps extends FieldProps, Omit<TextFieldProps, 'name' | 'value' | 'onChange' | 'onBlur'> {
|
|
5
5
|
/** Custom onChange handler that will override Formik's default */
|
|
6
6
|
onChange?: (value: any) => void;
|
|
@@ -11,6 +11,8 @@ export interface FormTextFieldProps extends FieldProps, Omit<TextFieldProps, 'na
|
|
|
11
11
|
* @default 'standard'
|
|
12
12
|
*/
|
|
13
13
|
variant?: 'standard' | 'outlined' | 'filled';
|
|
14
|
+
/** The system prop that allows defining system overrides as well as additional CSS styles */
|
|
15
|
+
sx?: SxProps<Theme>;
|
|
14
16
|
}
|
|
15
17
|
export declare const FormTextField: React.MemoExoticComponent<(props: FormTextFieldProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
18
|
//# sourceMappingURL=FormTextField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormTextField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormTextField/FormTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,cAAc,EAA0B,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"FormTextField.d.ts","sourceRoot":"","sources":["../../../src/controls/FormTextField/FormTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,UAAU,EAAS,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAAE,cAAc,EAA0B,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEvF,MAAM,WAAW,kBACf,SAAQ,UAAU,EAChB,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IAChE,kEAAkE;IAClE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAEhC,gEAAgE;IAChE,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;IAErD;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;IAE7C,6FAA6F;IAC7F,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;CACrB;AA8BD,eAAO,MAAM,aAAa,oCA5Ba,kBAAkB,6CA4BA,CAAC"}
|