@alfalab/core-components-bottom-sheet 4.5.1 → 4.5.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/CHANGELOG.md +12 -0
- package/{component-f022c60b.d.ts → component-e5dc7971.d.ts} +0 -0
- package/{component-f022c60b.js → component-e5dc7971.js} +3 -3
- package/component.js +2 -2
- package/components/backer/Component.js +2 -2
- package/components/backer/index.css +3 -3
- package/components/closer/Component.js +2 -2
- package/components/closer/index.css +3 -3
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +4 -4
- package/components/header/Component.js +2 -2
- package/components/header/index.css +17 -17
- package/components/swipeable-backdrop/Component.js +1 -1
- package/cssm/component-eb26b84c.js +2 -2
- package/cssm/component.js +4 -4
- package/cssm/components/backer/Component.js +1 -1
- package/cssm/components/closer/Component.js +2 -2
- package/cssm/components/footer/Component.js +1 -1
- package/cssm/components/header/Component.js +4 -4
- package/cssm/components/swipeable-backdrop/Component.js +1 -1
- package/cssm/index.js +4 -4
- package/esm/{component-d7d8fd5e.d.ts → component-74f4ab96.d.ts} +0 -0
- package/esm/{component-d7d8fd5e.js → component-74f4ab96.js} +5 -5
- package/esm/component.js +6 -6
- package/esm/components/backer/Component.js +3 -3
- package/esm/components/backer/index.css +3 -3
- package/esm/components/closer/Component.js +4 -4
- package/esm/components/closer/index.css +3 -3
- package/esm/components/footer/Component.js +2 -2
- package/esm/components/footer/index.css +4 -4
- package/esm/components/header/Component.js +6 -6
- package/esm/components/header/index.css +17 -17
- package/esm/components/swipeable-backdrop/Component.js +2 -2
- package/esm/index.css +16 -16
- package/esm/index.d.ts +1 -1
- package/esm/index.js +6 -6
- package/esm/{tslib.es6-fb144452.d.ts → tslib.es6-d03e2565.d.ts} +0 -0
- package/esm/{tslib.es6-fb144452.js → tslib.es6-d03e2565.js} +0 -0
- package/index.css +16 -16
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/modern/{component-9e2002e4.d.ts → component-1e9e1e64.d.ts} +0 -0
- package/modern/{component-9e2002e4.js → component-1e9e1e64.js} +4 -4
- package/modern/component.js +5 -5
- package/modern/components/backer/Component.js +2 -2
- package/modern/components/backer/index.css +3 -3
- package/modern/components/closer/Component.js +3 -3
- package/modern/components/closer/index.css +3 -3
- package/modern/components/footer/Component.js +2 -2
- package/modern/components/footer/index.css +4 -4
- package/modern/components/header/Component.js +5 -5
- package/modern/components/header/index.css +17 -17
- package/modern/components/swipeable-backdrop/Component.js +1 -1
- package/modern/index.css +16 -16
- package/modern/index.d.ts +1 -1
- package/modern/index.js +5 -5
- package/package.json +5 -5
- /package/{tslib.es6-545c30b9.d.ts → tslib.es6-b41d111d.d.ts} +0 -0
- /package/{tslib.es6-545c30b9.js → tslib.es6-b41d111d.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import '../../tslib.es6-
|
|
1
|
+
import '../../tslib.es6-d03e2565.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'react-div-100vh';
|
|
5
5
|
import 'react-swipeable';
|
|
6
|
-
import '@alfalab/core-components-base-modal/
|
|
7
|
-
import '@alfalab/core-components-typography/
|
|
8
|
-
import '@alfalab/core-components-icon-button/
|
|
6
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
7
|
+
import '@alfalab/core-components-typography/esm';
|
|
8
|
+
import '@alfalab/core-components-icon-button/esm';
|
|
9
9
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
10
10
|
import '../closer/Component.js';
|
|
11
11
|
import '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
12
12
|
import '../backer/Component.js';
|
|
13
|
-
export { a as Header } from '../../component-
|
|
13
|
+
export { a as Header } from '../../component-74f4ab96.js';
|
|
14
14
|
import '../footer/Component.js';
|
|
15
|
-
import '@alfalab/core-components-backdrop/
|
|
15
|
+
import '@alfalab/core-components-backdrop/esm';
|
|
16
16
|
import '../swipeable-backdrop/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wuad */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
31
31
|
--bottom-sheet-title-margin-vertical: var(--gap-2xs);
|
|
32
32
|
}
|
|
33
|
-
.bottom-
|
|
33
|
+
.bottom-sheet__headerWrapper_59vve {
|
|
34
34
|
padding: var(--gap-xs);
|
|
35
35
|
padding-bottom: 0;
|
|
36
36
|
background-color: var(--color-light-bg-primary);
|
|
@@ -38,38 +38,38 @@
|
|
|
38
38
|
border-top-left-radius: var(--border-radius-xl);
|
|
39
39
|
z-index: 1;
|
|
40
40
|
}
|
|
41
|
-
.bottom-
|
|
41
|
+
.bottom-sheet__header_59vve {
|
|
42
42
|
display: flex;
|
|
43
43
|
}
|
|
44
|
-
.bottom-
|
|
44
|
+
.bottom-sheet__sticky_59vve {
|
|
45
45
|
position: sticky;
|
|
46
46
|
top: 0;
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__highlighted_59vve {
|
|
49
49
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
50
50
|
}
|
|
51
|
-
.bottom-
|
|
51
|
+
.bottom-sheet__justifyEnd_59vve {
|
|
52
52
|
justify-content: flex-end;
|
|
53
53
|
}
|
|
54
|
-
.bottom-
|
|
54
|
+
.bottom-sheet__addon_59vve {
|
|
55
55
|
display: flex;
|
|
56
56
|
justify-content: center;
|
|
57
57
|
align-items: center;
|
|
58
58
|
min-width: 48px;
|
|
59
59
|
height: 48px;
|
|
60
60
|
}
|
|
61
|
-
.bottom-
|
|
61
|
+
.bottom-sheet__addonFixed_59vve {
|
|
62
62
|
position: fixed;
|
|
63
63
|
}
|
|
64
|
-
.bottom-
|
|
64
|
+
.bottom-sheet__addonLeft_59vve {
|
|
65
65
|
left: 0;
|
|
66
66
|
margin-left: var(--gap-xs);
|
|
67
67
|
}
|
|
68
|
-
.bottom-
|
|
68
|
+
.bottom-sheet__addonRight_59vve {
|
|
69
69
|
right: 0;
|
|
70
70
|
margin-right: var(--gap-xs);
|
|
71
71
|
}
|
|
72
|
-
.bottom-
|
|
72
|
+
.bottom-sheet__title_59vve {
|
|
73
73
|
padding: var(--gap-xs) var(--gap-xs);
|
|
74
74
|
margin: var(--bottom-sheet-title-margin-vertical) 0;
|
|
75
75
|
width: 100%;
|
|
@@ -78,23 +78,23 @@
|
|
|
78
78
|
line-height: var(--bottom-sheet-title-line-height);
|
|
79
79
|
font-family: var(--bottom-sheet-title-font-family);
|
|
80
80
|
}
|
|
81
|
-
.bottom-
|
|
81
|
+
.bottom-sheet__titleCenter_59vve {
|
|
82
82
|
text-align: center;
|
|
83
83
|
}
|
|
84
|
-
.bottom-
|
|
84
|
+
.bottom-sheet__titleLeft_59vve {
|
|
85
85
|
text-align: left;
|
|
86
86
|
}
|
|
87
|
-
.bottom-
|
|
87
|
+
.bottom-sheet__trimTitle_59vve {
|
|
88
88
|
white-space: nowrap;
|
|
89
89
|
overflow: hidden;
|
|
90
90
|
text-overflow: ellipsis;
|
|
91
91
|
}
|
|
92
|
-
.bottom-
|
|
92
|
+
.bottom-sheet__titleBigIndentHorizontal_59vve {
|
|
93
93
|
margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__titleIndentRight_59vve {
|
|
96
96
|
margin-right: var(--gap-4xl);
|
|
97
97
|
}
|
|
98
|
-
.bottom-
|
|
98
|
+
.bottom-sheet__titleIndentLeft_59vve {
|
|
99
99
|
margin-left: var(--gap-4xl);
|
|
100
100
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as __rest, _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __rest, _ as __assign } from '../../tslib.es6-d03e2565.js';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Backdrop } from '@alfalab/core-components-backdrop/
|
|
3
|
+
import { Backdrop } from '@alfalab/core-components-backdrop/esm';
|
|
4
4
|
|
|
5
5
|
var SwipeableBackdrop = function (_a) {
|
|
6
6
|
var opacity = _a.opacity, handlers = _a.handlers, opacityTimeout = _a.opacityTimeout, style = _a.style, backdropProps = __rest(_a, ["opacity", "handlers", "opacityTimeout", "style"]);
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tcsy */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-graphic-quaternary: #dbdee1;
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
--bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
25
25
|
--bottom-sheet-out-transition: 0.3s ease;
|
|
26
26
|
}
|
|
27
|
-
.bottom-
|
|
27
|
+
.bottom-sheet__modal_s5s5k {
|
|
28
28
|
background-color: transparent;
|
|
29
29
|
position: fixed;
|
|
30
30
|
bottom: 0;
|
|
31
31
|
width: 100%;
|
|
32
32
|
max-width: 600px;
|
|
33
33
|
}
|
|
34
|
-
.bottom-
|
|
34
|
+
.bottom-sheet__component_s5s5k {
|
|
35
35
|
overflow: hidden;
|
|
36
36
|
position: relative;
|
|
37
37
|
display: flex;
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
background: var(--color-light-bg-primary);
|
|
42
42
|
transform: translateY(100%);
|
|
43
43
|
}
|
|
44
|
-
.bottom-
|
|
44
|
+
.bottom-sheet__withTransition_s5s5k {
|
|
45
45
|
transition: var(--bottom-sheet-out-transition);
|
|
46
46
|
}
|
|
47
|
-
.bottom-
|
|
47
|
+
.bottom-sheet__withZeroTransition_s5s5k {
|
|
48
48
|
transition: 0s linear;
|
|
49
49
|
}
|
|
50
|
-
.bottom-
|
|
50
|
+
.bottom-sheet__scrollableContainer_s5s5k {
|
|
51
51
|
overflow: auto;
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
54
54
|
position: relative;
|
|
55
55
|
height: 100%;
|
|
56
56
|
}
|
|
57
|
-
.bottom-
|
|
57
|
+
.bottom-sheet__marker_s5s5k {
|
|
58
58
|
position: fixed;
|
|
59
59
|
top: var(--gap-2xs);
|
|
60
60
|
left: 50%;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
background-color: var(--color-light-graphic-quaternary);
|
|
66
66
|
z-index: 1000;
|
|
67
67
|
}
|
|
68
|
-
.bottom-
|
|
68
|
+
.bottom-sheet__content_s5s5k {
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
flex: 1;
|
|
@@ -73,29 +73,29 @@
|
|
|
73
73
|
color: var(--color-light-text-primary);
|
|
74
74
|
background-color: var(--color-light-bg-primary);
|
|
75
75
|
}
|
|
76
|
-
.bottom-
|
|
76
|
+
.bottom-sheet__noHeader_s5s5k {
|
|
77
77
|
padding-top: var(--gap-xl);
|
|
78
78
|
}
|
|
79
|
-
.bottom-
|
|
79
|
+
.bottom-sheet__noFooter_s5s5k {
|
|
80
80
|
padding-bottom: var(--gap-m);
|
|
81
81
|
}
|
|
82
|
-
.bottom-
|
|
82
|
+
.bottom-sheet__scrollLocked_s5s5k {
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
}
|
|
85
|
-
.bottom-
|
|
85
|
+
.bottom-sheet__appear_s5s5k .bottom-sheet__component_s5s5k, .bottom-sheet__enter_s5s5k .bottom-sheet__component_s5s5k {
|
|
86
86
|
transition: none;
|
|
87
87
|
}
|
|
88
|
-
.bottom-
|
|
88
|
+
.bottom-sheet__appearActive_s5s5k .bottom-sheet__component_s5s5k, .bottom-sheet__enterActive_s5s5k .bottom-sheet__component_s5s5k {
|
|
89
89
|
transition: var(--bottom-sheet-in-transition);
|
|
90
90
|
transform: translateY(0);
|
|
91
91
|
}
|
|
92
|
-
.bottom-
|
|
92
|
+
.bottom-sheet__enterDone_s5s5k .bottom-sheet__component_s5s5k, .bottom-sheet__appearDone_s5s5k .bottom-sheet__component_s5s5k {
|
|
93
93
|
transform: translateY(0);
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__exit_s5s5k .bottom-sheet__component_s5s5k {
|
|
96
96
|
transform: translateY(0);
|
|
97
97
|
}
|
|
98
|
-
.bottom-
|
|
98
|
+
.bottom-sheet__exitActive_s5s5k .bottom-sheet__component_s5s5k {
|
|
99
99
|
transition: var(--bottom-sheet-out-transition);
|
|
100
100
|
transform: translateY(100%);
|
|
101
101
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-74f4ab96";
|
package/esm/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-d03e2565.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
4
|
import 'react-div-100vh';
|
|
5
5
|
import 'react-swipeable';
|
|
6
|
-
import '@alfalab/core-components-base-modal/
|
|
7
|
-
import '@alfalab/core-components-typography/
|
|
8
|
-
import '@alfalab/core-components-icon-button/
|
|
6
|
+
import '@alfalab/core-components-base-modal/esm';
|
|
7
|
+
import '@alfalab/core-components-typography/esm';
|
|
8
|
+
import '@alfalab/core-components-icon-button/esm';
|
|
9
9
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
10
10
|
import './components/closer/Component.js';
|
|
11
11
|
import '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
12
12
|
import './components/backer/Component.js';
|
|
13
|
-
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-
|
|
13
|
+
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-74f4ab96.js';
|
|
14
14
|
import './components/footer/Component.js';
|
|
15
|
-
import '@alfalab/core-components-backdrop/
|
|
15
|
+
import '@alfalab/core-components-backdrop/esm';
|
|
16
16
|
import './components/swipeable-backdrop/Component.js';
|
|
File without changes
|
|
File without changes
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1tcsy */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-graphic-quaternary: #dbdee1;
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
--bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
25
25
|
--bottom-sheet-out-transition: 0.3s ease;
|
|
26
26
|
}
|
|
27
|
-
.bottom-
|
|
27
|
+
.bottom-sheet__modal_s5s5k {
|
|
28
28
|
background-color: transparent;
|
|
29
29
|
position: fixed;
|
|
30
30
|
bottom: 0;
|
|
31
31
|
width: 100%;
|
|
32
32
|
max-width: 600px;
|
|
33
33
|
}
|
|
34
|
-
.bottom-
|
|
34
|
+
.bottom-sheet__component_s5s5k {
|
|
35
35
|
overflow: hidden;
|
|
36
36
|
position: relative;
|
|
37
37
|
display: flex;
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
background: var(--color-light-bg-primary);
|
|
42
42
|
transform: translateY(100%);
|
|
43
43
|
}
|
|
44
|
-
.bottom-
|
|
44
|
+
.bottom-sheet__withTransition_s5s5k {
|
|
45
45
|
transition: var(--bottom-sheet-out-transition);
|
|
46
46
|
}
|
|
47
|
-
.bottom-
|
|
47
|
+
.bottom-sheet__withZeroTransition_s5s5k {
|
|
48
48
|
transition: 0s linear;
|
|
49
49
|
}
|
|
50
|
-
.bottom-
|
|
50
|
+
.bottom-sheet__scrollableContainer_s5s5k {
|
|
51
51
|
overflow: auto;
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-direction: column;
|
|
54
54
|
position: relative;
|
|
55
55
|
height: 100%;
|
|
56
56
|
}
|
|
57
|
-
.bottom-
|
|
57
|
+
.bottom-sheet__marker_s5s5k {
|
|
58
58
|
position: fixed;
|
|
59
59
|
top: var(--gap-2xs);
|
|
60
60
|
left: 50%;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
background-color: var(--color-light-graphic-quaternary);
|
|
66
66
|
z-index: 1000;
|
|
67
67
|
}
|
|
68
|
-
.bottom-
|
|
68
|
+
.bottom-sheet__content_s5s5k {
|
|
69
69
|
display: flex;
|
|
70
70
|
flex-direction: column;
|
|
71
71
|
flex: 1;
|
|
@@ -73,29 +73,29 @@
|
|
|
73
73
|
color: var(--color-light-text-primary);
|
|
74
74
|
background-color: var(--color-light-bg-primary);
|
|
75
75
|
}
|
|
76
|
-
.bottom-
|
|
76
|
+
.bottom-sheet__noHeader_s5s5k {
|
|
77
77
|
padding-top: var(--gap-xl);
|
|
78
78
|
}
|
|
79
|
-
.bottom-
|
|
79
|
+
.bottom-sheet__noFooter_s5s5k {
|
|
80
80
|
padding-bottom: var(--gap-m);
|
|
81
81
|
}
|
|
82
|
-
.bottom-
|
|
82
|
+
.bottom-sheet__scrollLocked_s5s5k {
|
|
83
83
|
overflow: hidden;
|
|
84
84
|
}
|
|
85
|
-
.bottom-
|
|
85
|
+
.bottom-sheet__appear_s5s5k .bottom-sheet__component_s5s5k, .bottom-sheet__enter_s5s5k .bottom-sheet__component_s5s5k {
|
|
86
86
|
transition: none;
|
|
87
87
|
}
|
|
88
|
-
.bottom-
|
|
88
|
+
.bottom-sheet__appearActive_s5s5k .bottom-sheet__component_s5s5k, .bottom-sheet__enterActive_s5s5k .bottom-sheet__component_s5s5k {
|
|
89
89
|
transition: var(--bottom-sheet-in-transition);
|
|
90
90
|
transform: translateY(0);
|
|
91
91
|
}
|
|
92
|
-
.bottom-
|
|
92
|
+
.bottom-sheet__enterDone_s5s5k .bottom-sheet__component_s5s5k, .bottom-sheet__appearDone_s5s5k .bottom-sheet__component_s5s5k {
|
|
93
93
|
transform: translateY(0);
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__exit_s5s5k .bottom-sheet__component_s5s5k {
|
|
96
96
|
transform: translateY(0);
|
|
97
97
|
}
|
|
98
|
-
.bottom-
|
|
98
|
+
.bottom-sheet__exitActive_s5s5k .bottom-sheet__component_s5s5k {
|
|
99
99
|
transition: var(--bottom-sheet-out-transition);
|
|
100
100
|
transform: translateY(100%);
|
|
101
101
|
}
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-e5dc7971";
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('./tslib.es6-
|
|
5
|
+
require('./tslib.es6-b41d111d.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('react-div-100vh');
|
|
@@ -14,7 +14,7 @@ require('@alfalab/icons-glyph/CrossMIcon');
|
|
|
14
14
|
require('./components/closer/Component.js');
|
|
15
15
|
require('@alfalab/icons-glyph/ArrowBackMIcon');
|
|
16
16
|
require('./components/backer/Component.js');
|
|
17
|
-
var components_header_Component = require('./component-
|
|
17
|
+
var components_header_Component = require('./component-e5dc7971.js');
|
|
18
18
|
require('./components/footer/Component.js');
|
|
19
19
|
require('@alfalab/core-components-backdrop');
|
|
20
20
|
require('./components/swipeable-backdrop/Component.js');
|
|
File without changes
|
|
@@ -2,14 +2,14 @@ import React, { useContext, useEffect, forwardRef, useState, useRef, useCallback
|
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { use100vh } from 'react-div-100vh';
|
|
4
4
|
import { useSwipeable } from 'react-swipeable';
|
|
5
|
-
import { BaseModalContext, BaseModal } from '@alfalab/core-components-base-modal/
|
|
6
|
-
import { Typography } from '@alfalab/core-components-typography/
|
|
5
|
+
import { BaseModalContext, BaseModal } from '@alfalab/core-components-base-modal/modern';
|
|
6
|
+
import { Typography } from '@alfalab/core-components-typography/modern';
|
|
7
7
|
import { Closer } from './components/closer/Component.js';
|
|
8
8
|
import { Backer } from './components/backer/Component.js';
|
|
9
9
|
import { Footer } from './components/footer/Component.js';
|
|
10
10
|
import { SwipeableBackdrop } from './components/swipeable-backdrop/Component.js';
|
|
11
11
|
|
|
12
|
-
var styles = {"headerWrapper":"bottom-
|
|
12
|
+
var styles = {"headerWrapper":"bottom-sheet__headerWrapper_59vve","header":"bottom-sheet__header_59vve","sticky":"bottom-sheet__sticky_59vve","highlighted":"bottom-sheet__highlighted_59vve","justifyEnd":"bottom-sheet__justifyEnd_59vve","addon":"bottom-sheet__addon_59vve","addonFixed":"bottom-sheet__addonFixed_59vve","addonLeft":"bottom-sheet__addonLeft_59vve","addonRight":"bottom-sheet__addonRight_59vve","title":"bottom-sheet__title_59vve","titleCenter":"bottom-sheet__titleCenter_59vve","titleLeft":"bottom-sheet__titleLeft_59vve","trimTitle":"bottom-sheet__trimTitle_59vve","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_59vve","titleIndentRight":"bottom-sheet__titleIndentRight_59vve","titleIndentLeft":"bottom-sheet__titleIndentLeft_59vve"};
|
|
13
13
|
require('./components/header/index.css')
|
|
14
14
|
|
|
15
15
|
const Header = ({ title, headerClassName, addonClassName, closerClassName, backerClassName, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign, trimTitle, sticky, onBack, }) => {
|
|
@@ -56,7 +56,7 @@ const Header = ({ title, headerClassName, addonClassName, closerClassName, backe
|
|
|
56
56
|
bottomAddons));
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
var styles$1 = {"modal":"bottom-
|
|
59
|
+
var styles$1 = {"modal":"bottom-sheet__modal_s5s5k","component":"bottom-sheet__component_s5s5k","withTransition":"bottom-sheet__withTransition_s5s5k","withZeroTransition":"bottom-sheet__withZeroTransition_s5s5k","scrollableContainer":"bottom-sheet__scrollableContainer_s5s5k","marker":"bottom-sheet__marker_s5s5k","content":"bottom-sheet__content_s5s5k","noHeader":"bottom-sheet__noHeader_s5s5k","noFooter":"bottom-sheet__noFooter_s5s5k","scrollLocked":"bottom-sheet__scrollLocked_s5s5k","appear":"bottom-sheet__appear_s5s5k","enter":"bottom-sheet__enter_s5s5k","appearActive":"bottom-sheet__appearActive_s5s5k","enterActive":"bottom-sheet__enterActive_s5s5k","enterDone":"bottom-sheet__enterDone_s5s5k","appearDone":"bottom-sheet__appearDone_s5s5k","exit":"bottom-sheet__exit_s5s5k","exitActive":"bottom-sheet__exitActive_s5s5k"};
|
|
60
60
|
require('./index.css')
|
|
61
61
|
|
|
62
62
|
const TIMEOUT = 300;
|
package/modern/component.js
CHANGED
|
@@ -2,14 +2,14 @@ import 'react';
|
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import 'react-div-100vh';
|
|
4
4
|
import 'react-swipeable';
|
|
5
|
-
import '@alfalab/core-components-base-modal/
|
|
6
|
-
import '@alfalab/core-components-typography/
|
|
7
|
-
import '@alfalab/core-components-icon-button/
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
|
+
import '@alfalab/core-components-typography/modern';
|
|
7
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
8
8
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
9
9
|
import './components/closer/Component.js';
|
|
10
10
|
import '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
11
11
|
import './components/backer/Component.js';
|
|
12
|
-
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-
|
|
12
|
+
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-1e9e1e64.js';
|
|
13
13
|
import './components/footer/Component.js';
|
|
14
|
-
import '@alfalab/core-components-backdrop/
|
|
14
|
+
import '@alfalab/core-components-backdrop/modern';
|
|
15
15
|
import './components/swipeable-backdrop/Component.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { IconButton } from '@alfalab/core-components-icon-button/
|
|
3
|
+
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
4
4
|
import { ArrowBackMIcon } from '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
5
5
|
|
|
6
|
-
var styles = {"backer":"bottom-
|
|
6
|
+
var styles = {"backer":"bottom-sheet__backer_l509u","button":"bottom-sheet__button_l509u"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Backer = ({ className, size = 'xs', icon = ArrowBackMIcon, onClick, ...restProps }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 4y4sc */
|
|
2
2
|
:root {
|
|
3
3
|
--bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.bottom-
|
|
6
|
+
.bottom-sheet__backer_l509u {
|
|
7
7
|
width: 32px;
|
|
8
8
|
height: 32px;
|
|
9
9
|
display: flex;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
color: var(--color-light-graphic-primary);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.bottom-
|
|
16
|
+
.bottom-sheet__button_l509u {
|
|
17
17
|
background: var(--bottom-sheet-backer-bg-color);
|
|
18
18
|
-webkit-backdrop-filter: blur(10px);
|
|
19
19
|
backdrop-filter: blur(10px);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useContext, useCallback } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { BaseModalContext } from '@alfalab/core-components-base-modal/
|
|
4
|
-
import { IconButton } from '@alfalab/core-components-icon-button/
|
|
3
|
+
import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
4
|
+
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
5
5
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
6
6
|
|
|
7
|
-
var styles = {"closer":"bottom-
|
|
7
|
+
var styles = {"closer":"bottom-sheet__closer_1d7qs","button":"bottom-sheet__button_1d7qs"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Closer = ({ className, size = 'xs', icon = CrossMIcon, ...restProps }) => {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 19wfg */
|
|
2
2
|
:root {
|
|
3
3
|
--bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.bottom-
|
|
6
|
+
.bottom-sheet__closer_1d7qs {
|
|
7
7
|
width: 32px;
|
|
8
8
|
height: 32px;
|
|
9
9
|
display: flex;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
color: var(--color-light-graphic-primary);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.bottom-
|
|
16
|
+
.bottom-sheet__button_1d7qs {
|
|
17
17
|
background: var(--bottom-sheet-closer-bg-color);
|
|
18
18
|
-webkit-backdrop-filter: blur(10px);
|
|
19
19
|
backdrop-filter: blur(10px);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { BaseModalContext } from '@alfalab/core-components-base-modal/
|
|
3
|
+
import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
|
|
5
|
-
var styles = {"footer":"bottom-
|
|
5
|
+
var styles = {"footer":"bottom-sheet__footer_80ud5","sticky":"bottom-sheet__sticky_80ud5","highlighted":"bottom-sheet__highlighted_80ud5"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Footer = ({ children, className, sticky }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: tfjtx */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-border-primary: #dbdee1;
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
--bottom-sheet-footer-border-top: 1px solid var(--color-light-border-primary);
|
|
19
19
|
--bottom-sheet-footer-background-color: var(--color-light-bg-primary);
|
|
20
20
|
}
|
|
21
|
-
.bottom-
|
|
21
|
+
.bottom-sheet__footer_80ud5 {
|
|
22
22
|
padding: var(--gap-m) var(--gap-m);
|
|
23
23
|
background-color: var(--color-light-bg-primary);
|
|
24
24
|
}
|
|
25
|
-
.bottom-
|
|
25
|
+
.bottom-sheet__sticky_80ud5 {
|
|
26
26
|
position: sticky;
|
|
27
27
|
bottom: 0;
|
|
28
28
|
}
|
|
29
|
-
.bottom-
|
|
29
|
+
.bottom-sheet__highlighted_80ud5 {
|
|
30
30
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
31
31
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
32
32
|
}
|
|
@@ -2,14 +2,14 @@ import 'react';
|
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import 'react-div-100vh';
|
|
4
4
|
import 'react-swipeable';
|
|
5
|
-
import '@alfalab/core-components-base-modal/
|
|
6
|
-
import '@alfalab/core-components-typography/
|
|
7
|
-
import '@alfalab/core-components-icon-button/
|
|
5
|
+
import '@alfalab/core-components-base-modal/modern';
|
|
6
|
+
import '@alfalab/core-components-typography/modern';
|
|
7
|
+
import '@alfalab/core-components-icon-button/modern';
|
|
8
8
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
9
9
|
import '../closer/Component.js';
|
|
10
10
|
import '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
11
11
|
import '../backer/Component.js';
|
|
12
|
-
export { a as Header } from '../../component-
|
|
12
|
+
export { a as Header } from '../../component-1e9e1e64.js';
|
|
13
13
|
import '../footer/Component.js';
|
|
14
|
-
import '@alfalab/core-components-backdrop/
|
|
14
|
+
import '@alfalab/core-components-backdrop/modern';
|
|
15
15
|
import '../swipeable-backdrop/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1wuad */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
31
31
|
--bottom-sheet-title-margin-vertical: var(--gap-2xs);
|
|
32
32
|
}
|
|
33
|
-
.bottom-
|
|
33
|
+
.bottom-sheet__headerWrapper_59vve {
|
|
34
34
|
padding: var(--gap-xs);
|
|
35
35
|
padding-bottom: 0;
|
|
36
36
|
background-color: var(--color-light-bg-primary);
|
|
@@ -38,38 +38,38 @@
|
|
|
38
38
|
border-top-left-radius: var(--border-radius-xl);
|
|
39
39
|
z-index: 1;
|
|
40
40
|
}
|
|
41
|
-
.bottom-
|
|
41
|
+
.bottom-sheet__header_59vve {
|
|
42
42
|
display: flex;
|
|
43
43
|
}
|
|
44
|
-
.bottom-
|
|
44
|
+
.bottom-sheet__sticky_59vve {
|
|
45
45
|
position: sticky;
|
|
46
46
|
top: 0;
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__highlighted_59vve {
|
|
49
49
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
50
50
|
}
|
|
51
|
-
.bottom-
|
|
51
|
+
.bottom-sheet__justifyEnd_59vve {
|
|
52
52
|
justify-content: flex-end;
|
|
53
53
|
}
|
|
54
|
-
.bottom-
|
|
54
|
+
.bottom-sheet__addon_59vve {
|
|
55
55
|
display: flex;
|
|
56
56
|
justify-content: center;
|
|
57
57
|
align-items: center;
|
|
58
58
|
min-width: 48px;
|
|
59
59
|
height: 48px;
|
|
60
60
|
}
|
|
61
|
-
.bottom-
|
|
61
|
+
.bottom-sheet__addonFixed_59vve {
|
|
62
62
|
position: fixed;
|
|
63
63
|
}
|
|
64
|
-
.bottom-
|
|
64
|
+
.bottom-sheet__addonLeft_59vve {
|
|
65
65
|
left: 0;
|
|
66
66
|
margin-left: var(--gap-xs);
|
|
67
67
|
}
|
|
68
|
-
.bottom-
|
|
68
|
+
.bottom-sheet__addonRight_59vve {
|
|
69
69
|
right: 0;
|
|
70
70
|
margin-right: var(--gap-xs);
|
|
71
71
|
}
|
|
72
|
-
.bottom-
|
|
72
|
+
.bottom-sheet__title_59vve {
|
|
73
73
|
padding: var(--gap-xs) var(--gap-xs);
|
|
74
74
|
margin: var(--bottom-sheet-title-margin-vertical) 0;
|
|
75
75
|
width: 100%;
|
|
@@ -78,23 +78,23 @@
|
|
|
78
78
|
line-height: var(--bottom-sheet-title-line-height);
|
|
79
79
|
font-family: var(--bottom-sheet-title-font-family);
|
|
80
80
|
}
|
|
81
|
-
.bottom-
|
|
81
|
+
.bottom-sheet__titleCenter_59vve {
|
|
82
82
|
text-align: center;
|
|
83
83
|
}
|
|
84
|
-
.bottom-
|
|
84
|
+
.bottom-sheet__titleLeft_59vve {
|
|
85
85
|
text-align: left;
|
|
86
86
|
}
|
|
87
|
-
.bottom-
|
|
87
|
+
.bottom-sheet__trimTitle_59vve {
|
|
88
88
|
white-space: nowrap;
|
|
89
89
|
overflow: hidden;
|
|
90
90
|
text-overflow: ellipsis;
|
|
91
91
|
}
|
|
92
|
-
.bottom-
|
|
92
|
+
.bottom-sheet__titleBigIndentHorizontal_59vve {
|
|
93
93
|
margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__titleIndentRight_59vve {
|
|
96
96
|
margin-right: var(--gap-4xl);
|
|
97
97
|
}
|
|
98
|
-
.bottom-
|
|
98
|
+
.bottom-sheet__titleIndentLeft_59vve {
|
|
99
99
|
margin-left: var(--gap-4xl);
|
|
100
100
|
}
|