@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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Backdrop } from '@alfalab/core-components-backdrop/
|
|
2
|
+
import { Backdrop } from '@alfalab/core-components-backdrop/modern';
|
|
3
3
|
|
|
4
4
|
const SwipeableBackdrop = ({ opacity, handlers, opacityTimeout, style, ...backdropProps }) => (React.createElement("div", Object.assign({}, handlers, { style: {
|
|
5
5
|
opacity,
|
package/modern/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/modern/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-1e9e1e64";
|
package/modern/index.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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-bottom-sheet",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "Bottom sheet mobile component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"react-dom": "^16.9.0 || ^17.0.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@alfalab/core-components-backdrop": "^2.1.
|
|
22
|
-
"@alfalab/core-components-base-modal": "^4.1.
|
|
23
|
-
"@alfalab/core-components-icon-button": "^4.2.
|
|
24
|
-
"@alfalab/core-components-typography": "^2.6.
|
|
21
|
+
"@alfalab/core-components-backdrop": "^2.1.2",
|
|
22
|
+
"@alfalab/core-components-base-modal": "^4.1.5",
|
|
23
|
+
"@alfalab/core-components-icon-button": "^4.2.2",
|
|
24
|
+
"@alfalab/core-components-typography": "^2.6.2",
|
|
25
25
|
"classnames": "^2.2.6",
|
|
26
26
|
"react-div-100vh": "^0.7.0",
|
|
27
27
|
"react-swipeable": "^5.5.1",
|
|
File without changes
|
|
File without changes
|