@alfalab/core-components-bottom-sheet 6.6.0 → 6.6.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 +1 -1
- 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/esm/component.js +1 -1
- 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 +42 -42
- package/index.css +42 -42
- package/modern/component.js +1 -1
- 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 +42 -42
- package/package.json +4 -4
package/component.js
CHANGED
|
@@ -23,7 +23,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
23
23
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
24
24
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
25
25
|
|
|
26
|
-
var styles = {"modal":"bottom-
|
|
26
|
+
var styles = {"modal":"bottom-sheet__modal_w9b6i","wrapper":"bottom-sheet__wrapper_w9b6i","fullscreen":"bottom-sheet__fullscreen_w9b6i","component":"bottom-sheet__component_w9b6i","withTransition":"bottom-sheet__withTransition_w9b6i","scrollableContainer":"bottom-sheet__scrollableContainer_w9b6i","marker":"bottom-sheet__marker_w9b6i","content":"bottom-sheet__content_w9b6i","noHeader":"bottom-sheet__noHeader_w9b6i","noFooter":"bottom-sheet__noFooter_w9b6i","scrollLocked":"bottom-sheet__scrollLocked_w9b6i","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_w9b6i","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_w9b6i","appear":"bottom-sheet__appear_w9b6i","enter":"bottom-sheet__enter_w9b6i","appearActive":"bottom-sheet__appearActive_w9b6i","enterActive":"bottom-sheet__enterActive_w9b6i","enterDone":"bottom-sheet__enterDone_w9b6i","appearDone":"bottom-sheet__appearDone_w9b6i","exit":"bottom-sheet__exit_w9b6i","exitActive":"bottom-sheet__exitActive_w9b6i","background-accent":"bottom-sheet__background-accent_w9b6i","background-info":"bottom-sheet__background-info_w9b6i","background-attention-muted":"bottom-sheet__background-attention-muted_w9b6i","background-positive-muted":"bottom-sheet__background-positive-muted_w9b6i","background-negative-muted":"bottom-sheet__background-negative-muted_w9b6i","background-primary":"bottom-sheet__background-primary_w9b6i","background-primary-inverted":"bottom-sheet__background-primary-inverted_w9b6i","background-secondary":"bottom-sheet__background-secondary_w9b6i","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_w9b6i","background-tertiary":"bottom-sheet__background-tertiary_w9b6i","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_w9b6i","background-quaternary":"bottom-sheet__background-quaternary_w9b6i","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_w9b6i","background-specialbg-component":"bottom-sheet__background-specialbg-component_w9b6i","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_w9b6i","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_w9b6i","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_w9b6i","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_w9b6i","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_w9b6i","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_w9b6i","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_w9b6i","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_w9b6i"};
|
|
27
27
|
require('./index.css')
|
|
28
28
|
|
|
29
29
|
var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
@@ -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_1ra6p","sticky":"bottom-sheet__sticky_1ra6p","highlighted":"bottom-sheet__highlighted_1ra6p","background-accent":"bottom-sheet__background-accent_1ra6p","background-info":"bottom-sheet__background-info_1ra6p","background-attention-muted":"bottom-sheet__background-attention-muted_1ra6p","background-positive-muted":"bottom-sheet__background-positive-muted_1ra6p","background-negative-muted":"bottom-sheet__background-negative-muted_1ra6p","background-primary":"bottom-sheet__background-primary_1ra6p","background-primary-inverted":"bottom-sheet__background-primary-inverted_1ra6p","background-secondary":"bottom-sheet__background-secondary_1ra6p","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1ra6p","background-tertiary":"bottom-sheet__background-tertiary_1ra6p","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1ra6p","background-quaternary":"bottom-sheet__background-quaternary_1ra6p","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1ra6p","background-specialbg-component":"bottom-sheet__background-specialbg-component_1ra6p","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1ra6p","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1ra6p","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1ra6p","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1ra6p","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1ra6p","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1ra6p","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1ra6p","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ra6p"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5ef5b */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-accent: #ef3124;
|
|
@@ -41,58 +41,58 @@
|
|
|
41
41
|
} :root {
|
|
42
42
|
--bottom-sheet-footer-border-top: 1px solid var(--color-light-border-secondary);
|
|
43
43
|
--bottom-sheet-footer-background-color: var(--color-light-bg-primary);
|
|
44
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__footer_1ra6p {
|
|
45
45
|
padding: var(--gap-m) var(--gap-m);
|
|
46
46
|
background-color: var(--color-light-bg-primary);
|
|
47
|
-
} .bottom-
|
|
47
|
+
} .bottom-sheet__sticky_1ra6p {
|
|
48
48
|
position: sticky;
|
|
49
49
|
bottom: 0;
|
|
50
50
|
z-index: 1;
|
|
51
|
-
} .bottom-
|
|
51
|
+
} .bottom-sheet__highlighted_1ra6p {
|
|
52
52
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
53
53
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
54
|
-
} .bottom-sheet__background-
|
|
54
|
+
} .bottom-sheet__background-accent_1ra6p {
|
|
55
55
|
background-color: var(--color-light-bg-accent);
|
|
56
|
-
} .bottom-sheet__background-
|
|
56
|
+
} .bottom-sheet__background-info_1ra6p {
|
|
57
57
|
background-color: var(--color-light-bg-info);
|
|
58
|
-
} .bottom-sheet__background-attention-
|
|
58
|
+
} .bottom-sheet__background-attention-muted_1ra6p {
|
|
59
59
|
background-color: var(--color-light-bg-attention-muted);
|
|
60
|
-
} .bottom-sheet__background-positive-
|
|
60
|
+
} .bottom-sheet__background-positive-muted_1ra6p {
|
|
61
61
|
background-color: var(--color-light-bg-positive-muted);
|
|
62
|
-
} .bottom-sheet__background-negative-
|
|
62
|
+
} .bottom-sheet__background-negative-muted_1ra6p {
|
|
63
63
|
background-color: var(--color-light-bg-negative-muted);
|
|
64
|
-
} .bottom-sheet__background-
|
|
64
|
+
} .bottom-sheet__background-primary_1ra6p {
|
|
65
65
|
background-color: var(--color-light-bg-primary);
|
|
66
|
-
} .bottom-sheet__background-primary-
|
|
66
|
+
} .bottom-sheet__background-primary-inverted_1ra6p {
|
|
67
67
|
background-color: var(--color-light-bg-primary-inverted);
|
|
68
|
-
} .bottom-sheet__background-
|
|
68
|
+
} .bottom-sheet__background-secondary_1ra6p {
|
|
69
69
|
background-color: var(--color-light-bg-secondary);
|
|
70
|
-
} .bottom-sheet__background-secondary-
|
|
70
|
+
} .bottom-sheet__background-secondary-inverted_1ra6p {
|
|
71
71
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
72
|
-
} .bottom-sheet__background-
|
|
72
|
+
} .bottom-sheet__background-tertiary_1ra6p {
|
|
73
73
|
background-color: var(--color-light-bg-tertiary);
|
|
74
|
-
} .bottom-sheet__background-tertiary-
|
|
74
|
+
} .bottom-sheet__background-tertiary-inverted_1ra6p {
|
|
75
75
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
76
|
-
} .bottom-sheet__background-
|
|
76
|
+
} .bottom-sheet__background-quaternary_1ra6p {
|
|
77
77
|
background-color: var(--color-light-bg-quaternary);
|
|
78
|
-
} .bottom-sheet__background-quaternary-
|
|
78
|
+
} .bottom-sheet__background-quaternary-inverted_1ra6p {
|
|
79
79
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
80
|
-
} .bottom-sheet__background-specialbg-
|
|
80
|
+
} .bottom-sheet__background-specialbg-component_1ra6p {
|
|
81
81
|
background-color: var(--color-light-specialbg-component);
|
|
82
|
-
} .bottom-sheet__background-specialbg-component-
|
|
82
|
+
} .bottom-sheet__background-specialbg-component-inverted_1ra6p {
|
|
83
83
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
84
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
84
|
+
} .bottom-sheet__background-specialbg-primary-grouped_1ra6p {
|
|
85
85
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
86
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
86
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_1ra6p {
|
|
87
87
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
88
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
88
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_1ra6p {
|
|
89
89
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
90
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
90
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_1ra6p {
|
|
91
91
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
92
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
92
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_1ra6p {
|
|
93
93
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
94
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
94
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_1ra6p {
|
|
95
95
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
96
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
96
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ra6p {
|
|
97
97
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
98
98
|
}
|
|
@@ -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_1x9qh","hasContent":"bottom-sheet__hasContent_1x9qh","header":"bottom-sheet__header_1x9qh","sticky":"bottom-sheet__sticky_1x9qh","highlighted":"bottom-sheet__highlighted_1x9qh","justifyEnd":"bottom-sheet__justifyEnd_1x9qh","addon":"bottom-sheet__addon_1x9qh","addonFixed":"bottom-sheet__addonFixed_1x9qh","title":"bottom-sheet__title_1x9qh","titleCenter":"bottom-sheet__titleCenter_1x9qh","titleLeft":"bottom-sheet__titleLeft_1x9qh","trimTitle":"bottom-sheet__trimTitle_1x9qh"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ryjb2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb; /* 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 */
|
|
@@ -27,42 +27,42 @@
|
|
|
27
27
|
--bottom-sheet-title-font-weight: 700;
|
|
28
28
|
--bottom-sheet-title-line-height: 24px;
|
|
29
29
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
30
|
-
} .bottom-
|
|
30
|
+
} .bottom-sheet__headerWrapper_1x9qh {
|
|
31
31
|
padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
|
|
32
32
|
border-top-right-radius: var(--border-radius-xl);
|
|
33
33
|
border-top-left-radius: var(--border-radius-xl);
|
|
34
34
|
z-index: 1;
|
|
35
|
-
} .bottom-
|
|
35
|
+
} .bottom-sheet__hasContent_1x9qh {
|
|
36
36
|
background-color: inherit;
|
|
37
|
-
} .bottom-
|
|
37
|
+
} .bottom-sheet__header_1x9qh {
|
|
38
38
|
display: flex;
|
|
39
|
-
} .bottom-
|
|
39
|
+
} .bottom-sheet__sticky_1x9qh {
|
|
40
40
|
position: sticky;
|
|
41
41
|
top: 0;
|
|
42
|
-
} .bottom-
|
|
42
|
+
} .bottom-sheet__highlighted_1x9qh {
|
|
43
43
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
44
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__justifyEnd_1x9qh {
|
|
45
45
|
justify-content: flex-end;
|
|
46
|
-
} .bottom-
|
|
46
|
+
} .bottom-sheet__addon_1x9qh {
|
|
47
47
|
display: flex;
|
|
48
48
|
justify-content: center;
|
|
49
49
|
align-items: center;
|
|
50
50
|
min-width: 48px;
|
|
51
51
|
height: 48px;
|
|
52
|
-
} .bottom-
|
|
52
|
+
} .bottom-sheet__addonFixed_1x9qh {
|
|
53
53
|
position: fixed;
|
|
54
|
-
} .bottom-
|
|
54
|
+
} .bottom-sheet__title_1x9qh {
|
|
55
55
|
padding: var(--gap-s) var(--gap-xs);
|
|
56
56
|
width: 100%;
|
|
57
57
|
font-size: var(--bottom-sheet-title-font-size);
|
|
58
58
|
font-weight: var(--bottom-sheet-title-font-weight);
|
|
59
59
|
line-height: var(--bottom-sheet-title-line-height);
|
|
60
60
|
font-family: var(--bottom-sheet-title-font-family);
|
|
61
|
-
} .bottom-
|
|
61
|
+
} .bottom-sheet__titleCenter_1x9qh {
|
|
62
62
|
text-align: center;
|
|
63
|
-
} .bottom-
|
|
63
|
+
} .bottom-sheet__titleLeft_1x9qh {
|
|
64
64
|
text-align: left;
|
|
65
|
-
} .bottom-
|
|
65
|
+
} .bottom-sheet__trimTitle_1x9qh {
|
|
66
66
|
white-space: nowrap;
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
text-overflow: ellipsis;
|
package/esm/component.js
CHANGED
|
@@ -13,7 +13,7 @@ import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VE
|
|
|
13
13
|
import '@alfalab/core-components-navigation-bar/esm';
|
|
14
14
|
import '@alfalab/core-components-backdrop/esm';
|
|
15
15
|
|
|
16
|
-
var styles = {"modal":"bottom-
|
|
16
|
+
var styles = {"modal":"bottom-sheet__modal_w9b6i","wrapper":"bottom-sheet__wrapper_w9b6i","fullscreen":"bottom-sheet__fullscreen_w9b6i","component":"bottom-sheet__component_w9b6i","withTransition":"bottom-sheet__withTransition_w9b6i","scrollableContainer":"bottom-sheet__scrollableContainer_w9b6i","marker":"bottom-sheet__marker_w9b6i","content":"bottom-sheet__content_w9b6i","noHeader":"bottom-sheet__noHeader_w9b6i","noFooter":"bottom-sheet__noFooter_w9b6i","scrollLocked":"bottom-sheet__scrollLocked_w9b6i","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_w9b6i","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_w9b6i","appear":"bottom-sheet__appear_w9b6i","enter":"bottom-sheet__enter_w9b6i","appearActive":"bottom-sheet__appearActive_w9b6i","enterActive":"bottom-sheet__enterActive_w9b6i","enterDone":"bottom-sheet__enterDone_w9b6i","appearDone":"bottom-sheet__appearDone_w9b6i","exit":"bottom-sheet__exit_w9b6i","exitActive":"bottom-sheet__exitActive_w9b6i","background-accent":"bottom-sheet__background-accent_w9b6i","background-info":"bottom-sheet__background-info_w9b6i","background-attention-muted":"bottom-sheet__background-attention-muted_w9b6i","background-positive-muted":"bottom-sheet__background-positive-muted_w9b6i","background-negative-muted":"bottom-sheet__background-negative-muted_w9b6i","background-primary":"bottom-sheet__background-primary_w9b6i","background-primary-inverted":"bottom-sheet__background-primary-inverted_w9b6i","background-secondary":"bottom-sheet__background-secondary_w9b6i","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_w9b6i","background-tertiary":"bottom-sheet__background-tertiary_w9b6i","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_w9b6i","background-quaternary":"bottom-sheet__background-quaternary_w9b6i","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_w9b6i","background-specialbg-component":"bottom-sheet__background-specialbg-component_w9b6i","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_w9b6i","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_w9b6i","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_w9b6i","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_w9b6i","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_w9b6i","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_w9b6i","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_w9b6i","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_w9b6i"};
|
|
17
17
|
require('./index.css')
|
|
18
18
|
|
|
19
19
|
var BottomSheet = forwardRef(function (_a, ref) {
|
|
@@ -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_1ra6p","sticky":"bottom-sheet__sticky_1ra6p","highlighted":"bottom-sheet__highlighted_1ra6p","background-accent":"bottom-sheet__background-accent_1ra6p","background-info":"bottom-sheet__background-info_1ra6p","background-attention-muted":"bottom-sheet__background-attention-muted_1ra6p","background-positive-muted":"bottom-sheet__background-positive-muted_1ra6p","background-negative-muted":"bottom-sheet__background-negative-muted_1ra6p","background-primary":"bottom-sheet__background-primary_1ra6p","background-primary-inverted":"bottom-sheet__background-primary-inverted_1ra6p","background-secondary":"bottom-sheet__background-secondary_1ra6p","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1ra6p","background-tertiary":"bottom-sheet__background-tertiary_1ra6p","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1ra6p","background-quaternary":"bottom-sheet__background-quaternary_1ra6p","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1ra6p","background-specialbg-component":"bottom-sheet__background-specialbg-component_1ra6p","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1ra6p","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1ra6p","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1ra6p","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1ra6p","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1ra6p","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1ra6p","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1ra6p","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ra6p"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5ef5b */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-accent: #ef3124;
|
|
@@ -41,58 +41,58 @@
|
|
|
41
41
|
} :root {
|
|
42
42
|
--bottom-sheet-footer-border-top: 1px solid var(--color-light-border-secondary);
|
|
43
43
|
--bottom-sheet-footer-background-color: var(--color-light-bg-primary);
|
|
44
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__footer_1ra6p {
|
|
45
45
|
padding: var(--gap-m) var(--gap-m);
|
|
46
46
|
background-color: var(--color-light-bg-primary);
|
|
47
|
-
} .bottom-
|
|
47
|
+
} .bottom-sheet__sticky_1ra6p {
|
|
48
48
|
position: sticky;
|
|
49
49
|
bottom: 0;
|
|
50
50
|
z-index: 1;
|
|
51
|
-
} .bottom-
|
|
51
|
+
} .bottom-sheet__highlighted_1ra6p {
|
|
52
52
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
53
53
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
54
|
-
} .bottom-sheet__background-
|
|
54
|
+
} .bottom-sheet__background-accent_1ra6p {
|
|
55
55
|
background-color: var(--color-light-bg-accent);
|
|
56
|
-
} .bottom-sheet__background-
|
|
56
|
+
} .bottom-sheet__background-info_1ra6p {
|
|
57
57
|
background-color: var(--color-light-bg-info);
|
|
58
|
-
} .bottom-sheet__background-attention-
|
|
58
|
+
} .bottom-sheet__background-attention-muted_1ra6p {
|
|
59
59
|
background-color: var(--color-light-bg-attention-muted);
|
|
60
|
-
} .bottom-sheet__background-positive-
|
|
60
|
+
} .bottom-sheet__background-positive-muted_1ra6p {
|
|
61
61
|
background-color: var(--color-light-bg-positive-muted);
|
|
62
|
-
} .bottom-sheet__background-negative-
|
|
62
|
+
} .bottom-sheet__background-negative-muted_1ra6p {
|
|
63
63
|
background-color: var(--color-light-bg-negative-muted);
|
|
64
|
-
} .bottom-sheet__background-
|
|
64
|
+
} .bottom-sheet__background-primary_1ra6p {
|
|
65
65
|
background-color: var(--color-light-bg-primary);
|
|
66
|
-
} .bottom-sheet__background-primary-
|
|
66
|
+
} .bottom-sheet__background-primary-inverted_1ra6p {
|
|
67
67
|
background-color: var(--color-light-bg-primary-inverted);
|
|
68
|
-
} .bottom-sheet__background-
|
|
68
|
+
} .bottom-sheet__background-secondary_1ra6p {
|
|
69
69
|
background-color: var(--color-light-bg-secondary);
|
|
70
|
-
} .bottom-sheet__background-secondary-
|
|
70
|
+
} .bottom-sheet__background-secondary-inverted_1ra6p {
|
|
71
71
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
72
|
-
} .bottom-sheet__background-
|
|
72
|
+
} .bottom-sheet__background-tertiary_1ra6p {
|
|
73
73
|
background-color: var(--color-light-bg-tertiary);
|
|
74
|
-
} .bottom-sheet__background-tertiary-
|
|
74
|
+
} .bottom-sheet__background-tertiary-inverted_1ra6p {
|
|
75
75
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
76
|
-
} .bottom-sheet__background-
|
|
76
|
+
} .bottom-sheet__background-quaternary_1ra6p {
|
|
77
77
|
background-color: var(--color-light-bg-quaternary);
|
|
78
|
-
} .bottom-sheet__background-quaternary-
|
|
78
|
+
} .bottom-sheet__background-quaternary-inverted_1ra6p {
|
|
79
79
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
80
|
-
} .bottom-sheet__background-specialbg-
|
|
80
|
+
} .bottom-sheet__background-specialbg-component_1ra6p {
|
|
81
81
|
background-color: var(--color-light-specialbg-component);
|
|
82
|
-
} .bottom-sheet__background-specialbg-component-
|
|
82
|
+
} .bottom-sheet__background-specialbg-component-inverted_1ra6p {
|
|
83
83
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
84
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
84
|
+
} .bottom-sheet__background-specialbg-primary-grouped_1ra6p {
|
|
85
85
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
86
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
86
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_1ra6p {
|
|
87
87
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
88
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
88
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_1ra6p {
|
|
89
89
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
90
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
90
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_1ra6p {
|
|
91
91
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
92
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
92
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_1ra6p {
|
|
93
93
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
94
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
94
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_1ra6p {
|
|
95
95
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
96
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
96
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ra6p {
|
|
97
97
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
98
98
|
}
|
|
@@ -4,7 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
5
5
|
import { NavigationBar } from '@alfalab/core-components-navigation-bar/esm';
|
|
6
6
|
|
|
7
|
-
var styles = {"headerWrapper":"bottom-
|
|
7
|
+
var styles = {"headerWrapper":"bottom-sheet__headerWrapper_1x9qh","hasContent":"bottom-sheet__hasContent_1x9qh","header":"bottom-sheet__header_1x9qh","sticky":"bottom-sheet__sticky_1x9qh","highlighted":"bottom-sheet__highlighted_1x9qh","justifyEnd":"bottom-sheet__justifyEnd_1x9qh","addon":"bottom-sheet__addon_1x9qh","addonFixed":"bottom-sheet__addonFixed_1x9qh","title":"bottom-sheet__title_1x9qh","titleCenter":"bottom-sheet__titleCenter_1x9qh","titleLeft":"bottom-sheet__titleLeft_1x9qh","trimTitle":"bottom-sheet__trimTitle_1x9qh"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var Header = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ryjb2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb; /* 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 */
|
|
@@ -27,42 +27,42 @@
|
|
|
27
27
|
--bottom-sheet-title-font-weight: 700;
|
|
28
28
|
--bottom-sheet-title-line-height: 24px;
|
|
29
29
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
30
|
-
} .bottom-
|
|
30
|
+
} .bottom-sheet__headerWrapper_1x9qh {
|
|
31
31
|
padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
|
|
32
32
|
border-top-right-radius: var(--border-radius-xl);
|
|
33
33
|
border-top-left-radius: var(--border-radius-xl);
|
|
34
34
|
z-index: 1;
|
|
35
|
-
} .bottom-
|
|
35
|
+
} .bottom-sheet__hasContent_1x9qh {
|
|
36
36
|
background-color: inherit;
|
|
37
|
-
} .bottom-
|
|
37
|
+
} .bottom-sheet__header_1x9qh {
|
|
38
38
|
display: flex;
|
|
39
|
-
} .bottom-
|
|
39
|
+
} .bottom-sheet__sticky_1x9qh {
|
|
40
40
|
position: sticky;
|
|
41
41
|
top: 0;
|
|
42
|
-
} .bottom-
|
|
42
|
+
} .bottom-sheet__highlighted_1x9qh {
|
|
43
43
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
44
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__justifyEnd_1x9qh {
|
|
45
45
|
justify-content: flex-end;
|
|
46
|
-
} .bottom-
|
|
46
|
+
} .bottom-sheet__addon_1x9qh {
|
|
47
47
|
display: flex;
|
|
48
48
|
justify-content: center;
|
|
49
49
|
align-items: center;
|
|
50
50
|
min-width: 48px;
|
|
51
51
|
height: 48px;
|
|
52
|
-
} .bottom-
|
|
52
|
+
} .bottom-sheet__addonFixed_1x9qh {
|
|
53
53
|
position: fixed;
|
|
54
|
-
} .bottom-
|
|
54
|
+
} .bottom-sheet__title_1x9qh {
|
|
55
55
|
padding: var(--gap-s) var(--gap-xs);
|
|
56
56
|
width: 100%;
|
|
57
57
|
font-size: var(--bottom-sheet-title-font-size);
|
|
58
58
|
font-weight: var(--bottom-sheet-title-font-weight);
|
|
59
59
|
line-height: var(--bottom-sheet-title-line-height);
|
|
60
60
|
font-family: var(--bottom-sheet-title-font-family);
|
|
61
|
-
} .bottom-
|
|
61
|
+
} .bottom-sheet__titleCenter_1x9qh {
|
|
62
62
|
text-align: center;
|
|
63
|
-
} .bottom-
|
|
63
|
+
} .bottom-sheet__titleLeft_1x9qh {
|
|
64
64
|
text-align: left;
|
|
65
|
-
} .bottom-
|
|
65
|
+
} .bottom-sheet__trimTitle_1x9qh {
|
|
66
66
|
white-space: nowrap;
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
text-overflow: ellipsis;
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ibgfh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-accent: #ef3124;
|
|
@@ -45,23 +45,23 @@
|
|
|
45
45
|
} :root {
|
|
46
46
|
--bottom-sheet-in-transition: transform 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
47
47
|
--bottom-sheet-out-transition: transform 0.3s ease;
|
|
48
|
-
} .bottom-
|
|
48
|
+
} .bottom-sheet__modal_w9b6i {
|
|
49
49
|
background-color: transparent;
|
|
50
50
|
position: fixed;
|
|
51
51
|
bottom: 0;
|
|
52
52
|
width: 100%;
|
|
53
53
|
max-width: 600px;
|
|
54
54
|
pointer-events: none;
|
|
55
|
-
} .bottom-
|
|
55
|
+
} .bottom-sheet__wrapper_w9b6i {
|
|
56
56
|
transform: translateY(100%);
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
pointer-events: none;
|
|
59
59
|
border-top-right-radius: var(--border-radius-xl);
|
|
60
60
|
border-top-left-radius: var(--border-radius-xl);
|
|
61
61
|
transition: border-radius 0.3s ease;
|
|
62
|
-
} .bottom-
|
|
62
|
+
} .bottom-sheet__fullscreen_w9b6i {
|
|
63
63
|
border-radius: 0;
|
|
64
|
-
} .bottom-
|
|
64
|
+
} .bottom-sheet__component_w9b6i {
|
|
65
65
|
overflow: hidden;
|
|
66
66
|
position: relative;
|
|
67
67
|
display: flex;
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
border-radius: inherit;
|
|
70
70
|
background-color: var(--color-light-bg-primary);
|
|
71
71
|
pointer-events: all;
|
|
72
|
-
} .bottom-
|
|
72
|
+
} .bottom-sheet__withTransition_w9b6i {
|
|
73
73
|
transition: var(--bottom-sheet-out-transition);
|
|
74
|
-
} .bottom-
|
|
74
|
+
} .bottom-sheet__scrollableContainer_w9b6i {
|
|
75
75
|
overflow: auto;
|
|
76
76
|
display: flex;
|
|
77
77
|
flex-direction: column;
|
|
78
78
|
position: relative;
|
|
79
79
|
height: 100%;
|
|
80
80
|
background-color: inherit;
|
|
81
|
-
} .bottom-
|
|
81
|
+
} .bottom-sheet__marker_w9b6i {
|
|
82
82
|
position: fixed;
|
|
83
83
|
top: var(--gap-2xs);
|
|
84
84
|
left: 50%;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
transform: translateX(-50%);
|
|
89
89
|
background-color: var(--color-light-graphic-quaternary);
|
|
90
90
|
z-index: 1000;
|
|
91
|
-
} .bottom-
|
|
91
|
+
} .bottom-sheet__content_w9b6i {
|
|
92
92
|
position: relative;
|
|
93
93
|
z-index: 0;
|
|
94
94
|
display: flex;
|
|
@@ -97,73 +97,73 @@
|
|
|
97
97
|
padding: 0 var(--gap-m);
|
|
98
98
|
color: var(--color-light-text-primary);
|
|
99
99
|
background-color: inherit;
|
|
100
|
-
} .bottom-
|
|
100
|
+
} .bottom-sheet__noHeader_w9b6i {
|
|
101
101
|
padding-top: var(--gap-m);
|
|
102
|
-
} .bottom-
|
|
102
|
+
} .bottom-sheet__noFooter_w9b6i {
|
|
103
103
|
padding-bottom: var(--gap-m);
|
|
104
|
-
} .bottom-
|
|
104
|
+
} .bottom-sheet__scrollLocked_w9b6i {
|
|
105
105
|
overflow: hidden;
|
|
106
|
-
} .bottom-
|
|
106
|
+
} .bottom-sheet__hiddenScrollbar_w9b6i {
|
|
107
107
|
scrollbar-width: none
|
|
108
|
-
} .bottom-
|
|
108
|
+
} .bottom-sheet__hiddenScrollbar_w9b6i::-webkit-scrollbar {
|
|
109
109
|
width: 0;
|
|
110
110
|
height: 0;
|
|
111
|
-
} .bottom-
|
|
111
|
+
} .bottom-sheet__disabledPointerEvents_w9b6i {
|
|
112
112
|
pointer-events: none;
|
|
113
|
-
} .bottom-
|
|
113
|
+
} .bottom-sheet__appear_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__enter_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
114
114
|
transition: none;
|
|
115
|
-
} .bottom-
|
|
115
|
+
} .bottom-sheet__appearActive_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__enterActive_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
116
116
|
transition: var(--bottom-sheet-in-transition);
|
|
117
117
|
transform: translateY(0);
|
|
118
|
-
} .bottom-
|
|
118
|
+
} .bottom-sheet__enterDone_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__appearDone_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
119
119
|
transform: translateY(0);
|
|
120
|
-
} .bottom-
|
|
120
|
+
} .bottom-sheet__exit_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
121
121
|
transform: translateY(0);
|
|
122
|
-
} .bottom-
|
|
122
|
+
} .bottom-sheet__exitActive_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
123
123
|
transition: var(--bottom-sheet-out-transition);
|
|
124
124
|
transform: translateY(100%);
|
|
125
|
-
} .bottom-sheet__background-
|
|
125
|
+
} .bottom-sheet__background-accent_w9b6i {
|
|
126
126
|
background-color: var(--color-light-bg-accent);
|
|
127
|
-
} .bottom-sheet__background-
|
|
127
|
+
} .bottom-sheet__background-info_w9b6i {
|
|
128
128
|
background-color: var(--color-light-bg-info);
|
|
129
|
-
} .bottom-sheet__background-attention-
|
|
129
|
+
} .bottom-sheet__background-attention-muted_w9b6i {
|
|
130
130
|
background-color: var(--color-light-bg-attention-muted);
|
|
131
|
-
} .bottom-sheet__background-positive-
|
|
131
|
+
} .bottom-sheet__background-positive-muted_w9b6i {
|
|
132
132
|
background-color: var(--color-light-bg-positive-muted);
|
|
133
|
-
} .bottom-sheet__background-negative-
|
|
133
|
+
} .bottom-sheet__background-negative-muted_w9b6i {
|
|
134
134
|
background-color: var(--color-light-bg-negative-muted);
|
|
135
|
-
} .bottom-sheet__background-
|
|
135
|
+
} .bottom-sheet__background-primary_w9b6i {
|
|
136
136
|
background-color: var(--color-light-bg-primary);
|
|
137
|
-
} .bottom-sheet__background-primary-
|
|
137
|
+
} .bottom-sheet__background-primary-inverted_w9b6i {
|
|
138
138
|
background-color: var(--color-light-bg-primary-inverted);
|
|
139
|
-
} .bottom-sheet__background-
|
|
139
|
+
} .bottom-sheet__background-secondary_w9b6i {
|
|
140
140
|
background-color: var(--color-light-bg-secondary);
|
|
141
|
-
} .bottom-sheet__background-secondary-
|
|
141
|
+
} .bottom-sheet__background-secondary-inverted_w9b6i {
|
|
142
142
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
143
|
-
} .bottom-sheet__background-
|
|
143
|
+
} .bottom-sheet__background-tertiary_w9b6i {
|
|
144
144
|
background-color: var(--color-light-bg-tertiary);
|
|
145
|
-
} .bottom-sheet__background-tertiary-
|
|
145
|
+
} .bottom-sheet__background-tertiary-inverted_w9b6i {
|
|
146
146
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
147
|
-
} .bottom-sheet__background-
|
|
147
|
+
} .bottom-sheet__background-quaternary_w9b6i {
|
|
148
148
|
background-color: var(--color-light-bg-quaternary);
|
|
149
|
-
} .bottom-sheet__background-quaternary-
|
|
149
|
+
} .bottom-sheet__background-quaternary-inverted_w9b6i {
|
|
150
150
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
151
|
-
} .bottom-sheet__background-specialbg-
|
|
151
|
+
} .bottom-sheet__background-specialbg-component_w9b6i {
|
|
152
152
|
background-color: var(--color-light-specialbg-component);
|
|
153
|
-
} .bottom-sheet__background-specialbg-component-
|
|
153
|
+
} .bottom-sheet__background-specialbg-component-inverted_w9b6i {
|
|
154
154
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
155
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
155
|
+
} .bottom-sheet__background-specialbg-primary-grouped_w9b6i {
|
|
156
156
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
157
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
157
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_w9b6i {
|
|
158
158
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
159
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
159
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_w9b6i {
|
|
160
160
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
161
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
161
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_w9b6i {
|
|
162
162
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
163
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
163
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_w9b6i {
|
|
164
164
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
165
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
165
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_w9b6i {
|
|
166
166
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
167
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
167
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_w9b6i {
|
|
168
168
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
169
169
|
}
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ibgfh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-accent: #ef3124;
|
|
@@ -45,23 +45,23 @@
|
|
|
45
45
|
} :root {
|
|
46
46
|
--bottom-sheet-in-transition: transform 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
47
47
|
--bottom-sheet-out-transition: transform 0.3s ease;
|
|
48
|
-
} .bottom-
|
|
48
|
+
} .bottom-sheet__modal_w9b6i {
|
|
49
49
|
background-color: transparent;
|
|
50
50
|
position: fixed;
|
|
51
51
|
bottom: 0;
|
|
52
52
|
width: 100%;
|
|
53
53
|
max-width: 600px;
|
|
54
54
|
pointer-events: none;
|
|
55
|
-
} .bottom-
|
|
55
|
+
} .bottom-sheet__wrapper_w9b6i {
|
|
56
56
|
transform: translateY(100%);
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
pointer-events: none;
|
|
59
59
|
border-top-right-radius: var(--border-radius-xl);
|
|
60
60
|
border-top-left-radius: var(--border-radius-xl);
|
|
61
61
|
transition: border-radius 0.3s ease;
|
|
62
|
-
} .bottom-
|
|
62
|
+
} .bottom-sheet__fullscreen_w9b6i {
|
|
63
63
|
border-radius: 0;
|
|
64
|
-
} .bottom-
|
|
64
|
+
} .bottom-sheet__component_w9b6i {
|
|
65
65
|
overflow: hidden;
|
|
66
66
|
position: relative;
|
|
67
67
|
display: flex;
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
border-radius: inherit;
|
|
70
70
|
background-color: var(--color-light-bg-primary);
|
|
71
71
|
pointer-events: all;
|
|
72
|
-
} .bottom-
|
|
72
|
+
} .bottom-sheet__withTransition_w9b6i {
|
|
73
73
|
transition: var(--bottom-sheet-out-transition);
|
|
74
|
-
} .bottom-
|
|
74
|
+
} .bottom-sheet__scrollableContainer_w9b6i {
|
|
75
75
|
overflow: auto;
|
|
76
76
|
display: flex;
|
|
77
77
|
flex-direction: column;
|
|
78
78
|
position: relative;
|
|
79
79
|
height: 100%;
|
|
80
80
|
background-color: inherit;
|
|
81
|
-
} .bottom-
|
|
81
|
+
} .bottom-sheet__marker_w9b6i {
|
|
82
82
|
position: fixed;
|
|
83
83
|
top: var(--gap-2xs);
|
|
84
84
|
left: 50%;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
transform: translateX(-50%);
|
|
89
89
|
background-color: var(--color-light-graphic-quaternary);
|
|
90
90
|
z-index: 1000;
|
|
91
|
-
} .bottom-
|
|
91
|
+
} .bottom-sheet__content_w9b6i {
|
|
92
92
|
position: relative;
|
|
93
93
|
z-index: 0;
|
|
94
94
|
display: flex;
|
|
@@ -97,73 +97,73 @@
|
|
|
97
97
|
padding: 0 var(--gap-m);
|
|
98
98
|
color: var(--color-light-text-primary);
|
|
99
99
|
background-color: inherit;
|
|
100
|
-
} .bottom-
|
|
100
|
+
} .bottom-sheet__noHeader_w9b6i {
|
|
101
101
|
padding-top: var(--gap-m);
|
|
102
|
-
} .bottom-
|
|
102
|
+
} .bottom-sheet__noFooter_w9b6i {
|
|
103
103
|
padding-bottom: var(--gap-m);
|
|
104
|
-
} .bottom-
|
|
104
|
+
} .bottom-sheet__scrollLocked_w9b6i {
|
|
105
105
|
overflow: hidden;
|
|
106
|
-
} .bottom-
|
|
106
|
+
} .bottom-sheet__hiddenScrollbar_w9b6i {
|
|
107
107
|
scrollbar-width: none
|
|
108
|
-
} .bottom-
|
|
108
|
+
} .bottom-sheet__hiddenScrollbar_w9b6i::-webkit-scrollbar {
|
|
109
109
|
width: 0;
|
|
110
110
|
height: 0;
|
|
111
|
-
} .bottom-
|
|
111
|
+
} .bottom-sheet__disabledPointerEvents_w9b6i {
|
|
112
112
|
pointer-events: none;
|
|
113
|
-
} .bottom-
|
|
113
|
+
} .bottom-sheet__appear_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__enter_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
114
114
|
transition: none;
|
|
115
|
-
} .bottom-
|
|
115
|
+
} .bottom-sheet__appearActive_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__enterActive_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
116
116
|
transition: var(--bottom-sheet-in-transition);
|
|
117
117
|
transform: translateY(0);
|
|
118
|
-
} .bottom-
|
|
118
|
+
} .bottom-sheet__enterDone_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__appearDone_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
119
119
|
transform: translateY(0);
|
|
120
|
-
} .bottom-
|
|
120
|
+
} .bottom-sheet__exit_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
121
121
|
transform: translateY(0);
|
|
122
|
-
} .bottom-
|
|
122
|
+
} .bottom-sheet__exitActive_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
123
123
|
transition: var(--bottom-sheet-out-transition);
|
|
124
124
|
transform: translateY(100%);
|
|
125
|
-
} .bottom-sheet__background-
|
|
125
|
+
} .bottom-sheet__background-accent_w9b6i {
|
|
126
126
|
background-color: var(--color-light-bg-accent);
|
|
127
|
-
} .bottom-sheet__background-
|
|
127
|
+
} .bottom-sheet__background-info_w9b6i {
|
|
128
128
|
background-color: var(--color-light-bg-info);
|
|
129
|
-
} .bottom-sheet__background-attention-
|
|
129
|
+
} .bottom-sheet__background-attention-muted_w9b6i {
|
|
130
130
|
background-color: var(--color-light-bg-attention-muted);
|
|
131
|
-
} .bottom-sheet__background-positive-
|
|
131
|
+
} .bottom-sheet__background-positive-muted_w9b6i {
|
|
132
132
|
background-color: var(--color-light-bg-positive-muted);
|
|
133
|
-
} .bottom-sheet__background-negative-
|
|
133
|
+
} .bottom-sheet__background-negative-muted_w9b6i {
|
|
134
134
|
background-color: var(--color-light-bg-negative-muted);
|
|
135
|
-
} .bottom-sheet__background-
|
|
135
|
+
} .bottom-sheet__background-primary_w9b6i {
|
|
136
136
|
background-color: var(--color-light-bg-primary);
|
|
137
|
-
} .bottom-sheet__background-primary-
|
|
137
|
+
} .bottom-sheet__background-primary-inverted_w9b6i {
|
|
138
138
|
background-color: var(--color-light-bg-primary-inverted);
|
|
139
|
-
} .bottom-sheet__background-
|
|
139
|
+
} .bottom-sheet__background-secondary_w9b6i {
|
|
140
140
|
background-color: var(--color-light-bg-secondary);
|
|
141
|
-
} .bottom-sheet__background-secondary-
|
|
141
|
+
} .bottom-sheet__background-secondary-inverted_w9b6i {
|
|
142
142
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
143
|
-
} .bottom-sheet__background-
|
|
143
|
+
} .bottom-sheet__background-tertiary_w9b6i {
|
|
144
144
|
background-color: var(--color-light-bg-tertiary);
|
|
145
|
-
} .bottom-sheet__background-tertiary-
|
|
145
|
+
} .bottom-sheet__background-tertiary-inverted_w9b6i {
|
|
146
146
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
147
|
-
} .bottom-sheet__background-
|
|
147
|
+
} .bottom-sheet__background-quaternary_w9b6i {
|
|
148
148
|
background-color: var(--color-light-bg-quaternary);
|
|
149
|
-
} .bottom-sheet__background-quaternary-
|
|
149
|
+
} .bottom-sheet__background-quaternary-inverted_w9b6i {
|
|
150
150
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
151
|
-
} .bottom-sheet__background-specialbg-
|
|
151
|
+
} .bottom-sheet__background-specialbg-component_w9b6i {
|
|
152
152
|
background-color: var(--color-light-specialbg-component);
|
|
153
|
-
} .bottom-sheet__background-specialbg-component-
|
|
153
|
+
} .bottom-sheet__background-specialbg-component-inverted_w9b6i {
|
|
154
154
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
155
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
155
|
+
} .bottom-sheet__background-specialbg-primary-grouped_w9b6i {
|
|
156
156
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
157
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
157
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_w9b6i {
|
|
158
158
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
159
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
159
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_w9b6i {
|
|
160
160
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
161
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
161
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_w9b6i {
|
|
162
162
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
163
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
163
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_w9b6i {
|
|
164
164
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
165
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
165
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_w9b6i {
|
|
166
166
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
167
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
167
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_w9b6i {
|
|
168
168
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
169
169
|
}
|
package/modern/component.js
CHANGED
|
@@ -12,7 +12,7 @@ import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VE
|
|
|
12
12
|
import '@alfalab/core-components-navigation-bar/modern';
|
|
13
13
|
import '@alfalab/core-components-backdrop/modern';
|
|
14
14
|
|
|
15
|
-
const styles = {"modal":"bottom-
|
|
15
|
+
const styles = {"modal":"bottom-sheet__modal_w9b6i","wrapper":"bottom-sheet__wrapper_w9b6i","fullscreen":"bottom-sheet__fullscreen_w9b6i","component":"bottom-sheet__component_w9b6i","withTransition":"bottom-sheet__withTransition_w9b6i","scrollableContainer":"bottom-sheet__scrollableContainer_w9b6i","marker":"bottom-sheet__marker_w9b6i","content":"bottom-sheet__content_w9b6i","noHeader":"bottom-sheet__noHeader_w9b6i","noFooter":"bottom-sheet__noFooter_w9b6i","scrollLocked":"bottom-sheet__scrollLocked_w9b6i","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_w9b6i","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_w9b6i","appear":"bottom-sheet__appear_w9b6i","enter":"bottom-sheet__enter_w9b6i","appearActive":"bottom-sheet__appearActive_w9b6i","enterActive":"bottom-sheet__enterActive_w9b6i","enterDone":"bottom-sheet__enterDone_w9b6i","appearDone":"bottom-sheet__appearDone_w9b6i","exit":"bottom-sheet__exit_w9b6i","exitActive":"bottom-sheet__exitActive_w9b6i","background-accent":"bottom-sheet__background-accent_w9b6i","background-info":"bottom-sheet__background-info_w9b6i","background-attention-muted":"bottom-sheet__background-attention-muted_w9b6i","background-positive-muted":"bottom-sheet__background-positive-muted_w9b6i","background-negative-muted":"bottom-sheet__background-negative-muted_w9b6i","background-primary":"bottom-sheet__background-primary_w9b6i","background-primary-inverted":"bottom-sheet__background-primary-inverted_w9b6i","background-secondary":"bottom-sheet__background-secondary_w9b6i","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_w9b6i","background-tertiary":"bottom-sheet__background-tertiary_w9b6i","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_w9b6i","background-quaternary":"bottom-sheet__background-quaternary_w9b6i","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_w9b6i","background-specialbg-component":"bottom-sheet__background-specialbg-component_w9b6i","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_w9b6i","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_w9b6i","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_w9b6i","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_w9b6i","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_w9b6i","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_w9b6i","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_w9b6i","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_w9b6i"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, onClose, onBack, onMagnetize, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, }, ref) => {
|
|
@@ -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/modern';
|
|
4
4
|
|
|
5
|
-
const styles = {"footer":"bottom-
|
|
5
|
+
const styles = {"footer":"bottom-sheet__footer_1ra6p","sticky":"bottom-sheet__sticky_1ra6p","highlighted":"bottom-sheet__highlighted_1ra6p","background-accent":"bottom-sheet__background-accent_1ra6p","background-info":"bottom-sheet__background-info_1ra6p","background-attention-muted":"bottom-sheet__background-attention-muted_1ra6p","background-positive-muted":"bottom-sheet__background-positive-muted_1ra6p","background-negative-muted":"bottom-sheet__background-negative-muted_1ra6p","background-primary":"bottom-sheet__background-primary_1ra6p","background-primary-inverted":"bottom-sheet__background-primary-inverted_1ra6p","background-secondary":"bottom-sheet__background-secondary_1ra6p","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_1ra6p","background-tertiary":"bottom-sheet__background-tertiary_1ra6p","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_1ra6p","background-quaternary":"bottom-sheet__background-quaternary_1ra6p","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_1ra6p","background-specialbg-component":"bottom-sheet__background-specialbg-component_1ra6p","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_1ra6p","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_1ra6p","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_1ra6p","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_1ra6p","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_1ra6p","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_1ra6p","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_1ra6p","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ra6p"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Footer = ({ children, className, sticky }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 5ef5b */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-accent: #ef3124;
|
|
@@ -41,58 +41,58 @@
|
|
|
41
41
|
} :root {
|
|
42
42
|
--bottom-sheet-footer-border-top: 1px solid var(--color-light-border-secondary);
|
|
43
43
|
--bottom-sheet-footer-background-color: var(--color-light-bg-primary);
|
|
44
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__footer_1ra6p {
|
|
45
45
|
padding: var(--gap-m) var(--gap-m);
|
|
46
46
|
background-color: var(--color-light-bg-primary);
|
|
47
|
-
} .bottom-
|
|
47
|
+
} .bottom-sheet__sticky_1ra6p {
|
|
48
48
|
position: sticky;
|
|
49
49
|
bottom: 0;
|
|
50
50
|
z-index: 1;
|
|
51
|
-
} .bottom-
|
|
51
|
+
} .bottom-sheet__highlighted_1ra6p {
|
|
52
52
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
53
53
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
54
|
-
} .bottom-sheet__background-
|
|
54
|
+
} .bottom-sheet__background-accent_1ra6p {
|
|
55
55
|
background-color: var(--color-light-bg-accent);
|
|
56
|
-
} .bottom-sheet__background-
|
|
56
|
+
} .bottom-sheet__background-info_1ra6p {
|
|
57
57
|
background-color: var(--color-light-bg-info);
|
|
58
|
-
} .bottom-sheet__background-attention-
|
|
58
|
+
} .bottom-sheet__background-attention-muted_1ra6p {
|
|
59
59
|
background-color: var(--color-light-bg-attention-muted);
|
|
60
|
-
} .bottom-sheet__background-positive-
|
|
60
|
+
} .bottom-sheet__background-positive-muted_1ra6p {
|
|
61
61
|
background-color: var(--color-light-bg-positive-muted);
|
|
62
|
-
} .bottom-sheet__background-negative-
|
|
62
|
+
} .bottom-sheet__background-negative-muted_1ra6p {
|
|
63
63
|
background-color: var(--color-light-bg-negative-muted);
|
|
64
|
-
} .bottom-sheet__background-
|
|
64
|
+
} .bottom-sheet__background-primary_1ra6p {
|
|
65
65
|
background-color: var(--color-light-bg-primary);
|
|
66
|
-
} .bottom-sheet__background-primary-
|
|
66
|
+
} .bottom-sheet__background-primary-inverted_1ra6p {
|
|
67
67
|
background-color: var(--color-light-bg-primary-inverted);
|
|
68
|
-
} .bottom-sheet__background-
|
|
68
|
+
} .bottom-sheet__background-secondary_1ra6p {
|
|
69
69
|
background-color: var(--color-light-bg-secondary);
|
|
70
|
-
} .bottom-sheet__background-secondary-
|
|
70
|
+
} .bottom-sheet__background-secondary-inverted_1ra6p {
|
|
71
71
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
72
|
-
} .bottom-sheet__background-
|
|
72
|
+
} .bottom-sheet__background-tertiary_1ra6p {
|
|
73
73
|
background-color: var(--color-light-bg-tertiary);
|
|
74
|
-
} .bottom-sheet__background-tertiary-
|
|
74
|
+
} .bottom-sheet__background-tertiary-inverted_1ra6p {
|
|
75
75
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
76
|
-
} .bottom-sheet__background-
|
|
76
|
+
} .bottom-sheet__background-quaternary_1ra6p {
|
|
77
77
|
background-color: var(--color-light-bg-quaternary);
|
|
78
|
-
} .bottom-sheet__background-quaternary-
|
|
78
|
+
} .bottom-sheet__background-quaternary-inverted_1ra6p {
|
|
79
79
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
80
|
-
} .bottom-sheet__background-specialbg-
|
|
80
|
+
} .bottom-sheet__background-specialbg-component_1ra6p {
|
|
81
81
|
background-color: var(--color-light-specialbg-component);
|
|
82
|
-
} .bottom-sheet__background-specialbg-component-
|
|
82
|
+
} .bottom-sheet__background-specialbg-component-inverted_1ra6p {
|
|
83
83
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
84
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
84
|
+
} .bottom-sheet__background-specialbg-primary-grouped_1ra6p {
|
|
85
85
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
86
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
86
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_1ra6p {
|
|
87
87
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
88
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
88
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_1ra6p {
|
|
89
89
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
90
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
90
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_1ra6p {
|
|
91
91
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
92
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
92
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_1ra6p {
|
|
93
93
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
94
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
94
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_1ra6p {
|
|
95
95
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
96
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
96
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_1ra6p {
|
|
97
97
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
98
98
|
}
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import { NavigationBar } from '@alfalab/core-components-navigation-bar/modern';
|
|
5
5
|
|
|
6
|
-
const styles = {"headerWrapper":"bottom-
|
|
6
|
+
const styles = {"headerWrapper":"bottom-sheet__headerWrapper_1x9qh","hasContent":"bottom-sheet__hasContent_1x9qh","header":"bottom-sheet__header_1x9qh","sticky":"bottom-sheet__sticky_1x9qh","highlighted":"bottom-sheet__highlighted_1x9qh","justifyEnd":"bottom-sheet__justifyEnd_1x9qh","addon":"bottom-sheet__addon_1x9qh","addonFixed":"bottom-sheet__addonFixed_1x9qh","title":"bottom-sheet__title_1x9qh","titleCenter":"bottom-sheet__titleCenter_1x9qh","titleLeft":"bottom-sheet__titleLeft_1x9qh","trimTitle":"bottom-sheet__trimTitle_1x9qh"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Header = ({ className, sticky, headerRef, headerOffset, title, children, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ryjb2 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb; /* 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 */
|
|
@@ -27,42 +27,42 @@
|
|
|
27
27
|
--bottom-sheet-title-font-weight: 700;
|
|
28
28
|
--bottom-sheet-title-line-height: 24px;
|
|
29
29
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
30
|
-
} .bottom-
|
|
30
|
+
} .bottom-sheet__headerWrapper_1x9qh {
|
|
31
31
|
padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
|
|
32
32
|
border-top-right-radius: var(--border-radius-xl);
|
|
33
33
|
border-top-left-radius: var(--border-radius-xl);
|
|
34
34
|
z-index: 1;
|
|
35
|
-
} .bottom-
|
|
35
|
+
} .bottom-sheet__hasContent_1x9qh {
|
|
36
36
|
background-color: inherit;
|
|
37
|
-
} .bottom-
|
|
37
|
+
} .bottom-sheet__header_1x9qh {
|
|
38
38
|
display: flex;
|
|
39
|
-
} .bottom-
|
|
39
|
+
} .bottom-sheet__sticky_1x9qh {
|
|
40
40
|
position: sticky;
|
|
41
41
|
top: 0;
|
|
42
|
-
} .bottom-
|
|
42
|
+
} .bottom-sheet__highlighted_1x9qh {
|
|
43
43
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
44
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__justifyEnd_1x9qh {
|
|
45
45
|
justify-content: flex-end;
|
|
46
|
-
} .bottom-
|
|
46
|
+
} .bottom-sheet__addon_1x9qh {
|
|
47
47
|
display: flex;
|
|
48
48
|
justify-content: center;
|
|
49
49
|
align-items: center;
|
|
50
50
|
min-width: 48px;
|
|
51
51
|
height: 48px;
|
|
52
|
-
} .bottom-
|
|
52
|
+
} .bottom-sheet__addonFixed_1x9qh {
|
|
53
53
|
position: fixed;
|
|
54
|
-
} .bottom-
|
|
54
|
+
} .bottom-sheet__title_1x9qh {
|
|
55
55
|
padding: var(--gap-s) var(--gap-xs);
|
|
56
56
|
width: 100%;
|
|
57
57
|
font-size: var(--bottom-sheet-title-font-size);
|
|
58
58
|
font-weight: var(--bottom-sheet-title-font-weight);
|
|
59
59
|
line-height: var(--bottom-sheet-title-line-height);
|
|
60
60
|
font-family: var(--bottom-sheet-title-font-family);
|
|
61
|
-
} .bottom-
|
|
61
|
+
} .bottom-sheet__titleCenter_1x9qh {
|
|
62
62
|
text-align: center;
|
|
63
|
-
} .bottom-
|
|
63
|
+
} .bottom-sheet__titleLeft_1x9qh {
|
|
64
64
|
text-align: left;
|
|
65
|
-
} .bottom-
|
|
65
|
+
} .bottom-sheet__trimTitle_1x9qh {
|
|
66
66
|
white-space: nowrap;
|
|
67
67
|
overflow: hidden;
|
|
68
68
|
text-overflow: ellipsis;
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ibgfh */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-accent: #ef3124;
|
|
@@ -45,23 +45,23 @@
|
|
|
45
45
|
} :root {
|
|
46
46
|
--bottom-sheet-in-transition: transform 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
47
47
|
--bottom-sheet-out-transition: transform 0.3s ease;
|
|
48
|
-
} .bottom-
|
|
48
|
+
} .bottom-sheet__modal_w9b6i {
|
|
49
49
|
background-color: transparent;
|
|
50
50
|
position: fixed;
|
|
51
51
|
bottom: 0;
|
|
52
52
|
width: 100%;
|
|
53
53
|
max-width: 600px;
|
|
54
54
|
pointer-events: none;
|
|
55
|
-
} .bottom-
|
|
55
|
+
} .bottom-sheet__wrapper_w9b6i {
|
|
56
56
|
transform: translateY(100%);
|
|
57
57
|
overflow: hidden;
|
|
58
58
|
pointer-events: none;
|
|
59
59
|
border-top-right-radius: var(--border-radius-xl);
|
|
60
60
|
border-top-left-radius: var(--border-radius-xl);
|
|
61
61
|
transition: border-radius 0.3s ease;
|
|
62
|
-
} .bottom-
|
|
62
|
+
} .bottom-sheet__fullscreen_w9b6i {
|
|
63
63
|
border-radius: 0;
|
|
64
|
-
} .bottom-
|
|
64
|
+
} .bottom-sheet__component_w9b6i {
|
|
65
65
|
overflow: hidden;
|
|
66
66
|
position: relative;
|
|
67
67
|
display: flex;
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
border-radius: inherit;
|
|
70
70
|
background-color: var(--color-light-bg-primary);
|
|
71
71
|
pointer-events: all;
|
|
72
|
-
} .bottom-
|
|
72
|
+
} .bottom-sheet__withTransition_w9b6i {
|
|
73
73
|
transition: var(--bottom-sheet-out-transition);
|
|
74
|
-
} .bottom-
|
|
74
|
+
} .bottom-sheet__scrollableContainer_w9b6i {
|
|
75
75
|
overflow: auto;
|
|
76
76
|
display: flex;
|
|
77
77
|
flex-direction: column;
|
|
78
78
|
position: relative;
|
|
79
79
|
height: 100%;
|
|
80
80
|
background-color: inherit;
|
|
81
|
-
} .bottom-
|
|
81
|
+
} .bottom-sheet__marker_w9b6i {
|
|
82
82
|
position: fixed;
|
|
83
83
|
top: var(--gap-2xs);
|
|
84
84
|
left: 50%;
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
transform: translateX(-50%);
|
|
89
89
|
background-color: var(--color-light-graphic-quaternary);
|
|
90
90
|
z-index: 1000;
|
|
91
|
-
} .bottom-
|
|
91
|
+
} .bottom-sheet__content_w9b6i {
|
|
92
92
|
position: relative;
|
|
93
93
|
z-index: 0;
|
|
94
94
|
display: flex;
|
|
@@ -97,73 +97,73 @@
|
|
|
97
97
|
padding: 0 var(--gap-m);
|
|
98
98
|
color: var(--color-light-text-primary);
|
|
99
99
|
background-color: inherit;
|
|
100
|
-
} .bottom-
|
|
100
|
+
} .bottom-sheet__noHeader_w9b6i {
|
|
101
101
|
padding-top: var(--gap-m);
|
|
102
|
-
} .bottom-
|
|
102
|
+
} .bottom-sheet__noFooter_w9b6i {
|
|
103
103
|
padding-bottom: var(--gap-m);
|
|
104
|
-
} .bottom-
|
|
104
|
+
} .bottom-sheet__scrollLocked_w9b6i {
|
|
105
105
|
overflow: hidden;
|
|
106
|
-
} .bottom-
|
|
106
|
+
} .bottom-sheet__hiddenScrollbar_w9b6i {
|
|
107
107
|
scrollbar-width: none
|
|
108
|
-
} .bottom-
|
|
108
|
+
} .bottom-sheet__hiddenScrollbar_w9b6i::-webkit-scrollbar {
|
|
109
109
|
width: 0;
|
|
110
110
|
height: 0;
|
|
111
|
-
} .bottom-
|
|
111
|
+
} .bottom-sheet__disabledPointerEvents_w9b6i {
|
|
112
112
|
pointer-events: none;
|
|
113
|
-
} .bottom-
|
|
113
|
+
} .bottom-sheet__appear_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__enter_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
114
114
|
transition: none;
|
|
115
|
-
} .bottom-
|
|
115
|
+
} .bottom-sheet__appearActive_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__enterActive_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
116
116
|
transition: var(--bottom-sheet-in-transition);
|
|
117
117
|
transform: translateY(0);
|
|
118
|
-
} .bottom-
|
|
118
|
+
} .bottom-sheet__enterDone_w9b6i .bottom-sheet__wrapper_w9b6i, .bottom-sheet__appearDone_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
119
119
|
transform: translateY(0);
|
|
120
|
-
} .bottom-
|
|
120
|
+
} .bottom-sheet__exit_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
121
121
|
transform: translateY(0);
|
|
122
|
-
} .bottom-
|
|
122
|
+
} .bottom-sheet__exitActive_w9b6i .bottom-sheet__wrapper_w9b6i {
|
|
123
123
|
transition: var(--bottom-sheet-out-transition);
|
|
124
124
|
transform: translateY(100%);
|
|
125
|
-
} .bottom-sheet__background-
|
|
125
|
+
} .bottom-sheet__background-accent_w9b6i {
|
|
126
126
|
background-color: var(--color-light-bg-accent);
|
|
127
|
-
} .bottom-sheet__background-
|
|
127
|
+
} .bottom-sheet__background-info_w9b6i {
|
|
128
128
|
background-color: var(--color-light-bg-info);
|
|
129
|
-
} .bottom-sheet__background-attention-
|
|
129
|
+
} .bottom-sheet__background-attention-muted_w9b6i {
|
|
130
130
|
background-color: var(--color-light-bg-attention-muted);
|
|
131
|
-
} .bottom-sheet__background-positive-
|
|
131
|
+
} .bottom-sheet__background-positive-muted_w9b6i {
|
|
132
132
|
background-color: var(--color-light-bg-positive-muted);
|
|
133
|
-
} .bottom-sheet__background-negative-
|
|
133
|
+
} .bottom-sheet__background-negative-muted_w9b6i {
|
|
134
134
|
background-color: var(--color-light-bg-negative-muted);
|
|
135
|
-
} .bottom-sheet__background-
|
|
135
|
+
} .bottom-sheet__background-primary_w9b6i {
|
|
136
136
|
background-color: var(--color-light-bg-primary);
|
|
137
|
-
} .bottom-sheet__background-primary-
|
|
137
|
+
} .bottom-sheet__background-primary-inverted_w9b6i {
|
|
138
138
|
background-color: var(--color-light-bg-primary-inverted);
|
|
139
|
-
} .bottom-sheet__background-
|
|
139
|
+
} .bottom-sheet__background-secondary_w9b6i {
|
|
140
140
|
background-color: var(--color-light-bg-secondary);
|
|
141
|
-
} .bottom-sheet__background-secondary-
|
|
141
|
+
} .bottom-sheet__background-secondary-inverted_w9b6i {
|
|
142
142
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
143
|
-
} .bottom-sheet__background-
|
|
143
|
+
} .bottom-sheet__background-tertiary_w9b6i {
|
|
144
144
|
background-color: var(--color-light-bg-tertiary);
|
|
145
|
-
} .bottom-sheet__background-tertiary-
|
|
145
|
+
} .bottom-sheet__background-tertiary-inverted_w9b6i {
|
|
146
146
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
147
|
-
} .bottom-sheet__background-
|
|
147
|
+
} .bottom-sheet__background-quaternary_w9b6i {
|
|
148
148
|
background-color: var(--color-light-bg-quaternary);
|
|
149
|
-
} .bottom-sheet__background-quaternary-
|
|
149
|
+
} .bottom-sheet__background-quaternary-inverted_w9b6i {
|
|
150
150
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
151
|
-
} .bottom-sheet__background-specialbg-
|
|
151
|
+
} .bottom-sheet__background-specialbg-component_w9b6i {
|
|
152
152
|
background-color: var(--color-light-specialbg-component);
|
|
153
|
-
} .bottom-sheet__background-specialbg-component-
|
|
153
|
+
} .bottom-sheet__background-specialbg-component-inverted_w9b6i {
|
|
154
154
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
155
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
155
|
+
} .bottom-sheet__background-specialbg-primary-grouped_w9b6i {
|
|
156
156
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
157
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
157
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_w9b6i {
|
|
158
158
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
159
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
159
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_w9b6i {
|
|
160
160
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
161
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
161
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_w9b6i {
|
|
162
162
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
163
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
163
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_w9b6i {
|
|
164
164
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
165
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
165
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_w9b6i {
|
|
166
166
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
167
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
167
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_w9b6i {
|
|
168
168
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
169
169
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-bottom-sheet",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.2",
|
|
4
4
|
"description": "Bottom sheet mobile component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@alfalab/core-components-backdrop": "^3.1.0",
|
|
19
|
-
"@alfalab/core-components-base-modal": "^5.
|
|
20
|
-
"@alfalab/core-components-navigation-bar": "^0.
|
|
21
|
-
"@alfalab/core-components-shared": "^0.
|
|
19
|
+
"@alfalab/core-components-base-modal": "^5.4.0",
|
|
20
|
+
"@alfalab/core-components-navigation-bar": "^0.5.1",
|
|
21
|
+
"@alfalab/core-components-shared": "^0.2.0",
|
|
22
22
|
"classnames": "^2.3.1",
|
|
23
23
|
"react-div-100vh": "^0.7.0",
|
|
24
24
|
"react-merge-refs": "^1.1.0",
|