@hh.ru/magritte-ui-bottom-sheet 7.0.6 → 7.0.7
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/BottomSheet.js +1 -1
- package/BottomSheetFooter.js +1 -1
- package/ClickInterceptor.js +4 -3
- package/ClickInterceptor.js.map +1 -1
- package/bottom-sheet-VUQffO9q.js +5 -0
- package/bottom-sheet-VUQffO9q.js.map +1 -0
- package/index.css +33 -33
- package/index.js +1 -1
- package/package.json +2 -2
- package/bottom-sheet-DMQ_Aram.js +0 -5
- package/bottom-sheet-DMQ_Aram.js.map +0 -1
package/BottomSheet.js
CHANGED
|
@@ -18,7 +18,7 @@ import { Divider } from '@hh.ru/magritte-ui-divider';
|
|
|
18
18
|
import { Layer } from '@hh.ru/magritte-ui-layer';
|
|
19
19
|
import { isNavigationBarComponent, NavigationBarComponent } from '@hh.ru/magritte-ui-navigation-bar';
|
|
20
20
|
import { isValidTreeSelectorWrapper } from '@hh.ru/magritte-ui-tree-selector';
|
|
21
|
-
import { s as styles } from './bottom-sheet-
|
|
21
|
+
import { s as styles } from './bottom-sheet-VUQffO9q.js';
|
|
22
22
|
|
|
23
23
|
const CSS_VAR_ENTER_ANIMATION_DURATION = '--enter-animation-duration';
|
|
24
24
|
const CSS_VAR_EXIT_ANIMATION_DURATION = '--exit-animation-duration';
|
package/BottomSheetFooter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { s as styles } from './bottom-sheet-
|
|
3
|
+
import { s as styles } from './bottom-sheet-VUQffO9q.js';
|
|
4
4
|
|
|
5
5
|
const BottomSheetFooter = ({ children }) => (jsx("div", { className: styles.footerWithPadding, children: children }));
|
|
6
6
|
|
package/ClickInterceptor.js
CHANGED
|
@@ -44,10 +44,11 @@ const applyInterceptor = (node, func) => {
|
|
|
44
44
|
let children;
|
|
45
45
|
((props) => {
|
|
46
46
|
if (props.children) {
|
|
47
|
+
const childrenArr = Children.toArray(props.children);
|
|
47
48
|
children =
|
|
48
|
-
|
|
49
|
-
? applyInterceptor(
|
|
50
|
-
:
|
|
49
|
+
childrenArr.length === 1
|
|
50
|
+
? applyInterceptor(childrenArr[0], func)
|
|
51
|
+
: childrenArr.map((child) => applyInterceptor(child, func));
|
|
51
52
|
}
|
|
52
53
|
})(node.props);
|
|
53
54
|
return cloneElement(func(node), {}, children);
|
package/ClickInterceptor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClickInterceptor.js","sources":["../src/ClickInterceptor.tsx"],"sourcesContent":["import {\n Children,\n DOMAttributes,\n FC,\n Fragment,\n MouseEvent,\n ReactElement,\n ReactNode,\n cloneElement,\n isValidElement,\n memo,\n} from 'react';\n\ntype InterceptedProps = Pick<\n DOMAttributes<HTMLElement>,\n 'onClick' | 'onPointerDown' | 'onPointerCancel' | 'onPointerLeave' | 'onPointerUp'\n>;\n\nconst CLICK_DISTANCE_THRESHOLD_PX = 24;\n\nconst interceptClick = (node: ReactElement<InterceptedProps>) => {\n const props: InterceptedProps = {};\n\n if (node.props.onClick) {\n let click = false;\n let coordinates: { x: number; y: number } | null = null;\n props.onClick = () => {}; // eslint-disable-line @typescript-eslint/no-empty-function\n props.onPointerDown = (event) => {\n click = true;\n coordinates = { x: event.pageX, y: event.pageY };\n node.props.onPointerDown?.(event);\n };\n props.onPointerCancel = (event) => {\n click = false;\n node.props.onPointerCancel?.(event);\n };\n props.onPointerLeave = (event) => {\n click = false;\n node.props.onPointerLeave?.(event);\n };\n props.onPointerUp = (event) => {\n if (click) {\n if (\n coordinates !== null &&\n Math.pow(event.pageX - coordinates.x, 2) + Math.pow(event.pageY - coordinates.y, 2) <=\n Math.pow(CLICK_DISTANCE_THRESHOLD_PX, 2)\n ) {\n node.props.onClick?.(event as MouseEvent<HTMLElement>);\n }\n click = false;\n coordinates = null;\n }\n node.props.onPointerUp?.(event);\n };\n }\n\n return cloneElement(node, props);\n};\n\nconst applyInterceptor = (node: ReactNode, func: (node: ReactElement) => ReactElement): ReactElement => {\n if (!isValidElement(node)) {\n return <Fragment>{node}</Fragment>;\n }\n\n let children;\n ((props) => {\n if (props.children) {\n children =\n
|
|
1
|
+
{"version":3,"file":"ClickInterceptor.js","sources":["../src/ClickInterceptor.tsx"],"sourcesContent":["import {\n Children,\n DOMAttributes,\n FC,\n Fragment,\n MouseEvent,\n ReactElement,\n ReactNode,\n cloneElement,\n isValidElement,\n memo,\n} from 'react';\n\ntype InterceptedProps = Pick<\n DOMAttributes<HTMLElement>,\n 'onClick' | 'onPointerDown' | 'onPointerCancel' | 'onPointerLeave' | 'onPointerUp'\n>;\n\nconst CLICK_DISTANCE_THRESHOLD_PX = 24;\n\nconst interceptClick = (node: ReactElement<InterceptedProps>) => {\n const props: InterceptedProps = {};\n\n if (node.props.onClick) {\n let click = false;\n let coordinates: { x: number; y: number } | null = null;\n props.onClick = () => {}; // eslint-disable-line @typescript-eslint/no-empty-function\n props.onPointerDown = (event) => {\n click = true;\n coordinates = { x: event.pageX, y: event.pageY };\n node.props.onPointerDown?.(event);\n };\n props.onPointerCancel = (event) => {\n click = false;\n node.props.onPointerCancel?.(event);\n };\n props.onPointerLeave = (event) => {\n click = false;\n node.props.onPointerLeave?.(event);\n };\n props.onPointerUp = (event) => {\n if (click) {\n if (\n coordinates !== null &&\n Math.pow(event.pageX - coordinates.x, 2) + Math.pow(event.pageY - coordinates.y, 2) <=\n Math.pow(CLICK_DISTANCE_THRESHOLD_PX, 2)\n ) {\n node.props.onClick?.(event as MouseEvent<HTMLElement>);\n }\n click = false;\n coordinates = null;\n }\n node.props.onPointerUp?.(event);\n };\n }\n\n return cloneElement(node, props);\n};\n\nconst applyInterceptor = (node: ReactNode, func: (node: ReactElement) => ReactElement): ReactElement => {\n if (!isValidElement(node)) {\n return <Fragment>{node}</Fragment>;\n }\n\n let children;\n ((props) => {\n if (props.children) {\n const childrenArr = Children.toArray(props.children);\n children =\n childrenArr.length === 1\n ? applyInterceptor(childrenArr[0], func)\n : childrenArr.map((child) => applyInterceptor(child, func));\n }\n })(node.props as { children: ReactNode[] });\n\n return cloneElement(func(node), {}, children);\n};\n\nexport interface ClickInterceptorProps {\n children: ReactNode;\n}\n\nexport const ClickInterceptor: FC<ClickInterceptorProps> = memo(({ children }) => {\n return applyInterceptor(children, interceptClick);\n});\n\nClickInterceptor.displayName = 'ClickInterceptor';\n"],"names":["_jsx"],"mappings":"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"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
var styles = {"flex-container":"magritte-flex-container___muHAx_7-0-7","flexContainer":"magritte-flex-container___muHAx_7-0-7","animation-timeout":"magritte-animation-timeout___yd-SZ_7-0-7","animationTimeout":"magritte-animation-timeout___yd-SZ_7-0-7","css-variables-container":"magritte-css-variables-container___jBCr9_7-0-7","cssVariablesContainer":"magritte-css-variables-container___jBCr9_7-0-7","appear-animation":"magritte-appear-animation___P84Ln_7-0-7","appearAnimation":"magritte-appear-animation___P84Ln_7-0-7","disappear-animation":"magritte-disappear-animation___Putks_7-0-7","disappearAnimation":"magritte-disappear-animation___Putks_7-0-7","grabber-transition-animation":"magritte-grabber-transition-animation___s3Oh4_7-0-7","grabberTransitionAnimation":"magritte-grabber-transition-animation___s3Oh4_7-0-7","height-transition-animation":"magritte-height-transition-animation___xNprr_7-0-7","heightTransitionAnimation":"magritte-height-transition-animation___xNprr_7-0-7","close-by-swipe-animation":"magritte-close-by-swipe-animation___wdezY_7-0-7","closeBySwipeAnimation":"magritte-close-by-swipe-animation___wdezY_7-0-7","swipe-cancel-animation":"magritte-swipe-cancel-animation___AhYj5_7-0-7","swipeCancelAnimation":"magritte-swipe-cancel-animation___AhYj5_7-0-7","overlay":"magritte-overlay___5a2U-_7-0-7","overlay-background":"magritte-overlay-background___8Sd4V_7-0-7","overlayBackground":"magritte-overlay-background___8Sd4V_7-0-7","overlay-background_visible":"magritte-overlay-background_visible___FOJgj_7-0-7","overlayBackgroundVisible":"magritte-overlay-background_visible___FOJgj_7-0-7","swipe-container":"magritte-swipe-container___sZ2n5_7-0-7","swipeContainer":"magritte-swipe-container___sZ2n5_7-0-7","grabber":"magritte-grabber___A7SB-_7-0-7","grabber_ensure-safe":"magritte-grabber_ensure-safe___DR-dV_7-0-7","grabberEnsureSafe":"magritte-grabber_ensure-safe___DR-dV_7-0-7","visual-container":"magritte-visual-container___-VSuY_7-0-7","visualContainer":"magritte-visual-container___-VSuY_7-0-7","visual-container_full-screen":"magritte-visual-container_full-screen___jCCBb_7-0-7","visualContainerFullScreen":"magritte-visual-container_full-screen___jCCBb_7-0-7","scroll-container":"magritte-scroll-container___4ngNY_7-0-7","scrollContainer":"magritte-scroll-container___4ngNY_7-0-7","native-scroll-container":"magritte-native-scroll-container___JOlxE_7-0-7","nativeScrollContainer":"magritte-native-scroll-container___JOlxE_7-0-7","content":"magritte-content___1gAwP_7-0-7","content_full-screen":"magritte-content_full-screen___2SFaO_7-0-7","contentFullScreen":"magritte-content_full-screen___2SFaO_7-0-7","content_sized-full-screen":"magritte-content_sized-full-screen___45pa6_7-0-7","contentSizedFullScreen":"magritte-content_sized-full-screen___45pa6_7-0-7","content_with-paddings":"magritte-content_with-paddings___gIiAv_7-0-7","contentWithPaddings":"magritte-content_with-paddings___gIiAv_7-0-7","footer":"magritte-footer___RWslT_7-0-7","footer-with-padding":"magritte-footer-with-padding___KwkhC_7-0-7","footerWithPadding":"magritte-footer-with-padding___KwkhC_7-0-7","divider":"magritte-divider___0F8hh_7-0-7","divider_visible":"magritte-divider_visible___pAWZM_7-0-7","dividerVisible":"magritte-divider_visible___pAWZM_7-0-7","content-overlay":"magritte-content-overlay___HAyzL_7-0-7","contentOverlay":"magritte-content-overlay___HAyzL_7-0-7","no-caret":"magritte-no-caret___ewcMD_7-0-7","noCaret":"magritte-no-caret___ewcMD_7-0-7"};
|
|
3
|
+
|
|
4
|
+
export { styles as s };
|
|
5
|
+
//# sourceMappingURL=bottom-sheet-VUQffO9q.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-sheet-VUQffO9q.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/index.css
CHANGED
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
--magritte-color-component-bottom-sheet-grabber-content-v21-3-2:#c6c6c68f;
|
|
20
20
|
--magritte-color-component-_overlay-background-content-v21-3-2:#26262699;
|
|
21
21
|
}
|
|
22
|
-
.magritte-flex-container___muHAx_7-0-
|
|
22
|
+
.magritte-flex-container___muHAx_7-0-7{
|
|
23
23
|
display:flex;
|
|
24
24
|
flex-direction:column;
|
|
25
25
|
align-items:stretch;
|
|
26
26
|
}
|
|
27
|
-
.magritte-animation-timeout___yd-SZ_7-0-
|
|
28
|
-
.magritte-css-variables-container___jBCr9_7-0-
|
|
27
|
+
.magritte-animation-timeout___yd-SZ_7-0-7,
|
|
28
|
+
.magritte-css-variables-container___jBCr9_7-0-7{
|
|
29
29
|
--virtual-keyboard-top-offset:0px;
|
|
30
30
|
--virtual-keyboard-bottom-offset:0px;
|
|
31
31
|
--enter-animation-duration:0ms;
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
--swipe-cancel-transition-duration:0ms;
|
|
36
36
|
}
|
|
37
37
|
@media (prefers-reduced-motion: no-preference){
|
|
38
|
-
.magritte-animation-timeout___yd-SZ_7-0-
|
|
39
|
-
.magritte-css-variables-container___jBCr9_7-0-
|
|
38
|
+
.magritte-animation-timeout___yd-SZ_7-0-7,
|
|
39
|
+
.magritte-css-variables-container___jBCr9_7-0-7{
|
|
40
40
|
--enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v21-3-2);
|
|
41
41
|
--exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-3-2);
|
|
42
42
|
--grabber-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v21-3-2);
|
|
@@ -44,52 +44,52 @@
|
|
|
44
44
|
--swipe-cancel-transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-3-2);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
.magritte-appear-animation___P84Ln_7-0-
|
|
47
|
+
.magritte-appear-animation___P84Ln_7-0-7{
|
|
48
48
|
transition-property:transform opacity;
|
|
49
49
|
transition-duration:var(--enter-animation-duration);
|
|
50
50
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v21-3-2);
|
|
51
51
|
}
|
|
52
|
-
.magritte-disappear-animation___Putks_7-0-
|
|
52
|
+
.magritte-disappear-animation___Putks_7-0-7{
|
|
53
53
|
transition-property:transform opacity;
|
|
54
54
|
transition-duration:var(--exit-animation-duration);
|
|
55
55
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-3-2);
|
|
56
56
|
}
|
|
57
|
-
.magritte-grabber-transition-animation___s3Oh4_7-0-
|
|
57
|
+
.magritte-grabber-transition-animation___s3Oh4_7-0-7::after{
|
|
58
58
|
transition-property:transform;
|
|
59
59
|
transition-duration:var(--grabber-animation-duration);
|
|
60
60
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v21-3-2);
|
|
61
61
|
}
|
|
62
|
-
.magritte-height-transition-animation___xNprr_7-0-
|
|
62
|
+
.magritte-height-transition-animation___xNprr_7-0-7{
|
|
63
63
|
transition-property:height;
|
|
64
64
|
transition-duration:var(--height-transition-duration);
|
|
65
65
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-400-timing-function-v21-3-2);
|
|
66
66
|
}
|
|
67
|
-
.magritte-close-by-swipe-animation___wdezY_7-0-
|
|
67
|
+
.magritte-close-by-swipe-animation___wdezY_7-0-7{
|
|
68
68
|
transition-property:transform;
|
|
69
69
|
transition-duration:var(--exit-animation-duration);
|
|
70
70
|
transition-timing-function:linear;
|
|
71
71
|
}
|
|
72
|
-
.magritte-swipe-cancel-animation___AhYj5_7-0-
|
|
72
|
+
.magritte-swipe-cancel-animation___AhYj5_7-0-7{
|
|
73
73
|
transition-property:transform;
|
|
74
74
|
transition-duration:var(--swipe-cancel-transition-duration);
|
|
75
75
|
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-duration-v21-3-2);
|
|
76
76
|
}
|
|
77
|
-
.magritte-overlay___5a2U-_7-0-
|
|
77
|
+
.magritte-overlay___5a2U-_7-0-7{
|
|
78
78
|
pointer-events:none;
|
|
79
79
|
position:fixed;
|
|
80
80
|
inset:0;
|
|
81
81
|
}
|
|
82
|
-
.magritte-overlay-background___8Sd4V_7-0-
|
|
82
|
+
.magritte-overlay-background___8Sd4V_7-0-7{
|
|
83
83
|
position:absolute;
|
|
84
84
|
inset:0;
|
|
85
85
|
will-change:opacity;
|
|
86
86
|
transform:translate3d(0, 0, 0);
|
|
87
87
|
}
|
|
88
|
-
.magritte-overlay-background_visible___FOJgj_7-0-
|
|
88
|
+
.magritte-overlay-background_visible___FOJgj_7-0-7{
|
|
89
89
|
pointer-events:initial;
|
|
90
90
|
background-color:var(--magritte-color-component-_overlay-background-content-v21-3-2);
|
|
91
91
|
}
|
|
92
|
-
.magritte-swipe-container___sZ2n5_7-0-
|
|
92
|
+
.magritte-swipe-container___sZ2n5_7-0-7{
|
|
93
93
|
display:flex;
|
|
94
94
|
flex-direction:column;
|
|
95
95
|
align-items:stretch;
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
will-change:transform;
|
|
100
100
|
transform:translate3d(0, 0, 0);
|
|
101
101
|
}
|
|
102
|
-
.magritte-grabber___A7SB-_7-0-
|
|
102
|
+
.magritte-grabber___A7SB-_7-0-7{
|
|
103
103
|
flex:0 0 20px;
|
|
104
104
|
position:relative;
|
|
105
105
|
}
|
|
106
|
-
.magritte-grabber___A7SB-_7-0-
|
|
106
|
+
.magritte-grabber___A7SB-_7-0-7::after{
|
|
107
107
|
content:'';
|
|
108
108
|
position:absolute;
|
|
109
109
|
top:8px;
|
|
@@ -114,10 +114,10 @@
|
|
|
114
114
|
border-radius:var(--magritte-static-border-radius-50-v21-3-2);
|
|
115
115
|
z-index:3;
|
|
116
116
|
}
|
|
117
|
-
.magritte-grabber_ensure-safe___DR-dV_7-0-
|
|
117
|
+
.magritte-grabber_ensure-safe___DR-dV_7-0-7::after{
|
|
118
118
|
transform:translateY(20px);
|
|
119
119
|
}
|
|
120
|
-
.magritte-visual-container___-VSuY_7-0-
|
|
120
|
+
.magritte-visual-container___-VSuY_7-0-7{
|
|
121
121
|
display:flex;
|
|
122
122
|
flex-direction:column;
|
|
123
123
|
align-items:stretch;
|
|
@@ -130,11 +130,11 @@
|
|
|
130
130
|
overflow:clip;
|
|
131
131
|
user-select:text;
|
|
132
132
|
}
|
|
133
|
-
.magritte-visual-container_full-screen___jCCBb_7-0-
|
|
133
|
+
.magritte-visual-container_full-screen___jCCBb_7-0-7{
|
|
134
134
|
flex:1 1 auto;
|
|
135
135
|
min-height:1px;
|
|
136
136
|
}
|
|
137
|
-
.magritte-scroll-container___4ngNY_7-0-
|
|
137
|
+
.magritte-scroll-container___4ngNY_7-0-7{
|
|
138
138
|
--magritte-ui-navigation-bar-background-override:var(--magritte-color-component-bottom-sheet-background-content-v21-3-2);
|
|
139
139
|
--magritte-ui-navigation-bar-top-padding-override:16px;
|
|
140
140
|
display:flex;
|
|
@@ -144,14 +144,14 @@
|
|
|
144
144
|
min-height:1px;
|
|
145
145
|
z-index:1;
|
|
146
146
|
}
|
|
147
|
-
.magritte-native-scroll-container___JOlxE_7-0-
|
|
147
|
+
.magritte-native-scroll-container___JOlxE_7-0-7{
|
|
148
148
|
overflow:scroll;
|
|
149
149
|
scrollbar-width:none;
|
|
150
150
|
}
|
|
151
|
-
.magritte-native-scroll-container___JOlxE_7-0-
|
|
151
|
+
.magritte-native-scroll-container___JOlxE_7-0-7::-webkit-scrollbar{
|
|
152
152
|
display:none;
|
|
153
153
|
}
|
|
154
|
-
.magritte-content___1gAwP_7-0-
|
|
154
|
+
.magritte-content___1gAwP_7-0-7{
|
|
155
155
|
display:flex;
|
|
156
156
|
flex-direction:column;
|
|
157
157
|
align-items:stretch;
|
|
@@ -160,41 +160,41 @@
|
|
|
160
160
|
will-change:transform;
|
|
161
161
|
transform:translate3d(0, 0, 0);
|
|
162
162
|
}
|
|
163
|
-
.magritte-content_full-screen___2SFaO_7-0-
|
|
163
|
+
.magritte-content_full-screen___2SFaO_7-0-7{
|
|
164
164
|
flex:1 0 auto;
|
|
165
165
|
}
|
|
166
|
-
.magritte-content_sized-full-screen___45pa6_7-0-
|
|
166
|
+
.magritte-content_sized-full-screen___45pa6_7-0-7{
|
|
167
167
|
flex:1 1 auto;
|
|
168
168
|
min-height:1px;
|
|
169
169
|
}
|
|
170
|
-
.magritte-content_with-paddings___gIiAv_7-0-
|
|
170
|
+
.magritte-content_with-paddings___gIiAv_7-0-7{
|
|
171
171
|
padding:16px 16px 0;
|
|
172
172
|
}
|
|
173
|
-
.magritte-footer___RWslT_7-0-
|
|
173
|
+
.magritte-footer___RWslT_7-0-7{
|
|
174
174
|
flex:0 0 auto;
|
|
175
175
|
background-color:var(--magritte-color-component-bottom-sheet-background-content-v21-3-2);
|
|
176
176
|
z-index:2;
|
|
177
177
|
will-change:transform;
|
|
178
178
|
transform:translate3d(0, 0, 0);
|
|
179
179
|
}
|
|
180
|
-
.magritte-footer-with-padding___KwkhC_7-0-
|
|
180
|
+
.magritte-footer-with-padding___KwkhC_7-0-7{
|
|
181
181
|
display:flex;
|
|
182
182
|
flex-direction:column;
|
|
183
183
|
gap:12px;
|
|
184
184
|
padding:16px;
|
|
185
185
|
}
|
|
186
|
-
.magritte-divider___0F8hh_7-0-
|
|
186
|
+
.magritte-divider___0F8hh_7-0-7{
|
|
187
187
|
visibility:hidden;
|
|
188
188
|
}
|
|
189
|
-
.magritte-divider_visible___pAWZM_7-0-
|
|
189
|
+
.magritte-divider_visible___pAWZM_7-0-7{
|
|
190
190
|
visibility:visible;
|
|
191
191
|
}
|
|
192
|
-
.magritte-content-overlay___HAyzL_7-0-
|
|
192
|
+
.magritte-content-overlay___HAyzL_7-0-7{
|
|
193
193
|
pointer-events:none;
|
|
194
194
|
position:absolute;
|
|
195
195
|
inset:0;
|
|
196
196
|
}
|
|
197
|
-
.magritte-no-caret___ewcMD_7-0-
|
|
197
|
+
.magritte-no-caret___ewcMD_7-0-7{
|
|
198
198
|
--magritte-ui-input-caret-color-override:transparent;
|
|
199
199
|
--magritte-ui-textarea-caret-color-override:transparent;
|
|
200
200
|
}
|
package/index.js
CHANGED
|
@@ -22,5 +22,5 @@ import '@hh.ru/magritte-ui-divider';
|
|
|
22
22
|
import '@hh.ru/magritte-ui-layer';
|
|
23
23
|
import '@hh.ru/magritte-ui-navigation-bar';
|
|
24
24
|
import '@hh.ru/magritte-ui-tree-selector';
|
|
25
|
-
import './bottom-sheet-
|
|
25
|
+
import './bottom-sheet-VUQffO9q.js';
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-bottom-sheet",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.7",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "45423cebe8915eca05c73df986715979d386f7be"
|
|
51
51
|
}
|
package/bottom-sheet-DMQ_Aram.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"flex-container":"magritte-flex-container___muHAx_7-0-6","flexContainer":"magritte-flex-container___muHAx_7-0-6","animation-timeout":"magritte-animation-timeout___yd-SZ_7-0-6","animationTimeout":"magritte-animation-timeout___yd-SZ_7-0-6","css-variables-container":"magritte-css-variables-container___jBCr9_7-0-6","cssVariablesContainer":"magritte-css-variables-container___jBCr9_7-0-6","appear-animation":"magritte-appear-animation___P84Ln_7-0-6","appearAnimation":"magritte-appear-animation___P84Ln_7-0-6","disappear-animation":"magritte-disappear-animation___Putks_7-0-6","disappearAnimation":"magritte-disappear-animation___Putks_7-0-6","grabber-transition-animation":"magritte-grabber-transition-animation___s3Oh4_7-0-6","grabberTransitionAnimation":"magritte-grabber-transition-animation___s3Oh4_7-0-6","height-transition-animation":"magritte-height-transition-animation___xNprr_7-0-6","heightTransitionAnimation":"magritte-height-transition-animation___xNprr_7-0-6","close-by-swipe-animation":"magritte-close-by-swipe-animation___wdezY_7-0-6","closeBySwipeAnimation":"magritte-close-by-swipe-animation___wdezY_7-0-6","swipe-cancel-animation":"magritte-swipe-cancel-animation___AhYj5_7-0-6","swipeCancelAnimation":"magritte-swipe-cancel-animation___AhYj5_7-0-6","overlay":"magritte-overlay___5a2U-_7-0-6","overlay-background":"magritte-overlay-background___8Sd4V_7-0-6","overlayBackground":"magritte-overlay-background___8Sd4V_7-0-6","overlay-background_visible":"magritte-overlay-background_visible___FOJgj_7-0-6","overlayBackgroundVisible":"magritte-overlay-background_visible___FOJgj_7-0-6","swipe-container":"magritte-swipe-container___sZ2n5_7-0-6","swipeContainer":"magritte-swipe-container___sZ2n5_7-0-6","grabber":"magritte-grabber___A7SB-_7-0-6","grabber_ensure-safe":"magritte-grabber_ensure-safe___DR-dV_7-0-6","grabberEnsureSafe":"magritte-grabber_ensure-safe___DR-dV_7-0-6","visual-container":"magritte-visual-container___-VSuY_7-0-6","visualContainer":"magritte-visual-container___-VSuY_7-0-6","visual-container_full-screen":"magritte-visual-container_full-screen___jCCBb_7-0-6","visualContainerFullScreen":"magritte-visual-container_full-screen___jCCBb_7-0-6","scroll-container":"magritte-scroll-container___4ngNY_7-0-6","scrollContainer":"magritte-scroll-container___4ngNY_7-0-6","native-scroll-container":"magritte-native-scroll-container___JOlxE_7-0-6","nativeScrollContainer":"magritte-native-scroll-container___JOlxE_7-0-6","content":"magritte-content___1gAwP_7-0-6","content_full-screen":"magritte-content_full-screen___2SFaO_7-0-6","contentFullScreen":"magritte-content_full-screen___2SFaO_7-0-6","content_sized-full-screen":"magritte-content_sized-full-screen___45pa6_7-0-6","contentSizedFullScreen":"magritte-content_sized-full-screen___45pa6_7-0-6","content_with-paddings":"magritte-content_with-paddings___gIiAv_7-0-6","contentWithPaddings":"magritte-content_with-paddings___gIiAv_7-0-6","footer":"magritte-footer___RWslT_7-0-6","footer-with-padding":"magritte-footer-with-padding___KwkhC_7-0-6","footerWithPadding":"magritte-footer-with-padding___KwkhC_7-0-6","divider":"magritte-divider___0F8hh_7-0-6","divider_visible":"magritte-divider_visible___pAWZM_7-0-6","dividerVisible":"magritte-divider_visible___pAWZM_7-0-6","content-overlay":"magritte-content-overlay___HAyzL_7-0-6","contentOverlay":"magritte-content-overlay___HAyzL_7-0-6","no-caret":"magritte-no-caret___ewcMD_7-0-6","noCaret":"magritte-no-caret___ewcMD_7-0-6"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=bottom-sheet-DMQ_Aram.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-sheet-DMQ_Aram.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|