@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
package/dist/widget.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o, B as P, H as C, c as I, R as N, P as Pe, b as pt, I as j, C as U, S as ht, a as ct, L as mt, d as oe, A as Le } from "./CustomLink-
|
|
1
|
+
import { j as o, B as P, H as C, c as I, R as N, P as Pe, b as pt, I as j, C as U, S as ht, a as ct, L as mt, d as oe, A as Le } from "./CustomLink-fcD_1hIU.js";
|
|
2
2
|
import { c as l } from "./cn-DIfn7EPB.js";
|
|
3
3
|
import { s as xt } from "./scrollToElement-B-reg4jF.js";
|
|
4
4
|
import { u as S } from "./useDevice-L83kSsN7.js";
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from './model/types';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
type TCheckboxControlClasses = {
|
|
5
|
-
root?: string;
|
|
6
|
-
wrapper?: string;
|
|
7
|
-
field?: string;
|
|
8
|
-
input?: string;
|
|
9
|
-
indicator?: string;
|
|
10
|
-
icon?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
message?: string;
|
|
13
|
-
};
|
|
14
|
-
export interface ICheckboxControlProps<T extends FieldValues> extends Omit<TCommonFieldProps<T>, 'label'> {
|
|
15
|
-
classes?: TCheckboxControlClasses;
|
|
16
|
-
label: React.ReactElement | string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated For better performance use `Controlled.CheckboxControl` instead.
|
|
21
|
-
*/
|
|
22
|
-
export declare const CheckboxControl: <T extends FieldValues>({ control, label, helperText, disabled, classes, ...props }: ICheckboxControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from './model/types';
|
|
3
|
-
import { IFieldAttachmentProps, TFieldAttachmentClasses, TFieldContainerConfig, TFieldWrapperClasses } from './ui';
|
|
4
|
-
type TInputControlClasses = TFieldAttachmentClasses & TFieldWrapperClasses & {
|
|
5
|
-
root?: string;
|
|
6
|
-
input?: string;
|
|
7
|
-
message?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface IInputControlProps<T extends FieldValues> extends TCommonFieldProps<T>, Omit<IFieldAttachmentProps, 'invalid' | 'isTouched'> {
|
|
10
|
-
size?: TFieldContainerConfig['size'];
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
classes?: TInputControlClasses;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated For better performance use `Controlled.InputControl` instead.
|
|
16
|
-
*/
|
|
17
|
-
export declare const InputControl: <T extends FieldValues>({ label, helperText, control, disabled, size, classes, badge, withValidateIcons, icon, onClickIcon, onKeyDownIcon, ...props }: IInputControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from '../model/types';
|
|
3
|
-
import { TInputOTPClasses, TInputOTPSlotClasses } from './ui';
|
|
4
|
-
export type TInputOtpControlClasses = TInputOTPClasses & TInputOTPSlotClasses & {
|
|
5
|
-
root?: string;
|
|
6
|
-
wrapper?: string;
|
|
7
|
-
message?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface IInputOtpControlProps<T extends FieldValues> extends TCommonFieldProps<T> {
|
|
10
|
-
inputLength?: number;
|
|
11
|
-
classes?: TInputOtpControlClasses;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
initialFocus?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const InputOtpControl: <T extends FieldValues>({ control, inputLength, classes, disabled, helperText, initialFocus, ...props }: IInputOtpControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputOtpControl';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { OTPInput } from 'input-otp';
|
|
3
|
-
export type TInputOTPClasses = {
|
|
4
|
-
inputContainer?: string;
|
|
5
|
-
input?: string;
|
|
6
|
-
};
|
|
7
|
-
type TInputOTPProps = ComponentPropsWithoutRef<typeof OTPInput> & {
|
|
8
|
-
classes?: TInputOTPClasses;
|
|
9
|
-
};
|
|
10
|
-
export declare const InputOTP: import('react').ForwardRefExoticComponent<TInputOTPProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export type TInputOTPSlotClasses = {
|
|
3
|
-
singleChar?: string;
|
|
4
|
-
caretWrapper?: string;
|
|
5
|
-
caret?: string;
|
|
6
|
-
substrate?: string;
|
|
7
|
-
};
|
|
8
|
-
interface InputOTPSlotProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
|
-
index: number;
|
|
10
|
-
classes?: TInputOTPSlotClasses;
|
|
11
|
-
}
|
|
12
|
-
export declare const InputOTPSlot: import('react').ForwardRefExoticComponent<InputOTPSlotProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from './model/types';
|
|
3
|
-
type TSwitchControlClasses = {
|
|
4
|
-
root?: string;
|
|
5
|
-
input?: string;
|
|
6
|
-
thumb?: string;
|
|
7
|
-
textBlock?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
message?: string;
|
|
10
|
-
};
|
|
11
|
-
export interface ISwitchControlProps<T extends FieldValues> extends TCommonFieldProps<T> {
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
classes?: TSwitchControlClasses;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated For better performance use `Controlled.SwitchControl` instead.
|
|
17
|
-
*/
|
|
18
|
-
export declare const SwitchControl: <T extends FieldValues>({ disabled, classes, control, helperText, label, ...props }: ISwitchControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from './model/types';
|
|
3
|
-
import { IFieldAttachmentProps, TFieldAttachmentClasses, TFieldContainerConfig, TFieldWrapperClasses } from './ui';
|
|
4
|
-
type TTextareaControlClasses = TFieldAttachmentClasses & TFieldWrapperClasses & {
|
|
5
|
-
root?: string;
|
|
6
|
-
field?: string;
|
|
7
|
-
head?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
scrollArea?: string;
|
|
10
|
-
input?: string;
|
|
11
|
-
message?: string;
|
|
12
|
-
};
|
|
13
|
-
export interface ITextareaControlProps<T extends FieldValues> extends TCommonFieldProps<T>, Omit<IFieldAttachmentProps, 'invalid' | 'isTouched'> {
|
|
14
|
-
classes?: TTextareaControlClasses;
|
|
15
|
-
size?: TFieldContainerConfig['size'];
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const TextareaControl: <T extends FieldValues>({ label, helperText, control, disabled, size, classes, badge, withValidateIcons, icon, onClickIcon, onKeyDownIcon, placeholder, ...props }: ITextareaControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from '../model/types';
|
|
3
|
-
import { TFieldContainerConfig } from '../ui';
|
|
4
|
-
import { TComboboxControlClasses } from './model/types';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
export interface SelectOption<ValueType> {
|
|
7
|
-
value: ValueType;
|
|
8
|
-
label: string | React.ReactElement;
|
|
9
|
-
}
|
|
10
|
-
export interface IComboboxControlProps<T extends FieldValues, ValueType> extends TCommonFieldProps<T> {
|
|
11
|
-
options: SelectOption<ValueType>[];
|
|
12
|
-
size?: TFieldContainerConfig['size'];
|
|
13
|
-
marker?: boolean;
|
|
14
|
-
isClearable?: boolean;
|
|
15
|
-
defaultValue?: ValueType;
|
|
16
|
-
noOptionsMessage?: string | React.ReactElement;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
isMulti?: boolean;
|
|
19
|
-
placeholder?: string | React.ReactElement;
|
|
20
|
-
isSearchable?: boolean;
|
|
21
|
-
classes?: TComboboxControlClasses;
|
|
22
|
-
onClickIcon?: (...args: unknown[]) => unknown;
|
|
23
|
-
onKeyDownIcon?: (event: React.KeyboardEvent) => unknown;
|
|
24
|
-
customChange?: (...args: unknown[]) => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated For better performance use `Controlled.ComboboxControl` instead.
|
|
28
|
-
*/
|
|
29
|
-
export declare const ComboboxControl: <T extends FieldValues, ValueType>({ options, control, defaultValue, isClearable, label, disabled, placeholder, helperText, noOptionsMessage, size, classes, isMulti, isSearchable, customChange, ...props }: IComboboxControlProps<T, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ComboboxControl';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MenuProps, OptionProps } from 'react-select';
|
|
2
|
-
import { TComboboxControlClassesCommon } from './types';
|
|
3
|
-
export declare const selectClassNames: (isMulti: boolean, disabled?: boolean, classes?: Partial<TComboboxControlClassesCommon>) => {
|
|
4
|
-
dropdownIndicator: () => string;
|
|
5
|
-
indicatorsContainer: () => string;
|
|
6
|
-
input: () => string;
|
|
7
|
-
valueContainer: () => string;
|
|
8
|
-
control: () => string;
|
|
9
|
-
container: () => string;
|
|
10
|
-
menuList: () => string;
|
|
11
|
-
menu: (state: MenuProps) => string;
|
|
12
|
-
group: () => string;
|
|
13
|
-
option: (state: OptionProps) => string;
|
|
14
|
-
noOptionsMessage: () => string;
|
|
15
|
-
singleValue: () => string;
|
|
16
|
-
multiValue: () => string;
|
|
17
|
-
multiValueLabel: () => string;
|
|
18
|
-
multiValueRemove: () => string;
|
|
19
|
-
placeholder: () => string;
|
|
20
|
-
indicatorSeparator: () => string;
|
|
21
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export type TComboboxControlClasses = TComboboxControlClassesCommon & TComboboxChildClasses & {};
|
|
2
|
-
export type TComboboxControlClassesCommon = {
|
|
3
|
-
messageCombobox?: string;
|
|
4
|
-
selectWrapper?: string;
|
|
5
|
-
dropdownIndicator?: string;
|
|
6
|
-
indicatorsContainer?: string;
|
|
7
|
-
inputCombobox?: string;
|
|
8
|
-
valueContainer?: string;
|
|
9
|
-
controlCombobox?: string;
|
|
10
|
-
containerCombobox?: string;
|
|
11
|
-
menuList?: string;
|
|
12
|
-
menuCombobox?: string;
|
|
13
|
-
groupCombobox?: string;
|
|
14
|
-
menuPortal?: string;
|
|
15
|
-
optionCombobox?: string;
|
|
16
|
-
noOptionsMessage?: string;
|
|
17
|
-
singleValue?: string;
|
|
18
|
-
multiValue?: string;
|
|
19
|
-
multiValueLabel?: string;
|
|
20
|
-
multiValueRemove?: string;
|
|
21
|
-
placeholderCombobox?: string;
|
|
22
|
-
indicatorSeparator?: string;
|
|
23
|
-
fieldLabel?: string;
|
|
24
|
-
message?: string;
|
|
25
|
-
};
|
|
26
|
-
export type TComboboxChildClasses = TMultiValueRemoveClasses | TComboboxOptionClasses | TDropdownIndicatorClasses;
|
|
27
|
-
export type TMultiValueRemoveClasses = {
|
|
28
|
-
multiRemoveIcon?: string;
|
|
29
|
-
};
|
|
30
|
-
export type TComboboxOptionClasses = {
|
|
31
|
-
optionCustom?: string;
|
|
32
|
-
checkboxIsMulti?: string;
|
|
33
|
-
checkboxIsMultiIcon?: string;
|
|
34
|
-
};
|
|
35
|
-
export type TDropdownIndicatorClasses = {
|
|
36
|
-
indicatorIcon?: string;
|
|
37
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { OptionProps } from 'react-select';
|
|
2
|
-
import { TComboboxOptionClasses } from '../model/types';
|
|
3
|
-
interface IComboboxOptionProps<Option> extends OptionProps<Option> {
|
|
4
|
-
classes?: TComboboxOptionClasses;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ComboboxOption: <Option>({ isSelected, classes, ...props }: IComboboxOptionProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DropdownIndicatorProps } from 'react-select';
|
|
2
|
-
import { TDropdownIndicatorClasses } from '../model/types';
|
|
3
|
-
interface IDropdownIndicatorProps<Option> extends DropdownIndicatorProps<Option> {
|
|
4
|
-
classes?: TDropdownIndicatorClasses;
|
|
5
|
-
}
|
|
6
|
-
export declare const DropdownIndicator: <Option>({ classes, ...props }: IDropdownIndicatorProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MultiValueRemoveProps } from 'react-select';
|
|
2
|
-
import { TMultiValueRemoveClasses } from '../model/types';
|
|
3
|
-
interface IMultiValueRemoveProps extends MultiValueRemoveProps {
|
|
4
|
-
classes?: TMultiValueRemoveClasses;
|
|
5
|
-
}
|
|
6
|
-
export declare const MultiValueRemove: ({ classes, ...props }: IMultiValueRemoveProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from '../../model/types';
|
|
3
|
-
import { TFieldContainerConfig } from '../../ui';
|
|
4
|
-
import { TComboboxControlClasses } from './model/types';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
export interface SelectOption<ValueType> {
|
|
7
|
-
value: ValueType;
|
|
8
|
-
label: string | React.ReactElement;
|
|
9
|
-
}
|
|
10
|
-
export interface IComboboxControlProps<T extends FieldValues, ValueType> extends TCommonFieldProps<T> {
|
|
11
|
-
options: SelectOption<ValueType>[];
|
|
12
|
-
size?: TFieldContainerConfig['size'];
|
|
13
|
-
marker?: boolean;
|
|
14
|
-
isClearable?: boolean;
|
|
15
|
-
defaultValue?: ValueType;
|
|
16
|
-
noOptionsMessage?: string | React.ReactElement;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
isMulti?: boolean;
|
|
19
|
-
placeholder?: string | React.ReactElement;
|
|
20
|
-
isSearchable?: boolean;
|
|
21
|
-
classes?: TComboboxControlClasses;
|
|
22
|
-
onClickIcon?: (...args: unknown[]) => unknown;
|
|
23
|
-
onKeyDownIcon?: (event: React.KeyboardEvent) => unknown;
|
|
24
|
-
customChange?: (...args: unknown[]) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const ComboboxControl: <T extends FieldValues, ValueType>({ options, control, defaultValue, isClearable, label, disabled, placeholder, helperText, noOptionsMessage, size, classes, isMulti, isSearchable, customChange, ...props }: IComboboxControlProps<T, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ComboboxControl';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MenuProps, OptionProps } from 'react-select';
|
|
2
|
-
import { TComboboxControlClassesCommon } from './types';
|
|
3
|
-
export declare const selectClassNames: (isMulti: boolean, disabled?: boolean, classes?: Partial<TComboboxControlClassesCommon>) => {
|
|
4
|
-
dropdownIndicator: () => string;
|
|
5
|
-
indicatorsContainer: () => string;
|
|
6
|
-
input: () => string;
|
|
7
|
-
valueContainer: () => string;
|
|
8
|
-
control: () => string;
|
|
9
|
-
container: () => string;
|
|
10
|
-
menuList: () => string;
|
|
11
|
-
menu: (state: MenuProps) => string;
|
|
12
|
-
group: () => string;
|
|
13
|
-
option: (state: OptionProps) => string;
|
|
14
|
-
noOptionsMessage: () => string;
|
|
15
|
-
singleValue: () => string;
|
|
16
|
-
multiValue: () => string;
|
|
17
|
-
multiValueLabel: () => string;
|
|
18
|
-
multiValueRemove: () => string;
|
|
19
|
-
placeholder: () => string;
|
|
20
|
-
indicatorSeparator: () => string;
|
|
21
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export type TComboboxControlClasses = TComboboxControlClassesCommon & TComboboxChildClasses & {};
|
|
2
|
-
export type TComboboxControlClassesCommon = {
|
|
3
|
-
messageCombobox?: string;
|
|
4
|
-
selectWrapper?: string;
|
|
5
|
-
dropdownIndicator?: string;
|
|
6
|
-
indicatorsContainer?: string;
|
|
7
|
-
inputCombobox?: string;
|
|
8
|
-
valueContainer?: string;
|
|
9
|
-
controlCombobox?: string;
|
|
10
|
-
containerCombobox?: string;
|
|
11
|
-
menuList?: string;
|
|
12
|
-
menuCombobox?: string;
|
|
13
|
-
groupCombobox?: string;
|
|
14
|
-
menuPortal?: string;
|
|
15
|
-
optionCombobox?: string;
|
|
16
|
-
noOptionsMessage?: string;
|
|
17
|
-
singleValue?: string;
|
|
18
|
-
multiValue?: string;
|
|
19
|
-
multiValueLabel?: string;
|
|
20
|
-
multiValueRemove?: string;
|
|
21
|
-
placeholderCombobox?: string;
|
|
22
|
-
indicatorSeparator?: string;
|
|
23
|
-
fieldLabel?: string;
|
|
24
|
-
message?: string;
|
|
25
|
-
};
|
|
26
|
-
export type TComboboxChildClasses = TMultiValueRemoveClasses | TComboboxOptionClasses | TDropdownIndicatorClasses;
|
|
27
|
-
export type TMultiValueRemoveClasses = {
|
|
28
|
-
multiRemoveIcon?: string;
|
|
29
|
-
};
|
|
30
|
-
export type TComboboxOptionClasses = {
|
|
31
|
-
optionCustom?: string;
|
|
32
|
-
checkboxIsMulti?: string;
|
|
33
|
-
checkboxIsMultiIcon?: string;
|
|
34
|
-
};
|
|
35
|
-
export type TDropdownIndicatorClasses = {
|
|
36
|
-
indicatorIcon?: string;
|
|
37
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { OptionProps } from 'react-select';
|
|
2
|
-
import { TComboboxOptionClasses } from '../model/types';
|
|
3
|
-
interface IComboboxOptionProps<Option> extends OptionProps<Option> {
|
|
4
|
-
classes?: TComboboxOptionClasses;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ComboboxOption: <Option>({ isSelected, classes, ...props }: IComboboxOptionProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DropdownIndicatorProps } from 'react-select';
|
|
2
|
-
import { TDropdownIndicatorClasses } from '../model/types';
|
|
3
|
-
interface IDropdownIndicatorProps<Option> extends DropdownIndicatorProps<Option> {
|
|
4
|
-
classes?: TDropdownIndicatorClasses;
|
|
5
|
-
}
|
|
6
|
-
export declare const DropdownIndicator: <Option>({ classes, ...props }: IDropdownIndicatorProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MultiValueRemoveProps } from 'react-select';
|
|
2
|
-
import { TMultiValueRemoveClasses } from '../model/types';
|
|
3
|
-
interface IMultiValueRemoveProps extends MultiValueRemoveProps {
|
|
4
|
-
classes?: TMultiValueRemoveClasses;
|
|
5
|
-
}
|
|
6
|
-
export declare const MultiValueRemove: ({ classes, ...props }: IMultiValueRemoveProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataAddress` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataAddress: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataAuto` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataAuto: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataCountry` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataCountry: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataFio` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataFio: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataOrganization` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataOrganization: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/AutocompleteDadata.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from '../../model/types';
|
|
3
|
-
import { IFieldAttachmentProps, TFieldAttachmentClasses, TFieldContainerConfig, TFieldWrapperClasses } from '../../ui';
|
|
4
|
-
import { TDadataType } from './model/types';
|
|
5
|
-
export type TAutocompleteDadataClasses = TFieldAttachmentClasses & TFieldWrapperClasses & {
|
|
6
|
-
root?: string;
|
|
7
|
-
input?: string;
|
|
8
|
-
message?: string;
|
|
9
|
-
options?: string;
|
|
10
|
-
optionsScrollArea?: string;
|
|
11
|
-
option?: string;
|
|
12
|
-
optionValueView?: string;
|
|
13
|
-
optionSuggestionValue?: string;
|
|
14
|
-
optionAdditionalText?: string;
|
|
15
|
-
optionEmptySuggestionValue?: string;
|
|
16
|
-
};
|
|
17
|
-
export interface IAutocompleteDadataProps<T extends FieldValues> extends TCommonFieldProps<T>, Omit<IFieldAttachmentProps, 'invalid' | 'isTouched'> {
|
|
18
|
-
classes?: TAutocompleteDadataClasses;
|
|
19
|
-
dadataType: TDadataType;
|
|
20
|
-
dadataBaseUrl: string;
|
|
21
|
-
size?: TFieldContainerConfig['size'];
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
customChangeInput?: (...args: unknown[]) => void;
|
|
24
|
-
customChangeOption?: (...args: unknown[]) => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated For better performance use `Controlled.AutocompleteControl` instead.
|
|
28
|
-
*/
|
|
29
|
-
export declare const AutocompleteDadata: <T extends FieldValues>({ dadataType, dadataBaseUrl, label, helperText, control, disabled, size, classes, badge, withValidateIcons, icon, onClickIcon, onKeyDownIcon, customChangeInput, customChangeOption, ...props }: IAutocompleteDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './AutocompleteDadata';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { TDadataType } from './types';
|
|
2
|
-
export declare const fetchSuggestions: <T>(searchText: string, dadataType: TDadataType, dadataBaseUrl: string, signal: AbortSignal) => Promise<import('./types').IDadataCountryOption[] | import('./types').IDadataAutoOption[] | import('./types').IDadataCacheOption<T>[]>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IDadataAutoOption, IDadataCacheOption, IDadataCountryOption, TDadataReturn, TDadataSuggestionType, TDadataType } from './types';
|
|
2
|
-
export type IDadataOptions<T> = IDadataCountryOption[] | IDadataAutoOption[] | IDadataCacheOption<T>[];
|
|
3
|
-
export declare const getDataByDadataType: <T>(dadataType: TDadataType, data: TDadataReturn<T>) => IDadataCountryOption[] | IDadataAutoOption[] | IDadataCacheOption<T>[];
|
|
4
|
-
export declare const getOptionsByDadataType: <T>(dadataType: TDadataType, suggestions: TDadataSuggestionType<T>) => {
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
}[];
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export type TDadataType = 'address' | 'fio' | 'country' | 'auto' | 'party';
|
|
2
|
-
export type TDadataOption = {
|
|
3
|
-
value: string;
|
|
4
|
-
additionalText?: string;
|
|
5
|
-
isDisabled?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export interface IDadataCountryOption {
|
|
8
|
-
id: number;
|
|
9
|
-
country_name: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IDadataConstantsCountrySuggestion {
|
|
12
|
-
matches: IDadataCountryOption[];
|
|
13
|
-
}
|
|
14
|
-
export interface IDadataAutoOption {
|
|
15
|
-
id: number;
|
|
16
|
-
mark: string;
|
|
17
|
-
model: string;
|
|
18
|
-
model_mark: string;
|
|
19
|
-
year_max: string;
|
|
20
|
-
year_min: string;
|
|
21
|
-
}
|
|
22
|
-
export interface IDadataConstantsAutoSuggestion {
|
|
23
|
-
matches: IDadataAutoOption[];
|
|
24
|
-
}
|
|
25
|
-
export interface IDadataCacheOption<T> {
|
|
26
|
-
value: string;
|
|
27
|
-
unrestricted_value: string;
|
|
28
|
-
data: T;
|
|
29
|
-
}
|
|
30
|
-
export interface IDadataCacheSuggestion<T> {
|
|
31
|
-
suggestions: IDadataCacheOption<T>[];
|
|
32
|
-
}
|
|
33
|
-
export interface IDadataOrganizationOption {
|
|
34
|
-
value: string;
|
|
35
|
-
unrestricted_value: string;
|
|
36
|
-
data: {
|
|
37
|
-
inn: 'string';
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export type TDadataReturn<T> = IDadataConstantsCountrySuggestion | IDadataCacheSuggestion<T> | IDadataConstantsAutoSuggestion;
|
|
41
|
-
export type TDadataSuggestionType<T> = IDadataCountryOption[] | IDadataCacheOption<T>[] | IDadataAutoOption[];
|