@hh.ru/magritte-ui-drop 12.2.1 → 12.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/Drop.js CHANGED
@@ -4,7 +4,7 @@ import { forwardRef, useState, useRef, useEffect, useCallback, cloneElement } fr
4
4
  import { usePlacement, DropBase } from '@hh.ru/magritte-internal-drop-base';
5
5
  import { isActionBarComponent } from '@hh.ru/magritte-ui-action-bar';
6
6
  import { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';
7
- import { s as styles, D as DropContainer } from './DropContainer-CP4Za_Vf.js';
7
+ import { s as styles, D as DropContainer } from './DropContainer-B0bCM2oO.js';
8
8
  import { Layer } from '@hh.ru/magritte-ui-layer';
9
9
  import 'classnames';
10
10
  import '@hh.ru/magritte-common-use-multiple-refs';
@@ -6,7 +6,7 @@ import { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';
6
6
  import { Divider } from '@hh.ru/magritte-ui-divider';
7
7
  import { useScrollbar, Scrollbar } from '@hh.ru/magritte-ui-scrollbar';
8
8
 
9
- var styles = {"drop":"magritte-drop___Z10P4_12-2-1","drop-border":"magritte-drop-border___UDWjW_12-2-1","dropBorder":"magritte-drop-border___UDWjW_12-2-1","drop-container-wrapper":"magritte-drop-container-wrapper___o-ySf_12-2-1","dropContainerWrapper":"magritte-drop-container-wrapper___o-ySf_12-2-1","drop-container-wrapper-with-footer":"magritte-drop-container-wrapper-with-footer___-6tNU_12-2-1","dropContainerWrapperWithFooter":"magritte-drop-container-wrapper-with-footer___-6tNU_12-2-1","drop-container":"magritte-drop-container___dbMt9_12-2-1","dropContainer":"magritte-drop-container___dbMt9_12-2-1","divider-container":"magritte-divider-container___ZCdDW_12-2-1","dividerContainer":"magritte-divider-container___ZCdDW_12-2-1","drop-enter":"magritte-drop-enter___4vEuH_12-2-1","dropEnter":"magritte-drop-enter___4vEuH_12-2-1","drop-exit":"magritte-drop-exit___brFjz_12-2-1","dropExit":"magritte-drop-exit___brFjz_12-2-1","drop-enter-active":"magritte-drop-enter-active___SQUog_12-2-1","dropEnterActive":"magritte-drop-enter-active___SQUog_12-2-1","drop-exit-active":"magritte-drop-exit-active___GB0ET_12-2-1","dropExitActive":"magritte-drop-exit-active___GB0ET_12-2-1","drop-animation-timeout":"magritte-drop-animation-timeout___uO7LF_12-2-1","dropAnimationTimeout":"magritte-drop-animation-timeout___uO7LF_12-2-1"};
9
+ var styles = {"drop":"magritte-drop___Z10P4_12-2-2","drop-border":"magritte-drop-border___UDWjW_12-2-2","dropBorder":"magritte-drop-border___UDWjW_12-2-2","drop-container-wrapper":"magritte-drop-container-wrapper___o-ySf_12-2-2","dropContainerWrapper":"magritte-drop-container-wrapper___o-ySf_12-2-2","drop-container-wrapper-with-footer":"magritte-drop-container-wrapper-with-footer___-6tNU_12-2-2","dropContainerWrapperWithFooter":"magritte-drop-container-wrapper-with-footer___-6tNU_12-2-2","drop-container":"magritte-drop-container___dbMt9_12-2-2","dropContainer":"magritte-drop-container___dbMt9_12-2-2","divider-container":"magritte-divider-container___ZCdDW_12-2-2","dividerContainer":"magritte-divider-container___ZCdDW_12-2-2","drop-enter":"magritte-drop-enter___4vEuH_12-2-2","dropEnter":"magritte-drop-enter___4vEuH_12-2-2","drop-exit":"magritte-drop-exit___brFjz_12-2-2","dropExit":"magritte-drop-exit___brFjz_12-2-2","drop-enter-active":"magritte-drop-enter-active___SQUog_12-2-2","dropEnterActive":"magritte-drop-enter-active___SQUog_12-2-2","drop-exit-active":"magritte-drop-exit-active___GB0ET_12-2-2","dropExitActive":"magritte-drop-exit-active___GB0ET_12-2-2","drop-animation-timeout":"magritte-drop-animation-timeout___uO7LF_12-2-2","dropAnimationTimeout":"magritte-drop-animation-timeout___uO7LF_12-2-2"};
10
10
 
11
11
  const DropContainer = forwardRef(({ children, showDivider, padding, withFooter }, ref) => {
12
12
  const dividerRef = useRef(null);
@@ -60,4 +60,4 @@ const DropContainer = forwardRef(({ children, showDivider, padding, withFooter }
60
60
  DropContainer.displayName = 'DropContainer';
61
61
 
62
62
  export { DropContainer as D, styles as s };
63
- //# sourceMappingURL=DropContainer-CP4Za_Vf.js.map
63
+ //# sourceMappingURL=DropContainer-B0bCM2oO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropContainer-CP4Za_Vf.js","sources":["../src/DropContainer.tsx"],"sourcesContent":["import { useRef, type PropsWithChildren, useEffect, useCallback, forwardRef, CSSProperties } from 'react';\nimport classnames from 'classnames';\n\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { Divider, type ShowDivider } from '@hh.ru/magritte-ui-divider';\nimport { Scrollbar, useScrollbar } from '@hh.ru/magritte-ui-scrollbar';\n\nimport styles from './drop.less';\n\nexport const DropContainer = forwardRef<\n HTMLDivElement,\n PropsWithChildren<{\n showDivider: ShowDivider;\n padding: CSSProperties;\n withFooter: boolean;\n }>\n>(({ children, showDivider, padding, withFooter }, ref) => {\n const dividerRef = useRef<HTMLDivElement>(null);\n const showDividerRef = useRef(showDivider);\n showDividerRef.current = showDivider;\n const contentContainerRef = useRef<HTMLDivElement>(null);\n const { hasVerticalScroll, verticalScrollbarProps, ...scrollbar } = useScrollbar({ axis: 'vertical' });\n const contentContainerRefMulti = useMultipleRefs(contentContainerRef, ref, scrollbar.scrollContainerRef);\n\n const updateDividerVisibility = useCallback(\n (showDivider: ShowDivider) => {\n const scrollableContainer = contentContainerRef.current;\n const divider = dividerRef.current;\n if (!scrollableContainer || !divider) {\n return;\n }\n\n if (showDivider === 'always') {\n divider.style.visibility = 'visible';\n }\n\n if (showDivider === 'with-scroll') {\n const isNotScrolledToEnd =\n scrollableContainer.scrollHeight - scrollableContainer.scrollTop > scrollableContainer.offsetHeight;\n divider.style.visibility = isNotScrolledToEnd ? 'visible' : 'hidden';\n }\n\n if (showDivider === false) {\n divider.style.visibility = 'hidden';\n }\n },\n [contentContainerRef, dividerRef]\n );\n\n useEffect(() => {\n const observer = new ResizeObserver(() => {\n updateDividerVisibility(showDividerRef.current);\n });\n observer.observe(contentContainerRef.current as Element);\n return () => observer.disconnect();\n }, [updateDividerVisibility]);\n\n useEffect(() => {\n updateDividerVisibility(showDividerRef.current);\n // eslint-disable-next-line disable-autofix/react-hooks/exhaustive-deps\n }, [updateDividerVisibility, showDividerRef.current]);\n\n const props =\n showDividerRef.current === 'with-scroll'\n ? {\n onScroll: ({ target }: { target: EventTarget }) => {\n const scrollableContainer = target as HTMLDivElement;\n\n if (dividerRef.current) {\n const isNotScrolledToEnd =\n scrollableContainer.scrollHeight - scrollableContainer.scrollTop >\n scrollableContainer.offsetHeight;\n dividerRef.current.style.visibility = isNotScrolledToEnd ? 'visible' : 'hidden';\n }\n },\n }\n : {};\n\n return (\n <>\n <div\n className={classnames(\n styles.dropContainerWrapper,\n { [styles.dropContainerWrapperWithFooter]: withFooter },\n scrollbar.hoverContainerCssClass\n )}\n >\n <div ref={contentContainerRefMulti} className={styles.dropContainer} {...props} style={padding}>\n {children}\n </div>\n {hasVerticalScroll && <Scrollbar {...verticalScrollbarProps} />}\n </div>\n <div ref={dividerRef} className={styles.dividerContainer} data-qa=\"drop-divider\">\n <Divider />\n </div>\n </>\n );\n});\n\nDropContainer.displayName = 'DropContainer';\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;AASa,MAAA,aAAa,GAAG,UAAU,CAOrC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,GAAG,KAAI;AACtD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAChD,IAAA,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAC3C,IAAA,cAAc,CAAC,OAAO,GAAG,WAAW,CAAC;AACrC,IAAA,MAAM,mBAAmB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AACzD,IAAA,MAAM,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,GAAG,SAAS,EAA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AAM,CAAC,gBAAgB,EAAA,SAAA,EAAU,cAAc,EAAA,QAAA,EAC5EA,IAAC,OAAO,EAAA,EAAA,CAAG,EACT,CAAA,CAAA,EAAA,CACP,EACL;AACN,CAAC,EAAE;AAEH,aAAa,CAAC,WAAW,GAAG,eAAe;;;;"}
1
+ {"version":3,"file":"DropContainer-B0bCM2oO.js","sources":["../src/DropContainer.tsx"],"sourcesContent":["import { useRef, type PropsWithChildren, useEffect, useCallback, forwardRef, CSSProperties } from 'react';\nimport classnames from 'classnames';\n\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { Divider, type ShowDivider } from '@hh.ru/magritte-ui-divider';\nimport { Scrollbar, useScrollbar } from '@hh.ru/magritte-ui-scrollbar';\n\nimport styles from './drop.less';\n\nexport const DropContainer = forwardRef<\n HTMLDivElement,\n PropsWithChildren<{\n showDivider: ShowDivider;\n padding: CSSProperties;\n withFooter: boolean;\n }>\n>(({ children, showDivider, padding, withFooter }, ref) => {\n const dividerRef = useRef<HTMLDivElement>(null);\n const showDividerRef = useRef(showDivider);\n showDividerRef.current = showDivider;\n const contentContainerRef = useRef<HTMLDivElement>(null);\n const { hasVerticalScroll, verticalScrollbarProps, ...scrollbar } = useScrollbar({ axis: 'vertical' });\n const contentContainerRefMulti = useMultipleRefs(contentContainerRef, ref, scrollbar.scrollContainerRef);\n\n const updateDividerVisibility = useCallback(\n (showDivider: ShowDivider) => {\n const scrollableContainer = contentContainerRef.current;\n const divider = dividerRef.current;\n if (!scrollableContainer || !divider) {\n return;\n }\n\n if (showDivider === 'always') {\n divider.style.visibility = 'visible';\n }\n\n if (showDivider === 'with-scroll') {\n const isNotScrolledToEnd =\n scrollableContainer.scrollHeight - scrollableContainer.scrollTop > scrollableContainer.offsetHeight;\n divider.style.visibility = isNotScrolledToEnd ? 'visible' : 'hidden';\n }\n\n if (showDivider === false) {\n divider.style.visibility = 'hidden';\n }\n },\n [contentContainerRef, dividerRef]\n );\n\n useEffect(() => {\n const observer = new ResizeObserver(() => {\n updateDividerVisibility(showDividerRef.current);\n });\n observer.observe(contentContainerRef.current as Element);\n return () => observer.disconnect();\n }, [updateDividerVisibility]);\n\n useEffect(() => {\n updateDividerVisibility(showDividerRef.current);\n // eslint-disable-next-line disable-autofix/react-hooks/exhaustive-deps\n }, [updateDividerVisibility, showDividerRef.current]);\n\n const props =\n showDividerRef.current === 'with-scroll'\n ? {\n onScroll: ({ target }: { target: EventTarget }) => {\n const scrollableContainer = target as HTMLDivElement;\n\n if (dividerRef.current) {\n const isNotScrolledToEnd =\n scrollableContainer.scrollHeight - scrollableContainer.scrollTop >\n scrollableContainer.offsetHeight;\n dividerRef.current.style.visibility = isNotScrolledToEnd ? 'visible' : 'hidden';\n }\n },\n }\n : {};\n\n return (\n <>\n <div\n className={classnames(\n styles.dropContainerWrapper,\n { [styles.dropContainerWrapperWithFooter]: withFooter },\n scrollbar.hoverContainerCssClass\n )}\n >\n <div ref={contentContainerRefMulti} className={styles.dropContainer} {...props} style={padding}>\n {children}\n </div>\n {hasVerticalScroll && <Scrollbar {...verticalScrollbarProps} />}\n </div>\n <div ref={dividerRef} className={styles.dividerContainer} data-qa=\"drop-divider\">\n <Divider />\n </div>\n </>\n );\n});\n\nDropContainer.displayName = 'DropContainer';\n"],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;;;;AASa,MAAA,aAAa,GAAG,UAAU,CAOrC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,GAAG,KAAI;AACtD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AAChD,IAAA,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAC3C,IAAA,cAAc,CAAC,OAAO,GAAG,WAAW,CAAC;AACrC,IAAA,MAAM,mBAAmB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;AACzD,IAAA,MAAM,EAAE,iBAAiB,EAAE,sBAAsB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AU,EAAE,SAAS,EAAE,MAAM,CAAC,gBAAgB,EAAA,SAAA,EAAU,cAAc,EAAA,QAAA,EAC5EA,IAAC,OAAO,EAAA,EAAA,CAAG,EACT,CAAA,CAAA,EAAA,CACP,EACL;AACN,CAAC,EAAE;AAEH,aAAa,CAAC,WAAW,GAAG,eAAe;;;;"}
package/DropContainer.js CHANGED
@@ -5,5 +5,5 @@ import 'classnames';
5
5
  import '@hh.ru/magritte-common-use-multiple-refs';
6
6
  import '@hh.ru/magritte-ui-divider';
7
7
  import '@hh.ru/magritte-ui-scrollbar';
8
- export { D as DropContainer } from './DropContainer-CP4Za_Vf.js';
8
+ export { D as DropContainer } from './DropContainer-B0bCM2oO.js';
9
9
  //# sourceMappingURL=DropContainer.js.map
package/index.css CHANGED
@@ -1,53 +1,53 @@
1
1
  :root{
2
- --magritte-color-stroke-neutral-v24-3-0:#DCE3EB;
3
- --magritte-color-component-drop-background-content-v24-3-0:#ffffff;
4
- --magritte-shadow-level-2-color-v24-3-0:#7090b03d;
5
- --magritte-shadow-level-2-x-v24-3-0:0px;
6
- --magritte-shadow-level-2-y-v24-3-0:8px;
7
- --magritte-shadow-level-2-blur-v24-3-0:16px;
8
- --magritte-shadow-level-2-spread-v24-3-0:0px;
2
+ --magritte-color-stroke-neutral-v24-4-0:#DCE3EB;
3
+ --magritte-color-component-drop-background-content-v24-4-0:#ffffff;
4
+ --magritte-shadow-level-2-color-v24-4-0:#7090b03d;
5
+ --magritte-shadow-level-2-x-v24-4-0:0px;
6
+ --magritte-shadow-level-2-y-v24-4-0:8px;
7
+ --magritte-shadow-level-2-blur-v24-4-0:16px;
8
+ --magritte-shadow-level-2-spread-v24-4-0:0px;
9
9
  }
10
10
 
11
11
  :root{
12
- --magritte-semantic-animation-ease-in-out-100-duration-v24-3-0:100ms;
13
- --magritte-semantic-animation-ease-in-out-200-timing-function-v24-3-0:cubic-bezier(0.25, 0.1, 0.25, 1);
14
- --magritte-semantic-animation-ease-in-out-200-duration-v24-3-0:200ms;
12
+ --magritte-semantic-animation-ease-in-out-100-duration-v24-4-0:100ms;
13
+ --magritte-semantic-animation-ease-in-out-200-timing-function-v24-4-0:cubic-bezier(0.25, 0.1, 0.25, 1);
14
+ --magritte-semantic-animation-ease-in-out-200-duration-v24-4-0:200ms;
15
15
  }
16
16
 
17
17
  .magritte-night-theme{
18
- --magritte-color-stroke-neutral-v24-3-0:#303030;
19
- --magritte-color-component-drop-background-content-v24-3-0:#1B1B1B;
20
- --magritte-shadow-level-2-color-v24-3-0:#0000003d;
18
+ --magritte-color-stroke-neutral-v24-4-0:#303030;
19
+ --magritte-color-component-drop-background-content-v24-4-0:#1B1B1B;
20
+ --magritte-shadow-level-2-color-v24-4-0:#0000003d;
21
21
  }
22
- .magritte-drop___Z10P4_12-2-1{
22
+ .magritte-drop___Z10P4_12-2-2{
23
23
  position:relative;
24
24
  display:flex;
25
25
  flex-direction:column;
26
- background:var(--magritte-color-component-drop-background-content-v24-3-0);
26
+ background:var(--magritte-color-component-drop-background-content-v24-4-0);
27
27
  border-radius:24px;
28
- box-shadow:var(--magritte-shadow-level-2-x-v24-3-0) var(--magritte-shadow-level-2-y-v24-3-0) var(--magritte-shadow-level-2-blur-v24-3-0) var(--magritte-shadow-level-2-spread-v24-3-0) var(--magritte-shadow-level-2-color-v24-3-0);
28
+ box-shadow:var(--magritte-shadow-level-2-x-v24-4-0) var(--magritte-shadow-level-2-y-v24-4-0) var(--magritte-shadow-level-2-blur-v24-4-0) var(--magritte-shadow-level-2-spread-v24-4-0) var(--magritte-shadow-level-2-color-v24-4-0);
29
29
  box-sizing:border-box;
30
30
  height:100%;
31
31
  overflow:hidden;
32
32
  }
33
- .magritte-drop-border___UDWjW_12-2-1{
34
- box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v24-3-0);
33
+ .magritte-drop-border___UDWjW_12-2-2{
34
+ box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v24-4-0);
35
35
  position:absolute;
36
36
  border-radius:24px;
37
37
  pointer-events:none;
38
38
  inset:0;
39
39
  z-index:1;
40
40
  }
41
- .magritte-drop-container-wrapper___o-ySf_12-2-1{
41
+ .magritte-drop-container-wrapper___o-ySf_12-2-2{
42
42
  position:relative;
43
43
  overflow:hidden;
44
44
  --magritte-ui-scrollbar-border-radius:24px;
45
45
  }
46
- .magritte-drop-container-wrapper-with-footer___-6tNU_12-2-1{
46
+ .magritte-drop-container-wrapper-with-footer___-6tNU_12-2-2{
47
47
  --magritte-ui-scrollbar-border-bottom-left-radius:0;
48
48
  --magritte-ui-scrollbar-border-bottom-right-radius:0;
49
49
  }
50
- .magritte-drop-container___dbMt9_12-2-1{
50
+ .magritte-drop-container___dbMt9_12-2-2{
51
51
  width:100%;
52
52
  height:100%;
53
53
  box-sizing:border-box;
@@ -55,74 +55,74 @@
55
55
  overscroll-behavior:contain;
56
56
  scrollbar-width:none;
57
57
  }
58
- .magritte-drop-container___dbMt9_12-2-1::-webkit-scrollbar{
58
+ .magritte-drop-container___dbMt9_12-2-2::-webkit-scrollbar{
59
59
  display:none;
60
60
  }
61
- .magritte-divider-container___ZCdDW_12-2-1{
61
+ .magritte-divider-container___ZCdDW_12-2-2{
62
62
  visibility:hidden;
63
63
  }
64
64
  @media (prefers-reduced-motion: no-preference){
65
- .magritte-drop-enter___4vEuH_12-2-1 .magritte-drop___Z10P4_12-2-1{
65
+ .magritte-drop-enter___4vEuH_12-2-2 .magritte-drop___Z10P4_12-2-2{
66
66
  opacity:0;
67
67
  }
68
- .magritte-drop-exit___brFjz_12-2-1 .magritte-drop___Z10P4_12-2-1,
69
- .magritte-drop-enter-active___SQUog_12-2-1 .magritte-drop___Z10P4_12-2-1{
68
+ .magritte-drop-exit___brFjz_12-2-2 .magritte-drop___Z10P4_12-2-2,
69
+ .magritte-drop-enter-active___SQUog_12-2-2 .magritte-drop___Z10P4_12-2-2{
70
70
  opacity:1;
71
71
  }
72
- .magritte-drop-exit-active___GB0ET_12-2-1 .magritte-drop___Z10P4_12-2-1{
72
+ .magritte-drop-exit-active___GB0ET_12-2-2 .magritte-drop___Z10P4_12-2-2{
73
73
  opacity:0;
74
74
  }
75
- .magritte-drop-animation-timeout___uO7LF_12-2-1,
76
- .magritte-drop-enter-active___SQUog_12-2-1 .magritte-drop___Z10P4_12-2-1{
75
+ .magritte-drop-animation-timeout___uO7LF_12-2-2,
76
+ .magritte-drop-enter-active___SQUog_12-2-2 .magritte-drop___Z10P4_12-2-2{
77
77
  transition-property:opacity, transform;
78
- transition-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v24-3-0);
79
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v24-3-0);
80
- --animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v24-3-0);
78
+ transition-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v24-4-0);
79
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v24-4-0);
80
+ --animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v24-4-0);
81
81
  }
82
- .magritte-drop-animation-timeout___uO7LF_12-2-1,
83
- .magritte-drop-exit-active___GB0ET_12-2-1 .magritte-drop___Z10P4_12-2-1{
82
+ .magritte-drop-animation-timeout___uO7LF_12-2-2,
83
+ .magritte-drop-exit-active___GB0ET_12-2-2 .magritte-drop___Z10P4_12-2-2{
84
84
  transition-property:opacity, transform;
85
- transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v24-3-0);
86
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v24-3-0);
85
+ transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v24-4-0);
86
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v24-4-0);
87
87
  }
88
- .magritte-drop-enter___4vEuH_12-2-1[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-1{
88
+ .magritte-drop-enter___4vEuH_12-2-2[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-2{
89
89
  transform:translateY(-4px);
90
90
  }
91
- .magritte-drop-exit-active___GB0ET_12-2-1[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-1{
91
+ .magritte-drop-exit-active___GB0ET_12-2-2[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-2{
92
92
  transform:translateY(-4px);
93
93
  }
94
- .magritte-drop-enter___4vEuH_12-2-1[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-1{
94
+ .magritte-drop-enter___4vEuH_12-2-2[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-2{
95
95
  transform:translateY(4px);
96
96
  }
97
- .magritte-drop-exit-active___GB0ET_12-2-1[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-1{
97
+ .magritte-drop-exit-active___GB0ET_12-2-2[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-2{
98
98
  transform:translateY(4px);
99
99
  }
100
- .magritte-drop-enter___4vEuH_12-2-1[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-1{
100
+ .magritte-drop-enter___4vEuH_12-2-2[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-2{
101
101
  transform:translateX(-4px);
102
102
  }
103
- .magritte-drop-exit-active___GB0ET_12-2-1[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-1{
103
+ .magritte-drop-exit-active___GB0ET_12-2-2[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-2{
104
104
  transform:translateX(4px);
105
105
  }
106
- .magritte-drop-enter___4vEuH_12-2-1[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-1{
106
+ .magritte-drop-enter___4vEuH_12-2-2[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-2{
107
107
  transform:translateX(4px);
108
108
  }
109
- .magritte-drop-exit-active___GB0ET_12-2-1[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-1{
109
+ .magritte-drop-exit-active___GB0ET_12-2-2[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-2{
110
110
  transform:translateX(4px);
111
111
  }
112
- .magritte-drop-exit___brFjz_12-2-1[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-1,
113
- .magritte-drop-enter-active___SQUog_12-2-1[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-1{
112
+ .magritte-drop-exit___brFjz_12-2-2[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-2,
113
+ .magritte-drop-enter-active___SQUog_12-2-2[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-2{
114
114
  transform:translateX(0%);
115
115
  }
116
- .magritte-drop-exit___brFjz_12-2-1[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-1,
117
- .magritte-drop-enter-active___SQUog_12-2-1[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-1{
116
+ .magritte-drop-exit___brFjz_12-2-2[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-2,
117
+ .magritte-drop-enter-active___SQUog_12-2-2[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-2{
118
118
  transform:translateY(0%);
119
119
  }
120
- .magritte-drop-exit___brFjz_12-2-1[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-1,
121
- .magritte-drop-enter-active___SQUog_12-2-1[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-1{
120
+ .magritte-drop-exit___brFjz_12-2-2[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-2,
121
+ .magritte-drop-enter-active___SQUog_12-2-2[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-2{
122
122
  transform:translateX(0%);
123
123
  }
124
- .magritte-drop-exit___brFjz_12-2-1[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-1,
125
- .magritte-drop-enter-active___SQUog_12-2-1[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-1{
124
+ .magritte-drop-exit___brFjz_12-2-2[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-2,
125
+ .magritte-drop-enter-active___SQUog_12-2-2[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-2{
126
126
  transform:translateY(0%);
127
127
  }
128
128
  }
package/index.js CHANGED
@@ -5,7 +5,7 @@ import 'react';
5
5
  import '@hh.ru/magritte-internal-drop-base';
6
6
  import '@hh.ru/magritte-ui-action-bar';
7
7
  import '@hh.ru/magritte-ui-breakpoint';
8
- import './DropContainer-CP4Za_Vf.js';
8
+ import './DropContainer-B0bCM2oO.js';
9
9
  import 'classnames';
10
10
  import '@hh.ru/magritte-common-use-multiple-refs';
11
11
  import '@hh.ru/magritte-ui-divider';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-drop",
3
- "version": "12.2.1",
3
+ "version": "12.2.2",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -20,14 +20,14 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.10",
23
- "@hh.ru/magritte-design-tokens": "24.3.0",
24
- "@hh.ru/magritte-internal-drop-base": "7.1.16",
25
- "@hh.ru/magritte-internal-layer-name": "3.3.0",
26
- "@hh.ru/magritte-ui-action-bar": "5.3.2",
23
+ "@hh.ru/magritte-design-tokens": "24.4.0",
24
+ "@hh.ru/magritte-internal-drop-base": "7.1.17",
25
+ "@hh.ru/magritte-internal-layer-name": "3.4.0",
26
+ "@hh.ru/magritte-ui-action-bar": "5.3.3",
27
27
  "@hh.ru/magritte-ui-breakpoint": "6.0.6",
28
- "@hh.ru/magritte-ui-divider": "3.0.15",
29
- "@hh.ru/magritte-ui-layer": "3.2.0",
30
- "@hh.ru/magritte-ui-scrollbar": "1.0.16"
28
+ "@hh.ru/magritte-ui-divider": "3.0.16",
29
+ "@hh.ru/magritte-ui-layer": "3.2.1",
30
+ "@hh.ru/magritte-ui-scrollbar": "1.0.17"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "classnames": "2.3.2",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "c9930c21240dac1610236be666e8d0c45c60f4bc"
39
+ "gitHead": "dbdbcad65f9d7dc14f074ed3e1e83a48d1ef832c"
40
40
  }