@scbt-ecom/ui 0.0.50 → 0.0.51
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/{api-CmmTpYha.js → Notification-BVwMDH16.js} +1992 -1552
- package/dist/Notification-BVwMDH16.js.map +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +36334 -20692
- package/dist/client.js.map +1 -1
- package/dist/hybrid.d.ts +1 -0
- package/dist/hybrid.js +464 -453
- package/dist/hybrid.js.map +1 -1
- package/dist/shared/constants/designSystem/others.d.ts +12 -1
- package/dist/shared/ui/ProgressBar.d.ts +3 -3
- package/dist/shared/ui/TabsSwitcher.d.ts +4 -2
- package/dist/shared/ui/formControlElements/calendarControl/CalendarControl.d.ts +4 -2
- package/dist/shared/ui/formControlElements/comboboxControl/ComboboxControl.d.ts +30 -5
- package/dist/shared/ui/formControlElements/{comboboxControlSelect → comboboxControl}/model/selectClassnames.d.ts +2 -2
- package/dist/shared/ui/formControlElements/comboboxControl/model/types.d.ts +35 -0
- package/dist/shared/ui/formControlElements/comboboxControl/ui/ComboboxOption.d.ts +8 -0
- package/dist/shared/ui/formControlElements/comboboxControl/ui/DropdownIndicator.d.ts +7 -0
- package/dist/shared/ui/formControlElements/comboboxControl/ui/MultiValueRemove.d.ts +7 -0
- package/dist/shared/ui/formControlElements/{comboboxControlSelect → comboboxControl}/ui/index.d.ts +1 -1
- package/dist/shared/ui/formControlElements/editorControl/EditorControl.d.ts +7 -0
- package/dist/shared/ui/formControlElements/editorControl/components/conrols.d.ts +6 -0
- package/dist/shared/ui/formControlElements/editorControl/components/menu.d.ts +6 -0
- package/dist/shared/ui/formControlElements/editorControl/index.d.ts +1 -0
- package/dist/shared/ui/formControlElements/editorControl/ui/RemoveBlockButton.d.ts +2 -0
- package/dist/shared/ui/formControlElements/editorControl/ui/ResetBlockType.d.ts +2 -0
- package/dist/shared/ui/formControlElements/index.d.ts +3 -3
- package/dist/shared/ui/formControlElements/inputControlUploader/model/hooks/useUploader.d.ts +1 -1
- package/dist/shared/ui/formControlElements/inputCurrencyControl/InputCurrencyControl.d.ts +13 -0
- package/dist/shared/ui/formControlElements/inputCurrencyControl/index.d.ts +1 -0
- package/dist/shared/ui/formControlElements/inputCurrencyControl/model/helpers.d.ts +3 -0
- package/dist/shared/ui/formControlElements/inputCurrencyControl/model/useInputCurrency.d.ts +10 -0
- package/dist/shared/ui/formControlElements/inputCurrencyControl/ui/MenuTrigger.d.ts +7 -0
- package/dist/shared/ui/formControlElements/inputCurrencyControl/ui/OptionList.d.ts +8 -0
- package/dist/shared/ui/formControlElements/inputCurrencyControl/ui/index.d.ts +2 -0
- package/dist/shared/ui/icon/index.d.ts +1 -1
- package/dist/shared/ui/icon/sprite.gen.d.ts +2 -1
- package/dist/shared/ui/index.d.ts +4 -3
- package/dist/shared/ui/notification/index.d.ts +1 -1
- package/dist/shared/ui/providers/NotificationProvider.d.ts +5 -0
- package/dist/shared/ui/providers/index.d.ts +1 -0
- package/dist/sprites/general.svg +1 -1
- package/dist/sprites/social.svg +1 -0
- package/dist/style.css +1 -1
- package/dist/widgets/footer/Footer.d.ts +27 -0
- package/dist/widgets/footer/index.d.ts +1 -0
- package/dist/widgets/footer/model/defaultValues.d.ts +6 -0
- package/dist/widgets/footer/model/types.d.ts +16 -0
- package/dist/widgets/footer/ui/Copyright.d.ts +10 -0
- package/dist/widgets/footer/ui/Ligal.d.ts +12 -0
- package/dist/widgets/footer/ui/NavLinks.d.ts +14 -0
- package/dist/widgets/footer/ui/PhonesBlock.d.ts +13 -0
- package/dist/widgets/footer/ui/SocialLinks.d.ts +12 -0
- package/dist/widgets/footer/ui/index.d.ts +5 -0
- package/dist/widgets/index.d.ts +2 -0
- package/dist/widgets/stepper/Stepper.d.ts +18 -0
- package/dist/widgets/stepper/index.d.ts +1 -0
- package/dist/widgets/stepper/ui/SingleStep.d.ts +14 -0
- package/package.json +16 -1
- package/dist/api-CmmTpYha.js.map +0 -1
- package/dist/shared/ui/calendar/Calendar.d.ts +0 -20
- package/dist/shared/ui/calendar/index.d.ts +0 -1
- package/dist/shared/ui/calendar/model/animation.d.ts +0 -18
- package/dist/shared/ui/calendar/model/classes.d.ts +0 -24
- package/dist/shared/ui/calendar/model/helpers.d.ts +0 -9
- package/dist/shared/ui/calendar/model/hooks/index.d.ts +0 -2
- package/dist/shared/ui/calendar/model/hooks/useCalendarDropdowns.d.ts +0 -9
- package/dist/shared/ui/calendar/model/hooks/useDatePicker.d.ts +0 -19
- package/dist/shared/ui/calendar/ui/CalendarHeader.d.ts +0 -15
- package/dist/shared/ui/calendar/ui/Dropdown.d.ts +0 -10
- package/dist/shared/ui/calendar/ui/NavigationArrows.d.ts +0 -5
- package/dist/shared/ui/calendar/ui/Weekdays.d.ts +0 -1
- package/dist/shared/ui/calendar/ui/index.d.ts +0 -2
- package/dist/shared/ui/formControlElements/comboboxControl/ui/CustomOption.d.ts +0 -6
- package/dist/shared/ui/formControlElements/comboboxControlSelect/ComboboxControlReactSelect.d.ts +0 -31
- package/dist/shared/ui/formControlElements/comboboxControlSelect/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/comboboxControlSelect/model/types.d.ts +0 -36
- package/dist/shared/ui/formControlElements/comboboxControlSelect/ui/DropdownIndicator.d.ts +0 -2
- package/dist/shared/ui/formControlElements/comboboxControlSelect/ui/MultiValueRemove.d.ts +0 -2
- package/dist/shared/ui/formControlElements/comboboxControlSelect/ui/Option.d.ts +0 -2
- package/dist/shared/ui/formControlElements/selectControl/SelectControl.d.ts +0 -24
- package/dist/shared/ui/formControlElements/selectControl/index.d.ts +0 -2
- package/dist/shared/ui/formControlElements/selectControl/ui/CustomListboxButton.d.ts +0 -14
- package/dist/shared/ui/formControlElements/selectControl/ui/CustomOption.d.ts +0 -18
- package/dist/shared/ui/formControlElements/selectControl/ui/index.d.ts +0 -2
|
@@ -13,4 +13,15 @@ declare const allowedBackgroundDeg: {
|
|
|
13
13
|
110: string;
|
|
14
14
|
180: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
declare const allowedZIndex: {
|
|
17
|
+
0: string;
|
|
18
|
+
1: string;
|
|
19
|
+
10: string;
|
|
20
|
+
30: string;
|
|
21
|
+
50: string;
|
|
22
|
+
100: string;
|
|
23
|
+
250: string;
|
|
24
|
+
500: string;
|
|
25
|
+
1000: string;
|
|
26
|
+
};
|
|
27
|
+
export { allowedBorderRadius, allowedBackgroundDeg, allowedZIndex };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
type IProgressBarClasses = {
|
|
3
3
|
wrapper: string;
|
|
4
4
|
topContent: string;
|
|
@@ -8,8 +8,8 @@ type IProgressBarClasses = {
|
|
|
8
8
|
loader: string;
|
|
9
9
|
};
|
|
10
10
|
export interface IProgressBarProps {
|
|
11
|
-
topContent?: ReactElement;
|
|
12
|
-
bottomContent?: ReactElement;
|
|
11
|
+
topContent?: React.ReactElement;
|
|
12
|
+
bottomContent?: React.ReactElement;
|
|
13
13
|
progress: number;
|
|
14
14
|
maxPercent?: number;
|
|
15
15
|
classes?: Partial<IProgressBarClasses>;
|
|
@@ -9,7 +9,7 @@ interface ITabsClasses {
|
|
|
9
9
|
content: string;
|
|
10
10
|
contentsWrapper: string;
|
|
11
11
|
}
|
|
12
|
-
interface ITabContent {
|
|
12
|
+
export interface ITabContent {
|
|
13
13
|
id: string;
|
|
14
14
|
body: React.ReactElement | string;
|
|
15
15
|
accordion?: {
|
|
@@ -26,8 +26,10 @@ export interface ITabRenderContent {
|
|
|
26
26
|
}
|
|
27
27
|
export interface ITabsSwitcherProps {
|
|
28
28
|
renderContent: ITabRenderContent;
|
|
29
|
+
value: string;
|
|
30
|
+
onChangeTab: (tab: string) => void;
|
|
29
31
|
defaultActiveTabId?: string;
|
|
30
32
|
classes?: Partial<ITabsClasses>;
|
|
31
33
|
}
|
|
32
|
-
export declare const TabsSwitcher: ({ renderContent, defaultActiveTabId, classes }: ITabsSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export declare const TabsSwitcher: ({ renderContent, defaultActiveTabId, value, onChangeTab, classes }: ITabsSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
35
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
1
|
+
import { FieldValues, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
2
|
import { TControlledInputProps } from '../model';
|
|
3
3
|
import { TCalendarClasses } from './model/types';
|
|
4
4
|
export interface ICalendarControlProps<T extends FieldValues> extends TControlledInputProps<T> {
|
|
@@ -9,5 +9,7 @@ export interface ICalendarControlProps<T extends FieldValues> extends TControlle
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
onClickIcon?: (...args: unknown[]) => unknown;
|
|
11
11
|
defaultValue?: string;
|
|
12
|
+
setValue: UseFormSetValue<T>;
|
|
13
|
+
watch: UseFormWatch<T>;
|
|
12
14
|
}
|
|
13
|
-
export declare const CalendarControl: <T extends FieldValues>({ control, classes, label, disabled, maskFormat, allowEmptyFormatting, mask, size, helperText, icon, badge, swapPosition, onClickIcon, defaultValue, ...props }: ICalendarControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const CalendarControl: <T extends FieldValues>({ control, classes, label, disabled, maskFormat, allowEmptyFormatting, mask, size, helperText, icon, badge, swapPosition, onClickIcon, defaultValue, watch, setValue, ...props }: ICalendarControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,31 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
import { GroupBase } from 'react-select';
|
|
3
|
+
import { TComboboxControlClasses } from './model/types';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
type TSelectVariant = 'primary' | 'secondary';
|
|
6
|
+
export interface SelectOption<ValueType> {
|
|
7
|
+
value: ValueType;
|
|
8
|
+
label: string;
|
|
5
9
|
}
|
|
6
|
-
export
|
|
10
|
+
export interface IComboboxControlProps<T extends FieldValues, ValueType> {
|
|
11
|
+
name: Path<T>;
|
|
12
|
+
control: Control<T>;
|
|
13
|
+
options: readonly (ValueType | GroupBase<ValueType>)[];
|
|
14
|
+
label: string;
|
|
15
|
+
size?: 'sm' | 'md' | 'lg' | 'full';
|
|
16
|
+
helperText?: string;
|
|
17
|
+
marker?: boolean;
|
|
18
|
+
variant?: TSelectVariant;
|
|
19
|
+
isClearable?: boolean;
|
|
20
|
+
defaultValue?: ValueType;
|
|
21
|
+
noOptionsMessage?: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
isMulti?: boolean;
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
onClickIcon?: (...args: unknown[]) => unknown;
|
|
26
|
+
onKeyDownIcon?: (event: React.KeyboardEvent) => unknown;
|
|
27
|
+
isSearchable?: boolean;
|
|
28
|
+
classes?: Partial<TComboboxControlClasses>;
|
|
29
|
+
}
|
|
30
|
+
export declare const ComboboxControl: <T extends FieldValues, ValueType>({ options, control, defaultValue, variant, isClearable, label, disabled, placeholder, helperText, noOptionsMessage, size, classes, isMulti, isSearchable, ...props }: IComboboxControlProps<T, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MenuProps, OptionProps } from 'react-select';
|
|
2
|
-
import {
|
|
3
|
-
export declare const selectClassNames: <State>(isMulti: boolean, disabled?: boolean, classes?: Partial<
|
|
2
|
+
import { TComboboxControlClassesCommon } from './types';
|
|
3
|
+
export declare const selectClassNames: <State>(isMulti: boolean, disabled?: boolean, classes?: Partial<TComboboxControlClassesCommon>) => {
|
|
4
4
|
dropdownIndicator: () => string;
|
|
5
5
|
indicatorsContainer: () => string;
|
|
6
6
|
input: () => string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TFieldWrapperClasses } from '../../model';
|
|
2
|
+
export type TComboboxControlClasses = Partial<TComboboxControlClassesCommon> & Partial<TFieldWrapperClasses> & Partial<TComboboxChildClasses> & {};
|
|
3
|
+
export type TComboboxControlClassesCommon = {
|
|
4
|
+
message: string;
|
|
5
|
+
selectWrapper: string;
|
|
6
|
+
dropdownIndicator: string;
|
|
7
|
+
indicatorsContainer: string;
|
|
8
|
+
input: string;
|
|
9
|
+
valueContainer: string;
|
|
10
|
+
control: string;
|
|
11
|
+
container: string;
|
|
12
|
+
menuList: string;
|
|
13
|
+
menu: string;
|
|
14
|
+
group: string;
|
|
15
|
+
menuPortal: string;
|
|
16
|
+
option: string;
|
|
17
|
+
noOptionsMessage: string;
|
|
18
|
+
singleValue: string;
|
|
19
|
+
multiValue: string;
|
|
20
|
+
multiValueLabel: string;
|
|
21
|
+
multiValueRemove: string;
|
|
22
|
+
placeholder: string;
|
|
23
|
+
};
|
|
24
|
+
export type TComboboxChildClasses = TMultiValueRemoveClasses | TComboboxOptionClasses | TDropdownIndicatorClasses;
|
|
25
|
+
export type TMultiValueRemoveClasses = {
|
|
26
|
+
multiRemoveIcon: string;
|
|
27
|
+
};
|
|
28
|
+
export type TComboboxOptionClasses = {
|
|
29
|
+
optionCustom: string;
|
|
30
|
+
checkboxIsMulti: string;
|
|
31
|
+
checkboxIsMultiIcon: string;
|
|
32
|
+
};
|
|
33
|
+
export type TDropdownIndicatorClasses = {
|
|
34
|
+
indicatorIcon: string;
|
|
35
|
+
};
|
|
@@ -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?: Partial<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?: Partial<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?: Partial<TMultiValueRemoveClasses>;
|
|
5
|
+
}
|
|
6
|
+
export declare const MultiValueRemove: ({ classes, ...props }: IMultiValueRemoveProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface IEditorControlProps {
|
|
2
|
+
value: string;
|
|
3
|
+
setValue: (value: string) => void;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const EditorControl: ({ value, setValue, placeholder, className }: IEditorControlProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { EditorControl, type IEditorControlProps } from './EditorControl';
|
|
@@ -5,10 +5,10 @@ export { DadataInputControl, type IDadataInputControlProps } from './dadata';
|
|
|
5
5
|
export { CheckboxControl, type ICheckboxControlProps } from './CheckboxControl';
|
|
6
6
|
export { RadioControl, type IRadioControlProps, type IRadioGroupOption } from './RadioControl';
|
|
7
7
|
export { SwitchControl, type ISwitchControlProps } from './SwitchControl';
|
|
8
|
-
export { SelectControl, type ISelectControlProps, type ISelectOption } from './selectControl';
|
|
9
8
|
export { InputSliderControl, type InputSliderControlProps } from './inputSliderControl';
|
|
10
9
|
export { TextareaControl, type ITextareaControlProps } from './TextareaControl';
|
|
11
10
|
export { CalendarControl, type ICalendarControlProps } from './calendarControl';
|
|
12
|
-
export { ComboboxControl, type IComboboxControlProps } from './comboboxControl';
|
|
13
11
|
export { InputControlUploader, type IInputControlUploaderProps } from './inputControlUploader';
|
|
14
|
-
export {
|
|
12
|
+
export { ComboboxControl, type IComboboxControlProps } from './comboboxControl';
|
|
13
|
+
export { EditorControl, type IEditorControlProps } from './editorControl';
|
|
14
|
+
export { InputCurrencyControl, type InputCurrencyControlProps } from './inputCurrencyControl';
|
package/dist/shared/ui/formControlElements/inputControlUploader/model/hooks/useUploader.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export type TUseUploader = {
|
|
|
5
5
|
onValueChange: (f: File[]) => void;
|
|
6
6
|
};
|
|
7
7
|
export declare const useUploader: ({ dropzoneOptions, controlledFiles, onValueChange }: TUseUploader) => {
|
|
8
|
-
filesStatus: Record<string, "
|
|
8
|
+
filesStatus: Record<string, "success" | "error" | "loading">;
|
|
9
9
|
removeFile: (index: number) => void;
|
|
10
10
|
dropzoneState: import('react-dropzone').DropzoneState;
|
|
11
11
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
|
+
import { TControlledInputProps, TInputCommonProps } from '../model';
|
|
3
|
+
export type TCurrencyVariant = 'euro' | 'dollars' | 'rubles' | 'yuan' | 'dirhams';
|
|
4
|
+
export interface ICurrencyOption {
|
|
5
|
+
ruName: string;
|
|
6
|
+
engName: string;
|
|
7
|
+
currency: TCurrencyVariant;
|
|
8
|
+
}
|
|
9
|
+
export interface InputCurrencyControlProps<T extends FieldValues> extends TControlledInputProps<T>, TInputCommonProps {
|
|
10
|
+
classes?: any;
|
|
11
|
+
defaultCurrency?: TCurrencyVariant;
|
|
12
|
+
}
|
|
13
|
+
export declare const InputCurrencyControl: <T extends FieldValues>({ label, size, helperText, control, classes, disabled, defaultCurrency, ...props }: InputCurrencyControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputCurrencyControl, type InputCurrencyControlProps } from './InputCurrencyControl';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICurrencyOption, TCurrencyVariant } from '../InputCurrencyControl';
|
|
2
|
+
type TUseInputCurrencyReturn = {
|
|
3
|
+
menuIsOpen: boolean;
|
|
4
|
+
currentCurrencyOption: ICurrencyOption;
|
|
5
|
+
onSelectOption: (option: ICurrencyOption) => void;
|
|
6
|
+
onToggleMenu: () => void;
|
|
7
|
+
onCloseMenu: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const useInputCurrency: (defaultCurrency?: TCurrencyVariant) => TUseInputCurrencyReturn;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ICurrencyOption } from '../InputCurrencyControl';
|
|
2
|
+
interface IMenuTriggerProps {
|
|
3
|
+
onToggleMenu: () => void;
|
|
4
|
+
currentCurrencyOption: ICurrencyOption;
|
|
5
|
+
}
|
|
6
|
+
export declare const MenuTrigger: ({ onToggleMenu, currentCurrencyOption }: IMenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ICurrencyOption } from '../InputCurrencyControl';
|
|
2
|
+
interface IOptionListProps {
|
|
3
|
+
optionsList: ICurrencyOption[];
|
|
4
|
+
menuIsOpen: boolean;
|
|
5
|
+
onSelectOption: (option: ICurrencyOption) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const OptionList: ({ optionsList, menuIsOpen, onSelectOption }: IOptionListProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Icon, type IconProps, type TAllowedIcons } from './Icon';
|
|
2
|
-
export
|
|
2
|
+
export type { SpritesMap } from './sprite.gen';
|
|
@@ -2,8 +2,9 @@ export interface SpritesMap {
|
|
|
2
2
|
arrows: 'arrowCircle' | 'arrowLink' | 'arrowRight';
|
|
3
3
|
brandLogos: 'logoBlack' | 'logoBusiness' | 'logoGray' | 'logoInsurance' | 'logoMain' | 'logoWhite';
|
|
4
4
|
files: 'border' | 'borderError' | 'documentFilled' | 'documentOutline' | 'upload';
|
|
5
|
-
general: 'calendar' | 'check' | 'close' | 'edit' | 'hiddenEye' | 'showEye';
|
|
5
|
+
general: 'calendar' | 'check' | 'close' | 'edit' | 'hiddenEye' | 'plus' | 'showEye';
|
|
6
6
|
info: 'warningCircle';
|
|
7
|
+
social: 'classmates' | 'telegram' | 'vk';
|
|
7
8
|
}
|
|
8
9
|
export declare const SPRITES_META: {
|
|
9
10
|
[Key in keyof SpritesMap]: {
|
|
@@ -13,11 +13,12 @@ export { Popover } from './popover';
|
|
|
13
13
|
export { ProgressBar, type IProgressBarProps } from './ProgressBar';
|
|
14
14
|
export { TabsSwitcher, type ITabsSwitcherProps, type ITabRenderContent } from './TabsSwitcher';
|
|
15
15
|
export { Modal } from './modal';
|
|
16
|
-
export { Notification } from './notification';
|
|
16
|
+
export { type INotificationProps, Notification } from './notification';
|
|
17
|
+
export { NotificationProvider, type INotificationProviderProps } from './providers';
|
|
17
18
|
export { Heading, type IHeadingProps } from './Heading';
|
|
18
|
-
export { Icon, type IconProps, type TAllowedIcons } from './icon';
|
|
19
|
+
export { Icon, type IconProps, type TAllowedIcons, type SpritesMap } from './icon';
|
|
19
20
|
export { brandLogos, type TBrandLogoVariant } from './brandLogos';
|
|
20
21
|
export { Breadcrumbs, type IBreadcrumbsProps } from './Breadcrumbs';
|
|
21
22
|
export { CustomLink, type ICustomLinkProps } from './CustomLink';
|
|
22
23
|
export { Document, type IDocumentProps } from './Document';
|
|
23
|
-
export { InputControl, type InputControlProps, InputControlMask, type InputControlMaskProps, InputSliderControl, type InputSliderControlProps, FormControl, DadataInputControl, type IDadataInputControlProps, CheckboxControl, type ICheckboxControlProps, RadioControl, type IRadioControlProps, type IRadioGroupOption, SwitchControl, type ISwitchControlProps,
|
|
24
|
+
export { InputControl, type InputControlProps, InputControlMask, type InputControlMaskProps, InputSliderControl, type InputSliderControlProps, FormControl, DadataInputControl, type IDadataInputControlProps, CheckboxControl, type ICheckboxControlProps, RadioControl, type IRadioControlProps, type IRadioGroupOption, SwitchControl, type ISwitchControlProps, TextareaControl, type ITextareaControlProps, type IInputControlUploaderProps, InputControlUploader, type ICalendarControlProps, CalendarControl, type IEditorControlProps, EditorControl, InputCurrencyControl, type InputCurrencyControlProps, ComboboxControl, type IComboboxControlProps } from './formControlElements';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Notification } from './Notification';
|
|
1
|
+
export { Notification, type INotificationProps } from './Notification';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationProvider, type INotificationProviderProps } from './NotificationProvider';
|
package/dist/sprites/general.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="0" height="0"><symbol xmlns="http://www.w3.org/2000/svg" id="calendar" fill="none" viewBox="0 0 19 20"><path fill="currentColor" fill-rule="evenodd" d="M4.56 0a1 1 0 0 1 1 1v.543h8.19V1a1 1 0 1 1 2 0v.604c1.714.317 3 1.834 3 3.639V16.3c0 2.032-1.63 3.7-3.667 3.7H4.417C2.38 20 .75 18.332.75 16.3V5.243a3.696 3.696 0 0 1 2.81-3.599V1a1 1 0 0 1 1-1Zm-.02 3.543h-.123c-.91 0-1.667.75-1.667 1.7v.671h14v-.671c0-.95-.758-1.7-1.667-1.7H4.58a1.066 1.066 0 0 1-.04 0Zm12.21 4.371h-14V16.3c0 .95.758 1.7 1.667 1.7h10.666c.91 0 1.667-.75 1.667-1.7V7.914Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="check" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="m4.892 13.269 4.274 4.274L18.709 8"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="close" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12 5.293 6.707a1 1 0 0 1 0-1.414Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="edit" fill="none" viewBox="0 0 19 19"><path fill="currentColor" d="M13.293.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-13 13A1 1 0 0 1 5 19H1a1 1 0 0 1-1-1v-4a1 1 0 0 1 .293-.707l13-13ZM14 2.414l-12 12V17h2.586l12-12L14 2.414Z"/><path fill="currentColor" fill-rule="evenodd" d="M9 18a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="hiddenEye" fill="none" viewBox="0 0 20 18"><path fill="currentColor" d="M2.707.293a1 1 0 0 0-1.414 1.414l2.424 2.424C2.287 5.207 1.04 6.685.106 8.553a1 1 0 0 0 0 .894C2.264 13.764 6.096 16 10 16c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16Zm10.307 13.135c-.98.383-2 .572-3.014.572-2.969 0-6.002-1.62-7.87-5 .817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72Zm3.538-2.532c.483-.556.926-1.187 1.318-1.896-1.868-3.38-4.9-5-7.87-5-.112 0-.224.002-.336.007L7.879 2.223A10.215 10.215 0 0 1 10 2c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894 13.107 13.107 0 0 1-1.925 2.865l-1.417-1.416Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="showEye" fill="none" viewBox="0 0 20 14"><path fill="currentColor" d="M13 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/><path fill="currentColor" d="M19.894 6.553C17.736 2.236 13.904 0 10 0 6.097 0 2.264 2.236.106 6.553a1 1 0 0 0 0 .894C2.264 11.764 6.096 14 10 14c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894ZM10 12c-2.969 0-6.002-1.62-7.87-5C3.998 3.62 7.03 2 10 2c2.969 0 6.002 1.62 7.87 5-1.868 3.38-4.901 5-7.87 5Z"/></symbol></svg>
|
|
1
|
+
<svg width="0" height="0"><symbol xmlns="http://www.w3.org/2000/svg" id="calendar" fill="none" viewBox="0 0 19 20"><path fill="currentColor" fill-rule="evenodd" d="M4.56 0a1 1 0 0 1 1 1v.543h8.19V1a1 1 0 1 1 2 0v.604c1.714.317 3 1.834 3 3.639V16.3c0 2.032-1.63 3.7-3.667 3.7H4.417C2.38 20 .75 18.332.75 16.3V5.243a3.696 3.696 0 0 1 2.81-3.599V1a1 1 0 0 1 1-1Zm-.02 3.543h-.123c-.91 0-1.667.75-1.667 1.7v.671h14v-.671c0-.95-.758-1.7-1.667-1.7H4.58a1.066 1.066 0 0 1-.04 0Zm12.21 4.371h-14V16.3c0 .95.758 1.7 1.667 1.7h10.666c.91 0 1.667-.75 1.667-1.7V7.914Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="check" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="m4.892 13.269 4.274 4.274L18.709 8"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="close" fill="none" viewBox="0 0 24 24"><path fill="currentColor" d="M5.293 5.293a1 1 0 0 1 1.414 0L12 10.586l5.293-5.293a1 1 0 1 1 1.414 1.414L13.414 12l5.293 5.293a1 1 0 0 1-1.414 1.414L12 13.414l-5.293 5.293a1 1 0 0 1-1.414-1.414L10.586 12 5.293 6.707a1 1 0 0 1 0-1.414Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="edit" fill="none" viewBox="0 0 19 19"><path fill="currentColor" d="M13.293.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1 0 1.414l-13 13A1 1 0 0 1 5 19H1a1 1 0 0 1-1-1v-4a1 1 0 0 1 .293-.707l13-13ZM14 2.414l-12 12V17h2.586l12-12L14 2.414Z"/><path fill="currentColor" fill-rule="evenodd" d="M9 18a1 1 0 0 1 1-1h8a1 1 0 1 1 0 2h-8a1 1 0 0 1-1-1Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="hiddenEye" fill="none" viewBox="0 0 20 18"><path fill="currentColor" d="M2.707.293a1 1 0 0 0-1.414 1.414l2.424 2.424C2.287 5.207 1.04 6.685.106 8.553a1 1 0 0 0 0 .894C2.264 13.764 6.096 16 10 16c1.555 0 3.1-.355 4.53-1.055l2.763 2.762a1 1 0 0 0 1.414-1.414l-16-16Zm10.307 13.135c-.98.383-2 .572-3.014.572-2.969 0-6.002-1.62-7.87-5 .817-1.479 1.858-2.62 3.018-3.437l2.144 2.144a3 3 0 0 0 4.001 4.001l1.72 1.72Zm3.538-2.532c.483-.556.926-1.187 1.318-1.896-1.868-3.38-4.9-5-7.87-5-.112 0-.224.002-.336.007L7.879 2.223A10.215 10.215 0 0 1 10 2c3.903 0 7.736 2.236 9.894 6.553a1 1 0 0 1 0 .894 13.107 13.107 0 0 1-1.925 2.865l-1.417-1.416Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="plus" fill="none" viewBox="0 0 16 16"><path fill="currentColor" d="M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 1 1 0-2h6V1a1 1 0 0 1 1-1Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="showEye" fill="none" viewBox="0 0 20 14"><path fill="currentColor" d="M13 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/><path fill="currentColor" d="M19.894 6.553C17.736 2.236 13.904 0 10 0 6.097 0 2.264 2.236.106 6.553a1 1 0 0 0 0 .894C2.264 11.764 6.096 14 10 14c3.903 0 7.736-2.236 9.894-6.553a1 1 0 0 0 0-.894ZM10 12c-2.969 0-6.002-1.62-7.87-5C3.998 3.62 7.03 2 10 2c2.969 0 6.002 1.62 7.87 5-1.868 3.38-4.901 5-7.87 5Z"/></symbol></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="0" height="0"><symbol xmlns="http://www.w3.org/2000/svg" id="classmates" fill="none" viewBox="0 0 9 15"><path fill="currentColor" fill-rule="evenodd" d="M7.982 3.811c0 1.933-1.64 3.503-3.65 3.503S.682 5.744.682 3.811C.682 1.871 2.322.3 4.332.3s3.65 1.57 3.65 3.511Zm-1.858 0c0-.958-.805-1.732-1.792-1.732-.988 0-1.793.774-1.793 1.732 0 .95.806 1.724 1.793 1.724.987 0 1.792-.774 1.792-1.724ZM1.093 9.338C.176 8.77-.227 8.437.128 7.741c.208-.395.779-.729 1.535-.155 0 0 1.021.783 2.67.783 1.648 0 2.67-.783 2.67-.783.757-.57 1.325-.24 1.536.155.349.696-.053 1.028-.97 1.6-.77.471-1.832.658-2.532.728l1.528 1.465 1.208 1.159c.785.774-.493 1.984-1.286 1.236-.529-.516-1.3-1.258-2.107-2.035l-.04-.039-2.148 2.071C1.4 14.671.122 13.45.915 12.69l2.727-2.624c-.005.005-.099.095 0 0-.692-.07-1.77-.246-2.55-.728Z" clip-rule="evenodd"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="telegram" fill="none" viewBox="0 0 15 13"><path fill="currentColor" d="M.882 5.418 13.337.616c.578-.209 1.082.141.895 1.015h.001l-2.12 9.99c-.157.708-.578.88-1.167.546l-3.23-2.38-1.557 1.5c-.172.173-.317.318-.651.318l.23-3.286 5.984-5.407c.26-.23-.058-.358-.402-.13L3.924 7.439.736 6.444c-.692-.22-.707-.692.146-1.026Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" id="vk" fill="none" viewBox="0 0 16 9"><path fill="currentColor" fill-rule="evenodd" d="M14.28 6.942c.365.373 1.16 1 1.015 1.637-.133.585-1.006.371-1.854.405-.968.041-1.542.062-2.124-.405-.274-.222-.435-.485-.698-.779-.239-.266-.54-.742-.95-.723-.736.036-.505 1.062-.767 1.762-4.092.644-5.735-1.884-7.185-4.337C1.015 3.314 0 .762 0 .762l2.894-.01s.928 1.688 1.174 2.124c.21.37.44.664.677.994.2.275.514.811.86.768.56-.072.662-2.248.314-2.978-.138-.295-.47-.398-.814-.498C5.221.43 8.351.277 8.857.845c.735.825-.509 3.123.498 3.793 1.413-.74 2.62-3.841 2.62-3.841l3.388.021s-.53 1.676-1.085 2.42c-.324.435-1.398 1.404-1.356 2.123.034.57.908 1.124 1.357 1.581Z" clip-rule="evenodd"/></symbol></svg>
|