@scbt-ecom/ui 0.31.3 → 0.31.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/{CustomLink-DmltAHJD.js → CustomLink-fcD_1hIU.js} +14 -14
- package/dist/{CustomLink-DmltAHJD.js.map → CustomLink-fcD_1hIU.js.map} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/shared/ui/formElements/controlled/autocomplete/Autocomplete.d.ts +3 -5
- package/dist/shared/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/dayPickerControl/dayPickerControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/editor/EditorControl.d.ts +16 -0
- package/dist/shared/ui/formElements/{editorControl → controlled/editor}/model/helper.d.ts +3 -3
- package/dist/shared/ui/formElements/{editorControl → controlled/editor}/model/types.d.ts +2 -2
- package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/Editor.d.ts +6 -3
- package/dist/shared/ui/formElements/controlled/editor/ui/Toolbar.d.ts +6 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +2 -1
- package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/inputCurrency/InputCurrencyControl.d.ts +26 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/select/SelectControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/switch/SwitchControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/textarea/TextareaControl.d.ts +1 -2
- package/dist/shared/ui/formElements/index.d.ts +0 -11
- package/dist/shared/ui/formElements/ui/index.d.ts +0 -2
- package/dist/shared/ui/formElements/uncontrolled/input/Input.d.ts +1 -0
- package/dist/ui.js +28203 -33348
- package/dist/ui.js.map +1 -1
- package/dist/{useDebounce-DyvGYvL9.js → useDebounce-BNBPHQrJ.js} +40 -42
- package/dist/{useDebounce-DyvGYvL9.js.map → useDebounce-BNBPHQrJ.js.map} +1 -1
- package/dist/widget.js +1 -1
- package/package.json +1 -1
- package/dist/shared/ui/formElements/CheckboxControl.d.ts +0 -23
- package/dist/shared/ui/formElements/InputControl.d.ts +0 -18
- package/dist/shared/ui/formElements/InputOtpControl/InputOtpControl.d.ts +0 -15
- package/dist/shared/ui/formElements/InputOtpControl/index.d.ts +0 -1
- package/dist/shared/ui/formElements/InputOtpControl/ui/InputOtp.d.ts +0 -11
- package/dist/shared/ui/formElements/InputOtpControl/ui/InputOtpSlot.d.ts +0 -13
- package/dist/shared/ui/formElements/InputOtpControl/ui/index.d.ts +0 -2
- package/dist/shared/ui/formElements/SwitchControl.d.ts +0 -19
- package/dist/shared/ui/formElements/TextareaControl.d.ts +0 -20
- package/dist/shared/ui/formElements/comboboxControl/ComboboxControl.d.ts +0 -29
- package/dist/shared/ui/formElements/comboboxControl/index.d.ts +0 -1
- package/dist/shared/ui/formElements/comboboxControl/model/selectClassnames.d.ts +0 -21
- package/dist/shared/ui/formElements/comboboxControl/model/types.d.ts +0 -37
- package/dist/shared/ui/formElements/comboboxControl/ui/ComboboxOption.d.ts +0 -8
- package/dist/shared/ui/formElements/comboboxControl/ui/DropdownIndicator.d.ts +0 -7
- package/dist/shared/ui/formElements/comboboxControl/ui/MultiValueRemove.d.ts +0 -7
- package/dist/shared/ui/formElements/comboboxControl/ui/index.d.ts +0 -3
- package/dist/shared/ui/formElements/controlled/combobox/ComboboxControl.d.ts +0 -26
- package/dist/shared/ui/formElements/controlled/combobox/index.d.ts +0 -1
- package/dist/shared/ui/formElements/controlled/combobox/model/selectClassnames.d.ts +0 -21
- package/dist/shared/ui/formElements/controlled/combobox/model/types.d.ts +0 -37
- package/dist/shared/ui/formElements/controlled/combobox/ui/ComboboxOption.d.ts +0 -8
- package/dist/shared/ui/formElements/controlled/combobox/ui/DropdownIndicator.d.ts +0 -7
- package/dist/shared/ui/formElements/controlled/combobox/ui/MultiValueRemove.d.ts +0 -7
- package/dist/shared/ui/formElements/controlled/combobox/ui/index.d.ts +0 -3
- package/dist/shared/ui/formElements/dadataControl/DadataAddress.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/DadataAuto.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/DadataCountry.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/DadataFio.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/DadataOrganization.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/AutocompleteDadata.d.ts +0 -29
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/index.d.ts +0 -1
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/api.d.ts +0 -2
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/helpers.d.ts +0 -7
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/types.d.ts +0 -41
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/useDadata.d.ts +0 -188
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/ui/ComboboxOptionsCustom.d.ts +0 -8
- package/dist/shared/ui/formElements/dadataControl/index.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/types.d.ts +0 -5
- package/dist/shared/ui/formElements/editorControl/EditorControl.d.ts +0 -19
- package/dist/shared/ui/formElements/editorControl/ui/Toolbar.d.ts +0 -6
- package/dist/shared/ui/formElements/inputControlMask/InputControlMask.d.ts +0 -32
- package/dist/shared/ui/formElements/inputControlMask/index.d.ts +0 -1
- package/dist/shared/ui/formElements/inputControlMask/model/useInputControlMask.d.ts +0 -28
- package/dist/shared/ui/formElements/inputCurrencyControl/InputCurrencyControl.d.ts +0 -16
- package/dist/shared/ui/formElements/model/types.d.ts +0 -7
- package/dist/shared/ui/formElements/radioControl/RadioControl.d.ts +0 -35
- package/dist/shared/ui/formElements/radioControl/index.d.ts +0 -1
- package/dist/shared/ui/formElements/radioControl/ui/RadioGroupCustom.d.ts +0 -8
- package/dist/shared/ui/formElements/radioControl/ui/index.d.ts +0 -1
- package/dist/shared/ui/formElements/ui/FieldContainer.d.ts +0 -12
- package/dist/shared/ui/formElements/ui/fieldWrapper/FieldWrapper.d.ts +0 -15
- package/dist/shared/ui/formElements/ui/fieldWrapper/index.d.ts +0 -1
- package/dist/shared/ui/formElements/ui/fieldWrapper/ui/FieldLabel.d.ts +0 -6
- package/dist/shared/ui/formElements/ui/fieldWrapper/ui/index.d.ts +0 -1
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/index.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/model/config.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/SetColor.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/SetCoreCommands.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/SetHeadings.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/index.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/setCustomLink.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/index.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/model/helpers.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/model/useInputCurrency.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/ui/MenuTrigger.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/ui/OptionList.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/ui/index.d.ts +0 -0
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { TDadataType } from './types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare const useDadata: <T>(dadataType: TDadataType, dadataBaseUrl: string) => {
|
|
4
|
-
error: Error;
|
|
5
|
-
isError: true;
|
|
6
|
-
isPending: false;
|
|
7
|
-
isLoading: false;
|
|
8
|
-
isLoadingError: false;
|
|
9
|
-
isRefetchError: true;
|
|
10
|
-
isSuccess: false;
|
|
11
|
-
status: "error";
|
|
12
|
-
dataUpdatedAt: number;
|
|
13
|
-
errorUpdatedAt: number;
|
|
14
|
-
failureCount: number;
|
|
15
|
-
failureReason: Error | null;
|
|
16
|
-
errorUpdateCount: number;
|
|
17
|
-
isFetched: boolean;
|
|
18
|
-
isFetchedAfterMount: boolean;
|
|
19
|
-
isFetching: boolean;
|
|
20
|
-
isInitialLoading: boolean;
|
|
21
|
-
isPaused: boolean;
|
|
22
|
-
isPlaceholderData: boolean;
|
|
23
|
-
isRefetching: boolean;
|
|
24
|
-
isStale: boolean;
|
|
25
|
-
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<{
|
|
26
|
-
value: string;
|
|
27
|
-
label: string;
|
|
28
|
-
}[], Error>>;
|
|
29
|
-
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
30
|
-
promise: Promise<{
|
|
31
|
-
value: string;
|
|
32
|
-
label: string;
|
|
33
|
-
}[]>;
|
|
34
|
-
setQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
35
|
-
suggestionsOptions: {
|
|
36
|
-
value: string;
|
|
37
|
-
label: string;
|
|
38
|
-
}[];
|
|
39
|
-
debounceQuery: string;
|
|
40
|
-
} | {
|
|
41
|
-
error: null;
|
|
42
|
-
isError: false;
|
|
43
|
-
isPending: false;
|
|
44
|
-
isLoading: false;
|
|
45
|
-
isLoadingError: false;
|
|
46
|
-
isRefetchError: false;
|
|
47
|
-
isSuccess: true;
|
|
48
|
-
status: "success";
|
|
49
|
-
dataUpdatedAt: number;
|
|
50
|
-
errorUpdatedAt: number;
|
|
51
|
-
failureCount: number;
|
|
52
|
-
failureReason: Error | null;
|
|
53
|
-
errorUpdateCount: number;
|
|
54
|
-
isFetched: boolean;
|
|
55
|
-
isFetchedAfterMount: boolean;
|
|
56
|
-
isFetching: boolean;
|
|
57
|
-
isInitialLoading: boolean;
|
|
58
|
-
isPaused: boolean;
|
|
59
|
-
isPlaceholderData: boolean;
|
|
60
|
-
isRefetching: boolean;
|
|
61
|
-
isStale: boolean;
|
|
62
|
-
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<{
|
|
63
|
-
value: string;
|
|
64
|
-
label: string;
|
|
65
|
-
}[], Error>>;
|
|
66
|
-
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
67
|
-
promise: Promise<{
|
|
68
|
-
value: string;
|
|
69
|
-
label: string;
|
|
70
|
-
}[]>;
|
|
71
|
-
setQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
72
|
-
suggestionsOptions: {
|
|
73
|
-
value: string;
|
|
74
|
-
label: string;
|
|
75
|
-
}[];
|
|
76
|
-
debounceQuery: string;
|
|
77
|
-
} | {
|
|
78
|
-
error: Error;
|
|
79
|
-
isError: true;
|
|
80
|
-
isPending: false;
|
|
81
|
-
isLoading: false;
|
|
82
|
-
isLoadingError: true;
|
|
83
|
-
isRefetchError: false;
|
|
84
|
-
isSuccess: false;
|
|
85
|
-
status: "error";
|
|
86
|
-
dataUpdatedAt: number;
|
|
87
|
-
errorUpdatedAt: number;
|
|
88
|
-
failureCount: number;
|
|
89
|
-
failureReason: Error | null;
|
|
90
|
-
errorUpdateCount: number;
|
|
91
|
-
isFetched: boolean;
|
|
92
|
-
isFetchedAfterMount: boolean;
|
|
93
|
-
isFetching: boolean;
|
|
94
|
-
isInitialLoading: boolean;
|
|
95
|
-
isPaused: boolean;
|
|
96
|
-
isPlaceholderData: boolean;
|
|
97
|
-
isRefetching: boolean;
|
|
98
|
-
isStale: boolean;
|
|
99
|
-
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<{
|
|
100
|
-
value: string;
|
|
101
|
-
label: string;
|
|
102
|
-
}[], Error>>;
|
|
103
|
-
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
104
|
-
promise: Promise<{
|
|
105
|
-
value: string;
|
|
106
|
-
label: string;
|
|
107
|
-
}[]>;
|
|
108
|
-
setQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
109
|
-
suggestionsOptions: {
|
|
110
|
-
value: string;
|
|
111
|
-
label: string;
|
|
112
|
-
}[];
|
|
113
|
-
debounceQuery: string;
|
|
114
|
-
} | {
|
|
115
|
-
error: null;
|
|
116
|
-
isError: false;
|
|
117
|
-
isPending: true;
|
|
118
|
-
isLoading: true;
|
|
119
|
-
isLoadingError: false;
|
|
120
|
-
isRefetchError: false;
|
|
121
|
-
isSuccess: false;
|
|
122
|
-
status: "pending";
|
|
123
|
-
dataUpdatedAt: number;
|
|
124
|
-
errorUpdatedAt: number;
|
|
125
|
-
failureCount: number;
|
|
126
|
-
failureReason: Error | null;
|
|
127
|
-
errorUpdateCount: number;
|
|
128
|
-
isFetched: boolean;
|
|
129
|
-
isFetchedAfterMount: boolean;
|
|
130
|
-
isFetching: boolean;
|
|
131
|
-
isInitialLoading: boolean;
|
|
132
|
-
isPaused: boolean;
|
|
133
|
-
isPlaceholderData: boolean;
|
|
134
|
-
isRefetching: boolean;
|
|
135
|
-
isStale: boolean;
|
|
136
|
-
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<{
|
|
137
|
-
value: string;
|
|
138
|
-
label: string;
|
|
139
|
-
}[], Error>>;
|
|
140
|
-
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
141
|
-
promise: Promise<{
|
|
142
|
-
value: string;
|
|
143
|
-
label: string;
|
|
144
|
-
}[]>;
|
|
145
|
-
setQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
146
|
-
suggestionsOptions: {
|
|
147
|
-
value: string;
|
|
148
|
-
label: string;
|
|
149
|
-
}[];
|
|
150
|
-
debounceQuery: string;
|
|
151
|
-
} | {
|
|
152
|
-
error: null;
|
|
153
|
-
isError: false;
|
|
154
|
-
isPending: true;
|
|
155
|
-
isLoadingError: false;
|
|
156
|
-
isRefetchError: false;
|
|
157
|
-
isSuccess: false;
|
|
158
|
-
status: "pending";
|
|
159
|
-
dataUpdatedAt: number;
|
|
160
|
-
errorUpdatedAt: number;
|
|
161
|
-
failureCount: number;
|
|
162
|
-
failureReason: Error | null;
|
|
163
|
-
errorUpdateCount: number;
|
|
164
|
-
isFetched: boolean;
|
|
165
|
-
isFetchedAfterMount: boolean;
|
|
166
|
-
isFetching: boolean;
|
|
167
|
-
isLoading: boolean;
|
|
168
|
-
isInitialLoading: boolean;
|
|
169
|
-
isPaused: boolean;
|
|
170
|
-
isPlaceholderData: boolean;
|
|
171
|
-
isRefetching: boolean;
|
|
172
|
-
isStale: boolean;
|
|
173
|
-
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<{
|
|
174
|
-
value: string;
|
|
175
|
-
label: string;
|
|
176
|
-
}[], Error>>;
|
|
177
|
-
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
178
|
-
promise: Promise<{
|
|
179
|
-
value: string;
|
|
180
|
-
label: string;
|
|
181
|
-
}[]>;
|
|
182
|
-
setQuery: React.Dispatch<React.SetStateAction<string>>;
|
|
183
|
-
suggestionsOptions: {
|
|
184
|
-
value: string;
|
|
185
|
-
label: string;
|
|
186
|
-
}[];
|
|
187
|
-
debounceQuery: string;
|
|
188
|
-
};
|
package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/ui/ComboboxOptionsCustom.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TAutocompleteDadataClasses } from '../AutocompleteDadata';
|
|
2
|
-
import { TDadataOption } from '../model/types';
|
|
3
|
-
interface IComboboxOptionsProps {
|
|
4
|
-
suggestionsOptions: TDadataOption[] | null;
|
|
5
|
-
classes?: Omit<TAutocompleteDadataClasses, 'root' | 'input' | 'message'>;
|
|
6
|
-
}
|
|
7
|
-
export declare const ComboboxOptionsCustom: ({ suggestionsOptions, classes }: IComboboxOptionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IAutocompleteDadataProps, TAutocompleteDadataClasses } from './autocompleteDadata';
|
|
3
|
-
export interface IDadataProps<T extends FieldValues> extends Omit<IAutocompleteDadataProps<T>, 'dadataType'> {
|
|
4
|
-
classes?: TAutocompleteDadataClasses;
|
|
5
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import { TCommonFieldProps } from '../model/types';
|
|
4
|
-
export type TEditorControlClasses = {
|
|
5
|
-
root?: string;
|
|
6
|
-
editor?: string;
|
|
7
|
-
wrapper?: string;
|
|
8
|
-
message?: string;
|
|
9
|
-
label?: string;
|
|
10
|
-
};
|
|
11
|
-
export interface ICommonEditorProps {
|
|
12
|
-
editable?: boolean;
|
|
13
|
-
helperText?: string | ReactElement;
|
|
14
|
-
label?: string;
|
|
15
|
-
}
|
|
16
|
-
export type IEditorControlProps<T extends FieldValues> = TCommonFieldProps<T> & ICommonEditorProps & {
|
|
17
|
-
classes?: TEditorControlClasses;
|
|
18
|
-
};
|
|
19
|
-
export declare const EditorControl: <T extends FieldValues>({ control, label, helperText, editable, classes, name, ...props }: IEditorControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { NumberFormatValues, SourceInfo } from 'react-number-format';
|
|
3
|
-
import { TCommonFieldProps } from '../model/types';
|
|
4
|
-
import { IFieldAttachmentProps, TFieldAttachmentClasses, TFieldContainerConfig, TFieldWrapperClasses } from '../ui';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
type TInputControlMaskClasses = TFieldAttachmentClasses & TFieldWrapperClasses & {
|
|
7
|
-
input?: string;
|
|
8
|
-
message?: string;
|
|
9
|
-
inputContainer?: string;
|
|
10
|
-
};
|
|
11
|
-
export type TInputMode = 'phone' | undefined;
|
|
12
|
-
export type TActions = {
|
|
13
|
-
customInputChange?: (value: NumberFormatValues, source: SourceInfo) => void;
|
|
14
|
-
customPaste?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
15
|
-
customFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
16
|
-
customBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
17
|
-
};
|
|
18
|
-
export interface InputControlMaskProps<T extends FieldValues> extends TCommonFieldProps<T>, Omit<IFieldAttachmentProps, 'invalid' | 'isTouched'> {
|
|
19
|
-
format: string;
|
|
20
|
-
mask?: string | string[];
|
|
21
|
-
allowEmptyFormatting?: boolean;
|
|
22
|
-
classes?: TInputControlMaskClasses;
|
|
23
|
-
size?: TFieldContainerConfig['size'];
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
mode?: TInputMode;
|
|
26
|
-
actions?: TActions;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated For better performance use `Controlled.MaskInput` instead.
|
|
30
|
-
*/
|
|
31
|
-
export declare const InputControlMask: <T extends FieldValues>({ format, allowEmptyFormatting, mask, control, actions, size, label, helperText, disabled, classes, badge, withValidateIcons, icon, onClickIcon, onKeyDownIcon, mode, ...props }: InputControlMaskProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputControlMask';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Noop } from 'react-hook-form';
|
|
2
|
-
import { NumberFormatValues, SourceInfo } from 'react-number-format';
|
|
3
|
-
import { TActions, TInputMode } from '../InputControlMask';
|
|
4
|
-
type TOnValueChange = {
|
|
5
|
-
inputValue: NumberFormatValues;
|
|
6
|
-
source: SourceInfo;
|
|
7
|
-
onChange: (...event: any[]) => void;
|
|
8
|
-
};
|
|
9
|
-
type TOnPaste = {
|
|
10
|
-
event: React.ClipboardEvent<HTMLInputElement>;
|
|
11
|
-
onChange: (...event: any[]) => void;
|
|
12
|
-
};
|
|
13
|
-
type TOnFocus = {
|
|
14
|
-
event: React.FocusEvent<HTMLInputElement>;
|
|
15
|
-
setShowMask: React.Dispatch<React.SetStateAction<boolean>>;
|
|
16
|
-
};
|
|
17
|
-
type TOnBlur = {
|
|
18
|
-
event: React.FocusEvent<HTMLInputElement>;
|
|
19
|
-
setShowMask: React.Dispatch<React.SetStateAction<boolean>>;
|
|
20
|
-
hookFormBlur: Noop;
|
|
21
|
-
};
|
|
22
|
-
export declare const useInputControlMask: (actions?: TActions, mode?: TInputMode) => {
|
|
23
|
-
onValueChange: ({ inputValue, onChange, source }: TOnValueChange) => void;
|
|
24
|
-
onPaste: ({ event, onChange }: TOnPaste) => void;
|
|
25
|
-
onFocus: ({ event, setShowMask }: TOnFocus) => void;
|
|
26
|
-
onBlur: ({ event, setShowMask, hookFormBlur }: TOnBlur) => void;
|
|
27
|
-
};
|
|
28
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from '../model/types';
|
|
3
|
-
import { IFieldAttachmentProps, TFieldContainerConfig } from '../ui';
|
|
4
|
-
export type TCurrencyVariant = 'euro' | 'dollars' | 'rubles' | 'yuan' | 'dirhams';
|
|
5
|
-
export interface ICurrencyOption {
|
|
6
|
-
ruName: string;
|
|
7
|
-
engName: string;
|
|
8
|
-
currency: TCurrencyVariant;
|
|
9
|
-
}
|
|
10
|
-
export interface InputCurrencyControlProps<T extends FieldValues> extends TCommonFieldProps<T>, Omit<IFieldAttachmentProps, 'invalid' | 'isTouched'> {
|
|
11
|
-
classes?: any;
|
|
12
|
-
defaultCurrency?: TCurrencyVariant;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
size?: TFieldContainerConfig['size'];
|
|
15
|
-
}
|
|
16
|
-
export declare const InputCurrencyControl: <T extends FieldValues>({ label, size, helperText, control, classes, disabled, defaultCurrency, ...props }: InputCurrencyControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { TCommonFieldProps } from '../model/types';
|
|
4
|
-
declare const radioOptionsConfig: (props?: ({
|
|
5
|
-
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
-
export type TRadioClasses = {
|
|
8
|
-
root?: string;
|
|
9
|
-
groupName?: string;
|
|
10
|
-
field?: string;
|
|
11
|
-
message?: string;
|
|
12
|
-
radioGroup?: string;
|
|
13
|
-
radioLabel?: string;
|
|
14
|
-
radioIndicator?: string;
|
|
15
|
-
radioInput?: string;
|
|
16
|
-
radio?: string;
|
|
17
|
-
radioOption?: string;
|
|
18
|
-
};
|
|
19
|
-
export interface IRadioGroupOption {
|
|
20
|
-
label: string;
|
|
21
|
-
value: string;
|
|
22
|
-
isDisabled?: boolean;
|
|
23
|
-
}
|
|
24
|
-
type TRadioOptionsConfig = VariantProps<typeof radioOptionsConfig>;
|
|
25
|
-
export interface IRadioControlProps<T extends FieldValues> extends TRadioOptionsConfig, Omit<TCommonFieldProps<T>, 'label'> {
|
|
26
|
-
radioItemsGroup: IRadioGroupOption[];
|
|
27
|
-
groupName?: string;
|
|
28
|
-
classes?: TRadioClasses;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated For better performance use `Controlled.RadioGroupControl` instead.
|
|
33
|
-
*/
|
|
34
|
-
export declare const RadioControl: <T extends FieldValues>({ radioItemsGroup, control, groupName, helperText, disabled, classes, orientation, ...props }: IRadioControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './RadioControl';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IRadioGroupOption, TRadioClasses } from '../RadioControl';
|
|
2
|
-
interface IRadioGroupCustomProps {
|
|
3
|
-
radioItemsGroup: IRadioGroupOption[];
|
|
4
|
-
classes?: Omit<TRadioClasses, 'root' | 'message' | 'field' | 'groupName'>;
|
|
5
|
-
error?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const RadioGroupCustom: ({ radioItemsGroup, classes, error }: IRadioGroupCustomProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { RadioGroupCustom } from './RadioGroupCustom';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const fieldContainerConfig: (props?: ({
|
|
4
|
-
size?: "sm" | "md" | "lg" | "full" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
export type TFieldContainerConfig = VariantProps<typeof fieldContainerConfig>;
|
|
7
|
-
interface IFieldContainerProps extends TFieldContainerConfig {
|
|
8
|
-
className?: string;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare const FieldContainer: ({ size, className, children }: IFieldContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type TFieldWrapperClasses = {
|
|
3
|
-
fieldWrapperRoot?: string;
|
|
4
|
-
fieldLabel?: string;
|
|
5
|
-
};
|
|
6
|
-
export interface IFieldWrapperProps<V> {
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
label: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
fieldId: string;
|
|
11
|
-
value: V;
|
|
12
|
-
error?: boolean;
|
|
13
|
-
classes?: TFieldWrapperClasses;
|
|
14
|
-
}
|
|
15
|
-
export declare const FieldWrapper: <V>({ children, error, disabled, classes, label, value, fieldId }: IFieldWrapperProps<V>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FieldWrapper';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IFieldWrapperProps, TFieldWrapperClasses } from '../FieldWrapper';
|
|
2
|
-
interface IFieldLabelProps<V> extends Omit<IFieldWrapperProps<V>, 'error' | 'children' | 'classes'> {
|
|
3
|
-
classes?: Pick<TFieldWrapperClasses, 'fieldLabel'>;
|
|
4
|
-
}
|
|
5
|
-
export declare const FieldLabel: <V>({ disabled, fieldId, label, value, classes }: IFieldLabelProps<V>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FieldLabel } from './FieldLabel';
|
|
File without changes
|
|
File without changes
|
/package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/SetColor.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/ui/index.d.ts
RENAMED
|
File without changes
|