@alfalab/core-components-bottom-sheet 8.1.1 → 8.1.2
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/component.js.map +1 -1
- package/components/footer/Component.d.ts +1 -1
- package/components/footer/default.css +3 -3
- package/components/footer/default.module.css.js +1 -1
- package/components/footer/index.css +3 -3
- package/components/footer/index.module.css.js +1 -1
- package/components/footer/index.module.css.js.map +1 -1
- package/components/footer/inverted.css +3 -3
- package/components/footer/inverted.module.css.js +1 -1
- package/components/header/Component.d.ts +1 -1
- package/components/header/default.css +4 -4
- package/components/header/default.module.css.js +1 -1
- package/components/header/index.css +13 -13
- package/components/header/index.module.css.js +1 -1
- package/components/header/index.module.css.js.map +1 -1
- package/components/header/inverted.css +4 -4
- package/components/header/inverted.module.css.js +1 -1
- package/components/swipeable-backdrop/Component.d.ts +1 -1
- package/cssm/component.js.map +1 -1
- package/cssm/components/footer/Component.d.ts +1 -1
- package/cssm/components/header/Component.d.ts +1 -1
- package/cssm/components/swipeable-backdrop/Component.d.ts +1 -1
- package/cssm/hooks/use-visualviewport-size.d.ts +1 -1
- package/cssm/hooks/use-visualviewport-size.js.map +1 -1
- package/cssm/types/swipeTypes.d.ts +1 -1
- package/cssm/types.d.ts +3 -3
- package/cssm/utils.js.map +1 -1
- package/default.css +4 -4
- package/default.module.css.js +1 -1
- package/esm/component.js.map +1 -1
- package/esm/components/footer/Component.d.ts +1 -1
- package/esm/components/footer/default.css +3 -3
- package/esm/components/footer/default.module.css.js +1 -1
- package/esm/components/footer/index.css +3 -3
- package/esm/components/footer/index.module.css.js +1 -1
- package/esm/components/footer/index.module.css.js.map +1 -1
- package/esm/components/footer/inverted.css +3 -3
- package/esm/components/footer/inverted.module.css.js +1 -1
- package/esm/components/header/Component.d.ts +1 -1
- package/esm/components/header/default.css +4 -4
- package/esm/components/header/default.module.css.js +1 -1
- package/esm/components/header/index.css +13 -13
- package/esm/components/header/index.module.css.js +1 -1
- package/esm/components/header/index.module.css.js.map +1 -1
- package/esm/components/header/inverted.css +4 -4
- package/esm/components/header/inverted.module.css.js +1 -1
- package/esm/components/swipeable-backdrop/Component.d.ts +1 -1
- package/esm/default.css +4 -4
- package/esm/default.module.css.js +1 -1
- package/esm/hooks/use-visualviewport-size.d.ts +1 -1
- package/esm/hooks/use-visualviewport-size.js.map +1 -1
- package/esm/index.css +45 -45
- package/esm/index.module.css.js +1 -1
- package/esm/index.module.css.js.map +1 -1
- package/esm/inverted.css +4 -4
- package/esm/inverted.module.css.js +1 -1
- package/esm/types/swipeTypes.d.ts +1 -1
- package/esm/types.d.ts +3 -3
- package/esm/utils.js.map +1 -1
- package/hooks/use-visualviewport-size.d.ts +1 -1
- package/hooks/use-visualviewport-size.js.map +1 -1
- package/index.css +45 -45
- package/index.module.css.js +1 -1
- package/index.module.css.js.map +1 -1
- package/inverted.css +4 -4
- package/inverted.module.css.js +1 -1
- package/modern/component.js.map +1 -1
- package/modern/components/footer/Component.d.ts +1 -1
- package/modern/components/footer/default.css +3 -3
- package/modern/components/footer/default.module.css.js +1 -1
- package/modern/components/footer/index.css +3 -3
- package/modern/components/footer/index.module.css.js +1 -1
- package/modern/components/footer/index.module.css.js.map +1 -1
- package/modern/components/footer/inverted.css +3 -3
- package/modern/components/footer/inverted.module.css.js +1 -1
- package/modern/components/header/Component.d.ts +1 -1
- package/modern/components/header/default.css +4 -4
- package/modern/components/header/default.module.css.js +1 -1
- package/modern/components/header/index.css +13 -13
- package/modern/components/header/index.module.css.js +1 -1
- package/modern/components/header/index.module.css.js.map +1 -1
- package/modern/components/header/inverted.css +4 -4
- package/modern/components/header/inverted.module.css.js +1 -1
- package/modern/components/swipeable-backdrop/Component.d.ts +1 -1
- package/modern/default.css +4 -4
- package/modern/default.module.css.js +1 -1
- package/modern/hooks/use-visualviewport-size.d.ts +1 -1
- package/modern/hooks/use-visualviewport-size.js.map +1 -1
- package/modern/index.css +45 -45
- package/modern/index.module.css.js +1 -1
- package/modern/index.module.css.js.map +1 -1
- package/modern/inverted.css +4 -4
- package/modern/inverted.module.css.js +1 -1
- package/modern/types/swipeTypes.d.ts +1 -1
- package/modern/types.d.ts +3 -3
- package/modern/utils.js.map +1 -1
- package/moderncssm/component.js.map +1 -1
- package/moderncssm/components/footer/Component.d.ts +1 -1
- package/moderncssm/components/header/Component.d.ts +1 -1
- package/moderncssm/components/swipeable-backdrop/Component.d.ts +1 -1
- package/moderncssm/hooks/use-visualviewport-size.d.ts +1 -1
- package/moderncssm/hooks/use-visualviewport-size.js.map +1 -1
- package/moderncssm/types/swipeTypes.d.ts +1 -1
- package/moderncssm/types.d.ts +3 -3
- package/moderncssm/utils.js.map +1 -1
- package/package.json +6 -6
- package/src/components/footer/index.module.css +1 -1
- package/src/components/header/index.module.css +1 -1
- package/src/index.module.css +1 -1
- package/src/vars.css +1 -1
- package/types/swipeTypes.d.ts +1 -1
- package/types.d.ts +3 -3
- package/utils.js.map +1 -1
package/esm/index.css
CHANGED
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
--bottom-sheet-top-radius: var(--border-radius-16);
|
|
46
46
|
--bottom-sheet-shadow: none;
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__modal_1toao {
|
|
49
49
|
bottom: var(--gap-0);
|
|
50
50
|
width: 100%;
|
|
51
51
|
max-width: 600px;
|
|
52
52
|
pointer-events: none;
|
|
53
53
|
touch-action: none;
|
|
54
54
|
}
|
|
55
|
-
.bottom-
|
|
55
|
+
.bottom-sheet__modal_1toao.bottom-sheet__modal_1toao {
|
|
56
56
|
background-color: transparent;
|
|
57
57
|
position: fixed;
|
|
58
58
|
}
|
|
59
|
-
.bottom-
|
|
59
|
+
.bottom-sheet__wrapper_1toao {
|
|
60
60
|
transform: translateY(100%);
|
|
61
61
|
pointer-events: none;
|
|
62
62
|
touch-action: none;
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
border-top-left-radius: var(--bottom-sheet-top-radius);
|
|
65
65
|
transition: border-radius 0.3s ease;
|
|
66
66
|
}
|
|
67
|
-
.bottom-
|
|
67
|
+
.bottom-sheet__outerClassName_1toao {
|
|
68
68
|
pointer-events: all;
|
|
69
69
|
}
|
|
70
|
-
.bottom-
|
|
70
|
+
.bottom-sheet__fullscreen_1toao {
|
|
71
71
|
border-radius: var(--border-radius-0);
|
|
72
72
|
}
|
|
73
|
-
.bottom-
|
|
73
|
+
.bottom-sheet__component_1toao {
|
|
74
74
|
position: relative;
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: column;
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
box-shadow: var(--bottom-sheet-shadow);
|
|
80
80
|
transform: translate(0, 0);
|
|
81
81
|
}
|
|
82
|
-
.bottom-
|
|
82
|
+
.bottom-sheet__withTransition_1toao {
|
|
83
83
|
transition: var(--bottom-sheet-out-transition);
|
|
84
84
|
}
|
|
85
|
-
.bottom-
|
|
85
|
+
.bottom-sheet__scrollableContainer_1toao {
|
|
86
86
|
overflow: auto;
|
|
87
87
|
display: flex;
|
|
88
88
|
flex-direction: column;
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
border-radius: inherit;
|
|
93
93
|
overscroll-behavior: contain;
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__marker_1toao {
|
|
96
96
|
position: fixed;
|
|
97
97
|
top: var(--gap-4);
|
|
98
98
|
right: var(--gap-0);
|
|
@@ -101,11 +101,11 @@
|
|
|
101
101
|
width: 36px;
|
|
102
102
|
margin: var(--gap-0) auto;
|
|
103
103
|
}
|
|
104
|
-
.bottom-
|
|
104
|
+
.bottom-sheet__defaultMarker_1toao {
|
|
105
105
|
height: 4px;
|
|
106
106
|
border-radius: var(--border-radius-20);
|
|
107
107
|
}
|
|
108
|
-
.bottom-
|
|
108
|
+
.bottom-sheet__content_1toao {
|
|
109
109
|
position: relative;
|
|
110
110
|
z-index: 0;
|
|
111
111
|
display: flex;
|
|
@@ -115,108 +115,108 @@
|
|
|
115
115
|
background-color: inherit;
|
|
116
116
|
border-radius: inherit;
|
|
117
117
|
}
|
|
118
|
-
.bottom-
|
|
118
|
+
.bottom-sheet__noHeader_1toao {
|
|
119
119
|
padding-top: var(--gap-16);
|
|
120
120
|
}
|
|
121
|
-
.bottom-
|
|
121
|
+
.bottom-sheet__noFooter_1toao {
|
|
122
122
|
padding-bottom: var(--gap-16);
|
|
123
123
|
}
|
|
124
|
-
.bottom-
|
|
124
|
+
.bottom-sheet__scrollLocked_1toao {
|
|
125
125
|
overflow: hidden;
|
|
126
126
|
}
|
|
127
|
-
.bottom-
|
|
127
|
+
.bottom-sheet__hiddenScrollbar_1toao {
|
|
128
128
|
scrollbar-width: none;
|
|
129
129
|
}
|
|
130
|
-
.bottom-
|
|
130
|
+
.bottom-sheet__hiddenScrollbar_1toao::-webkit-scrollbar {
|
|
131
131
|
width: 0;
|
|
132
132
|
height: 0;
|
|
133
133
|
}
|
|
134
|
-
.bottom-
|
|
134
|
+
.bottom-sheet__disabledPointerEvents_1toao {
|
|
135
135
|
pointer-events: none;
|
|
136
136
|
}
|
|
137
|
-
.bottom-
|
|
137
|
+
.bottom-sheet__appear_1toao .bottom-sheet__wrapper_1toao, .bottom-sheet__enter_1toao .bottom-sheet__wrapper_1toao {
|
|
138
138
|
transition: none;
|
|
139
139
|
}
|
|
140
|
-
.bottom-
|
|
140
|
+
.bottom-sheet__appearActive_1toao .bottom-sheet__wrapper_1toao, .bottom-sheet__enterActive_1toao .bottom-sheet__wrapper_1toao {
|
|
141
141
|
transition: var(--bottom-sheet-in-transition);
|
|
142
142
|
transform: translateY(0);
|
|
143
143
|
}
|
|
144
|
-
.bottom-
|
|
144
|
+
.bottom-sheet__enterDone_1toao .bottom-sheet__wrapper_1toao, .bottom-sheet__appearDone_1toao .bottom-sheet__wrapper_1toao {
|
|
145
145
|
transform: translateY(0);
|
|
146
146
|
}
|
|
147
|
-
.bottom-
|
|
147
|
+
.bottom-sheet__exit_1toao .bottom-sheet__wrapper_1toao {
|
|
148
148
|
transform: translateY(0);
|
|
149
149
|
}
|
|
150
|
-
.bottom-
|
|
150
|
+
.bottom-sheet__exitActive_1toao .bottom-sheet__wrapper_1toao {
|
|
151
151
|
transition: var(--bottom-sheet-out-transition);
|
|
152
152
|
transform: translateY(100%);
|
|
153
153
|
}
|
|
154
|
-
.bottom-
|
|
154
|
+
.bottom-sheet__safeAreaBottom_1toao {
|
|
155
155
|
padding-bottom: var(--sab);
|
|
156
156
|
}
|
|
157
|
-
.bottom-sheet__background-
|
|
157
|
+
.bottom-sheet__background-accent_1toao {
|
|
158
158
|
background-color: var(--color-light-bg-accent);
|
|
159
159
|
}
|
|
160
|
-
.bottom-sheet__background-
|
|
160
|
+
.bottom-sheet__background-info_1toao {
|
|
161
161
|
background-color: var(--color-light-bg-info);
|
|
162
162
|
}
|
|
163
|
-
.bottom-sheet__background-attention-
|
|
163
|
+
.bottom-sheet__background-attention-muted_1toao {
|
|
164
164
|
background-color: var(--color-light-bg-attention-muted);
|
|
165
165
|
}
|
|
166
|
-
.bottom-sheet__background-positive-
|
|
166
|
+
.bottom-sheet__background-positive-muted_1toao {
|
|
167
167
|
background-color: var(--color-light-bg-positive-muted);
|
|
168
168
|
}
|
|
169
|
-
.bottom-sheet__background-negative-
|
|
169
|
+
.bottom-sheet__background-negative-muted_1toao {
|
|
170
170
|
background-color: var(--color-light-bg-negative-muted);
|
|
171
171
|
}
|
|
172
|
-
.bottom-sheet__background-
|
|
172
|
+
.bottom-sheet__background-primary_1toao {
|
|
173
173
|
background-color: var(--color-light-bg-primary);
|
|
174
174
|
}
|
|
175
|
-
.bottom-sheet__background-primary-
|
|
175
|
+
.bottom-sheet__background-primary-inverted_1toao {
|
|
176
176
|
background-color: var(--color-light-bg-primary-inverted);
|
|
177
177
|
}
|
|
178
|
-
.bottom-sheet__background-
|
|
178
|
+
.bottom-sheet__background-secondary_1toao {
|
|
179
179
|
background-color: var(--color-light-bg-secondary);
|
|
180
180
|
}
|
|
181
|
-
.bottom-sheet__background-secondary-
|
|
181
|
+
.bottom-sheet__background-secondary-inverted_1toao {
|
|
182
182
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
183
183
|
}
|
|
184
|
-
.bottom-sheet__background-
|
|
184
|
+
.bottom-sheet__background-tertiary_1toao {
|
|
185
185
|
background-color: var(--color-light-bg-tertiary);
|
|
186
186
|
}
|
|
187
|
-
.bottom-sheet__background-tertiary-
|
|
187
|
+
.bottom-sheet__background-tertiary-inverted_1toao {
|
|
188
188
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
189
189
|
}
|
|
190
|
-
.bottom-sheet__background-
|
|
190
|
+
.bottom-sheet__background-quaternary_1toao {
|
|
191
191
|
background-color: var(--color-light-bg-quaternary);
|
|
192
192
|
}
|
|
193
|
-
.bottom-sheet__background-quaternary-
|
|
193
|
+
.bottom-sheet__background-quaternary-inverted_1toao {
|
|
194
194
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
195
195
|
}
|
|
196
|
-
.bottom-sheet__background-specialbg-
|
|
196
|
+
.bottom-sheet__background-specialbg-component_1toao {
|
|
197
197
|
background-color: var(--color-light-specialbg-component);
|
|
198
198
|
}
|
|
199
|
-
.bottom-sheet__background-specialbg-component-
|
|
199
|
+
.bottom-sheet__background-specialbg-component-inverted_1toao {
|
|
200
200
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
201
201
|
}
|
|
202
|
-
.bottom-sheet__background-specialbg-primary-
|
|
202
|
+
.bottom-sheet__background-specialbg-primary-grouped_1toao {
|
|
203
203
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
204
204
|
}
|
|
205
|
-
.bottom-sheet__background-specialbg-secondary-
|
|
205
|
+
.bottom-sheet__background-specialbg-secondary-grouped_1toao {
|
|
206
206
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
207
207
|
}
|
|
208
|
-
.bottom-sheet__background-specialbg-tertiary-
|
|
208
|
+
.bottom-sheet__background-specialbg-tertiary-grouped_1toao {
|
|
209
209
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
210
210
|
}
|
|
211
|
-
.bottom-sheet__background-specialbg-secondary-
|
|
211
|
+
.bottom-sheet__background-specialbg-secondary-transparent_1toao {
|
|
212
212
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
213
213
|
}
|
|
214
|
-
.bottom-sheet__background-specialbg-secondary-transparent-
|
|
214
|
+
.bottom-sheet__background-specialbg-secondary-transparent-inverted_1toao {
|
|
215
215
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
216
216
|
}
|
|
217
|
-
.bottom-sheet__background-specialbg-tertiary-
|
|
217
|
+
.bottom-sheet__background-specialbg-tertiary-transparent_1toao {
|
|
218
218
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
219
219
|
}
|
|
220
|
-
.bottom-sheet__background-specialbg-tertiary-transparent-
|
|
220
|
+
.bottom-sheet__background-specialbg-tertiary-transparent-inverted_1toao {
|
|
221
221
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
222
222
|
}
|
package/esm/index.module.css.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"modal":"bottom-
|
|
3
|
+
var styles = {"modal":"bottom-sheet__modal_1toao","wrapper":"bottom-sheet__wrapper_1toao","outerClassName":"bottom-sheet__outerClassName_1toao","fullscreen":"bottom-sheet__fullscreen_1toao","component":"bottom-sheet__component_1toao","withTransition":"bottom-sheet__withTransition_1toao","scrollableContainer":"bottom-sheet__scrollableContainer_1toao","marker":"bottom-sheet__marker_1toao","defaultMarker":"bottom-sheet__defaultMarker_1toao","content":"bottom-sheet__content_1toao","noHeader":"bottom-sheet__noHeader_1toao","noFooter":"bottom-sheet__noFooter_1toao","scrollLocked":"bottom-sheet__scrollLocked_1toao","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1toao","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1toao","appear":"bottom-sheet__appear_1toao","enter":"bottom-sheet__enter_1toao","appearActive":"bottom-sheet__appearActive_1toao","enterActive":"bottom-sheet__enterActive_1toao","enterDone":"bottom-sheet__enterDone_1toao","appearDone":"bottom-sheet__appearDone_1toao","exit":"bottom-sheet__exit_1toao","exitActive":"bottom-sheet__exitActive_1toao","safeAreaBottom":"bottom-sheet__safeAreaBottom_1toao","background-accent":"bottom-sheet__background-accent_1toao","background-info":"bottom-sheet__background-info_1toao","background-attention-muted":"bottom-sheet__background-attention-muted_1toao","background-positive-muted":"bottom-sheet__background-positive-muted_1toao","background-negative-muted":"bottom-sheet__background-negative-muted_1toao","background-primary":"bottom-sheet__background-primary_1toao","background-primary-inverted":"bottom-sheet__background-primary-inverted_1toao","background-secondary":"bottom-sheet__background-secondary_1toao","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1toao","background-tertiary":"bottom-sheet__background-tertiary_1toao","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1toao","background-quaternary":"bottom-sheet__background-quaternary_1toao","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1toao","background-specialbg-component":"bottom-sheet__background-specialbg-component_1toao","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1toao","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1toao","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1toao","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1toao","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1toao","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1toao","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1toao","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1toao"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '@alfalab/core-components-vars/src/safe-area.css';\n@import './vars.css';\n\n.modal {\n bottom: var(--gap-0);\n width: 100%;\n max-width: 600px;\n pointer-events: none;\n touch-action: none;\n}\n\n.modal.modal {\n background-color: transparent;\n position: fixed;\n}\n\n.wrapper {\n transform: translateY(100%);\n pointer-events: none;\n touch-action: none;\n border-top-right-radius: var(--bottom-sheet-top-radius);\n border-top-left-radius: var(--bottom-sheet-top-radius);\n transition: border-radius 0.3s ease;\n}\n\n.outerClassName {\n pointer-events: all;\n}\n\n.fullscreen {\n border-radius: var(--border-radius-0);\n}\n\n.component {\n position: relative;\n display: flex;\n flex-direction: column;\n border-radius: inherit;\n pointer-events: all;\n box-shadow: var(--bottom-sheet-shadow);\n\n /* фикс: при включённом padding маркер может визуально \"улетать\" наверх */\n transform: translate(0, 0);\n}\n\n.withTransition {\n transition: var(--bottom-sheet-out-transition);\n}\n\n.scrollableContainer {\n overflow: auto;\n display: flex;\n flex-direction: column;\n position: relative;\n height: 100%;\n background-color: inherit;\n border-radius: inherit;\n overscroll-behavior: contain;\n}\n\n.marker {\n position: fixed;\n top: var(--gap-4);\n right: var(--gap-0);\n left: var(--gap-0);\n z-index: 1000;\n width: 36px;\n margin: var(--gap-0) auto;\n}\n\n.defaultMarker {\n height: 4px;\n border-radius: var(--border-radius-20);\n}\n\n.content {\n position: relative;\n z-index: 0;\n display: flex;\n flex-direction: column;\n flex: 1;\n padding: var(--gap-0) var(--gap-16);\n background-color: inherit;\n border-radius: inherit;\n}\n\n.noHeader {\n padding-top: var(--gap-16);\n}\n\n.noFooter {\n padding-bottom: var(--gap-16);\n}\n\n.scrollLocked {\n overflow: hidden;\n}\n\n.hiddenScrollbar {\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n width: 0;\n height: 0;\n }\n}\n\n.disabledPointerEvents {\n pointer-events: none;\n}\n\n.appear,\n.enter {\n & .wrapper {\n transition: none;\n }\n}\n\n.appearActive,\n.enterActive {\n & .wrapper {\n transition: var(--bottom-sheet-in-transition);\n transform: translateY(0);\n }\n}\n\n.enterDone,\n.appearDone {\n & .wrapper {\n transform: translateY(0);\n }\n}\n\n.exit {\n & .wrapper {\n transform: translateY(0);\n }\n}\n\n.exitActive {\n & .wrapper {\n transition: var(--bottom-sheet-out-transition);\n transform: translateY(100%);\n }\n}\n\n.safeAreaBottom {\n padding-bottom: var(--sab);\n}\n\n@mixin bg-class-list;\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,OAAO,CAAC,2BAA2B,CAAC,SAAS,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,YAAY,CAAC,gCAAgC,CAAC,WAAW,CAAC,+BAA+B,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,qBAAqB,CAAC,yCAAyC,CAAC,QAAQ,CAAC,4BAA4B,CAAC,eAAe,CAAC,mCAAmC,CAAC,SAAS,CAAC,6BAA6B,CAAC,UAAU,CAAC,8BAA8B,CAAC,UAAU,CAAC,8BAA8B,CAAC,cAAc,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAAuB,CAAC,2CAA2C,CAAC,QAAQ,CAAC,4BAA4B,CAAC,OAAO,CAAC,2BAA2B,CAAC,cAAc,CAAC,kCAAkC,CAAC,aAAa,CAAC,iCAAiC,CAAC,WAAW,CAAC,+BAA+B,CAAC,YAAY,CAAC,gCAAgC,CAAC,MAAM,CAAC,0BAA0B,CAAC,YAAY,CAAC,gCAAgC,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,mBAAmB,CAAC,uCAAuC,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,4BAA4B,CAAC,gDAAgD,CAAC,2BAA2B,CAAC,+CAA+C,CAAC,2BAA2B,CAAC,+CAA+C,CAAC,oBAAoB,CAAC,wCAAwC,CAAC,6BAA6B,CAAC,iDAAiD,CAAC,sBAAsB,CAAC,0CAA0C,CAAC,+BAA+B,CAAC,mDAAmD,CAAC,qBAAqB,CAAC,yCAAyC,CAAC,8BAA8B,CAAC,kDAAkD,CAAC,uBAAuB,CAAC,2CAA2C,CAAC,gCAAgC,CAAC,oDAAoD,CAAC,gCAAgC,CAAC,oDAAoD,CAAC,yCAAyC,CAAC,6DAA6D,CAAC,sCAAsC,CAAC,0DAA0D,CAAC,wCAAwC,CAAC,4DAA4D,CAAC,uCAAuC,CAAC,2DAA2D,CAAC,4CAA4C,CAAC,gEAAgE,CAAC,qDAAqD,CAAC,yEAAyE,CAAC,2CAA2C,CAAC,+DAA+D,CAAC,oDAAoD,CAAC,wEAAwE,CAAC;;;;"}
|
package/esm/inverted.css
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
--bottom-sheet-marker-color-inverted: var(--color-light-neutral-translucent-300-inverted);
|
|
9
9
|
--bottom-sheet-text-color-inverted: var(--color-light-text-primary-inverted);
|
|
10
10
|
}
|
|
11
|
-
.bottom-
|
|
11
|
+
.bottom-sheet__component_18eoj {
|
|
12
12
|
background-color: var(--bottom-sheet-background-color-inverted);
|
|
13
13
|
}
|
|
14
|
-
.bottom-
|
|
14
|
+
.bottom-sheet__content_18eoj {
|
|
15
15
|
color: var(--bottom-sheet-text-color-inverted);
|
|
16
16
|
}
|
|
17
|
-
.bottom-
|
|
17
|
+
.bottom-sheet__defaultMarker_18eoj {
|
|
18
18
|
background-color: var(--bottom-sheet-marker-color-inverted);
|
|
19
19
|
}
|
|
20
|
-
.bottom-
|
|
20
|
+
.bottom-sheet__hasContent_18eoj {
|
|
21
21
|
color: var(--bottom-sheet-text-color-inverted);
|
|
22
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './inverted.css';
|
|
2
2
|
|
|
3
|
-
var invertedColors = {"component":"bottom-
|
|
3
|
+
var invertedColors = {"component":"bottom-sheet__component_18eoj","content":"bottom-sheet__content_18eoj","defaultMarker":"bottom-sheet__defaultMarker_18eoj","hasContent":"bottom-sheet__hasContent_18eoj"};
|
|
4
4
|
|
|
5
5
|
export { invertedColors as default };
|
|
6
6
|
//# sourceMappingURL=inverted.module.css.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SwipeDirections } from 'react-swipeable';
|
|
2
2
|
import { type HandledEvents } from 'react-swipeable/es/types';
|
|
3
|
-
export
|
|
3
|
+
export type ShouldSkipSwipingParams = {
|
|
4
4
|
deltaY: number;
|
|
5
5
|
startY: number;
|
|
6
6
|
event: HandledEvents;
|
package/esm/types.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import { type TransitionProps } from 'react-transition-group/Transition';
|
|
|
5
5
|
import { type BaseModalProps } from '@alfalab/core-components-base-modal/esm';
|
|
6
6
|
import { type NavigationBarPrivateProps as NavigationBarProps } from '@alfalab/core-components-navigation-bar-private/esm';
|
|
7
7
|
import { type BackgroundColorType } from '@alfalab/core-components-types/esm';
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
8
|
+
export type ColorType = 'default' | 'inverted';
|
|
9
|
+
export type BottomSheetTitleAlign = 'center' | 'left';
|
|
10
|
+
export type BottomSheetProps = {
|
|
11
11
|
/**
|
|
12
12
|
* Метод, позволяющий донастраивать высоту контейнера для BottomSheet, например с учётом safe-area
|
|
13
13
|
*/
|
package/esm/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../src/utils.ts"],"sourcesContent":["import { getDataTestId } from '@alfalab/core-components-shared';\n\nexport const TIMEOUT = 500;\nexport const SWIPE_VELOCITY = 0.4;\nexport const MARKER_HEIGHT = 24;\nexport const CLOSE_OFFSET = 0.2;\nexport const SCROLL_OFFSET = 1;\nexport const HEADER_OFFSET = 24;\n\nexport const convertPercentToNumber = (\n value: string | number,\n fullHeight: number,\n headerOffset = HEADER_OFFSET,\n) => {\n const maxHeight = fullHeight - headerOffset;\n\n if (typeof value === 'string') {\n const percent = parseFloat(value) / 100;\n\n if (percent < 0) {\n return Math.min(maxHeight, fullHeight + fullHeight * percent);\n }\n\n return Math.min(maxHeight, fullHeight * percent);\n }\n\n if (value < 0) {\n return Math.max(0, fullHeight + value);\n }\n\n return Math.min(maxHeight, value);\n};\n\nexport function getBottomSheetTestIds(dataTestId: string) {\n return {\n bottomSheet: dataTestId,\n content: getDataTestId(dataTestId, 'content'),\n footer: getDataTestId(dataTestId, 'footer'),\n header: getDataTestId(dataTestId, 'header'),\n title: getDataTestId(dataTestId, 'header-title'),\n closer: getDataTestId(dataTestId, 'header-closer'),\n backButton: getDataTestId(dataTestId, 'header-back-button'),\n };\n}\n"],"names":[],"mappings":";;AAEO,IAAM,OAAO,GAAG;AAChB,IAAM,cAAc,GAAG;AACvB,IAAM,aAAa,GAAG;AACtB,IAAM,YAAY,GAAG;AACrB,IAAM,aAAa,GAAG;AACtB,IAAM,aAAa,GAAG;IAEhB,sBAAsB,GAAG,UAClC,KAAsB,EACtB,UAAkB,EAClB,YAA4B,EAAA;AAA5B,IAAA,IAAA,YAAA,KAAA,MAAA,EAAA,EAAA,YAA4B,GAAA,aAAA,CAAA;AAE5B,IAAA,IAAM,SAAS,GAAG,UAAU,GAAG,YAAY;AAE3C,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,IAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG;
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../src/utils.ts"],"sourcesContent":["import { getDataTestId } from '@alfalab/core-components-shared';\n\nexport const TIMEOUT = 500;\nexport const SWIPE_VELOCITY = 0.4;\nexport const MARKER_HEIGHT = 24;\nexport const CLOSE_OFFSET = 0.2;\nexport const SCROLL_OFFSET = 1;\nexport const HEADER_OFFSET = 24;\n\nexport const convertPercentToNumber = (\n value: string | number,\n fullHeight: number,\n headerOffset = HEADER_OFFSET,\n) => {\n const maxHeight = fullHeight - headerOffset;\n\n if (typeof value === 'string') {\n const percent = parseFloat(value) / 100;\n\n if (percent < 0) {\n return Math.min(maxHeight, fullHeight + fullHeight * percent);\n }\n\n return Math.min(maxHeight, fullHeight * percent);\n }\n\n if (value < 0) {\n return Math.max(0, fullHeight + value);\n }\n\n return Math.min(maxHeight, value);\n};\n\nexport function getBottomSheetTestIds(dataTestId: string) {\n return {\n bottomSheet: dataTestId,\n content: getDataTestId(dataTestId, 'content'),\n footer: getDataTestId(dataTestId, 'footer'),\n header: getDataTestId(dataTestId, 'header'),\n title: getDataTestId(dataTestId, 'header-title'),\n closer: getDataTestId(dataTestId, 'header-closer'),\n backButton: getDataTestId(dataTestId, 'header-back-button'),\n };\n}\n"],"names":[],"mappings":";;AAEO,IAAM,OAAO,GAAG;AAChB,IAAM,cAAc,GAAG;AACvB,IAAM,aAAa,GAAG;AACtB,IAAM,YAAY,GAAG;AACrB,IAAM,aAAa,GAAG;AACtB,IAAM,aAAa,GAAG;IAEhB,sBAAsB,GAAG,UAClC,KAAsB,EACtB,UAAkB,EAClB,YAA4B,EAAA;AAA5B,IAAA,IAAA,YAAA,KAAA,MAAA,EAAA,EAAA,YAA4B,GAAA,aAAA,CAAA;AAE5B,IAAA,IAAM,SAAS,GAAG,UAAU,GAAG,YAAY;AAE3C,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,IAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,GAAG;AAEvC,QAAA,IAAI,OAAO,GAAG,CAAC,EAAE;AACb,YAAA,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;;QAGjE,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC;;AAGpD,IAAA,IAAI,KAAK,GAAG,CAAC,EAAE;QACX,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;;IAG1C,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC;AACrC;AAEM,SAAU,qBAAqB,CAAC,UAAkB,EAAA;IACpD,OAAO;AACH,QAAA,WAAW,EAAE,UAAU;AACvB,QAAA,OAAO,EAAE,aAAa,CAAC,UAAU,EAAE,SAAS,CAAC;AAC7C,QAAA,MAAM,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;AAC3C,QAAA,MAAM,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC;AAC3C,QAAA,KAAK,EAAE,aAAa,CAAC,UAAU,EAAE,cAAc,CAAC;AAChD,QAAA,MAAM,EAAE,aAAa,CAAC,UAAU,EAAE,eAAe,CAAC;AAClD,QAAA,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,oBAAoB,CAAC;KAC9D;AACL;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type VisualViewportSize = Pick<VisualViewport, 'height' | 'offsetLeft' | 'offsetTop' | 'pageLeft' | 'pageTop' | 'scale' | 'width'>;
|
|
2
2
|
export declare function useVisualViewportSize(): VisualViewportSize | null;
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated use {@link useVisualViewportSize}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-visualviewport-size.js","sources":["../src/hooks/use-visualviewport-size.ts"],"sourcesContent":["import { useSyncExternalStore } from 'use-sync-external-store/shim';\n\nimport { isClient, isNullable, noop } from '@alfalab/core-components-shared';\n\ntype VisualViewportSize = Pick<\n VisualViewport,\n 'height' | 'offsetLeft' | 'offsetTop' | 'pageLeft' | 'pageTop' | 'scale' | 'width'\n>;\n\nlet visualViewportSize = isClient() ? getVisualViewportSize() : null;\n\nlet listeners: Array<() => void> = [];\n\nfunction getVisualViewportSize(): VisualViewportSize | null {\n const { visualViewport } = window;\n\n if (isNullable(visualViewport)) {\n return null;\n }\n\n const { height, offsetLeft, offsetTop, pageLeft, pageTop, scale, width } = visualViewport;\n\n return { height, offsetLeft, offsetTop, pageLeft, pageTop, scale, width };\n}\n\nfunction callback() {\n visualViewportSize = getVisualViewportSize();\n\n listeners.forEach((listener) => {\n listener();\n });\n}\n\nfunction subscribe(listener: () => void) {\n const { visualViewport } = window;\n\n if (isNullable(visualViewport)) {\n return noop;\n }\n\n if (listeners.length === 0) {\n visualViewport.addEventListener('resize', callback);\n visualViewport.addEventListener('scroll', callback);\n }\n\n listeners = [...listeners, listener];\n\n return () => {\n listeners = listeners.filter((l) => l !== listener);\n\n if (listeners.length === 0) {\n visualViewport.removeEventListener('resize', callback);\n visualViewport.removeEventListener('scroll', callback);\n }\n };\n}\n\nfunction getSnapshot() {\n return visualViewportSize;\n}\n\nfunction getServerSnapshot() {\n return null;\n}\n\nexport function useVisualViewportSize() {\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n}\n\n/**\n * @deprecated use {@link useVisualViewportSize}\n */\nexport function useVisibleViewportSize(enabled = false) {\n const size = useVisualViewportSize();\n\n return enabled ? size : null;\n}\n"],"names":["isClient","isNullable","noop","__spreadArray","useSyncExternalStore"],"mappings":";;;;;;;;AASA,IAAI,kBAAkB,GAAGA,6BAAQ,EAAE,GAAG,qBAAqB,EAAE,GAAG,IAAI;AAEpE,IAAI,SAAS,GAAsB,EAAE;AAErC,SAAS,qBAAqB,GAAA;AAClB,IAAA,IAAA,cAAc,GAAK,MAAM,CAAA,cAAX;AAEtB,IAAA,IAAIC,+BAAU,CAAC,cAAc,CAAC,EAAE;AAC5B,QAAA,OAAO,IAAI
|
|
1
|
+
{"version":3,"file":"use-visualviewport-size.js","sources":["../src/hooks/use-visualviewport-size.ts"],"sourcesContent":["import { useSyncExternalStore } from 'use-sync-external-store/shim';\n\nimport { isClient, isNullable, noop } from '@alfalab/core-components-shared';\n\ntype VisualViewportSize = Pick<\n VisualViewport,\n 'height' | 'offsetLeft' | 'offsetTop' | 'pageLeft' | 'pageTop' | 'scale' | 'width'\n>;\n\nlet visualViewportSize = isClient() ? getVisualViewportSize() : null;\n\nlet listeners: Array<() => void> = [];\n\nfunction getVisualViewportSize(): VisualViewportSize | null {\n const { visualViewport } = window;\n\n if (isNullable(visualViewport)) {\n return null;\n }\n\n const { height, offsetLeft, offsetTop, pageLeft, pageTop, scale, width } = visualViewport;\n\n return { height, offsetLeft, offsetTop, pageLeft, pageTop, scale, width };\n}\n\nfunction callback() {\n visualViewportSize = getVisualViewportSize();\n\n listeners.forEach((listener) => {\n listener();\n });\n}\n\nfunction subscribe(listener: () => void) {\n const { visualViewport } = window;\n\n if (isNullable(visualViewport)) {\n return noop;\n }\n\n if (listeners.length === 0) {\n visualViewport.addEventListener('resize', callback);\n visualViewport.addEventListener('scroll', callback);\n }\n\n listeners = [...listeners, listener];\n\n return () => {\n listeners = listeners.filter((l) => l !== listener);\n\n if (listeners.length === 0) {\n visualViewport.removeEventListener('resize', callback);\n visualViewport.removeEventListener('scroll', callback);\n }\n };\n}\n\nfunction getSnapshot() {\n return visualViewportSize;\n}\n\nfunction getServerSnapshot() {\n return null;\n}\n\nexport function useVisualViewportSize() {\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n}\n\n/**\n * @deprecated use {@link useVisualViewportSize}\n */\nexport function useVisibleViewportSize(enabled = false) {\n const size = useVisualViewportSize();\n\n return enabled ? size : null;\n}\n"],"names":["isClient","isNullable","noop","__spreadArray","useSyncExternalStore"],"mappings":";;;;;;;;AASA,IAAI,kBAAkB,GAAGA,6BAAQ,EAAE,GAAG,qBAAqB,EAAE,GAAG,IAAI;AAEpE,IAAI,SAAS,GAAsB,EAAE;AAErC,SAAS,qBAAqB,GAAA;AAClB,IAAA,IAAA,cAAc,GAAK,MAAM,CAAA,cAAX;AAEtB,IAAA,IAAIC,+BAAU,CAAC,cAAc,CAAC,EAAE;AAC5B,QAAA,OAAO,IAAI;;AAGP,IAAA,IAAA,MAAM,GAA6D,cAAc,CAAA,MAA3E,EAAE,UAAU,GAAiD,cAAc,CAAA,UAA/D,EAAE,SAAS,GAAsC,cAAc,CAAA,SAApD,EAAE,QAAQ,GAA4B,cAAc,CAAA,QAA1C,EAAE,OAAO,GAAmB,cAAc,QAAjC,EAAE,KAAK,GAAY,cAAc,MAA1B,EAAE,KAAK,GAAK,cAAc,MAAnB;IAEtE,OAAO,EAAE,MAAM,EAAA,MAAA,EAAE,UAAU,EAAA,UAAA,EAAE,SAAS,EAAA,SAAA,EAAE,QAAQ,UAAA,EAAE,OAAO,SAAA,EAAE,KAAK,OAAA,EAAE,KAAK,EAAA,KAAA,EAAE;AAC7E;AAEA,SAAS,QAAQ,GAAA;IACb,kBAAkB,GAAG,qBAAqB,EAAE;AAE5C,IAAA,SAAS,CAAC,OAAO,CAAC,UAAC,QAAQ,EAAA;AACvB,QAAA,QAAQ,EAAE;AACd,KAAC,CAAC;AACN;AAEA,SAAS,SAAS,CAAC,QAAoB,EAAA;AAC3B,IAAA,IAAA,cAAc,GAAK,MAAM,CAAA,cAAX;AAEtB,IAAA,IAAIA,+BAAU,CAAC,cAAc,CAAC,EAAE;AAC5B,QAAA,OAAOC,yBAAI;;AAGf,IAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;AACxB,QAAA,cAAc,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC;AACnD,QAAA,cAAc,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC;;AAGvD,IAAA,SAAS,GAAOC,mBAAA,CAAAA,mBAAA,CAAA,EAAA,EAAA,SAAS,EAAE,IAAA,CAAA,EAAA,CAAA,QAAQ,SAAC;IAEpC,OAAO,YAAA;AACH,QAAA,SAAS,GAAG,SAAS,CAAC,MAAM,CAAC,UAAC,CAAC,EAAK,EAAA,OAAA,CAAC,KAAK,QAAQ,CAAd,EAAc,CAAC;AAEnD,QAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;AACxB,YAAA,cAAc,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC;AACtD,YAAA,cAAc,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC;;AAE9D,KAAC;AACL;AAEA,SAAS,WAAW,GAAA;AAChB,IAAA,OAAO,kBAAkB;AAC7B;AAEA,SAAS,iBAAiB,GAAA;AACtB,IAAA,OAAO,IAAI;AACf;SAEgB,qBAAqB,GAAA;IACjC,OAAOC,yBAAoB,CAAC,SAAS,EAAE,WAAW,EAAE,iBAAiB,CAAC;AAC1E;AAEA;;AAEG;AACG,SAAU,sBAAsB,CAAC,OAAe,EAAA;AAAf,IAAA,IAAA,OAAA,KAAA,MAAA,EAAA,EAAA,OAAe,GAAA,KAAA,CAAA;AAClD,IAAA,IAAM,IAAI,GAAG,qBAAqB,EAAE;IAEpC,OAAO,OAAO,GAAG,IAAI,GAAG,IAAI;AAChC;;;;;"}
|
package/index.css
CHANGED
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
--bottom-sheet-top-radius: var(--border-radius-16);
|
|
46
46
|
--bottom-sheet-shadow: none;
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__modal_1toao {
|
|
49
49
|
bottom: var(--gap-0);
|
|
50
50
|
width: 100%;
|
|
51
51
|
max-width: 600px;
|
|
52
52
|
pointer-events: none;
|
|
53
53
|
touch-action: none;
|
|
54
54
|
}
|
|
55
|
-
.bottom-
|
|
55
|
+
.bottom-sheet__modal_1toao.bottom-sheet__modal_1toao {
|
|
56
56
|
background-color: transparent;
|
|
57
57
|
position: fixed;
|
|
58
58
|
}
|
|
59
|
-
.bottom-
|
|
59
|
+
.bottom-sheet__wrapper_1toao {
|
|
60
60
|
transform: translateY(100%);
|
|
61
61
|
pointer-events: none;
|
|
62
62
|
touch-action: none;
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
border-top-left-radius: var(--bottom-sheet-top-radius);
|
|
65
65
|
transition: border-radius 0.3s ease;
|
|
66
66
|
}
|
|
67
|
-
.bottom-
|
|
67
|
+
.bottom-sheet__outerClassName_1toao {
|
|
68
68
|
pointer-events: all;
|
|
69
69
|
}
|
|
70
|
-
.bottom-
|
|
70
|
+
.bottom-sheet__fullscreen_1toao {
|
|
71
71
|
border-radius: var(--border-radius-0);
|
|
72
72
|
}
|
|
73
|
-
.bottom-
|
|
73
|
+
.bottom-sheet__component_1toao {
|
|
74
74
|
position: relative;
|
|
75
75
|
display: flex;
|
|
76
76
|
flex-direction: column;
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
box-shadow: var(--bottom-sheet-shadow);
|
|
80
80
|
transform: translate(0, 0);
|
|
81
81
|
}
|
|
82
|
-
.bottom-
|
|
82
|
+
.bottom-sheet__withTransition_1toao {
|
|
83
83
|
transition: var(--bottom-sheet-out-transition);
|
|
84
84
|
}
|
|
85
|
-
.bottom-
|
|
85
|
+
.bottom-sheet__scrollableContainer_1toao {
|
|
86
86
|
overflow: auto;
|
|
87
87
|
display: flex;
|
|
88
88
|
flex-direction: column;
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
border-radius: inherit;
|
|
93
93
|
overscroll-behavior: contain;
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__marker_1toao {
|
|
96
96
|
position: fixed;
|
|
97
97
|
top: var(--gap-4);
|
|
98
98
|
right: var(--gap-0);
|
|
@@ -101,11 +101,11 @@
|
|
|
101
101
|
width: 36px;
|
|
102
102
|
margin: var(--gap-0) auto;
|
|
103
103
|
}
|
|
104
|
-
.bottom-
|
|
104
|
+
.bottom-sheet__defaultMarker_1toao {
|
|
105
105
|
height: 4px;
|
|
106
106
|
border-radius: var(--border-radius-20);
|
|
107
107
|
}
|
|
108
|
-
.bottom-
|
|
108
|
+
.bottom-sheet__content_1toao {
|
|
109
109
|
position: relative;
|
|
110
110
|
z-index: 0;
|
|
111
111
|
display: flex;
|
|
@@ -115,108 +115,108 @@
|
|
|
115
115
|
background-color: inherit;
|
|
116
116
|
border-radius: inherit;
|
|
117
117
|
}
|
|
118
|
-
.bottom-
|
|
118
|
+
.bottom-sheet__noHeader_1toao {
|
|
119
119
|
padding-top: var(--gap-16);
|
|
120
120
|
}
|
|
121
|
-
.bottom-
|
|
121
|
+
.bottom-sheet__noFooter_1toao {
|
|
122
122
|
padding-bottom: var(--gap-16);
|
|
123
123
|
}
|
|
124
|
-
.bottom-
|
|
124
|
+
.bottom-sheet__scrollLocked_1toao {
|
|
125
125
|
overflow: hidden;
|
|
126
126
|
}
|
|
127
|
-
.bottom-
|
|
127
|
+
.bottom-sheet__hiddenScrollbar_1toao {
|
|
128
128
|
scrollbar-width: none;
|
|
129
129
|
}
|
|
130
|
-
.bottom-
|
|
130
|
+
.bottom-sheet__hiddenScrollbar_1toao::-webkit-scrollbar {
|
|
131
131
|
width: 0;
|
|
132
132
|
height: 0;
|
|
133
133
|
}
|
|
134
|
-
.bottom-
|
|
134
|
+
.bottom-sheet__disabledPointerEvents_1toao {
|
|
135
135
|
pointer-events: none;
|
|
136
136
|
}
|
|
137
|
-
.bottom-
|
|
137
|
+
.bottom-sheet__appear_1toao .bottom-sheet__wrapper_1toao, .bottom-sheet__enter_1toao .bottom-sheet__wrapper_1toao {
|
|
138
138
|
transition: none;
|
|
139
139
|
}
|
|
140
|
-
.bottom-
|
|
140
|
+
.bottom-sheet__appearActive_1toao .bottom-sheet__wrapper_1toao, .bottom-sheet__enterActive_1toao .bottom-sheet__wrapper_1toao {
|
|
141
141
|
transition: var(--bottom-sheet-in-transition);
|
|
142
142
|
transform: translateY(0);
|
|
143
143
|
}
|
|
144
|
-
.bottom-
|
|
144
|
+
.bottom-sheet__enterDone_1toao .bottom-sheet__wrapper_1toao, .bottom-sheet__appearDone_1toao .bottom-sheet__wrapper_1toao {
|
|
145
145
|
transform: translateY(0);
|
|
146
146
|
}
|
|
147
|
-
.bottom-
|
|
147
|
+
.bottom-sheet__exit_1toao .bottom-sheet__wrapper_1toao {
|
|
148
148
|
transform: translateY(0);
|
|
149
149
|
}
|
|
150
|
-
.bottom-
|
|
150
|
+
.bottom-sheet__exitActive_1toao .bottom-sheet__wrapper_1toao {
|
|
151
151
|
transition: var(--bottom-sheet-out-transition);
|
|
152
152
|
transform: translateY(100%);
|
|
153
153
|
}
|
|
154
|
-
.bottom-
|
|
154
|
+
.bottom-sheet__safeAreaBottom_1toao {
|
|
155
155
|
padding-bottom: var(--sab);
|
|
156
156
|
}
|
|
157
|
-
.bottom-sheet__background-
|
|
157
|
+
.bottom-sheet__background-accent_1toao {
|
|
158
158
|
background-color: var(--color-light-bg-accent);
|
|
159
159
|
}
|
|
160
|
-
.bottom-sheet__background-
|
|
160
|
+
.bottom-sheet__background-info_1toao {
|
|
161
161
|
background-color: var(--color-light-bg-info);
|
|
162
162
|
}
|
|
163
|
-
.bottom-sheet__background-attention-
|
|
163
|
+
.bottom-sheet__background-attention-muted_1toao {
|
|
164
164
|
background-color: var(--color-light-bg-attention-muted);
|
|
165
165
|
}
|
|
166
|
-
.bottom-sheet__background-positive-
|
|
166
|
+
.bottom-sheet__background-positive-muted_1toao {
|
|
167
167
|
background-color: var(--color-light-bg-positive-muted);
|
|
168
168
|
}
|
|
169
|
-
.bottom-sheet__background-negative-
|
|
169
|
+
.bottom-sheet__background-negative-muted_1toao {
|
|
170
170
|
background-color: var(--color-light-bg-negative-muted);
|
|
171
171
|
}
|
|
172
|
-
.bottom-sheet__background-
|
|
172
|
+
.bottom-sheet__background-primary_1toao {
|
|
173
173
|
background-color: var(--color-light-bg-primary);
|
|
174
174
|
}
|
|
175
|
-
.bottom-sheet__background-primary-
|
|
175
|
+
.bottom-sheet__background-primary-inverted_1toao {
|
|
176
176
|
background-color: var(--color-light-bg-primary-inverted);
|
|
177
177
|
}
|
|
178
|
-
.bottom-sheet__background-
|
|
178
|
+
.bottom-sheet__background-secondary_1toao {
|
|
179
179
|
background-color: var(--color-light-bg-secondary);
|
|
180
180
|
}
|
|
181
|
-
.bottom-sheet__background-secondary-
|
|
181
|
+
.bottom-sheet__background-secondary-inverted_1toao {
|
|
182
182
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
183
183
|
}
|
|
184
|
-
.bottom-sheet__background-
|
|
184
|
+
.bottom-sheet__background-tertiary_1toao {
|
|
185
185
|
background-color: var(--color-light-bg-tertiary);
|
|
186
186
|
}
|
|
187
|
-
.bottom-sheet__background-tertiary-
|
|
187
|
+
.bottom-sheet__background-tertiary-inverted_1toao {
|
|
188
188
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
189
189
|
}
|
|
190
|
-
.bottom-sheet__background-
|
|
190
|
+
.bottom-sheet__background-quaternary_1toao {
|
|
191
191
|
background-color: var(--color-light-bg-quaternary);
|
|
192
192
|
}
|
|
193
|
-
.bottom-sheet__background-quaternary-
|
|
193
|
+
.bottom-sheet__background-quaternary-inverted_1toao {
|
|
194
194
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
195
195
|
}
|
|
196
|
-
.bottom-sheet__background-specialbg-
|
|
196
|
+
.bottom-sheet__background-specialbg-component_1toao {
|
|
197
197
|
background-color: var(--color-light-specialbg-component);
|
|
198
198
|
}
|
|
199
|
-
.bottom-sheet__background-specialbg-component-
|
|
199
|
+
.bottom-sheet__background-specialbg-component-inverted_1toao {
|
|
200
200
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
201
201
|
}
|
|
202
|
-
.bottom-sheet__background-specialbg-primary-
|
|
202
|
+
.bottom-sheet__background-specialbg-primary-grouped_1toao {
|
|
203
203
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
204
204
|
}
|
|
205
|
-
.bottom-sheet__background-specialbg-secondary-
|
|
205
|
+
.bottom-sheet__background-specialbg-secondary-grouped_1toao {
|
|
206
206
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
207
207
|
}
|
|
208
|
-
.bottom-sheet__background-specialbg-tertiary-
|
|
208
|
+
.bottom-sheet__background-specialbg-tertiary-grouped_1toao {
|
|
209
209
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
210
210
|
}
|
|
211
|
-
.bottom-sheet__background-specialbg-secondary-
|
|
211
|
+
.bottom-sheet__background-specialbg-secondary-transparent_1toao {
|
|
212
212
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
213
213
|
}
|
|
214
|
-
.bottom-sheet__background-specialbg-secondary-transparent-
|
|
214
|
+
.bottom-sheet__background-specialbg-secondary-transparent-inverted_1toao {
|
|
215
215
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
216
216
|
}
|
|
217
|
-
.bottom-sheet__background-specialbg-tertiary-
|
|
217
|
+
.bottom-sheet__background-specialbg-tertiary-transparent_1toao {
|
|
218
218
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
219
219
|
}
|
|
220
|
-
.bottom-sheet__background-specialbg-tertiary-transparent-
|
|
220
|
+
.bottom-sheet__background-specialbg-tertiary-transparent-inverted_1toao {
|
|
221
221
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
222
222
|
}
|
package/index.module.css.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"modal":"bottom-
|
|
5
|
+
var styles = {"modal":"bottom-sheet__modal_1toao","wrapper":"bottom-sheet__wrapper_1toao","outerClassName":"bottom-sheet__outerClassName_1toao","fullscreen":"bottom-sheet__fullscreen_1toao","component":"bottom-sheet__component_1toao","withTransition":"bottom-sheet__withTransition_1toao","scrollableContainer":"bottom-sheet__scrollableContainer_1toao","marker":"bottom-sheet__marker_1toao","defaultMarker":"bottom-sheet__defaultMarker_1toao","content":"bottom-sheet__content_1toao","noHeader":"bottom-sheet__noHeader_1toao","noFooter":"bottom-sheet__noFooter_1toao","scrollLocked":"bottom-sheet__scrollLocked_1toao","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1toao","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1toao","appear":"bottom-sheet__appear_1toao","enter":"bottom-sheet__enter_1toao","appearActive":"bottom-sheet__appearActive_1toao","enterActive":"bottom-sheet__enterActive_1toao","enterDone":"bottom-sheet__enterDone_1toao","appearDone":"bottom-sheet__appearDone_1toao","exit":"bottom-sheet__exit_1toao","exitActive":"bottom-sheet__exitActive_1toao","safeAreaBottom":"bottom-sheet__safeAreaBottom_1toao","background-accent":"bottom-sheet__background-accent_1toao","background-info":"bottom-sheet__background-info_1toao","background-attention-muted":"bottom-sheet__background-attention-muted_1toao","background-positive-muted":"bottom-sheet__background-positive-muted_1toao","background-negative-muted":"bottom-sheet__background-negative-muted_1toao","background-primary":"bottom-sheet__background-primary_1toao","background-primary-inverted":"bottom-sheet__background-primary-inverted_1toao","background-secondary":"bottom-sheet__background-secondary_1toao","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1toao","background-tertiary":"bottom-sheet__background-tertiary_1toao","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1toao","background-quaternary":"bottom-sheet__background-quaternary_1toao","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1toao","background-specialbg-component":"bottom-sheet__background-specialbg-component_1toao","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1toao","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1toao","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1toao","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1toao","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1toao","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1toao","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1toao","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1toao"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
package/index.module.css.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '@alfalab/core-components-vars/src/safe-area.css';\n@import './vars.css';\n\n.modal {\n bottom: var(--gap-0);\n width: 100%;\n max-width: 600px;\n pointer-events: none;\n touch-action: none;\n}\n\n.modal.modal {\n background-color: transparent;\n position: fixed;\n}\n\n.wrapper {\n transform: translateY(100%);\n pointer-events: none;\n touch-action: none;\n border-top-right-radius: var(--bottom-sheet-top-radius);\n border-top-left-radius: var(--bottom-sheet-top-radius);\n transition: border-radius 0.3s ease;\n}\n\n.outerClassName {\n pointer-events: all;\n}\n\n.fullscreen {\n border-radius: var(--border-radius-0);\n}\n\n.component {\n position: relative;\n display: flex;\n flex-direction: column;\n border-radius: inherit;\n pointer-events: all;\n box-shadow: var(--bottom-sheet-shadow);\n\n /* фикс: при включённом padding маркер может визуально \"улетать\" наверх */\n transform: translate(0, 0);\n}\n\n.withTransition {\n transition: var(--bottom-sheet-out-transition);\n}\n\n.scrollableContainer {\n overflow: auto;\n display: flex;\n flex-direction: column;\n position: relative;\n height: 100%;\n background-color: inherit;\n border-radius: inherit;\n overscroll-behavior: contain;\n}\n\n.marker {\n position: fixed;\n top: var(--gap-4);\n right: var(--gap-0);\n left: var(--gap-0);\n z-index: 1000;\n width: 36px;\n margin: var(--gap-0) auto;\n}\n\n.defaultMarker {\n height: 4px;\n border-radius: var(--border-radius-20);\n}\n\n.content {\n position: relative;\n z-index: 0;\n display: flex;\n flex-direction: column;\n flex: 1;\n padding: var(--gap-0) var(--gap-16);\n background-color: inherit;\n border-radius: inherit;\n}\n\n.noHeader {\n padding-top: var(--gap-16);\n}\n\n.noFooter {\n padding-bottom: var(--gap-16);\n}\n\n.scrollLocked {\n overflow: hidden;\n}\n\n.hiddenScrollbar {\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n width: 0;\n height: 0;\n }\n}\n\n.disabledPointerEvents {\n pointer-events: none;\n}\n\n.appear,\n.enter {\n & .wrapper {\n transition: none;\n }\n}\n\n.appearActive,\n.enterActive {\n & .wrapper {\n transition: var(--bottom-sheet-in-transition);\n transform: translateY(0);\n }\n}\n\n.enterDone,\n.appearDone {\n & .wrapper {\n transform: translateY(0);\n }\n}\n\n.exit {\n & .wrapper {\n transform: translateY(0);\n }\n}\n\n.exitActive {\n & .wrapper {\n transition: var(--bottom-sheet-out-transition);\n transform: translateY(100%);\n }\n}\n\n.safeAreaBottom {\n padding-bottom: var(--sab);\n}\n\n@mixin bg-class-list;\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,OAAO,CAAC,2BAA2B,CAAC,SAAS,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,YAAY,CAAC,gCAAgC,CAAC,WAAW,CAAC,+BAA+B,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,qBAAqB,CAAC,yCAAyC,CAAC,QAAQ,CAAC,4BAA4B,CAAC,eAAe,CAAC,mCAAmC,CAAC,SAAS,CAAC,6BAA6B,CAAC,UAAU,CAAC,8BAA8B,CAAC,UAAU,CAAC,8BAA8B,CAAC,cAAc,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,uBAAuB,CAAC,2CAA2C,CAAC,QAAQ,CAAC,4BAA4B,CAAC,OAAO,CAAC,2BAA2B,CAAC,cAAc,CAAC,kCAAkC,CAAC,aAAa,CAAC,iCAAiC,CAAC,WAAW,CAAC,+BAA+B,CAAC,YAAY,CAAC,gCAAgC,CAAC,MAAM,CAAC,0BAA0B,CAAC,YAAY,CAAC,gCAAgC,CAAC,gBAAgB,CAAC,oCAAoC,CAAC,mBAAmB,CAAC,uCAAuC,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,4BAA4B,CAAC,gDAAgD,CAAC,2BAA2B,CAAC,+CAA+C,CAAC,2BAA2B,CAAC,+CAA+C,CAAC,oBAAoB,CAAC,wCAAwC,CAAC,6BAA6B,CAAC,iDAAiD,CAAC,sBAAsB,CAAC,0CAA0C,CAAC,+BAA+B,CAAC,mDAAmD,CAAC,qBAAqB,CAAC,yCAAyC,CAAC,8BAA8B,CAAC,kDAAkD,CAAC,uBAAuB,CAAC,2CAA2C,CAAC,gCAAgC,CAAC,oDAAoD,CAAC,gCAAgC,CAAC,oDAAoD,CAAC,yCAAyC,CAAC,6DAA6D,CAAC,sCAAsC,CAAC,0DAA0D,CAAC,wCAAwC,CAAC,4DAA4D,CAAC,uCAAuC,CAAC,2DAA2D,CAAC,4CAA4C,CAAC,gEAAgE,CAAC,qDAAqD,CAAC,yEAAyE,CAAC,2CAA2C,CAAC,+DAA+D,CAAC,oDAAoD,CAAC,wEAAwE,CAAC;;;;"}
|