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.
Files changed (166) hide show
  1. package/dist/cjs/index.js +36892 -59
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/api/PowellProvider.d.ts +5 -0
  4. package/dist/cjs/types/api/configService.d.ts +2 -0
  5. package/dist/cjs/types/api/forms.d.ts +73 -0
  6. package/dist/cjs/types/api/index.d.ts +5 -0
  7. package/dist/cjs/types/api/powellDefaults.d.ts +2 -0
  8. package/dist/cjs/types/api/primereact.d.ts +981 -0
  9. package/dist/cjs/types/components/AutoComplete/AutoComplete.d.ts +24 -0
  10. package/dist/cjs/types/components/AutoComplete/index.d.ts +1 -0
  11. package/dist/cjs/types/components/Button/Button.d.ts +21 -6
  12. package/dist/cjs/types/components/Button/index.d.ts +1 -2
  13. package/dist/cjs/types/components/CascadeSelect/CascadeSelect.d.ts +24 -0
  14. package/dist/cjs/types/components/CascadeSelect/index.d.ts +1 -0
  15. package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +21 -0
  16. package/dist/cjs/types/components/Checkbox/index.d.ts +1 -0
  17. package/dist/cjs/types/components/Chips/Chips.d.ts +24 -0
  18. package/dist/cjs/types/components/Chips/index.d.ts +1 -0
  19. package/dist/cjs/types/components/ColorPicker/ColorPicker.d.ts +24 -0
  20. package/dist/cjs/types/components/ColorPicker/index.d.ts +1 -0
  21. package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +24 -0
  22. package/dist/cjs/types/components/Dropdown/index.d.ts +1 -0
  23. package/dist/cjs/types/components/Editor/Editor.d.ts +23 -0
  24. package/dist/cjs/types/components/Editor/index.d.ts +1 -0
  25. package/dist/cjs/types/components/FormContainer/FormContainer.d.ts +7 -0
  26. package/dist/cjs/types/components/FormContainer/FormContext.d.ts +4 -0
  27. package/dist/cjs/types/components/FormContainer/index.d.ts +2 -0
  28. package/dist/cjs/types/components/InputMask/InputMask.d.ts +24 -0
  29. package/dist/cjs/types/components/InputMask/index.d.ts +1 -0
  30. package/dist/cjs/types/components/InputNumber/InputNumber.d.ts +24 -0
  31. package/dist/cjs/types/components/InputNumber/index.d.ts +1 -0
  32. package/dist/cjs/types/components/InputOtp/InputOtp.d.ts +21 -0
  33. package/dist/cjs/types/components/InputOtp/index.d.ts +1 -0
  34. package/dist/cjs/types/components/InputPassword/InputPassword.d.ts +24 -0
  35. package/dist/cjs/types/components/InputPassword/index.d.ts +1 -0
  36. package/dist/cjs/types/components/InputSwitch/InputSwitch.d.ts +21 -0
  37. package/dist/cjs/types/components/InputSwitch/index.d.ts +1 -0
  38. package/dist/cjs/types/components/InputText/InputText.d.ts +24 -0
  39. package/dist/cjs/types/components/InputText/index.d.ts +1 -0
  40. package/dist/cjs/types/components/InputTextarea/InputTextarea.d.ts +23 -0
  41. package/dist/cjs/types/components/InputTextarea/index.d.ts +1 -0
  42. package/dist/cjs/types/components/Knob/Knob.d.ts +21 -0
  43. package/dist/cjs/types/components/Knob/index.d.ts +1 -0
  44. package/dist/cjs/types/components/ListBox/ListBox.d.ts +21 -0
  45. package/dist/cjs/types/components/ListBox/index.d.ts +1 -0
  46. package/dist/cjs/types/components/Mention/Mention.d.ts +24 -0
  47. package/dist/cjs/types/components/Mention/index.d.ts +1 -0
  48. package/dist/cjs/types/components/MultiSelect/MultiSelect.d.ts +24 -0
  49. package/dist/cjs/types/components/MultiSelect/index.d.ts +1 -0
  50. package/dist/cjs/types/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +21 -0
  51. package/dist/cjs/types/components/MultiStateCheckbox/index.d.ts +1 -0
  52. package/dist/cjs/types/components/RadioGroup/RadioGroup.d.ts +24 -0
  53. package/dist/cjs/types/components/RadioGroup/index.d.ts +1 -0
  54. package/dist/cjs/types/components/Rating/Rating.d.ts +21 -0
  55. package/dist/cjs/types/components/Rating/index.d.ts +1 -0
  56. package/dist/cjs/types/components/SelectButton/SelectButton.d.ts +21 -0
  57. package/dist/cjs/types/components/SelectButton/index.d.ts +1 -0
  58. package/dist/cjs/types/components/Slider/Slider.d.ts +21 -0
  59. package/dist/cjs/types/components/Slider/index.d.ts +1 -0
  60. package/dist/cjs/types/components/ToggleButton/ToggleButton.d.ts +21 -0
  61. package/dist/cjs/types/components/ToggleButton/index.d.ts +1 -0
  62. package/dist/cjs/types/components/TreeSelect/TreeSelect.d.ts +24 -0
  63. package/dist/cjs/types/components/TreeSelect/index.d.ts +1 -0
  64. package/dist/cjs/types/components/TriStateCheckbox/TriStateCheckbox.d.ts +21 -0
  65. package/dist/cjs/types/components/TriStateCheckbox/index.d.ts +1 -0
  66. package/dist/cjs/types/components22/Button/Button.d.ts +7 -0
  67. package/dist/cjs/types/components22/Button/index.d.ts +2 -0
  68. package/dist/cjs/types/hooks/index.d.ts +3 -0
  69. package/dist/cjs/types/hooks/useApplyConfig.d.ts +17 -0
  70. package/dist/cjs/types/hooks/useFormContext.d.ts +2 -0
  71. package/dist/cjs/types/hooks/usePowellConfig.d.ts +2 -0
  72. package/dist/cjs/types/index.d.ts +1 -1
  73. package/dist/cjs/types/models/common.d.ts +7 -0
  74. package/dist/cjs/types/models/config.d.ts +13 -0
  75. package/dist/cjs/types/models/forms.d.ts +28 -0
  76. package/dist/cjs/types/models/index.d.ts +3 -0
  77. package/dist/cjs/types/utils/globalState.d.ts +19 -0
  78. package/dist/cjs/types/utils/index.d.ts +2 -0
  79. package/dist/cjs/types/utils/utilsService.d.ts +8 -0
  80. package/dist/esm/index.js +36893 -59
  81. package/dist/esm/index.js.map +1 -1
  82. package/dist/esm/types/api/PowellProvider.d.ts +5 -0
  83. package/dist/esm/types/api/configService.d.ts +2 -0
  84. package/dist/esm/types/api/forms.d.ts +73 -0
  85. package/dist/esm/types/api/index.d.ts +5 -0
  86. package/dist/esm/types/api/powellDefaults.d.ts +2 -0
  87. package/dist/esm/types/api/primereact.d.ts +981 -0
  88. package/dist/esm/types/components/AutoComplete/AutoComplete.d.ts +24 -0
  89. package/dist/esm/types/components/AutoComplete/index.d.ts +1 -0
  90. package/dist/esm/types/components/Button/Button.d.ts +21 -6
  91. package/dist/esm/types/components/Button/index.d.ts +1 -2
  92. package/dist/esm/types/components/CascadeSelect/CascadeSelect.d.ts +24 -0
  93. package/dist/esm/types/components/CascadeSelect/index.d.ts +1 -0
  94. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +21 -0
  95. package/dist/esm/types/components/Checkbox/index.d.ts +1 -0
  96. package/dist/esm/types/components/Chips/Chips.d.ts +24 -0
  97. package/dist/esm/types/components/Chips/index.d.ts +1 -0
  98. package/dist/esm/types/components/ColorPicker/ColorPicker.d.ts +24 -0
  99. package/dist/esm/types/components/ColorPicker/index.d.ts +1 -0
  100. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +24 -0
  101. package/dist/esm/types/components/Dropdown/index.d.ts +1 -0
  102. package/dist/esm/types/components/Editor/Editor.d.ts +23 -0
  103. package/dist/esm/types/components/Editor/index.d.ts +1 -0
  104. package/dist/esm/types/components/FormContainer/FormContainer.d.ts +7 -0
  105. package/dist/esm/types/components/FormContainer/FormContext.d.ts +4 -0
  106. package/dist/esm/types/components/FormContainer/index.d.ts +2 -0
  107. package/dist/esm/types/components/InputMask/InputMask.d.ts +24 -0
  108. package/dist/esm/types/components/InputMask/index.d.ts +1 -0
  109. package/dist/esm/types/components/InputNumber/InputNumber.d.ts +24 -0
  110. package/dist/esm/types/components/InputNumber/index.d.ts +1 -0
  111. package/dist/esm/types/components/InputOtp/InputOtp.d.ts +21 -0
  112. package/dist/esm/types/components/InputOtp/index.d.ts +1 -0
  113. package/dist/esm/types/components/InputPassword/InputPassword.d.ts +24 -0
  114. package/dist/esm/types/components/InputPassword/index.d.ts +1 -0
  115. package/dist/esm/types/components/InputSwitch/InputSwitch.d.ts +21 -0
  116. package/dist/esm/types/components/InputSwitch/index.d.ts +1 -0
  117. package/dist/esm/types/components/InputText/InputText.d.ts +24 -0
  118. package/dist/esm/types/components/InputText/index.d.ts +1 -0
  119. package/dist/esm/types/components/InputTextarea/InputTextarea.d.ts +23 -0
  120. package/dist/esm/types/components/InputTextarea/index.d.ts +1 -0
  121. package/dist/esm/types/components/Knob/Knob.d.ts +21 -0
  122. package/dist/esm/types/components/Knob/index.d.ts +1 -0
  123. package/dist/esm/types/components/ListBox/ListBox.d.ts +21 -0
  124. package/dist/esm/types/components/ListBox/index.d.ts +1 -0
  125. package/dist/esm/types/components/Mention/Mention.d.ts +24 -0
  126. package/dist/esm/types/components/Mention/index.d.ts +1 -0
  127. package/dist/esm/types/components/MultiSelect/MultiSelect.d.ts +24 -0
  128. package/dist/esm/types/components/MultiSelect/index.d.ts +1 -0
  129. package/dist/esm/types/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +21 -0
  130. package/dist/esm/types/components/MultiStateCheckbox/index.d.ts +1 -0
  131. package/dist/esm/types/components/RadioGroup/RadioGroup.d.ts +24 -0
  132. package/dist/esm/types/components/RadioGroup/index.d.ts +1 -0
  133. package/dist/esm/types/components/Rating/Rating.d.ts +21 -0
  134. package/dist/esm/types/components/Rating/index.d.ts +1 -0
  135. package/dist/esm/types/components/SelectButton/SelectButton.d.ts +21 -0
  136. package/dist/esm/types/components/SelectButton/index.d.ts +1 -0
  137. package/dist/esm/types/components/Slider/Slider.d.ts +21 -0
  138. package/dist/esm/types/components/Slider/index.d.ts +1 -0
  139. package/dist/esm/types/components/ToggleButton/ToggleButton.d.ts +21 -0
  140. package/dist/esm/types/components/ToggleButton/index.d.ts +1 -0
  141. package/dist/esm/types/components/TreeSelect/TreeSelect.d.ts +24 -0
  142. package/dist/esm/types/components/TreeSelect/index.d.ts +1 -0
  143. package/dist/esm/types/components/TriStateCheckbox/TriStateCheckbox.d.ts +21 -0
  144. package/dist/esm/types/components/TriStateCheckbox/index.d.ts +1 -0
  145. package/dist/esm/types/components22/Button/Button.d.ts +7 -0
  146. package/dist/esm/types/components22/Button/index.d.ts +2 -0
  147. package/dist/esm/types/hooks/index.d.ts +3 -0
  148. package/dist/esm/types/hooks/useApplyConfig.d.ts +17 -0
  149. package/dist/esm/types/hooks/useFormContext.d.ts +2 -0
  150. package/dist/esm/types/hooks/usePowellConfig.d.ts +2 -0
  151. package/dist/esm/types/index.d.ts +1 -1
  152. package/dist/esm/types/models/common.d.ts +7 -0
  153. package/dist/esm/types/models/config.d.ts +13 -0
  154. package/dist/esm/types/models/forms.d.ts +28 -0
  155. package/dist/esm/types/models/index.d.ts +3 -0
  156. package/dist/esm/types/utils/globalState.d.ts +19 -0
  157. package/dist/esm/types/utils/index.d.ts +2 -0
  158. package/dist/esm/types/utils/utilsService.d.ts +8 -0
  159. package/dist/index.d.ts +22 -7
  160. package/package.json +1 -1
  161. /package/dist/cjs/types/{components → components22}/Input/Input.d.ts +0 -0
  162. /package/dist/cjs/types/{components → components22}/Input/index.d.ts +0 -0
  163. /package/dist/cjs/types/{components → components22}/index.d.ts +0 -0
  164. /package/dist/esm/types/{components → components22}/Input/Input.d.ts +0 -0
  165. /package/dist/esm/types/{components → components22}/Input/index.d.ts +0 -0
  166. /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 React from "react";
2
- import "./Button.css";
3
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
- variant?: "primary" | "secondary";
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
- declare const Button: React.FC<ButtonProps>;
7
- export default Button;
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
- import Button from "./Button";
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,2 @@
1
+ export * from "./FormContainer";
2
+ export * from "./FormContext";
@@ -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";