@scbt-ecom/ui 0.22.4 → 0.22.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/CustomLink-BHI03NwX.js.map +1 -1
- package/dist/shared/ui/formElements/comboboxControl/ComboboxControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/combobox/ComboboxControl.d.ts +26 -0
- package/dist/shared/ui/formElements/controlled/combobox/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/combobox/model/selectClassnames.d.ts +21 -0
- package/dist/shared/ui/formElements/controlled/combobox/model/types.d.ts +37 -0
- package/dist/shared/ui/formElements/controlled/combobox/ui/ComboboxOption.d.ts +8 -0
- package/dist/shared/ui/formElements/controlled/combobox/ui/DropdownIndicator.d.ts +7 -0
- package/dist/shared/ui/formElements/controlled/combobox/ui/MultiValueRemove.d.ts +7 -0
- package/dist/shared/ui/formElements/controlled/combobox/ui/index.d.ts +3 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +1 -0
- package/dist/shared/ui/phoneView/PhoneView.d.ts +3 -3
- package/dist/ui.js +5287 -5137
- package/dist/ui.js.map +1 -1
- package/dist/widget.js +22 -23
- package/dist/widget.js.map +1 -1
- package/dist/widgets/pageHeader/PageHeader.d.ts +2 -2
- package/dist/widgets/pageHeader/types.d.ts +4 -4
- package/dist/widgets/stepper/Stepper.d.ts +3 -1
- package/package.json +1 -1
|
@@ -24,6 +24,6 @@ export interface IComboboxControlProps<T extends FieldValues, ValueType> extends
|
|
|
24
24
|
customChange?: (...args: unknown[]) => void;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* @deprecated For better performance use `Controlled.
|
|
27
|
+
* @deprecated For better performance use `Controlled.ComboboxControl` instead.
|
|
28
28
|
*/
|
|
29
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;
|
|
@@ -0,0 +1,26 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ComboboxControl';
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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 {};
|
|
@@ -81,4 +81,5 @@ export declare const Controlled: {
|
|
|
81
81
|
};
|
|
82
82
|
helperText?: string;
|
|
83
83
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
ComboboxControl: <T extends import('react-hook-form').FieldValues, ValueType>({ options, control, defaultValue, isClearable, label, disabled, placeholder, helperText, noOptionsMessage, size, classes, isMulti, isSearchable, customChange, ...props }: import('./combobox').IComboboxControlProps<T, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
84
85
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { HTMLAttributes
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
interface IPhoneViewClasses {
|
|
3
3
|
wrapper?: string;
|
|
4
4
|
link?: string;
|
|
5
5
|
text?: string;
|
|
6
6
|
}
|
|
7
7
|
export interface IPhoneViewProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
phone: string
|
|
9
|
-
text: string
|
|
8
|
+
phone: string;
|
|
9
|
+
text: string;
|
|
10
10
|
classes?: IPhoneViewClasses;
|
|
11
11
|
}
|
|
12
12
|
export declare const PhoneView: ({ phone, text, classes, ...props }: IPhoneViewProps) => import("react/jsx-runtime").JSX.Element;
|