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

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-wVIU8uOc.js';
15
+ import { s as styles, M as ModalContentWithHeader } from './ModalContentWithHeader-BtZ5N0g2.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-0","modalOverlay":"magritte-modal-overlay___lK22l_9-2-0","overlay-left":"magritte-overlay-left___JtHK4_9-2-0","overlayLeft":"magritte-overlay-left___JtHK4_9-2-0","overlay-right":"magritte-overlay-right___uKTDt_9-2-0","overlayRight":"magritte-overlay-right___uKTDt_9-2-0","modal":"magritte-modal___RAW6S_9-2-0","size-small":"magritte-size-small___2JTM2_9-2-0","sizeSmall":"magritte-size-small___2JTM2_9-2-0","size-medium":"magritte-size-medium___cWCe7_9-2-0","sizeMedium":"magritte-size-medium___cWCe7_9-2-0","no-vertical-paddings":"magritte-no-vertical-paddings___Z3-oM_9-2-0","noVerticalPaddings":"magritte-no-vertical-paddings___Z3-oM_9-2-0","no-horizontal-paddings":"magritte-no-horizontal-paddings___aT95Y_9-2-0","noHorizontalPaddings":"magritte-no-horizontal-paddings___aT95Y_9-2-0","modal-full-height":"magritte-modal-full-height___gIM4E_9-2-0","modalFullHeight":"magritte-modal-full-height___gIM4E_9-2-0","modal-content-wrapper":"magritte-modal-content-wrapper___23XFT_9-2-0","modalContentWrapper":"magritte-modal-content-wrapper___23XFT_9-2-0","modal-content":"magritte-modal-content___46QFS_9-2-0","modalContent":"magritte-modal-content___46QFS_9-2-0","modal-scroll-container":"magritte-modal-scroll-container___Tf8Ns_9-2-0","modalScrollContainer":"magritte-modal-scroll-container___Tf8Ns_9-2-0","modal-content-wrapper__one-line":"magritte-modal-content-wrapper__one-line___tYg8d_9-2-0","modalContentWrapperOneLine":"magritte-modal-content-wrapper__one-line___tYg8d_9-2-0","content-sticky-container":"magritte-content-sticky-container___nqEXj_9-2-0","contentStickyContainer":"magritte-content-sticky-container___nqEXj_9-2-0","divider-container":"magritte-divider-container___qP3VK_9-2-0","dividerContainer":"magritte-divider-container___qP3VK_9-2-0","divider-container-hidden":"magritte-divider-container-hidden___EIxB-_9-2-0","dividerContainerHidden":"magritte-divider-container-hidden___EIxB-_9-2-0","modal-footer":"magritte-modal-footer___8xPqQ_9-2-0","modalFooter":"magritte-modal-footer___8xPqQ_9-2-0","modal-buttons-container":"magritte-modal-buttons-container___1O1Nr_9-2-0","modalButtonsContainer":"magritte-modal-buttons-container___1O1Nr_9-2-0","animation-timeout":"magritte-animation-timeout___w-j7K_9-2-0","animationTimeout":"magritte-animation-timeout___w-j7K_9-2-0","animation-enter-center":"magritte-animation-enter-center___7jogC_9-2-0","animationEnterCenter":"magritte-animation-enter-center___7jogC_9-2-0","animation-enter-center-active":"magritte-animation-enter-center-active___fywwW_9-2-0","animationEnterCenterActive":"magritte-animation-enter-center-active___fywwW_9-2-0","animation-exit-center":"magritte-animation-exit-center___3Fa6x_9-2-0","animationExitCenter":"magritte-animation-exit-center___3Fa6x_9-2-0","animation-exit-center-active":"magritte-animation-exit-center-active___tY0UA_9-2-0","animationExitCenterActive":"magritte-animation-exit-center-active___tY0UA_9-2-0","animation-enter-left":"magritte-animation-enter-left___5YB8B_9-2-0","animationEnterLeft":"magritte-animation-enter-left___5YB8B_9-2-0","animation-enter-left-active":"magritte-animation-enter-left-active___5GK8s_9-2-0","animationEnterLeftActive":"magritte-animation-enter-left-active___5GK8s_9-2-0","animation-exit-left":"magritte-animation-exit-left___OnkQE_9-2-0","animationExitLeft":"magritte-animation-exit-left___OnkQE_9-2-0","animation-exit-left-active":"magritte-animation-exit-left-active___AEGxY_9-2-0","animationExitLeftActive":"magritte-animation-exit-left-active___AEGxY_9-2-0","animation-enter-right":"magritte-animation-enter-right___2aXOm_9-2-0","animationEnterRight":"magritte-animation-enter-right___2aXOm_9-2-0","animation-enter-right-active":"magritte-animation-enter-right-active___8wX4-_9-2-0","animationEnterRightActive":"magritte-animation-enter-right-active___8wX4-_9-2-0","animation-exit-right":"magritte-animation-exit-right___iczoc_9-2-0","animationExitRight":"magritte-animation-exit-right___iczoc_9-2-0","animation-exit-right-active":"magritte-animation-exit-right-active___eFS4O_9-2-0","animationExitRightActive":"magritte-animation-exit-right-active___eFS4O_9-2-0","content-scroll-preserver":"magritte-content-scroll-preserver___Tw5Px_9-2-0","contentScrollPreserver":"magritte-content-scroll-preserver___Tw5Px_9-2-0","tree-selector-container":"magritte-tree-selector-container___fdhI-_9-2-0","treeSelectorContainer":"magritte-tree-selector-container___fdhI-_9-2-0","content-sticky-container_full-height":"magritte-content-sticky-container_full-height___Gl9x8_9-2-0","contentStickyContainerFullHeight":"magritte-content-sticky-container_full-height___Gl9x8_9-2-0"};
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"};
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-wVIU8uOc.js.map
143
+ //# sourceMappingURL=ModalContentWithHeader-BtZ5N0g2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalContentWithHeader-wVIU8uOc.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,GAA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, 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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,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;;;;"}
@@ -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-wVIU8uOc.js';
11
+ export { M as ModalContentWithHeader } from './ModalContentWithHeader-BtZ5N0g2.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-0","options":"magritte-options___qfErQ_9-2-0","actions":"magritte-actions___nQILV_9-2-0","actions-with-link":"magritte-actions-with-link___hnDux_9-2-0","actionsWithLink":"magritte-actions-with-link___hnDux_9-2-0","content-with-image":"magritte-content-with-image___YarBO_9-2-0","contentWithImage":"magritte-content-with-image___YarBO_9-2-0","actions-single":"magritte-actions-single___usfKu_9-2-0","actionsSingle":"magritte-actions-single___usfKu_9-2-0","image-container":"magritte-image-container___ioL3y_9-2-0","imageContainer":"magritte-image-container___ioL3y_9-2-0","title-wrapper":"magritte-title-wrapper___O--QR_9-2-0","titleWrapper":"magritte-title-wrapper___O--QR_9-2-0","wrapper":"magritte-wrapper___zH8vB_9-2-0","only-actions":"magritte-only-actions___ZC4jx_9-2-0","onlyActions":"magritte-only-actions___ZC4jx_9-2-0"};
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"};
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,30 +1,15 @@
1
1
  :root{
2
- --magritte-color-component-modal-background-action-v23-2-1:#20262b99;
3
- --magritte-gradient-component-modal-background-fade-v23-2-1:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
2
+ --magritte-color-component-modal-background-action-v23-2-2:#20262b99;
3
+ --magritte-gradient-component-modal-background-fade-v23-2-2:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
4
4
  }
5
-
6
- :root{
7
- --magritte-static-border-radius-300-v23-2-1:12px;
8
- --magritte-static-border-radius-400-v23-2-1:16px;
9
- }
10
-
11
- .magritte-night-theme{
12
- --magritte-color-component-modal-background-action-v23-2-1:#20262b99;
13
- --magritte-gradient-component-modal-background-fade-v23-2-1:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
14
- }
15
-
16
- .magritte-zp-day-theme{
17
- --magritte-color-component-modal-background-action-v23-2-1:#20262b99;
18
- --magritte-gradient-component-modal-background-fade-v23-2-1:linear-gradient(180deg, #00000000 0%, #0000007a 100%);
19
- }
20
- .magritte-content___o6ktq_9-2-0{
5
+ .magritte-content___o6ktq_9-2-2{
21
6
  display:flex;
22
7
  align-items:flex-start;
23
8
  }
24
- .magritte-content___o6ktq_9-2-0 + .magritte-options___qfErQ_9-2-0{
9
+ .magritte-content___o6ktq_9-2-2 + .magritte-options___qfErQ_9-2-2{
25
10
  margin-top:24px;
26
11
  }
27
- .magritte-actions___nQILV_9-2-0{
12
+ .magritte-actions___nQILV_9-2-2{
28
13
  position:relative;
29
14
  z-index:1;
30
15
  display:flex;
@@ -33,79 +18,72 @@
33
18
  margin-left:auto;
34
19
  --magritte-ui-link-padding-override:9px;
35
20
  }
36
- .magritte-actions-with-link___hnDux_9-2-0{
21
+ .magritte-actions-with-link___hnDux_9-2-2{
37
22
  padding:0 8px 0 28px;
38
23
  }
39
- .magritte-content-with-image___YarBO_9-2-0{
24
+ .magritte-content-with-image___YarBO_9-2-2{
40
25
  position:relative;
41
26
  flex-direction:column;
42
27
  justify-content:flex-end;
43
28
  margin:-12px -12px 0;
44
- border-radius:var(--magritte-static-border-radius-400-v23-2-1);
29
+ border-radius:16px;
45
30
  overflow:hidden;
46
31
  padding:12px 24px 24px;
47
32
  box-sizing:border-box;
48
33
  }
49
- .magritte-content-with-image___YarBO_9-2-0 .magritte-actions___nQILV_9-2-0{
34
+ .magritte-content-with-image___YarBO_9-2-2 .magritte-actions___nQILV_9-2-2{
50
35
  order:-1;
51
36
  gap:0;
52
37
  margin-right:-16px;
53
38
  margin-top:-4px;
54
39
  margin-bottom:auto;
55
40
  }
56
- .magritte-content-with-image___YarBO_9-2-0 .magritte-actions___nQILV_9-2-0:not(.magritte-actions-with-link___hnDux_9-2-0){
41
+ .magritte-content-with-image___YarBO_9-2-2 .magritte-actions___nQILV_9-2-2:not(.magritte-actions-with-link___hnDux_9-2-2){
57
42
  padding:0 4px;
58
- background-color:var(--magritte-color-component-modal-background-action-v23-2-1);
59
- border-radius:var(--magritte-static-border-radius-300-v23-2-1);
43
+ background-color:var(--magritte-color-component-modal-background-action-v23-2-2);
44
+ border-radius:12px;
60
45
  }
61
- .magritte-content-with-image___YarBO_9-2-0 .magritte-actions___nQILV_9-2-0.magritte-actions-single___usfKu_9-2-0:not(.magritte-actions-with-link___hnDux_9-2-0){
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){
62
47
  padding:0;
63
48
  }
64
- .magritte-image-container___ioL3y_9-2-0{
49
+ .magritte-image-container___ioL3y_9-2-2{
65
50
  position:absolute;
66
51
  left:0;
67
52
  bottom:0;
68
53
  right:0;
69
54
  background-size:cover;
70
- --modal-header-gradient:var(--magritte-gradient-component-modal-background-fade-v23-2-1);
55
+ --modal-header-gradient:var(--magritte-gradient-component-modal-background-fade-v23-2-2);
71
56
  }
72
- .magritte-title-wrapper___O--QR_9-2-0{
57
+ .magritte-title-wrapper___O--QR_9-2-2{
73
58
  position:relative;
74
59
  width:100%;
75
60
  }
76
- .magritte-wrapper___zH8vB_9-2-0{
61
+ .magritte-wrapper___zH8vB_9-2-2{
77
62
  margin-bottom:24px;
78
63
  }
79
- .magritte-only-actions___ZC4jx_9-2-0 .magritte-actions___nQILV_9-2-0{
64
+ .magritte-only-actions___ZC4jx_9-2-2 .magritte-actions___nQILV_9-2-2{
80
65
  padding-left:0;
81
66
  }
82
- .magritte-only-actions___ZC4jx_9-2-0 .magritte-actions-with-link___hnDux_9-2-0{
67
+ .magritte-only-actions___ZC4jx_9-2-2 .magritte-actions-with-link___hnDux_9-2-2{
83
68
  padding-left:12px;
84
69
  }
85
70
 
86
71
  :root{
87
- --magritte-color-background-overlay-v23-2-1:#20262b99;
88
- --magritte-color-component-modal-background-content-v23-2-1:#ffffff;
72
+ --magritte-color-background-overlay-v23-2-2:#20262b99;
73
+ --magritte-color-component-modal-background-content-v23-2-2:#ffffff;
89
74
  }
90
75
 
91
76
  :root{
92
- --magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-1:cubic-bezier(0.25, 0.1, 0.25, 1);
93
- --magritte-semantic-animation-ease-in-out-200-duration-v23-2-1:200ms;
94
- --magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-1:cubic-bezier(0.25, 0.1, 0.25, 1);
95
- --magritte-semantic-animation-ease-in-out-300-duration-v23-2-1:300ms;
96
- --magritte-static-border-radius-600-v23-2-1:24px;
77
+ --magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-2:cubic-bezier(0.25, 0.1, 0.25, 1);
78
+ --magritte-semantic-animation-ease-in-out-200-duration-v23-2-2:200ms;
79
+ --magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-2:cubic-bezier(0.25, 0.1, 0.25, 1);
80
+ --magritte-semantic-animation-ease-in-out-300-duration-v23-2-2:300ms;
97
81
  }
98
82
 
99
83
  .magritte-night-theme{
100
- --magritte-color-background-overlay-v23-2-1:#20262b99;
101
- --magritte-color-component-modal-background-content-v23-2-1:#1B1B1B;
102
- }
103
-
104
- .magritte-zp-day-theme{
105
- --magritte-color-background-overlay-v23-2-1:#20262b99;
106
- --magritte-color-component-modal-background-content-v23-2-1:#ffffff;
84
+ --magritte-color-component-modal-background-content-v23-2-2:#1B1B1B;
107
85
  }
108
- .magritte-modal-overlay___lK22l_9-2-0{
86
+ .magritte-modal-overlay___lK22l_9-2-2{
109
87
  position:fixed;
110
88
  top:0;
111
89
  right:0;
@@ -114,18 +92,18 @@
114
92
  display:flex;
115
93
  align-items:center;
116
94
  justify-content:center;
117
- background-color:var(--magritte-color-background-overlay-v23-2-1);
95
+ background-color:var(--magritte-color-background-overlay-v23-2-2);
118
96
  z-index:1;
119
97
  user-select:text;
120
98
  transition-property:opacity, transform;
121
99
  }
122
- .magritte-overlay-left___JtHK4_9-2-0{
100
+ .magritte-overlay-left___JtHK4_9-2-2{
123
101
  justify-content:flex-start;
124
102
  }
125
- .magritte-overlay-right___uKTDt_9-2-0{
103
+ .magritte-overlay-right___uKTDt_9-2-2{
126
104
  justify-content:flex-end;
127
105
  }
128
- .magritte-modal___RAW6S_9-2-0{
106
+ .magritte-modal___RAW6S_9-2-2{
129
107
  display:flex;
130
108
  box-sizing:border-box;
131
109
  margin:0 12px;
@@ -134,37 +112,37 @@
134
112
  max-height:calc(100vh - 12px * 2);
135
113
  max-width:calc(100vw - 12px * 2);
136
114
  position:relative;
137
- background-color:var(--magritte-color-component-modal-background-content-v23-2-1);
138
- border-radius:var(--magritte-static-border-radius-600-v23-2-1);
115
+ background-color:var(--magritte-color-component-modal-background-content-v23-2-2);
116
+ border-radius:24px;
139
117
  overflow:hidden;
140
118
  width:800px;
141
119
  transition-property:opacity, transform;
142
120
  container-type:inline-size;
143
121
  }
144
- .magritte-modal___RAW6S_9-2-0.magritte-size-small___2JTM2_9-2-0{
122
+ .magritte-modal___RAW6S_9-2-2.magritte-size-small___2JTM2_9-2-2{
145
123
  width:480px;
146
124
  }
147
- .magritte-modal___RAW6S_9-2-0.magritte-size-medium___cWCe7_9-2-0{
125
+ .magritte-modal___RAW6S_9-2-2.magritte-size-medium___cWCe7_9-2-2{
148
126
  width:620px;
149
127
  }
150
- .magritte-no-vertical-paddings___Z3-oM_9-2-0{
128
+ .magritte-no-vertical-paddings___Z3-oM_9-2-2{
151
129
  padding-top:0;
152
130
  padding-bottom:0;
153
131
  }
154
- .magritte-no-horizontal-paddings___aT95Y_9-2-0{
132
+ .magritte-no-horizontal-paddings___aT95Y_9-2-2{
155
133
  padding-left:0;
156
134
  padding-right:0;
157
135
  }
158
- .magritte-modal-full-height___gIM4E_9-2-0{
136
+ .magritte-modal-full-height___gIM4E_9-2-2{
159
137
  height:100%;
160
138
  }
161
- .magritte-modal-content-wrapper___23XFT_9-2-0{
139
+ .magritte-modal-content-wrapper___23XFT_9-2-2{
162
140
  display:flex;
163
141
  flex-direction:column;
164
142
  min-height:0;
165
143
  flex:1 1;
166
144
  }
167
- .magritte-modal-content___46QFS_9-2-0{
145
+ .magritte-modal-content___46QFS_9-2-2{
168
146
  position:relative;
169
147
  display:flex;
170
148
  flex-direction:column;
@@ -175,231 +153,231 @@
175
153
  width:calc(100% + 24px);
176
154
  width:calc(100cqw + 24px);
177
155
  }
178
- .magritte-modal-scroll-container___Tf8Ns_9-2-0{
156
+ .magritte-modal-scroll-container___Tf8Ns_9-2-2{
179
157
  flex:1 1;
180
158
  min-height:0;
181
159
  overflow-y:auto;
182
160
  overscroll-behavior:none;
183
161
  scrollbar-width:none;
184
162
  }
185
- .magritte-modal-scroll-container___Tf8Ns_9-2-0::-webkit-scrollbar{
163
+ .magritte-modal-scroll-container___Tf8Ns_9-2-2::-webkit-scrollbar{
186
164
  display:none;
187
165
  }
188
- .magritte-modal-content-wrapper__one-line___tYg8d_9-2-0{
166
+ .magritte-modal-content-wrapper__one-line___tYg8d_9-2-2{
189
167
  flex-direction:row-reverse;
190
168
  }
191
- .magritte-modal-content-wrapper__one-line___tYg8d_9-2-0 .magritte-modal-content___46QFS_9-2-0{
169
+ .magritte-modal-content-wrapper__one-line___tYg8d_9-2-2 .magritte-modal-content___46QFS_9-2-2{
192
170
  width:auto;
193
171
  container-type:inline-size;
194
172
  margin-right:0;
195
173
  }
196
- .magritte-modal-content-wrapper__one-line___tYg8d_9-2-0 .magritte-content-sticky-container___nqEXj_9-2-0{
174
+ .magritte-modal-content-wrapper__one-line___tYg8d_9-2-2 .magritte-content-sticky-container___nqEXj_9-2-2{
197
175
  max-width:calc(100% - 16px);
198
176
  max-width:calc(100cqw - 16px);
199
177
  }
200
- .magritte-divider-container___qP3VK_9-2-0{
178
+ .magritte-divider-container___qP3VK_9-2-2{
201
179
  margin:0 -24px;
202
180
  }
203
- .magritte-divider-container___qP3VK_9-2-0.magritte-divider-container-hidden___EIxB-_9-2-0{
181
+ .magritte-divider-container___qP3VK_9-2-2.magritte-divider-container-hidden___EIxB-_9-2-2{
204
182
  display:none;
205
183
  }
206
- .magritte-modal-footer___8xPqQ_9-2-0{
184
+ .magritte-modal-footer___8xPqQ_9-2-2{
207
185
  margin:0 -24px -24px;
208
- background-color:var(--magritte-color-component-modal-background-content-v23-2-1);
186
+ background-color:var(--magritte-color-component-modal-background-content-v23-2-2);
209
187
  z-index:1;
210
- --magritte-ui-action-bar-background-color-override:var(--magritte-color-component-modal-background-content-v23-2-1);
188
+ --magritte-ui-action-bar-background-color-override:var(--magritte-color-component-modal-background-content-v23-2-2);
211
189
  }
212
- .magritte-modal-buttons-container___1O1Nr_9-2-0{
190
+ .magritte-modal-buttons-container___1O1Nr_9-2-2{
213
191
  display:flex;
214
192
  gap:12px;
215
193
  }
216
- .magritte-animation-timeout___w-j7K_9-2-0{
194
+ .magritte-animation-timeout___w-j7K_9-2-2{
217
195
  --enter-animation-duration:0;
218
196
  --exit-animation-duration:0;
219
197
  }
220
198
  @media (prefers-reduced-motion: no-preference){
221
- .magritte-animation-timeout___w-j7K_9-2-0{
222
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-1);
223
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-1);
199
+ .magritte-animation-timeout___w-j7K_9-2-2{
200
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
201
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
224
202
  }
225
203
  }
226
- .magritte-animation-enter-center___7jogC_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
204
+ .magritte-animation-enter-center___7jogC_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
227
205
  opacity:0;
228
206
  }
229
- .magritte-animation-enter-center___7jogC_9-2-0 .magritte-modal___RAW6S_9-2-0{
207
+ .magritte-animation-enter-center___7jogC_9-2-2 .magritte-modal___RAW6S_9-2-2{
230
208
  opacity:0;
231
209
  transform:scale(0.96);
232
210
  }
233
- .magritte-animation-enter-center-active___fywwW_9-2-0{
211
+ .magritte-animation-enter-center-active___fywwW_9-2-2{
234
212
  --enter-animation-duration:0;
235
213
  --exit-animation-duration:0;
236
214
  }
237
215
  @media (prefers-reduced-motion: no-preference){
238
- .magritte-animation-enter-center-active___fywwW_9-2-0{
239
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-1);
240
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-1);
216
+ .magritte-animation-enter-center-active___fywwW_9-2-2{
217
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
218
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
241
219
  }
242
220
  }
243
- .magritte-animation-enter-center-active___fywwW_9-2-0 .magritte-modal___RAW6S_9-2-0,
244
- .magritte-animation-enter-center-active___fywwW_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
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{
245
223
  opacity:1;
246
224
  transition-duration:var(--enter-animation-duration);
247
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-1);
225
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-2);
248
226
  transform:scale(1);
249
227
  }
250
- .magritte-animation-exit-center___3Fa6x_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
228
+ .magritte-animation-exit-center___3Fa6x_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
251
229
  opacity:1;
252
230
  }
253
- .magritte-animation-exit-center___3Fa6x_9-2-0 .magritte-modal___RAW6S_9-2-0{
231
+ .magritte-animation-exit-center___3Fa6x_9-2-2 .magritte-modal___RAW6S_9-2-2{
254
232
  opacity:1;
255
233
  transform:scale(1);
256
234
  }
257
- .magritte-animation-exit-center-active___tY0UA_9-2-0{
235
+ .magritte-animation-exit-center-active___tY0UA_9-2-2{
258
236
  --enter-animation-duration:0;
259
237
  --exit-animation-duration:0;
260
238
  }
261
239
  @media (prefers-reduced-motion: no-preference){
262
- .magritte-animation-exit-center-active___tY0UA_9-2-0{
263
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-1);
264
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-1);
240
+ .magritte-animation-exit-center-active___tY0UA_9-2-2{
241
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
242
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
265
243
  }
266
244
  }
267
- .magritte-animation-exit-center-active___tY0UA_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
245
+ .magritte-animation-exit-center-active___tY0UA_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
268
246
  opacity:0;
269
247
  }
270
- .magritte-animation-exit-center-active___tY0UA_9-2-0 .magritte-modal___RAW6S_9-2-0{
248
+ .magritte-animation-exit-center-active___tY0UA_9-2-2 .magritte-modal___RAW6S_9-2-2{
271
249
  opacity:0;
272
250
  transform:scale(0.96);
273
251
  }
274
- .magritte-animation-exit-center-active___tY0UA_9-2-0 .magritte-modal___RAW6S_9-2-0,
275
- .magritte-animation-exit-center-active___tY0UA_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
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{
276
254
  transition-duration:var(--exit-animation-duration);
277
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-1);
255
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-2);
278
256
  }
279
- .magritte-animation-enter-left___5YB8B_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
257
+ .magritte-animation-enter-left___5YB8B_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
280
258
  opacity:0;
281
259
  }
282
- .magritte-animation-enter-left___5YB8B_9-2-0 .magritte-modal___RAW6S_9-2-0{
260
+ .magritte-animation-enter-left___5YB8B_9-2-2 .magritte-modal___RAW6S_9-2-2{
283
261
  opacity:0;
284
262
  transform:translateX(-100%);
285
263
  }
286
- .magritte-animation-enter-left-active___5GK8s_9-2-0{
264
+ .magritte-animation-enter-left-active___5GK8s_9-2-2{
287
265
  --enter-animation-duration:0;
288
266
  --exit-animation-duration:0;
289
267
  }
290
268
  @media (prefers-reduced-motion: no-preference){
291
- .magritte-animation-enter-left-active___5GK8s_9-2-0{
292
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-1);
293
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-1);
269
+ .magritte-animation-enter-left-active___5GK8s_9-2-2{
270
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
271
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
294
272
  }
295
273
  }
296
- .magritte-animation-enter-left-active___5GK8s_9-2-0 .magritte-modal___RAW6S_9-2-0,
297
- .magritte-animation-enter-left-active___5GK8s_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
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{
298
276
  opacity:1;
299
277
  transition-duration:var(--enter-animation-duration);
300
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-1);
278
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-2);
301
279
  transform:translateX(0);
302
280
  }
303
- .magritte-animation-exit-left___OnkQE_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
281
+ .magritte-animation-exit-left___OnkQE_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
304
282
  opacity:1;
305
283
  }
306
- .magritte-animation-exit-left___OnkQE_9-2-0 .magritte-modal___RAW6S_9-2-0{
284
+ .magritte-animation-exit-left___OnkQE_9-2-2 .magritte-modal___RAW6S_9-2-2{
307
285
  opacity:1;
308
286
  transform:translateX(0);
309
287
  }
310
- .magritte-animation-exit-left-active___AEGxY_9-2-0{
288
+ .magritte-animation-exit-left-active___AEGxY_9-2-2{
311
289
  --enter-animation-duration:0;
312
290
  --exit-animation-duration:0;
313
291
  }
314
292
  @media (prefers-reduced-motion: no-preference){
315
- .magritte-animation-exit-left-active___AEGxY_9-2-0{
316
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-1);
317
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-1);
293
+ .magritte-animation-exit-left-active___AEGxY_9-2-2{
294
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
295
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
318
296
  }
319
297
  }
320
- .magritte-animation-exit-left-active___AEGxY_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
298
+ .magritte-animation-exit-left-active___AEGxY_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
321
299
  opacity:0;
322
300
  }
323
- .magritte-animation-exit-left-active___AEGxY_9-2-0 .magritte-modal___RAW6S_9-2-0{
301
+ .magritte-animation-exit-left-active___AEGxY_9-2-2 .magritte-modal___RAW6S_9-2-2{
324
302
  opacity:0;
325
303
  transform:translateX(-100%);
326
304
  }
327
- .magritte-animation-exit-left-active___AEGxY_9-2-0 .magritte-modal___RAW6S_9-2-0,
328
- .magritte-animation-exit-left-active___AEGxY_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
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{
329
307
  transition-duration:var(--exit-animation-duration);
330
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-1);
308
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-2);
331
309
  }
332
- .magritte-animation-enter-right___2aXOm_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
310
+ .magritte-animation-enter-right___2aXOm_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
333
311
  opacity:0;
334
312
  }
335
- .magritte-animation-enter-right___2aXOm_9-2-0 .magritte-modal___RAW6S_9-2-0{
313
+ .magritte-animation-enter-right___2aXOm_9-2-2 .magritte-modal___RAW6S_9-2-2{
336
314
  opacity:0;
337
315
  transform:translateX(100%);
338
316
  }
339
- .magritte-animation-enter-right-active___8wX4-_9-2-0{
317
+ .magritte-animation-enter-right-active___8wX4-_9-2-2{
340
318
  --enter-animation-duration:0;
341
319
  --exit-animation-duration:0;
342
320
  }
343
321
  @media (prefers-reduced-motion: no-preference){
344
- .magritte-animation-enter-right-active___8wX4-_9-2-0{
345
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-1);
346
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-1);
322
+ .magritte-animation-enter-right-active___8wX4-_9-2-2{
323
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
324
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
347
325
  }
348
326
  }
349
- .magritte-animation-enter-right-active___8wX4-_9-2-0 .magritte-modal___RAW6S_9-2-0,
350
- .magritte-animation-enter-right-active___8wX4-_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
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{
351
329
  opacity:1;
352
330
  transition-duration:var(--enter-animation-duration);
353
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-1);
331
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v23-2-2);
354
332
  transform:translateX(0);
355
333
  }
356
- .magritte-animation-exit-right___iczoc_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
334
+ .magritte-animation-exit-right___iczoc_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
357
335
  opacity:1;
358
336
  }
359
- .magritte-animation-exit-right___iczoc_9-2-0 .magritte-modal___RAW6S_9-2-0{
337
+ .magritte-animation-exit-right___iczoc_9-2-2 .magritte-modal___RAW6S_9-2-2{
360
338
  opacity:1;
361
339
  transform:translateX(0);
362
340
  }
363
- .magritte-animation-exit-right-active___eFS4O_9-2-0{
341
+ .magritte-animation-exit-right-active___eFS4O_9-2-2{
364
342
  --enter-animation-duration:0;
365
343
  --exit-animation-duration:0;
366
344
  }
367
345
  @media (prefers-reduced-motion: no-preference){
368
- .magritte-animation-exit-right-active___eFS4O_9-2-0{
369
- --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-1);
370
- --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-1);
346
+ .magritte-animation-exit-right-active___eFS4O_9-2-2{
347
+ --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v23-2-2);
348
+ --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v23-2-2);
371
349
  }
372
350
  }
373
- .magritte-animation-exit-right-active___eFS4O_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
351
+ .magritte-animation-exit-right-active___eFS4O_9-2-2.magritte-modal-overlay___lK22l_9-2-2{
374
352
  opacity:0;
375
353
  }
376
- .magritte-animation-exit-right-active___eFS4O_9-2-0 .magritte-modal___RAW6S_9-2-0{
354
+ .magritte-animation-exit-right-active___eFS4O_9-2-2 .magritte-modal___RAW6S_9-2-2{
377
355
  opacity:0;
378
356
  transform:translateX(100%);
379
357
  }
380
- .magritte-animation-exit-right-active___eFS4O_9-2-0 .magritte-modal___RAW6S_9-2-0,
381
- .magritte-animation-exit-right-active___eFS4O_9-2-0.magritte-modal-overlay___lK22l_9-2-0{
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{
382
360
  transition-duration:var(--exit-animation-duration);
383
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-1);
361
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v23-2-2);
384
362
  }
385
- .magritte-content-scroll-preserver___Tw5Px_9-2-0{
363
+ .magritte-content-scroll-preserver___Tw5Px_9-2-2{
386
364
  width:100%;
387
365
  height:0;
388
366
  }
389
- .magritte-tree-selector-container___fdhI-_9-2-0{
367
+ .magritte-tree-selector-container___fdhI-_9-2-2{
390
368
  height:100%;
391
369
  max-width:calc(100% - 24px);
392
370
  max-width:100cqw;
393
371
  --magritte-ui-scrollbar-offset-right:-24px;
394
372
  }
395
- .magritte-content-sticky-container___nqEXj_9-2-0{
373
+ .magritte-content-sticky-container___nqEXj_9-2-2{
396
374
  position:sticky;
397
375
  top:0;
398
376
  min-height:100%;
399
377
  max-width:calc(100% - 24px);
400
378
  max-width:100cqw;
401
379
  }
402
- .magritte-content-sticky-container_full-height___Gl9x8_9-2-0{
380
+ .magritte-content-sticky-container_full-height___Gl9x8_9-2-2{
403
381
  display:flex;
404
382
  flex-direction:column;
405
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-wVIU8uOc.js';
16
+ import './ModalContentWithHeader-BtZ5N0g2.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.0",
3
+ "version": "9.2.2",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -26,20 +26,20 @@
26
26
  "@hh.ru/magritte-common-modal-helper": "1.2.10",
27
27
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.9",
28
28
  "@hh.ru/magritte-common-use-no-bubbling": "1.0.6",
29
- "@hh.ru/magritte-design-tokens": "23.2.1",
30
- "@hh.ru/magritte-internal-layer-name": "3.0.2",
31
- "@hh.ru/magritte-ui-action-bar": "5.0.5",
29
+ "@hh.ru/magritte-design-tokens": "23.2.2",
30
+ "@hh.ru/magritte-internal-layer-name": "3.1.0",
31
+ "@hh.ru/magritte-ui-action-bar": "5.0.7",
32
32
  "@hh.ru/magritte-ui-breakpoint": "6.0.1",
33
- "@hh.ru/magritte-ui-divider": "3.0.5",
34
- "@hh.ru/magritte-ui-icon": "12.3.2",
35
- "@hh.ru/magritte-ui-layer": "3.0.3",
33
+ "@hh.ru/magritte-ui-divider": "3.0.6",
34
+ "@hh.ru/magritte-ui-icon": "12.3.4",
35
+ "@hh.ru/magritte-ui-layer": "3.0.4",
36
36
  "@hh.ru/magritte-ui-mock-component": "1.1.5",
37
- "@hh.ru/magritte-ui-progress-bar": "5.0.4",
38
- "@hh.ru/magritte-ui-scrollbar": "1.0.1",
39
- "@hh.ru/magritte-ui-textarea": "3.1.0",
40
- "@hh.ru/magritte-ui-theme-wrapper": "1.1.1",
41
- "@hh.ru/magritte-ui-title": "7.0.7",
42
- "@hh.ru/magritte-ui-tree-selector": "5.2.0"
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",
40
+ "@hh.ru/magritte-ui-theme-wrapper": "1.1.2",
41
+ "@hh.ru/magritte-ui-title": "7.0.8",
42
+ "@hh.ru/magritte-ui-tree-selector": "5.2.2"
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": "8c9ac514d963c54434c7f9ed84d3ae347fc5f396"
53
+ "gitHead": "8ca374027f73643dd942a6d0a2d23ec870924a20"
54
54
  }