@alfalab/core-components-bottom-sheet 6.15.1 → 6.15.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 +10 -4
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +26 -26
- package/components/header/Component.js +1 -1
- package/components/header/index.css +13 -13
- package/cssm/component.js +9 -3
- package/esm/component.js +11 -5
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +26 -26
- package/esm/components/header/Component.js +1 -1
- package/esm/components/header/index.css +13 -13
- package/esm/index.css +45 -45
- package/index.css +45 -45
- package/modern/component.js +10 -5
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +26 -26
- package/modern/components/header/Component.js +1 -1
- package/modern/components/header/index.css +13 -13
- package/modern/index.css +45 -45
- package/package.json +2 -2
- package/src/component.tsx +11 -3
package/component.js
CHANGED
|
@@ -22,7 +22,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
22
22
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
23
23
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
24
24
|
|
|
25
|
-
var styles = {"modal":"bottom-
|
|
25
|
+
var styles = {"modal":"bottom-sheet__modal_1j3fs","wrapper":"bottom-sheet__wrapper_1j3fs","fullscreen":"bottom-sheet__fullscreen_1j3fs","component":"bottom-sheet__component_1j3fs","withTransition":"bottom-sheet__withTransition_1j3fs","scrollableContainer":"bottom-sheet__scrollableContainer_1j3fs","marker":"bottom-sheet__marker_1j3fs","defaultMarker":"bottom-sheet__defaultMarker_1j3fs","content":"bottom-sheet__content_1j3fs","noHeader":"bottom-sheet__noHeader_1j3fs","noFooter":"bottom-sheet__noFooter_1j3fs","scrollLocked":"bottom-sheet__scrollLocked_1j3fs","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1j3fs","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1j3fs","appear":"bottom-sheet__appear_1j3fs","enter":"bottom-sheet__enter_1j3fs","appearActive":"bottom-sheet__appearActive_1j3fs","enterActive":"bottom-sheet__enterActive_1j3fs","enterDone":"bottom-sheet__enterDone_1j3fs","appearDone":"bottom-sheet__appearDone_1j3fs","exit":"bottom-sheet__exit_1j3fs","exitActive":"bottom-sheet__exitActive_1j3fs","safeAreaBottom":"bottom-sheet__safeAreaBottom_1j3fs","background-accent":"bottom-sheet__background-accent_1j3fs","background-info":"bottom-sheet__background-info_1j3fs","background-attention-muted":"bottom-sheet__background-attention-muted_1j3fs","background-positive-muted":"bottom-sheet__background-positive-muted_1j3fs","background-negative-muted":"bottom-sheet__background-negative-muted_1j3fs","background-primary":"bottom-sheet__background-primary_1j3fs","background-primary-inverted":"bottom-sheet__background-primary-inverted_1j3fs","background-secondary":"bottom-sheet__background-secondary_1j3fs","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1j3fs","background-tertiary":"bottom-sheet__background-tertiary_1j3fs","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1j3fs","background-quaternary":"bottom-sheet__background-quaternary_1j3fs","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1j3fs","background-specialbg-component":"bottom-sheet__background-specialbg-component_1j3fs","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1j3fs","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1j3fs","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1j3fs","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1j3fs","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1j3fs","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1j3fs","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1j3fs","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1j3fs"};
|
|
26
26
|
require('./index.css')
|
|
27
27
|
|
|
28
28
|
var isNil = coreComponentsShared.fnUtils.isNil;
|
|
@@ -32,6 +32,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
32
32
|
var fullHeight = reactDiv100vh.use100vh() || 0;
|
|
33
33
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
34
34
|
var isFirstRender = fullHeight === 0;
|
|
35
|
+
var initialIndexRef = React.useRef(initialActiveAreaIndex);
|
|
35
36
|
var magneticAreas = React.useMemo(function () {
|
|
36
37
|
var _a;
|
|
37
38
|
if (magneticAreasProp) {
|
|
@@ -106,6 +107,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
106
107
|
}
|
|
107
108
|
};
|
|
108
109
|
var scrollToArea = function (idx) {
|
|
110
|
+
if (isFirstRender) {
|
|
111
|
+
initialIndexRef.current = idx;
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
109
114
|
stopSwiping(null);
|
|
110
115
|
var nextArea = magneticAreas[idx];
|
|
111
116
|
var nextAreaIdx = getActiveAreaIndex(nextArea);
|
|
@@ -269,7 +274,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
269
274
|
delta: swipeThreshold,
|
|
270
275
|
});
|
|
271
276
|
var handleExited = function (node) {
|
|
272
|
-
var idx =
|
|
277
|
+
var idx = initialIndexRef.current;
|
|
273
278
|
setBackdropOpacity(1);
|
|
274
279
|
setSheetOffset(isNil(idx) ? magneticAreas[0] : lastMagneticArea - magneticAreas[idx]);
|
|
275
280
|
setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
|
|
@@ -279,7 +284,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
279
284
|
}
|
|
280
285
|
};
|
|
281
286
|
var handleEnter = function (node, isAppearing) {
|
|
282
|
-
|
|
287
|
+
var _a;
|
|
288
|
+
onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize((_a = initialIndexRef.current) !== null && _a !== void 0 ? _a : magneticAreas.length - 1);
|
|
283
289
|
if (transitionProps.onEnter) {
|
|
284
290
|
transitionProps.onEnter(node, isAppearing);
|
|
285
291
|
}
|
|
@@ -304,7 +310,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
304
310
|
if (!isFirstRender) {
|
|
305
311
|
// Инициализируем стейт только после того, как была рассчитана высота вьюпорта
|
|
306
312
|
if (activeAreaIdx === -1) {
|
|
307
|
-
var idx =
|
|
313
|
+
var idx = initialIndexRef.current;
|
|
308
314
|
setSheetOffset(isNil(idx) ? 0 : lastMagneticArea - magneticAreas[idx]);
|
|
309
315
|
setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
|
|
310
316
|
}
|
|
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"footer":"bottom-
|
|
14
|
+
var styles = {"footer":"bottom-sheet__footer_9nz0t","sticky":"bottom-sheet__sticky_9nz0t","highlighted":"bottom-sheet__highlighted_9nz0t","background-accent":"bottom-sheet__background-accent_9nz0t","background-info":"bottom-sheet__background-info_9nz0t","background-attention-muted":"bottom-sheet__background-attention-muted_9nz0t","background-positive-muted":"bottom-sheet__background-positive-muted_9nz0t","background-negative-muted":"bottom-sheet__background-negative-muted_9nz0t","background-primary":"bottom-sheet__background-primary_9nz0t","background-primary-inverted":"bottom-sheet__background-primary-inverted_9nz0t","background-secondary":"bottom-sheet__background-secondary_9nz0t","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_9nz0t","background-tertiary":"bottom-sheet__background-tertiary_9nz0t","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_9nz0t","background-quaternary":"bottom-sheet__background-quaternary_9nz0t","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_9nz0t","background-specialbg-component":"bottom-sheet__background-specialbg-component_9nz0t","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_9nz0t","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_9nz0t","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_9nz0t","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_9nz0t","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_9nz0t","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_9nz0t","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_9nz0t","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_9nz0t"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b3zt */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-accent: #ef3124;
|
|
@@ -46,58 +46,58 @@
|
|
|
46
46
|
/* footer */
|
|
47
47
|
--bottom-sheet-footer-border-top: 1px solid var(--color-light-neutral-300);
|
|
48
48
|
--bottom-sheet-footer-background-color: var(--color-light-modal-bg-primary);
|
|
49
|
-
} .bottom-
|
|
49
|
+
} .bottom-sheet__footer_9nz0t {
|
|
50
50
|
padding: var(--gap-m) var(--gap-m);
|
|
51
51
|
background-color: var(--color-light-modal-bg-primary);
|
|
52
|
-
} .bottom-
|
|
52
|
+
} .bottom-sheet__sticky_9nz0t {
|
|
53
53
|
position: sticky;
|
|
54
54
|
bottom: 0;
|
|
55
55
|
z-index: 1;
|
|
56
|
-
} .bottom-
|
|
56
|
+
} .bottom-sheet__highlighted_9nz0t {
|
|
57
57
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
58
58
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
59
|
-
} .bottom-sheet__background-
|
|
59
|
+
} .bottom-sheet__background-accent_9nz0t {
|
|
60
60
|
background-color: var(--color-light-bg-accent);
|
|
61
|
-
} .bottom-sheet__background-
|
|
61
|
+
} .bottom-sheet__background-info_9nz0t {
|
|
62
62
|
background-color: var(--color-light-bg-info);
|
|
63
|
-
} .bottom-sheet__background-attention-
|
|
63
|
+
} .bottom-sheet__background-attention-muted_9nz0t {
|
|
64
64
|
background-color: var(--color-light-bg-attention-muted);
|
|
65
|
-
} .bottom-sheet__background-positive-
|
|
65
|
+
} .bottom-sheet__background-positive-muted_9nz0t {
|
|
66
66
|
background-color: var(--color-light-bg-positive-muted);
|
|
67
|
-
} .bottom-sheet__background-negative-
|
|
67
|
+
} .bottom-sheet__background-negative-muted_9nz0t {
|
|
68
68
|
background-color: var(--color-light-bg-negative-muted);
|
|
69
|
-
} .bottom-sheet__background-
|
|
69
|
+
} .bottom-sheet__background-primary_9nz0t {
|
|
70
70
|
background-color: var(--color-light-bg-primary);
|
|
71
|
-
} .bottom-sheet__background-primary-
|
|
71
|
+
} .bottom-sheet__background-primary-inverted_9nz0t {
|
|
72
72
|
background-color: var(--color-light-bg-primary-inverted);
|
|
73
|
-
} .bottom-sheet__background-
|
|
73
|
+
} .bottom-sheet__background-secondary_9nz0t {
|
|
74
74
|
background-color: var(--color-light-bg-secondary);
|
|
75
|
-
} .bottom-sheet__background-secondary-
|
|
75
|
+
} .bottom-sheet__background-secondary-inverted_9nz0t {
|
|
76
76
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
77
|
-
} .bottom-sheet__background-
|
|
77
|
+
} .bottom-sheet__background-tertiary_9nz0t {
|
|
78
78
|
background-color: var(--color-light-bg-tertiary);
|
|
79
|
-
} .bottom-sheet__background-tertiary-
|
|
79
|
+
} .bottom-sheet__background-tertiary-inverted_9nz0t {
|
|
80
80
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
81
|
-
} .bottom-sheet__background-
|
|
81
|
+
} .bottom-sheet__background-quaternary_9nz0t {
|
|
82
82
|
background-color: var(--color-light-bg-quaternary);
|
|
83
|
-
} .bottom-sheet__background-quaternary-
|
|
83
|
+
} .bottom-sheet__background-quaternary-inverted_9nz0t {
|
|
84
84
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
85
|
-
} .bottom-sheet__background-specialbg-
|
|
85
|
+
} .bottom-sheet__background-specialbg-component_9nz0t {
|
|
86
86
|
background-color: var(--color-light-specialbg-component);
|
|
87
|
-
} .bottom-sheet__background-specialbg-component-
|
|
87
|
+
} .bottom-sheet__background-specialbg-component-inverted_9nz0t {
|
|
88
88
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
89
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
89
|
+
} .bottom-sheet__background-specialbg-primary-grouped_9nz0t {
|
|
90
90
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
91
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
91
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_9nz0t {
|
|
92
92
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
93
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
93
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_9nz0t {
|
|
94
94
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
95
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
95
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_9nz0t {
|
|
96
96
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
97
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
97
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_9nz0t {
|
|
98
98
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
99
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
99
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_9nz0t {
|
|
100
100
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
101
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
101
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_9nz0t {
|
|
102
102
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
103
103
|
}
|
|
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
13
13
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
14
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
15
|
|
|
16
|
-
var styles = {"headerWrapper":"bottom-
|
|
16
|
+
var styles = {"headerWrapper":"bottom-sheet__headerWrapper_tkyol","hasContent":"bottom-sheet__hasContent_tkyol","header":"bottom-sheet__header_tkyol","sticky":"bottom-sheet__sticky_tkyol","highlighted":"bottom-sheet__highlighted_tkyol","justifyEnd":"bottom-sheet__justifyEnd_tkyol","addon":"bottom-sheet__addon_tkyol","addonFixed":"bottom-sheet__addonFixed_tkyol","title":"bottom-sheet__title_tkyol","titleCenter":"bottom-sheet__titleCenter_tkyol","titleLeft":"bottom-sheet__titleLeft_tkyol","trimTitle":"bottom-sheet__trimTitle_tkyol"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ohohc */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-300: #e7e8eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -30,42 +30,42 @@
|
|
|
30
30
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
31
31
|
|
|
32
32
|
/* footer */
|
|
33
|
-
} .bottom-
|
|
33
|
+
} .bottom-sheet__headerWrapper_tkyol {
|
|
34
34
|
padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
|
|
35
35
|
border-top-left-radius: inherit;
|
|
36
36
|
border-top-right-radius: inherit;
|
|
37
37
|
z-index: 1;
|
|
38
|
-
} .bottom-
|
|
38
|
+
} .bottom-sheet__hasContent_tkyol {
|
|
39
39
|
background-color: inherit;
|
|
40
|
-
} .bottom-
|
|
40
|
+
} .bottom-sheet__header_tkyol {
|
|
41
41
|
display: flex;
|
|
42
|
-
} .bottom-
|
|
42
|
+
} .bottom-sheet__sticky_tkyol {
|
|
43
43
|
position: sticky;
|
|
44
44
|
top: 0;
|
|
45
|
-
} .bottom-
|
|
45
|
+
} .bottom-sheet__highlighted_tkyol {
|
|
46
46
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
47
|
-
} .bottom-
|
|
47
|
+
} .bottom-sheet__justifyEnd_tkyol {
|
|
48
48
|
justify-content: flex-end;
|
|
49
|
-
} .bottom-
|
|
49
|
+
} .bottom-sheet__addon_tkyol {
|
|
50
50
|
display: flex;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
align-items: center;
|
|
53
53
|
min-width: 48px;
|
|
54
54
|
height: 48px;
|
|
55
|
-
} .bottom-
|
|
55
|
+
} .bottom-sheet__addonFixed_tkyol {
|
|
56
56
|
position: fixed;
|
|
57
|
-
} .bottom-
|
|
57
|
+
} .bottom-sheet__title_tkyol {
|
|
58
58
|
padding: var(--gap-s) var(--gap-xs);
|
|
59
59
|
width: 100%;
|
|
60
60
|
font-size: var(--bottom-sheet-title-font-size);
|
|
61
61
|
font-weight: var(--bottom-sheet-title-font-weight);
|
|
62
62
|
line-height: var(--bottom-sheet-title-line-height);
|
|
63
63
|
font-family: var(--bottom-sheet-title-font-family);
|
|
64
|
-
} .bottom-
|
|
64
|
+
} .bottom-sheet__titleCenter_tkyol {
|
|
65
65
|
text-align: center;
|
|
66
|
-
} .bottom-
|
|
66
|
+
} .bottom-sheet__titleLeft_tkyol {
|
|
67
67
|
text-align: left;
|
|
68
|
-
} .bottom-
|
|
68
|
+
} .bottom-sheet__trimTitle_tkyol {
|
|
69
69
|
white-space: nowrap;
|
|
70
70
|
overflow: hidden;
|
|
71
71
|
text-overflow: ellipsis;
|
package/cssm/component.js
CHANGED
|
@@ -31,6 +31,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
31
31
|
var fullHeight = reactDiv100vh.use100vh() || 0;
|
|
32
32
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
33
33
|
var isFirstRender = fullHeight === 0;
|
|
34
|
+
var initialIndexRef = React.useRef(initialActiveAreaIndex);
|
|
34
35
|
var magneticAreas = React.useMemo(function () {
|
|
35
36
|
var _a;
|
|
36
37
|
if (magneticAreasProp) {
|
|
@@ -105,6 +106,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
105
106
|
}
|
|
106
107
|
};
|
|
107
108
|
var scrollToArea = function (idx) {
|
|
109
|
+
if (isFirstRender) {
|
|
110
|
+
initialIndexRef.current = idx;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
108
113
|
stopSwiping(null);
|
|
109
114
|
var nextArea = magneticAreas[idx];
|
|
110
115
|
var nextAreaIdx = getActiveAreaIndex(nextArea);
|
|
@@ -268,7 +273,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
268
273
|
delta: swipeThreshold,
|
|
269
274
|
});
|
|
270
275
|
var handleExited = function (node) {
|
|
271
|
-
var idx =
|
|
276
|
+
var idx = initialIndexRef.current;
|
|
272
277
|
setBackdropOpacity(1);
|
|
273
278
|
setSheetOffset(isNil(idx) ? magneticAreas[0] : lastMagneticArea - magneticAreas[idx]);
|
|
274
279
|
setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
|
|
@@ -278,7 +283,8 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
278
283
|
}
|
|
279
284
|
};
|
|
280
285
|
var handleEnter = function (node, isAppearing) {
|
|
281
|
-
|
|
286
|
+
var _a;
|
|
287
|
+
onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize((_a = initialIndexRef.current) !== null && _a !== void 0 ? _a : magneticAreas.length - 1);
|
|
282
288
|
if (transitionProps.onEnter) {
|
|
283
289
|
transitionProps.onEnter(node, isAppearing);
|
|
284
290
|
}
|
|
@@ -303,7 +309,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
303
309
|
if (!isFirstRender) {
|
|
304
310
|
// Инициализируем стейт только после того, как была рассчитана высота вьюпорта
|
|
305
311
|
if (activeAreaIdx === -1) {
|
|
306
|
-
var idx =
|
|
312
|
+
var idx = initialIndexRef.current;
|
|
307
313
|
setSheetOffset(isNil(idx) ? 0 : lastMagneticArea - magneticAreas[idx]);
|
|
308
314
|
setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
|
|
309
315
|
}
|
package/esm/component.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __assign } from 'tslib';
|
|
2
|
-
import React, { forwardRef, useMemo, useState,
|
|
2
|
+
import React, { forwardRef, useRef, useMemo, useState, useEffect, useImperativeHandle } from 'react';
|
|
3
3
|
import { use100vh } from 'react-div-100vh';
|
|
4
4
|
import mergeRefs from 'react-merge-refs';
|
|
5
5
|
import { useSwipeable } from 'react-swipeable';
|
|
@@ -12,7 +12,7 @@ import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js'
|
|
|
12
12
|
import { horizontalDirections } from './consts/swipeConsts.js';
|
|
13
13
|
import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VELOCITY, CLOSE_OFFSET } from './utils.js';
|
|
14
14
|
|
|
15
|
-
var styles = {"modal":"bottom-
|
|
15
|
+
var styles = {"modal":"bottom-sheet__modal_1j3fs","wrapper":"bottom-sheet__wrapper_1j3fs","fullscreen":"bottom-sheet__fullscreen_1j3fs","component":"bottom-sheet__component_1j3fs","withTransition":"bottom-sheet__withTransition_1j3fs","scrollableContainer":"bottom-sheet__scrollableContainer_1j3fs","marker":"bottom-sheet__marker_1j3fs","defaultMarker":"bottom-sheet__defaultMarker_1j3fs","content":"bottom-sheet__content_1j3fs","noHeader":"bottom-sheet__noHeader_1j3fs","noFooter":"bottom-sheet__noFooter_1j3fs","scrollLocked":"bottom-sheet__scrollLocked_1j3fs","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_1j3fs","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_1j3fs","appear":"bottom-sheet__appear_1j3fs","enter":"bottom-sheet__enter_1j3fs","appearActive":"bottom-sheet__appearActive_1j3fs","enterActive":"bottom-sheet__enterActive_1j3fs","enterDone":"bottom-sheet__enterDone_1j3fs","appearDone":"bottom-sheet__appearDone_1j3fs","exit":"bottom-sheet__exit_1j3fs","exitActive":"bottom-sheet__exitActive_1j3fs","safeAreaBottom":"bottom-sheet__safeAreaBottom_1j3fs","background-accent":"bottom-sheet__background-accent_1j3fs","background-info":"bottom-sheet__background-info_1j3fs","background-attention-muted":"bottom-sheet__background-attention-muted_1j3fs","background-positive-muted":"bottom-sheet__background-positive-muted_1j3fs","background-negative-muted":"bottom-sheet__background-negative-muted_1j3fs","background-primary":"bottom-sheet__background-primary_1j3fs","background-primary-inverted":"bottom-sheet__background-primary-inverted_1j3fs","background-secondary":"bottom-sheet__background-secondary_1j3fs","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1j3fs","background-tertiary":"bottom-sheet__background-tertiary_1j3fs","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1j3fs","background-quaternary":"bottom-sheet__background-quaternary_1j3fs","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1j3fs","background-specialbg-component":"bottom-sheet__background-specialbg-component_1j3fs","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1j3fs","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1j3fs","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1j3fs","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1j3fs","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1j3fs","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1j3fs","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1j3fs","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1j3fs"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var isNil = fnUtils.isNil;
|
|
@@ -22,6 +22,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
22
22
|
var fullHeight = use100vh() || 0;
|
|
23
23
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
24
24
|
var isFirstRender = fullHeight === 0;
|
|
25
|
+
var initialIndexRef = useRef(initialActiveAreaIndex);
|
|
25
26
|
var magneticAreas = useMemo(function () {
|
|
26
27
|
var _a;
|
|
27
28
|
if (magneticAreasProp) {
|
|
@@ -96,6 +97,10 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
96
97
|
}
|
|
97
98
|
};
|
|
98
99
|
var scrollToArea = function (idx) {
|
|
100
|
+
if (isFirstRender) {
|
|
101
|
+
initialIndexRef.current = idx;
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
99
104
|
stopSwiping(null);
|
|
100
105
|
var nextArea = magneticAreas[idx];
|
|
101
106
|
var nextAreaIdx = getActiveAreaIndex(nextArea);
|
|
@@ -259,7 +264,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
259
264
|
delta: swipeThreshold,
|
|
260
265
|
});
|
|
261
266
|
var handleExited = function (node) {
|
|
262
|
-
var idx =
|
|
267
|
+
var idx = initialIndexRef.current;
|
|
263
268
|
setBackdropOpacity(1);
|
|
264
269
|
setSheetOffset(isNil(idx) ? magneticAreas[0] : lastMagneticArea - magneticAreas[idx]);
|
|
265
270
|
setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
|
|
@@ -269,7 +274,8 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
269
274
|
}
|
|
270
275
|
};
|
|
271
276
|
var handleEnter = function (node, isAppearing) {
|
|
272
|
-
|
|
277
|
+
var _a;
|
|
278
|
+
onMagnetize === null || onMagnetize === void 0 ? void 0 : onMagnetize((_a = initialIndexRef.current) !== null && _a !== void 0 ? _a : magneticAreas.length - 1);
|
|
273
279
|
if (transitionProps.onEnter) {
|
|
274
280
|
transitionProps.onEnter(node, isAppearing);
|
|
275
281
|
}
|
|
@@ -294,7 +300,7 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
294
300
|
if (!isFirstRender) {
|
|
295
301
|
// Инициализируем стейт только после того, как была рассчитана высота вьюпорта
|
|
296
302
|
if (activeAreaIdx === -1) {
|
|
297
|
-
var idx =
|
|
303
|
+
var idx = initialIndexRef.current;
|
|
298
304
|
setSheetOffset(isNil(idx) ? 0 : lastMagneticArea - magneticAreas[idx]);
|
|
299
305
|
setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);
|
|
300
306
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useContext, useEffect } from 'react';
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
4
4
|
|
|
5
|
-
var styles = {"footer":"bottom-
|
|
5
|
+
var styles = {"footer":"bottom-sheet__footer_9nz0t","sticky":"bottom-sheet__sticky_9nz0t","highlighted":"bottom-sheet__highlighted_9nz0t","background-accent":"bottom-sheet__background-accent_9nz0t","background-info":"bottom-sheet__background-info_9nz0t","background-attention-muted":"bottom-sheet__background-attention-muted_9nz0t","background-positive-muted":"bottom-sheet__background-positive-muted_9nz0t","background-negative-muted":"bottom-sheet__background-negative-muted_9nz0t","background-primary":"bottom-sheet__background-primary_9nz0t","background-primary-inverted":"bottom-sheet__background-primary-inverted_9nz0t","background-secondary":"bottom-sheet__background-secondary_9nz0t","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_9nz0t","background-tertiary":"bottom-sheet__background-tertiary_9nz0t","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_9nz0t","background-quaternary":"bottom-sheet__background-quaternary_9nz0t","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_9nz0t","background-specialbg-component":"bottom-sheet__background-specialbg-component_9nz0t","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_9nz0t","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_9nz0t","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_9nz0t","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_9nz0t","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_9nz0t","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_9nz0t","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_9nz0t","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_9nz0t"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1b3zt */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-accent: #ef3124;
|
|
@@ -46,58 +46,58 @@
|
|
|
46
46
|
/* footer */
|
|
47
47
|
--bottom-sheet-footer-border-top: 1px solid var(--color-light-neutral-300);
|
|
48
48
|
--bottom-sheet-footer-background-color: var(--color-light-modal-bg-primary);
|
|
49
|
-
} .bottom-
|
|
49
|
+
} .bottom-sheet__footer_9nz0t {
|
|
50
50
|
padding: var(--gap-m) var(--gap-m);
|
|
51
51
|
background-color: var(--color-light-modal-bg-primary);
|
|
52
|
-
} .bottom-
|
|
52
|
+
} .bottom-sheet__sticky_9nz0t {
|
|
53
53
|
position: sticky;
|
|
54
54
|
bottom: 0;
|
|
55
55
|
z-index: 1;
|
|
56
|
-
} .bottom-
|
|
56
|
+
} .bottom-sheet__highlighted_9nz0t {
|
|
57
57
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
58
58
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
59
|
-
} .bottom-sheet__background-
|
|
59
|
+
} .bottom-sheet__background-accent_9nz0t {
|
|
60
60
|
background-color: var(--color-light-bg-accent);
|
|
61
|
-
} .bottom-sheet__background-
|
|
61
|
+
} .bottom-sheet__background-info_9nz0t {
|
|
62
62
|
background-color: var(--color-light-bg-info);
|
|
63
|
-
} .bottom-sheet__background-attention-
|
|
63
|
+
} .bottom-sheet__background-attention-muted_9nz0t {
|
|
64
64
|
background-color: var(--color-light-bg-attention-muted);
|
|
65
|
-
} .bottom-sheet__background-positive-
|
|
65
|
+
} .bottom-sheet__background-positive-muted_9nz0t {
|
|
66
66
|
background-color: var(--color-light-bg-positive-muted);
|
|
67
|
-
} .bottom-sheet__background-negative-
|
|
67
|
+
} .bottom-sheet__background-negative-muted_9nz0t {
|
|
68
68
|
background-color: var(--color-light-bg-negative-muted);
|
|
69
|
-
} .bottom-sheet__background-
|
|
69
|
+
} .bottom-sheet__background-primary_9nz0t {
|
|
70
70
|
background-color: var(--color-light-bg-primary);
|
|
71
|
-
} .bottom-sheet__background-primary-
|
|
71
|
+
} .bottom-sheet__background-primary-inverted_9nz0t {
|
|
72
72
|
background-color: var(--color-light-bg-primary-inverted);
|
|
73
|
-
} .bottom-sheet__background-
|
|
73
|
+
} .bottom-sheet__background-secondary_9nz0t {
|
|
74
74
|
background-color: var(--color-light-bg-secondary);
|
|
75
|
-
} .bottom-sheet__background-secondary-
|
|
75
|
+
} .bottom-sheet__background-secondary-inverted_9nz0t {
|
|
76
76
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
77
|
-
} .bottom-sheet__background-
|
|
77
|
+
} .bottom-sheet__background-tertiary_9nz0t {
|
|
78
78
|
background-color: var(--color-light-bg-tertiary);
|
|
79
|
-
} .bottom-sheet__background-tertiary-
|
|
79
|
+
} .bottom-sheet__background-tertiary-inverted_9nz0t {
|
|
80
80
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
81
|
-
} .bottom-sheet__background-
|
|
81
|
+
} .bottom-sheet__background-quaternary_9nz0t {
|
|
82
82
|
background-color: var(--color-light-bg-quaternary);
|
|
83
|
-
} .bottom-sheet__background-quaternary-
|
|
83
|
+
} .bottom-sheet__background-quaternary-inverted_9nz0t {
|
|
84
84
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
85
|
-
} .bottom-sheet__background-specialbg-
|
|
85
|
+
} .bottom-sheet__background-specialbg-component_9nz0t {
|
|
86
86
|
background-color: var(--color-light-specialbg-component);
|
|
87
|
-
} .bottom-sheet__background-specialbg-component-
|
|
87
|
+
} .bottom-sheet__background-specialbg-component-inverted_9nz0t {
|
|
88
88
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
89
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
89
|
+
} .bottom-sheet__background-specialbg-primary-grouped_9nz0t {
|
|
90
90
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
91
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
91
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_9nz0t {
|
|
92
92
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
93
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
93
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_9nz0t {
|
|
94
94
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
95
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
95
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_9nz0t {
|
|
96
96
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
97
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
97
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_9nz0t {
|
|
98
98
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
99
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
99
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_9nz0t {
|
|
100
100
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
101
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
101
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_9nz0t {
|
|
102
102
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
103
103
|
}
|
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
5
5
|
import { NavigationBarPrivate } from '@alfalab/core-components-navigation-bar-private/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"headerWrapper":"bottom-
|
|
7
|
+
var styles = {"headerWrapper":"bottom-sheet__headerWrapper_tkyol","hasContent":"bottom-sheet__hasContent_tkyol","header":"bottom-sheet__header_tkyol","sticky":"bottom-sheet__sticky_tkyol","highlighted":"bottom-sheet__highlighted_tkyol","justifyEnd":"bottom-sheet__justifyEnd_tkyol","addon":"bottom-sheet__addon_tkyol","addonFixed":"bottom-sheet__addonFixed_tkyol","title":"bottom-sheet__title_tkyol","titleCenter":"bottom-sheet__titleCenter_tkyol","titleLeft":"bottom-sheet__titleLeft_tkyol","trimTitle":"bottom-sheet__trimTitle_tkyol"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ohohc */
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-neutral-300: #e7e8eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -30,42 +30,42 @@
|
|
|
30
30
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
31
31
|
|
|
32
32
|
/* footer */
|
|
33
|
-
} .bottom-
|
|
33
|
+
} .bottom-sheet__headerWrapper_tkyol {
|
|
34
34
|
padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
|
|
35
35
|
border-top-left-radius: inherit;
|
|
36
36
|
border-top-right-radius: inherit;
|
|
37
37
|
z-index: 1;
|
|
38
|
-
} .bottom-
|
|
38
|
+
} .bottom-sheet__hasContent_tkyol {
|
|
39
39
|
background-color: inherit;
|
|
40
|
-
} .bottom-
|
|
40
|
+
} .bottom-sheet__header_tkyol {
|
|
41
41
|
display: flex;
|
|
42
|
-
} .bottom-
|
|
42
|
+
} .bottom-sheet__sticky_tkyol {
|
|
43
43
|
position: sticky;
|
|
44
44
|
top: 0;
|
|
45
|
-
} .bottom-
|
|
45
|
+
} .bottom-sheet__highlighted_tkyol {
|
|
46
46
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
47
|
-
} .bottom-
|
|
47
|
+
} .bottom-sheet__justifyEnd_tkyol {
|
|
48
48
|
justify-content: flex-end;
|
|
49
|
-
} .bottom-
|
|
49
|
+
} .bottom-sheet__addon_tkyol {
|
|
50
50
|
display: flex;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
align-items: center;
|
|
53
53
|
min-width: 48px;
|
|
54
54
|
height: 48px;
|
|
55
|
-
} .bottom-
|
|
55
|
+
} .bottom-sheet__addonFixed_tkyol {
|
|
56
56
|
position: fixed;
|
|
57
|
-
} .bottom-
|
|
57
|
+
} .bottom-sheet__title_tkyol {
|
|
58
58
|
padding: var(--gap-s) var(--gap-xs);
|
|
59
59
|
width: 100%;
|
|
60
60
|
font-size: var(--bottom-sheet-title-font-size);
|
|
61
61
|
font-weight: var(--bottom-sheet-title-font-weight);
|
|
62
62
|
line-height: var(--bottom-sheet-title-line-height);
|
|
63
63
|
font-family: var(--bottom-sheet-title-font-family);
|
|
64
|
-
} .bottom-
|
|
64
|
+
} .bottom-sheet__titleCenter_tkyol {
|
|
65
65
|
text-align: center;
|
|
66
|
-
} .bottom-
|
|
66
|
+
} .bottom-sheet__titleLeft_tkyol {
|
|
67
67
|
text-align: left;
|
|
68
|
-
} .bottom-
|
|
68
|
+
} .bottom-sheet__trimTitle_tkyol {
|
|
69
69
|
white-space: nowrap;
|
|
70
70
|
overflow: hidden;
|
|
71
71
|
text-overflow: ellipsis;
|