@hh.ru/magritte-ui-bottom-sheet 9.4.47 → 9.4.49
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.d.ts +2 -2
- package/BottomSheet.js +948 -888
- package/BottomSheet.js.map +1 -1
- package/BottomSheetContext.d.ts +1 -1
- package/BottomSheetContext.js.map +1 -1
- package/BottomSheetFooter.js +2 -2
- package/BottomSheetFooter.js.map +1 -1
- package/BottomSheetIFrameAdapter.js +18 -15
- package/BottomSheetIFrameAdapter.js.map +1 -1
- package/BottomSheetMedia.js +25 -14
- package/BottomSheetMedia.js.map +1 -1
- package/BottomSheetWithImage.d.ts +1 -1
- package/BottomSheetWithImage.js +31 -7
- package/BottomSheetWithImage.js.map +1 -1
- package/ClickInterceptor.js +43 -47
- package/ClickInterceptor.js.map +1 -1
- package/actionBarDefaults.d.ts +1 -1
- package/actionBarDefaults.js +3 -18
- package/actionBarDefaults.js.map +1 -1
- package/bottom-sheet-DRUdtPUr.js +5 -0
- package/bottom-sheet-DRUdtPUr.js.map +1 -0
- package/index.css +79 -79
- package/index.d.ts +6 -6
- package/index.js +1 -1
- package/index.mock.d.ts +2 -2
- package/index.mock.js +23 -11
- package/index.mock.js.map +1 -1
- package/package.json +10 -10
- package/withImageDefaults.d.ts +2 -2
- package/withImageDefaults.js +5 -19
- package/withImageDefaults.js.map +1 -1
- package/bottom-sheet-DZ9kXgI4.js +0 -5
- package/bottom-sheet-DZ9kXgI4.js.map +0 -1
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.magritte-media___fzaJa_9-4-
|
|
1
|
+
.magritte-media___fzaJa_9-4-49{
|
|
2
2
|
display:flex;
|
|
3
3
|
position:relative;
|
|
4
4
|
overflow:hidden;
|
|
@@ -7,51 +7,51 @@
|
|
|
7
7
|
background-repeat:no-repeat;
|
|
8
8
|
margin:-4px;
|
|
9
9
|
}
|
|
10
|
-
.magritte-media___fzaJa_9-4-
|
|
10
|
+
.magritte-media___fzaJa_9-4-49 img{
|
|
11
11
|
max-width:100%;
|
|
12
12
|
max-height:100%;
|
|
13
13
|
}
|
|
14
|
-
.magritte-contain___Hu7Gu_9-4-
|
|
14
|
+
.magritte-contain___Hu7Gu_9-4-49{
|
|
15
15
|
background-size:contain;
|
|
16
16
|
}
|
|
17
|
-
.magritte-contain___Hu7Gu_9-4-
|
|
17
|
+
.magritte-contain___Hu7Gu_9-4-49 img{
|
|
18
18
|
object-fit:contain;
|
|
19
19
|
}
|
|
20
|
-
.magritte-cover___sueew_9-4-
|
|
20
|
+
.magritte-cover___sueew_9-4-49{
|
|
21
21
|
background-size:cover;
|
|
22
22
|
}
|
|
23
|
-
.magritte-cover___sueew_9-4-
|
|
23
|
+
.magritte-cover___sueew_9-4-49 img{
|
|
24
24
|
object-fit:cover;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
:root{
|
|
28
|
-
--magritte-color-component-bottom-sheet-background-content-
|
|
29
|
-
--magritte-color-component-bottom-sheet-grabber-content-
|
|
30
|
-
--magritte-color-component-_overlay-background-content-
|
|
28
|
+
--magritte-color-component-bottom-sheet-background-content-v26-0-1:#ffffff;
|
|
29
|
+
--magritte-color-component-bottom-sheet-grabber-content-v26-0-1:#bbc8d48f;
|
|
30
|
+
--magritte-color-component-_overlay-background-content-v26-0-1:#20262bad;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
:root{
|
|
34
|
-
--magritte-semantic-animation-ease-in-out-100-duration-
|
|
35
|
-
--magritte-semantic-animation-ease-in-out-200-timing-function-
|
|
36
|
-
--magritte-semantic-animation-ease-in-out-200-duration-
|
|
37
|
-
--magritte-semantic-animation-ease-in-out-300-timing-function-
|
|
38
|
-
--magritte-semantic-animation-ease-in-out-300-duration-
|
|
39
|
-
--magritte-semantic-animation-ease-in-out-400-timing-function-
|
|
40
|
-
--magritte-semantic-animation-ease-in-out-400-duration-
|
|
34
|
+
--magritte-semantic-animation-ease-in-out-100-duration-v26-0-1:100ms;
|
|
35
|
+
--magritte-semantic-animation-ease-in-out-200-timing-function-v26-0-1:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
36
|
+
--magritte-semantic-animation-ease-in-out-200-duration-v26-0-1:200ms;
|
|
37
|
+
--magritte-semantic-animation-ease-in-out-300-timing-function-v26-0-1:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
38
|
+
--magritte-semantic-animation-ease-in-out-300-duration-v26-0-1:300ms;
|
|
39
|
+
--magritte-semantic-animation-ease-in-out-400-timing-function-v26-0-1:cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
40
|
+
--magritte-semantic-animation-ease-in-out-400-duration-v26-0-1:400ms;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.magritte-night-theme{
|
|
44
|
-
--magritte-color-component-bottom-sheet-background-content-
|
|
45
|
-
--magritte-color-component-bottom-sheet-grabber-content-
|
|
46
|
-
--magritte-color-component-_overlay-background-content-
|
|
44
|
+
--magritte-color-component-bottom-sheet-background-content-v26-0-1:#111;
|
|
45
|
+
--magritte-color-component-bottom-sheet-grabber-content-v26-0-1:#c6c6c68f;
|
|
46
|
+
--magritte-color-component-_overlay-background-content-v26-0-1:#262626ad;
|
|
47
47
|
}
|
|
48
|
-
.magritte-flex-container___muHAx_9-4-
|
|
48
|
+
.magritte-flex-container___muHAx_9-4-49{
|
|
49
49
|
display:flex;
|
|
50
50
|
flex-direction:column;
|
|
51
51
|
align-items:stretch;
|
|
52
52
|
}
|
|
53
|
-
.magritte-animation-timeout___yd-SZ_9-4-
|
|
54
|
-
.magritte-css-variables-container___jBCr9_9-4-
|
|
53
|
+
.magritte-animation-timeout___yd-SZ_9-4-49,
|
|
54
|
+
.magritte-css-variables-container___jBCr9_9-4-49{
|
|
55
55
|
--virtual-keyboard-top-offset:0px;
|
|
56
56
|
--virtual-keyboard-bottom-offset:0px;
|
|
57
57
|
--enter-animation-duration:0ms;
|
|
@@ -61,61 +61,61 @@
|
|
|
61
61
|
--swipe-cancel-transition-duration:0ms;
|
|
62
62
|
}
|
|
63
63
|
@media (prefers-reduced-motion: no-preference){
|
|
64
|
-
.magritte-animation-timeout___yd-SZ_9-4-
|
|
65
|
-
.magritte-css-variables-container___jBCr9_9-4-
|
|
66
|
-
--enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-
|
|
67
|
-
--exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-
|
|
68
|
-
--grabber-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-
|
|
69
|
-
--height-transition-duration:var(--magritte-semantic-animation-ease-in-out-400-duration-
|
|
70
|
-
--swipe-cancel-transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-
|
|
64
|
+
.magritte-animation-timeout___yd-SZ_9-4-49,
|
|
65
|
+
.magritte-css-variables-container___jBCr9_9-4-49{
|
|
66
|
+
--enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v26-0-1);
|
|
67
|
+
--exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v26-0-1);
|
|
68
|
+
--grabber-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v26-0-1);
|
|
69
|
+
--height-transition-duration:var(--magritte-semantic-animation-ease-in-out-400-duration-v26-0-1);
|
|
70
|
+
--swipe-cancel-transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v26-0-1);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
.magritte-appear-animation___P84Ln_9-4-
|
|
73
|
+
.magritte-appear-animation___P84Ln_9-4-49{
|
|
74
74
|
transition-property:transform opacity;
|
|
75
75
|
transition-duration:var(--enter-animation-duration);
|
|
76
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-
|
|
76
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v26-0-1);
|
|
77
77
|
}
|
|
78
|
-
.magritte-disappear-animation___Putks_9-4-
|
|
78
|
+
.magritte-disappear-animation___Putks_9-4-49{
|
|
79
79
|
transition-property:transform opacity;
|
|
80
80
|
transition-duration:var(--exit-animation-duration);
|
|
81
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-
|
|
81
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v26-0-1);
|
|
82
82
|
}
|
|
83
|
-
.magritte-grabber-transition-animation___s3Oh4_9-4-
|
|
83
|
+
.magritte-grabber-transition-animation___s3Oh4_9-4-49::after{
|
|
84
84
|
transition-property:transform;
|
|
85
85
|
transition-duration:var(--grabber-animation-duration);
|
|
86
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-
|
|
86
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v26-0-1);
|
|
87
87
|
}
|
|
88
|
-
.magritte-height-transition-animation___xNprr_9-4-
|
|
88
|
+
.magritte-height-transition-animation___xNprr_9-4-49{
|
|
89
89
|
transition-property:height;
|
|
90
90
|
transition-duration:var(--height-transition-duration);
|
|
91
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-400-timing-function-
|
|
91
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-400-timing-function-v26-0-1);
|
|
92
92
|
}
|
|
93
|
-
.magritte-close-by-swipe-animation___wdezY_9-4-
|
|
93
|
+
.magritte-close-by-swipe-animation___wdezY_9-4-49{
|
|
94
94
|
transition-property:transform;
|
|
95
95
|
transition-duration:var(--exit-animation-duration);
|
|
96
96
|
transition-timing-function:linear;
|
|
97
97
|
}
|
|
98
|
-
.magritte-swipe-cancel-animation___AhYj5_9-4-
|
|
98
|
+
.magritte-swipe-cancel-animation___AhYj5_9-4-49{
|
|
99
99
|
transition-property:transform;
|
|
100
100
|
transition-duration:var(--swipe-cancel-transition-duration);
|
|
101
|
-
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-duration-
|
|
101
|
+
transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-duration-v26-0-1);
|
|
102
102
|
}
|
|
103
|
-
.magritte-overlay___5a2U-_9-4-
|
|
103
|
+
.magritte-overlay___5a2U-_9-4-49{
|
|
104
104
|
pointer-events:none;
|
|
105
105
|
position:fixed;
|
|
106
106
|
inset:0;
|
|
107
107
|
}
|
|
108
|
-
.magritte-overlay-background___8Sd4V_9-4-
|
|
108
|
+
.magritte-overlay-background___8Sd4V_9-4-49{
|
|
109
109
|
position:absolute;
|
|
110
110
|
inset:0;
|
|
111
111
|
will-change:opacity;
|
|
112
112
|
transform:translate3d(0, 0, 0);
|
|
113
113
|
}
|
|
114
|
-
.magritte-overlay-background_visible___FOJgj_9-4-
|
|
114
|
+
.magritte-overlay-background_visible___FOJgj_9-4-49{
|
|
115
115
|
pointer-events:initial;
|
|
116
|
-
background-color:var(--magritte-color-component-_overlay-background-content-
|
|
116
|
+
background-color:var(--magritte-color-component-_overlay-background-content-v26-0-1);
|
|
117
117
|
}
|
|
118
|
-
.magritte-swipe-container___sZ2n5_9-4-
|
|
118
|
+
.magritte-swipe-container___sZ2n5_9-4-49{
|
|
119
119
|
display:flex;
|
|
120
120
|
flex-direction:column;
|
|
121
121
|
align-items:stretch;
|
|
@@ -125,45 +125,45 @@
|
|
|
125
125
|
will-change:transform;
|
|
126
126
|
transform:translate3d(0, 0, 0);
|
|
127
127
|
}
|
|
128
|
-
.magritte-grabber___A7SB-_9-4-
|
|
128
|
+
.magritte-grabber___A7SB-_9-4-49{
|
|
129
129
|
flex:0 0 20px;
|
|
130
130
|
position:relative;
|
|
131
131
|
}
|
|
132
|
-
.magritte-grabber___A7SB-_9-4-
|
|
132
|
+
.magritte-grabber___A7SB-_9-4-49::after{
|
|
133
133
|
content:'';
|
|
134
134
|
position:absolute;
|
|
135
135
|
top:8px;
|
|
136
136
|
left:calc(50% - (36px / 2));
|
|
137
137
|
height:4px;
|
|
138
138
|
width:36px;
|
|
139
|
-
background-color:var(--magritte-color-component-bottom-sheet-grabber-content-
|
|
139
|
+
background-color:var(--magritte-color-component-bottom-sheet-grabber-content-v26-0-1);
|
|
140
140
|
border-radius:2px;
|
|
141
141
|
z-index:3;
|
|
142
142
|
}
|
|
143
|
-
.magritte-grabber_ensure-safe___DR-dV_9-4-
|
|
143
|
+
.magritte-grabber_ensure-safe___DR-dV_9-4-49::after{
|
|
144
144
|
transform:translateY(calc(20px - 2px));
|
|
145
145
|
}
|
|
146
|
-
.magritte-visual-container___-VSuY_9-4-
|
|
146
|
+
.magritte-visual-container___-VSuY_9-4-49{
|
|
147
147
|
display:flex;
|
|
148
148
|
flex-direction:column;
|
|
149
149
|
align-items:stretch;
|
|
150
150
|
pointer-events:initial;
|
|
151
|
-
background-color:var(--magritte-color-component-bottom-sheet-background-content-
|
|
151
|
+
background-color:var(--magritte-color-component-bottom-sheet-background-content-v26-0-1);
|
|
152
152
|
border-radius:24px 24px 0 0;
|
|
153
153
|
flex:0 1 auto;
|
|
154
154
|
min-height:1px;
|
|
155
155
|
contain:paint;
|
|
156
156
|
overflow:clip;
|
|
157
157
|
user-select:text;
|
|
158
|
-
--magritte-ui-container-background-color-override:var(--magritte-color-component-bottom-sheet-background-content-
|
|
158
|
+
--magritte-ui-container-background-color-override:var(--magritte-color-component-bottom-sheet-background-content-v26-0-1);
|
|
159
159
|
}
|
|
160
|
-
.magritte-visual-container_full-screen___jCCBb_9-4-
|
|
160
|
+
.magritte-visual-container_full-screen___jCCBb_9-4-49{
|
|
161
161
|
flex:1 1 auto;
|
|
162
162
|
min-height:1px;
|
|
163
163
|
}
|
|
164
|
-
.magritte-scroll-container___4ngNY_9-4-
|
|
165
|
-
--magritte-ui-navigation-bar-background-override:var(--magritte-color-component-bottom-sheet-background-content-
|
|
166
|
-
--magritte-ui-nav-bar-background-color-override:var(--magritte-color-component-bottom-sheet-background-content-
|
|
164
|
+
.magritte-scroll-container___4ngNY_9-4-49{
|
|
165
|
+
--magritte-ui-navigation-bar-background-override:var(--magritte-color-component-bottom-sheet-background-content-v26-0-1);
|
|
166
|
+
--magritte-ui-nav-bar-background-color-override:var(--magritte-color-component-bottom-sheet-background-content-v26-0-1);
|
|
167
167
|
--magritte-ui-nav-bar-padding-top-override:8px;
|
|
168
168
|
display:flex;
|
|
169
169
|
flex-direction:column;
|
|
@@ -172,17 +172,17 @@
|
|
|
172
172
|
min-height:1px;
|
|
173
173
|
z-index:1;
|
|
174
174
|
}
|
|
175
|
-
.magritte-scroll-container_with-top-padding___o60Dl_9-4-
|
|
175
|
+
.magritte-scroll-container_with-top-padding___o60Dl_9-4-49{
|
|
176
176
|
--magritte-ui-navigation-bar-top-padding-override:16px;
|
|
177
177
|
}
|
|
178
|
-
.magritte-native-scroll-container___JOlxE_9-4-
|
|
178
|
+
.magritte-native-scroll-container___JOlxE_9-4-49{
|
|
179
179
|
overflow:scroll;
|
|
180
180
|
scrollbar-width:none;
|
|
181
181
|
}
|
|
182
|
-
.magritte-native-scroll-container___JOlxE_9-4-
|
|
182
|
+
.magritte-native-scroll-container___JOlxE_9-4-49::-webkit-scrollbar{
|
|
183
183
|
display:none;
|
|
184
184
|
}
|
|
185
|
-
.magritte-content___1gAwP_9-4-
|
|
185
|
+
.magritte-content___1gAwP_9-4-49{
|
|
186
186
|
display:flex;
|
|
187
187
|
flex-direction:column;
|
|
188
188
|
align-items:stretch;
|
|
@@ -191,76 +191,76 @@
|
|
|
191
191
|
will-change:transform;
|
|
192
192
|
transform:translate3d(0, 0, 0);
|
|
193
193
|
}
|
|
194
|
-
.magritte-content_full-screen___2SFaO_9-4-
|
|
194
|
+
.magritte-content_full-screen___2SFaO_9-4-49{
|
|
195
195
|
flex:1 0 auto;
|
|
196
196
|
}
|
|
197
|
-
.magritte-content_sized-full-screen___45pa6_9-4-
|
|
197
|
+
.magritte-content_sized-full-screen___45pa6_9-4-49{
|
|
198
198
|
flex:1 1 auto;
|
|
199
199
|
min-height:1px;
|
|
200
200
|
}
|
|
201
|
-
.magritte-content_with-paddings___gIiAv_9-4-
|
|
201
|
+
.magritte-content_with-paddings___gIiAv_9-4-49{
|
|
202
202
|
padding:16px 16px 0;
|
|
203
203
|
}
|
|
204
|
-
.magritte-content_with-top-padding___2e8N1_9-4-
|
|
204
|
+
.magritte-content_with-top-padding___2e8N1_9-4-49{
|
|
205
205
|
padding:16px 0 0;
|
|
206
206
|
}
|
|
207
|
-
.magritte-footer___RWslT_9-4-
|
|
207
|
+
.magritte-footer___RWslT_9-4-49{
|
|
208
208
|
flex:0 0 auto;
|
|
209
|
-
background-color:var(--magritte-color-component-bottom-sheet-background-content-
|
|
209
|
+
background-color:var(--magritte-color-component-bottom-sheet-background-content-v26-0-1);
|
|
210
210
|
z-index:2;
|
|
211
211
|
will-change:transform;
|
|
212
212
|
transform:translate3d(0, 0, 0);
|
|
213
|
-
--magritte-ui-container-background-color-override:var(--magritte-color-component-bottom-sheet-background-content-
|
|
213
|
+
--magritte-ui-container-background-color-override:var(--magritte-color-component-bottom-sheet-background-content-v26-0-1);
|
|
214
214
|
}
|
|
215
|
-
.magritte-footer-with-padding___KwkhC_9-4-
|
|
215
|
+
.magritte-footer-with-padding___KwkhC_9-4-49{
|
|
216
216
|
display:flex;
|
|
217
217
|
flex-direction:column;
|
|
218
218
|
gap:12px;
|
|
219
219
|
padding:16px;
|
|
220
220
|
}
|
|
221
|
-
.magritte-divider___0F8hh_9-4-
|
|
221
|
+
.magritte-divider___0F8hh_9-4-49{
|
|
222
222
|
visibility:hidden;
|
|
223
223
|
}
|
|
224
|
-
.magritte-divider_visible___pAWZM_9-4-
|
|
224
|
+
.magritte-divider_visible___pAWZM_9-4-49{
|
|
225
225
|
visibility:visible;
|
|
226
226
|
}
|
|
227
|
-
.magritte-content-overlay___HAyzL_9-4-
|
|
227
|
+
.magritte-content-overlay___HAyzL_9-4-49{
|
|
228
228
|
pointer-events:none;
|
|
229
229
|
position:absolute;
|
|
230
230
|
inset:0;
|
|
231
231
|
}
|
|
232
|
-
.magritte-no-caret___ewcMD_9-4-
|
|
232
|
+
.magritte-no-caret___ewcMD_9-4-49{
|
|
233
233
|
--magritte-ui-input-caret-color-override:transparent;
|
|
234
234
|
--magritte-ui-textarea-caret-color-override:transparent;
|
|
235
235
|
}
|
|
236
|
-
.magritte-iframe-wrapper___gBCL5_9-4-
|
|
236
|
+
.magritte-iframe-wrapper___gBCL5_9-4-49{
|
|
237
237
|
position:relative;
|
|
238
238
|
width:100%;
|
|
239
239
|
}
|
|
240
|
-
.magritte-iframe-events-interceptor___FTW-8_9-4-
|
|
240
|
+
.magritte-iframe-events-interceptor___FTW-8_9-4-49{
|
|
241
241
|
position:absolute;
|
|
242
242
|
inset:0;
|
|
243
243
|
}
|
|
244
|
-
.magritte-grow-limiter___ANaBL_9-4-
|
|
244
|
+
.magritte-grow-limiter___ANaBL_9-4-49{
|
|
245
245
|
display:flex;
|
|
246
246
|
flex-direction:column;
|
|
247
247
|
flex:1 0;
|
|
248
248
|
}
|
|
249
|
-
.magritte-header-wrapper___LdLOU_9-4-
|
|
249
|
+
.magritte-header-wrapper___LdLOU_9-4-49{
|
|
250
250
|
position:sticky;
|
|
251
251
|
z-index:1;
|
|
252
252
|
top:0;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
.magritte-top-padding___SfKyV_9-4-
|
|
255
|
+
.magritte-top-padding___SfKyV_9-4-49{
|
|
256
256
|
position:absolute;
|
|
257
257
|
height:12px;
|
|
258
258
|
inset:0 0 auto;
|
|
259
259
|
background-color:var(--magritte-ui-container-background-color-override);
|
|
260
260
|
}
|
|
261
|
-
.magritte-title-wrapper___EqVH0_9-4-
|
|
261
|
+
.magritte-title-wrapper___EqVH0_9-4-49{
|
|
262
262
|
padding-top:24px;
|
|
263
263
|
}
|
|
264
|
-
.magritte-content-wrapper___Y-au-_9-4-
|
|
264
|
+
.magritte-content-wrapper___Y-au-_9-4-49{
|
|
265
265
|
padding-top:16px;
|
|
266
266
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { BottomSheet } from '
|
|
2
|
-
export { BottomSheetContext } from '
|
|
3
|
-
export { BottomSheetFooter } from '
|
|
4
|
-
export { BottomSheetIFrameAdapter } from '
|
|
5
|
-
export { BottomSheetWithImage } from '
|
|
6
|
-
export * from '
|
|
1
|
+
export { BottomSheet } from './BottomSheet';
|
|
2
|
+
export { BottomSheetContext } from './BottomSheetContext';
|
|
3
|
+
export { BottomSheetFooter } from './BottomSheetFooter';
|
|
4
|
+
export { BottomSheetIFrameAdapter } from './BottomSheetIFrameAdapter';
|
|
5
|
+
export { BottomSheetWithImage } from './BottomSheetWithImage';
|
|
6
|
+
export * from './types';
|
package/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import '@hh.ru/magritte-ui-layer';
|
|
|
27
27
|
import '@hh.ru/magritte-ui-textarea';
|
|
28
28
|
import '@hh.ru/magritte-ui-theme-wrapper';
|
|
29
29
|
import '@hh.ru/magritte-ui-tree-selector';
|
|
30
|
-
import './bottom-sheet-
|
|
30
|
+
import './bottom-sheet-DRUdtPUr.js';
|
|
31
31
|
import './withImageDefaults.js';
|
|
32
32
|
import '@hh.ru/magritte-ui-nav-bar';
|
|
33
33
|
import '@hh.ru/magritte-ui-title';
|
package/index.mock.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent } from 'react';
|
|
2
|
-
export * from '
|
|
2
|
+
export * from './types';
|
|
3
3
|
export declare const BottomSheet: ForwardRefExoticComponent<Record<string, unknown>>;
|
|
4
|
-
export { BottomSheetContext } from '
|
|
4
|
+
export { BottomSheetContext } from './BottomSheetContext';
|
|
5
5
|
export declare const BottomSheetFooter: ForwardRefExoticComponent<Record<string, unknown>>;
|
|
6
6
|
export declare const BottomSheetIFrameAdapter: ForwardRefExoticComponent<Record<string, unknown>>;
|
|
7
7
|
export declare const BottomSheetWithImage: ForwardRefExoticComponent<Record<string, unknown>>;
|
package/index.mock.js
CHANGED
|
@@ -3,18 +3,30 @@ import { mockComponent } from '@hh.ru/magritte-ui-mock-component';
|
|
|
3
3
|
export { BottomSheetContext } from './BottomSheetContext.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
6
|
-
const BottomSheet = mockComponent(
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
const BottomSheetFooter = mockComponent('BottomSheetFooter', undefined, {
|
|
10
|
-
withChildren: true,
|
|
11
|
-
});
|
|
12
|
-
const BottomSheetIFrameAdapter = mockComponent('BottomSheetIFrameAdapter', undefined, {
|
|
13
|
-
withChildren: true,
|
|
14
|
-
});
|
|
15
|
-
const BottomSheetWithImage = mockComponent('BottomSheetWithImage', undefined, {
|
|
16
|
-
withChildren: true,
|
|
6
|
+
const BottomSheet = mockComponent("BottomSheet", void 0, {
|
|
7
|
+
withChildren: true
|
|
17
8
|
});
|
|
9
|
+
const BottomSheetFooter = mockComponent(
|
|
10
|
+
"BottomSheetFooter",
|
|
11
|
+
void 0,
|
|
12
|
+
{
|
|
13
|
+
withChildren: true
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
const BottomSheetIFrameAdapter = mockComponent(
|
|
17
|
+
"BottomSheetIFrameAdapter",
|
|
18
|
+
void 0,
|
|
19
|
+
{
|
|
20
|
+
withChildren: true
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
const BottomSheetWithImage = mockComponent(
|
|
24
|
+
"BottomSheetWithImage",
|
|
25
|
+
void 0,
|
|
26
|
+
{
|
|
27
|
+
withChildren: true
|
|
28
|
+
}
|
|
29
|
+
);
|
|
18
30
|
|
|
19
31
|
export { BottomSheet, BottomSheetFooter, BottomSheetIFrameAdapter, BottomSheetWithImage };
|
|
20
32
|
//# sourceMappingURL=index.mock.js.map
|
package/index.mock.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport * from '@hh.ru/magritte-ui-bottom-sheet/types';\n\nexport const BottomSheet: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('BottomSheet', undefined, {\n withChildren: true,\n});\n\nexport { BottomSheetContext } from '@hh.ru/magritte-ui-bottom-sheet/BottomSheetContext';\n\nexport const BottomSheetFooter: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetFooter',\n undefined,\n {\n withChildren: true,\n }\n);\n\nexport const BottomSheetIFrameAdapter: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetIFrameAdapter',\n undefined,\n {\n withChildren: true,\n }\n);\n\nexport const BottomSheetWithImage: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetWithImage',\n undefined,\n {\n withChildren: true,\n }\n);\n"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.mock.js","sources":["src/index.mock.ts"],"sourcesContent":["import { ForwardRefExoticComponent } from 'react';\n\nimport { mockComponent } from '@hh.ru/magritte-ui-mock-component';\n\nexport * from '@hh.ru/magritte-ui-bottom-sheet/types';\n\nexport const BottomSheet: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('BottomSheet', undefined, {\n withChildren: true,\n});\n\nexport { BottomSheetContext } from '@hh.ru/magritte-ui-bottom-sheet/BottomSheetContext';\n\nexport const BottomSheetFooter: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetFooter',\n undefined,\n {\n withChildren: true,\n }\n);\n\nexport const BottomSheetIFrameAdapter: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetIFrameAdapter',\n undefined,\n {\n withChildren: true,\n }\n);\n\nexport const BottomSheetWithImage: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetWithImage',\n undefined,\n {\n withChildren: true,\n }\n);\n"],"names":[],"mappings":";;;;AAMa,MAAA,WAAA,GAAkE,aAAc,CAAA,aAAA,EAAe,KAAW,CAAA,EAAA;AAAA,EACnH,YAAc,EAAA,IAAA;AAClB,CAAC,EAAA;AAIM,MAAM,iBAAwE,GAAA,aAAA;AAAA,EACjF,mBAAA;AAAA,EACA,KAAA,CAAA;AAAA,EACA;AAAA,IACI,YAAc,EAAA,IAAA;AAAA,GAClB;AACJ,EAAA;AAEO,MAAM,wBAA+E,GAAA,aAAA;AAAA,EACxF,0BAAA;AAAA,EACA,KAAA,CAAA;AAAA,EACA;AAAA,IACI,YAAc,EAAA,IAAA;AAAA,GAClB;AACJ,EAAA;AAEO,MAAM,oBAA2E,GAAA,aAAA;AAAA,EACpF,sBAAA;AAAA,EACA,KAAA,CAAA;AAAA,EACA;AAAA,IACI,YAAc,EAAA,IAAA;AAAA,GAClB;AACJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-bottom-sheet",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.49",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -29,21 +29,21 @@
|
|
|
29
29
|
"@hh.ru/magritte-common-use-multiple-refs": "1.1.12",
|
|
30
30
|
"@hh.ru/magritte-common-use-no-bubbling": "1.0.9",
|
|
31
31
|
"@hh.ru/magritte-common-use-swipe": "3.1.10",
|
|
32
|
-
"@hh.ru/magritte-design-tokens": "
|
|
32
|
+
"@hh.ru/magritte-design-tokens": "26.0.1",
|
|
33
33
|
"@hh.ru/magritte-internal-accessible-region": "1.0.4",
|
|
34
34
|
"@hh.ru/magritte-internal-custom-scroll": "2.1.2",
|
|
35
35
|
"@hh.ru/magritte-internal-layer-name": "3.4.2",
|
|
36
|
-
"@hh.ru/magritte-ui-action-bar": "5.4.
|
|
36
|
+
"@hh.ru/magritte-ui-action-bar": "5.4.25",
|
|
37
37
|
"@hh.ru/magritte-ui-breakpoint": "6.1.2",
|
|
38
38
|
"@hh.ru/magritte-ui-content-overlay": "1.2.2",
|
|
39
|
-
"@hh.ru/magritte-ui-divider": "3.2.
|
|
39
|
+
"@hh.ru/magritte-ui-divider": "3.2.12",
|
|
40
40
|
"@hh.ru/magritte-ui-layer": "3.2.8",
|
|
41
41
|
"@hh.ru/magritte-ui-mock-component": "1.1.8",
|
|
42
|
-
"@hh.ru/magritte-ui-nav-bar": "2.0.
|
|
43
|
-
"@hh.ru/magritte-ui-textarea": "3.3.
|
|
44
|
-
"@hh.ru/magritte-ui-theme-wrapper": "1.1.
|
|
45
|
-
"@hh.ru/magritte-ui-title": "8.3.
|
|
46
|
-
"@hh.ru/magritte-ui-tree-selector": "5.5.
|
|
42
|
+
"@hh.ru/magritte-ui-nav-bar": "2.0.21",
|
|
43
|
+
"@hh.ru/magritte-ui-textarea": "3.3.55",
|
|
44
|
+
"@hh.ru/magritte-ui-theme-wrapper": "1.1.29",
|
|
45
|
+
"@hh.ru/magritte-ui-title": "8.3.14",
|
|
46
|
+
"@hh.ru/magritte-ui-tree-selector": "5.5.81"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"classnames": ">=2.3.2",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "f6539d7a0e7cd42dd851458db1de04a748bbee03"
|
|
58
58
|
}
|
package/withImageDefaults.d.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
export declare const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_DEFAULTS: {
|
|
14
14
|
readonly overlay: true;
|
|
15
15
|
readonly snapScroll: false;
|
|
16
|
-
readonly transparent:
|
|
16
|
+
readonly transparent: 'start';
|
|
17
17
|
};
|
|
18
18
|
/** Applied to the icons of every NavBar action group in the subtree. */
|
|
19
19
|
export declare const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_ICON_DEFAULTS: {
|
|
@@ -21,5 +21,5 @@ export declare const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_ICON_DEFAULTS: {
|
|
|
21
21
|
};
|
|
22
22
|
/** Applied to whatever goes into the `title` prop. */
|
|
23
23
|
export declare const BOTTOM_SHEET_WITH_IMAGE_TITLE_DEFAULTS: {
|
|
24
|
-
readonly size:
|
|
24
|
+
readonly size: 'medium';
|
|
25
25
|
};
|
package/withImageDefaults.js
CHANGED
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
/**
|
|
3
|
-
* The props `BottomSheetWithImage` supplies to the two components it composes, at runtime through their
|
|
4
|
-
* `DefaultPropsContext` providers (see `BottomSheetWithImage.tsx`).
|
|
5
|
-
*
|
|
6
|
-
* They live in their own module, as plain data with no imports, because they are read from TWO sides: the
|
|
7
|
-
* component applies them, and the Code Connect template declares them as contextual defaults so a nested
|
|
8
|
-
* snippet stops repeating — or worse, overriding — what the wrapper already provides. A literal copied into
|
|
9
|
-
* the template would drift silently: change a value here and the published snippet would keep asserting the
|
|
10
|
-
* old one, with no build error and no render error. The bundler inlines this file into every template that
|
|
11
|
-
* imports it, which is the other reason it must stay free of runtime imports.
|
|
12
|
-
*/
|
|
13
|
-
/** Applied to every NavBar in the subtree — the header lies over the image, transparent until it scrolls. */
|
|
14
2
|
const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_DEFAULTS = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
overlay: true,
|
|
4
|
+
snapScroll: false,
|
|
5
|
+
transparent: "start"
|
|
18
6
|
};
|
|
19
|
-
/** Applied to the icons of every NavBar action group in the subtree. */
|
|
20
7
|
const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_ICON_DEFAULTS = {
|
|
21
|
-
|
|
8
|
+
borderRadius: 12
|
|
22
9
|
};
|
|
23
|
-
/** Applied to whatever goes into the `title` prop. */
|
|
24
10
|
const BOTTOM_SHEET_WITH_IMAGE_TITLE_DEFAULTS = {
|
|
25
|
-
|
|
11
|
+
size: "medium"
|
|
26
12
|
};
|
|
27
13
|
|
|
28
14
|
export { BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_DEFAULTS, BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_ICON_DEFAULTS, BOTTOM_SHEET_WITH_IMAGE_TITLE_DEFAULTS };
|
package/withImageDefaults.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withImageDefaults.js","sources":["src/withImageDefaults.ts"],"sourcesContent":["/**\n * The props `BottomSheetWithImage` supplies to the two components it composes, at runtime through their\n * `DefaultPropsContext` providers (see `BottomSheetWithImage.tsx`).\n *\n * They live in their own module, as plain data with no imports, because they are read from TWO sides: the\n * component applies them, and the Code Connect template declares them as contextual defaults so a nested\n * snippet stops repeating — or worse, overriding — what the wrapper already provides. A literal copied into\n * the template would drift silently: change a value here and the published snippet would keep asserting the\n * old one, with no build error and no render error. The bundler inlines this file into every template that\n * imports it, which is the other reason it must stay free of runtime imports.\n */\n\n/** Applied to every NavBar in the subtree — the header lies over the image, transparent until it scrolls. */\nexport const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_DEFAULTS = {\n overlay: true,\n snapScroll: false,\n transparent: 'start',\n} as const;\n\n/** Applied to the icons of every NavBar action group in the subtree. */\nexport const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_ICON_DEFAULTS = {\n borderRadius: 12,\n} as const;\n\n/** Applied to whatever goes into the `title` prop. */\nexport const BOTTOM_SHEET_WITH_IMAGE_TITLE_DEFAULTS = {\n size: 'medium',\n} as const;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"withImageDefaults.js","sources":["src/withImageDefaults.ts"],"sourcesContent":["/**\n * The props `BottomSheetWithImage` supplies to the two components it composes, at runtime through their\n * `DefaultPropsContext` providers (see `BottomSheetWithImage.tsx`).\n *\n * They live in their own module, as plain data with no imports, because they are read from TWO sides: the\n * component applies them, and the Code Connect template declares them as contextual defaults so a nested\n * snippet stops repeating — or worse, overriding — what the wrapper already provides. A literal copied into\n * the template would drift silently: change a value here and the published snippet would keep asserting the\n * old one, with no build error and no render error. The bundler inlines this file into every template that\n * imports it, which is the other reason it must stay free of runtime imports.\n */\n\n/** Applied to every NavBar in the subtree — the header lies over the image, transparent until it scrolls. */\nexport const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_DEFAULTS = {\n overlay: true,\n snapScroll: false,\n transparent: 'start',\n} as const;\n\n/** Applied to the icons of every NavBar action group in the subtree. */\nexport const BOTTOM_SHEET_WITH_IMAGE_NAV_BAR_ICON_DEFAULTS = {\n borderRadius: 12,\n} as const;\n\n/** Applied to whatever goes into the `title` prop. */\nexport const BOTTOM_SHEET_WITH_IMAGE_TITLE_DEFAULTS = {\n size: 'medium',\n} as const;\n"],"names":[],"mappings":"AAaO,MAAM,wCAA2C,GAAA;AAAA,EACpD,OAAS,EAAA,IAAA;AAAA,EACT,UAAY,EAAA,KAAA;AAAA,EACZ,WAAa,EAAA,OAAA;AACjB,EAAA;AAGO,MAAM,6CAAgD,GAAA;AAAA,EACzD,YAAc,EAAA,EAAA;AAClB,EAAA;AAGO,MAAM,sCAAyC,GAAA;AAAA,EAClD,IAAM,EAAA,QAAA;AACV;;;;"}
|
package/bottom-sheet-DZ9kXgI4.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import './index.css';
|
|
2
|
-
var styles = {"flex-container":"magritte-flex-container___muHAx_9-4-47","flexContainer":"magritte-flex-container___muHAx_9-4-47","animation-timeout":"magritte-animation-timeout___yd-SZ_9-4-47","animationTimeout":"magritte-animation-timeout___yd-SZ_9-4-47","css-variables-container":"magritte-css-variables-container___jBCr9_9-4-47","cssVariablesContainer":"magritte-css-variables-container___jBCr9_9-4-47","appear-animation":"magritte-appear-animation___P84Ln_9-4-47","appearAnimation":"magritte-appear-animation___P84Ln_9-4-47","disappear-animation":"magritte-disappear-animation___Putks_9-4-47","disappearAnimation":"magritte-disappear-animation___Putks_9-4-47","grabber-transition-animation":"magritte-grabber-transition-animation___s3Oh4_9-4-47","grabberTransitionAnimation":"magritte-grabber-transition-animation___s3Oh4_9-4-47","height-transition-animation":"magritte-height-transition-animation___xNprr_9-4-47","heightTransitionAnimation":"magritte-height-transition-animation___xNprr_9-4-47","close-by-swipe-animation":"magritte-close-by-swipe-animation___wdezY_9-4-47","closeBySwipeAnimation":"magritte-close-by-swipe-animation___wdezY_9-4-47","swipe-cancel-animation":"magritte-swipe-cancel-animation___AhYj5_9-4-47","swipeCancelAnimation":"magritte-swipe-cancel-animation___AhYj5_9-4-47","overlay":"magritte-overlay___5a2U-_9-4-47","overlay-background":"magritte-overlay-background___8Sd4V_9-4-47","overlayBackground":"magritte-overlay-background___8Sd4V_9-4-47","overlay-background_visible":"magritte-overlay-background_visible___FOJgj_9-4-47","overlayBackgroundVisible":"magritte-overlay-background_visible___FOJgj_9-4-47","swipe-container":"magritte-swipe-container___sZ2n5_9-4-47","swipeContainer":"magritte-swipe-container___sZ2n5_9-4-47","grabber":"magritte-grabber___A7SB-_9-4-47","grabber_ensure-safe":"magritte-grabber_ensure-safe___DR-dV_9-4-47","grabberEnsureSafe":"magritte-grabber_ensure-safe___DR-dV_9-4-47","visual-container":"magritte-visual-container___-VSuY_9-4-47","visualContainer":"magritte-visual-container___-VSuY_9-4-47","visual-container_full-screen":"magritte-visual-container_full-screen___jCCBb_9-4-47","visualContainerFullScreen":"magritte-visual-container_full-screen___jCCBb_9-4-47","scroll-container":"magritte-scroll-container___4ngNY_9-4-47","scrollContainer":"magritte-scroll-container___4ngNY_9-4-47","scroll-container_with-top-padding":"magritte-scroll-container_with-top-padding___o60Dl_9-4-47","scrollContainerWithTopPadding":"magritte-scroll-container_with-top-padding___o60Dl_9-4-47","native-scroll-container":"magritte-native-scroll-container___JOlxE_9-4-47","nativeScrollContainer":"magritte-native-scroll-container___JOlxE_9-4-47","content":"magritte-content___1gAwP_9-4-47","content_full-screen":"magritte-content_full-screen___2SFaO_9-4-47","contentFullScreen":"magritte-content_full-screen___2SFaO_9-4-47","content_sized-full-screen":"magritte-content_sized-full-screen___45pa6_9-4-47","contentSizedFullScreen":"magritte-content_sized-full-screen___45pa6_9-4-47","content_with-paddings":"magritte-content_with-paddings___gIiAv_9-4-47","contentWithPaddings":"magritte-content_with-paddings___gIiAv_9-4-47","content_with-top-padding":"magritte-content_with-top-padding___2e8N1_9-4-47","contentWithTopPadding":"magritte-content_with-top-padding___2e8N1_9-4-47","footer":"magritte-footer___RWslT_9-4-47","footer-with-padding":"magritte-footer-with-padding___KwkhC_9-4-47","footerWithPadding":"magritte-footer-with-padding___KwkhC_9-4-47","divider":"magritte-divider___0F8hh_9-4-47","divider_visible":"magritte-divider_visible___pAWZM_9-4-47","dividerVisible":"magritte-divider_visible___pAWZM_9-4-47","content-overlay":"magritte-content-overlay___HAyzL_9-4-47","contentOverlay":"magritte-content-overlay___HAyzL_9-4-47","no-caret":"magritte-no-caret___ewcMD_9-4-47","noCaret":"magritte-no-caret___ewcMD_9-4-47","iframe-wrapper":"magritte-iframe-wrapper___gBCL5_9-4-47","iframeWrapper":"magritte-iframe-wrapper___gBCL5_9-4-47","iframe-events-interceptor":"magritte-iframe-events-interceptor___FTW-8_9-4-47","iframeEventsInterceptor":"magritte-iframe-events-interceptor___FTW-8_9-4-47","grow-limiter":"magritte-grow-limiter___ANaBL_9-4-47","growLimiter":"magritte-grow-limiter___ANaBL_9-4-47","header-wrapper":"magritte-header-wrapper___LdLOU_9-4-47","headerWrapper":"magritte-header-wrapper___LdLOU_9-4-47"};
|
|
3
|
-
|
|
4
|
-
export { styles as s };
|
|
5
|
-
//# sourceMappingURL=bottom-sheet-DZ9kXgI4.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-sheet-DZ9kXgI4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|