@hh.ru/magritte-ui-drop 7.2.13 → 7.2.14
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
|
@@ -5,7 +5,7 @@ import classnames from 'classnames';
|
|
|
5
5
|
import { DropBase } from '@hh.ru/magritte-internal-drop-base';
|
|
6
6
|
import { InternalLayerName } from '@hh.ru/magritte-internal-layer-name';
|
|
7
7
|
import { useBreakpoint } from '@hh.ru/magritte-ui-breakpoint';
|
|
8
|
-
import { s as styles, D as DropContainer } from './DropContainer-
|
|
8
|
+
import { s as styles, D as DropContainer } from './DropContainer-BvWRSs5t.js';
|
|
9
9
|
import { PureChildren } from './PureChildren.js';
|
|
10
10
|
import { Layer } from '@hh.ru/magritte-ui-layer';
|
|
11
11
|
import '@hh.ru/magritte-common-use-multiple-refs';
|
|
@@ -4,7 +4,7 @@ import { forwardRef, useRef, useCallback, useEffect } from 'react';
|
|
|
4
4
|
import { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';
|
|
5
5
|
import { Divider } from '@hh.ru/magritte-ui-divider';
|
|
6
6
|
|
|
7
|
-
var styles = {"drop":"magritte-drop___Z10P4_7-2-
|
|
7
|
+
var styles = {"drop":"magritte-drop___Z10P4_7-2-14","drop-container":"magritte-drop-container___dbMt9_7-2-14","dropContainer":"magritte-drop-container___dbMt9_7-2-14","divider-container":"magritte-divider-container___ZCdDW_7-2-14","dividerContainer":"magritte-divider-container___ZCdDW_7-2-14","drop-footer":"magritte-drop-footer___v8ZEO_7-2-14","dropFooter":"magritte-drop-footer___v8ZEO_7-2-14","drop-space-300":"magritte-drop-space-300___41acH_7-2-14","dropSpace300":"magritte-drop-space-300___41acH_7-2-14","drop-space-400":"magritte-drop-space-400___XX1RM_7-2-14","dropSpace400":"magritte-drop-space-400___XX1RM_7-2-14","drop-padding":"magritte-drop-padding___xBiJO_7-2-14","dropPadding":"magritte-drop-padding___xBiJO_7-2-14","drop-space-600":"magritte-drop-space-600___6B1i0_7-2-14","dropSpace600":"magritte-drop-space-600___6B1i0_7-2-14","drop-with-footer":"magritte-drop-with-footer___CgBIV_7-2-14","dropWithFooter":"magritte-drop-with-footer___CgBIV_7-2-14","drop-enter":"magritte-drop-enter___4vEuH_7-2-14","dropEnter":"magritte-drop-enter___4vEuH_7-2-14","drop-exit":"magritte-drop-exit___brFjz_7-2-14","dropExit":"magritte-drop-exit___brFjz_7-2-14","drop-enter-active":"magritte-drop-enter-active___SQUog_7-2-14","dropEnterActive":"magritte-drop-enter-active___SQUog_7-2-14","drop-exit-active":"magritte-drop-exit-active___GB0ET_7-2-14","dropExitActive":"magritte-drop-exit-active___GB0ET_7-2-14","drop-animation-timeout":"magritte-drop-animation-timeout___uO7LF_7-2-14","dropAnimationTimeout":"magritte-drop-animation-timeout___uO7LF_7-2-14"};
|
|
8
8
|
|
|
9
9
|
const DropContainer = forwardRef(({ children, dividerState }, ref) => {
|
|
10
10
|
const dividerRef = useRef(null);
|
|
@@ -55,4 +55,4 @@ const DropContainer = forwardRef(({ children, dividerState }, ref) => {
|
|
|
55
55
|
DropContainer.displayName = 'DropContainer';
|
|
56
56
|
|
|
57
57
|
export { DropContainer as D, styles as s };
|
|
58
|
-
//# sourceMappingURL=DropContainer-
|
|
58
|
+
//# sourceMappingURL=DropContainer-BvWRSs5t.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropContainer-
|
|
1
|
+
{"version":3,"file":"DropContainer-BvWRSs5t.js","sources":["../src/DropContainer.tsx"],"sourcesContent":["import { useRef, type PropsWithChildren, useEffect, useCallback, forwardRef } from 'react';\n\nimport { useMultipleRefs } from '@hh.ru/magritte-common-use-multiple-refs';\nimport { Divider } from '@hh.ru/magritte-ui-divider';\nimport type { DividerState } from '@hh.ru/magritte-ui-drop/types';\n\nimport styles from './drop.less';\n\nexport const DropContainer = forwardRef<\n HTMLDivElement,\n PropsWithChildren<{\n dividerState: DividerState;\n }>\n>(({ children, dividerState }, ref) => {\n const dividerRef = useRef<HTMLDivElement>(null);\n const showDividerRef = useRef(false);\n showDividerRef.current = dividerState !== 'hide';\n const contentContainerRef = useRef<HTMLDivElement>(null);\n const contentContainerRefMulti = useMultipleRefs(contentContainerRef, ref);\n\n const updateDividerVisibility = useCallback(\n (showDivider: boolean) => {\n if (!contentContainerRef.current || !dividerRef.current) {\n return;\n }\n if (!showDivider) {\n dividerRef.current.style.visibility = 'hidden';\n return;\n }\n if (contentContainerRef?.current !== null && dividerRef.current) {\n const hasScroll =\n contentContainerRef.current.scrollHeight - contentContainerRef.current.clientHeight > 0;\n dividerRef.current.style.visibility = hasScroll ? 'visible' : '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 = showDividerRef.current\n ? {\n onScroll: ({ target }: { target: EventTarget }) => {\n const scrollableContainer = target as HTMLDivElement;\n\n if (dividerRef.current && dividerState !== 'showWhenFullyScrolled') {\n const scrollEnded =\n scrollableContainer.scrollTop +\n scrollableContainer.offsetHeight -\n scrollableContainer.scrollHeight ===\n 0;\n\n dividerRef.current.style.visibility = scrollEnded ? 'hidden' : 'visible';\n }\n },\n }\n : {};\n\n return (\n <>\n <div ref={contentContainerRefMulti} className={styles.dropContainer} {...props}>\n {children}\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":";;;;;;;AAQO,MAAM,aAAa,GAAG,UAAU,CAKrC,CAAC,EAAE,QAAQ,EAAE,YAA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sx-runtime';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@hh.ru/magritte-common-use-multiple-refs';
|
|
5
5
|
import '@hh.ru/magritte-ui-divider';
|
|
6
|
-
export { D as DropContainer } from './DropContainer-
|
|
6
|
+
export { D as DropContainer } from './DropContainer-BvWRSs5t.js';
|
|
7
7
|
//# sourceMappingURL=DropContainer.js.map
|
package/index.css
CHANGED
|
@@ -1,130 +1,130 @@
|
|
|
1
1
|
:root{
|
|
2
|
-
--magritte-color-component-drop-background-content-v21-
|
|
3
|
-
--magritte-shadow-level-2-color-v21-
|
|
4
|
-
--magritte-shadow-level-2-x-v21-
|
|
5
|
-
--magritte-shadow-level-2-y-v21-
|
|
6
|
-
--magritte-shadow-level-2-blur-v21-
|
|
7
|
-
--magritte-shadow-level-2-spread-v21-
|
|
2
|
+
--magritte-color-component-drop-background-content-v21-1-0:#ffffff;
|
|
3
|
+
--magritte-shadow-level-2-color-v21-1-0:#7090b03d;
|
|
4
|
+
--magritte-shadow-level-2-x-v21-1-0:0px;
|
|
5
|
+
--magritte-shadow-level-2-y-v21-1-0:8px;
|
|
6
|
+
--magritte-shadow-level-2-blur-v21-1-0:16px;
|
|
7
|
+
--magritte-shadow-level-2-spread-v21-1-0:0px;
|
|
8
8
|
}
|
|
9
9
|
:root{
|
|
10
|
-
--magritte-semantic-animation-ease-in-out-100-duration-v21-
|
|
11
|
-
--magritte-semantic-animation-ease-in-out-200-timing-function-v21-
|
|
12
|
-
--magritte-semantic-animation-ease-in-out-200-duration-v21-
|
|
13
|
-
--magritte-static-space-300-v21-
|
|
14
|
-
--magritte-static-space-400-v21-
|
|
15
|
-
--magritte-static-space-600-v21-
|
|
16
|
-
--magritte-static-border-radius-600-v21-
|
|
10
|
+
--magritte-semantic-animation-ease-in-out-100-duration-v21-1-0:100ms;
|
|
11
|
+
--magritte-semantic-animation-ease-in-out-200-timing-function-v21-1-0:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
12
|
+
--magritte-semantic-animation-ease-in-out-200-duration-v21-1-0:200ms;
|
|
13
|
+
--magritte-static-space-300-v21-1-0:12px;
|
|
14
|
+
--magritte-static-space-400-v21-1-0:16px;
|
|
15
|
+
--magritte-static-space-600-v21-1-0:24px;
|
|
16
|
+
--magritte-static-border-radius-600-v21-1-0:24px;
|
|
17
17
|
}
|
|
18
18
|
.magritte-night-theme{
|
|
19
|
-
--magritte-color-component-drop-background-content-v21-
|
|
20
|
-
--magritte-shadow-level-2-color-v21-
|
|
21
|
-
--magritte-shadow-level-2-x-v21-
|
|
22
|
-
--magritte-shadow-level-2-y-v21-
|
|
23
|
-
--magritte-shadow-level-2-blur-v21-
|
|
24
|
-
--magritte-shadow-level-2-spread-v21-
|
|
19
|
+
--magritte-color-component-drop-background-content-v21-1-0:#1B1B1B;
|
|
20
|
+
--magritte-shadow-level-2-color-v21-1-0:#0000003d;
|
|
21
|
+
--magritte-shadow-level-2-x-v21-1-0:0px;
|
|
22
|
+
--magritte-shadow-level-2-y-v21-1-0:8px;
|
|
23
|
+
--magritte-shadow-level-2-blur-v21-1-0:16px;
|
|
24
|
+
--magritte-shadow-level-2-spread-v21-1-0:0px;
|
|
25
25
|
}
|
|
26
|
-
.magritte-drop___Z10P4_7-2-
|
|
26
|
+
.magritte-drop___Z10P4_7-2-14{
|
|
27
27
|
position:relative;
|
|
28
28
|
display:flex;
|
|
29
29
|
flex-direction:column;
|
|
30
|
-
background:var(--magritte-color-component-drop-background-content-v21-
|
|
31
|
-
border-radius:var(--magritte-static-border-radius-600-v21-
|
|
32
|
-
box-shadow:var(--magritte-shadow-level-2-x-v21-
|
|
30
|
+
background:var(--magritte-color-component-drop-background-content-v21-1-0);
|
|
31
|
+
border-radius:var(--magritte-static-border-radius-600-v21-1-0);
|
|
32
|
+
box-shadow:var(--magritte-shadow-level-2-x-v21-1-0) var(--magritte-shadow-level-2-y-v21-1-0) var(--magritte-shadow-level-2-blur-v21-1-0) var(--magritte-shadow-level-2-spread-v21-1-0) var(--magritte-shadow-level-2-color-v21-1-0);
|
|
33
33
|
box-sizing:border-box;
|
|
34
34
|
height:100%;
|
|
35
35
|
overflow:hidden;
|
|
36
36
|
}
|
|
37
|
-
.magritte-drop-container___dbMt9_7-2-
|
|
37
|
+
.magritte-drop-container___dbMt9_7-2-14{
|
|
38
38
|
display:block;
|
|
39
39
|
overflow:auto;
|
|
40
40
|
}
|
|
41
|
-
.magritte-divider-container___ZCdDW_7-2-
|
|
41
|
+
.magritte-divider-container___ZCdDW_7-2-14{
|
|
42
42
|
visibility:hidden;
|
|
43
43
|
}
|
|
44
|
-
.magritte-drop-footer___v8ZEO_7-2-
|
|
44
|
+
.magritte-drop-footer___v8ZEO_7-2-14{
|
|
45
45
|
display:flex;
|
|
46
46
|
flex-flow:column;
|
|
47
47
|
gap:12px;
|
|
48
48
|
}
|
|
49
|
-
.magritte-drop-space-300___41acH_7-2-
|
|
50
|
-
.magritte-drop-space-300___41acH_7-2-
|
|
51
|
-
padding:var(--magritte-static-space-300-v21-
|
|
49
|
+
.magritte-drop-space-300___41acH_7-2-14 .magritte-drop-container___dbMt9_7-2-14,
|
|
50
|
+
.magritte-drop-space-300___41acH_7-2-14 .magritte-drop-footer___v8ZEO_7-2-14{
|
|
51
|
+
padding:var(--magritte-static-space-300-v21-1-0);
|
|
52
52
|
}
|
|
53
|
-
.magritte-drop-space-400___XX1RM_7-2-
|
|
54
|
-
.magritte-drop-space-400___XX1RM_7-2-
|
|
55
|
-
.magritte-drop-space-400___XX1RM_7-2-
|
|
56
|
-
padding:var(--magritte-static-space-400-v21-
|
|
53
|
+
.magritte-drop-space-400___XX1RM_7-2-14 .magritte-drop-padding___xBiJO_7-2-14,
|
|
54
|
+
.magritte-drop-space-400___XX1RM_7-2-14 .magritte-drop-container___dbMt9_7-2-14,
|
|
55
|
+
.magritte-drop-space-400___XX1RM_7-2-14 .magritte-drop-footer___v8ZEO_7-2-14{
|
|
56
|
+
padding:var(--magritte-static-space-400-v21-1-0);
|
|
57
57
|
}
|
|
58
|
-
.magritte-drop-space-600___6B1i0_7-2-
|
|
59
|
-
.magritte-drop-space-600___6B1i0_7-2-
|
|
60
|
-
.magritte-drop-space-600___6B1i0_7-2-
|
|
61
|
-
padding:var(--magritte-static-space-600-v21-
|
|
58
|
+
.magritte-drop-space-600___6B1i0_7-2-14 .magritte-drop-padding___xBiJO_7-2-14,
|
|
59
|
+
.magritte-drop-space-600___6B1i0_7-2-14 .magritte-drop-container___dbMt9_7-2-14,
|
|
60
|
+
.magritte-drop-space-600___6B1i0_7-2-14 .magritte-drop-footer___v8ZEO_7-2-14{
|
|
61
|
+
padding:var(--magritte-static-space-600-v21-1-0);
|
|
62
62
|
}
|
|
63
|
-
.magritte-drop-with-footer___CgBIV_7-2-
|
|
63
|
+
.magritte-drop-with-footer___CgBIV_7-2-14 .magritte-drop-container___dbMt9_7-2-14{
|
|
64
64
|
padding-bottom:0;
|
|
65
65
|
}
|
|
66
66
|
@media (prefers-reduced-motion: no-preference){
|
|
67
|
-
.magritte-drop-enter___4vEuH_7-2-
|
|
67
|
+
.magritte-drop-enter___4vEuH_7-2-14 .magritte-drop___Z10P4_7-2-14{
|
|
68
68
|
opacity:0;
|
|
69
69
|
}
|
|
70
|
-
.magritte-drop-exit___brFjz_7-2-
|
|
71
|
-
.magritte-drop-enter-active___SQUog_7-2-
|
|
70
|
+
.magritte-drop-exit___brFjz_7-2-14 .magritte-drop___Z10P4_7-2-14,
|
|
71
|
+
.magritte-drop-enter-active___SQUog_7-2-14 .magritte-drop___Z10P4_7-2-14{
|
|
72
72
|
opacity:1;
|
|
73
73
|
}
|
|
74
|
-
.magritte-drop-exit-active___GB0ET_7-2-
|
|
74
|
+
.magritte-drop-exit-active___GB0ET_7-2-14 .magritte-drop___Z10P4_7-2-14{
|
|
75
75
|
opacity:0;
|
|
76
76
|
}
|
|
77
|
-
.magritte-drop-animation-timeout___uO7LF_7-2-
|
|
78
|
-
.magritte-drop-enter-active___SQUog_7-2-
|
|
77
|
+
.magritte-drop-animation-timeout___uO7LF_7-2-14,
|
|
78
|
+
.magritte-drop-enter-active___SQUog_7-2-14 .magritte-drop___Z10P4_7-2-14{
|
|
79
79
|
transition-property:opacity, transform;
|
|
80
|
-
transition-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-
|
|
81
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-
|
|
82
|
-
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-
|
|
80
|
+
transition-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-1-0);
|
|
81
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-1-0);
|
|
82
|
+
--animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-1-0);
|
|
83
83
|
}
|
|
84
|
-
.magritte-drop-animation-timeout___uO7LF_7-2-
|
|
85
|
-
.magritte-drop-exit-active___GB0ET_7-2-
|
|
84
|
+
.magritte-drop-animation-timeout___uO7LF_7-2-14,
|
|
85
|
+
.magritte-drop-exit-active___GB0ET_7-2-14 .magritte-drop___Z10P4_7-2-14{
|
|
86
86
|
transition-property:opacity, transform;
|
|
87
|
-
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-
|
|
88
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-
|
|
87
|
+
transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-1-0);
|
|
88
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-1-0);
|
|
89
89
|
}
|
|
90
|
-
.magritte-drop-enter___4vEuH_7-2-
|
|
90
|
+
.magritte-drop-enter___4vEuH_7-2-14[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_7-2-14{
|
|
91
91
|
transform:translateY(-4px);
|
|
92
92
|
}
|
|
93
|
-
.magritte-drop-exit-active___GB0ET_7-2-
|
|
93
|
+
.magritte-drop-exit-active___GB0ET_7-2-14[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_7-2-14{
|
|
94
94
|
transform:translateY(-4px);
|
|
95
95
|
}
|
|
96
|
-
.magritte-drop-enter___4vEuH_7-2-
|
|
96
|
+
.magritte-drop-enter___4vEuH_7-2-14[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_7-2-14{
|
|
97
97
|
transform:translateY(4px);
|
|
98
98
|
}
|
|
99
|
-
.magritte-drop-exit-active___GB0ET_7-2-
|
|
99
|
+
.magritte-drop-exit-active___GB0ET_7-2-14[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_7-2-14{
|
|
100
100
|
transform:translateY(4px);
|
|
101
101
|
}
|
|
102
|
-
.magritte-drop-enter___4vEuH_7-2-
|
|
102
|
+
.magritte-drop-enter___4vEuH_7-2-14[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_7-2-14{
|
|
103
103
|
transform:translateX(-4px);
|
|
104
104
|
}
|
|
105
|
-
.magritte-drop-exit-active___GB0ET_7-2-
|
|
105
|
+
.magritte-drop-exit-active___GB0ET_7-2-14[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_7-2-14{
|
|
106
106
|
transform:translateX(4px);
|
|
107
107
|
}
|
|
108
|
-
.magritte-drop-enter___4vEuH_7-2-
|
|
108
|
+
.magritte-drop-enter___4vEuH_7-2-14[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_7-2-14{
|
|
109
109
|
transform:translateX(4px);
|
|
110
110
|
}
|
|
111
|
-
.magritte-drop-exit-active___GB0ET_7-2-
|
|
111
|
+
.magritte-drop-exit-active___GB0ET_7-2-14[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_7-2-14{
|
|
112
112
|
transform:translateX(4px);
|
|
113
113
|
}
|
|
114
|
-
.magritte-drop-exit___brFjz_7-2-
|
|
115
|
-
.magritte-drop-enter-active___SQUog_7-2-
|
|
114
|
+
.magritte-drop-exit___brFjz_7-2-14[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_7-2-14,
|
|
115
|
+
.magritte-drop-enter-active___SQUog_7-2-14[data-magritte-drop-base-direction='left'] .magritte-drop___Z10P4_7-2-14{
|
|
116
116
|
transform:translateX(0%);
|
|
117
117
|
}
|
|
118
|
-
.magritte-drop-exit___brFjz_7-2-
|
|
119
|
-
.magritte-drop-enter-active___SQUog_7-2-
|
|
118
|
+
.magritte-drop-exit___brFjz_7-2-14[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_7-2-14,
|
|
119
|
+
.magritte-drop-enter-active___SQUog_7-2-14[data-magritte-drop-base-direction='bottom'] .magritte-drop___Z10P4_7-2-14{
|
|
120
120
|
transform:translateY(0%);
|
|
121
121
|
}
|
|
122
|
-
.magritte-drop-exit___brFjz_7-2-
|
|
123
|
-
.magritte-drop-enter-active___SQUog_7-2-
|
|
122
|
+
.magritte-drop-exit___brFjz_7-2-14[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_7-2-14,
|
|
123
|
+
.magritte-drop-enter-active___SQUog_7-2-14[data-magritte-drop-base-direction='right'] .magritte-drop___Z10P4_7-2-14{
|
|
124
124
|
transform:translateX(0%);
|
|
125
125
|
}
|
|
126
|
-
.magritte-drop-exit___brFjz_7-2-
|
|
127
|
-
.magritte-drop-enter-active___SQUog_7-2-
|
|
126
|
+
.magritte-drop-exit___brFjz_7-2-14[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_7-2-14,
|
|
127
|
+
.magritte-drop-enter-active___SQUog_7-2-14[data-magritte-drop-base-direction='top'] .magritte-drop___Z10P4_7-2-14{
|
|
128
128
|
transform:translateY(0%);
|
|
129
129
|
}
|
|
130
130
|
}
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import 'classnames';
|
|
|
7
7
|
import '@hh.ru/magritte-internal-drop-base';
|
|
8
8
|
import '@hh.ru/magritte-internal-layer-name';
|
|
9
9
|
import '@hh.ru/magritte-ui-breakpoint';
|
|
10
|
-
import './DropContainer-
|
|
10
|
+
import './DropContainer-BvWRSs5t.js';
|
|
11
11
|
import '@hh.ru/magritte-common-use-multiple-refs';
|
|
12
12
|
import '@hh.ru/magritte-ui-divider';
|
|
13
13
|
import './PureChildren.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-drop",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.14",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@hh.ru/magritte-common-use-multiple-refs": "1.1.5",
|
|
24
|
-
"@hh.ru/magritte-design-tokens": "21.
|
|
24
|
+
"@hh.ru/magritte-design-tokens": "21.1.0",
|
|
25
25
|
"@hh.ru/magritte-internal-drop-base": "7.0.12",
|
|
26
26
|
"@hh.ru/magritte-internal-layer-name": "2.2.0",
|
|
27
27
|
"@hh.ru/magritte-ui-breakpoint": "5.0.0",
|
|
28
|
-
"@hh.ru/magritte-ui-divider": "1.1.
|
|
28
|
+
"@hh.ru/magritte-ui-divider": "1.1.41",
|
|
29
29
|
"@hh.ru/magritte-ui-layer": "2.1.2",
|
|
30
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.
|
|
30
|
+
"@hh.ru/magritte-ui-theme-provider": "1.1.37"
|
|
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": "
|
|
39
|
+
"gitHead": "6ae3dbd40e749f4dfd123c76295ec05afc2c79e0"
|
|
40
40
|
}
|