@hh.ru/magritte-ui-modal 9.2.2 → 9.2.3

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/Modal.js CHANGED
@@ -12,7 +12,7 @@ import { useNoBubbling } from '@hh.ru/magritte-common-use-no-bubbling';
12
12
  import { isActionBarComponent } from '@hh.ru/magritte-ui-action-bar';
13
13
  import { Breakpoint, useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';
14
14
  import { Layer } from '@hh.ru/magritte-ui-layer';
15
- import { s as styles, M as ModalContentWithHeader } from './ModalContentWithHeader-BtZ5N0g2.js';
15
+ import { s as styles, M as ModalContentWithHeader } from './ModalContentWithHeader-uAlwyZws.js';
16
16
  import { useModalOrder } from './useModalOrder.js';
17
17
  import { isProgressBarComponent } from '@hh.ru/magritte-ui-progress-bar';
18
18
  import { isValidTreeSelectorWrapper } from '@hh.ru/magritte-ui-tree-selector';
@@ -9,7 +9,7 @@ import { ModalHeader } from './ModalHeader.js';
9
9
  import { useScrollbar, Scrollbar } from '@hh.ru/magritte-ui-scrollbar';
10
10
  import { TextAreaGrowLimiter } from '@hh.ru/magritte-ui-textarea';
11
11
 
12
- var styles = {"modal-overlay":"magritte-modal-overlay___lK22l_9-2-2","modalOverlay":"magritte-modal-overlay___lK22l_9-2-2","overlay-left":"magritte-overlay-left___JtHK4_9-2-2","overlayLeft":"magritte-overlay-left___JtHK4_9-2-2","overlay-right":"magritte-overlay-right___uKTDt_9-2-2","overlayRight":"magritte-overlay-right___uKTDt_9-2-2","modal":"magritte-modal___RAW6S_9-2-2","size-small":"magritte-size-small___2JTM2_9-2-2","sizeSmall":"magritte-size-small___2JTM2_9-2-2","size-medium":"magritte-size-medium___cWCe7_9-2-2","sizeMedium":"magritte-size-medium___cWCe7_9-2-2","no-vertical-paddings":"magritte-no-vertical-paddings___Z3-oM_9-2-2","noVerticalPaddings":"magritte-no-vertical-paddings___Z3-oM_9-2-2","no-horizontal-paddings":"magritte-no-horizontal-paddings___aT95Y_9-2-2","noHorizontalPaddings":"magritte-no-horizontal-paddings___aT95Y_9-2-2","modal-full-height":"magritte-modal-full-height___gIM4E_9-2-2","modalFullHeight":"magritte-modal-full-height___gIM4E_9-2-2","modal-content-wrapper":"magritte-modal-content-wrapper___23XFT_9-2-2","modalContentWrapper":"magritte-modal-content-wrapper___23XFT_9-2-2","modal-content":"magritte-modal-content___46QFS_9-2-2","modalContent":"magritte-modal-content___46QFS_9-2-2","modal-scroll-container":"magritte-modal-scroll-container___Tf8Ns_9-2-2","modalScrollContainer":"magritte-modal-scroll-container___Tf8Ns_9-2-2","modal-content-wrapper__one-line":"magritte-modal-content-wrapper__one-line___tYg8d_9-2-2","modalContentWrapperOneLine":"magritte-modal-content-wrapper__one-line___tYg8d_9-2-2","content-sticky-container":"magritte-content-sticky-container___nqEXj_9-2-2","contentStickyContainer":"magritte-content-sticky-container___nqEXj_9-2-2","divider-container":"magritte-divider-container___qP3VK_9-2-2","dividerContainer":"magritte-divider-container___qP3VK_9-2-2","divider-container-hidden":"magritte-divider-container-hidden___EIxB-_9-2-2","dividerContainerHidden":"magritte-divider-container-hidden___EIxB-_9-2-2","modal-footer":"magritte-modal-footer___8xPqQ_9-2-2","modalFooter":"magritte-modal-footer___8xPqQ_9-2-2","modal-buttons-container":"magritte-modal-buttons-container___1O1Nr_9-2-2","modalButtonsContainer":"magritte-modal-buttons-container___1O1Nr_9-2-2","animation-timeout":"magritte-animation-timeout___w-j7K_9-2-2","animationTimeout":"magritte-animation-timeout___w-j7K_9-2-2","animation-enter-center":"magritte-animation-enter-center___7jogC_9-2-2","animationEnterCenter":"magritte-animation-enter-center___7jogC_9-2-2","animation-enter-center-active":"magritte-animation-enter-center-active___fywwW_9-2-2","animationEnterCenterActive":"magritte-animation-enter-center-active___fywwW_9-2-2","animation-exit-center":"magritte-animation-exit-center___3Fa6x_9-2-2","animationExitCenter":"magritte-animation-exit-center___3Fa6x_9-2-2","animation-exit-center-active":"magritte-animation-exit-center-active___tY0UA_9-2-2","animationExitCenterActive":"magritte-animation-exit-center-active___tY0UA_9-2-2","animation-enter-left":"magritte-animation-enter-left___5YB8B_9-2-2","animationEnterLeft":"magritte-animation-enter-left___5YB8B_9-2-2","animation-enter-left-active":"magritte-animation-enter-left-active___5GK8s_9-2-2","animationEnterLeftActive":"magritte-animation-enter-left-active___5GK8s_9-2-2","animation-exit-left":"magritte-animation-exit-left___OnkQE_9-2-2","animationExitLeft":"magritte-animation-exit-left___OnkQE_9-2-2","animation-exit-left-active":"magritte-animation-exit-left-active___AEGxY_9-2-2","animationExitLeftActive":"magritte-animation-exit-left-active___AEGxY_9-2-2","animation-enter-right":"magritte-animation-enter-right___2aXOm_9-2-2","animationEnterRight":"magritte-animation-enter-right___2aXOm_9-2-2","animation-enter-right-active":"magritte-animation-enter-right-active___8wX4-_9-2-2","animationEnterRightActive":"magritte-animation-enter-right-active___8wX4-_9-2-2","animation-exit-right":"magritte-animation-exit-right___iczoc_9-2-2","animationExitRight":"magritte-animation-exit-right___iczoc_9-2-2","animation-exit-right-active":"magritte-animation-exit-right-active___eFS4O_9-2-2","animationExitRightActive":"magritte-animation-exit-right-active___eFS4O_9-2-2","content-scroll-preserver":"magritte-content-scroll-preserver___Tw5Px_9-2-2","contentScrollPreserver":"magritte-content-scroll-preserver___Tw5Px_9-2-2","tree-selector-container":"magritte-tree-selector-container___fdhI-_9-2-2","treeSelectorContainer":"magritte-tree-selector-container___fdhI-_9-2-2","content-sticky-container_full-height":"magritte-content-sticky-container_full-height___Gl9x8_9-2-2","contentStickyContainerFullHeight":"magritte-content-sticky-container_full-height___Gl9x8_9-2-2"};
12
+ var styles = {"modal-overlay":"magritte-modal-overlay___lK22l_9-2-3","modalOverlay":"magritte-modal-overlay___lK22l_9-2-3","overlay-left":"magritte-overlay-left___JtHK4_9-2-3","overlayLeft":"magritte-overlay-left___JtHK4_9-2-3","overlay-right":"magritte-overlay-right___uKTDt_9-2-3","overlayRight":"magritte-overlay-right___uKTDt_9-2-3","modal":"magritte-modal___RAW6S_9-2-3","size-small":"magritte-size-small___2JTM2_9-2-3","sizeSmall":"magritte-size-small___2JTM2_9-2-3","size-medium":"magritte-size-medium___cWCe7_9-2-3","sizeMedium":"magritte-size-medium___cWCe7_9-2-3","no-vertical-paddings":"magritte-no-vertical-paddings___Z3-oM_9-2-3","noVerticalPaddings":"magritte-no-vertical-paddings___Z3-oM_9-2-3","no-horizontal-paddings":"magritte-no-horizontal-paddings___aT95Y_9-2-3","noHorizontalPaddings":"magritte-no-horizontal-paddings___aT95Y_9-2-3","modal-full-height":"magritte-modal-full-height___gIM4E_9-2-3","modalFullHeight":"magritte-modal-full-height___gIM4E_9-2-3","modal-content-wrapper":"magritte-modal-content-wrapper___23XFT_9-2-3","modalContentWrapper":"magritte-modal-content-wrapper___23XFT_9-2-3","modal-content":"magritte-modal-content___46QFS_9-2-3","modalContent":"magritte-modal-content___46QFS_9-2-3","modal-scroll-container":"magritte-modal-scroll-container___Tf8Ns_9-2-3","modalScrollContainer":"magritte-modal-scroll-container___Tf8Ns_9-2-3","modal-content-wrapper__one-line":"magritte-modal-content-wrapper__one-line___tYg8d_9-2-3","modalContentWrapperOneLine":"magritte-modal-content-wrapper__one-line___tYg8d_9-2-3","content-sticky-container":"magritte-content-sticky-container___nqEXj_9-2-3","contentStickyContainer":"magritte-content-sticky-container___nqEXj_9-2-3","divider-container":"magritte-divider-container___qP3VK_9-2-3","dividerContainer":"magritte-divider-container___qP3VK_9-2-3","divider-container-hidden":"magritte-divider-container-hidden___EIxB-_9-2-3","dividerContainerHidden":"magritte-divider-container-hidden___EIxB-_9-2-3","modal-footer":"magritte-modal-footer___8xPqQ_9-2-3","modalFooter":"magritte-modal-footer___8xPqQ_9-2-3","modal-buttons-container":"magritte-modal-buttons-container___1O1Nr_9-2-3","modalButtonsContainer":"magritte-modal-buttons-container___1O1Nr_9-2-3","animation-timeout":"magritte-animation-timeout___w-j7K_9-2-3","animationTimeout":"magritte-animation-timeout___w-j7K_9-2-3","animation-enter-center":"magritte-animation-enter-center___7jogC_9-2-3","animationEnterCenter":"magritte-animation-enter-center___7jogC_9-2-3","animation-enter-center-active":"magritte-animation-enter-center-active___fywwW_9-2-3","animationEnterCenterActive":"magritte-animation-enter-center-active___fywwW_9-2-3","animation-exit-center":"magritte-animation-exit-center___3Fa6x_9-2-3","animationExitCenter":"magritte-animation-exit-center___3Fa6x_9-2-3","animation-exit-center-active":"magritte-animation-exit-center-active___tY0UA_9-2-3","animationExitCenterActive":"magritte-animation-exit-center-active___tY0UA_9-2-3","animation-enter-left":"magritte-animation-enter-left___5YB8B_9-2-3","animationEnterLeft":"magritte-animation-enter-left___5YB8B_9-2-3","animation-enter-left-active":"magritte-animation-enter-left-active___5GK8s_9-2-3","animationEnterLeftActive":"magritte-animation-enter-left-active___5GK8s_9-2-3","animation-exit-left":"magritte-animation-exit-left___OnkQE_9-2-3","animationExitLeft":"magritte-animation-exit-left___OnkQE_9-2-3","animation-exit-left-active":"magritte-animation-exit-left-active___AEGxY_9-2-3","animationExitLeftActive":"magritte-animation-exit-left-active___AEGxY_9-2-3","animation-enter-right":"magritte-animation-enter-right___2aXOm_9-2-3","animationEnterRight":"magritte-animation-enter-right___2aXOm_9-2-3","animation-enter-right-active":"magritte-animation-enter-right-active___8wX4-_9-2-3","animationEnterRightActive":"magritte-animation-enter-right-active___8wX4-_9-2-3","animation-exit-right":"magritte-animation-exit-right___iczoc_9-2-3","animationExitRight":"magritte-animation-exit-right___iczoc_9-2-3","animation-exit-right-active":"magritte-animation-exit-right-active___eFS4O_9-2-3","animationExitRightActive":"magritte-animation-exit-right-active___eFS4O_9-2-3","content-scroll-preserver":"magritte-content-scroll-preserver___Tw5Px_9-2-3","contentScrollPreserver":"magritte-content-scroll-preserver___Tw5Px_9-2-3","tree-selector-container":"magritte-tree-selector-container___fdhI-_9-2-3","treeSelectorContainer":"magritte-tree-selector-container___fdhI-_9-2-3","content-sticky-container_full-height":"magritte-content-sticky-container_full-height___Gl9x8_9-2-3","contentStickyContainerFullHeight":"magritte-content-sticky-container_full-height___Gl9x8_9-2-3"};
13
13
 
14
14
  const checkIsScrolledToBottom = (el) => {
15
15
  return Math.abs(el.scrollHeight - el.scrollTop - el.clientHeight) < 1;
@@ -140,4 +140,4 @@ const ModalContentWithHeader = ({ labelId, children, headerHeight: _headerHeight
140
140
  };
141
141
 
142
142
  export { ModalContentWithHeader as M, styles as s };
143
- //# sourceMappingURL=ModalContentWithHeader-BtZ5N0g2.js.map
143
+ //# sourceMappingURL=ModalContentWithHeader-uAlwyZws.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalContentWithHeader-BtZ5N0g2.js","sources":["../src/ModalContentWithHeader.tsx"],"sourcesContent":["import { FC, PropsWithChildren, useCallback, useLayoutEffect, useRef, useState } from 'react';\nimport classnames from 'classnames';\n\nimport { requestAnimation } from '@hh.ru/magritte-common-func-utils';\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { Divider } from '@hh.ru/magritte-ui-divider';\nimport { ModalHeader } from '@hh.ru/magritte-ui-modal/ModalHeader';\nimport { ModalHeaderProps, ModalHeight } from '@hh.ru/magritte-ui-modal/types';\nimport { Scrollbar, useScrollbar } from '@hh.ru/magritte-ui-scrollbar';\nimport { TextAreaGrowLimiter } from '@hh.ru/magritte-ui-textarea';\n\nimport styles from './modal.less';\n\nconst checkIsScrolledToBottom = (el: HTMLElement) => {\n return Math.abs(el.scrollHeight - el.scrollTop - el.clientHeight) < 1;\n};\n\nconst clamp = (value: number, min: number, max: number) => Math.min(Math.max(value, min), max);\n\n// Минимальная высота до которой может сжаться хедер\nconst HEADER_SHRINK_MIN_HEIGHT = 148;\n// Минимальная высота отступа между хедером и контентом\nconst HEADER_MARGIN_MIN_HEIGHT = 12;\n// Максимальная высота отступа между хедером и контентом\nconst HEADER_MARGIN_MAX_HEIGHT = 24;\nconst HEADER_MARGIN_HEIGHT_DELTA = HEADER_MARGIN_MAX_HEIGHT - HEADER_MARGIN_MIN_HEIGHT;\n\n// Вычисляет минимальную высоту до которой может сжаться хедер с учетом высоты контента, чтобы не спровоцировать\n// изменение размера модалки\nconst calcHeaderShrinkLimit = (\n headerHeight: number,\n headerMaxHeight: number,\n contentHeight: number,\n contentScrollHeight: number,\n marginHeight: number\n) => {\n // Высота контента скрытого под скроллом когда хедер и марджин под ним имеет максимальную допустимую высоту\n const contentScrollDelta =\n contentScrollHeight - // Высота контента скрытого под скроллом в текущем состоянии\n contentHeight + // Высота контейнера содержащего контент\n (HEADER_MARGIN_MAX_HEIGHT - marginHeight) + // Дельта между текущей высотой марджина и максимальной допустимой\n (headerMaxHeight - headerHeight); // Дельта между текущей высотой хедера и максимальной допустимой\n\n const headerShrinkMinHeight = headerMaxHeight - (contentScrollDelta - HEADER_MARGIN_HEIGHT_DELTA);\n\n return Math.max(headerShrinkMinHeight, HEADER_SHRINK_MIN_HEIGHT);\n};\n\nconst shrinkByDelta = (\n headerImageContainer: HTMLDivElement | null,\n headerWrapper: HTMLDivElement | null,\n headerMinHeight: number,\n headerMaxHeight: number,\n scrollDeltaY: number\n) => {\n if (!headerImageContainer || !headerWrapper) {\n return;\n }\n\n const marginHeight = clamp(\n HEADER_MARGIN_MAX_HEIGHT - scrollDeltaY,\n HEADER_MARGIN_MIN_HEIGHT,\n HEADER_MARGIN_MAX_HEIGHT\n );\n headerWrapper.style.marginBottom = `${marginHeight}px`;\n\n const headerHeight = clamp(\n // Тут прибаляем дельту марджина потому что сначала должен сжаться отступ\n Math.floor(headerMaxHeight - scrollDeltaY + HEADER_MARGIN_HEIGHT_DELTA),\n headerMinHeight,\n headerMaxHeight\n );\n headerImageContainer.style.height = `${headerHeight}px`;\n};\n\nexport const ModalContentWithHeader: FC<\n PropsWithChildren<\n ModalHeaderProps & { labelId: string; isTreeSelectorChild: boolean; height?: ModalHeight; showDivider: boolean }\n >\n> = ({\n labelId,\n children,\n headerHeight: _headerHeight = 0,\n isTreeSelectorChild,\n height,\n showDivider = true,\n ...modalHeaderProps\n}) => {\n const { title, headerImageUrl, headerImage, actions, actionLink, options } = modalHeaderProps;\n\n const bottomDividerVisibleRef = useRef(false);\n const contentContainerRef = useRef<HTMLDivElement>(null);\n const headerImageContainerRef = useRef<HTMLDivElement>(null);\n const headerWrapperRef = useRef<HTMLDivElement>(null);\n const spacePreserverRef = useRef<HTMLDivElement>(null);\n const stickyContainerRef = useRef<HTMLDivElement>(null);\n const hasHeaderImageRef = useRef(!!headerImageUrl || !!headerImage);\n hasHeaderImageRef.current = !!headerImageUrl || !!headerImage;\n const headerHeightRef = useRef(0);\n headerHeightRef.current = hasHeaderImageRef.current ? Math.max(_headerHeight, 200) : 0;\n const minHeaderHeightRef = useRef(0);\n\n const bottomDividerContainerRef = useRef<HTMLDivElement>(null);\n const topDividerContainerRef = useRef<HTMLDivElement>(null);\n\n const withoutHeader = !title && !hasHeaderImageRef.current && !actions && !actionLink && !options;\n const onlyActions = !title && !hasHeaderImageRef.current && !options && (actions || actionLink);\n\n const [growLimiterContextValue, _] = useState(() => ({\n containerRef: contentContainerRef,\n }));\n\n const isTopDividerVisible = () => {\n if (!contentContainerRef.current) {\n return false;\n }\n\n const topDividerVisible = hasHeaderImageRef.current\n ? contentContainerRef.current.scrollTop >\n headerHeightRef.current - minHeaderHeightRef.current + HEADER_MARGIN_HEIGHT_DELTA\n : contentContainerRef.current.scrollTop !== 0;\n\n return topDividerVisible && (options || !hasHeaderImageRef.current) && !onlyActions && !withoutHeader;\n };\n\n const updateHeaderDimensions = useCallback(() => {\n if (\n !headerImageContainerRef.current ||\n !headerWrapperRef.current ||\n !stickyContainerRef.current ||\n !spacePreserverRef.current ||\n !contentContainerRef.current\n ) {\n return;\n }\n\n if (!hasHeaderImageRef.current) {\n spacePreserverRef.current.style.height = '0';\n return;\n }\n\n minHeaderHeightRef.current = calcHeaderShrinkLimit(\n headerImageContainerRef.current.clientHeight,\n headerHeightRef.current,\n contentContainerRef.current.clientHeight,\n stickyContainerRef.current.scrollHeight,\n parseInt(headerWrapperRef.current.style.marginBottom || '0', 10)\n );\n\n shrinkByDelta(\n headerImageContainerRef.current,\n headerWrapperRef.current,\n minHeaderHeightRef.current,\n headerHeightRef.current,\n contentContainerRef.current.scrollTop\n );\n const preserverSize = headerHeightRef.current - minHeaderHeightRef.current + HEADER_MARGIN_HEIGHT_DELTA;\n spacePreserverRef.current.style.height = `${preserverSize}px`;\n }, []);\n\n useLayoutEffect(() => {\n if (contentContainerRef.current) {\n const observer = new ResizeObserver(\n requestAnimation(() => {\n if (!contentContainerRef.current) {\n return;\n }\n const isScrollable =\n contentContainerRef.current.scrollHeight > contentContainerRef.current.clientHeight;\n const hasScroll = isScrollable && !checkIsScrolledToBottom(contentContainerRef.current);\n bottomDividerVisibleRef.current = hasScroll;\n bottomDividerContainerRef.current?.classList.toggle(\n styles.dividerContainerHidden,\n !bottomDividerVisibleRef.current\n );\n updateHeaderDimensions();\n })\n );\n observer.observe(contentContainerRef.current);\n return () => observer.disconnect();\n }\n\n return undefined;\n }, [updateHeaderDimensions]);\n\n useLayoutEffect(() => {\n updateHeaderDimensions();\n if (!options && (headerImageUrl || headerImage)) {\n topDividerContainerRef.current?.classList.toggle(styles.dividerContainerHidden, true);\n }\n }, [headerImageUrl, headerImage, updateHeaderDimensions, options]);\n\n const handleScroll = () => {\n if (!contentContainerRef.current) {\n return;\n }\n\n bottomDividerVisibleRef.current = !checkIsScrolledToBottom(contentContainerRef.current);\n bottomDividerContainerRef.current?.classList.toggle(\n styles.dividerContainerHidden,\n !bottomDividerVisibleRef.current\n );\n topDividerContainerRef.current?.classList.toggle(styles.dividerContainerHidden, !isTopDividerVisible());\n if (hasHeaderImageRef.current) {\n shrinkByDelta(\n headerImageContainerRef.current,\n headerWrapperRef.current,\n minHeaderHeightRef.current,\n headerHeightRef.current,\n contentContainerRef.current.scrollTop\n );\n }\n };\n\n const { hasVerticalScroll, verticalScrollbarProps, ...scrollbar } = useScrollbar({ axis: 'vertical' });\n const contentContainerRefCallback = useMultipleRefs(contentContainerRef, scrollbar.scrollContainerRef);\n const stickyContainerRefCallback = useMultipleRefs(stickyContainerRef, scrollbar.contentWrapperRef);\n\n return (\n <>\n <div\n className={classnames(styles.modalContentWrapper, {\n [styles.modalContentWrapperOneLine]: onlyActions,\n })}\n >\n <ModalHeader\n {...modalHeaderProps}\n headerHeight={headerHeightRef.current}\n labelId={labelId}\n wrapperRef={headerWrapperRef}\n ref={headerImageContainerRef}\n />\n <div\n className={classnames(styles.dividerContainer, {\n [styles.dividerContainerHidden]: !isTopDividerVisible(),\n })}\n ref={topDividerContainerRef}\n >\n <Divider />\n </div>\n <div className={classnames(styles.modalContent, scrollbar.hoverContainerCssClass)}>\n {isTreeSelectorChild ? (\n <div className={styles.treeSelectorContainer}>{children}</div>\n ) : (\n <>\n <div\n className={classnames(styles.modalScrollContainer)}\n ref={contentContainerRefCallback}\n onScroll={handleScroll}\n data-qa=\"modal-content-scroll-container\"\n >\n <div\n className={classnames(styles.contentStickyContainer, {\n [styles.contentStickyContainerFullHeight]: height === 'full-screen',\n })}\n ref={stickyContainerRefCallback}\n >\n <TextAreaGrowLimiter {...growLimiterContextValue}>{children}</TextAreaGrowLimiter>\n </div>\n <div ref={spacePreserverRef} />\n </div>\n {hasVerticalScroll && <Scrollbar {...verticalScrollbarProps} />}\n </>\n )}\n </div>\n </div>\n {showDivider && (\n <div\n className={classnames(styles.dividerContainer, {\n [styles.dividerContainerHidden]: !bottomDividerVisibleRef.current,\n })}\n ref={bottomDividerContainerRef}\n >\n <Divider />\n </div>\n )}\n </>\n );\n};\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;AAaA,MAAM,uBAAuB,GAAG,CAAC,EAAe,KAAI;AAChD,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,GAAG,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG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AS,CAAC,sBAAsB,CAAC,YAC5E,mBAAmB,IAChBA,GAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,MAAM,CAAC,qBAAqB,EAAA,QAAA,EAAG,QAAQ,EAAA,CAAO,KAE9DF,IACI,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CAAAD,IAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAClD,GAAG,EAAE,2BAA2B,EAChC,QAAQ,EAAE,YAAY,aACd,gCAAgC,EAAA,QAAA,EAAA,CAExCE,GACI,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,sBAAsB,EAAE;AACjD,gDAAA,CAAC,MAAM,CAAC,gCAAgC,GAAG,MAAM,KAAK,aAAa;6CACtE,CAAC,EACF,GAAG,EAAE,0BAA0B,YAE/BA,GAAC,CAAA,mBAAmB,OAAK,uBAAuB,EAAA,QAAA,EAAG,QAAQ,EAAuB,CAAA,EAAA,CAChF,EACNA,GAAK,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,iBAAiB,EAAA,CAAI,IAC7B,EACL,iBAAiB,IAAIA,GAAC,CAAA,SAAS,OAAK,sBAAsB,EAAA,CAAI,IAChE,CACN,EAAA,CACC,IACJ,EACL,WAAW,KACRA,GAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,gBAAgB,EAAE;oBAC3C,CAAC,MAAM,CAAC,sBAAsB,GAAG,CAAC,uBAAuB,CAAC,OAAO;AACpE,iBAAA,CAAC,EACF,GAAG,EAAE,yBAAyB,EAE9B,QAAA,EAAAA,GAAA,CAAC,OAAO,EAAA,EAAA,CAAG,EACT,CAAA,CACT,CACF,EAAA,CAAA,EACL;AACN;;;;"}
1
+ {"version":3,"file":"ModalContentWithHeader-uAlwyZws.js","sources":["../src/ModalContentWithHeader.tsx"],"sourcesContent":["import { FC, PropsWithChildren, useCallback, useLayoutEffect, useRef, useState } from 'react';\nimport classnames from 'classnames';\n\nimport { requestAnimation } from '@hh.ru/magritte-common-func-utils';\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { Divider } from '@hh.ru/magritte-ui-divider';\nimport { ModalHeader } from '@hh.ru/magritte-ui-modal/ModalHeader';\nimport { ModalHeaderProps, ModalHeight } from '@hh.ru/magritte-ui-modal/types';\nimport { Scrollbar, useScrollbar } from '@hh.ru/magritte-ui-scrollbar';\nimport { TextAreaGrowLimiter } from '@hh.ru/magritte-ui-textarea';\n\nimport styles from './modal.less';\n\nconst checkIsScrolledToBottom = (el: HTMLElement) => {\n return Math.abs(el.scrollHeight - el.scrollTop - el.clientHeight) < 1;\n};\n\nconst clamp = (value: number, min: number, max: number) => Math.min(Math.max(value, min), max);\n\n// Минимальная высота до которой может сжаться хедер\nconst HEADER_SHRINK_MIN_HEIGHT = 148;\n// Минимальная высота отступа между хедером и контентом\nconst HEADER_MARGIN_MIN_HEIGHT = 12;\n// Максимальная высота отступа между хедером и контентом\nconst HEADER_MARGIN_MAX_HEIGHT = 24;\nconst HEADER_MARGIN_HEIGHT_DELTA = HEADER_MARGIN_MAX_HEIGHT - HEADER_MARGIN_MIN_HEIGHT;\n\n// Вычисляет минимальную высоту до которой может сжаться хедер с учетом высоты контента, чтобы не спровоцировать\n// изменение размера модалки\nconst calcHeaderShrinkLimit = (\n headerHeight: number,\n headerMaxHeight: number,\n contentHeight: number,\n contentScrollHeight: number,\n marginHeight: number\n) => {\n // Высота контента скрытого под скроллом когда хедер и марджин под ним имеет максимальную допустимую высоту\n const contentScrollDelta =\n contentScrollHeight - // Высота контента скрытого под скроллом в текущем состоянии\n contentHeight + // Высота контейнера содержащего контент\n (HEADER_MARGIN_MAX_HEIGHT - marginHeight) + // Дельта между текущей высотой марджина и максимальной допустимой\n (headerMaxHeight - headerHeight); // Дельта между текущей высотой хедера и максимальной допустимой\n\n const headerShrinkMinHeight = headerMaxHeight - (contentScrollDelta - HEADER_MARGIN_HEIGHT_DELTA);\n\n return Math.max(headerShrinkMinHeight, HEADER_SHRINK_MIN_HEIGHT);\n};\n\nconst shrinkByDelta = (\n headerImageContainer: HTMLDivElement | null,\n headerWrapper: HTMLDivElement | null,\n headerMinHeight: number,\n headerMaxHeight: number,\n scrollDeltaY: number\n) => {\n if (!headerImageContainer || !headerWrapper) {\n return;\n }\n\n const marginHeight = clamp(\n HEADER_MARGIN_MAX_HEIGHT - scrollDeltaY,\n HEADER_MARGIN_MIN_HEIGHT,\n HEADER_MARGIN_MAX_HEIGHT\n );\n headerWrapper.style.marginBottom = `${marginHeight}px`;\n\n const headerHeight = clamp(\n // Тут прибаляем дельту марджина потому что сначала должен сжаться отступ\n Math.floor(headerMaxHeight - scrollDeltaY + HEADER_MARGIN_HEIGHT_DELTA),\n headerMinHeight,\n headerMaxHeight\n );\n headerImageContainer.style.height = `${headerHeight}px`;\n};\n\nexport const ModalContentWithHeader: FC<\n PropsWithChildren<\n ModalHeaderProps & { labelId: string; isTreeSelectorChild: boolean; height?: ModalHeight; showDivider: boolean }\n >\n> = ({\n labelId,\n children,\n headerHeight: _headerHeight = 0,\n isTreeSelectorChild,\n height,\n showDivider = true,\n ...modalHeaderProps\n}) => {\n const { title, headerImageUrl, headerImage, actions, actionLink, options } = modalHeaderProps;\n\n const bottomDividerVisibleRef = useRef(false);\n const contentContainerRef = useRef<HTMLDivElement>(null);\n const headerImageContainerRef = useRef<HTMLDivElement>(null);\n const headerWrapperRef = useRef<HTMLDivElement>(null);\n const spacePreserverRef = useRef<HTMLDivElement>(null);\n const stickyContainerRef = useRef<HTMLDivElement>(null);\n const hasHeaderImageRef = useRef(!!headerImageUrl || !!headerImage);\n hasHeaderImageRef.current = !!headerImageUrl || !!headerImage;\n const headerHeightRef = useRef(0);\n headerHeightRef.current = hasHeaderImageRef.current ? Math.max(_headerHeight, 200) : 0;\n const minHeaderHeightRef = useRef(0);\n\n const bottomDividerContainerRef = useRef<HTMLDivElement>(null);\n const topDividerContainerRef = useRef<HTMLDivElement>(null);\n\n const withoutHeader = !title && !hasHeaderImageRef.current && !actions && !actionLink && !options;\n const onlyActions = !title && !hasHeaderImageRef.current && !options && (actions || actionLink);\n\n const [growLimiterContextValue, _] = useState(() => ({\n containerRef: contentContainerRef,\n }));\n\n const isTopDividerVisible = () => {\n if (!contentContainerRef.current) {\n return false;\n }\n\n const topDividerVisible = hasHeaderImageRef.current\n ? contentContainerRef.current.scrollTop >\n headerHeightRef.current - minHeaderHeightRef.current + HEADER_MARGIN_HEIGHT_DELTA\n : contentContainerRef.current.scrollTop !== 0;\n\n return topDividerVisible && (options || !hasHeaderImageRef.current) && !onlyActions && !withoutHeader;\n };\n\n const updateHeaderDimensions = useCallback(() => {\n if (\n !headerImageContainerRef.current ||\n !headerWrapperRef.current ||\n !stickyContainerRef.current ||\n !spacePreserverRef.current ||\n !contentContainerRef.current\n ) {\n return;\n }\n\n if (!hasHeaderImageRef.current) {\n spacePreserverRef.current.style.height = '0';\n return;\n }\n\n minHeaderHeightRef.current = calcHeaderShrinkLimit(\n headerImageContainerRef.current.clientHeight,\n headerHeightRef.current,\n contentContainerRef.current.clientHeight,\n stickyContainerRef.current.scrollHeight,\n parseInt(headerWrapperRef.current.style.marginBottom || '0', 10)\n );\n\n shrinkByDelta(\n headerImageContainerRef.current,\n headerWrapperRef.current,\n minHeaderHeightRef.current,\n headerHeightRef.current,\n contentContainerRef.current.scrollTop\n );\n const preserverSize = headerHeightRef.current - minHeaderHeightRef.current + HEADER_MARGIN_HEIGHT_DELTA;\n spacePreserverRef.current.style.height = `${preserverSize}px`;\n }, []);\n\n useLayoutEffect(() => {\n if (contentContainerRef.current) {\n const observer = new ResizeObserver(\n requestAnimation(() => {\n if (!contentContainerRef.current) {\n return;\n }\n const isScrollable =\n contentContainerRef.current.scrollHeight > contentContainerRef.current.clientHeight;\n const hasScroll = isScrollable && !checkIsScrolledToBottom(contentContainerRef.current);\n bottomDividerVisibleRef.current = hasScroll;\n bottomDividerContainerRef.current?.classList.toggle(\n styles.dividerContainerHidden,\n !bottomDividerVisibleRef.current\n );\n updateHeaderDimensions();\n })\n );\n observer.observe(contentContainerRef.current);\n return () => observer.disconnect();\n }\n\n return undefined;\n }, [updateHeaderDimensions]);\n\n useLayoutEffect(() => {\n updateHeaderDimensions();\n if (!options && (headerImageUrl || headerImage)) {\n topDividerContainerRef.current?.classList.toggle(styles.dividerContainerHidden, true);\n }\n }, [headerImageUrl, headerImage, updateHeaderDimensions, options]);\n\n const handleScroll = () => {\n if (!contentContainerRef.current) {\n return;\n }\n\n bottomDividerVisibleRef.current = !checkIsScrolledToBottom(contentContainerRef.current);\n bottomDividerContainerRef.current?.classList.toggle(\n styles.dividerContainerHidden,\n !bottomDividerVisibleRef.current\n );\n topDividerContainerRef.current?.classList.toggle(styles.dividerContainerHidden, !isTopDividerVisible());\n if (hasHeaderImageRef.current) {\n shrinkByDelta(\n headerImageContainerRef.current,\n headerWrapperRef.current,\n minHeaderHeightRef.current,\n headerHeightRef.current,\n contentContainerRef.current.scrollTop\n );\n }\n };\n\n const { hasVerticalScroll, verticalScrollbarProps, ...scrollbar } = useScrollbar({ axis: 'vertical' });\n const contentContainerRefCallback = useMultipleRefs(contentContainerRef, scrollbar.scrollContainerRef);\n const stickyContainerRefCallback = useMultipleRefs(stickyContainerRef, scrollbar.contentWrapperRef);\n\n return (\n <>\n <div\n className={classnames(styles.modalContentWrapper, {\n [styles.modalContentWrapperOneLine]: onlyActions,\n })}\n >\n <ModalHeader\n {...modalHeaderProps}\n headerHeight={headerHeightRef.current}\n labelId={labelId}\n wrapperRef={headerWrapperRef}\n ref={headerImageContainerRef}\n />\n <div\n className={classnames(styles.dividerContainer, {\n [styles.dividerContainerHidden]: !isTopDividerVisible(),\n })}\n ref={topDividerContainerRef}\n >\n <Divider />\n </div>\n <div className={classnames(styles.modalContent, scrollbar.hoverContainerCssClass)}>\n {isTreeSelectorChild ? (\n <div className={styles.treeSelectorContainer}>{children}</div>\n ) : (\n <>\n <div\n className={classnames(styles.modalScrollContainer)}\n ref={contentContainerRefCallback}\n onScroll={handleScroll}\n data-qa=\"modal-content-scroll-container\"\n >\n <div\n className={classnames(styles.contentStickyContainer, {\n [styles.contentStickyContainerFullHeight]: height === 'full-screen',\n })}\n ref={stickyContainerRefCallback}\n >\n <TextAreaGrowLimiter {...growLimiterContextValue}>{children}</TextAreaGrowLimiter>\n </div>\n <div ref={spacePreserverRef} />\n </div>\n {hasVerticalScroll && <Scrollbar {...verticalScrollbarProps} />}\n </>\n )}\n </div>\n </div>\n {showDivider && (\n <div\n className={classnames(styles.dividerContainer, {\n [styles.dividerContainerHidden]: !bottomDividerVisibleRef.current,\n })}\n ref={bottomDividerContainerRef}\n >\n <Divider />\n </div>\n )}\n </>\n );\n};\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;;;;AAaA,MAAM,uBAAuB,GAAG,CAAC,EAAe,KAAI;AAChD,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,YAAY,GAAG,EAAE,CAAC,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF,MAAM,KAAK,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC;AAE/F;AACA,MAAM,wBAAwB,GAAG,GAAG,CAAC;AACrC;AACA,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC;AACA,MAAM,wBAAwB,GAAG,EAAE,CAAC;AACpC,MAAM,0BAA0B,GAAG,wBAAwB,GAAG,wBAAwB,CAAC;AAEvF;AACA;AACA,MAAM,qBAAqB,GAAG,CAC1B,YAAoB,EACpB,eAAuB,EACvB,aAAqB,EACrB,mBAA2B,EAC3B,YAAoB,KACpB;;AAEA,IAAA,MAAM,kBAAkB,GAC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AC,MAAM,CAAC,gCAAgC,GAAG,MAAM,KAAK,aAAa;6CACtE,CAAC,EACF,GAAG,EAAE,0BAA0B,YAE/BA,GAAC,CAAA,mBAAmB,OAAK,uBAAuB,EAAA,QAAA,EAAG,QAAQ,EAAuB,CAAA,EAAA,CAChF,EACNA,GAAK,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,iBAAiB,EAAA,CAAI,IAC7B,EACL,iBAAiB,IAAIA,GAAC,CAAA,SAAS,OAAK,sBAAsB,EAAA,CAAI,IAChE,CACN,EAAA,CACC,IACJ,EACL,WAAW,KACRA,GAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,gBAAgB,EAAE;oBAC3C,CAAC,MAAM,CAAC,sBAAsB,GAAG,CAAC,uBAAuB,CAAC,OAAO;AACpE,iBAAA,CAAC,EACF,GAAG,EAAE,yBAAyB,EAE9B,QAAA,EAAAA,GAAA,CAAC,OAAO,EAAA,EAAA,CAAG,EACT,CAAA,CACT,CACF,EAAA,CAAA,EACL;AACN;;;;"}
@@ -8,7 +8,7 @@ import '@hh.ru/magritte-ui-divider';
8
8
  import './ModalHeader.js';
9
9
  import '@hh.ru/magritte-ui-scrollbar';
10
10
  import '@hh.ru/magritte-ui-textarea';
11
- export { M as ModalContentWithHeader } from './ModalContentWithHeader-BtZ5N0g2.js';
11
+ export { M as ModalContentWithHeader } from './ModalContentWithHeader-uAlwyZws.js';
12
12
  import '@hh.ru/magritte-ui-icon';
13
13
  import '@hh.ru/magritte-ui-title';
14
14
  //# sourceMappingURL=ModalContentWithHeader.js.map
package/ModalHeader.js CHANGED
@@ -5,7 +5,7 @@ import classnames from 'classnames';
5
5
  import { isIconElement } from '@hh.ru/magritte-ui-icon';
6
6
  import { Title } from '@hh.ru/magritte-ui-title';
7
7
 
8
- var styles = {"content":"magritte-content___o6ktq_9-2-2","options":"magritte-options___qfErQ_9-2-2","actions":"magritte-actions___nQILV_9-2-2","actions-with-link":"magritte-actions-with-link___hnDux_9-2-2","actionsWithLink":"magritte-actions-with-link___hnDux_9-2-2","content-with-image":"magritte-content-with-image___YarBO_9-2-2","contentWithImage":"magritte-content-with-image___YarBO_9-2-2","actions-single":"magritte-actions-single___usfKu_9-2-2","actionsSingle":"magritte-actions-single___usfKu_9-2-2","image-container":"magritte-image-container___ioL3y_9-2-2","imageContainer":"magritte-image-container___ioL3y_9-2-2","title-wrapper":"magritte-title-wrapper___O--QR_9-2-2","titleWrapper":"magritte-title-wrapper___O--QR_9-2-2","wrapper":"magritte-wrapper___zH8vB_9-2-2","only-actions":"magritte-only-actions___ZC4jx_9-2-2","onlyActions":"magritte-only-actions___ZC4jx_9-2-2"};
8
+ var styles = {"content":"magritte-content___o6ktq_9-2-3","options":"magritte-options___qfErQ_9-2-3","actions":"magritte-actions___nQILV_9-2-3","actions-with-link":"magritte-actions-with-link___hnDux_9-2-3","actionsWithLink":"magritte-actions-with-link___hnDux_9-2-3","content-with-image":"magritte-content-with-image___YarBO_9-2-3","contentWithImage":"magritte-content-with-image___YarBO_9-2-3","actions-single":"magritte-actions-single___usfKu_9-2-3","actionsSingle":"magritte-actions-single___usfKu_9-2-3","image-container":"magritte-image-container___ioL3y_9-2-3","imageContainer":"magritte-image-container___ioL3y_9-2-3","title-wrapper":"magritte-title-wrapper___O--QR_9-2-3","titleWrapper":"magritte-title-wrapper___O--QR_9-2-3","wrapper":"magritte-wrapper___zH8vB_9-2-3","only-actions":"magritte-only-actions___ZC4jx_9-2-3","onlyActions":"magritte-only-actions___ZC4jx_9-2-3"};
9
9
 
10
10
  const ModalHeader = forwardRef(({ title, headerImageUrl, headerImage, headerHeight, titleAlignment, titleElement, titleMaxLines, titleSize, titleDescription, titleDescriptionMaxLines, titleStyle, titleDescriptionStyle, options, actions: _actions, actionLink, labelId, wrapperRef, }, ref) => {
11
11
  const actions = Array.isArray(_actions) ? _actions.slice(0, 5) : _actions;
package/index.css CHANGED
@@ -2,14 +2,14 @@
2
2
  --magritte-color-component-modal-background-action-v23-2-2:#20262b99;
3
3
  --magritte-gradient-component-modal-background-fade-v23-2-2:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
4
4
  }
5
- .magritte-content___o6ktq_9-2-2{
5
+ .magritte-content___o6ktq_9-2-3{
6
6
  display:flex;
7
7
  align-items:flex-start;
8
8
  }
9
- .magritte-content___o6ktq_9-2-2 + .magritte-options___qfErQ_9-2-2{
9
+ .magritte-content___o6ktq_9-2-3 + .magritte-options___qfErQ_9-2-3{
10
10
  margin-top:24px;
11
11
  }
12
- .magritte-actions___nQILV_9-2-2{
12
+ .magritte-actions___nQILV_9-2-3{
13
13
  position:relative;
14
14
  z-index:1;
15
15
  display:flex;
@@ -18,10 +18,10 @@
18
18
  margin-left:auto;
19
19
  --magritte-ui-link-padding-override:9px;
20
20
  }
21
- .magritte-actions-with-link___hnDux_9-2-2{
21
+ .magritte-actions-with-link___hnDux_9-2-3{
22
22
  padding:0 8px 0 28px;
23
23
  }
24
- .magritte-content-with-image___YarBO_9-2-2{
24
+ .magritte-content-with-image___YarBO_9-2-3{
25
25
  position:relative;
26
26
  flex-direction:column;
27
27
  justify-content:flex-end;
@@ -31,22 +31,22 @@
31
31
  padding:12px 24px 24px;
32
32
  box-sizing:border-box;
33
33
  }
34
- .magritte-content-with-image___YarBO_9-2-2 .magritte-actions___nQILV_9-2-2{
34
+ .magritte-content-with-image___YarBO_9-2-3 .magritte-actions___nQILV_9-2-3{
35
35
  order:-1;
36
36
  gap:0;
37
37
  margin-right:-16px;
38
38
  margin-top:-4px;
39
39
  margin-bottom:auto;
40
40
  }
41
- .magritte-content-with-image___YarBO_9-2-2 .magritte-actions___nQILV_9-2-2:not(.magritte-actions-with-link___hnDux_9-2-2){
41
+ .magritte-content-with-image___YarBO_9-2-3 .magritte-actions___nQILV_9-2-3:not(.magritte-actions-with-link___hnDux_9-2-3){
42
42
  padding:0 4px;
43
43
  background-color:var(--magritte-color-component-modal-background-action-v23-2-2);
44
44
  border-radius:12px;
45
45
  }
46
- .magritte-content-with-image___YarBO_9-2-2 .magritte-actions___nQILV_9-2-2.magritte-actions-single___usfKu_9-2-2:not(.magritte-actions-with-link___hnDux_9-2-2){
46
+ .magritte-content-with-image___YarBO_9-2-3 .magritte-actions___nQILV_9-2-3.magritte-actions-single___usfKu_9-2-3:not(.magritte-actions-with-link___hnDux_9-2-3){
47
47
  padding:0;
48
48
  }
49
- .magritte-image-container___ioL3y_9-2-2{
49
+ .magritte-image-container___ioL3y_9-2-3{
50
50
  position:absolute;
51
51
  left:0;
52
52
  bottom:0;
@@ -54,17 +54,17 @@
54
54
  background-size:cover;
55
55
  --modal-header-gradient:var(--magritte-gradient-component-modal-background-fade-v23-2-2);
56
56
  }
57
- .magritte-title-wrapper___O--QR_9-2-2{
57
+ .magritte-title-wrapper___O--QR_9-2-3{
58
58
  position:relative;
59
59
  width:100%;
60
60
  }
61
- .magritte-wrapper___zH8vB_9-2-2{
61
+ .magritte-wrapper___zH8vB_9-2-3{
62
62
  margin-bottom:24px;
63
63
  }
64
- .magritte-only-actions___ZC4jx_9-2-2 .magritte-actions___nQILV_9-2-2{
64
+ .magritte-only-actions___ZC4jx_9-2-3 .magritte-actions___nQILV_9-2-3{
65
65
  padding-left:0;
66
66
  }
67
- .magritte-only-actions___ZC4jx_9-2-2 .magritte-actions-with-link___hnDux_9-2-2{
67
+ .magritte-only-actions___ZC4jx_9-2-3 .magritte-actions-with-link___hnDux_9-2-3{
68
68
  padding-left:12px;
69
69
  }
70
70
 
@@ -83,7 +83,7 @@
83
83
  .magritte-night-theme{
84
84
  --magritte-color-component-modal-background-content-v23-2-2:#1B1B1B;
85
85
  }
86
- .magritte-modal-overlay___lK22l_9-2-2{
86
+ .magritte-modal-overlay___lK22l_9-2-3{
87
87
  position:fixed;
88
88
  top:0;
89
89
  right:0;
@@ -97,13 +97,13 @@
97
97
  user-select:text;
98
98
  transition-property:opacity, transform;
99
99
  }
100
- .magritte-overlay-left___JtHK4_9-2-2{
100
+ .magritte-overlay-left___JtHK4_9-2-3{
101
101
  justify-content:flex-start;
102
102
  }
103
- .magritte-overlay-right___uKTDt_9-2-2{
103
+ .magritte-overlay-right___uKTDt_9-2-3{
104
104
  justify-content:flex-end;
105
105
  }
106
- .magritte-modal___RAW6S_9-2-2{
106
+ .magritte-modal___RAW6S_9-2-3{
107
107
  display:flex;
108
108
  box-sizing:border-box;
109
109
  margin:0 12px;
@@ -119,30 +119,30 @@
119
119
  transition-property:opacity, transform;
120
120
  container-type:inline-size;
121
121
  }
122
- .magritte-modal___RAW6S_9-2-2.magritte-size-small___2JTM2_9-2-2{
122
+ .magritte-modal___RAW6S_9-2-3.magritte-size-small___2JTM2_9-2-3{
123
123
  width:480px;
124
124
  }
125
- .magritte-modal___RAW6S_9-2-2.magritte-size-medium___cWCe7_9-2-2{
125
+ .magritte-modal___RAW6S_9-2-3.magritte-size-medium___cWCe7_9-2-3{
126
126
  width:620px;
127
127
  }
128
- .magritte-no-vertical-paddings___Z3-oM_9-2-2{
128
+ .magritte-no-vertical-paddings___Z3-oM_9-2-3{
129
129
  padding-top:0;
130
130
  padding-bottom:0;
131
131
  }
132
- .magritte-no-horizontal-paddings___aT95Y_9-2-2{
132
+ .magritte-no-horizontal-paddings___aT95Y_9-2-3{
133
133
  padding-left:0;
134
134
  padding-right:0;
135
135
  }
136
- .magritte-modal-full-height___gIM4E_9-2-2{
136
+ .magritte-modal-full-height___gIM4E_9-2-3{
137
137
  height:100%;
138
138
  }
139
- .magritte-modal-content-wrapper___23XFT_9-2-2{
139
+ .magritte-modal-content-wrapper___23XFT_9-2-3{
140
140
  display:flex;
141
141
  flex-direction:column;
142
142
  min-height:0;
143
143
  flex:1 1;
144
144
  }
145
- .magritte-modal-content___46QFS_9-2-2{
145
+ .magritte-modal-content___46QFS_9-2-3{
146
146
  position:relative;
147
147
  display:flex;
148
148
  flex-direction:column;
@@ -153,231 +153,231 @@
153
153
  width:calc(100% + 24px);
154
154
  width:calc(100cqw + 24px);
155
155
  }
156
- .magritte-modal-scroll-container___Tf8Ns_9-2-2{
156
+ .magritte-modal-scroll-container___Tf8Ns_9-2-3{
157
157
  flex:1 1;
158
158
  min-height:0;
159
159
  overflow-y:auto;
160
160
  overscroll-behavior:none;
161
161
  scrollbar-width:none;
162
162
  }
163
- .magritte-modal-scroll-container___Tf8Ns_9-2-2::-webkit-scrollbar{
163
+ .magritte-modal-scroll-container___Tf8Ns_9-2-3::-webkit-scrollbar{
164
164
  display:none;
165
165
  }
166
- .magritte-modal-content-wrapper__one-line___tYg8d_9-2-2{
166
+ .magritte-modal-content-wrapper__one-line___tYg8d_9-2-3{
167
167
  flex-direction:row-reverse;
168
168
  }
169
- .magritte-modal-content-wrapper__one-line___tYg8d_9-2-2 .magritte-modal-content___46QFS_9-2-2{
169
+ .magritte-modal-content-wrapper__one-line___tYg8d_9-2-3 .magritte-modal-content___46QFS_9-2-3{
170
170
  width:auto;
171
171
  container-type:inline-size;
172
172
  margin-right:0;
173
173
  }
174
- .magritte-modal-content-wrapper__one-line___tYg8d_9-2-2 .magritte-content-sticky-container___nqEXj_9-2-2{
174
+ .magritte-modal-content-wrapper__one-line___tYg8d_9-2-3 .magritte-content-sticky-container___nqEXj_9-2-3{
175
175
  max-width:calc(100% - 16px);
176
176
  max-width:calc(100cqw - 16px);
177
177
  }
178
- .magritte-divider-container___qP3VK_9-2-2{
178
+ .magritte-divider-container___qP3VK_9-2-3{
179
179
  margin:0 -24px;
180
180
  }
181
- .magritte-divider-container___qP3VK_9-2-2.magritte-divider-container-hidden___EIxB-_9-2-2{
181
+ .magritte-divider-container___qP3VK_9-2-3.magritte-divider-container-hidden___EIxB-_9-2-3{
182
182
  display:none;
183
183
  }
184
- .magritte-modal-footer___8xPqQ_9-2-2{
184
+ .magritte-modal-footer___8xPqQ_9-2-3{
185
185
  margin:0 -24px -24px;
186
186
  background-color:var(--magritte-color-component-modal-background-content-v23-2-2);
187
187
  z-index:1;
188
188
  --magritte-ui-action-bar-background-color-override:var(--magritte-color-component-modal-background-content-v23-2-2);
189
189
  }
190
- .magritte-modal-buttons-container___1O1Nr_9-2-2{
190
+ .magritte-modal-buttons-container___1O1Nr_9-2-3{
191
191
  display:flex;
192
192
  gap:12px;
193
193
  }
194
- .magritte-animation-timeout___w-j7K_9-2-2{
194
+ .magritte-animation-timeout___w-j7K_9-2-3{
195
195
  --enter-animation-duration:0;
196
196
  --exit-animation-duration:0;
197
197
  }
198
198
  @media (prefers-reduced-motion: no-preference){
199
- .magritte-animation-timeout___w-j7K_9-2-2{
199
+ .magritte-animation-timeout___w-j7K_9-2-3{
200
200
  --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
201
201
  --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
202
202
  }
203
203
  }
204
- .magritte-animation-enter-center___7jogC_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
204
+ .magritte-animation-enter-center___7jogC_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
205
205
  opacity:0;
206
206
  }
207
- .magritte-animation-enter-center___7jogC_9-2-2 .magritte-modal___RAW6S_9-2-2{
207
+ .magritte-animation-enter-center___7jogC_9-2-3 .magritte-modal___RAW6S_9-2-3{
208
208
  opacity:0;
209
209
  transform:scale(0.96);
210
210
  }
211
- .magritte-animation-enter-center-active___fywwW_9-2-2{
211
+ .magritte-animation-enter-center-active___fywwW_9-2-3{
212
212
  --enter-animation-duration:0;
213
213
  --exit-animation-duration:0;
214
214
  }
215
215
  @media (prefers-reduced-motion: no-preference){
216
- .magritte-animation-enter-center-active___fywwW_9-2-2{
216
+ .magritte-animation-enter-center-active___fywwW_9-2-3{
217
217
  --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
218
218
  --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
219
219
  }
220
220
  }
221
- .magritte-animation-enter-center-active___fywwW_9-2-2 .magritte-modal___RAW6S_9-2-2,
222
- .magritte-animation-enter-center-active___fywwW_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
221
+ .magritte-animation-enter-center-active___fywwW_9-2-3 .magritte-modal___RAW6S_9-2-3,
222
+ .magritte-animation-enter-center-active___fywwW_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
223
223
  opacity:1;
224
224
  transition-duration:var(--enter-animation-duration);
225
225
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-2);
226
226
  transform:scale(1);
227
227
  }
228
- .magritte-animation-exit-center___3Fa6x_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
228
+ .magritte-animation-exit-center___3Fa6x_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
229
229
  opacity:1;
230
230
  }
231
- .magritte-animation-exit-center___3Fa6x_9-2-2 .magritte-modal___RAW6S_9-2-2{
231
+ .magritte-animation-exit-center___3Fa6x_9-2-3 .magritte-modal___RAW6S_9-2-3{
232
232
  opacity:1;
233
233
  transform:scale(1);
234
234
  }
235
- .magritte-animation-exit-center-active___tY0UA_9-2-2{
235
+ .magritte-animation-exit-center-active___tY0UA_9-2-3{
236
236
  --enter-animation-duration:0;
237
237
  --exit-animation-duration:0;
238
238
  }
239
239
  @media (prefers-reduced-motion: no-preference){
240
- .magritte-animation-exit-center-active___tY0UA_9-2-2{
240
+ .magritte-animation-exit-center-active___tY0UA_9-2-3{
241
241
  --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
242
242
  --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
243
243
  }
244
244
  }
245
- .magritte-animation-exit-center-active___tY0UA_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
245
+ .magritte-animation-exit-center-active___tY0UA_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
246
246
  opacity:0;
247
247
  }
248
- .magritte-animation-exit-center-active___tY0UA_9-2-2 .magritte-modal___RAW6S_9-2-2{
248
+ .magritte-animation-exit-center-active___tY0UA_9-2-3 .magritte-modal___RAW6S_9-2-3{
249
249
  opacity:0;
250
250
  transform:scale(0.96);
251
251
  }
252
- .magritte-animation-exit-center-active___tY0UA_9-2-2 .magritte-modal___RAW6S_9-2-2,
253
- .magritte-animation-exit-center-active___tY0UA_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
252
+ .magritte-animation-exit-center-active___tY0UA_9-2-3 .magritte-modal___RAW6S_9-2-3,
253
+ .magritte-animation-exit-center-active___tY0UA_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
254
254
  transition-duration:var(--exit-animation-duration);
255
255
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-2);
256
256
  }
257
- .magritte-animation-enter-left___5YB8B_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
257
+ .magritte-animation-enter-left___5YB8B_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
258
258
  opacity:0;
259
259
  }
260
- .magritte-animation-enter-left___5YB8B_9-2-2 .magritte-modal___RAW6S_9-2-2{
260
+ .magritte-animation-enter-left___5YB8B_9-2-3 .magritte-modal___RAW6S_9-2-3{
261
261
  opacity:0;
262
262
  transform:translateX(-100%);
263
263
  }
264
- .magritte-animation-enter-left-active___5GK8s_9-2-2{
264
+ .magritte-animation-enter-left-active___5GK8s_9-2-3{
265
265
  --enter-animation-duration:0;
266
266
  --exit-animation-duration:0;
267
267
  }
268
268
  @media (prefers-reduced-motion: no-preference){
269
- .magritte-animation-enter-left-active___5GK8s_9-2-2{
269
+ .magritte-animation-enter-left-active___5GK8s_9-2-3{
270
270
  --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
271
271
  --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
272
272
  }
273
273
  }
274
- .magritte-animation-enter-left-active___5GK8s_9-2-2 .magritte-modal___RAW6S_9-2-2,
275
- .magritte-animation-enter-left-active___5GK8s_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
274
+ .magritte-animation-enter-left-active___5GK8s_9-2-3 .magritte-modal___RAW6S_9-2-3,
275
+ .magritte-animation-enter-left-active___5GK8s_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
276
276
  opacity:1;
277
277
  transition-duration:var(--enter-animation-duration);
278
278
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-2);
279
279
  transform:translateX(0);
280
280
  }
281
- .magritte-animation-exit-left___OnkQE_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
281
+ .magritte-animation-exit-left___OnkQE_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
282
282
  opacity:1;
283
283
  }
284
- .magritte-animation-exit-left___OnkQE_9-2-2 .magritte-modal___RAW6S_9-2-2{
284
+ .magritte-animation-exit-left___OnkQE_9-2-3 .magritte-modal___RAW6S_9-2-3{
285
285
  opacity:1;
286
286
  transform:translateX(0);
287
287
  }
288
- .magritte-animation-exit-left-active___AEGxY_9-2-2{
288
+ .magritte-animation-exit-left-active___AEGxY_9-2-3{
289
289
  --enter-animation-duration:0;
290
290
  --exit-animation-duration:0;
291
291
  }
292
292
  @media (prefers-reduced-motion: no-preference){
293
- .magritte-animation-exit-left-active___AEGxY_9-2-2{
293
+ .magritte-animation-exit-left-active___AEGxY_9-2-3{
294
294
  --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
295
295
  --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
296
296
  }
297
297
  }
298
- .magritte-animation-exit-left-active___AEGxY_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
298
+ .magritte-animation-exit-left-active___AEGxY_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
299
299
  opacity:0;
300
300
  }
301
- .magritte-animation-exit-left-active___AEGxY_9-2-2 .magritte-modal___RAW6S_9-2-2{
301
+ .magritte-animation-exit-left-active___AEGxY_9-2-3 .magritte-modal___RAW6S_9-2-3{
302
302
  opacity:0;
303
303
  transform:translateX(-100%);
304
304
  }
305
- .magritte-animation-exit-left-active___AEGxY_9-2-2 .magritte-modal___RAW6S_9-2-2,
306
- .magritte-animation-exit-left-active___AEGxY_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
305
+ .magritte-animation-exit-left-active___AEGxY_9-2-3 .magritte-modal___RAW6S_9-2-3,
306
+ .magritte-animation-exit-left-active___AEGxY_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
307
307
  transition-duration:var(--exit-animation-duration);
308
308
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-2);
309
309
  }
310
- .magritte-animation-enter-right___2aXOm_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
310
+ .magritte-animation-enter-right___2aXOm_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
311
311
  opacity:0;
312
312
  }
313
- .magritte-animation-enter-right___2aXOm_9-2-2 .magritte-modal___RAW6S_9-2-2{
313
+ .magritte-animation-enter-right___2aXOm_9-2-3 .magritte-modal___RAW6S_9-2-3{
314
314
  opacity:0;
315
315
  transform:translateX(100%);
316
316
  }
317
- .magritte-animation-enter-right-active___8wX4-_9-2-2{
317
+ .magritte-animation-enter-right-active___8wX4-_9-2-3{
318
318
  --enter-animation-duration:0;
319
319
  --exit-animation-duration:0;
320
320
  }
321
321
  @media (prefers-reduced-motion: no-preference){
322
- .magritte-animation-enter-right-active___8wX4-_9-2-2{
322
+ .magritte-animation-enter-right-active___8wX4-_9-2-3{
323
323
  --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
324
324
  --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
325
325
  }
326
326
  }
327
- .magritte-animation-enter-right-active___8wX4-_9-2-2 .magritte-modal___RAW6S_9-2-2,
328
- .magritte-animation-enter-right-active___8wX4-_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
327
+ .magritte-animation-enter-right-active___8wX4-_9-2-3 .magritte-modal___RAW6S_9-2-3,
328
+ .magritte-animation-enter-right-active___8wX4-_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
329
329
  opacity:1;
330
330
  transition-duration:var(--enter-animation-duration);
331
331
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-2);
332
332
  transform:translateX(0);
333
333
  }
334
- .magritte-animation-exit-right___iczoc_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
334
+ .magritte-animation-exit-right___iczoc_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
335
335
  opacity:1;
336
336
  }
337
- .magritte-animation-exit-right___iczoc_9-2-2 .magritte-modal___RAW6S_9-2-2{
337
+ .magritte-animation-exit-right___iczoc_9-2-3 .magritte-modal___RAW6S_9-2-3{
338
338
  opacity:1;
339
339
  transform:translateX(0);
340
340
  }
341
- .magritte-animation-exit-right-active___eFS4O_9-2-2{
341
+ .magritte-animation-exit-right-active___eFS4O_9-2-3{
342
342
  --enter-animation-duration:0;
343
343
  --exit-animation-duration:0;
344
344
  }
345
345
  @media (prefers-reduced-motion: no-preference){
346
- .magritte-animation-exit-right-active___eFS4O_9-2-2{
346
+ .magritte-animation-exit-right-active___eFS4O_9-2-3{
347
347
  --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
348
348
  --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
349
349
  }
350
350
  }
351
- .magritte-animation-exit-right-active___eFS4O_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
351
+ .magritte-animation-exit-right-active___eFS4O_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
352
352
  opacity:0;
353
353
  }
354
- .magritte-animation-exit-right-active___eFS4O_9-2-2 .magritte-modal___RAW6S_9-2-2{
354
+ .magritte-animation-exit-right-active___eFS4O_9-2-3 .magritte-modal___RAW6S_9-2-3{
355
355
  opacity:0;
356
356
  transform:translateX(100%);
357
357
  }
358
- .magritte-animation-exit-right-active___eFS4O_9-2-2 .magritte-modal___RAW6S_9-2-2,
359
- .magritte-animation-exit-right-active___eFS4O_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
358
+ .magritte-animation-exit-right-active___eFS4O_9-2-3 .magritte-modal___RAW6S_9-2-3,
359
+ .magritte-animation-exit-right-active___eFS4O_9-2-3.magritte-modal-overlay___lK22l_9-2-3{
360
360
  transition-duration:var(--exit-animation-duration);
361
361
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-2);
362
362
  }
363
- .magritte-content-scroll-preserver___Tw5Px_9-2-2{
363
+ .magritte-content-scroll-preserver___Tw5Px_9-2-3{
364
364
  width:100%;
365
365
  height:0;
366
366
  }
367
- .magritte-tree-selector-container___fdhI-_9-2-2{
367
+ .magritte-tree-selector-container___fdhI-_9-2-3{
368
368
  height:100%;
369
369
  max-width:calc(100% - 24px);
370
370
  max-width:100cqw;
371
371
  --magritte-ui-scrollbar-offset-right:-24px;
372
372
  }
373
- .magritte-content-sticky-container___nqEXj_9-2-2{
373
+ .magritte-content-sticky-container___nqEXj_9-2-3{
374
374
  position:sticky;
375
375
  top:0;
376
376
  min-height:100%;
377
377
  max-width:calc(100% - 24px);
378
378
  max-width:100cqw;
379
379
  }
380
- .magritte-content-sticky-container_full-height___Gl9x8_9-2-2{
380
+ .magritte-content-sticky-container_full-height___Gl9x8_9-2-3{
381
381
  display:flex;
382
382
  flex-direction:column;
383
383
  }
package/index.js CHANGED
@@ -13,7 +13,7 @@ import '@hh.ru/magritte-common-use-no-bubbling';
13
13
  import '@hh.ru/magritte-ui-action-bar';
14
14
  import '@hh.ru/magritte-ui-breakpoint';
15
15
  import '@hh.ru/magritte-ui-layer';
16
- import './ModalContentWithHeader-BtZ5N0g2.js';
16
+ import './ModalContentWithHeader-uAlwyZws.js';
17
17
  import '@hh.ru/magritte-common-func-utils';
18
18
  import '@hh.ru/magritte-ui-divider';
19
19
  import './ModalHeader.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-modal",
3
- "version": "9.2.2",
3
+ "version": "9.2.3",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -35,11 +35,11 @@
35
35
  "@hh.ru/magritte-ui-layer": "3.0.4",
36
36
  "@hh.ru/magritte-ui-mock-component": "1.1.5",
37
37
  "@hh.ru/magritte-ui-progress-bar": "5.0.5",
38
- "@hh.ru/magritte-ui-scrollbar": "1.0.2",
39
- "@hh.ru/magritte-ui-textarea": "3.1.2",
38
+ "@hh.ru/magritte-ui-scrollbar": "1.0.3",
39
+ "@hh.ru/magritte-ui-textarea": "3.1.3",
40
40
  "@hh.ru/magritte-ui-theme-wrapper": "1.1.2",
41
41
  "@hh.ru/magritte-ui-title": "7.0.8",
42
- "@hh.ru/magritte-ui-tree-selector": "5.2.2"
42
+ "@hh.ru/magritte-ui-tree-selector": "5.2.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "classnames": ">=2.3.2",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "8ca374027f73643dd942a6d0a2d23ec870924a20"
53
+ "gitHead": "d561dadfd6a8237914ba7bc998422be59f5829e5"
54
54
  }