@expressms/smartapp-ui 3.0.0-alpha.12 → 3.0.0-alpha.120

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.
Files changed (152) hide show
  1. package/build/main/assets/icons/accepted-invite-status.svg +4 -0
  2. package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
  3. package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
  4. package/build/main/assets/icons/chevron.svg +3 -0
  5. package/build/main/assets/icons/declined-invite-status.svg +4 -0
  6. package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
  7. package/build/main/assets/icons/notification-close.svg +1 -1
  8. package/build/main/assets/icons/notification-error.svg +5 -0
  9. package/build/main/assets/icons/notification-failure-filled.svg +3 -0
  10. package/build/main/assets/icons/notification-info-filled.svg +5 -0
  11. package/build/main/assets/icons/notification-success-filled.svg +4 -0
  12. package/build/main/assets/icons/select-arrow-down.svg +3 -0
  13. package/build/main/assets/icons/select-arrow-up.svg +3 -0
  14. package/build/main/assets/storybook/index.d.ts +2 -0
  15. package/build/main/assets/storybook/index.js +2 -0
  16. package/build/main/assets/storybook/index.js.map +1 -1
  17. package/build/main/constants/constants.d.ts +81 -43
  18. package/build/main/constants/constants.js +119 -47
  19. package/build/main/constants/constants.js.map +1 -1
  20. package/build/main/constants/types.d.ts +10 -1
  21. package/build/main/helpers/index.d.ts +3 -1
  22. package/build/main/helpers/index.js +8 -2
  23. package/build/main/helpers/index.js.map +1 -1
  24. package/build/main/hooks/useCharHintDisplay.d.ts +9 -0
  25. package/build/main/hooks/useCharHintDisplay.js +35 -0
  26. package/build/main/hooks/useCharHintDisplay.js.map +1 -0
  27. package/build/main/hooks/useMobileLongTap.d.ts +16 -0
  28. package/build/main/hooks/useMobileLongTap.js +55 -0
  29. package/build/main/hooks/useMobileLongTap.js.map +1 -0
  30. package/build/main/hooks/useModal.d.ts +17 -10
  31. package/build/main/hooks/useModal.js +173 -12
  32. package/build/main/hooks/useModal.js.map +1 -1
  33. package/build/main/index.d.ts +2 -0
  34. package/build/main/index.js +2 -0
  35. package/build/main/index.js.map +1 -1
  36. package/build/main/styles/styles.scss +2 -2
  37. package/build/main//321/201omponents/AttachedFile/AttachedFile.js +3 -0
  38. package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -1
  39. package/build/main//321/201omponents/Avatar/Avatar.d.ts +3 -2
  40. package/build/main//321/201omponents/Avatar/Avatar.js +52 -23
  41. package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -1
  42. package/build/main//321/201omponents/Avatar/types.d.ts +9 -5
  43. package/build/main//321/201omponents/Avatar/types.js +5 -2
  44. package/build/main//321/201omponents/Avatar/types.js.map +1 -1
  45. package/build/main//321/201omponents/Button/Button.d.ts +1 -1
  46. package/build/main//321/201omponents/Button/Button.js +21 -9
  47. package/build/main//321/201omponents/Button/Button.js.map +1 -1
  48. package/build/main//321/201omponents/Button/types.d.ts +8 -2
  49. package/build/main//321/201omponents/Button/types.js +3 -0
  50. package/build/main//321/201omponents/Button/types.js.map +1 -1
  51. package/build/main//321/201omponents/Calendar/Calendar.d.ts +2 -2
  52. package/build/main//321/201omponents/Calendar/Calendar.js +88 -41
  53. package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -1
  54. package/build/main//321/201omponents/Calendar/types.d.ts +18 -8
  55. package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +1 -1
  56. package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +1 -1
  57. package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +1 -1
  58. package/build/main//321/201omponents/Chip/Chip.d.ts +3 -2
  59. package/build/main//321/201omponents/Chip/Chip.js +158 -26
  60. package/build/main//321/201omponents/Chip/Chip.js.map +1 -1
  61. package/build/main//321/201omponents/Chip/types.d.ts +13 -4
  62. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
  63. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
  64. package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
  65. package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
  66. package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
  67. package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
  68. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +1 -1
  69. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +3 -2
  70. package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -1
  71. package/build/main//321/201omponents/ConfirmationModal/types.d.ts +5 -2
  72. package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +1 -1
  73. package/build/main//321/201omponents/ContextMenu/ContextMenu.js +66 -26
  74. package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -1
  75. package/build/main//321/201omponents/ContextMenu/types.d.ts +12 -7
  76. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
  77. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
  78. package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
  79. package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
  80. package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
  81. package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
  82. package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
  83. package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
  84. package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
  85. package/build/main//321/201omponents/CustomSelect/CustomSelect.js +7 -6
  86. package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -1
  87. package/build/main//321/201omponents/CustomSelect/selectStyles.js +20 -21
  88. package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -1
  89. package/build/main//321/201omponents/CustomSelect/types.d.ts +7 -1
  90. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +1 -1
  91. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +33 -24
  92. package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -1
  93. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +11 -0
  94. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +38 -0
  95. package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
  96. package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +4 -5
  97. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +1 -1
  98. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +24 -18
  99. package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -1
  100. package/build/main//321/201omponents/DraggablePopup/types.d.ts +8 -8
  101. package/build/main//321/201omponents/Flex/Flex.d.ts +1 -1
  102. package/build/main//321/201omponents/Flex/Flex.js +2 -2
  103. package/build/main//321/201omponents/Flex/Flex.js.map +1 -1
  104. package/build/main//321/201omponents/Flex/types.d.ts +2 -0
  105. package/build/main//321/201omponents/Input/Input.d.ts +1 -1
  106. package/build/main//321/201omponents/Input/Input.js +75 -33
  107. package/build/main//321/201omponents/Input/Input.js.map +1 -1
  108. package/build/main//321/201omponents/Input/types.d.ts +10 -3
  109. package/build/main//321/201omponents/ListItem/ListItem.js +21 -17
  110. package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -1
  111. package/build/main//321/201omponents/ListItem/types.d.ts +7 -3
  112. package/build/main//321/201omponents/Modal/Modal.d.ts +3 -2
  113. package/build/main//321/201omponents/Modal/Modal.js +116 -48
  114. package/build/main//321/201omponents/Modal/Modal.js.map +1 -1
  115. package/build/main//321/201omponents/Modal/types.d.ts +36 -2
  116. package/build/main//321/201omponents/Notification/Notification.d.ts +4 -6
  117. package/build/main//321/201omponents/Notification/Notification.js +72 -25
  118. package/build/main//321/201omponents/Notification/Notification.js.map +1 -1
  119. package/build/main//321/201omponents/Notification/types.d.ts +17 -2
  120. package/build/main//321/201omponents/Stories/Stories.js +72 -4
  121. package/build/main//321/201omponents/Stories/Stories.js.map +1 -1
  122. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +6 -0
  123. package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -1
  124. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +2 -1
  125. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +4 -3
  126. package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -1
  127. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +21 -50
  128. package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -1
  129. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -2
  130. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +34 -37
  131. package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -1
  132. package/build/main//321/201omponents/UserDropdown/Option/Option.js +2 -2
  133. package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -1
  134. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +1 -0
  135. package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -1
  136. package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +4 -3
  137. package/build/main//321/201omponents/UserDropdown/UserDropdown.js +221 -79
  138. package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -1
  139. package/build/main//321/201omponents/UserDropdown/helpers.d.ts +7 -3
  140. package/build/main//321/201omponents/UserDropdown/helpers.js +4 -2
  141. package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -1
  142. package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +1 -1
  143. package/build/main//321/201omponents/UserDropdown/selectStyles.js +35 -21
  144. package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -1
  145. package/build/main//321/201omponents/UserDropdown/types.d.ts +91 -58
  146. package/build/main//321/201omponents/UserDropdown/types.js.map +1 -1
  147. package/package.json +10 -7
  148. package/build/main/assets/icons/avatar-arrow-down.svg +0 -3
  149. package/build/main/assets/icons/avatar-arrow-up.svg +0 -3
  150. package/build/main/hooks/useLongTap.d.ts +0 -12
  151. package/build/main/hooks/useLongTap.js +0 -29
  152. package/build/main/hooks/useLongTap.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { ReactElement, RefObject } from 'react';
2
- import { IFontFamilyProps, TStyles } from '../../constants';
2
+ import { IFontFamilyProps, TAvatar, 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';
@@ -20,16 +20,17 @@ export interface NotInteractiveIconItemProps {
20
20
  export interface NotInteractiveIndicatorItemProps {
21
21
  element: 'indicator';
22
22
  color?: TIndicatorColor;
23
- isSelected?: boolean;
24
23
  }
25
24
  export interface NotInteractiveNoElementItemProps {
26
25
  element: 'no-element';
27
- isSelected?: boolean;
28
26
  secondaryText?: string;
29
27
  secondaryTextColor?: string;
28
+ secondaryTextStyles?: TStyles;
29
+ secondaryTextClassName?: string;
30
30
  }
31
31
  export type NotInteractiveItemProps = (NotInteractiveIconItemProps | NotInteractiveIndicatorItemProps | NotInteractiveNoElementItemProps) & {
32
32
  type: 'not-interactive';
33
+ isSelected?: boolean;
33
34
  };
34
35
  export type IListItemProps = IFontFamilyProps & (InteractiveItemProps | NotInteractiveItemProps) & {
35
36
  text: string;
@@ -37,6 +38,9 @@ export type IListItemProps = IFontFamilyProps & (InteractiveItemProps | NotInter
37
38
  className?: string;
38
39
  styles?: TStyles;
39
40
  textStyles?: TStyles;
41
+ primaryTextStyles?: TStyles;
42
+ primaryTextClassName?: string;
40
43
  interactiveElementStyles?: TStyles;
41
44
  textRef?: RefObject<HTMLDivElement | null>;
45
+ avatar?: TAvatar;
42
46
  };
@@ -1,4 +1,5 @@
1
- import { IModalProps } from './types';
1
+ import { IModalProps, TBottomSheetScrollMobileConfig } from './types';
2
2
  import '../../styles/styles.scss';
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;
3
+ export declare const DEFAULT_BOTTOM_SHEET_SCROLL_MOBILE_CONFIG: TBottomSheetScrollMobileConfig;
4
+ declare const Modal: ({ fontFamily, isModalOpen, isClosableOutside, isCloseIconHidden, isPopup, isBottomSheet, isDisabledBottomSheet, isCloseButtonDisabled, isResetPaddingBottom, isScrollBordersVisible, isBottomContentBorderShown, isNeedToScrollUp, isDisablePopupDragging, modalId, contentId, modalRef: outerModalRef, content, bottomContent, title, titleIcons, platform, popupClassName, className, titleClassName, iconsClassName, popupStyles, styles, titleStyles, contentStyles, scrollableContentStyles, iconColor, backgroundColor, modalMaxHeight, bottomSheetProps, bottomSheetDetent, bottomSheetStyles, externalBottomSheetScrollContainer, contextMenuProps, bottomSheetScrollMobileConfig, handleChangeTitleBorderDisplayed, handleClickOutside, handleCloseModal, handleBottomSheetInitialized, onScroll: externalHandleScroll, }: IModalProps) => import("react/jsx-runtime").JSX.Element | null;
4
5
  export default Modal;
@@ -30,30 +30,41 @@ 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
+ /* eslint-disable max-lines */
33
34
  import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
34
35
  import classNames from 'classnames';
35
- import { isArray } from 'lodash';
36
+ import { isArray, isNil } from 'lodash';
36
37
  import { useModal } from '../../hooks/useModal';
37
38
  import ContextMenu from '../ContextMenu';
38
39
  import ScrollBar from '../ScrollBar';
39
40
  import { DEFAULT_SCROLL_BAR_SIZE } from '../ScrollBar/ScrollBar';
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';
41
+ import { checkIfContentIsCentered, clickOutsideTheModal, generateBottomSheetClassName, generateClassNames, generateColor, generateFontFamilyStyle, generateIsCloseIconHidden, isAndroidPlatform, isIosPlatform, isMobilePlatform, } from '../../helpers';
42
+ import { BOTTOM_SHEET_SCROLL_POSITION, COLORS, DRAGGABLE_KEY, EVENT_LISTENER_TYPES, MODAL_ICONS_PADDING_LEFT, PLATFORM, SMARTAPP_MODAL_ID, } from '../../constants';
42
43
  import { ReactComponent as CloseIcon } from '../../assets/icons/close-modal.svg';
43
44
  import { ReactComponent as MoreIcon } from '../../assets/icons/more.svg';
44
45
  import '../../styles/styles.scss';
45
46
  var SCROLL_BAR_HEIGHT_WITH_PADDING = 'calc(100% - 20px)';
46
47
  var MODAL_MARGIN_SIZE_WEB = 165;
47
48
  var CONTENT_PADDING_TOP = 20;
48
- var MODAL_TITLE_PADDING_BOTTOM = 12;
49
+ var MODAL_TITLE_PADDING_BOTTOM = 16;
49
50
  var MODAL_MARGIN_SIZE_MOBILE = 136;
50
51
  var POPUP_CLASS_NAME = 'popup';
51
52
  var MIN_SCROLL_TOP = 5;
52
53
  var MODAL_PADDING_RIGHT = 20;
53
54
  var CONTAINER_EDGE_MARGIN = 4;
55
+ export var DEFAULT_BOTTOM_SHEET_SCROLL_MOBILE_CONFIG = {
56
+ scrollTo: BOTTOM_SHEET_SCROLL_POSITION.bottom,
57
+ extraPaddingFocusedElement: 0,
58
+ shouldDoScrollToFocusedElement: true,
59
+ };
60
+ var TITLE_CLASS_NAMES = {
61
+ border: 'smartapp-modal__content--title__border',
62
+ ellipsis: 'smartapp-modal__content--title__ellipsis',
63
+ ellipsisContainer: 'smartapp-modal__content--title__ellipsis-container',
64
+ };
54
65
  var Modal = function (_a) {
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;
56
- var ref = useRef(null);
66
+ var fontFamily = _a.fontFamily, isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, _c = _a.isPopup, isPopup = _c === void 0 ? false : _c, _d = _a.isBottomSheet, isBottomSheet = _d === void 0 ? false : _d, _e = _a.isDisabledBottomSheet, isDisabledBottomSheet = _e === void 0 ? false : _e, _f = _a.isCloseButtonDisabled, isCloseButtonDisabled = _f === void 0 ? false : _f, _g = _a.isResetPaddingBottom, isResetPaddingBottom = _g === void 0 ? false : _g, _h = _a.isScrollBordersVisible, isScrollBordersVisible = _h === void 0 ? false : _h, _j = _a.isBottomContentBorderShown, isBottomContentBorderShown = _j === void 0 ? false : _j, _k = _a.isNeedToScrollUp, isNeedToScrollUp = _k === void 0 ? false : _k, _l = _a.isDisablePopupDragging, isDisablePopupDragging = _l === void 0 ? false : _l, modalId = _a.modalId, contentId = _a.contentId, outerModalRef = _a.modalRef, content = _a.content, bottomContent = _a.bottomContent, title = _a.title, titleIcons = _a.titleIcons, _m = _a.platform, platform = _m === void 0 ? PLATFORM.web : _m, popupClassName = _a.popupClassName, className = _a.className, titleClassName = _a.titleClassName, iconsClassName = _a.iconsClassName, popupStyles = _a.popupStyles, styles = _a.styles, titleStyles = _a.titleStyles, contentStyles = _a.contentStyles, scrollableContentStyles = _a.scrollableContentStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor, modalMaxHeight = _a.modalMaxHeight, bottomSheetProps = _a.bottomSheetProps, bottomSheetDetent = _a.bottomSheetDetent, bottomSheetStyles = _a.bottomSheetStyles, externalBottomSheetScrollContainer = _a.externalBottomSheetScrollContainer, contextMenuProps = _a.contextMenuProps, _o = _a.bottomSheetScrollMobileConfig, bottomSheetScrollMobileConfig = _o === void 0 ? DEFAULT_BOTTOM_SHEET_SCROLL_MOBILE_CONFIG : _o, handleChangeTitleBorderDisplayed = _a.handleChangeTitleBorderDisplayed, handleClickOutside = _a.handleClickOutside, handleCloseModal = _a.handleCloseModal, handleBottomSheetInitialized = _a.handleBottomSheetInitialized, externalHandleScroll = _a.onScroll;
67
+ var localModalRef = useRef(null);
57
68
  var titleRef = useRef(null);
58
69
  var titleTextElementRef = useRef(null);
59
70
  var iconsRef = useRef(null);
@@ -61,26 +72,39 @@ var Modal = function (_a) {
61
72
  var contentRef = useRef(null);
62
73
  var scrollerRef = useRef(null);
63
74
  var bottomContentRef = useRef(null);
64
- var _h = useState(''), containerHeight = _h[0], setContainerHeight = _h[1];
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];
75
+ var scrollbarRef = useRef(null);
76
+ var isAndroidContainerHeightInitializedRef = useRef(false);
77
+ var _p = useState(''), containerHeight = _p[0], setContainerHeight = _p[1];
78
+ var _q = useState(0), iconsWidth = _q[0], setIconsWidth = _q[1];
79
+ var _r = useState(false), isTitleBorderVisible = _r[0], setIsTitleBorderVisible = _r[1];
80
+ var _s = useState(false), isBottomContentBorderVisible = _s[0], setIsBottomContentBorderVisible = _s[1];
81
+ var modalRef = outerModalRef || localModalRef;
68
82
  var background = generateColor(backgroundColor, COLORS.colorBgBlackoutTransparent);
83
+ var isScrollBordersAvailable = isPopup || isScrollBordersVisible;
84
+ var isTitleBorderDisplayed = isScrollBordersAvailable && isTitleBorderVisible;
85
+ var isBottomContentBorderDisplayed = (isScrollBordersAvailable && isBottomContentBorderVisible) || isBottomContentBorderShown;
86
+ var _t = bottomSheetScrollMobileConfig.shouldDoScrollToFocusedElement, shouldDoScrollToFocusedElement = _t === void 0 ? true : _t;
69
87
  var popupOverlayStyle = __assign({ '--modal-background': background }, popupStyles);
70
- var _m = useModal({
88
+ var _u = useModal({
71
89
  isModalOpen: isModalOpen,
72
90
  platform: platform,
73
91
  isDisabledBottomSheet: isDisabledBottomSheet,
74
92
  initialIsBottomSheet: isBottomSheet,
75
- modalRef: ref,
93
+ modalRef: modalRef,
76
94
  isClosableOutside: isClosableOutside,
77
95
  handleCloseModal: handleCloseModal,
96
+ handleClickOutside: handleClickOutside,
97
+ handleBottomSheetInitialized: handleBottomSheetInitialized,
78
98
  popupClassName: classNames('modal', popupClassName),
79
99
  popupStyles: popupOverlayStyle,
80
- bottomSheetStyles: { '--rsbs-backdrop-bg': background },
100
+ bottomSheetStyles: bottomSheetStyles,
81
101
  bottomSheetProps: bottomSheetProps,
102
+ bottomSheetDetent: bottomSheetDetent,
82
103
  scrollRef: externalBottomSheetScrollContainer || scrollerRef,
83
- }), shouldUseBottomSheet = _m.shouldUseBottomSheet, renderModal = _m.renderModal;
104
+ bottomSheetScrollMobileConfig: bottomSheetScrollMobileConfig,
105
+ }), shouldUseBottomSheet = _u.shouldUseBottomSheet, renderModal = _u.renderModal, offsetScrollY = _u.offsetScrollY, bottomKeyboardPadding = _u.bottomKeyboardPadding;
106
+ var isIos = isIosPlatform(platform);
107
+ var isAndroid = isAndroidPlatform(platform);
84
108
  var findTitleElementWithText = function (root) {
85
109
  var stack = [root];
86
110
  while (stack.length) {
@@ -107,31 +131,55 @@ var Modal = function (_a) {
107
131
  return isPopup ? __spreadArray(__spreadArray([], bottomSheetClassName, true), [POPUP_CLASS_NAME], false) : bottomSheetClassName;
108
132
  };
109
133
  var isCloseIconInvisible = generateIsCloseIconHidden(platform, isCloseIconHidden);
134
+ var isThereTitleIcons = !isCloseIconInvisible || !isNil(titleIcons);
110
135
  var modalMargins = isMobilePlatform(platform) ? MODAL_MARGIN_SIZE_MOBILE : 2 * MODAL_MARGIN_SIZE_WEB;
111
136
  var MAX_MODAL_HEIGHT_WEB = modalMaxHeight || window.innerHeight - modalMargins;
112
- var handleMouseDown = function (event) { return !isPopup && event.stopPropagation(); };
113
- var handleSetContainerHeight = function (elementRef, maxModalHeight) {
137
+ var handleMouseDown = function (event) {
138
+ var target = event.target;
139
+ if (target instanceof HTMLElement || target instanceof SVGElement) {
140
+ target.closest('.smartapp-custom-select__dropdown-indicator') && event.stopPropagation();
141
+ }
142
+ };
143
+ var handleSetContainerHeight = useCallback(function (elementRef, maxModalHeight) {
114
144
  var _a, _b;
115
145
  if (!elementRef)
116
- return;
146
+ return false;
117
147
  var height = elementRef.getBoundingClientRect().height;
118
148
  var titleHeight = ((_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height) || 0;
119
149
  var bottomContentHeight = ((_b = bottomContentRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().height) || 0;
120
150
  var titleHeightWithMargin = titleHeight ? titleHeight + MODAL_TITLE_PADDING_BOTTOM : titleHeight;
121
151
  var defaultContentHeight = maxModalHeight - titleHeightWithMargin - CONTENT_PADDING_TOP;
122
152
  var maxContentHeightValue = defaultContentHeight - bottomContentHeight;
123
- setContainerHeight("".concat(Math.min(height, maxContentHeightValue), "px"));
124
- };
125
- var handleSetContainerHeightWeb = function (contentRef) { return handleSetContainerHeight(contentRef, MAX_MODAL_HEIGHT_WEB); };
153
+ var nextContainerHeight = Math.min(height, maxContentHeightValue);
154
+ // Если пересчет на андроиде выдает 0, оставляем как есть
155
+ if (isAndroid && nextContainerHeight <= 0)
156
+ return false;
157
+ setContainerHeight("".concat(nextContainerHeight, "px"));
158
+ return true;
159
+ }, [isAndroid]);
160
+ var handleSetContainerHeightWeb = useCallback(function (contentRef) { return handleSetContainerHeight(contentRef, MAX_MODAL_HEIGHT_WEB); },
161
+ //eslint-disable-next-line
162
+ [contentId, modalMaxHeight]);
126
163
  var handleSetContainerHeightMobile = useCallback(function (elementRef) {
127
- var MAX_MODAL_HEIGHT_MOBILE = modalMaxHeight || window.innerHeight - modalMargins;
164
+ // Для Android BottomSheet повторный замер запрещаем после первого успешного расчета.
165
+ if (isAndroid && isAndroidContainerHeightInitializedRef.current)
166
+ return;
167
+ var visualViewport = window.visualViewport, innerHeight = window.innerHeight;
168
+ var MAX_MODAL_HEIGHT_MOBILE = modalMaxHeight || ((visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.height) || innerHeight) - modalMargins;
128
169
  contentRef.current = elementRef;
129
- handleSetContainerHeight(elementRef, MAX_MODAL_HEIGHT_MOBILE);
130
- }, [modalMargins, modalMaxHeight]);
170
+ var isContainerHeightUpdated = handleSetContainerHeight(elementRef, MAX_MODAL_HEIGHT_MOBILE);
171
+ if (isAndroid && isContainerHeightUpdated)
172
+ isAndroidContainerHeightInitializedRef.current = true;
173
+ },
174
+ /* eslint-disable-next-line */
175
+ [isAndroid, handleSetContainerHeight]);
131
176
  var handleScroll = function (event) {
132
177
  var contentScrollHeight = event.contentScrollHeight, clientHeight = event.clientHeight, scrollTop = event.scrollTop;
133
- setIsTitleBorderVisible(scrollTop > MIN_SCROLL_TOP);
178
+ var isTitleBorderShown = scrollTop > MIN_SCROLL_TOP;
179
+ setIsTitleBorderVisible(isTitleBorderShown);
180
+ handleChangeTitleBorderDisplayed === null || handleChangeTitleBorderDisplayed === void 0 ? void 0 : handleChangeTitleBorderDisplayed(isTitleBorderShown);
134
181
  setIsBottomContentBorderVisible(scrollTop + clientHeight < contentScrollHeight - 1);
182
+ externalHandleScroll === null || externalHandleScroll === void 0 ? void 0 : externalHandleScroll(event);
135
183
  };
136
184
  var handleScrollerRef = function (el) {
137
185
  scrollerRef.current = el;
@@ -143,19 +191,25 @@ var Modal = function (_a) {
143
191
  };
144
192
  useEffect(function () {
145
193
  var handleWindowResize = function () { return handleSetContainerHeightMobile(contentRef.current); };
146
- isMobilePlatform(platform) && window.addEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize);
194
+ isIos && window.addEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize);
147
195
  return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize); };
148
- }, [handleSetContainerHeightMobile, platform]);
196
+ }, [handleSetContainerHeightMobile, isIos]);
197
+ useEffect(function () {
198
+ if (!isAndroid || !isModalOpen)
199
+ return;
200
+ isAndroidContainerHeightInitializedRef.current = false;
201
+ handleSetContainerHeightMobile(contentRef.current);
202
+ }, [modalId, isAndroid, isModalOpen, handleSetContainerHeightMobile]);
149
203
  useEffect(function () {
150
204
  var checkIfClickedOutside = function (_a) {
151
205
  var target = _a.target;
152
- var refCurrent = ref.current;
153
- if (isModalOpen && isClosableOutside && refCurrent && !refCurrent.contains(target))
154
- handleCloseModal();
206
+ var modalRefCurrent = modalRef.current;
207
+ if (isModalOpen && isClosableOutside && modalRefCurrent && !modalRefCurrent.contains(target))
208
+ clickOutsideTheModal(handleCloseModal, handleClickOutside);
155
209
  };
156
- !isPopup && (document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true));
210
+ !isPopup && !shouldUseBottomSheet && (document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true));
157
211
  return function () { return document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true); };
158
- }, [isModalOpen, isClosableOutside, handleCloseModal, isPopup]);
212
+ }, [handleClickOutside, handleCloseModal, isClosableOutside, isModalOpen, isPopup, modalRef, shouldUseBottomSheet]);
159
213
  useLayoutEffect(function () {
160
214
  var resizeObserver = new ResizeObserver(function () {
161
215
  var _a;
@@ -169,19 +223,36 @@ var Modal = function (_a) {
169
223
  return function () { return resizeObserver.disconnect(); };
170
224
  }, []);
171
225
  useEffect(function () {
226
+ var _a;
172
227
  var titleRefCurrent = titleRef.current;
173
228
  var titleTextElementRefCurrent = titleTextElementRef.current;
174
- if (!titleTextElementRefCurrent && titleRefCurrent)
175
- titleTextElementRef.current = findTitleElementWithText(titleRefCurrent);
176
- titleTextElementRefCurrent === null || titleTextElementRefCurrent === void 0 ? void 0 : titleTextElementRefCurrent.classList.toggle('smartapp-modal__content--title__ellipsis', isPopup && isTitleBorderVisible);
177
- }, [isPopup, isTitleBorderVisible]);
229
+ if (!titleTextElementRefCurrent && titleRefCurrent) {
230
+ var titleElementWithText = findTitleElementWithText(titleRefCurrent);
231
+ titleTextElementRef.current = titleElementWithText;
232
+ titleTextElementRefCurrent = titleElementWithText;
233
+ }
234
+ var parentClassList = (_a = titleTextElementRefCurrent === null || titleTextElementRefCurrent === void 0 ? void 0 : titleTextElementRefCurrent.parentElement) === null || _a === void 0 ? void 0 : _a.classList;
235
+ titleTextElementRefCurrent === null || titleTextElementRefCurrent === void 0 ? void 0 : titleTextElementRefCurrent.classList.toggle(TITLE_CLASS_NAMES.ellipsis, isTitleBorderDisplayed);
236
+ !(parentClassList === null || parentClassList === void 0 ? void 0 : parentClassList.contains(TITLE_CLASS_NAMES.border)) && (parentClassList === null || parentClassList === void 0 ? void 0 : parentClassList.toggle(TITLE_CLASS_NAMES.ellipsisContainer, isTitleBorderDisplayed));
237
+ }, [isTitleBorderDisplayed]);
238
+ useEffect(function () {
239
+ var scrollbarRefCurrent = scrollbarRef.current;
240
+ if (isNeedToScrollUp && scrollbarRefCurrent)
241
+ scrollbarRefCurrent.scrollTop = 0;
242
+ }, [isNeedToScrollUp]);
243
+ useEffect(function () {
244
+ var scrollbarRefCurrent = scrollbarRef.current;
245
+ if (scrollbarRefCurrent && offsetScrollY)
246
+ scrollbarRefCurrent.scrollTop += offsetScrollY;
247
+ }, [offsetScrollY]);
178
248
  var renderTitle = function () {
179
- 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: "smartapp-modal__content--title ".concat(titleClassName), style: titleStyles }, { children: title }))] })));
249
+ return title && (_jsxs("div", __assign({ className: classNames({ 'smartapp-modal__content--title__border': isTitleBorderDisplayed }) }, { children: [isPopup && _jsx("div", { className: classNames("smartapp-modal__content--title__draggable-zone ".concat(DRAGGABLE_KEY), { cd: isDisablePopupDragging }) }), isThereTitleIcons && renderCloseIconSpace({ elementRef: titleRef }), _jsx("div", __assign({ ref: titleRef, className: classNames('smartapp-modal__content--title', titleClassName, {
250
+ 'smartapp-modal__content--title__bottom-sheet': shouldUseBottomSheet,
251
+ }), style: titleStyles }, { children: title }))] })));
180
252
  };
181
253
  var renderCloseIcon = function () {
182
254
  return !isCloseIconInvisible && (_jsx("div", __assign({ onClick: !isCloseButtonDisabled ? handleCloseModal : function () { }, className: classNames('smartapp-modal__content--close-icon', {
183
255
  'smartapp-modal__content--close-icon__disabled': isCloseButtonDisabled,
184
- 'smartapp-modal__content--close-icon__accent': isPopup,
185
256
  }) }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) })));
186
257
  };
187
258
  var renderCloseIconSpace = function (_a) {
@@ -204,25 +275,22 @@ var Modal = function (_a) {
204
275
  }
205
276
  };
206
277
  var renderBottomContent = function () {
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 })));
278
+ return bottomContent && (_jsx("div", __assign({ ref: bottomContentRef, className: classNames('smartapp-modal__content--bottom', { 'smartapp-modal__content--bottom__border': isBottomContentBorderDisplayed }) }, { children: bottomContent })));
210
279
  };
211
- var modalContent = (_jsx("div", __assign({ ref: ref, className: classNames('smartapp-modal', {
280
+ var modalContent = (_jsx("div", __assign({ ref: modalRef, id: SMARTAPP_MODAL_ID, className: classNames('smartapp-modal', {
212
281
  'smartapp-modal__bottom-sheet': shouldUseBottomSheet,
213
282
  'smartapp-modal__popup': isPopup,
214
283
  }, className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles), onMouseDown: handleMouseDown }, { children: _jsxs("div", __assign({ className: generateClassNames({
215
284
  className: 'smartapp-modal__content',
216
285
  delimiter: '--',
217
286
  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', {
287
+ }), style: contentStyles }, { children: [renderTitle(), _jsxs("div", __assign({ ref: iconsRef, className: classNames('smartapp-modal__content--icons', iconsClassName) }, { children: [titleIcons && renderTitleIcons(), renderContextMenuIcon(), renderCloseIcon()] })), _jsx(ScrollBar, { scrollbarRef: scrollbarRef, contentId: modalId, containerEdgeMargin: CONTAINER_EDGE_MARGIN, scrollerProps: { elementRef: handleScrollerRef }, content: _jsxs("div", __assign({ ref: isMobilePlatform(platform) ? handleSetContainerHeightMobile : handleSetContainerHeightWeb, className: classNames('smartapp-modal__content--scrollable', {
288
+ 'smartapp-modal__content--scrollable__bottom-sheet': shouldUseBottomSheet,
219
289
  '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()] })) })));
290
+ 'smartapp-modal__content--scrollable__bottom-sheet--pb': shouldUseBottomSheet && !bottomContent && !isResetPaddingBottom,
291
+ }), style: scrollableContentStyles }, { children: [!title && isThereTitleIcons && renderCloseIconSpace({ elementRef: scrollableContentRef, isContent: true }), _jsx("div", __assign({ style: {
292
+ paddingBottom: shouldDoScrollToFocusedElement ? bottomKeyboardPadding : undefined,
293
+ }, ref: scrollableContentRef }, { children: content }))] })), containerHeight: containerHeight, trackYHeight: bottomContent ? DEFAULT_SCROLL_BAR_SIZE : SCROLL_BAR_HEIGHT_WITH_PADDING, handleScroll: handleScroll }), renderBottomContent()] })) })));
226
294
  return isPopup ? modalContent : renderModal(modalContent);
227
295
  };
228
296
  export default Modal;
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAA4B,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClH,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,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,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,QAAQ,EAAW,MAAM,iBAAiB,CAAA;AAE1H,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,oCAAoC,CAAA;AAChF,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,IAAM,mBAAmB,GAAG,EAAE,CAAA;AAC9B,IAAM,0BAA0B,GAAG,EAAE,CAAA;AACrC,IAAM,wBAAwB,GAAG,GAAG,CAAA;AACpC,IAAM,gBAAgB,GAAG,OAAO,CAAA;AAChC,IAAM,cAAc,GAAG,CAAC,CAAA;AACxB,IAAM,mBAAmB,GAAG,EAAE,CAAA;AAC9B,IA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AoB;yBACzH,CAAC,EACF,KAAK,EAAE,uBAAuB,iBAE7B,CAAC,KAAK,IAAI,iBAAiB,IAAI,oBAAoB,CAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAC3G,uBACE,KAAK,EAAE;oCACL,aAAa,EAAE,8BAA8B,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS;iCAClF,EACD,GAAG,EAAE,oBAAoB,gBAExB,OAAO,IACJ,KACF,EAER,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,aAAa,CAAC,CAAC,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,7 +1,26 @@
1
1
  import React, { ReactElement, ReactNode, RefObject } from 'react';
2
- import { BottomSheetProps } from 'alex.chus-react-spring-bottom-sheet';
2
+ import { SheetBackdropProps, SheetContainerProps, SheetContentProps, SheetDetent, SheetProps } from 'react-modal-sheet';
3
3
  import { IFontFamilyProps, IPlatformProps, TStyles } from '../../constants';
4
4
  import { IContextMenuProps } from '../ContextMenu/types';
5
+ export type TBottomSheetProps = {
6
+ sheetProps?: Omit<SheetProps, 'isOpen' | 'onClose' | 'children'>;
7
+ sheetContainerProps?: SheetContainerProps;
8
+ sheetContentProps?: SheetContentProps;
9
+ sheetBackdropProps?: SheetBackdropProps;
10
+ };
11
+ export type TBottomSheetStyles = {
12
+ sheetStyles?: TStyles;
13
+ sheetContainerStyles?: TStyles;
14
+ sheetContentStyles?: TStyles;
15
+ sheetBackdropStyles?: TStyles;
16
+ };
17
+ export type TBottomSheetScrollTo = {
18
+ scrollTo: 'top' | 'bottom';
19
+ };
20
+ export type TBottomSheetScrollMobileConfig = {
21
+ extraPaddingFocusedElement?: number;
22
+ shouldDoScrollToFocusedElement?: boolean;
23
+ } & TBottomSheetScrollTo;
5
24
  export interface IModalProps extends IPlatformProps, IFontFamilyProps {
6
25
  isModalOpen: boolean;
7
26
  isClosableOutside?: boolean;
@@ -11,7 +30,13 @@ export interface IModalProps extends IPlatformProps, IFontFamilyProps {
11
30
  isBottomSheet?: boolean;
12
31
  isDisabledBottomSheet?: boolean;
13
32
  isResetPaddingBottom?: boolean;
33
+ isScrollBordersVisible?: boolean;
34
+ isBottomContentBorderShown?: boolean;
35
+ isNeedToScrollUp?: boolean;
36
+ isDisablePopupDragging?: boolean;
14
37
  modalId?: string;
38
+ contentId?: string;
39
+ modalRef?: RefObject<HTMLDivElement | null>;
15
40
  content: ReactElement;
16
41
  bottomContent?: ReactElement;
17
42
  title?: ReactNode;
@@ -19,17 +44,26 @@ export interface IModalProps extends IPlatformProps, IFontFamilyProps {
19
44
  popupClassName?: string;
20
45
  className?: string;
21
46
  titleClassName?: string;
47
+ iconsClassName?: string;
22
48
  popupStyles?: TStyles;
23
49
  styles?: TStyles;
24
50
  titleStyles?: TStyles;
25
51
  contentStyles?: TStyles;
52
+ scrollableContentStyles?: TStyles;
26
53
  iconColor?: string;
27
54
  backgroundColor?: string;
28
55
  modalMaxHeight?: number;
29
- bottomSheetProps?: Partial<BottomSheetProps>;
56
+ bottomSheetProps?: TBottomSheetProps;
57
+ bottomSheetStyles?: TBottomSheetStyles;
58
+ bottomSheetDetent?: SheetDetent;
30
59
  externalBottomSheetScrollContainer?: RefObject<HTMLDivElement | null>;
31
60
  contextMenuProps?: IContextMenuProps & {
32
61
  openMenu: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
33
62
  };
63
+ bottomSheetScrollMobileConfig?: TBottomSheetScrollMobileConfig;
64
+ handleChangeTitleBorderDisplayed?: (isTitleBorderDisplayed: boolean) => void;
65
+ handleClickOutside?: () => void;
34
66
  handleCloseModal: () => void;
67
+ handleBottomSheetInitialized?: () => void;
68
+ onScroll?: (e: any) => void;
35
69
  }
@@ -1,8 +1,6 @@
1
- import { INotificationProps } from './types';
1
+ import { INotificationProps, TAutoHiddenDefaultPosition, TAutoHiddenFullScreenPosition } from './types';
2
2
  import '../../styles/styles.scss';
3
- export declare const INDEFINITELY_FULL_SCREEN_POSITION: {
4
- right: string;
5
- left: string;
6
- };
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;
3
+ export declare const TEMPORARY_POSITION: Record<string, TAutoHiddenDefaultPosition>;
4
+ export declare const TEMPORARY_POSITION_FULLSCREEN: Record<string, TAutoHiddenFullScreenPosition>;
5
+ declare const Notification: ({ theme, platform, fontFamily, id, type, isAutoHidden, isCloseIconHidden, isIconFilled, layoutType, isAllIndefinitelyNeedToBeClosed, temporaryPosition, temporaryPositionFullscreen, persistentFullScreenPosition, hideDuration, distanceFromBottom, containerClassName, className, containerStyles, styles, title, avatar, text, subText, content, contentId, iconColor, action, onClose, }: INotificationProps) => import("react/jsx-runtime").JSX.Element;
8
6
  export default Notification;