@hh.ru/magritte-ui-bottom-sheet 4.1.39 → 5.0.0

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/index.css CHANGED
@@ -5,7 +5,6 @@
5
5
  }
6
6
  :root{
7
7
  --magritte-semantic-border-radius-modal-v18-2-1:24px;
8
- --magritte-semantic-animation-ease-in-out-100-timing-function-v18-2-1:cubic-bezier(0.25, 0.1, 0.25, 1);
9
8
  --magritte-semantic-animation-ease-in-out-100-duration-v18-2-1:100ms;
10
9
  --magritte-semantic-animation-ease-in-out-200-timing-function-v18-2-1:cubic-bezier(0.25, 0.1, 0.25, 1);
11
10
  --magritte-semantic-animation-ease-in-out-200-duration-v18-2-1:200ms;
@@ -20,220 +19,173 @@
20
19
  --magritte-color-component-bottom-sheet-grabber-content-v18-2-1:#c6c6c68f;
21
20
  --magritte-color-component-_overlay-background-content-v18-2-1:#26262699;
22
21
  }
23
- .magritte-animation-timeout___yd-SZ_4-1-39,
24
- .magritte-css-variables-container___jBCr9_4-1-39{
25
- --initial-viewport-height:100%;
26
- --overlay-opacity:1;
22
+ .magritte-flex-container___muHAx_5-0-0{
23
+ display:flex;
24
+ flex-direction:column;
25
+ align-items:stretch;
26
+ }
27
+ .magritte-animation-timeout___yd-SZ_5-0-0,
28
+ .magritte-css-variables-container___jBCr9_5-0-0{
27
29
  --virtual-keyboard-top-offset:0px;
28
30
  --virtual-keyboard-bottom-offset:0px;
29
31
  --enter-animation-duration:0ms;
30
32
  --exit-animation-duration:0ms;
31
33
  --grabber-animation-duration:0ms;
32
34
  --height-transition-duration:0ms;
33
- --virtual-keyboard-animation-duration:0ms;
35
+ --swipe-cancel-transition-duration:0ms;
34
36
  }
35
37
  @media (prefers-reduced-motion: no-preference){
36
- .magritte-animation-timeout___yd-SZ_4-1-39,
37
- .magritte-css-variables-container___jBCr9_4-1-39{
38
+ .magritte-animation-timeout___yd-SZ_5-0-0,
39
+ .magritte-css-variables-container___jBCr9_5-0-0{
38
40
  --enter-animation-duration:var(--magritte-semantic-animation-ease-in-out-300-duration-v18-2-1);
39
41
  --exit-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v18-2-1);
40
42
  --grabber-animation-duration:var(--magritte-semantic-animation-ease-in-out-200-duration-v18-2-1);
41
43
  --height-transition-duration:var(--magritte-semantic-animation-ease-in-out-400-duration-v18-2-1);
42
- --virtual-keyboard-animation-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-2-1);
44
+ --swipe-cancel-transition-duration:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-2-1);
43
45
  }
44
46
  }
45
- .magritte-appear-animation___P84Ln_4-1-39{
46
- transition-property:transform;
47
+ .magritte-appear-animation___P84Ln_5-0-0{
48
+ transition-property:transform opacity;
47
49
  transition-duration:var(--enter-animation-duration);
48
50
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-300-timing-function-v18-2-1);
49
51
  }
50
- .magritte-disappear-animation___Putks_4-1-39{
52
+ .magritte-disappear-animation___Putks_5-0-0{
53
+ transition-property:transform opacity;
51
54
  transition-duration:var(--exit-animation-duration);
52
55
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v18-2-1);
53
56
  }
54
- .magritte-content___1gAwP_4-1-39.magritte-disappear-animation___Putks_4-1-39{
55
- transition-property:transform;
56
- }
57
- .magritte-overlay-background___8Sd4V_4-1-39.magritte-appear-animation___P84Ln_4-1-39,
58
- .magritte-overlay-background___8Sd4V_4-1-39.magritte-disappear-animation___Putks_4-1-39{
59
- transition-property:opacity;
60
- }
61
- .magritte-grabber-transition-animation___s3Oh4_4-1-39{
57
+ .magritte-grabber-transition-animation___s3Oh4_5-0-0::after{
62
58
  transition-property:transform;
63
59
  transition-duration:var(--grabber-animation-duration);
64
60
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-200-timing-function-v18-2-1);
65
61
  }
66
- .magritte-content___1gAwP_4-1-39.magritte-height-transition-animation___xNprr_4-1-39,
67
- .magritte-footer___RWslT_4-1-39.magritte-height-transition-animation___xNprr_4-1-39{
68
- transition-property:transform;
69
- }
70
- .magritte-height-transition-element___tyx84_4-1-39.magritte-height-transition-animation___xNprr_4-1-39{
71
- transition-property:flex-basis;
72
- }
73
- .magritte-height-transition-animation___xNprr_4-1-39{
62
+ .magritte-height-transition-animation___xNprr_5-0-0{
63
+ transition-property:height;
74
64
  transition-duration:var(--height-transition-duration);
75
65
  transition-timing-function:var(--magritte-semantic-animation-ease-in-out-400-timing-function-v18-2-1);
76
66
  }
77
- .magritte-close-by-swipe-animation___wdezY_4-1-39{
67
+ .magritte-close-by-swipe-animation___wdezY_5-0-0{
78
68
  transition-property:transform;
79
69
  transition-duration:var(--exit-animation-duration);
80
70
  transition-timing-function:linear;
81
71
  }
82
- .magritte-virtual-keyboard-animation___vM9e-_4-1-39{
83
- transition-property:bottom;
84
- transition-duration:var(--virtual-keyboard-animation-duration);
85
- transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-timing-function-v18-2-1);
72
+ .magritte-swipe-cancel-animation___AhYj5_5-0-0{
73
+ transition-property:transform;
74
+ transition-duration:var(--swipe-cancel-transition-duration);
75
+ transition-timing-function:var(--magritte-semantic-animation-ease-in-out-100-duration-v18-2-1);
86
76
  }
87
- .magritte-overlay___5a2U-_4-1-39{
77
+ .magritte-overlay___5a2U-_5-0-0{
78
+ pointer-events:none;
88
79
  position:fixed;
89
80
  inset:0;
90
81
  }
91
- .magritte-overlay-background___8Sd4V_4-1-39{
82
+ .magritte-overlay-background___8Sd4V_5-0-0{
92
83
  position:absolute;
93
84
  inset:0;
94
- background-color:var(--magritte-color-component-_overlay-background-content-v18-2-1);
95
- opacity:var(--overlay-opacity);
96
- }
97
- .magritte-overlay_invisible___-YFlP_4-1-39{
98
- pointer-events:none;
85
+ will-change:opacity;
86
+ transform:translate3d(0, 0, 0);
99
87
  }
100
- .magritte-overlay_invisible___-YFlP_4-1-39 .magritte-overlay-background___8Sd4V_4-1-39{
101
- background-color:transparent;
88
+ .magritte-overlay-background_visible___FOJgj_5-0-0{
89
+ pointer-events:initial;
90
+ background-color:var(--magritte-color-component-_overlay-background-content-v18-2-1);
102
91
  }
103
- .magritte-scroll-container___4ngNY_4-1-39{
104
- position:absolute;
105
- inset:calc(20px + var(--virtual-keyboard-top-offset)) calc(max(50vw, 640px / 2) - 640px / 2) var(--virtual-keyboard-bottom-offset);
106
- border-radius:var(--magritte-semantic-border-radius-modal-v18-2-1) var(--magritte-semantic-border-radius-modal-v18-2-1) 0 0;
92
+ .magritte-swipe-container___sZ2n5_5-0-0{
107
93
  display:flex;
108
- align-items:stretch;
109
94
  flex-direction:column;
110
- overflow-y:scroll;
111
- overscroll-behavior:none;
112
- scrollbar-width:none;
113
- user-select:text;
114
- contain:paint;
115
- }
116
- .magritte-scroll-container___4ngNY_4-1-39::-webkit-scrollbar{
117
- display:none;
118
- }
119
- .magritte-scroll-container_no-scroll___9BJP6_4-1-39{
120
- touch-action:none;
121
- overflow-y:hidden;
95
+ align-items:stretch;
96
+ justify-content:flex-end;
97
+ position:absolute;
98
+ inset:var(--virtual-keyboard-top-offset) calc(max(50vw, 640px / 2) - 640px / 2) var(--virtual-keyboard-bottom-offset);
99
+ will-change:transform;
100
+ transform:translate3d(0, 0, 0);
122
101
  }
123
- .magritte-fill___9eVpH_4-1-39{
124
- flex:1 0 0;
102
+ .magritte-grabber___A7SB-_5-0-0{
103
+ flex:0 0 20px;
104
+ position:relative;
125
105
  }
126
- .magritte-fill_full-screen___HrIrL_4-1-39{
127
- flex:0 0 0;
106
+ .magritte-grabber___A7SB-_5-0-0::after{
107
+ content:'';
108
+ position:absolute;
109
+ top:8px;
110
+ left:calc(50% - (36px / 2));
111
+ height:4px;
112
+ width:36px;
113
+ background-color:var(--magritte-color-component-bottom-sheet-grabber-content-v18-2-1);
114
+ border-radius:var(--magritte-static-border-radius-50-v18-2-1);
115
+ z-index:3;
128
116
  }
129
- .magritte-fill_half-screen___phiVM_4-1-39{
130
- flex:1 0 calc(100% - var(--initial-viewport-height) / 2 - var(--virtual-keyboard-bottom-offset) - 20px);
117
+ .magritte-grabber_ensure-safe___DR-dV_5-0-0::after{
118
+ transform:translateY(20px);
131
119
  }
132
- .magritte-content___1gAwP_4-1-39{
120
+ .magritte-visual-container___-VSuY_5-0-0{
121
+ display:flex;
122
+ flex-direction:column;
123
+ align-items:stretch;
133
124
  pointer-events:initial;
134
- position:relative;
135
- flex:0 0 auto;
136
- will-change:transform;
137
- max-width:640px;
138
- align-self:center;
139
- width:100%;
140
- }
141
- .magritte-content_full-screen___2SFaO_4-1-39{
142
- flex:1 0 calc(var(--initial-viewport-height) - var(--virtual-keyboard-bottom-offset) - 20px + 1px);
143
- }
144
- .magritte-visual-container___-VSuY_4-1-39{
145
125
  background-color:var(--magritte-color-component-bottom-sheet-background-content-v18-2-1);
146
126
  border-radius:var(--magritte-semantic-border-radius-modal-v18-2-1) var(--magritte-semantic-border-radius-modal-v18-2-1) 0 0;
127
+ flex:0 1 auto;
128
+ min-height:1px;
147
129
  contain:paint;
148
- display:flex;
149
- flex-direction:column;
150
- height:100%;
130
+ overflow:clip;
131
+ user-select:text;
151
132
  }
152
- .magritte-header___5mMtj_4-1-39{
133
+ .magritte-visual-container_full-screen___jCCBb_5-0-0{
134
+ flex:1 1 auto;
135
+ min-height:1px;
136
+ }
137
+ .magritte-header___5mMtj_5-0-0{
153
138
  --magritte-ui-navigation-bar-background-override:var(--magritte-color-component-bottom-sheet-background-content-v18-2-1);
139
+ background-color:var(--magritte-color-component-bottom-sheet-background-content-v18-2-1);
154
140
  flex:0 0 auto;
155
- position:sticky;
156
- top:0;
157
141
  padding-top:16px;
158
- background-color:var(--magritte-color-component-bottom-sheet-background-content-v18-2-1);
159
142
  z-index:2;
160
143
  }
161
- .magritte-main___tvGXi_4-1-39{
162
- flex:1 0 auto;
144
+ .magritte-scroll-container___4ngNY_5-0-0{
145
+ display:flex;
146
+ flex-direction:column;
147
+ align-items:stretch;
148
+ flex:1 1 auto;
149
+ min-height:1px;
163
150
  z-index:1;
164
151
  }
165
- .magritte-main_with-paddings___o8gOS_4-1-39{
152
+ .magritte-content___1gAwP_5-0-0{
153
+ display:flex;
154
+ flex-direction:column;
155
+ align-items:stretch;
156
+ box-sizing:border-box;
157
+ flex:0 0 auto;
158
+ will-change:transform;
159
+ transform:translate3d(0, 0, 0);
160
+ }
161
+ .magritte-content_with-paddings___gIiAv_5-0-0{
166
162
  padding:16px 16px 0;
167
163
  }
168
- .magritte-main_with-paddings___o8gOS_4-1-39.magritte-main_without-header___ra86o_4-1-39{
164
+ .magritte-content_with-paddings___gIiAv_5-0-0.magritte-content_without-header___YZR38_5-0-0{
169
165
  padding:0 16px;
170
166
  }
171
- .magritte-height-transition-element___tyx84_4-1-39{
172
- flex:0 0 0px;
173
- background-color:var(--magritte-color-component-bottom-sheet-background-content-v18-2-1);
174
- will-change:flex-basis;
175
- }
176
- .magritte-footer___RWslT_4-1-39{
167
+ .magritte-footer___RWslT_5-0-0{
177
168
  flex:0 0 auto;
178
- position:sticky;
179
- bottom:0;
180
169
  padding-bottom:16px;
181
170
  background-color:var(--magritte-color-component-bottom-sheet-background-content-v18-2-1);
182
- will-change:transform;
183
171
  z-index:2;
172
+ will-change:transform;
173
+ transform:translate3d(0, 0, 0);
184
174
  }
185
- .magritte-footer_swipe-in-progress___h6f9r_4-1-39{
186
- position:absolute;
187
- left:0;
188
- right:0;
189
- }
190
- .magritte-footer-with-padding___KwkhC_4-1-39{
175
+ .magritte-footer-with-padding___KwkhC_5-0-0{
191
176
  display:flex;
192
177
  flex-direction:column;
193
178
  gap:12px;
194
179
  padding:16px 16px 0;
195
180
  }
196
- .magritte-grabber___A7SB-_4-1-39{
197
- height:0;
198
- width:100%;
199
- z-index:1;
200
- display:none;
201
- }
202
- .magritte-grabber_invisible___Y-Iwm_4-1-39{
181
+ .magritte-divider___0F8hh_5-0-0{
203
182
  visibility:hidden;
204
183
  }
205
- .magritte-grabber_sticky___-DE-B_4-1-39{
206
- position:sticky;
207
- top:-20px;
208
- display:block;
209
- }
210
- .magritte-grabber_fake-sticky___DKj2G_4-1-39{
211
- position:fixed;
212
- top:0;
213
- display:block;
214
- }
215
- .magritte-grabber_fixed___qv9BU_4-1-39{
216
- position:fixed;
217
- top:20px;
218
- transform:translateY(calc(20px + var(--virtual-keyboard-top-offset)));
219
- display:block;
220
- }
221
- .magritte-grabber___A7SB-_4-1-39::after{
222
- content:'';
223
- position:absolute;
224
- top:-12px;
225
- left:calc(50% - (36px / 2));
226
- height:4px;
227
- width:36px;
228
- background-color:var(--magritte-color-component-bottom-sheet-grabber-content-v18-2-1);
229
- border-radius:var(--magritte-static-border-radius-50-v18-2-1);
184
+ .magritte-divider_visible___pAWZM_5-0-0{
185
+ visibility:visible;
230
186
  }
231
- .magritte-grabber_sticky-inside___6vQtN_4-1-39::after{
232
- top:8px;
233
- }
234
- .magritte-content-overlay___HAyzL_4-1-39{
187
+ .magritte-content-overlay___HAyzL_5-0-0{
235
188
  pointer-events:none;
236
189
  position:absolute;
237
- inset:calc(20px + var(--content-overlay-top, 0px)) 0 auto 0;
238
- height:var(--content-overlay-height, 0);
190
+ inset:0;
239
191
  }
package/index.js CHANGED
@@ -12,6 +12,7 @@ import '@hh.ru/magritte-common-modal-helper';
12
12
  import '@hh.ru/magritte-common-use-multiple-refs';
13
13
  import '@hh.ru/magritte-common-use-no-bubbling';
14
14
  import '@hh.ru/magritte-common-use-swipe';
15
+ import '@hh.ru/magritte-internal-inertial-scroll';
15
16
  import '@hh.ru/magritte-internal-layer-name';
16
17
  import './BottomSheetContext.js';
17
18
  import './ClickInterceptor.js';
@@ -19,5 +20,5 @@ import '@hh.ru/magritte-ui-breakpoint';
19
20
  import '@hh.ru/magritte-ui-divider';
20
21
  import '@hh.ru/magritte-ui-layer';
21
22
  import '@hh.ru/magritte-ui-navigation-bar';
22
- import './bottom-sheet-DwNXT8Cw.js';
23
+ import './bottom-sheet-C_sZ1cCA.js';
23
24
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
package/index.mock.d.ts CHANGED
@@ -3,4 +3,5 @@ export * from '@hh.ru/magritte-ui-bottom-sheet/types';
3
3
  declare const ThemeProvider: any;
4
4
  export { ThemeProvider };
5
5
  export declare const BottomSheet: ForwardRefExoticComponent<Record<string, unknown>>;
6
+ export declare const BottomSheetContentOverlay: ForwardRefExoticComponent<Record<string, unknown>>;
6
7
  export declare const BottomSheetFooter: ForwardRefExoticComponent<Record<string, unknown>>;
package/index.mock.js CHANGED
@@ -6,9 +6,12 @@ const { ThemeProvider } = jest.requireActual('@hh.ru/magritte-ui-theme-provider/
6
6
  const BottomSheet = mockComponent('BottomSheet', undefined, {
7
7
  withChildren: true,
8
8
  });
9
+ const BottomSheetContentOverlay = mockComponent('BottomSheetFooter', undefined, {
10
+ withChildren: true,
11
+ });
9
12
  const BottomSheetFooter = mockComponent('BottomSheetFooter', undefined, {
10
13
  withChildren: true,
11
14
  });
12
15
 
13
- export { BottomSheet, BottomSheetFooter, ThemeProvider };
16
+ export { BottomSheet, BottomSheetContentOverlay, BottomSheetFooter, ThemeProvider };
14
17
  //# 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\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\nconst { ThemeProvider } = jest.requireActual('@hh.ru/magritte-ui-theme-provider/index');\n\nexport { ThemeProvider };\n\nexport const BottomSheet: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('BottomSheet', undefined, {\n withChildren: true,\n});\n\nexport const BottomSheetFooter: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetFooter',\n undefined,\n {\n withChildren: true,\n }\n);\n"],"names":[],"mappings":";;AAMA;AACM,MAAA,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,yCAAyC,EAAE;MAI3E,WAAW,GAAuD,aAAa,CAAC,aAAa,EAAE,SAAS,EAAE;AACnH,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EAAE;MAEU,iBAAiB,GAAuD,aAAa,CAC9F,mBAAmB,EACnB,SAAS,EACT;AACI,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA;;;;"}
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\n// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\nconst { ThemeProvider } = jest.requireActual('@hh.ru/magritte-ui-theme-provider/index');\n\nexport { ThemeProvider };\n\nexport const BottomSheet: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent('BottomSheet', undefined, {\n withChildren: true,\n});\n\nexport const BottomSheetContentOverlay: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetFooter',\n undefined,\n {\n withChildren: true,\n }\n);\n\nexport const BottomSheetFooter: ForwardRefExoticComponent<Record<string, unknown>> = mockComponent(\n 'BottomSheetFooter',\n undefined,\n {\n withChildren: true,\n }\n);\n"],"names":[],"mappings":";;AAMA;AACM,MAAA,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,yCAAyC,EAAE;MAI3E,WAAW,GAAuD,aAAa,CAAC,aAAa,EAAE,SAAS,EAAE;AACnH,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EAAE;MAEU,yBAAyB,GAAuD,aAAa,CACtG,mBAAmB,EACnB,SAAS,EACT;AACI,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA,EACH;MAEW,iBAAiB,GAAuD,aAAa,CAC9F,mBAAmB,EACnB,SAAS,EACT;AACI,IAAA,YAAY,EAAE,IAAI;AACrB,CAAA;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-bottom-sheet",
3
- "version": "4.1.39",
3
+ "version": "5.0.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -24,14 +24,15 @@
24
24
  "@hh.ru/magritte-common-modal-helper": "1.2.7",
25
25
  "@hh.ru/magritte-common-use-multiple-refs": "1.1.4",
26
26
  "@hh.ru/magritte-common-use-no-bubbling": "1.0.1",
27
- "@hh.ru/magritte-common-use-swipe": "3.0.2",
27
+ "@hh.ru/magritte-common-use-swipe": "3.1.0",
28
28
  "@hh.ru/magritte-design-tokens": "18.2.1",
29
+ "@hh.ru/magritte-internal-inertial-scroll": "1.1.2",
29
30
  "@hh.ru/magritte-internal-layer-name": "2.1.2",
30
31
  "@hh.ru/magritte-ui-breakpoint": "4.0.3",
31
32
  "@hh.ru/magritte-ui-divider": "1.1.29",
32
33
  "@hh.ru/magritte-ui-layer": "2.0.5",
33
34
  "@hh.ru/magritte-ui-mock-component": "1.0.11",
34
- "@hh.ru/magritte-ui-navigation-bar": "5.0.1",
35
+ "@hh.ru/magritte-ui-navigation-bar": "5.0.2",
35
36
  "@hh.ru/magritte-ui-theme-provider": "1.1.25"
36
37
  },
37
38
  "peerDependencies": {
@@ -43,5 +44,5 @@
43
44
  "publishConfig": {
44
45
  "access": "public"
45
46
  },
46
- "gitHead": "989bc72db12a873b49658bb1e909b550141522f3"
47
+ "gitHead": "820ad3b3190a990c84fd41dd99dc5251396752a4"
47
48
  }
package/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
+ import { ShowDivider } from '@hh.ru/magritte-ui-divider';
2
3
  /**
3
4
  ** 'content' - Bottom Sheet принимает высоту контента
4
5
  ** 'full-screen' - Bottom Sheet всегда занимает весь вьюпорт, контенту добавляется отступ снизу, если его высоты не хватает
@@ -7,12 +8,6 @@ import { ReactNode } from 'react';
7
8
  * а при скролле контента увеличивается, пока не займет весь вьюпорт или не закончится скролл контента.
8
9
  */
9
10
  export type BottomSheetHeight = 'content' | 'full-screen' | 'half-screen';
10
- /**
11
- ** 'always-if-has-scroll' - Показывать Divider, если футер наезжает на основной контент
12
- ** 'if-not-scrolled-to-end' - Показывать Divider, если футер наезжает на основной контент и основной контент не проскроллен до конца
13
- ** 'never' - Никогда ее показывать Divider между футером и основным контентом
14
- */
15
- export type BottomSheetShowDivider = 'always-if-has-scroll' | 'if-not-scrolled-to-end' | 'never';
16
11
  export interface BottomSheetProps {
17
12
  /** Разрешать ли скролл при открытой виртуальной клавиатуре */
18
13
  allowScrollWhileFocused?: boolean;
@@ -43,7 +38,7 @@ export interface BottomSheetProps {
43
38
  /** Колбек, который обязательно должен устанавливать visible=false */
44
39
  onClose: VoidFunction;
45
40
  /** Показывать ли Divider между футером и основным контентом */
46
- showDivider?: BottomSheetShowDivider;
41
+ showDivider?: ShowDivider;
47
42
  /** Показывать ли оверлей */
48
43
  showOverlay?: boolean;
49
44
  /** Включает паддинги у среднего контейнера */
@@ -1,5 +0,0 @@
1
- import './index.css';
2
- var styles = {"animation-timeout":"magritte-animation-timeout___yd-SZ_4-1-39","animationTimeout":"magritte-animation-timeout___yd-SZ_4-1-39","css-variables-container":"magritte-css-variables-container___jBCr9_4-1-39","cssVariablesContainer":"magritte-css-variables-container___jBCr9_4-1-39","appear-animation":"magritte-appear-animation___P84Ln_4-1-39","appearAnimation":"magritte-appear-animation___P84Ln_4-1-39","disappear-animation":"magritte-disappear-animation___Putks_4-1-39","disappearAnimation":"magritte-disappear-animation___Putks_4-1-39","content":"magritte-content___1gAwP_4-1-39","overlay-background":"magritte-overlay-background___8Sd4V_4-1-39","overlayBackground":"magritte-overlay-background___8Sd4V_4-1-39","grabber-transition-animation":"magritte-grabber-transition-animation___s3Oh4_4-1-39","grabberTransitionAnimation":"magritte-grabber-transition-animation___s3Oh4_4-1-39","height-transition-animation":"magritte-height-transition-animation___xNprr_4-1-39","heightTransitionAnimation":"magritte-height-transition-animation___xNprr_4-1-39","footer":"magritte-footer___RWslT_4-1-39","height-transition-element":"magritte-height-transition-element___tyx84_4-1-39","heightTransitionElement":"magritte-height-transition-element___tyx84_4-1-39","close-by-swipe-animation":"magritte-close-by-swipe-animation___wdezY_4-1-39","closeBySwipeAnimation":"magritte-close-by-swipe-animation___wdezY_4-1-39","virtual-keyboard-animation":"magritte-virtual-keyboard-animation___vM9e-_4-1-39","virtualKeyboardAnimation":"magritte-virtual-keyboard-animation___vM9e-_4-1-39","overlay":"magritte-overlay___5a2U-_4-1-39","overlay_invisible":"magritte-overlay_invisible___-YFlP_4-1-39","overlayInvisible":"magritte-overlay_invisible___-YFlP_4-1-39","scroll-container":"magritte-scroll-container___4ngNY_4-1-39","scrollContainer":"magritte-scroll-container___4ngNY_4-1-39","scroll-container_no-scroll":"magritte-scroll-container_no-scroll___9BJP6_4-1-39","scrollContainerNoScroll":"magritte-scroll-container_no-scroll___9BJP6_4-1-39","fill":"magritte-fill___9eVpH_4-1-39","fill_full-screen":"magritte-fill_full-screen___HrIrL_4-1-39","fillFullScreen":"magritte-fill_full-screen___HrIrL_4-1-39","fill_half-screen":"magritte-fill_half-screen___phiVM_4-1-39","fillHalfScreen":"magritte-fill_half-screen___phiVM_4-1-39","content_full-screen":"magritte-content_full-screen___2SFaO_4-1-39","contentFullScreen":"magritte-content_full-screen___2SFaO_4-1-39","visual-container":"magritte-visual-container___-VSuY_4-1-39","visualContainer":"magritte-visual-container___-VSuY_4-1-39","header":"magritte-header___5mMtj_4-1-39","main":"magritte-main___tvGXi_4-1-39","main_with-paddings":"magritte-main_with-paddings___o8gOS_4-1-39","mainWithPaddings":"magritte-main_with-paddings___o8gOS_4-1-39","main_without-header":"magritte-main_without-header___ra86o_4-1-39","mainWithoutHeader":"magritte-main_without-header___ra86o_4-1-39","footer_swipe-in-progress":"magritte-footer_swipe-in-progress___h6f9r_4-1-39","footerSwipeInProgress":"magritte-footer_swipe-in-progress___h6f9r_4-1-39","footer-with-padding":"magritte-footer-with-padding___KwkhC_4-1-39","footerWithPadding":"magritte-footer-with-padding___KwkhC_4-1-39","grabber":"magritte-grabber___A7SB-_4-1-39","grabber_invisible":"magritte-grabber_invisible___Y-Iwm_4-1-39","grabberInvisible":"magritte-grabber_invisible___Y-Iwm_4-1-39","grabber_sticky":"magritte-grabber_sticky___-DE-B_4-1-39","grabberSticky":"magritte-grabber_sticky___-DE-B_4-1-39","grabber_fake-sticky":"magritte-grabber_fake-sticky___DKj2G_4-1-39","grabberFakeSticky":"magritte-grabber_fake-sticky___DKj2G_4-1-39","grabber_fixed":"magritte-grabber_fixed___qv9BU_4-1-39","grabberFixed":"magritte-grabber_fixed___qv9BU_4-1-39","grabber_sticky-inside":"magritte-grabber_sticky-inside___6vQtN_4-1-39","grabberStickyInside":"magritte-grabber_sticky-inside___6vQtN_4-1-39","content-overlay":"magritte-content-overlay___HAyzL_4-1-39","contentOverlay":"magritte-content-overlay___HAyzL_4-1-39"};
3
-
4
- export { styles as s };
5
- //# sourceMappingURL=bottom-sheet-DwNXT8Cw.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bottom-sheet-DwNXT8Cw.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}