powell-react 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +36892 -59
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/api/PowellProvider.d.ts +5 -0
- package/dist/cjs/types/api/configService.d.ts +2 -0
- package/dist/cjs/types/api/forms.d.ts +73 -0
- package/dist/cjs/types/api/index.d.ts +5 -0
- package/dist/cjs/types/api/powellDefaults.d.ts +2 -0
- package/dist/cjs/types/api/primereact.d.ts +981 -0
- package/dist/cjs/types/components/AutoComplete/AutoComplete.d.ts +24 -0
- package/dist/cjs/types/components/AutoComplete/index.d.ts +1 -0
- package/dist/cjs/types/components/Button/Button.d.ts +21 -6
- package/dist/cjs/types/components/Button/index.d.ts +1 -2
- package/dist/cjs/types/components/CascadeSelect/CascadeSelect.d.ts +24 -0
- package/dist/cjs/types/components/CascadeSelect/index.d.ts +1 -0
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/cjs/types/components/Checkbox/index.d.ts +1 -0
- package/dist/cjs/types/components/Chips/Chips.d.ts +24 -0
- package/dist/cjs/types/components/Chips/index.d.ts +1 -0
- package/dist/cjs/types/components/ColorPicker/ColorPicker.d.ts +24 -0
- package/dist/cjs/types/components/ColorPicker/index.d.ts +1 -0
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +24 -0
- package/dist/cjs/types/components/Dropdown/index.d.ts +1 -0
- package/dist/cjs/types/components/Editor/Editor.d.ts +23 -0
- package/dist/cjs/types/components/Editor/index.d.ts +1 -0
- package/dist/cjs/types/components/FormContainer/FormContainer.d.ts +7 -0
- package/dist/cjs/types/components/FormContainer/FormContext.d.ts +4 -0
- package/dist/cjs/types/components/FormContainer/index.d.ts +2 -0
- package/dist/cjs/types/components/InputMask/InputMask.d.ts +24 -0
- package/dist/cjs/types/components/InputMask/index.d.ts +1 -0
- package/dist/cjs/types/components/InputNumber/InputNumber.d.ts +24 -0
- package/dist/cjs/types/components/InputNumber/index.d.ts +1 -0
- package/dist/cjs/types/components/InputOtp/InputOtp.d.ts +21 -0
- package/dist/cjs/types/components/InputOtp/index.d.ts +1 -0
- package/dist/cjs/types/components/InputPassword/InputPassword.d.ts +24 -0
- package/dist/cjs/types/components/InputPassword/index.d.ts +1 -0
- package/dist/cjs/types/components/InputSwitch/InputSwitch.d.ts +21 -0
- package/dist/cjs/types/components/InputSwitch/index.d.ts +1 -0
- package/dist/cjs/types/components/InputText/InputText.d.ts +24 -0
- package/dist/cjs/types/components/InputText/index.d.ts +1 -0
- package/dist/cjs/types/components/InputTextarea/InputTextarea.d.ts +23 -0
- package/dist/cjs/types/components/InputTextarea/index.d.ts +1 -0
- package/dist/cjs/types/components/Knob/Knob.d.ts +21 -0
- package/dist/cjs/types/components/Knob/index.d.ts +1 -0
- package/dist/cjs/types/components/ListBox/ListBox.d.ts +21 -0
- package/dist/cjs/types/components/ListBox/index.d.ts +1 -0
- package/dist/cjs/types/components/Mention/Mention.d.ts +24 -0
- package/dist/cjs/types/components/Mention/index.d.ts +1 -0
- package/dist/cjs/types/components/MultiSelect/MultiSelect.d.ts +24 -0
- package/dist/cjs/types/components/MultiSelect/index.d.ts +1 -0
- package/dist/cjs/types/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +21 -0
- package/dist/cjs/types/components/MultiStateCheckbox/index.d.ts +1 -0
- package/dist/cjs/types/components/RadioGroup/RadioGroup.d.ts +24 -0
- package/dist/cjs/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/cjs/types/components/Rating/Rating.d.ts +21 -0
- package/dist/cjs/types/components/Rating/index.d.ts +1 -0
- package/dist/cjs/types/components/SelectButton/SelectButton.d.ts +21 -0
- package/dist/cjs/types/components/SelectButton/index.d.ts +1 -0
- package/dist/cjs/types/components/Slider/Slider.d.ts +21 -0
- package/dist/cjs/types/components/Slider/index.d.ts +1 -0
- package/dist/cjs/types/components/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/cjs/types/components/ToggleButton/index.d.ts +1 -0
- package/dist/cjs/types/components/TreeSelect/TreeSelect.d.ts +24 -0
- package/dist/cjs/types/components/TreeSelect/index.d.ts +1 -0
- package/dist/cjs/types/components/TriStateCheckbox/TriStateCheckbox.d.ts +21 -0
- package/dist/cjs/types/components/TriStateCheckbox/index.d.ts +1 -0
- package/dist/cjs/types/components22/Button/Button.d.ts +7 -0
- package/dist/cjs/types/components22/Button/index.d.ts +2 -0
- package/dist/cjs/types/hooks/index.d.ts +3 -0
- package/dist/cjs/types/hooks/useApplyConfig.d.ts +17 -0
- package/dist/cjs/types/hooks/useFormContext.d.ts +2 -0
- package/dist/cjs/types/hooks/usePowellConfig.d.ts +2 -0
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/cjs/types/models/common.d.ts +7 -0
- package/dist/cjs/types/models/config.d.ts +13 -0
- package/dist/cjs/types/models/forms.d.ts +28 -0
- package/dist/cjs/types/models/index.d.ts +3 -0
- package/dist/cjs/types/utils/globalState.d.ts +19 -0
- package/dist/cjs/types/utils/index.d.ts +2 -0
- package/dist/cjs/types/utils/utilsService.d.ts +8 -0
- package/dist/esm/index.js +36893 -59
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/api/PowellProvider.d.ts +5 -0
- package/dist/esm/types/api/configService.d.ts +2 -0
- package/dist/esm/types/api/forms.d.ts +73 -0
- package/dist/esm/types/api/index.d.ts +5 -0
- package/dist/esm/types/api/powellDefaults.d.ts +2 -0
- package/dist/esm/types/api/primereact.d.ts +981 -0
- package/dist/esm/types/components/AutoComplete/AutoComplete.d.ts +24 -0
- package/dist/esm/types/components/AutoComplete/index.d.ts +1 -0
- package/dist/esm/types/components/Button/Button.d.ts +21 -6
- package/dist/esm/types/components/Button/index.d.ts +1 -2
- package/dist/esm/types/components/CascadeSelect/CascadeSelect.d.ts +24 -0
- package/dist/esm/types/components/CascadeSelect/index.d.ts +1 -0
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/esm/types/components/Checkbox/index.d.ts +1 -0
- package/dist/esm/types/components/Chips/Chips.d.ts +24 -0
- package/dist/esm/types/components/Chips/index.d.ts +1 -0
- package/dist/esm/types/components/ColorPicker/ColorPicker.d.ts +24 -0
- package/dist/esm/types/components/ColorPicker/index.d.ts +1 -0
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +24 -0
- package/dist/esm/types/components/Dropdown/index.d.ts +1 -0
- package/dist/esm/types/components/Editor/Editor.d.ts +23 -0
- package/dist/esm/types/components/Editor/index.d.ts +1 -0
- package/dist/esm/types/components/FormContainer/FormContainer.d.ts +7 -0
- package/dist/esm/types/components/FormContainer/FormContext.d.ts +4 -0
- package/dist/esm/types/components/FormContainer/index.d.ts +2 -0
- package/dist/esm/types/components/InputMask/InputMask.d.ts +24 -0
- package/dist/esm/types/components/InputMask/index.d.ts +1 -0
- package/dist/esm/types/components/InputNumber/InputNumber.d.ts +24 -0
- package/dist/esm/types/components/InputNumber/index.d.ts +1 -0
- package/dist/esm/types/components/InputOtp/InputOtp.d.ts +21 -0
- package/dist/esm/types/components/InputOtp/index.d.ts +1 -0
- package/dist/esm/types/components/InputPassword/InputPassword.d.ts +24 -0
- package/dist/esm/types/components/InputPassword/index.d.ts +1 -0
- package/dist/esm/types/components/InputSwitch/InputSwitch.d.ts +21 -0
- package/dist/esm/types/components/InputSwitch/index.d.ts +1 -0
- package/dist/esm/types/components/InputText/InputText.d.ts +24 -0
- package/dist/esm/types/components/InputText/index.d.ts +1 -0
- package/dist/esm/types/components/InputTextarea/InputTextarea.d.ts +23 -0
- package/dist/esm/types/components/InputTextarea/index.d.ts +1 -0
- package/dist/esm/types/components/Knob/Knob.d.ts +21 -0
- package/dist/esm/types/components/Knob/index.d.ts +1 -0
- package/dist/esm/types/components/ListBox/ListBox.d.ts +21 -0
- package/dist/esm/types/components/ListBox/index.d.ts +1 -0
- package/dist/esm/types/components/Mention/Mention.d.ts +24 -0
- package/dist/esm/types/components/Mention/index.d.ts +1 -0
- package/dist/esm/types/components/MultiSelect/MultiSelect.d.ts +24 -0
- package/dist/esm/types/components/MultiSelect/index.d.ts +1 -0
- package/dist/esm/types/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +21 -0
- package/dist/esm/types/components/MultiStateCheckbox/index.d.ts +1 -0
- package/dist/esm/types/components/RadioGroup/RadioGroup.d.ts +24 -0
- package/dist/esm/types/components/RadioGroup/index.d.ts +1 -0
- package/dist/esm/types/components/Rating/Rating.d.ts +21 -0
- package/dist/esm/types/components/Rating/index.d.ts +1 -0
- package/dist/esm/types/components/SelectButton/SelectButton.d.ts +21 -0
- package/dist/esm/types/components/SelectButton/index.d.ts +1 -0
- package/dist/esm/types/components/Slider/Slider.d.ts +21 -0
- package/dist/esm/types/components/Slider/index.d.ts +1 -0
- package/dist/esm/types/components/ToggleButton/ToggleButton.d.ts +21 -0
- package/dist/esm/types/components/ToggleButton/index.d.ts +1 -0
- package/dist/esm/types/components/TreeSelect/TreeSelect.d.ts +24 -0
- package/dist/esm/types/components/TreeSelect/index.d.ts +1 -0
- package/dist/esm/types/components/TriStateCheckbox/TriStateCheckbox.d.ts +21 -0
- package/dist/esm/types/components/TriStateCheckbox/index.d.ts +1 -0
- package/dist/esm/types/components22/Button/Button.d.ts +7 -0
- package/dist/esm/types/components22/Button/index.d.ts +2 -0
- package/dist/esm/types/hooks/index.d.ts +3 -0
- package/dist/esm/types/hooks/useApplyConfig.d.ts +17 -0
- package/dist/esm/types/hooks/useFormContext.d.ts +2 -0
- package/dist/esm/types/hooks/usePowellConfig.d.ts +2 -0
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/esm/types/models/common.d.ts +7 -0
- package/dist/esm/types/models/config.d.ts +13 -0
- package/dist/esm/types/models/forms.d.ts +28 -0
- package/dist/esm/types/models/index.d.ts +3 -0
- package/dist/esm/types/utils/globalState.d.ts +19 -0
- package/dist/esm/types/utils/index.d.ts +2 -0
- package/dist/esm/types/utils/utilsService.d.ts +8 -0
- package/dist/index.d.ts +22 -7
- package/package.json +1 -1
- /package/dist/cjs/types/{components → components22}/Input/Input.d.ts +0 -0
- /package/dist/cjs/types/{components → components22}/Input/index.d.ts +0 -0
- /package/dist/cjs/types/{components → components22}/index.d.ts +0 -0
- /package/dist/esm/types/{components → components22}/Input/Input.d.ts +0 -0
- /package/dist/esm/types/{components → components22}/Input/index.d.ts +0 -0
- /package/dist/esm/types/{components → components22}/index.d.ts +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $AutoCompleteProps, $IconFieldProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './AutoComplete.scss';
|
6
|
+
interface AutoCompleteProps extends $AutoCompleteProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
addon?: Addon;
|
19
|
+
inputSize?: Size;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const AutoComplete: (props: AutoCompleteProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./AutoComplete";
|
@@ -1,7 +1,22 @@
|
|
1
|
-
import
|
2
|
-
import "
|
3
|
-
|
4
|
-
|
1
|
+
import { MouseEvent } from "react";
|
2
|
+
import { $ButtonProps } from "@api";
|
3
|
+
import { ButtonAppearance } from "@models";
|
4
|
+
type ButtonState = 'default' | 'loading' | 'next';
|
5
|
+
interface ButtonOnClickAsyncEvent {
|
6
|
+
loadingCallback: (ok?: boolean) => void;
|
7
|
+
event: MouseEvent<HTMLButtonElement>;
|
5
8
|
}
|
6
|
-
|
7
|
-
|
9
|
+
interface ButtonProps extends Omit<$ButtonProps, "loading" | "link" | "text" | "outlined"> {
|
10
|
+
async?: boolean;
|
11
|
+
onClickAsync?: (event: ButtonOnClickAsyncEvent) => void;
|
12
|
+
appearance?: ButtonAppearance;
|
13
|
+
nextLabel?: string;
|
14
|
+
nextIcon?: string;
|
15
|
+
nextRaised?: boolean;
|
16
|
+
nextAppearance?: ButtonAppearance;
|
17
|
+
nextSeverity?: ButtonProps['severity'];
|
18
|
+
state?: ButtonState;
|
19
|
+
onStateChange?: (state: ButtonState) => void;
|
20
|
+
}
|
21
|
+
export declare const Button: import("react").MemoExoticComponent<(props: ButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
22
|
+
export {};
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
export default Button;
|
1
|
+
export * from "./Button";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $CascadeSelectProps, $IconFieldProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './CascadeSelect.scss';
|
6
|
+
interface CascadeSelectProps extends $CascadeSelectProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
addon?: Addon;
|
19
|
+
inputSize?: Size;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const CascadeSelect: (props: CascadeSelectProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./CascadeSelect.tsx";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { FixLabelPosition } from "@models";
|
3
|
+
import { $CheckboxProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './Checkbox.scss';
|
6
|
+
interface CheckboxProps extends Omit<$CheckboxProps, 'checked'> {
|
7
|
+
checked?: boolean;
|
8
|
+
name?: string;
|
9
|
+
parseError?: (error: string) => ReactNode;
|
10
|
+
transform?: {
|
11
|
+
input?: (value: SafeAny) => string;
|
12
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
13
|
+
};
|
14
|
+
showRequiredStar?: boolean;
|
15
|
+
rtl?: boolean;
|
16
|
+
label?: string;
|
17
|
+
hint?: string;
|
18
|
+
labelPosition?: FixLabelPosition;
|
19
|
+
}
|
20
|
+
export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
21
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Checkbox";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $ChipsProps, $IconFieldProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './Chips.scss';
|
6
|
+
interface ChipsProps extends $ChipsProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const Chips: (props: ChipsProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Chips";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $ColorPickerProps, $IconFieldProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './ColorPicker.scss';
|
6
|
+
interface ColorPickerProps extends $ColorPickerProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const ColorPicker: (props: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./ColorPicker";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $DropdownProps, $IconFieldProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './Dropdown.scss';
|
6
|
+
interface DropdownProps extends $DropdownProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const Dropdown: (props: DropdownProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Dropdown";
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition } from "@models";
|
3
|
+
import { $EditorProps, $IconFieldProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './Editor.scss';
|
6
|
+
interface EditorProps extends $EditorProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
addon?: Addon;
|
19
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
20
|
+
labelPosition?: LabelPosition;
|
21
|
+
}
|
22
|
+
export declare const Editor: (props: EditorProps) => import("react/jsx-runtime").JSX.Element;
|
23
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Editor.tsx";
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { $FormikConfig, $FormikContextType, $FormikValues } from "@api";
|
2
|
+
interface FormContainerProps<T extends $FormikValues> extends $FormikConfig<T> {
|
3
|
+
onInit?: (context: $FormikContextType<T>) => void;
|
4
|
+
className?: string;
|
5
|
+
}
|
6
|
+
export declare const FormContainer: import("react").ForwardRefExoticComponent<FormContainerProps<$FormikValues> & import("react").RefAttributes<HTMLFormElement>>;
|
7
|
+
export {};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { PropsWithChildren } from "react";
|
2
|
+
import { $FormikConfig, $FormikValues } from "@api";
|
3
|
+
export declare const FormContext: import("react").Context<$FormikConfig<$FormikValues> | undefined>;
|
4
|
+
export declare const FormProvider: <T extends $FormikValues>(props: PropsWithChildren<$FormikConfig<T>>) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $IconFieldProps, $InputMaskProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './InputMask.scss';
|
6
|
+
interface InputMaskProps extends $InputMaskProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const InputMask: (props: InputMaskProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./InputMask";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $IconFieldProps, $InputNumberProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './InputNumber.scss';
|
6
|
+
interface InputNumberProps extends $InputNumberProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const InputNumber: (props: InputNumberProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./InputNumber";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { FixLabelPosition, Size } from "@models";
|
3
|
+
import { $InputOtpProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './InputOtp.scss';
|
6
|
+
interface InputOtpProps extends $InputOtpProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
hint?: string;
|
17
|
+
inputSize?: Size;
|
18
|
+
labelPosition?: FixLabelPosition;
|
19
|
+
}
|
20
|
+
export declare const InputOtp: (props: InputOtpProps) => import("react/jsx-runtime").JSX.Element;
|
21
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./InputOtp";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $IconFieldProps, $PasswordProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './InputPassword.scss';
|
6
|
+
interface InputPasswordProps extends $PasswordProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const InputPassword: (props: InputPasswordProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./InputPassword";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { FixLabelPosition } from "@models";
|
3
|
+
import { $InputSwitchProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './InputSwitch.scss';
|
6
|
+
interface InputSwitchProps extends Omit<$InputSwitchProps, 'checked'> {
|
7
|
+
checked?: boolean;
|
8
|
+
name?: string;
|
9
|
+
parseError?: (error: string) => ReactNode;
|
10
|
+
transform?: {
|
11
|
+
input?: (value: SafeAny) => string;
|
12
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
13
|
+
};
|
14
|
+
showRequiredStar?: boolean;
|
15
|
+
rtl?: boolean;
|
16
|
+
label?: string;
|
17
|
+
hint?: string;
|
18
|
+
labelPosition?: FixLabelPosition;
|
19
|
+
}
|
20
|
+
export declare const InputSwitch: (props: InputSwitchProps) => import("react/jsx-runtime").JSX.Element;
|
21
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./InputSwitch";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $IconFieldProps, $InputTextProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './InputText.scss';
|
6
|
+
interface InputTextProps extends $InputTextProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const InputText: (props: InputTextProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./InputText";
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition } from "@models";
|
3
|
+
import { $IconFieldProps, $InputTextareaProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './InputTextarea.scss';
|
6
|
+
interface InputTextareaProps extends $InputTextareaProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
addon?: Addon;
|
19
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
20
|
+
labelPosition?: LabelPosition;
|
21
|
+
}
|
22
|
+
export declare const InputTextarea: (props: InputTextareaProps) => import("react/jsx-runtime").JSX.Element;
|
23
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./InputTextarea";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { FixLabelPosition } from "@models";
|
3
|
+
import { $KnobProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './Knob.scss';
|
6
|
+
interface KnobProps extends Omit<$KnobProps, 'checked'> {
|
7
|
+
checked?: boolean;
|
8
|
+
name?: string;
|
9
|
+
parseError?: (error: string) => ReactNode;
|
10
|
+
transform?: {
|
11
|
+
input?: (value: SafeAny) => string;
|
12
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
13
|
+
};
|
14
|
+
showRequiredStar?: boolean;
|
15
|
+
rtl?: boolean;
|
16
|
+
label?: string;
|
17
|
+
hint?: string;
|
18
|
+
labelPosition?: FixLabelPosition;
|
19
|
+
}
|
20
|
+
export declare const Knob: (props: KnobProps) => import("react/jsx-runtime").JSX.Element;
|
21
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Knob";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { FixLabelPosition } from "@models";
|
3
|
+
import { $ListBoxProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './ListBox.scss';
|
6
|
+
interface ListBoxProps extends Omit<$ListBoxProps, 'checked'> {
|
7
|
+
checked?: boolean;
|
8
|
+
name?: string;
|
9
|
+
parseError?: (error: string) => ReactNode;
|
10
|
+
transform?: {
|
11
|
+
input?: (value: SafeAny) => string;
|
12
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
13
|
+
};
|
14
|
+
showRequiredStar?: boolean;
|
15
|
+
rtl?: boolean;
|
16
|
+
label?: string;
|
17
|
+
hint?: string;
|
18
|
+
labelPosition?: FixLabelPosition;
|
19
|
+
}
|
20
|
+
export declare const ListBox: (props: ListBoxProps) => import("react/jsx-runtime").JSX.Element;
|
21
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./ListBox.tsx";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $IconFieldProps, $MentionProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './Mention.scss';
|
6
|
+
interface MentionProps extends $MentionProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const Mention: (props: MentionProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Mention";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { Addon, LabelPosition, Size } from "@models";
|
3
|
+
import { $IconFieldProps, $MultiSelectProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './MultiSelect.scss';
|
6
|
+
interface MultiSelectProps extends $MultiSelectProps {
|
7
|
+
name?: string;
|
8
|
+
parseError?: (error: string) => ReactNode;
|
9
|
+
transform?: {
|
10
|
+
input?: (value: SafeAny) => string;
|
11
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
12
|
+
};
|
13
|
+
showRequiredStar?: boolean;
|
14
|
+
rtl?: boolean;
|
15
|
+
label?: string;
|
16
|
+
icon?: string | ReactNode;
|
17
|
+
hint?: string;
|
18
|
+
inputSize?: Size;
|
19
|
+
addon?: Addon;
|
20
|
+
iconPosition?: $IconFieldProps["iconPosition"];
|
21
|
+
labelPosition?: LabelPosition;
|
22
|
+
}
|
23
|
+
export declare const MultiSelect: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./MultiSelect";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { FixLabelPosition } from "@models";
|
3
|
+
import { $MultiStateCheckboxProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './MultiStateCheckbox.scss';
|
6
|
+
interface MultiStateCheckboxProps extends Omit<$MultiStateCheckboxProps, 'checked'> {
|
7
|
+
checked?: boolean;
|
8
|
+
name?: string;
|
9
|
+
parseError?: (error: string) => ReactNode;
|
10
|
+
transform?: {
|
11
|
+
input?: (value: SafeAny) => string;
|
12
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
13
|
+
};
|
14
|
+
showRequiredStar?: boolean;
|
15
|
+
rtl?: boolean;
|
16
|
+
label?: string;
|
17
|
+
hint?: string;
|
18
|
+
labelPosition?: FixLabelPosition;
|
19
|
+
}
|
20
|
+
export declare const MultiStateCheckbox: (props: MultiStateCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
21
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./MultiStateCheckbox";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { FixLabelPosition } from "@models";
|
3
|
+
import { $RadioButtonProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './RadioGroup.scss';
|
6
|
+
interface RadioGroupProps extends Omit<$RadioButtonProps, 'checked'> {
|
7
|
+
checked?: boolean;
|
8
|
+
name: string;
|
9
|
+
parseError?: (error: string) => ReactNode;
|
10
|
+
transform?: {
|
11
|
+
input?: (value: SafeAny) => string;
|
12
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
13
|
+
};
|
14
|
+
showRequiredStar?: boolean;
|
15
|
+
rtl?: boolean;
|
16
|
+
label?: string;
|
17
|
+
hint?: string;
|
18
|
+
labelPosition?: FixLabelPosition;
|
19
|
+
options: SafeAny[];
|
20
|
+
optionLabel?: string;
|
21
|
+
optionValue?: string;
|
22
|
+
}
|
23
|
+
export declare const RadioGroup: (props: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
|
24
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./RadioGroup";
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ChangeEvent, ReactNode } from "react";
|
2
|
+
import { FixLabelPosition } from "@models";
|
3
|
+
import { $RatingProps } from "@api";
|
4
|
+
import { SafeAny } from "@models";
|
5
|
+
import './Rating.scss';
|
6
|
+
interface RatingProps extends Omit<$RatingProps, 'checked'> {
|
7
|
+
checked?: boolean;
|
8
|
+
name?: string;
|
9
|
+
parseError?: (error: string) => ReactNode;
|
10
|
+
transform?: {
|
11
|
+
input?: (value: SafeAny) => string;
|
12
|
+
output?: (event: ChangeEvent<HTMLInputElement>) => SafeAny;
|
13
|
+
};
|
14
|
+
showRequiredStar?: boolean;
|
15
|
+
rtl?: boolean;
|
16
|
+
label?: string;
|
17
|
+
hint?: string;
|
18
|
+
labelPosition?: FixLabelPosition;
|
19
|
+
}
|
20
|
+
export declare const Rating: (props: RatingProps) => import("react/jsx-runtime").JSX.Element;
|
21
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./Rating";
|