@itcase/ui 1.2.30 → 1.2.31
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/{Badge-TyPbVqR_.js → Badge-BMKD9teI.js} +6 -2
- package/dist/{Badge-BZYBmgBK.js → Badge-DQnTpE4I.js} +6 -2
- package/dist/{Button-avhviao1.js → Button-DS2l65oq.js} +4 -4
- package/dist/{Button-BcOsYgoT.js → Button-x4mnZJoS.js} +3 -3
- package/dist/Divider-3upWnf8a.js +71 -0
- package/dist/Divider-DE2Q5J36.js +68 -0
- package/dist/{DropdownItem-toApJyeB.js → DropdownItem-CT9Dmiub.js} +38 -14
- package/dist/DropdownItem-DzDP45iO.js +179 -0
- package/dist/{Icon-ClsRaxDk.js → Icon-B7BJo5kW.js} +14 -19
- package/dist/{Icon-B2BwTQnP.js → Icon-PoesVPJn.js} +13 -18
- package/dist/{Input-BaicBuyd.js → Input-DXbt_RWB.js} +1 -2
- package/dist/{Input-DbzsXvEf.js → Input-HGM-rzzr.js} +1 -2
- package/dist/{Label-fp2Bus_T.js → Label-BBm19sQ-.js} +3 -6
- package/dist/{Label-BfotYOmD.js → Label-Chm6tl6E.js} +3 -6
- package/dist/{Link-CzC1kU5C.js → Link-CeQuavin.js} +1 -1
- package/dist/Loader-CqEocvjh.js +56 -0
- package/dist/Loader-DRTOGvF1.js +59 -0
- package/dist/{MenuItem-BJ3uGKCH.js → MenuItem-DPJ_9FxW.js} +14 -3
- package/dist/{MenuItem-BEYVY0Vf.js → MenuItem-zHzWXIvQ.js} +15 -4
- package/dist/{Scrollbar-CrGXCZ_F.js → Scrollbar-Bo7z7ELm.js} +10 -13
- package/dist/{Scrollbar-DVlIZzvz.js → Scrollbar-CKbA0jQU.js} +10 -13
- package/dist/{Text-CC0xnhmx.js → Text-1b-Bk7yG.js} +3 -4
- package/dist/{Text-kxGZButz.js → Text-DlSG_p4u.js} +3 -4
- package/dist/{Title-CQ_Fr1hO.js → Title-mkus84Rh.js} +3 -6
- package/dist/{Title-Ze_OL1Co.js → Title-o5ofk8ge.js} +3 -6
- package/dist/{Tooltip-PrwacZFC.js → Tooltip-CNJN2lf5.js} +19 -3
- package/dist/{Tooltip-ccRCMYQM.js → Tooltip-f5EWhsGj.js} +19 -3
- package/dist/appearance/Avatar.js +5 -0
- package/dist/appearance/Code.js +5 -0
- package/dist/appearance/Divider.js +5 -0
- package/dist/appearance/DropdownItem.js +5 -0
- package/dist/appearance/Modal.js +5 -0
- package/dist/appearance/Response.js +95 -21
- package/dist/appearance/SiteMenu.js +5 -0
- package/dist/appearance/Switch.js +5 -0
- package/dist/appearance/Tile.js +5 -0
- package/dist/cjs/appearance/Avatar.js +7 -0
- package/dist/cjs/appearance/Code.js +7 -0
- package/dist/cjs/appearance/Divider.js +7 -0
- package/dist/cjs/appearance/DropdownItem.js +7 -0
- package/dist/cjs/appearance/Modal.js +7 -0
- package/dist/cjs/appearance/Response.js +95 -21
- package/dist/cjs/appearance/SiteMenu.js +7 -0
- package/dist/cjs/appearance/Switch.js +7 -0
- package/dist/cjs/appearance/Tile.js +7 -0
- package/dist/cjs/components/Accordion.js +6 -6
- package/dist/cjs/components/Avatar.js +22 -8
- package/dist/cjs/components/Badge.js +2 -3
- package/dist/cjs/components/Breadcrumbs.js +4 -8
- package/dist/cjs/components/Button.js +7 -8
- package/dist/cjs/components/Caption.js +0 -1
- package/dist/cjs/components/Card.js +3 -12
- package/dist/cjs/components/Cell.js +7 -12
- package/dist/cjs/components/Checkbox.js +1 -5
- package/dist/cjs/components/Chips.js +1 -2
- package/dist/cjs/components/Choice.js +6 -7
- package/dist/cjs/components/Code.js +31 -10
- package/dist/cjs/components/ContextMenu.js +9 -21
- package/dist/cjs/components/CookiesWarning.js +9 -15
- package/dist/cjs/components/DadataHintField.js +1 -2
- package/dist/cjs/components/DatePicker.js +8 -9
- package/dist/cjs/components/Divider.js +3 -2
- package/dist/cjs/components/Dot.js +1 -3
- package/dist/cjs/components/Dropdown.js +6 -4
- package/dist/cjs/components/Flex.js +0 -1
- package/dist/cjs/components/Grid.js +1 -8
- package/dist/cjs/components/Group.js +0 -1
- package/dist/cjs/components/HTMLContent.js +0 -1
- package/dist/cjs/components/Icon.js +5 -6
- package/dist/cjs/components/Image.js +0 -1
- package/dist/cjs/components/Input.js +1 -2
- package/dist/cjs/components/InputMask.js +7 -9
- package/dist/cjs/components/InputPassword.js +5 -6
- package/dist/cjs/components/Label.js +4 -5
- package/dist/cjs/components/LanguageSelector.js +5 -6
- package/dist/cjs/components/Link.js +0 -1
- package/dist/cjs/components/List.js +0 -1
- package/dist/cjs/components/Loader.js +2 -3
- package/dist/cjs/components/Logo.js +0 -1
- package/dist/cjs/components/Menu.js +2 -3
- package/dist/cjs/components/MenuItem.js +2 -3
- package/dist/cjs/components/Modal.js +27 -7
- package/dist/cjs/components/ModalSheetBottom.js +34 -0
- package/dist/cjs/components/Notification.js +7 -6
- package/dist/cjs/components/Overlay.js +0 -1
- package/dist/cjs/components/Page.js +3 -46
- package/dist/cjs/components/Pagination.js +8 -7
- package/dist/cjs/components/Panel.js +1 -2
- package/dist/cjs/components/Radio.js +1 -3
- package/dist/cjs/components/RangeSlider.js +0 -1
- package/dist/cjs/components/Response.js +20 -15
- package/dist/cjs/components/SVGContent.js +0 -1
- package/dist/cjs/components/ScrollOnDrag.js +0 -1
- package/dist/cjs/components/ScrollToView.js +0 -1
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +9 -12
- package/dist/cjs/components/Segmented.js +1 -2
- package/dist/cjs/components/Select.js +7 -7
- package/dist/cjs/components/SiteMenu.js +18 -8
- package/dist/cjs/components/Swiper.js +6 -8
- package/dist/cjs/components/Switch.js +12 -3
- package/dist/cjs/components/Tab.js +4 -4
- package/dist/cjs/components/Text.js +1 -2
- package/dist/cjs/components/Textarea.js +0 -1
- package/dist/cjs/components/Tile.js +22 -6
- package/dist/cjs/components/Title.js +1 -2
- package/dist/cjs/components/Tooltip.js +3 -4
- package/dist/cjs/components/Video.js +0 -1
- package/dist/cjs/components/Wrapper.js +3 -8
- package/dist/cjs/context/Notifications.js +0 -5
- package/dist/cjs/context/UIContext.js +0 -9
- package/dist/cjs/hooks/useDeviceTargetClass.js +0 -1
- package/dist/cjs/hooks/useStyles.js +0 -1
- package/dist/components/Accordion.js +8 -8
- package/dist/components/Avatar.js +23 -10
- package/dist/components/Badge.js +2 -3
- package/dist/components/Breadcrumbs.js +6 -10
- package/dist/components/Button.js +8 -9
- package/dist/components/Caption.js +0 -1
- package/dist/components/Card.js +3 -12
- package/dist/components/Cell.js +8 -13
- package/dist/components/Checkbox.js +1 -5
- package/dist/components/Chips.js +1 -2
- package/dist/components/Choice.js +7 -8
- package/dist/components/Code.js +32 -12
- package/dist/components/ContextMenu.js +10 -22
- package/dist/components/CookiesWarning.js +10 -16
- package/dist/components/DadataHintField.js +2 -3
- package/dist/components/DatePicker.js +10 -11
- package/dist/components/Divider.js +2 -2
- package/dist/components/Dot.js +1 -3
- package/dist/components/Dropdown.js +7 -6
- package/dist/components/Flex.js +0 -1
- package/dist/components/Grid.js +1 -8
- package/dist/components/Group.js +0 -1
- package/dist/components/HTMLContent.js +0 -1
- package/dist/components/Icon.js +6 -7
- package/dist/components/Image.js +0 -1
- package/dist/components/Input.js +1 -2
- package/dist/components/InputMask.js +7 -9
- package/dist/components/InputPassword.js +6 -7
- package/dist/components/Label.js +4 -5
- package/dist/components/LanguageSelector.js +6 -7
- package/dist/components/Link.js +2 -3
- package/dist/components/List.js +2 -3
- package/dist/components/Loader.js +2 -3
- package/dist/components/Logo.js +2 -3
- package/dist/components/Menu.js +4 -5
- package/dist/components/MenuItem.js +4 -5
- package/dist/components/Modal.js +27 -8
- package/dist/components/ModalSheetBottom.js +32 -0
- package/dist/components/Notification.js +8 -7
- package/dist/components/Overlay.js +0 -1
- package/dist/components/Page.js +3 -46
- package/dist/components/Pagination.js +10 -9
- package/dist/components/Panel.js +1 -2
- package/dist/components/Radio.js +1 -3
- package/dist/components/RangeSlider.js +0 -1
- package/dist/components/Response.js +21 -16
- package/dist/components/SVGContent.js +0 -1
- package/dist/components/ScrollOnDrag.js +1 -2
- package/dist/components/ScrollToView.js +0 -1
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +10 -13
- package/dist/components/Segmented.js +1 -2
- package/dist/components/Select.js +9 -9
- package/dist/components/SiteMenu.js +19 -10
- package/dist/components/Swiper.js +6 -8
- package/dist/components/Switch.js +12 -4
- package/dist/components/Tab.js +6 -6
- package/dist/components/Text.js +1 -2
- package/dist/components/Textarea.js +0 -1
- package/dist/components/Tile.js +22 -7
- package/dist/components/Title.js +1 -2
- package/dist/components/Tooltip.js +3 -4
- package/dist/components/Video.js +0 -1
- package/dist/components/Wrapper.js +3 -8
- package/dist/context/Notifications.js +1 -6
- package/dist/context/UIContext.js +0 -9
- package/dist/css/components/ModalSheetBottom/ModalSheetBottom.css +29 -0
- package/dist/hooks/useDeviceTargetClass.js +0 -1
- package/dist/hooks/useStyles.js +0 -1
- package/dist/stories/Response.stories.js +38 -12
- package/dist/{tslib.es6-w7hdJ3oZ.js → tslib.es6-5FtW-kfi.js} +1 -1
- package/dist/types/appearance/Avatar/index.d.ts +2 -0
- package/dist/types/appearance/Code/index.d.ts +2 -0
- package/dist/types/appearance/Divider/index.d.ts +2 -0
- package/dist/types/appearance/DropdownItem/index.d.ts +2 -0
- package/dist/types/appearance/Modal/index.d.ts +2 -0
- package/dist/types/appearance/SiteMenu/index.d.ts +2 -0
- package/dist/types/appearance/Switch/index.d.ts +2 -0
- package/dist/types/appearance/Tile/index.d.ts +2 -0
- package/dist/types/components/Avatar/Avatar.d.ts +3 -2
- package/dist/types/components/Avatar/Avatar.interface.d.ts +25 -11
- package/dist/types/components/Avatar/index.d.ts +1 -1
- package/dist/types/components/Badge/Badge.d.ts +6 -0
- package/dist/types/components/Breadcrumbs/BreadcrumbsItem.d.ts +0 -5
- package/dist/types/components/Button/Button.interface.d.ts +6 -6
- package/dist/types/components/Card/Card.d.ts +0 -10
- package/dist/types/components/Cell/Cell.d.ts +0 -6
- package/dist/types/components/Checkbox/Checkbox.d.ts +0 -5
- package/dist/types/components/Code/Code.d.ts +6 -8
- package/dist/types/components/Code/Code.interface.d.ts +21 -2
- package/dist/types/components/Code/index.d.ts +1 -1
- package/dist/types/components/ContextMenu/ContextMenu.d.ts +0 -5
- package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +0 -7
- package/dist/types/components/Divider/Divider.d.ts +3 -2
- package/dist/types/components/Divider/Divider.interface.d.ts +11 -0
- package/dist/types/components/Divider/index.d.ts +1 -1
- package/dist/types/components/Dot/Dot.d.ts +0 -3
- package/dist/types/components/Dropdown/Dropdown.d.ts +0 -7
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +28 -15
- package/dist/types/components/Dropdown/DropdownItem.d.ts +5 -4
- package/dist/types/components/Dropdown/index.d.ts +2 -2
- package/dist/types/components/Grid/Grid.d.ts +0 -5
- package/dist/types/components/Grid/GridRow.d.ts +0 -5
- package/dist/types/components/Label/Label.d.ts +0 -5
- package/dist/types/components/Loader/Loader.interface.d.ts +3 -3
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +2 -2
- package/dist/types/components/Modal/Modal.d.ts +3 -2
- package/dist/types/components/Modal/Modal.interface.d.ts +22 -6
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.d.ts +3 -0
- package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +11 -0
- package/dist/types/components/ModalSheetBottom/index.d.ts +1 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +8 -7
- package/dist/types/components/Page/Page.d.ts +3 -0
- package/dist/types/components/Page/Page.interface.d.ts +18 -0
- package/dist/types/components/Page/index.d.ts +1 -42
- package/dist/types/components/Radio/Radio.d.ts +0 -1
- package/dist/types/components/Response/Response.interface.d.ts +4 -4
- package/dist/types/components/Scrollbar/Scrollbar.d.ts +0 -5
- package/dist/types/components/Search/Search.interface.d.ts +9 -9
- package/dist/types/components/SiteMenu/SiteMenu.d.ts +3 -2
- package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +18 -5
- package/dist/types/components/SiteMenu/index.d.ts +2 -2
- package/dist/types/components/Swiper/Swiper.d.ts +0 -1
- package/dist/types/components/Switch/Switch.d.ts +3 -2
- package/dist/types/components/Switch/Switch.interface.d.ts +17 -4
- package/dist/types/components/Switch/index.d.ts +1 -1
- package/dist/types/components/Text/Text.d.ts +0 -5
- package/dist/types/components/Text/Text.interface.d.ts +1 -1
- package/dist/types/components/Tile/Tile.d.ts +3 -2
- package/dist/types/components/Tile/Tile.interface.d.ts +21 -9
- package/dist/types/components/Tile/index.d.ts +1 -1
- package/dist/types/components/Title/Title.d.ts +0 -5
- package/dist/types/components/Wrapper/Wrapper.d.ts +0 -6
- package/dist/types/context/Notifications.d.ts +0 -7
- package/dist/types/context/UIContext.d.ts +10 -2
- package/dist/types/icons/index.d.ts +2 -2
- package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
- package/package.json +12 -15
- package/dist/Divider-BjB5MD6u.js +0 -50
- package/dist/Divider-U5UdY-ef.js +0 -48
- package/dist/DropdownItem-CFkRx8LX.js +0 -156
- package/dist/Loader-CU_5Ydmy.js +0 -53
- package/dist/Loader-Ck59IXGG.js +0 -56
- package/dist/types/constants/componentProps/align.d.ts +0 -2
- package/dist/types/constants/componentProps/alignDirection.d.ts +0 -2
- package/dist/types/constants/componentProps/fill.d.ts +0 -2
- package/dist/types/constants/componentProps/horizontalResizeMode.d.ts +0 -2
- package/dist/types/constants/componentProps/position.d.ts +0 -2
- package/dist/types/constants/componentProps/verticalResizeMode.d.ts +0 -2
- /package/dist/css/{styles → mediaqueries}/mediaqueries.css +0 -0
|
@@ -34,7 +34,7 @@ export interface IMenuItemThemeColor {
|
|
|
34
34
|
underline?: tUnderlineProps;
|
|
35
35
|
width?: tWidthProps;
|
|
36
36
|
}
|
|
37
|
-
type appearanceKeysType =
|
|
37
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
38
38
|
export type menuItemAppearanceType = {
|
|
39
39
|
[key in appearanceKeysType]?: IMenuItemThemeColor;
|
|
40
40
|
};
|
|
@@ -53,7 +53,6 @@ export interface IMenuItemProps extends IMenuItemThemeColor, iStyleAttributes {
|
|
|
53
53
|
label?: string;
|
|
54
54
|
link?: string;
|
|
55
55
|
rel?: string;
|
|
56
|
-
set?: string;
|
|
57
56
|
style?: CSSProperties;
|
|
58
57
|
target?: string;
|
|
59
58
|
type?: string;
|
|
@@ -61,5 +60,6 @@ export interface IMenuItemProps extends IMenuItemThemeColor, iStyleAttributes {
|
|
|
61
60
|
isHover?: boolean;
|
|
62
61
|
onClick?: () => void;
|
|
63
62
|
onMouseEnter?: () => void;
|
|
63
|
+
set?: string;
|
|
64
64
|
}
|
|
65
65
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { iModalProps, iModalRef } from './Modal.interface';
|
|
2
|
+
import { iModalConfig, iModalProps, iModalRef } from './Modal.interface';
|
|
3
|
+
declare const modalConfig: iModalConfig;
|
|
3
4
|
declare const Modal: React.ForwardRefExoticComponent<iModalProps & React.RefAttributes<iModalRef>>;
|
|
4
|
-
export { Modal };
|
|
5
|
+
export { Modal, modalConfig };
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
import type { FocusEvent, MouseEvent, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
import type { tFillGradientProps, tFillProps } from '../../types';
|
|
3
|
+
import type { elevationPropsType, tBorderColorProps, tFillGradientProps, tFillProps, tShapeProps } from '../../types';
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
+
export interface IModalThemeColor {
|
|
6
|
+
borderColor?: tBorderColorProps;
|
|
7
|
+
elevation?: elevationPropsType;
|
|
8
|
+
fill?: tFillProps;
|
|
9
|
+
overlayFill?: tFillProps;
|
|
10
|
+
overlayFillGradient?: tFillGradientProps;
|
|
11
|
+
overlayOpacity?: string;
|
|
12
|
+
shape?: tShapeProps;
|
|
13
|
+
isOverlay?: boolean;
|
|
14
|
+
}
|
|
15
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
16
|
+
export type modalAppearanceType = {
|
|
17
|
+
[key in appearanceKeysType]?: IModalThemeColor;
|
|
18
|
+
};
|
|
19
|
+
export interface iModalConfig {
|
|
20
|
+
appearance: modalAppearanceType | undefined;
|
|
21
|
+
setAppearance: (newComponent: modalAppearanceType) => void;
|
|
22
|
+
}
|
|
4
23
|
interface iModalLoaderProps {
|
|
5
24
|
}
|
|
6
25
|
interface iModalRef {
|
|
@@ -9,8 +28,9 @@ interface iModalRef {
|
|
|
9
28
|
openModal: () => void;
|
|
10
29
|
isOpen: boolean;
|
|
11
30
|
}
|
|
12
|
-
interface iModalProps extends iStyleAttributes {
|
|
31
|
+
interface iModalProps extends IModalThemeColor, iStyleAttributes {
|
|
13
32
|
id?: string;
|
|
33
|
+
appearance?: appearanceKeysType;
|
|
14
34
|
children?: ReactNode;
|
|
15
35
|
className?: string;
|
|
16
36
|
closeButton?: ReactNode;
|
|
@@ -18,12 +38,8 @@ interface iModalProps extends iStyleAttributes {
|
|
|
18
38
|
debug?: boolean;
|
|
19
39
|
modalQuerySelector?: string;
|
|
20
40
|
overlayClassName?: string;
|
|
21
|
-
overlayFill?: tFillProps;
|
|
22
|
-
overlayFillGradient?: tFillGradientProps;
|
|
23
|
-
overlayOpacity?: string;
|
|
24
41
|
isCloseOnBlur?: boolean;
|
|
25
42
|
isOpen: boolean;
|
|
26
|
-
isOverlay?: boolean;
|
|
27
43
|
isScrollOnOpen?: boolean;
|
|
28
44
|
isSetFocusOnOpen?: boolean;
|
|
29
45
|
onClickOverlay?: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Modal } from './Modal';
|
|
1
|
+
import { Modal, modalConfig } from './Modal';
|
|
2
2
|
import { ModalLoader } from './ModalLoader';
|
|
3
|
-
export { Modal, ModalLoader };
|
|
3
|
+
export { Modal, modalConfig, ModalLoader };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { Sheet } from 'react-modal-sheet';
|
|
3
|
+
import { tFillProps } from '../../types';
|
|
4
|
+
export type a = typeof Sheet;
|
|
5
|
+
export interface iModalSheetBottomProps extends a {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
closeButton?: ReactNode;
|
|
9
|
+
fill?: tFillProps;
|
|
10
|
+
style?: CSSProperties;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ModalSheetBottom } from './ModalSheetBottom';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
import { tFillProps, tSizeProps, tTextColorProps, tTextSizeProps,
|
|
3
|
+
import { tFillProps, titleSizePropsType, tSizeProps, tTextColorProps, tTextSizeProps, tWidthProps } from '../../types';
|
|
4
4
|
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
5
|
export interface INotificationItemThemeColor {
|
|
6
6
|
fill?: tFillProps;
|
|
@@ -9,8 +9,9 @@ export interface INotificationItemThemeColor {
|
|
|
9
9
|
textSize?: tTextSizeProps;
|
|
10
10
|
titleTextColor?: tTextColorProps;
|
|
11
11
|
titleTextSize?: titleSizePropsType;
|
|
12
|
+
width?: tWidthProps;
|
|
12
13
|
}
|
|
13
|
-
type appearanceKeysType =
|
|
14
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
14
15
|
export type notificationItemAppearanceType = {
|
|
15
16
|
[key in appearanceKeysType]?: INotificationItemThemeColor;
|
|
16
17
|
};
|
|
@@ -19,16 +20,17 @@ export interface INotificationItemConfig {
|
|
|
19
20
|
setAppearance: (newComponent: notificationItemAppearanceType) => void;
|
|
20
21
|
}
|
|
21
22
|
export interface INotificationItemProps extends iStyleAttributes {
|
|
23
|
+
id?: number | string;
|
|
22
24
|
after?: ReactNode;
|
|
23
25
|
appearance?: appearanceKeysType;
|
|
24
26
|
before?: ReactNode;
|
|
25
27
|
className?: string;
|
|
26
28
|
closeButton?: ReactNode;
|
|
27
29
|
dataTour?: string;
|
|
28
|
-
|
|
29
|
-
set?: string;
|
|
30
|
+
fill?: tFillProps;
|
|
30
31
|
size?: tSizeProps;
|
|
31
32
|
status?: string;
|
|
33
|
+
style?: CSSProperties;
|
|
32
34
|
text?: string;
|
|
33
35
|
textColor?: tTextColorProps;
|
|
34
36
|
textSize?: tTextSizeProps;
|
|
@@ -36,15 +38,14 @@ export interface INotificationItemProps extends iStyleAttributes {
|
|
|
36
38
|
titleTextColor?: tTextColorProps;
|
|
37
39
|
titleTextSize?: titleSizePropsType;
|
|
38
40
|
type?: string;
|
|
39
|
-
style?: CSSProperties;
|
|
40
41
|
onClickClose?: (id?: number | string) => void;
|
|
41
|
-
|
|
42
|
+
set?: string;
|
|
42
43
|
}
|
|
43
44
|
export interface INotificationListProps {
|
|
44
45
|
className?: string;
|
|
45
46
|
closeButton?: ReactNode;
|
|
46
|
-
set?: string;
|
|
47
47
|
size?: tSizeProps;
|
|
48
48
|
type?: string;
|
|
49
|
+
set?: string;
|
|
49
50
|
}
|
|
50
51
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { horizontalResizeModePropsType, positionPropsType, tAlignDirectionProps, tAlignProps, tFillProps, verticalResizeModePropsType } from 'types';
|
|
3
|
+
export interface iPageProps {
|
|
4
|
+
id?: number | string;
|
|
5
|
+
after?: ReactNode;
|
|
6
|
+
align: tAlignProps;
|
|
7
|
+
alignDirection: tAlignDirectionProps;
|
|
8
|
+
before?: ReactNode;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
fill?: tFillProps;
|
|
12
|
+
horizontalResizing?: horizontalResizeModePropsType;
|
|
13
|
+
position: positionPropsType;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
type?: string;
|
|
16
|
+
verticalResizing: verticalResizeModePropsType;
|
|
17
|
+
wrapperPosition: positionPropsType;
|
|
18
|
+
}
|
|
@@ -1,42 +1 @@
|
|
|
1
|
-
|
|
2
|
-
declare function Page(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare namespace Page {
|
|
4
|
-
var propTypes: {
|
|
5
|
-
children: PropTypes.Requireable<any>;
|
|
6
|
-
className: PropTypes.Requireable<string>;
|
|
7
|
-
before: PropTypes.Requireable<string>;
|
|
8
|
-
after: PropTypes.Requireable<string>;
|
|
9
|
-
id: PropTypes.Requireable<string>;
|
|
10
|
-
fill: PropTypes.Requireable<string | null>;
|
|
11
|
-
fillMobile: PropTypes.Requireable<string | null>;
|
|
12
|
-
fillTablet: PropTypes.Requireable<string | null>;
|
|
13
|
-
fillDesktop: PropTypes.Requireable<string | null>;
|
|
14
|
-
type: PropTypes.Requireable<string>;
|
|
15
|
-
tag: PropTypes.Requireable<string>;
|
|
16
|
-
position: PropTypes.Requireable<string | null>;
|
|
17
|
-
positionMobile: PropTypes.Requireable<string | null>;
|
|
18
|
-
positionTablet: PropTypes.Requireable<string | null>;
|
|
19
|
-
positionDesktop: PropTypes.Requireable<string | null>;
|
|
20
|
-
wrapperPosition: PropTypes.Requireable<string | null>;
|
|
21
|
-
wrapperPositionMobile: PropTypes.Requireable<string | null>;
|
|
22
|
-
wrapperPositionTablet: PropTypes.Requireable<string | null>;
|
|
23
|
-
wrapperPositionDesktop: PropTypes.Requireable<string | null>;
|
|
24
|
-
horizontalResizing: PropTypes.Requireable<string | null>;
|
|
25
|
-
horizontalResizingMobile: PropTypes.Requireable<string | null>;
|
|
26
|
-
horizontalResizingTablet: PropTypes.Requireable<string | null>;
|
|
27
|
-
horizontalResizingDesktop: PropTypes.Requireable<string | null>;
|
|
28
|
-
verticalResizing: PropTypes.Requireable<string | null>;
|
|
29
|
-
verticalResizingMobile: PropTypes.Requireable<string | null>;
|
|
30
|
-
verticalResizingTablet: PropTypes.Requireable<string | null>;
|
|
31
|
-
verticalResizingDesktop: PropTypes.Requireable<string | null>;
|
|
32
|
-
align: PropTypes.Requireable<string | null>;
|
|
33
|
-
alignMobile: PropTypes.Requireable<string | null>;
|
|
34
|
-
alignTablet: PropTypes.Requireable<string | null>;
|
|
35
|
-
alignDesktop: PropTypes.Requireable<string | null>;
|
|
36
|
-
alignDirection: PropTypes.Requireable<string | null>;
|
|
37
|
-
alignDirectionMobile: PropTypes.Requireable<string | null>;
|
|
38
|
-
alignDirectionTablet: PropTypes.Requireable<string | null>;
|
|
39
|
-
alignDirectionDesktop: PropTypes.Requireable<string | null>;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export { Page };
|
|
1
|
+
export { Page } from './Page';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
import { borderColorHoverPropsType,
|
|
3
|
+
import { borderColorHoverPropsType, borderTypePropsType, tBorderColorProps, tBorderWidthProps, tFillHoverProps, tFillProps, titleSizePropsType, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tWidthProps } from '../../types';
|
|
4
4
|
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
5
|
export interface IResponseThemeColor {
|
|
6
6
|
borderColor?: tBorderColorProps;
|
|
@@ -36,7 +36,7 @@ export interface IResponseThemeColor {
|
|
|
36
36
|
titleTextSize?: titleSizePropsType;
|
|
37
37
|
titleTextWeight?: tTextWeightProps;
|
|
38
38
|
}
|
|
39
|
-
type appearanceKeysType =
|
|
39
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
40
40
|
export type responseAppearanceType = {
|
|
41
41
|
[key in appearanceKeysType]?: IResponseThemeColor;
|
|
42
42
|
};
|
|
@@ -50,17 +50,17 @@ export interface IResponseProps extends IResponseThemeColor, iStyleAttributes {
|
|
|
50
50
|
before?: ReactNode;
|
|
51
51
|
className?: string;
|
|
52
52
|
message?: string;
|
|
53
|
+
messageTextWeight?: tTextWeightProps;
|
|
53
54
|
primaryButton?: boolean;
|
|
54
55
|
primaryButtonAfter?: ReactNode;
|
|
55
56
|
primaryButtonBefore?: ReactNode;
|
|
56
57
|
secondaryButton?: boolean;
|
|
57
58
|
secondaryButtonAfter?: ReactNode;
|
|
58
59
|
secondaryButtonBefore?: ReactNode;
|
|
59
|
-
messageTextWeight?: tTextWeightProps;
|
|
60
|
-
set?: string;
|
|
61
60
|
style?: CSSProperties;
|
|
62
61
|
title?: string;
|
|
63
62
|
onClickPrimaryButton?: () => void;
|
|
64
63
|
onClickSecondaryButton?: () => void;
|
|
64
|
+
set?: string;
|
|
65
65
|
}
|
|
66
66
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
import { borderColorHoverPropsType,
|
|
3
|
+
import { borderColorHoverPropsType, borderTypePropsType, iconSizePropsType, tBorderColorProps, tBorderWidthProps, tFillProps, tItemColorProps, tShapeProps, tTextColorProps, tTextSizeProps, tTextStyleProps, tTextWeightProps, tWidthProps } from '../../types';
|
|
4
4
|
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
5
|
export interface ISearchThemeColor {
|
|
6
6
|
borderColor?: tBorderColorProps;
|
|
@@ -8,12 +8,18 @@ export interface ISearchThemeColor {
|
|
|
8
8
|
borderType?: borderTypePropsType;
|
|
9
9
|
borderWidth?: tBorderWidthProps;
|
|
10
10
|
fill?: tFillProps;
|
|
11
|
+
iconAfter?: string;
|
|
11
12
|
iconAfterFill?: tItemColorProps;
|
|
12
13
|
iconAfterSize?: iconSizePropsType;
|
|
14
|
+
iconAfterSrc?: string;
|
|
15
|
+
iconBefore?: string;
|
|
13
16
|
iconBeforeFill?: tItemColorProps;
|
|
14
17
|
iconBeforeSize?: iconSizePropsType;
|
|
18
|
+
iconBeforeSrc?: string;
|
|
19
|
+
iconClear?: string;
|
|
15
20
|
iconClearFill?: tItemColorProps;
|
|
16
21
|
iconClearSize?: iconSizePropsType;
|
|
22
|
+
iconClearSrc?: string;
|
|
17
23
|
inputFill?: tFillProps;
|
|
18
24
|
inputShape?: tShapeProps;
|
|
19
25
|
inputTextColor?: tTextColorProps;
|
|
@@ -25,10 +31,10 @@ export interface ISearchThemeColor {
|
|
|
25
31
|
placeholderTextStyle?: tTextStyleProps;
|
|
26
32
|
placeholderTextWeight?: tTextWeightProps;
|
|
27
33
|
shape?: tShapeProps;
|
|
28
|
-
size?: 'compact' | '
|
|
34
|
+
size?: 'compact' | 'l' | 'normal' | 's';
|
|
29
35
|
width?: tWidthProps;
|
|
30
36
|
}
|
|
31
|
-
type appearanceKeysType =
|
|
37
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
32
38
|
export type searchAppearanceType = {
|
|
33
39
|
[key in appearanceKeysType]?: ISearchThemeColor;
|
|
34
40
|
};
|
|
@@ -42,12 +48,6 @@ export interface ISearchProps extends ISearchThemeColor, iStyleAttributes {
|
|
|
42
48
|
before?: ReactNode;
|
|
43
49
|
className?: string;
|
|
44
50
|
dataTour?: string;
|
|
45
|
-
iconAfter?: string;
|
|
46
|
-
iconAfterSrc?: string;
|
|
47
|
-
iconBefore?: string;
|
|
48
|
-
iconBeforeSrc?: string;
|
|
49
|
-
iconClear?: string;
|
|
50
|
-
iconClearSrc?: string;
|
|
51
51
|
placeholder?: string;
|
|
52
52
|
style?: CSSProperties;
|
|
53
53
|
type?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { ISiteMenuProps } from './SiteMenu.interface';
|
|
1
|
+
import { iSiteMenuConfig, ISiteMenuProps } from './SiteMenu.interface';
|
|
2
|
+
declare const siteMenuConfig: iSiteMenuConfig;
|
|
2
3
|
declare function SiteMenu(props: ISiteMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { SiteMenu };
|
|
4
|
+
export { SiteMenu, siteMenuConfig };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
className?: string;
|
|
7
|
-
closeText?: string;
|
|
3
|
+
import { iconSizePropsType, tFillProps, tTextColorHoverProps, tTextColorProps, tTextSizeProps } from '../../types';
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
+
export interface ISiteMenuThemeColor {
|
|
8
6
|
closeTextColor?: tTextColorProps;
|
|
9
7
|
closeTextColorHover?: tTextColorHoverProps;
|
|
10
8
|
closeTextSize?: tTextSizeProps;
|
|
@@ -13,6 +11,20 @@ export interface ISiteMenuProps extends iStyleAttributes {
|
|
|
13
11
|
iconCloseBgFill?: tFillProps;
|
|
14
12
|
iconCloseFill?: tFillProps;
|
|
15
13
|
iconCloseSize?: iconSizePropsType;
|
|
14
|
+
}
|
|
15
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
16
|
+
export type siteMenuAppearanceType = {
|
|
17
|
+
[key in appearanceKeysType]?: ISiteMenuThemeColor;
|
|
18
|
+
};
|
|
19
|
+
export interface iSiteMenuConfig {
|
|
20
|
+
appearance: siteMenuAppearanceType | undefined;
|
|
21
|
+
setAppearance: (newComponent: siteMenuAppearanceType) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface ISiteMenuProps extends ISiteMenuThemeColor, iStyleAttributes {
|
|
24
|
+
appearance?: appearanceKeysType;
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
className?: string;
|
|
27
|
+
closeText?: string;
|
|
16
28
|
onClose?: () => void;
|
|
17
29
|
}
|
|
18
30
|
export interface ISiteMenuButtonProps extends iStyleAttributes {
|
|
@@ -21,3 +33,4 @@ export interface ISiteMenuButtonProps extends iStyleAttributes {
|
|
|
21
33
|
text?: string;
|
|
22
34
|
onClick?: () => void;
|
|
23
35
|
}
|
|
36
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SiteMenu } from './SiteMenu.js';
|
|
1
|
+
import { SiteMenu, siteMenuConfig } from './SiteMenu.js';
|
|
2
2
|
import { SiteMenuButton } from './SiteMenuButton.js';
|
|
3
|
-
export { SiteMenu, SiteMenuButton };
|
|
3
|
+
export { SiteMenu, siteMenuConfig, SiteMenuButton };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ISwitchProps } from './Switch.interface';
|
|
2
|
+
import { iSwitchConfig, ISwitchProps } from './Switch.interface';
|
|
3
|
+
declare const switchConfig: iSwitchConfig;
|
|
3
4
|
declare const Switch: React.ForwardRefExoticComponent<ISwitchProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export { Switch };
|
|
5
|
+
export { Switch, switchConfig };
|
|
@@ -1,10 +1,23 @@
|
|
|
1
1
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
2
|
-
|
|
2
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
3
|
+
export interface iSwitchThemeColor {
|
|
4
|
+
size?: string;
|
|
5
|
+
set?: string;
|
|
6
|
+
}
|
|
7
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
8
|
+
export type switchAppearanceType = {
|
|
9
|
+
[key in appearanceKeysType]?: iSwitchThemeColor;
|
|
10
|
+
};
|
|
11
|
+
export interface iSwitchConfig {
|
|
12
|
+
appearance: switchAppearanceType | undefined;
|
|
13
|
+
setAppearance: (newComponent: switchAppearanceType) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface ISwitchProps extends iSwitchThemeColor, iStyleAttributes {
|
|
16
|
+
id?: string;
|
|
17
|
+
appearance?: appearanceKeysType;
|
|
3
18
|
checked?: boolean;
|
|
4
19
|
className?: string;
|
|
5
20
|
disabled?: boolean;
|
|
6
|
-
id?: string;
|
|
7
|
-
set?: string;
|
|
8
|
-
size?: string;
|
|
9
21
|
onChange?: () => void;
|
|
10
22
|
}
|
|
23
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Switch } from './Switch';
|
|
1
|
+
export { Switch, switchConfig } from './Switch';
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { iTextConfig, iTextProps } from './Text.interface';
|
|
2
2
|
declare const textConfig: iTextConfig;
|
|
3
3
|
declare function Text(props: iTextProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace Text {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
tag: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
4
|
export { Text, textConfig };
|
|
@@ -8,6 +8,7 @@ interface iTextThemeColor {
|
|
|
8
8
|
textColorActive?: tTextColorActiveProps;
|
|
9
9
|
textColorGradient?: tTextGradientProps;
|
|
10
10
|
textColorHover?: tTextColorHoverProps;
|
|
11
|
+
width?: tWidthProps;
|
|
11
12
|
}
|
|
12
13
|
export type tAppearance = {
|
|
13
14
|
[key in tAppearanceKeysDefault]: iTextThemeColor;
|
|
@@ -47,7 +48,6 @@ interface iTextProps extends iTextThemeColor, iStyleAttributes {
|
|
|
47
48
|
textWeightTablet?: tTextWeightProps;
|
|
48
49
|
textWrap?: tTextWrapProps;
|
|
49
50
|
type?: typePropsType;
|
|
50
|
-
width?: tWidthProps;
|
|
51
51
|
onClick?: () => void;
|
|
52
52
|
onDoubleClick?: () => void;
|
|
53
53
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ITileProps } from './Tile.interface';
|
|
1
|
+
import { iTileConfig, ITileProps } from './Tile.interface';
|
|
2
|
+
declare const tileConfig: iTileConfig;
|
|
2
3
|
declare function Tile(props: ITileProps): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
declare namespace Tile {
|
|
4
5
|
var defaultProps: {
|
|
@@ -6,4 +7,4 @@ declare namespace Tile {
|
|
|
6
7
|
textTag: string;
|
|
7
8
|
};
|
|
8
9
|
}
|
|
9
|
-
export { Tile };
|
|
10
|
+
export { Tile, tileConfig };
|
|
@@ -1,39 +1,51 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
3
2
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
4
3
|
import { borderColorHoverPropsType, borderTypePropsType, tAlignDirectionProps, tAlignProps, tBorderColorProps, tBorderWidthProps, tDirectionProps, tFillProps, titleSizePropsType, tShapeProps, tSizeProps, tTextAlignProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tTextWrapProps } from '../../types';
|
|
5
|
-
|
|
4
|
+
import { tAppearanceKeysDefault } from '../../types/componentProps/appearanceKeys';
|
|
5
|
+
export interface ITileThemeColor {
|
|
6
|
+
borderColor?: tBorderColorProps;
|
|
7
|
+
fill?: tFillProps;
|
|
8
|
+
shape?: tShapeProps;
|
|
9
|
+
textColor?: tTextColorProps;
|
|
10
|
+
textSize?: tTextSizeProps;
|
|
11
|
+
titleTextColor?: tTextColorProps;
|
|
12
|
+
titleTextSize?: titleSizePropsType;
|
|
13
|
+
}
|
|
14
|
+
type appearanceKeysType = {} & tAppearanceKeysDefault;
|
|
15
|
+
export type tileAppearanceType = {
|
|
16
|
+
[key in appearanceKeysType]?: ITileThemeColor;
|
|
17
|
+
};
|
|
18
|
+
export interface iTileConfig {
|
|
19
|
+
appearance: tileAppearanceType | undefined;
|
|
20
|
+
setAppearance: (newComponent: tileAppearanceType) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface ITileProps extends ITileThemeColor, iStyleAttributes {
|
|
6
23
|
after?: ReactNode;
|
|
7
24
|
align?: tAlignProps;
|
|
8
25
|
alignDirection?: tAlignDirectionProps;
|
|
26
|
+
appearance?: appearanceKeysType;
|
|
9
27
|
badge?: string;
|
|
10
28
|
badgeAppearance?: tAppearanceKeysDefault;
|
|
11
29
|
badgeSize?: tSizeProps;
|
|
12
30
|
badgeTextColor?: tTextColorProps;
|
|
13
31
|
badgeTextSize?: tTextSizeProps;
|
|
14
32
|
before?: ReactNode;
|
|
15
|
-
borderColor?: tBorderColorProps;
|
|
16
33
|
borderColorHover?: borderColorHoverPropsType;
|
|
17
34
|
borderType?: borderTypePropsType;
|
|
18
35
|
borderWidth?: tBorderWidthProps;
|
|
19
36
|
children?: ReactNode;
|
|
20
37
|
className?: string;
|
|
21
38
|
direction?: tDirectionProps;
|
|
22
|
-
fill?: tFillProps;
|
|
23
39
|
reverse?: boolean;
|
|
24
|
-
shape?: tShapeProps;
|
|
25
40
|
size?: string;
|
|
26
41
|
style?: CSSProperties;
|
|
27
42
|
text?: string;
|
|
28
|
-
textColor?: tTextColorProps;
|
|
29
|
-
textSize?: tTextSizeProps;
|
|
30
43
|
textWrap?: tTextWrapProps;
|
|
31
44
|
title?: string;
|
|
32
45
|
titleTextAlign?: tTextAlignProps;
|
|
33
|
-
titleTextColor?: tTextColorProps;
|
|
34
|
-
titleTextSize?: titleSizePropsType;
|
|
35
46
|
titleTextWeight?: tTextWeightProps;
|
|
36
47
|
titleTextWrap?: tTextWrapProps;
|
|
37
48
|
type?: string;
|
|
38
49
|
onClick?: () => void;
|
|
39
50
|
}
|
|
51
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tile } from './Tile';
|
|
1
|
+
export { Tile, tileConfig } from './Tile';
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { ITitleConfig, ITitleProps } from './Title.interface';
|
|
2
2
|
declare const titleConfig: ITitleConfig;
|
|
3
3
|
declare function Title(props: ITitleProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare namespace Title {
|
|
5
|
-
var defaultProps: {
|
|
6
|
-
size: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
4
|
export { Title, titleConfig };
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
1
|
import type { tId } from '@itcase/common';
|
|
3
2
|
import type { iCreatedNotification, iNotificationsProviderProps } from './Notifications.interface';
|
|
4
3
|
declare function NotificationsProvider(props: iNotificationsProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare namespace NotificationsProvider {
|
|
6
|
-
var propTypes: {
|
|
7
|
-
children: PropTypes.Requireable<any>;
|
|
8
|
-
initialNotificationsList: PropTypes.Requireable<any[]>;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
4
|
declare function useNotifications(): never[];
|
|
12
5
|
declare function useNotificationsAPI(): {
|
|
13
6
|
hideNotifications: (targetId: tId) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
declare function useUserDeviceContext(): {
|
|
3
3
|
isMobile: boolean;
|
|
4
4
|
isTablet: boolean;
|
|
@@ -8,5 +8,13 @@ declare function useSiteMenuContext(): {
|
|
|
8
8
|
isSiteMenuOpen: boolean;
|
|
9
9
|
setIsSiteMenuOpen: () => void;
|
|
10
10
|
};
|
|
11
|
-
declare const UIProvider: React.NamedExoticComponent<
|
|
11
|
+
declare const UIProvider: React.NamedExoticComponent<iUIProvider>;
|
|
12
|
+
interface iUIProvider {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
userDeviceState?: {
|
|
15
|
+
isDesktop?: boolean;
|
|
16
|
+
isMobile?: boolean;
|
|
17
|
+
isTablet?: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
12
20
|
export { UIProvider, useUserDeviceContext, useSiteMenuContext };
|
|
@@ -3,8 +3,8 @@ export namespace icon16 {
|
|
|
3
3
|
export { ChevronTop16 as ChevronTop };
|
|
4
4
|
}
|
|
5
5
|
export namespace icon24 {
|
|
6
|
+
export { DoubleArrowLeft24 as doubleArrowLeft };
|
|
7
|
+
export { DoubleArrowRight24 as doubleArrowRight };
|
|
6
8
|
export { Facebook24 as facebook };
|
|
7
9
|
export { Instagram24 as instagram };
|
|
8
|
-
export { DoubleArrowRight24 as doubleArrowRight };
|
|
9
|
-
export { DoubleArrowLeft24 as doubleArrowLeft };
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type tAppearanceKeysDefault = 'accent' | 'accentSecondary' | 'any' | 'default' | 'dev' | 'disabled' | 'error' | 'fail' | 'gradientPrimary' | 'l' | 'm' | 'primary' | 's' | 'secondary' | 'success' | 'surface' | 'surfaceDisabled' | 'surfacePrimary' | 'surfaceQuaternary' | 'surfaceSecondary' | 'surfaceTertiary' | 'warning' | 'xl' | 'xs';
|
|
1
|
+
export type tAppearanceKeysDefault = 'accent' | 'accentSecondary' | 'any' | 'cantLoadData' | 'custom' | 'default' | 'dev' | 'disabled' | 'error' | 'fail' | 'gradientPrimary' | 'l' | 'm' | 'primary' | 'refresh' | 's' | 'search' | 'secondary' | 'success' | 'surface' | 'surfaceDisabled' | 'surfacePrimary' | 'surfaceQuaternary' | 'surfaceSecondary' | 'surfaceTertiary' | 'warning' | 'xl' | 'xs';
|