@hh.ru/magritte-ui-drop 12.2.0 → 12.2.1

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-OMwBRGe4.js';
7
+ import { s as styles, D as DropContainer } from './DropContainer-CP4Za_Vf.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-0","drop-border":"magritte-drop-border___UDWjW_12-2-0","dropBorder":"magritte-drop-border___UDWjW_12-2-0","drop-container-wrapper":"magritte-drop-container-wrapper___o-ySf_12-2-0","dropContainerWrapper":"magritte-drop-container-wrapper___o-ySf_12-2-0","drop-container-wrapper-with-footer":"magritte-drop-container-wrapper-with-footer___-6tNU_12-2-0","dropContainerWrapperWithFooter":"magritte-drop-container-wrapper-with-footer___-6tNU_12-2-0","drop-container":"magritte-drop-container___dbMt9_12-2-0","dropContainer":"magritte-drop-container___dbMt9_12-2-0","divider-container":"magritte-divider-container___ZCdDW_12-2-0","dividerContainer":"magritte-divider-container___ZCdDW_12-2-0","drop-enter":"magritte-drop-enter___4vEuH_12-2-0","dropEnter":"magritte-drop-enter___4vEuH_12-2-0","drop-exit":"magritte-drop-exit___brFjz_12-2-0","dropExit":"magritte-drop-exit___brFjz_12-2-0","drop-enter-active":"magritte-drop-enter-active___SQUog_12-2-0","dropEnterActive":"magritte-drop-enter-active___SQUog_12-2-0","drop-exit-active":"magritte-drop-exit-active___GB0ET_12-2-0","dropExitActive":"magritte-drop-exit-active___GB0ET_12-2-0","drop-animation-timeout":"magritte-drop-animation-timeout___uO7LF_12-2-0","dropAnimationTimeout":"magritte-drop-animation-timeout___uO7LF_12-2-0"};
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"};
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-OMwBRGe4.js.map
63
+ //# sourceMappingURL=DropContainer-CP4Za_Vf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DropContainer-OMwBRGe4.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,EAAE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AM,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-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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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-OMwBRGe4.js';
8
+ export { D as DropContainer } from './DropContainer-CP4Za_Vf.js';
9
9
  //# sourceMappingURL=DropContainer.js.map
package/index.css CHANGED
@@ -19,7 +19,7 @@
19
19
  --magritte-color-component-drop-background-content-v24-3-0:#1B1B1B;
20
20
  --magritte-shadow-level-2-color-v24-3-0:#0000003d;
21
21
  }
22
- .magritte-drop___Z10P4_12-2-0{
22
+ .magritte-drop___Z10P4_12-2-1{
23
23
  position:relative;
24
24
  display:flex;
25
25
  flex-direction:column;
@@ -30,7 +30,7 @@
30
30
  height:100%;
31
31
  overflow:hidden;
32
32
  }
33
- .magritte-drop-border___UDWjW_12-2-0{
33
+ .magritte-drop-border___UDWjW_12-2-1{
34
34
  box-shadow:inset 0 0 0 1px var(--magritte-color-stroke-neutral-v24-3-0);
35
35
  position:absolute;
36
36
  border-radius:24px;
@@ -38,16 +38,16 @@
38
38
  inset:0;
39
39
  z-index:1;
40
40
  }
41
- .magritte-drop-container-wrapper___o-ySf_12-2-0{
41
+ .magritte-drop-container-wrapper___o-ySf_12-2-1{
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-0{
46
+ .magritte-drop-container-wrapper-with-footer___-6tNU_12-2-1{
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-0{
50
+ .magritte-drop-container___dbMt9_12-2-1{
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-0::-webkit-scrollbar{
58
+ .magritte-drop-container___dbMt9_12-2-1::-webkit-scrollbar{
59
59
  display:none;
60
60
  }
61
- .magritte-divider-container___ZCdDW_12-2-0{
61
+ .magritte-divider-container___ZCdDW_12-2-1{
62
62
  visibility:hidden;
63
63
  }
64
64
  @media (prefers-reduced-motion: no-preference){
65
- .magritte-drop-enter___4vEuH_12-2-0 .magritte-drop___Z10P4_12-2-0{
65
+ .magritte-drop-enter___4vEuH_12-2-1 .magritte-drop___Z10P4_12-2-1{
66
66
  opacity:0;
67
67
  }
68
- .magritte-drop-exit___brFjz_12-2-0 .magritte-drop___Z10P4_12-2-0,
69
- .magritte-drop-enter-active___SQUog_12-2-0 .magritte-drop___Z10P4_12-2-0{
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{
70
70
  opacity:1;
71
71
  }
72
- .magritte-drop-exit-active___GB0ET_12-2-0 .magritte-drop___Z10P4_12-2-0{
72
+ .magritte-drop-exit-active___GB0ET_12-2-1 .magritte-drop___Z10P4_12-2-1{
73
73
  opacity:0;
74
74
  }
75
- .magritte-drop-animation-timeout___uO7LF_12-2-0,
76
- .magritte-drop-enter-active___SQUog_12-2-0 .magritte-drop___Z10P4_12-2-0{
75
+ .magritte-drop-animation-timeout___uO7LF_12-2-1,
76
+ .magritte-drop-enter-active___SQUog_12-2-1 .magritte-drop___Z10P4_12-2-1{
77
77
  transition-property:opacity, transform;
78
78
  transition-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v24-3-0);
79
79
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v24-3-0);
80
80
  --animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v24-3-0);
81
81
  }
82
- .magritte-drop-animation-timeout___uO7LF_12-2-0,
83
- .magritte-drop-exit-active___GB0ET_12-2-0 .magritte-drop___Z10P4_12-2-0{
82
+ .magritte-drop-animation-timeout___uO7LF_12-2-1,
83
+ .magritte-drop-exit-active___GB0ET_12-2-1 .magritte-drop___Z10P4_12-2-1{
84
84
  transition-property:opacity, transform;
85
85
  transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v24-3-0);
86
86
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v24-3-0);
87
87
  }
88
- .magritte-drop-enter___4vEuH_12-2-0[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-0{
88
+ .magritte-drop-enter___4vEuH_12-2-1[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-1{
89
89
  transform:translateY(-4px);
90
90
  }
91
- .magritte-drop-exit-active___GB0ET_12-2-0[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-0{
91
+ .magritte-drop-exit-active___GB0ET_12-2-1[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-1{
92
92
  transform:translateY(-4px);
93
93
  }
94
- .magritte-drop-enter___4vEuH_12-2-0[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-0{
94
+ .magritte-drop-enter___4vEuH_12-2-1[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-1{
95
95
  transform:translateY(4px);
96
96
  }
97
- .magritte-drop-exit-active___GB0ET_12-2-0[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-0{
97
+ .magritte-drop-exit-active___GB0ET_12-2-1[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-1{
98
98
  transform:translateY(4px);
99
99
  }
100
- .magritte-drop-enter___4vEuH_12-2-0[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-0{
100
+ .magritte-drop-enter___4vEuH_12-2-1[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-1{
101
101
  transform:translateX(-4px);
102
102
  }
103
- .magritte-drop-exit-active___GB0ET_12-2-0[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-0{
103
+ .magritte-drop-exit-active___GB0ET_12-2-1[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-1{
104
104
  transform:translateX(4px);
105
105
  }
106
- .magritte-drop-enter___4vEuH_12-2-0[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-0{
106
+ .magritte-drop-enter___4vEuH_12-2-1[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-1{
107
107
  transform:translateX(4px);
108
108
  }
109
- .magritte-drop-exit-active___GB0ET_12-2-0[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-0{
109
+ .magritte-drop-exit-active___GB0ET_12-2-1[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-1{
110
110
  transform:translateX(4px);
111
111
  }
112
- .magritte-drop-exit___brFjz_12-2-0[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-0,
113
- .magritte-drop-enter-active___SQUog_12-2-0[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_12-2-0{
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{
114
114
  transform:translateX(0%);
115
115
  }
116
- .magritte-drop-exit___brFjz_12-2-0[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-0,
117
- .magritte-drop-enter-active___SQUog_12-2-0[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_12-2-0{
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{
118
118
  transform:translateY(0%);
119
119
  }
120
- .magritte-drop-exit___brFjz_12-2-0[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-0,
121
- .magritte-drop-enter-active___SQUog_12-2-0[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_12-2-0{
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{
122
122
  transform:translateX(0%);
123
123
  }
124
- .magritte-drop-exit___brFjz_12-2-0[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-0,
125
- .magritte-drop-enter-active___SQUog_12-2-0[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_12-2-0{
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{
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-OMwBRGe4.js';
8
+ import './DropContainer-CP4Za_Vf.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.0",
3
+ "version": "12.2.1",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -23,7 +23,7 @@
23
23
  "@hh.ru/magritte-design-tokens": "24.3.0",
24
24
  "@hh.ru/magritte-internal-drop-base": "7.1.16",
25
25
  "@hh.ru/magritte-internal-layer-name": "3.3.0",
26
- "@hh.ru/magritte-ui-action-bar": "5.3.1",
26
+ "@hh.ru/magritte-ui-action-bar": "5.3.2",
27
27
  "@hh.ru/magritte-ui-breakpoint": "6.0.6",
28
28
  "@hh.ru/magritte-ui-divider": "3.0.15",
29
29
  "@hh.ru/magritte-ui-layer": "3.2.0",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "cd762742faf8206ce237c2fa3984574d9121696b"
39
+ "gitHead": "c9930c21240dac1610236be666e8d0c45c60f4bc"
40
40
  }