@expressms/smartapp-ui 2.9.19-alpha.1 → 3.0.0-alpha.10
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/build/main/assets/icons/arrow-down.svg +2 -2
- package/build/main/assets/icons/arrow-up.svg +2 -2
- package/build/main/assets/icons/attachment-loader.svg +2 -2
- package/build/main/assets/icons/avatar-arrow-down.svg +3 -0
- package/build/main/assets/icons/avatar-arrow-up.svg +3 -0
- package/build/main/assets/icons/{loader-medium.svg → avatar-loader.svg} +1 -1
- package/build/main/assets/icons/button-loader.svg +2 -2
- package/build/main/assets/icons/check-mark-square.svg +4 -0
- package/build/main/assets/icons/check-mark.svg +3 -3
- package/build/main/assets/icons/chip-info.svg +3 -1
- package/build/main/assets/icons/clear.svg +2 -2
- package/build/main/assets/icons/close-modal.svg +3 -0
- package/build/main/assets/icons/close.svg +2 -9
- package/build/main/assets/icons/contact-info.svg +3 -10
- package/build/main/assets/icons/corporate-user.svg +2 -9
- package/build/main/assets/icons/delete-chip.svg +2 -2
- package/build/main/assets/icons/doc-small.svg +11 -0
- package/build/main/assets/icons/doc.svg +11 -0
- package/build/main/assets/icons/eye-off.svg +4 -9
- package/build/main/assets/icons/eye-on.svg +4 -0
- package/build/main/assets/icons/file-small.svg +11 -0
- package/build/main/assets/icons/file.svg +10 -2
- package/build/main/assets/icons/global-address-book-user.svg +3 -9
- package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
- package/build/main/assets/icons/input-arrow-down.svg +3 -0
- package/build/main/assets/icons/input-arrow-up.svg +3 -0
- package/build/main/assets/icons/magnifying-glass.svg +2 -2
- package/build/main/assets/icons/notification-close.svg +1 -1
- package/build/main/assets/icons/notification-failure.svg +2 -2
- package/build/main/assets/icons/notification-info.svg +4 -4
- package/build/main/assets/icons/notification-success.svg +3 -3
- package/build/main/assets/icons/pdf-small.svg +11 -0
- package/build/main/assets/icons/pdf.svg +11 -0
- package/build/main/assets/icons/play-small.svg +3 -0
- package/build/main/assets/icons/play.svg +3 -0
- package/build/main/assets/icons/ppt-small.svg +11 -0
- package/build/main/assets/icons/ppt.svg +11 -0
- package/build/main/assets/icons/txt-small.svg +11 -0
- package/build/main/assets/icons/txt.svg +11 -0
- package/build/main/assets/icons/warning-avatar.svg +1 -1
- package/build/main/assets/icons/xls-small.svg +11 -0
- package/build/main/assets/icons/xls.svg +11 -0
- package/build/main/assets/storybook/index.d.ts +3 -1
- package/build/main/assets/storybook/index.js +3 -1
- package/build/main/assets/storybook/index.js.map +1 -1
- package/build/main/constants/constants.d.ts +44 -26
- package/build/main/constants/constants.js +43 -26
- package/build/main/constants/constants.js.map +1 -1
- package/build/main/constants/types.d.ts +26 -0
- package/build/main/helpers/index.d.ts +13 -7
- package/build/main/helpers/index.js +72 -13
- package/build/main/helpers/index.js.map +1 -1
- package/build/main/hooks/useModal.d.ts +2 -1
- package/build/main/hooks/useModal.js +5 -8
- package/build/main/hooks/useModal.js.map +1 -1
- package/build/main/styles/styles.scss +2 -2
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +1 -1
- package/build/main//321/201omponents/ActionModal/ActionModal.js +13 -15
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -1
- package/build/main//321/201omponents/ActionModal/types.d.ts +2 -3
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +1 -1
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +116 -33
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -1
- package/build/main//321/201omponents/AttachedFile/types.d.ts +7 -10
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +1 -1
- package/build/main//321/201omponents/Avatar/Avatar.js +24 -25
- package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -1
- package/build/main//321/201omponents/Avatar/types.d.ts +4 -4
- package/build/main//321/201omponents/Button/Button.d.ts +1 -1
- package/build/main//321/201omponents/Button/Button.js +13 -19
- package/build/main//321/201omponents/Button/Button.js.map +1 -1
- package/build/main//321/201omponents/Button/types.d.ts +7 -11
- package/build/main//321/201omponents/Button/types.js +1 -0
- package/build/main//321/201omponents/Button/types.js.map +1 -1
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +1 -1
- package/build/main//321/201omponents/Calendar/Calendar.js +13 -12
- package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -1
- package/build/main//321/201omponents/Calendar/types.d.ts +2 -1
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +1 -1
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +8 -7
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +1 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +8 -7
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +1 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +9 -8
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -1
- package/build/main//321/201omponents/Charts/constants.d.ts +0 -4
- package/build/main//321/201omponents/Charts/constants.js +1 -2
- package/build/main//321/201omponents/Charts/constants.js.map +1 -1
- package/build/main//321/201omponents/Charts/helpers.d.ts +2 -2
- package/build/main//321/201omponents/Charts/helpers.js +1 -1
- package/build/main//321/201omponents/Charts/helpers.js.map +1 -1
- package/build/main//321/201omponents/Charts/types.d.ts +3 -2
- package/build/main//321/201omponents/Charts/usePieEvents.js +1 -1
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -1
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +5 -1
- package/build/main//321/201omponents/Checkbox/Checkbox.js +24 -14
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -1
- package/build/main//321/201omponents/Checkbox/types.d.ts +2 -0
- package/build/main//321/201omponents/Chip/Chip.d.ts +1 -1
- package/build/main//321/201omponents/Chip/Chip.js +69 -25
- package/build/main//321/201omponents/Chip/Chip.js.map +1 -1
- package/build/main//321/201omponents/Chip/types.d.ts +5 -2
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +19 -26
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -1
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +2 -2
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +1 -1
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +3 -3
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -1
- package/build/main//321/201omponents/ContextMenu/types.d.ts +2 -2
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +1 -1
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +26 -21
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -1
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +2 -2
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +22 -19
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -1
- package/build/main//321/201omponents/CustomSelect/types.d.ts +5 -4
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -1
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +3 -3
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -1
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +1 -1
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +6 -7
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -1
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +6 -5
- package/build/main//321/201omponents/Error/Error.d.ts +1 -1
- package/build/main//321/201omponents/Error/Error.js +3 -3
- package/build/main//321/201omponents/Error/Error.js.map +1 -1
- package/build/main//321/201omponents/Error/types.d.ts +2 -2
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +1 -1
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -1
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +1 -1
- package/build/main//321/201omponents/Header/Header.d.ts +1 -1
- package/build/main//321/201omponents/Header/Header.js +4 -4
- package/build/main//321/201omponents/Header/Header.js.map +1 -1
- package/build/main//321/201omponents/Header/types.d.ts +2 -2
- package/build/main//321/201omponents/Input/Input.d.ts +1 -1
- package/build/main//321/201omponents/Input/Input.js +68 -92
- package/build/main//321/201omponents/Input/Input.js.map +1 -1
- package/build/main//321/201omponents/Input/types.d.ts +6 -8
- package/build/main//321/201omponents/ListItem/ListItem.js +4 -4
- package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -1
- package/build/main//321/201omponents/ListItem/types.d.ts +2 -2
- package/build/main//321/201omponents/Loader/Loader.d.ts +1 -1
- package/build/main//321/201omponents/Loader/Loader.js +3 -3
- package/build/main//321/201omponents/Loader/Loader.js.map +1 -1
- package/build/main//321/201omponents/Loader/types.d.ts +2 -2
- package/build/main//321/201omponents/Modal/Modal.d.ts +1 -1
- package/build/main//321/201omponents/Modal/Modal.js +110 -43
- package/build/main//321/201omponents/Modal/Modal.js.map +1 -1
- package/build/main//321/201omponents/Modal/types.d.ts +6 -7
- package/build/main//321/201omponents/Notification/Notification.d.ts +1 -1
- package/build/main//321/201omponents/Notification/Notification.js +42 -76
- package/build/main//321/201omponents/Notification/Notification.js.map +1 -1
- package/build/main//321/201omponents/Notification/types.d.ts +3 -4
- package/build/main//321/201omponents/Profile/Profile.js +2 -2
- package/build/main//321/201omponents/Profile/Profile.js.map +1 -1
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +3 -3
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -1
- package/build/main//321/201omponents/ProgressBar/types.d.ts +2 -2
- package/build/main//321/201omponents/RadioButton/RadioButton.js +9 -13
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -1
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +2 -2
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -1
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -1
- package/build/main//321/201omponents/Skeleton/types.d.ts +2 -2
- package/build/main//321/201omponents/Stories/Stories.js +15 -15
- package/build/main//321/201omponents/Stories/Stories.js.map +1 -1
- package/build/main//321/201omponents/Stories/types.d.ts +2 -3
- package/build/main//321/201omponents/Switcher/Switcher.js +1 -1
- package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -1
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +4 -4
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -1
- package/build/main//321/201omponents/SyncLoader/types.d.ts +2 -3
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +1 -1
- package/build/main//321/201omponents/Textarea/Textarea.js +13 -50
- package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +6 -5
- package/build/main//321/201omponents/Toggle/Toggle.js +11 -14
- package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +5 -6
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +5 -7
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +20 -14
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +6 -10
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +2 -2
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +41 -55
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/helpers.js +1 -4
- package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +22 -37
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +12 -6
- package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
- package/package.json +1 -1
- package/build/main/assets/icons/cancel-cross.svg +0 -3
- package/build/main/assets/icons/download.svg +0 -4
- package/build/main/assets/icons/eye.svg +0 -10
- package/build/main/assets/icons/notification-error.svg +0 -3
- package/build/main/assets/icons/notification-warning.svg +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, RefObject } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IFontFamilyProps, TStyles } from '../../constants';
|
|
3
3
|
export type TInteractivePosition = 'left' | 'right';
|
|
4
4
|
export type TInteractiveElement = 'radio-button' | 'checkbox' | 'toggle';
|
|
5
5
|
export type TNotInteractiveElement = 'icon' | 'indicator' | 'no-element';
|
|
@@ -31,7 +31,7 @@ export interface NotInteractiveNoElementItemProps {
|
|
|
31
31
|
export type NotInteractiveItemProps = (NotInteractiveIconItemProps | NotInteractiveIndicatorItemProps | NotInteractiveNoElementItemProps) & {
|
|
32
32
|
type: 'not-interactive';
|
|
33
33
|
};
|
|
34
|
-
export type IListItemProps =
|
|
34
|
+
export type IListItemProps = IFontFamilyProps & (InteractiveItemProps | NotInteractiveItemProps) & {
|
|
35
35
|
text: string;
|
|
36
36
|
isDisabled?: boolean;
|
|
37
37
|
className?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ILoaderProps } from './types';
|
|
2
2
|
import '../../styles/styles.scss';
|
|
3
|
-
declare const Loader: ({ isLoader, isFullScreen, isTextItalic, title, textSize, width, iconSize, containerClassName, className, containerStyles, styles, color, backgroundColor, theme, icon, }: ILoaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
declare const Loader: ({ fontFamily, isLoader, isFullScreen, isTextItalic, title, textSize, width, iconSize, containerClassName, className, containerStyles, styles, color, backgroundColor, theme, icon, }: ILoaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
4
|
export default Loader;
|
|
@@ -12,12 +12,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { cloneElement } from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
|
+
import { generateColor, generateFontFamilyStyle, isDarkTheme } from '../../helpers';
|
|
15
16
|
import { COLORS, FONT_SIZE, LINE_HEIGHT, THEME } from '../../constants';
|
|
16
|
-
import { generateColor, isDarkTheme } from '../../helpers';
|
|
17
17
|
import { ReactComponent as LoaderIcon } from '../../assets/icons/loader.svg';
|
|
18
18
|
import '../../styles/styles.scss';
|
|
19
19
|
var Loader = function (_a) {
|
|
20
|
-
var isLoader = _a.isLoader, _b = _a.isFullScreen, isFullScreen = _b === void 0 ? true : _b, _c = _a.isTextItalic, isTextItalic = _c === void 0 ? false : _c, title = _a.title, _d = _a.textSize, textSize = _d === void 0 ? 'small' : _d, _e = _a.width, width = _e === void 0 ? 150 : _e, _f = _a.iconSize, iconSize = _f === void 0 ? 25 : _f, containerClassName = _a.containerClassName, className = _a.className, containerStyles = _a.containerStyles, styles = _a.styles, color = _a.color, backgroundColor = _a.backgroundColor, _g = _a.theme, theme = _g === void 0 ? THEME.default : _g, _h = _a.icon, icon = _h === void 0 ? _jsx(LoaderIcon, {}) : _h;
|
|
20
|
+
var fontFamily = _a.fontFamily, isLoader = _a.isLoader, _b = _a.isFullScreen, isFullScreen = _b === void 0 ? true : _b, _c = _a.isTextItalic, isTextItalic = _c === void 0 ? false : _c, title = _a.title, _d = _a.textSize, textSize = _d === void 0 ? 'small' : _d, _e = _a.width, width = _e === void 0 ? 150 : _e, _f = _a.iconSize, iconSize = _f === void 0 ? 25 : _f, containerClassName = _a.containerClassName, className = _a.className, containerStyles = _a.containerStyles, styles = _a.styles, color = _a.color, backgroundColor = _a.backgroundColor, _g = _a.theme, theme = _g === void 0 ? THEME.default : _g, _h = _a.icon, icon = _h === void 0 ? _jsx(LoaderIcon, {}) : _h;
|
|
21
21
|
var loaderColor = generateColor(color, COLORS.blue);
|
|
22
22
|
var generateTextStyles = function () { return ({
|
|
23
23
|
fontSize: FONT_SIZE[textSize],
|
|
@@ -38,7 +38,7 @@ var Loader = function (_a) {
|
|
|
38
38
|
height: iconSize,
|
|
39
39
|
style: { color: loaderColor },
|
|
40
40
|
};
|
|
41
|
-
return (_jsx("div", __assign({ className: classNames('smartapp-loader-wrapper', { 'smartapp-loader-wrapper__full-screen': isFullScreen }, containerClassName), style: __assign({ background: generateBackgroundColor() }, containerStyles) }, { children: _jsxs("div", __assign({ className: classNames('smartapp-loader', className), style: __assign({ width: "".concat(width, "px") }, styles) }, { children: [cloneElement(icon, iconProps), title && (_jsx("p", __assign({ className: "smartapp-loader__title", style: generateTextStyles() }, { children: title })))] })) })));
|
|
41
|
+
return (_jsx("div", __assign({ className: classNames('smartapp-loader-wrapper', { 'smartapp-loader-wrapper__full-screen': isFullScreen }, containerClassName), style: __assign(__assign({ background: generateBackgroundColor() }, generateFontFamilyStyle(fontFamily)), containerStyles) }, { children: _jsxs("div", __assign({ className: classNames('smartapp-loader', className), style: __assign({ width: "".concat(width, "px") }, styles) }, { children: [cloneElement(icon, iconProps), title && (_jsx("p", __assign({ className: "smartapp-loader__title", style: generateTextStyles() }, { children: title })))] })) })));
|
|
42
42
|
};
|
|
43
43
|
export default Loader;
|
|
44
44
|
//# sourceMappingURL=Loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/Loader.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,UAAU,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/Loader.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACnF,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvE,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,MAAM,GAAG,UAAC,EAiBD;QAhBb,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,oBAAmB,EAAnB,YAAY,mBAAG,IAAI,KAAA,EACnB,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACpB,KAAK,WAAA,EACL,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EACX,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,kBAAkB,wBAAA,EAClB,SAAS,eAAA,EACT,eAAe,qBAAA,EACf,MAAM,YAAA,EACN,KAAK,WAAA,EACL,eAAe,qBAAA,EACf,aAAqB,EAArB,KAAK,mBAAG,KAAK,CAAC,OAAO,KAAA,EACrB,YAAqB,EAArB,IAAI,mBAAG,KAAC,UAAU,KAAG,KAAA;IAErB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S,CAAC,EAC7B,KAAK,IAAI,CACR,qBAAG,SAAS,EAAC,wBAAwB,EAAC,KAAK,EAAE,kBAAkB,EAAE,gBAC9D,KAAK,IACJ,CACL,KACG,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { IThemeProps, TStyles } from '../../constants';
|
|
3
|
-
export interface ILoaderProps extends IThemeProps {
|
|
2
|
+
import { IFontFamilyProps, IThemeProps, TStyles } from '../../constants';
|
|
3
|
+
export interface ILoaderProps extends IThemeProps, IFontFamilyProps {
|
|
4
4
|
isLoader: boolean;
|
|
5
5
|
isFullScreen?: boolean;
|
|
6
6
|
isTextItalic?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IModalProps } from './types';
|
|
2
2
|
import '../../styles/styles.scss';
|
|
3
|
-
declare const Modal: ({ isModalOpen, isClosableOutside, isCloseIconHidden, isPopup, isBottomSheet, isDisabledBottomSheet, isCloseButtonDisabled, isResetPaddingBottom, modalId, content,
|
|
3
|
+
declare const Modal: ({ fontFamily, isModalOpen, isClosableOutside, isCloseIconHidden, isPopup, isBottomSheet, isDisabledBottomSheet, isCloseButtonDisabled, isResetPaddingBottom, modalId, content, bottomContent, title, titleIcons, platform, popupClassName, className, popupStyles, styles, titleStyles, contentStyles, iconColor, backgroundColor, modalMaxHeight, bottomSheetProps, externalBottomSheetScrollContainer, contextMenuProps, handleCloseModal, titleClassName, }: IModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
4
|
export default Modal;
|
|
@@ -30,37 +30,44 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
30
30
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
31
31
|
};
|
|
32
32
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
33
|
+
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
34
34
|
import classNames from 'classnames';
|
|
35
|
+
import { isArray } from 'lodash';
|
|
35
36
|
import { useModal } from '../../hooks/useModal';
|
|
36
37
|
import ContextMenu from '../ContextMenu';
|
|
37
38
|
import ScrollBar from '../ScrollBar';
|
|
38
39
|
import { DEFAULT_SCROLL_BAR_SIZE } from '../ScrollBar/ScrollBar';
|
|
39
|
-
import { checkIfContentIsCentered, generateBottomSheetClassName, generateClassNames, generateColor, generateIsCloseIconHidden, isMobilePlatform, } from '../../helpers';
|
|
40
|
-
import { EVENT_LISTENER_TYPES, PLATFORM } from '../../constants';
|
|
41
|
-
import { ReactComponent as CloseIcon } from '../../assets/icons/
|
|
40
|
+
import { checkIfContentIsCentered, generateBottomSheetClassName, generateClassNames, generateColor, generateFontFamilyStyle, generateIsCloseIconHidden, isMobilePlatform, } from '../../helpers';
|
|
41
|
+
import { COLORS, DRAGGABLE_KEY, EVENT_LISTENER_TYPES, MODAL_ICONS_PADDING_LEFT, PLATFORM } from '../../constants';
|
|
42
|
+
import { ReactComponent as CloseIcon } from '../../assets/icons/close-modal.svg';
|
|
42
43
|
import { ReactComponent as MoreIcon } from '../../assets/icons/more.svg';
|
|
43
44
|
import '../../styles/styles.scss';
|
|
44
45
|
var SCROLL_BAR_HEIGHT_WITH_PADDING = 'calc(100% - 20px)';
|
|
45
46
|
var MODAL_MARGIN_SIZE_WEB = 165;
|
|
46
47
|
var CONTENT_PADDING_TOP = 20;
|
|
47
|
-
var
|
|
48
|
+
var MODAL_TITLE_PADDING_BOTTOM = 12;
|
|
48
49
|
var MODAL_MARGIN_SIZE_MOBILE = 136;
|
|
49
50
|
var POPUP_CLASS_NAME = 'popup';
|
|
50
51
|
var MIN_SCROLL_TOP = 5;
|
|
52
|
+
var MODAL_PADDING_RIGHT = 20;
|
|
51
53
|
var CONTAINER_EDGE_MARGIN = 4;
|
|
52
54
|
var Modal = function (_a) {
|
|
53
|
-
var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, isPopup = _a.isPopup, _c = _a.isBottomSheet, isBottomSheet = _c === void 0 ? false : _c, _d = _a.isDisabledBottomSheet, isDisabledBottomSheet = _d === void 0 ? false : _d, _e = _a.isCloseButtonDisabled, isCloseButtonDisabled = _e === void 0 ? false : _e, _f = _a.isResetPaddingBottom, isResetPaddingBottom = _f === void 0 ? false : _f, modalId = _a.modalId, content = _a.content,
|
|
55
|
+
var fontFamily = _a.fontFamily, isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, isPopup = _a.isPopup, _c = _a.isBottomSheet, isBottomSheet = _c === void 0 ? false : _c, _d = _a.isDisabledBottomSheet, isDisabledBottomSheet = _d === void 0 ? false : _d, _e = _a.isCloseButtonDisabled, isCloseButtonDisabled = _e === void 0 ? false : _e, _f = _a.isResetPaddingBottom, isResetPaddingBottom = _f === void 0 ? false : _f, modalId = _a.modalId, content = _a.content, bottomContent = _a.bottomContent, title = _a.title, titleIcons = _a.titleIcons, _g = _a.platform, platform = _g === void 0 ? PLATFORM.web : _g, popupClassName = _a.popupClassName, className = _a.className, popupStyles = _a.popupStyles, styles = _a.styles, titleStyles = _a.titleStyles, contentStyles = _a.contentStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor, modalMaxHeight = _a.modalMaxHeight, bottomSheetProps = _a.bottomSheetProps, externalBottomSheetScrollContainer = _a.externalBottomSheetScrollContainer, contextMenuProps = _a.contextMenuProps, handleCloseModal = _a.handleCloseModal, titleClassName = _a.titleClassName;
|
|
54
56
|
var ref = useRef(null);
|
|
55
57
|
var titleRef = useRef(null);
|
|
58
|
+
var titleTextElementRef = useRef(null);
|
|
59
|
+
var iconsRef = useRef(null);
|
|
56
60
|
var scrollableContentRef = useRef(null);
|
|
57
61
|
var contentRef = useRef(null);
|
|
58
62
|
var scrollerRef = useRef(null);
|
|
59
|
-
var topContentRef = useRef(null);
|
|
60
63
|
var bottomContentRef = useRef(null);
|
|
61
64
|
var _h = useState(''), containerHeight = _h[0], setContainerHeight = _h[1];
|
|
62
|
-
var _j = useState(
|
|
63
|
-
var _k =
|
|
65
|
+
var _j = useState(0), iconsWidth = _j[0], setIconsWidth = _j[1];
|
|
66
|
+
var _k = useState(false), isTitleBorderVisible = _k[0], setIsTitleBorderVisible = _k[1];
|
|
67
|
+
var _l = useState(false), isBottomContentBorderVisible = _l[0], setIsBottomContentBorderVisible = _l[1];
|
|
68
|
+
var background = generateColor(backgroundColor, COLORS.colorBgBlackoutTransparent);
|
|
69
|
+
var popupOverlayStyle = __assign({ '--modal-background': background }, popupStyles);
|
|
70
|
+
var _m = useModal({
|
|
64
71
|
isModalOpen: isModalOpen,
|
|
65
72
|
platform: platform,
|
|
66
73
|
isDisabledBottomSheet: isDisabledBottomSheet,
|
|
@@ -69,10 +76,32 @@ var Modal = function (_a) {
|
|
|
69
76
|
isClosableOutside: isClosableOutside,
|
|
70
77
|
handleCloseModal: handleCloseModal,
|
|
71
78
|
popupClassName: classNames('modal', popupClassName),
|
|
72
|
-
popupStyles:
|
|
79
|
+
popupStyles: popupOverlayStyle,
|
|
80
|
+
bottomSheetStyles: { '--rsbs-backdrop-bg': background },
|
|
73
81
|
bottomSheetProps: bottomSheetProps,
|
|
74
82
|
scrollRef: externalBottomSheetScrollContainer || scrollerRef,
|
|
75
|
-
}), shouldUseBottomSheet =
|
|
83
|
+
}), shouldUseBottomSheet = _m.shouldUseBottomSheet, renderModal = _m.renderModal;
|
|
84
|
+
var findTitleElementWithText = function (root) {
|
|
85
|
+
var stack = [root];
|
|
86
|
+
while (stack.length) {
|
|
87
|
+
// take the first element from the stack
|
|
88
|
+
var node = stack.shift();
|
|
89
|
+
if (!node)
|
|
90
|
+
continue;
|
|
91
|
+
var childNodes = node.childNodes, children = node.children;
|
|
92
|
+
// check if the current node has any direct text nodes
|
|
93
|
+
// if it does, return this node immediately
|
|
94
|
+
if (Array.from(childNodes).some(function (_a) {
|
|
95
|
+
var nodeType = _a.nodeType, textContent = _a.textContent;
|
|
96
|
+
return nodeType === Node.TEXT_NODE && (textContent === null || textContent === void 0 ? void 0 : textContent.trim());
|
|
97
|
+
}))
|
|
98
|
+
return node;
|
|
99
|
+
// otherwise, add all children of the current node to the stack for further search
|
|
100
|
+
// only include elements that are actual HTMLElements
|
|
101
|
+
stack.push.apply(stack, Array.from(children).filter(function (child) { return child instanceof HTMLElement; }));
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
};
|
|
76
105
|
var generateAdditionalClassName = function () {
|
|
77
106
|
var bottomSheetClassName = generateBottomSheetClassName(platform, shouldUseBottomSheet);
|
|
78
107
|
return isPopup ? __spreadArray(__spreadArray([], bottomSheetClassName, true), [POPUP_CLASS_NAME], false) : bottomSheetClassName;
|
|
@@ -82,16 +111,15 @@ var Modal = function (_a) {
|
|
|
82
111
|
var MAX_MODAL_HEIGHT_WEB = modalMaxHeight || window.innerHeight - modalMargins;
|
|
83
112
|
var handleMouseDown = function (event) { return !isPopup && event.stopPropagation(); };
|
|
84
113
|
var handleSetContainerHeight = function (elementRef, maxModalHeight) {
|
|
85
|
-
var _a, _b
|
|
114
|
+
var _a, _b;
|
|
86
115
|
if (!elementRef)
|
|
87
116
|
return;
|
|
88
117
|
var height = elementRef.getBoundingClientRect().height;
|
|
89
118
|
var titleHeight = ((_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height) || 0;
|
|
90
|
-
var
|
|
91
|
-
var
|
|
92
|
-
var titleHeightWithMargin = titleHeight ? titleHeight + MODAL_TITLE_MARGIN_BOTTOM : titleHeight;
|
|
119
|
+
var bottomContentHeight = ((_b = bottomContentRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().height) || 0;
|
|
120
|
+
var titleHeightWithMargin = titleHeight ? titleHeight + MODAL_TITLE_PADDING_BOTTOM : titleHeight;
|
|
93
121
|
var defaultContentHeight = maxModalHeight - titleHeightWithMargin - CONTENT_PADDING_TOP;
|
|
94
|
-
var maxContentHeightValue = defaultContentHeight -
|
|
122
|
+
var maxContentHeightValue = defaultContentHeight - bottomContentHeight;
|
|
95
123
|
setContainerHeight("".concat(Math.min(height, maxContentHeightValue), "px"));
|
|
96
124
|
};
|
|
97
125
|
var handleSetContainerHeightWeb = function (contentRef) { return handleSetContainerHeight(contentRef, MAX_MODAL_HEIGHT_WEB); };
|
|
@@ -100,62 +128,101 @@ var Modal = function (_a) {
|
|
|
100
128
|
contentRef.current = elementRef;
|
|
101
129
|
handleSetContainerHeight(elementRef, MAX_MODAL_HEIGHT_MOBILE);
|
|
102
130
|
}, [modalMargins, modalMaxHeight]);
|
|
103
|
-
var handleScroll = function (event) {
|
|
131
|
+
var handleScroll = function (event) {
|
|
132
|
+
var contentScrollHeight = event.contentScrollHeight, clientHeight = event.clientHeight, scrollTop = event.scrollTop;
|
|
133
|
+
setIsTitleBorderVisible(scrollTop > MIN_SCROLL_TOP);
|
|
134
|
+
setIsBottomContentBorderVisible(scrollTop + clientHeight < contentScrollHeight - 1);
|
|
135
|
+
};
|
|
136
|
+
var handleScrollerRef = function (el) {
|
|
137
|
+
scrollerRef.current = el;
|
|
138
|
+
var _a = (el || {}).clientHeight, clientHeight = _a === void 0 ? 0 : _a;
|
|
139
|
+
if (bottomContent && el && clientHeight > 0) {
|
|
140
|
+
var scrollTop = el.scrollTop, scrollHeight = el.scrollHeight, clientHeight_1 = el.clientHeight;
|
|
141
|
+
setIsBottomContentBorderVisible(scrollTop + clientHeight_1 < scrollHeight - 1);
|
|
142
|
+
}
|
|
143
|
+
};
|
|
104
144
|
useEffect(function () {
|
|
105
145
|
var handleWindowResize = function () { return handleSetContainerHeightMobile(contentRef.current); };
|
|
106
146
|
isMobilePlatform(platform) && window.addEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize);
|
|
107
147
|
return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize); };
|
|
108
148
|
}, [handleSetContainerHeightMobile, platform]);
|
|
109
149
|
useEffect(function () {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
if (isModalOpen && isClosableOutside && ref.current && !ref.current.contains(e.target)) {
|
|
150
|
+
var checkIfClickedOutside = function (_a) {
|
|
151
|
+
var target = _a.target;
|
|
152
|
+
var refCurrent = ref.current;
|
|
153
|
+
if (isModalOpen && isClosableOutside && refCurrent && !refCurrent.contains(target))
|
|
115
154
|
handleCloseModal();
|
|
116
|
-
}
|
|
117
155
|
};
|
|
118
156
|
!isPopup && (document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true));
|
|
119
|
-
return function () {
|
|
120
|
-
document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true);
|
|
121
|
-
};
|
|
157
|
+
return function () { return document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true); };
|
|
122
158
|
}, [isModalOpen, isClosableOutside, handleCloseModal, isPopup]);
|
|
159
|
+
useLayoutEffect(function () {
|
|
160
|
+
var iconsRefCurrent = iconsRef.current;
|
|
161
|
+
if (!iconsRefCurrent)
|
|
162
|
+
return;
|
|
163
|
+
var resizeObserver = new ResizeObserver(function () {
|
|
164
|
+
var _a = iconsRefCurrent.getBoundingClientRect().width, width = _a === void 0 ? 0 : _a;
|
|
165
|
+
setIconsWidth(width);
|
|
166
|
+
});
|
|
167
|
+
resizeObserver.observe(iconsRefCurrent);
|
|
168
|
+
return function () { return resizeObserver.disconnect(); };
|
|
169
|
+
}, []);
|
|
170
|
+
useEffect(function () {
|
|
171
|
+
var titleRefCurrent = titleRef.current;
|
|
172
|
+
var titleTextElementRefCurrent = titleTextElementRef.current;
|
|
173
|
+
if (!titleTextElementRefCurrent && titleRefCurrent)
|
|
174
|
+
titleTextElementRef.current = findTitleElementWithText(titleRefCurrent);
|
|
175
|
+
titleTextElementRefCurrent === null || titleTextElementRefCurrent === void 0 ? void 0 : titleTextElementRefCurrent.classList.toggle('smartapp-modal__content--title__ellipsis', isPopup && isTitleBorderVisible);
|
|
176
|
+
}, [isPopup, isTitleBorderVisible]);
|
|
123
177
|
var renderTitle = function () {
|
|
124
|
-
return title && (_jsxs("div", __assign({ className: classNames({ 'smartapp-modal__content--
|
|
125
|
-
'smartapp-modal__content--title__ellipsis': isShadowVisible && isPopup,
|
|
126
|
-
}), style: titleStyles }, { children: title }))] })));
|
|
178
|
+
return title && (_jsxs("div", __assign({ className: classNames({ 'smartapp-modal__content--title__border': isTitleBorderVisible && isPopup }) }, { children: [isPopup && _jsx("div", { className: "smartapp-modal__content--title__draggable-zone ".concat(DRAGGABLE_KEY) }), !isCloseIconInvisible && renderCloseIconSpace({ elementRef: titleRef }), _jsx("div", __assign({ ref: titleRef, className: classNames("smartapp-modal__content--title ".concat(titleClassName)), style: titleStyles }, { children: title }))] })));
|
|
127
179
|
};
|
|
128
180
|
var renderCloseIcon = function () {
|
|
129
181
|
return !isCloseIconInvisible && (_jsx("div", __assign({ onClick: !isCloseButtonDisabled ? handleCloseModal : function () { }, className: classNames('smartapp-modal__content--close-icon', {
|
|
130
182
|
'smartapp-modal__content--close-icon__disabled': isCloseButtonDisabled,
|
|
183
|
+
'smartapp-modal__content--close-icon__accent': isPopup,
|
|
131
184
|
}) }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) })));
|
|
132
185
|
};
|
|
133
186
|
var renderCloseIconSpace = function (_a) {
|
|
134
|
-
var elementRef = _a.elementRef, _b = _a.
|
|
187
|
+
var elementRef = _a.elementRef, _b = _a.isContent, isContent = _b === void 0 ? false : _b;
|
|
135
188
|
var isContentCentered = checkIfContentIsCentered(elementRef);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
189
|
+
var baseWidth = iconsWidth + MODAL_ICONS_PADDING_LEFT;
|
|
190
|
+
var spaceWidth = isContent ? baseWidth : baseWidth + MODAL_PADDING_RIGHT;
|
|
191
|
+
return (_jsx("div", { style: { '--close-icon-space-width': "".concat(spaceWidth, "px") }, className: classNames('close-icon-space', {
|
|
139
192
|
'close-icon-space__content': isContent,
|
|
140
|
-
'close-icon-space__content--with-context-menu': isContent && contextMenuProps,
|
|
141
193
|
'close-icon-space__centered': isContentCentered,
|
|
142
|
-
'close-icon-
|
|
194
|
+
'close-icon-space__popup': isPopup,
|
|
143
195
|
}) }));
|
|
144
196
|
};
|
|
145
|
-
var
|
|
197
|
+
var renderTitleIcons = function () {
|
|
198
|
+
return (isArray(titleIcons) ? titleIcons : [titleIcons]).map(function (titleIcon, index) { return (_jsx("div", __assign({ className: "smartapp-modal__content--title-icon" }, { children: titleIcon }), index)); });
|
|
199
|
+
};
|
|
146
200
|
var renderContextMenuIcon = function () {
|
|
147
201
|
if (contextMenuProps) {
|
|
148
|
-
var openMenu = contextMenuProps.openMenu, isMenuOpen = contextMenuProps.isMenuOpen, remainingProps = __rest(contextMenuProps, ["openMenu", "isMenuOpen"]);
|
|
149
|
-
return (_jsxs("div", __assign({ className: classNames('smartapp-modal__content--context-menu-icon', { 'smartapp-modal__content--context-menu-icon__active': isMenuOpen }), onClick: openMenu }, { children: [_jsx(MoreIcon, {}), _jsx(ContextMenu, __assign({ isMenuOpen: isMenuOpen }, remainingProps))] })));
|
|
202
|
+
var openMenu = contextMenuProps.openMenu, isMenuOpen = contextMenuProps.isMenuOpen, contextMenuFontFamily = contextMenuProps.fontFamily, remainingProps = __rest(contextMenuProps, ["openMenu", "isMenuOpen", "fontFamily"]);
|
|
203
|
+
return (_jsxs("div", __assign({ className: classNames('smartapp-modal__content--context-menu-icon', { 'smartapp-modal__content--context-menu-icon__active': isMenuOpen }), onClick: openMenu }, { children: [_jsx(MoreIcon, {}), _jsx(ContextMenu, __assign({ isMenuOpen: isMenuOpen }, remainingProps, { fontFamily: contextMenuFontFamily || fontFamily }))] })));
|
|
150
204
|
}
|
|
151
205
|
};
|
|
152
|
-
var renderTopContent = function () { return topContent && _jsx("div", __assign({ ref: topContentRef }, { children: topContent })); };
|
|
153
206
|
var renderBottomContent = function () {
|
|
154
|
-
return bottomContent && (_jsx("div", __assign({ ref: bottomContentRef, className: classNames('smartapp-modal__content--bottom',
|
|
207
|
+
return bottomContent && (_jsx("div", __assign({ ref: bottomContentRef, className: classNames('smartapp-modal__content--bottom', {
|
|
208
|
+
'smartapp-modal__content--bottom__border': isBottomContentBorderVisible && isPopup,
|
|
209
|
+
}) }, { children: bottomContent })));
|
|
155
210
|
};
|
|
156
|
-
var modalContent = (_jsx("div", __assign({ ref: ref, className: classNames('smartapp-modal', {
|
|
157
|
-
|
|
158
|
-
|
|
211
|
+
var modalContent = (_jsx("div", __assign({ ref: ref, className: classNames('smartapp-modal', {
|
|
212
|
+
'smartapp-modal__bottom-sheet': shouldUseBottomSheet,
|
|
213
|
+
'smartapp-modal__popup': isPopup,
|
|
214
|
+
}, className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles), onMouseDown: handleMouseDown }, { children: _jsxs("div", __assign({ className: generateClassNames({
|
|
215
|
+
className: 'smartapp-modal__content',
|
|
216
|
+
delimiter: '--',
|
|
217
|
+
additionalClassName: generateAdditionalClassName(),
|
|
218
|
+
}), style: contentStyles }, { children: [renderTitle(), _jsxs("div", __assign({ ref: iconsRef, className: "smartapp-modal__content--icons" }, { children: [titleIcons && renderTitleIcons(), renderContextMenuIcon(), renderCloseIcon()] })), _jsx(ScrollBar, { contentId: modalId, containerEdgeMargin: CONTAINER_EDGE_MARGIN, scrollerProps: { elementRef: handleScrollerRef }, content: _jsxs("div", __assign({ ref: isMobilePlatform(platform) ? handleSetContainerHeightMobile : handleSetContainerHeightWeb, className: classNames('smartapp-modal__content--scrollable', {
|
|
219
|
+
'smartapp-modal__content--scrollable__pb': !bottomContent && !isResetPaddingBottom,
|
|
220
|
+
}) }, { children: [!title &&
|
|
221
|
+
!isCloseIconInvisible &&
|
|
222
|
+
renderCloseIconSpace({
|
|
223
|
+
elementRef: scrollableContentRef,
|
|
224
|
+
isContent: true,
|
|
225
|
+
}), _jsx("div", __assign({ ref: scrollableContentRef }, { children: content }))] })), containerHeight: containerHeight, trackYHeight: bottomContent ? DEFAULT_SCROLL_BAR_SIZE : SCROLL_BAR_HEIGHT_WITH_PADDING, handleScroll: handleScroll }), renderBottomContent()] })) })));
|
|
159
226
|
return isPopup ? modalContent : renderModal(modalContent);
|
|
160
227
|
};
|
|
161
228
|
export default Modal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAa,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClF,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,kBAAkB,EAClB,aAAa,EACb,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAEhE,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,qCAAqC,CAAA;AACjF,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,0BAA0B,CAAA;AAEjC,IAAM,8BAA8B,GAAG,mBAAmB,CAAA;AAC1D,IAAM,qBAAqB,GAAG,GAAG,CAAA;AACjC,IAA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CAAC,uBAAuB,CAAC,CAAC,CAAC,8BAA8B,EACtF,YAAY,EAAE,YAAY,GAC1B,EACD,mBAAmB,EAAE,KAClB,IACF,CACP,CAAA;IAED,OAAO,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;AAC3D,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React, { ReactElement, RefObject } from 'react';
|
|
1
|
+
import React, { ReactElement, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { BottomSheetProps } from 'alex.chus-react-spring-bottom-sheet';
|
|
3
|
-
import {
|
|
3
|
+
import { IFontFamilyProps, IPlatformProps, TStyles } from '../../constants';
|
|
4
4
|
import { IContextMenuProps } from '../ContextMenu/types';
|
|
5
|
-
export interface IModalProps extends
|
|
5
|
+
export interface IModalProps extends IPlatformProps, IFontFamilyProps {
|
|
6
6
|
isModalOpen: boolean;
|
|
7
7
|
isClosableOutside?: boolean;
|
|
8
8
|
isCloseIconHidden?: boolean;
|
|
@@ -13,12 +13,12 @@ export interface IModalProps extends ICommonProps {
|
|
|
13
13
|
isResetPaddingBottom?: boolean;
|
|
14
14
|
modalId?: string;
|
|
15
15
|
content: ReactElement;
|
|
16
|
-
topContent?: ReactElement;
|
|
17
16
|
bottomContent?: ReactElement;
|
|
18
|
-
title?:
|
|
19
|
-
|
|
17
|
+
title?: ReactNode;
|
|
18
|
+
titleIcons?: ReactElement | ReactElement[];
|
|
20
19
|
popupClassName?: string;
|
|
21
20
|
className?: string;
|
|
21
|
+
titleClassName?: string;
|
|
22
22
|
popupStyles?: TStyles;
|
|
23
23
|
styles?: TStyles;
|
|
24
24
|
titleStyles?: TStyles;
|
|
@@ -32,5 +32,4 @@ export interface IModalProps extends ICommonProps {
|
|
|
32
32
|
openMenu: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
33
33
|
};
|
|
34
34
|
handleCloseModal: () => void;
|
|
35
|
-
titleClassName?: string;
|
|
36
35
|
}
|
|
@@ -4,5 +4,5 @@ export declare const INDEFINITELY_FULL_SCREEN_POSITION: {
|
|
|
4
4
|
right: string;
|
|
5
5
|
left: string;
|
|
6
6
|
};
|
|
7
|
-
declare const Notification: ({ theme, platform, id, type, isAutoHidden,
|
|
7
|
+
declare const Notification: ({ theme, platform, fontFamily, id, type, isAutoHidden, isCloseIconHidden, layoutType, isAllIndefinitelyNeedToBeClosed, indefinitelyFullScreenPosition, hideDuration, distanceFromBottom, containerClassName, className, containerStyles, styles, title, avatar, text, subText, content, iconColor, action, onClose, }: INotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default Notification;
|