@hh.ru/magritte-ui-modal 8.1.24 → 8.1.26

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-12hdpYcl.js';
15
+ import { s as styles, M as ModalContentWithHeader } from './ModalContentWithHeader-Adrj5uD6.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';
@@ -6,7 +6,7 @@ import { requestAnimation } from '@hh.ru/magritte-common-func-utils';
6
6
  import { Divider } from '@hh.ru/magritte-ui-divider';
7
7
  import { ModalHeader } from './ModalHeader.js';
8
8
 
9
- var styles = {"modal-overlay":"magritte-modal-overlay___lK22l_8-1-24","modalOverlay":"magritte-modal-overlay___lK22l_8-1-24","overlay-left":"magritte-overlay-left___JtHK4_8-1-24","overlayLeft":"magritte-overlay-left___JtHK4_8-1-24","overlay-right":"magritte-overlay-right___uKTDt_8-1-24","overlayRight":"magritte-overlay-right___uKTDt_8-1-24","modal":"magritte-modal___RAW6S_8-1-24","size-small":"magritte-size-small___2JTM2_8-1-24","sizeSmall":"magritte-size-small___2JTM2_8-1-24","size-medium":"magritte-size-medium___cWCe7_8-1-24","sizeMedium":"magritte-size-medium___cWCe7_8-1-24","no-vertical-paddings":"magritte-no-vertical-paddings___Z3-oM_8-1-24","noVerticalPaddings":"magritte-no-vertical-paddings___Z3-oM_8-1-24","no-horizontal-paddings":"magritte-no-horizontal-paddings___aT95Y_8-1-24","noHorizontalPaddings":"magritte-no-horizontal-paddings___aT95Y_8-1-24","modal-full-height":"magritte-modal-full-height___gIM4E_8-1-24","modalFullHeight":"magritte-modal-full-height___gIM4E_8-1-24","modal-content":"magritte-modal-content___46QFS_8-1-24","modalContent":"magritte-modal-content___46QFS_8-1-24","modal-content-wrapper":"magritte-modal-content-wrapper___23XFT_8-1-24","modalContentWrapper":"magritte-modal-content-wrapper___23XFT_8-1-24","modal-content-wrapper__one-line":"magritte-modal-content-wrapper__one-line___tYg8d_8-1-24","modalContentWrapperOneLine":"magritte-modal-content-wrapper__one-line___tYg8d_8-1-24","divider-container":"magritte-divider-container___qP3VK_8-1-24","dividerContainer":"magritte-divider-container___qP3VK_8-1-24","divider-container-hidden":"magritte-divider-container-hidden___EIxB-_8-1-24","dividerContainerHidden":"magritte-divider-container-hidden___EIxB-_8-1-24","modal-footer":"magritte-modal-footer___8xPqQ_8-1-24","modalFooter":"magritte-modal-footer___8xPqQ_8-1-24","modal-buttons-container":"magritte-modal-buttons-container___1O1Nr_8-1-24","modalButtonsContainer":"magritte-modal-buttons-container___1O1Nr_8-1-24","animation-timeout":"magritte-animation-timeout___w-j7K_8-1-24","animationTimeout":"magritte-animation-timeout___w-j7K_8-1-24","animation-enter-center":"magritte-animation-enter-center___7jogC_8-1-24","animationEnterCenter":"magritte-animation-enter-center___7jogC_8-1-24","animation-enter-center-active":"magritte-animation-enter-center-active___fywwW_8-1-24","animationEnterCenterActive":"magritte-animation-enter-center-active___fywwW_8-1-24","animation-exit-center":"magritte-animation-exit-center___3Fa6x_8-1-24","animationExitCenter":"magritte-animation-exit-center___3Fa6x_8-1-24","animation-exit-center-active":"magritte-animation-exit-center-active___tY0UA_8-1-24","animationExitCenterActive":"magritte-animation-exit-center-active___tY0UA_8-1-24","animation-enter-left":"magritte-animation-enter-left___5YB8B_8-1-24","animationEnterLeft":"magritte-animation-enter-left___5YB8B_8-1-24","animation-enter-left-active":"magritte-animation-enter-left-active___5GK8s_8-1-24","animationEnterLeftActive":"magritte-animation-enter-left-active___5GK8s_8-1-24","animation-exit-left":"magritte-animation-exit-left___OnkQE_8-1-24","animationExitLeft":"magritte-animation-exit-left___OnkQE_8-1-24","animation-exit-left-active":"magritte-animation-exit-left-active___AEGxY_8-1-24","animationExitLeftActive":"magritte-animation-exit-left-active___AEGxY_8-1-24","animation-enter-right":"magritte-animation-enter-right___2aXOm_8-1-24","animationEnterRight":"magritte-animation-enter-right___2aXOm_8-1-24","animation-enter-right-active":"magritte-animation-enter-right-active___8wX4-_8-1-24","animationEnterRightActive":"magritte-animation-enter-right-active___8wX4-_8-1-24","animation-exit-right":"magritte-animation-exit-right___iczoc_8-1-24","animationExitRight":"magritte-animation-exit-right___iczoc_8-1-24","animation-exit-right-active":"magritte-animation-exit-right-active___eFS4O_8-1-24","animationExitRightActive":"magritte-animation-exit-right-active___eFS4O_8-1-24","content-scroll-preserver":"magritte-content-scroll-preserver___Tw5Px_8-1-24","contentScrollPreserver":"magritte-content-scroll-preserver___Tw5Px_8-1-24","content-sticky-container":"magritte-content-sticky-container___nqEXj_8-1-24","contentStickyContainer":"magritte-content-sticky-container___nqEXj_8-1-24","content-sticky-container_full-height":"magritte-content-sticky-container_full-height___Gl9x8_8-1-24","contentStickyContainerFullHeight":"magritte-content-sticky-container_full-height___Gl9x8_8-1-24"};
9
+ var styles = {"modal-overlay":"magritte-modal-overlay___lK22l_8-1-26","modalOverlay":"magritte-modal-overlay___lK22l_8-1-26","overlay-left":"magritte-overlay-left___JtHK4_8-1-26","overlayLeft":"magritte-overlay-left___JtHK4_8-1-26","overlay-right":"magritte-overlay-right___uKTDt_8-1-26","overlayRight":"magritte-overlay-right___uKTDt_8-1-26","modal":"magritte-modal___RAW6S_8-1-26","size-small":"magritte-size-small___2JTM2_8-1-26","sizeSmall":"magritte-size-small___2JTM2_8-1-26","size-medium":"magritte-size-medium___cWCe7_8-1-26","sizeMedium":"magritte-size-medium___cWCe7_8-1-26","no-vertical-paddings":"magritte-no-vertical-paddings___Z3-oM_8-1-26","noVerticalPaddings":"magritte-no-vertical-paddings___Z3-oM_8-1-26","no-horizontal-paddings":"magritte-no-horizontal-paddings___aT95Y_8-1-26","noHorizontalPaddings":"magritte-no-horizontal-paddings___aT95Y_8-1-26","modal-full-height":"magritte-modal-full-height___gIM4E_8-1-26","modalFullHeight":"magritte-modal-full-height___gIM4E_8-1-26","modal-content":"magritte-modal-content___46QFS_8-1-26","modalContent":"magritte-modal-content___46QFS_8-1-26","modal-content-wrapper":"magritte-modal-content-wrapper___23XFT_8-1-26","modalContentWrapper":"magritte-modal-content-wrapper___23XFT_8-1-26","modal-content-wrapper__one-line":"magritte-modal-content-wrapper__one-line___tYg8d_8-1-26","modalContentWrapperOneLine":"magritte-modal-content-wrapper__one-line___tYg8d_8-1-26","divider-container":"magritte-divider-container___qP3VK_8-1-26","dividerContainer":"magritte-divider-container___qP3VK_8-1-26","divider-container-hidden":"magritte-divider-container-hidden___EIxB-_8-1-26","dividerContainerHidden":"magritte-divider-container-hidden___EIxB-_8-1-26","modal-footer":"magritte-modal-footer___8xPqQ_8-1-26","modalFooter":"magritte-modal-footer___8xPqQ_8-1-26","modal-buttons-container":"magritte-modal-buttons-container___1O1Nr_8-1-26","modalButtonsContainer":"magritte-modal-buttons-container___1O1Nr_8-1-26","animation-timeout":"magritte-animation-timeout___w-j7K_8-1-26","animationTimeout":"magritte-animation-timeout___w-j7K_8-1-26","animation-enter-center":"magritte-animation-enter-center___7jogC_8-1-26","animationEnterCenter":"magritte-animation-enter-center___7jogC_8-1-26","animation-enter-center-active":"magritte-animation-enter-center-active___fywwW_8-1-26","animationEnterCenterActive":"magritte-animation-enter-center-active___fywwW_8-1-26","animation-exit-center":"magritte-animation-exit-center___3Fa6x_8-1-26","animationExitCenter":"magritte-animation-exit-center___3Fa6x_8-1-26","animation-exit-center-active":"magritte-animation-exit-center-active___tY0UA_8-1-26","animationExitCenterActive":"magritte-animation-exit-center-active___tY0UA_8-1-26","animation-enter-left":"magritte-animation-enter-left___5YB8B_8-1-26","animationEnterLeft":"magritte-animation-enter-left___5YB8B_8-1-26","animation-enter-left-active":"magritte-animation-enter-left-active___5GK8s_8-1-26","animationEnterLeftActive":"magritte-animation-enter-left-active___5GK8s_8-1-26","animation-exit-left":"magritte-animation-exit-left___OnkQE_8-1-26","animationExitLeft":"magritte-animation-exit-left___OnkQE_8-1-26","animation-exit-left-active":"magritte-animation-exit-left-active___AEGxY_8-1-26","animationExitLeftActive":"magritte-animation-exit-left-active___AEGxY_8-1-26","animation-enter-right":"magritte-animation-enter-right___2aXOm_8-1-26","animationEnterRight":"magritte-animation-enter-right___2aXOm_8-1-26","animation-enter-right-active":"magritte-animation-enter-right-active___8wX4-_8-1-26","animationEnterRightActive":"magritte-animation-enter-right-active___8wX4-_8-1-26","animation-exit-right":"magritte-animation-exit-right___iczoc_8-1-26","animationExitRight":"magritte-animation-exit-right___iczoc_8-1-26","animation-exit-right-active":"magritte-animation-exit-right-active___eFS4O_8-1-26","animationExitRightActive":"magritte-animation-exit-right-active___eFS4O_8-1-26","content-scroll-preserver":"magritte-content-scroll-preserver___Tw5Px_8-1-26","contentScrollPreserver":"magritte-content-scroll-preserver___Tw5Px_8-1-26","content-sticky-container":"magritte-content-sticky-container___nqEXj_8-1-26","contentStickyContainer":"magritte-content-sticky-container___nqEXj_8-1-26","content-sticky-container_full-height":"magritte-content-sticky-container_full-height___Gl9x8_8-1-26","contentStickyContainerFullHeight":"magritte-content-sticky-container_full-height___Gl9x8_8-1-26"};
10
10
 
11
11
  const checkIsScrolledToBottom = (el) => {
12
12
  return Math.abs(el.scrollHeight - el.scrollTop - el.clientHeight) < 1;
@@ -131,4 +131,4 @@ const ModalContentWithHeader = ({ labelId, children, headerHeight: _headerHeight
131
131
  };
132
132
 
133
133
  export { ModalContentWithHeader as M, styles as s };
134
- //# sourceMappingURL=ModalContentWithHeader-12hdpYcl.js.map
134
+ //# sourceMappingURL=ModalContentWithHeader-Adrj5uD6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalContentWithHeader-12hdpYcl.js","sources":["../src/ModalContentWithHeader.tsx"],"sourcesContent":["import { FC, PropsWithChildren, useCallback, useLayoutEffect, useRef } from 'react';\nimport classnames from 'classnames';\n\nimport { requestAnimation } from '@hh.ru/magritte-common-func-utils';\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';\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 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 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\n className={classnames(styles.modalContent)}\n ref={contentContainerRef}\n onScroll={handleScroll}\n data-qa=\"modal-content-scroll-container\"\n >\n {isTreeSelectorChild ? (\n children\n ) : (\n <>\n <div\n className={classnames(styles.contentStickyContainer, {\n [styles.contentStickyContainerFullHeight]: height === 'full-screen',\n })}\n ref={stickyContainerRef}\n >\n {children}\n </div>\n <div ref={spacePreserverRef} />\n </>\n )}\n </div>\n </div>\n {showDivider && (\n <div\n className={classnames(styles.dividerContainer, {\n [styles.dividerContainerHidden]: !bottomDividerVisibleRef.current,\n })}\n ref={bottomDividerContainerRef}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AAA,EAAA,QAAA,EAAA,CAAAC,GAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,sBAAsB,EAAE;AACjD,wCAAA,CAAC,MAAM,CAAC,gCAAgC,GAAG,MAAM,KAAK,aAAa;AACtE,qCAAA,CAAC,EACF,GAAG,EAAE,kBAAkB,EAEtB,QAAA,EAAA,QAAQ,EACP,CAAA,EACNA,GAAK,CAAA,KAAA,EAAA,EAAA,GAAG,EAAE,iBAAiB,EAAI,CAAA,CAAA,EAAA,CAChC,CACN,EAAA,CACC,CACJ,EAAA,CAAA,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-Adrj5uD6.js","sources":["../src/ModalContentWithHeader.tsx"],"sourcesContent":["import { FC, PropsWithChildren, useCallback, useLayoutEffect, useRef } from 'react';\nimport classnames from 'classnames';\n\nimport { requestAnimation } from '@hh.ru/magritte-common-func-utils';\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';\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 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 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\n className={classnames(styles.modalContent)}\n ref={contentContainerRef}\n onScroll={handleScroll}\n data-qa=\"modal-content-scroll-container\"\n >\n {isTreeSelectorChild ? (\n children\n ) : (\n <>\n <div\n className={classnames(styles.contentStickyContainer, {\n [styles.contentStickyContainerFullHeight]: height === 'full-screen',\n })}\n ref={stickyContainerRef}\n >\n {children}\n </div>\n <div ref={spacePreserverRef} />\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":";;;;;;;;;AAUA,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,M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pE,iBAAA,CAAC,EACF,GAAG,EAAE,yBAAyB,EAE9B,QAAA,EAAAA,GAAA,CAAC,OAAO,EAAA,EAAA,CAAG,EACT,CAAA,CACT,CACF,EAAA,CAAA,EACL;AACN;;;;"}
@@ -5,7 +5,7 @@ import 'classnames';
5
5
  import '@hh.ru/magritte-common-func-utils';
6
6
  import '@hh.ru/magritte-ui-divider';
7
7
  import './ModalHeader.js';
8
- export { M as ModalContentWithHeader } from './ModalContentWithHeader-12hdpYcl.js';
8
+ export { M as ModalContentWithHeader } from './ModalContentWithHeader-Adrj5uD6.js';
9
9
  import '@hh.ru/magritte-ui-icon';
10
10
  import '@hh.ru/magritte-ui-title';
11
11
  //# sourceMappingURL=ModalContentWithHeader.js.map
package/ModalHeader.js CHANGED
@@ -5,7 +5,7 @@ import classnames from 'classnames';
5
5
  import { isIconComponent } 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_8-1-24","options":"magritte-options___qfErQ_8-1-24","actions":"magritte-actions___nQILV_8-1-24","actions-with-link":"magritte-actions-with-link___hnDux_8-1-24","actionsWithLink":"magritte-actions-with-link___hnDux_8-1-24","content-with-image":"magritte-content-with-image___YarBO_8-1-24","contentWithImage":"magritte-content-with-image___YarBO_8-1-24","actions-single":"magritte-actions-single___usfKu_8-1-24","actionsSingle":"magritte-actions-single___usfKu_8-1-24","image-container":"magritte-image-container___ioL3y_8-1-24","imageContainer":"magritte-image-container___ioL3y_8-1-24","title-wrapper":"magritte-title-wrapper___O--QR_8-1-24","titleWrapper":"magritte-title-wrapper___O--QR_8-1-24","wrapper":"magritte-wrapper___zH8vB_8-1-24"};
8
+ var styles = {"content":"magritte-content___o6ktq_8-1-26","options":"magritte-options___qfErQ_8-1-26","actions":"magritte-actions___nQILV_8-1-26","actions-with-link":"magritte-actions-with-link___hnDux_8-1-26","actionsWithLink":"magritte-actions-with-link___hnDux_8-1-26","content-with-image":"magritte-content-with-image___YarBO_8-1-26","contentWithImage":"magritte-content-with-image___YarBO_8-1-26","actions-single":"magritte-actions-single___usfKu_8-1-26","actionsSingle":"magritte-actions-single___usfKu_8-1-26","image-container":"magritte-image-container___ioL3y_8-1-26","imageContainer":"magritte-image-container___ioL3y_8-1-26","title-wrapper":"magritte-title-wrapper___O--QR_8-1-26","titleWrapper":"magritte-title-wrapper___O--QR_8-1-26","wrapper":"magritte-wrapper___zH8vB_8-1-26"};
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
@@ -1,23 +1,23 @@
1
1
  :root{
2
- --magritte-color-component-modal-background-action-v21-5-1:#20262b99;
3
- --magritte-gradient-component-modal-background-fade-v21-5-1:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
2
+ --magritte-color-component-modal-background-action-v22-0-0:#20262b99;
3
+ --magritte-gradient-component-modal-background-fade-v22-0-0:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
4
4
  }
5
5
  :root{
6
- --magritte-static-border-radius-300-v21-5-1:12px;
7
- --magritte-static-border-radius-400-v21-5-1:16px;
6
+ --magritte-static-border-radius-300-v22-0-0:12px;
7
+ --magritte-static-border-radius-400-v22-0-0:16px;
8
8
  }
9
9
  .magritte-night-theme{
10
- --magritte-color-component-modal-background-action-v21-5-1:#20262b99;
11
- --magritte-gradient-component-modal-background-fade-v21-5-1:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
10
+ --magritte-color-component-modal-background-action-v22-0-0:#20262b99;
11
+ --magritte-gradient-component-modal-background-fade-v22-0-0:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
12
12
  }
13
- .magritte-content___o6ktq_8-1-24{
13
+ .magritte-content___o6ktq_8-1-26{
14
14
  display:flex;
15
15
  align-items:flex-start;
16
16
  }
17
- .magritte-content___o6ktq_8-1-24 + .magritte-options___qfErQ_8-1-24{
17
+ .magritte-content___o6ktq_8-1-26 + .magritte-options___qfErQ_8-1-26{
18
18
  margin-top:24px;
19
19
  }
20
- .magritte-actions___nQILV_8-1-24{
20
+ .magritte-actions___nQILV_8-1-26{
21
21
  position:relative;
22
22
  z-index:1;
23
23
  display:flex;
@@ -26,66 +26,66 @@
26
26
  margin-left:auto;
27
27
  --magritte-ui-link-padding-override:9px;
28
28
  }
29
- .magritte-actions-with-link___hnDux_8-1-24{
29
+ .magritte-actions-with-link___hnDux_8-1-26{
30
30
  padding:0 8px 0 28px;
31
31
  }
32
- .magritte-content-with-image___YarBO_8-1-24{
32
+ .magritte-content-with-image___YarBO_8-1-26{
33
33
  position:relative;
34
34
  flex-direction:column;
35
35
  justify-content:flex-end;
36
36
  margin:-12px -12px 0;
37
- border-radius:var(--magritte-static-border-radius-400-v21-5-1);
37
+ border-radius:var(--magritte-static-border-radius-400-v22-0-0);
38
38
  overflow:hidden;
39
39
  padding:12px 24px 24px;
40
40
  box-sizing:border-box;
41
41
  }
42
- .magritte-content-with-image___YarBO_8-1-24 .magritte-actions___nQILV_8-1-24{
42
+ .magritte-content-with-image___YarBO_8-1-26 .magritte-actions___nQILV_8-1-26{
43
43
  order:-1;
44
44
  gap:0;
45
45
  margin-right:-16px;
46
46
  margin-top:-4px;
47
47
  margin-bottom:auto;
48
48
  }
49
- .magritte-content-with-image___YarBO_8-1-24 .magritte-actions___nQILV_8-1-24:not(.magritte-actions-with-link___hnDux_8-1-24){
49
+ .magritte-content-with-image___YarBO_8-1-26 .magritte-actions___nQILV_8-1-26:not(.magritte-actions-with-link___hnDux_8-1-26){
50
50
  padding:0 4px;
51
- background-color:var(--magritte-color-component-modal-background-action-v21-5-1);
52
- border-radius:var(--magritte-static-border-radius-300-v21-5-1);
51
+ background-color:var(--magritte-color-component-modal-background-action-v22-0-0);
52
+ border-radius:var(--magritte-static-border-radius-300-v22-0-0);
53
53
  }
54
- .magritte-content-with-image___YarBO_8-1-24 .magritte-actions___nQILV_8-1-24.magritte-actions-single___usfKu_8-1-24:not(.magritte-actions-with-link___hnDux_8-1-24){
54
+ .magritte-content-with-image___YarBO_8-1-26 .magritte-actions___nQILV_8-1-26.magritte-actions-single___usfKu_8-1-26:not(.magritte-actions-with-link___hnDux_8-1-26){
55
55
  padding:0;
56
56
  }
57
- .magritte-image-container___ioL3y_8-1-24{
57
+ .magritte-image-container___ioL3y_8-1-26{
58
58
  position:absolute;
59
59
  left:0;
60
60
  bottom:0;
61
61
  right:0;
62
62
  background-size:cover;
63
- --modal-header-gradient:var(--magritte-gradient-component-modal-background-fade-v21-5-1);
63
+ --modal-header-gradient:var(--magritte-gradient-component-modal-background-fade-v22-0-0);
64
64
  }
65
- .magritte-title-wrapper___O--QR_8-1-24{
65
+ .magritte-title-wrapper___O--QR_8-1-26{
66
66
  position:relative;
67
67
  width:100%;
68
68
  }
69
- .magritte-wrapper___zH8vB_8-1-24{
69
+ .magritte-wrapper___zH8vB_8-1-26{
70
70
  margin-bottom:24px;
71
71
  }
72
72
 
73
73
  :root{
74
- --magritte-color-background-overlay-v21-5-1:#20262b99;
75
- --magritte-color-component-modal-background-content-v21-5-1:#ffffff;
74
+ --magritte-color-background-overlay-v22-0-0:#20262b99;
75
+ --magritte-color-component-modal-background-content-v22-0-0:#ffffff;
76
76
  }
77
77
  :root{
78
- --magritte-semantic-animation-ease-in-out-200-timing-function-v21-5-1:cubic-bezier(0.25, 0.1, 0.25, 1);
79
- --magritte-semantic-animation-ease-in-out-200-duration-v21-5-1:200ms;
80
- --magritte-semantic-animation-ease-in-out-300-timing-function-v21-5-1:cubic-bezier(0.25, 0.1, 0.25, 1);
81
- --magritte-semantic-animation-ease-in-out-300-duration-v21-5-1:300ms;
82
- --magritte-static-border-radius-600-v21-5-1:24px;
78
+ --magritte-semantic-animation-ease-in-out-200-timing-function-v22-0-0:cubic-bezier(0.25, 0.1, 0.25, 1);
79
+ --magritte-semantic-animation-ease-in-out-200-duration-v22-0-0:200ms;
80
+ --magritte-semantic-animation-ease-in-out-300-timing-function-v22-0-0:cubic-bezier(0.25, 0.1, 0.25, 1);
81
+ --magritte-semantic-animation-ease-in-out-300-duration-v22-0-0:300ms;
82
+ --magritte-static-border-radius-600-v22-0-0:24px;
83
83
  }
84
84
  .magritte-night-theme{
85
- --magritte-color-background-overlay-v21-5-1:#20262b99;
86
- --magritte-color-component-modal-background-content-v21-5-1:#1B1B1B;
85
+ --magritte-color-background-overlay-v22-0-0:#20262b99;
86
+ --magritte-color-component-modal-background-content-v22-0-0:#1B1B1B;
87
87
  }
88
- .magritte-modal-overlay___lK22l_8-1-24{
88
+ .magritte-modal-overlay___lK22l_8-1-26{
89
89
  position:fixed;
90
90
  top:0;
91
91
  right:0;
@@ -94,18 +94,18 @@
94
94
  display:flex;
95
95
  align-items:center;
96
96
  justify-content:center;
97
- background-color:var(--magritte-color-background-overlay-v21-5-1);
97
+ background-color:var(--magritte-color-background-overlay-v22-0-0);
98
98
  z-index:1;
99
99
  user-select:text;
100
100
  transition-property:opacity, transform;
101
101
  }
102
- .magritte-overlay-left___JtHK4_8-1-24{
102
+ .magritte-overlay-left___JtHK4_8-1-26{
103
103
  justify-content:flex-start;
104
104
  }
105
- .magritte-overlay-right___uKTDt_8-1-24{
105
+ .magritte-overlay-right___uKTDt_8-1-26{
106
106
  justify-content:flex-end;
107
107
  }
108
- .magritte-modal___RAW6S_8-1-24{
108
+ .magritte-modal___RAW6S_8-1-26{
109
109
  display:flex;
110
110
  box-sizing:border-box;
111
111
  margin:0 12px;
@@ -114,240 +114,240 @@
114
114
  max-height:calc(100vh - 12px * 2);
115
115
  max-width:calc(100vw - 12px * 2);
116
116
  position:relative;
117
- background-color:var(--magritte-color-component-modal-background-content-v21-5-1);
118
- border-radius:var(--magritte-static-border-radius-600-v21-5-1);
117
+ background-color:var(--magritte-color-component-modal-background-content-v22-0-0);
118
+ border-radius:var(--magritte-static-border-radius-600-v22-0-0);
119
119
  overflow:hidden;
120
120
  width:800px;
121
121
  transition-property:opacity, transform;
122
122
  }
123
- .magritte-modal___RAW6S_8-1-24.magritte-size-small___2JTM2_8-1-24{
123
+ .magritte-modal___RAW6S_8-1-26.magritte-size-small___2JTM2_8-1-26{
124
124
  width:480px;
125
125
  }
126
- .magritte-modal___RAW6S_8-1-24.magritte-size-medium___cWCe7_8-1-24{
126
+ .magritte-modal___RAW6S_8-1-26.magritte-size-medium___cWCe7_8-1-26{
127
127
  width:620px;
128
128
  }
129
- .magritte-no-vertical-paddings___Z3-oM_8-1-24{
129
+ .magritte-no-vertical-paddings___Z3-oM_8-1-26{
130
130
  padding-top:0;
131
131
  padding-bottom:0;
132
132
  }
133
- .magritte-no-horizontal-paddings___aT95Y_8-1-24{
133
+ .magritte-no-horizontal-paddings___aT95Y_8-1-26{
134
134
  padding-left:0;
135
135
  padding-right:0;
136
136
  }
137
- .magritte-modal-full-height___gIM4E_8-1-24{
137
+ .magritte-modal-full-height___gIM4E_8-1-26{
138
138
  height:100%;
139
139
  }
140
- .magritte-modal-content___46QFS_8-1-24{
140
+ .magritte-modal-content___46QFS_8-1-26{
141
141
  flex:1 1;
142
142
  overflow-y:auto;
143
143
  padding:0 5px;
144
144
  margin:0 -5px;
145
145
  overscroll-behavior:none;
146
146
  }
147
- .magritte-modal-content-wrapper___23XFT_8-1-24{
147
+ .magritte-modal-content-wrapper___23XFT_8-1-26{
148
148
  display:flex;
149
149
  flex-direction:column;
150
150
  min-height:0;
151
151
  flex:1 1;
152
152
  }
153
- .magritte-modal-content-wrapper__one-line___tYg8d_8-1-24{
153
+ .magritte-modal-content-wrapper__one-line___tYg8d_8-1-26{
154
154
  flex-direction:row-reverse;
155
155
  }
156
- .magritte-divider-container___qP3VK_8-1-24{
156
+ .magritte-divider-container___qP3VK_8-1-26{
157
157
  margin:0 -24px;
158
158
  }
159
- .magritte-divider-container___qP3VK_8-1-24.magritte-divider-container-hidden___EIxB-_8-1-24{
159
+ .magritte-divider-container___qP3VK_8-1-26.magritte-divider-container-hidden___EIxB-_8-1-26{
160
160
  display:none;
161
161
  }
162
- .magritte-modal-footer___8xPqQ_8-1-24{
162
+ .magritte-modal-footer___8xPqQ_8-1-26{
163
163
  margin:0 -24px -24px;
164
- background-color:var(--magritte-color-component-modal-background-content-v21-5-1);
164
+ background-color:var(--magritte-color-component-modal-background-content-v22-0-0);
165
165
  z-index:1;
166
- --magritte-ui-action-bar-background-color-override:var(--magritte-color-component-modal-background-content-v21-5-1);
166
+ --magritte-ui-action-bar-background-color-override:var(--magritte-color-component-modal-background-content-v22-0-0);
167
167
  }
168
- .magritte-modal-buttons-container___1O1Nr_8-1-24{
168
+ .magritte-modal-buttons-container___1O1Nr_8-1-26{
169
169
  display:flex;
170
170
  gap:12px;
171
171
  }
172
- .magritte-animation-timeout___w-j7K_8-1-24{
172
+ .magritte-animation-timeout___w-j7K_8-1-26{
173
173
  --enter-animation-duration:0;
174
174
  --exit-animation-duration:0;
175
175
  }
176
176
  @media (prefers-reduced-motion: no-preference){
177
- .magritte-animation-timeout___w-j7K_8-1-24{
178
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-5-1);
179
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-5-1);
177
+ .magritte-animation-timeout___w-j7K_8-1-26{
178
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
179
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v22-0-0);
180
180
  }
181
181
  }
182
- .magritte-animation-enter-center___7jogC_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
182
+ .magritte-animation-enter-center___7jogC_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
183
183
  opacity:0;
184
184
  }
185
- .magritte-animation-enter-center___7jogC_8-1-24 .magritte-modal___RAW6S_8-1-24{
185
+ .magritte-animation-enter-center___7jogC_8-1-26 .magritte-modal___RAW6S_8-1-26{
186
186
  opacity:0;
187
187
  transform:scale(0.96);
188
188
  }
189
- .magritte-animation-enter-center-active___fywwW_8-1-24{
189
+ .magritte-animation-enter-center-active___fywwW_8-1-26{
190
190
  --enter-animation-duration:0;
191
191
  --exit-animation-duration:0;
192
192
  }
193
193
  @media (prefers-reduced-motion: no-preference){
194
- .magritte-animation-enter-center-active___fywwW_8-1-24{
195
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-5-1);
196
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-5-1);
194
+ .magritte-animation-enter-center-active___fywwW_8-1-26{
195
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
196
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v22-0-0);
197
197
  }
198
198
  }
199
- .magritte-animation-enter-center-active___fywwW_8-1-24 .magritte-modal___RAW6S_8-1-24,
200
- .magritte-animation-enter-center-active___fywwW_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
199
+ .magritte-animation-enter-center-active___fywwW_8-1-26 .magritte-modal___RAW6S_8-1-26,
200
+ .magritte-animation-enter-center-active___fywwW_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
201
201
  opacity:1;
202
202
  transition-duration:var(--enter-animation-duration);
203
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v21-5-1);
203
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v22-0-0);
204
204
  transform:scale(1);
205
205
  }
206
- .magritte-animation-exit-center___3Fa6x_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
206
+ .magritte-animation-exit-center___3Fa6x_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
207
207
  opacity:1;
208
208
  }
209
- .magritte-animation-exit-center___3Fa6x_8-1-24 .magritte-modal___RAW6S_8-1-24{
209
+ .magritte-animation-exit-center___3Fa6x_8-1-26 .magritte-modal___RAW6S_8-1-26{
210
210
  opacity:1;
211
211
  transform:scale(1);
212
212
  }
213
- .magritte-animation-exit-center-active___tY0UA_8-1-24{
213
+ .magritte-animation-exit-center-active___tY0UA_8-1-26{
214
214
  --enter-animation-duration:0;
215
215
  --exit-animation-duration:0;
216
216
  }
217
217
  @media (prefers-reduced-motion: no-preference){
218
- .magritte-animation-exit-center-active___tY0UA_8-1-24{
219
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-5-1);
220
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-5-1);
218
+ .magritte-animation-exit-center-active___tY0UA_8-1-26{
219
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
220
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v22-0-0);
221
221
  }
222
222
  }
223
- .magritte-animation-exit-center-active___tY0UA_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
223
+ .magritte-animation-exit-center-active___tY0UA_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
224
224
  opacity:0;
225
225
  }
226
- .magritte-animation-exit-center-active___tY0UA_8-1-24 .magritte-modal___RAW6S_8-1-24{
226
+ .magritte-animation-exit-center-active___tY0UA_8-1-26 .magritte-modal___RAW6S_8-1-26{
227
227
  opacity:0;
228
228
  transform:scale(0.96);
229
229
  }
230
- .magritte-animation-exit-center-active___tY0UA_8-1-24 .magritte-modal___RAW6S_8-1-24,
231
- .magritte-animation-exit-center-active___tY0UA_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
230
+ .magritte-animation-exit-center-active___tY0UA_8-1-26 .magritte-modal___RAW6S_8-1-26,
231
+ .magritte-animation-exit-center-active___tY0UA_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
232
232
  transition-duration:var(--exit-animation-duration);
233
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-5-1);
233
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v22-0-0);
234
234
  }
235
- .magritte-animation-enter-left___5YB8B_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
235
+ .magritte-animation-enter-left___5YB8B_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
236
236
  opacity:0;
237
237
  }
238
- .magritte-animation-enter-left___5YB8B_8-1-24 .magritte-modal___RAW6S_8-1-24{
238
+ .magritte-animation-enter-left___5YB8B_8-1-26 .magritte-modal___RAW6S_8-1-26{
239
239
  opacity:0;
240
240
  transform:translateX(-100%);
241
241
  }
242
- .magritte-animation-enter-left-active___5GK8s_8-1-24{
242
+ .magritte-animation-enter-left-active___5GK8s_8-1-26{
243
243
  --enter-animation-duration:0;
244
244
  --exit-animation-duration:0;
245
245
  }
246
246
  @media (prefers-reduced-motion: no-preference){
247
- .magritte-animation-enter-left-active___5GK8s_8-1-24{
248
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-5-1);
249
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-5-1);
247
+ .magritte-animation-enter-left-active___5GK8s_8-1-26{
248
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
249
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v22-0-0);
250
250
  }
251
251
  }
252
- .magritte-animation-enter-left-active___5GK8s_8-1-24 .magritte-modal___RAW6S_8-1-24,
253
- .magritte-animation-enter-left-active___5GK8s_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
252
+ .magritte-animation-enter-left-active___5GK8s_8-1-26 .magritte-modal___RAW6S_8-1-26,
253
+ .magritte-animation-enter-left-active___5GK8s_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
254
254
  opacity:1;
255
255
  transition-duration:var(--enter-animation-duration);
256
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v21-5-1);
256
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v22-0-0);
257
257
  transform:translateX(0);
258
258
  }
259
- .magritte-animation-exit-left___OnkQE_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
259
+ .magritte-animation-exit-left___OnkQE_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
260
260
  opacity:1;
261
261
  }
262
- .magritte-animation-exit-left___OnkQE_8-1-24 .magritte-modal___RAW6S_8-1-24{
262
+ .magritte-animation-exit-left___OnkQE_8-1-26 .magritte-modal___RAW6S_8-1-26{
263
263
  opacity:1;
264
264
  transform:translateX(0);
265
265
  }
266
- .magritte-animation-exit-left-active___AEGxY_8-1-24{
266
+ .magritte-animation-exit-left-active___AEGxY_8-1-26{
267
267
  --enter-animation-duration:0;
268
268
  --exit-animation-duration:0;
269
269
  }
270
270
  @media (prefers-reduced-motion: no-preference){
271
- .magritte-animation-exit-left-active___AEGxY_8-1-24{
272
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-5-1);
273
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-5-1);
271
+ .magritte-animation-exit-left-active___AEGxY_8-1-26{
272
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
273
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v22-0-0);
274
274
  }
275
275
  }
276
- .magritte-animation-exit-left-active___AEGxY_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
276
+ .magritte-animation-exit-left-active___AEGxY_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
277
277
  opacity:0;
278
278
  }
279
- .magritte-animation-exit-left-active___AEGxY_8-1-24 .magritte-modal___RAW6S_8-1-24{
279
+ .magritte-animation-exit-left-active___AEGxY_8-1-26 .magritte-modal___RAW6S_8-1-26{
280
280
  opacity:0;
281
281
  transform:translateX(-100%);
282
282
  }
283
- .magritte-animation-exit-left-active___AEGxY_8-1-24 .magritte-modal___RAW6S_8-1-24,
284
- .magritte-animation-exit-left-active___AEGxY_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
283
+ .magritte-animation-exit-left-active___AEGxY_8-1-26 .magritte-modal___RAW6S_8-1-26,
284
+ .magritte-animation-exit-left-active___AEGxY_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
285
285
  transition-duration:var(--exit-animation-duration);
286
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-5-1);
286
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v22-0-0);
287
287
  }
288
- .magritte-animation-enter-right___2aXOm_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
288
+ .magritte-animation-enter-right___2aXOm_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
289
289
  opacity:0;
290
290
  }
291
- .magritte-animation-enter-right___2aXOm_8-1-24 .magritte-modal___RAW6S_8-1-24{
291
+ .magritte-animation-enter-right___2aXOm_8-1-26 .magritte-modal___RAW6S_8-1-26{
292
292
  opacity:0;
293
293
  transform:translateX(100%);
294
294
  }
295
- .magritte-animation-enter-right-active___8wX4-_8-1-24{
295
+ .magritte-animation-enter-right-active___8wX4-_8-1-26{
296
296
  --enter-animation-duration:0;
297
297
  --exit-animation-duration:0;
298
298
  }
299
299
  @media (prefers-reduced-motion: no-preference){
300
- .magritte-animation-enter-right-active___8wX4-_8-1-24{
301
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-5-1);
302
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-5-1);
300
+ .magritte-animation-enter-right-active___8wX4-_8-1-26{
301
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
302
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v22-0-0);
303
303
  }
304
304
  }
305
- .magritte-animation-enter-right-active___8wX4-_8-1-24 .magritte-modal___RAW6S_8-1-24,
306
- .magritte-animation-enter-right-active___8wX4-_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
305
+ .magritte-animation-enter-right-active___8wX4-_8-1-26 .magritte-modal___RAW6S_8-1-26,
306
+ .magritte-animation-enter-right-active___8wX4-_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
307
307
  opacity:1;
308
308
  transition-duration:var(--enter-animation-duration);
309
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v21-5-1);
309
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v22-0-0);
310
310
  transform:translateX(0);
311
311
  }
312
- .magritte-animation-exit-right___iczoc_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
312
+ .magritte-animation-exit-right___iczoc_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
313
313
  opacity:1;
314
314
  }
315
- .magritte-animation-exit-right___iczoc_8-1-24 .magritte-modal___RAW6S_8-1-24{
315
+ .magritte-animation-exit-right___iczoc_8-1-26 .magritte-modal___RAW6S_8-1-26{
316
316
  opacity:1;
317
317
  transform:translateX(0);
318
318
  }
319
- .magritte-animation-exit-right-active___eFS4O_8-1-24{
319
+ .magritte-animation-exit-right-active___eFS4O_8-1-26{
320
320
  --enter-animation-duration:0;
321
321
  --exit-animation-duration:0;
322
322
  }
323
323
  @media (prefers-reduced-motion: no-preference){
324
- .magritte-animation-exit-right-active___eFS4O_8-1-24{
325
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-5-1);
326
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-5-1);
324
+ .magritte-animation-exit-right-active___eFS4O_8-1-26{
325
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v22-0-0);
326
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v22-0-0);
327
327
  }
328
328
  }
329
- .magritte-animation-exit-right-active___eFS4O_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
329
+ .magritte-animation-exit-right-active___eFS4O_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
330
330
  opacity:0;
331
331
  }
332
- .magritte-animation-exit-right-active___eFS4O_8-1-24 .magritte-modal___RAW6S_8-1-24{
332
+ .magritte-animation-exit-right-active___eFS4O_8-1-26 .magritte-modal___RAW6S_8-1-26{
333
333
  opacity:0;
334
334
  transform:translateX(100%);
335
335
  }
336
- .magritte-animation-exit-right-active___eFS4O_8-1-24 .magritte-modal___RAW6S_8-1-24,
337
- .magritte-animation-exit-right-active___eFS4O_8-1-24.magritte-modal-overlay___lK22l_8-1-24{
336
+ .magritte-animation-exit-right-active___eFS4O_8-1-26 .magritte-modal___RAW6S_8-1-26,
337
+ .magritte-animation-exit-right-active___eFS4O_8-1-26.magritte-modal-overlay___lK22l_8-1-26{
338
338
  transition-duration:var(--exit-animation-duration);
339
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-5-1);
339
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v22-0-0);
340
340
  }
341
- .magritte-content-scroll-preserver___Tw5Px_8-1-24{
341
+ .magritte-content-scroll-preserver___Tw5Px_8-1-26{
342
342
  width:100%;
343
343
  height:0;
344
344
  }
345
- .magritte-content-sticky-container___nqEXj_8-1-24{
345
+ .magritte-content-sticky-container___nqEXj_8-1-26{
346
346
  position:sticky;
347
347
  top:0;
348
348
  min-height:100%;
349
349
  }
350
- .magritte-content-sticky-container_full-height___Gl9x8_8-1-24{
350
+ .magritte-content-sticky-container_full-height___Gl9x8_8-1-26{
351
351
  display:flex;
352
352
  flex-direction:column;
353
353
  }
package/index.js CHANGED
@@ -14,7 +14,7 @@ import '@hh.ru/magritte-common-use-no-bubbling';
14
14
  import '@hh.ru/magritte-ui-action-bar';
15
15
  import '@hh.ru/magritte-ui-breakpoint';
16
16
  import '@hh.ru/magritte-ui-layer';
17
- import './ModalContentWithHeader-12hdpYcl.js';
17
+ import './ModalContentWithHeader-Adrj5uD6.js';
18
18
  import '@hh.ru/magritte-common-func-utils';
19
19
  import '@hh.ru/magritte-ui-divider';
20
20
  import './ModalHeader.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-modal",
3
- "version": "8.1.24",
3
+ "version": "8.1.26",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -26,18 +26,18 @@
26
26
  "@hh.ru/magritte-common-modal-helper": "1.2.10",
27
27
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.7",
28
28
  "@hh.ru/magritte-common-use-no-bubbling": "1.0.5",
29
- "@hh.ru/magritte-design-tokens": "21.5.1",
29
+ "@hh.ru/magritte-design-tokens": "22.0.0",
30
30
  "@hh.ru/magritte-internal-layer-name": "3.0.2",
31
- "@hh.ru/magritte-ui-action-bar": "4.0.3",
31
+ "@hh.ru/magritte-ui-action-bar": "4.0.5",
32
32
  "@hh.ru/magritte-ui-breakpoint": "5.0.3",
33
- "@hh.ru/magritte-ui-divider": "1.1.54",
34
- "@hh.ru/magritte-ui-icon": "11.0.12",
33
+ "@hh.ru/magritte-ui-divider": "2.0.0",
34
+ "@hh.ru/magritte-ui-icon": "11.0.14",
35
35
  "@hh.ru/magritte-ui-layer": "3.0.2",
36
36
  "@hh.ru/magritte-ui-mock-component": "1.1.4",
37
- "@hh.ru/magritte-ui-progress-bar": "4.2.0",
38
- "@hh.ru/magritte-ui-theme-provider": "1.1.50",
39
- "@hh.ru/magritte-ui-title": "6.1.19",
40
- "@hh.ru/magritte-ui-tree-selector": "4.6.61"
37
+ "@hh.ru/magritte-ui-progress-bar": "4.2.1",
38
+ "@hh.ru/magritte-ui-theme-provider": "1.1.51",
39
+ "@hh.ru/magritte-ui-title": "6.1.20",
40
+ "@hh.ru/magritte-ui-tree-selector": "4.6.63"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "classnames": ">=2.3.2",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "5ca3a8a18d81206fffa12bb08398ba44d8b442e3"
51
+ "gitHead": "d1596153195180eea9a2bef531e062520e5ac74b"
52
52
  }