@alfalab/core-components-bottom-sheet 5.1.13 → 5.1.14
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-45221870.d.ts → component-8b08e4ba.d.ts} +0 -0
- package/{component-45221870.js → component-8b08e4ba.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/esm/{component-d71cfead.d.ts → component-22841e82.d.ts} +0 -0
- package/esm/{component-d71cfead.js → component-22841e82.js} +3 -3
- package/esm/component.js +2 -2
- package/esm/components/backer/Component.js +2 -2
- package/esm/components/backer/index.css +3 -3
- package/esm/components/closer/Component.js +2 -2
- package/esm/components/closer/index.css +3 -3
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +4 -4
- package/esm/components/header/Component.js +2 -2
- package/esm/components/header/index.css +17 -17
- package/esm/components/swipeable-backdrop/Component.js +1 -1
- package/esm/index.css +15 -15
- package/esm/index.d.ts +1 -1
- package/esm/index.js +2 -2
- package/esm/{tslib.es6-d4955312.d.ts → tslib.es6-6cf7ccd0.d.ts} +0 -0
- package/esm/{tslib.es6-d4955312.js → tslib.es6-6cf7ccd0.js} +0 -0
- package/index.css +15 -15
- package/index.d.ts +1 -1
- package/index.js +2 -2
- package/modern/{component-01ebecf6.d.ts → component-958e9bad.d.ts} +0 -0
- package/modern/{component-01ebecf6.js → component-958e9bad.js} +2 -2
- package/modern/component.js +1 -1
- package/modern/components/backer/Component.js +1 -1
- package/modern/components/backer/index.css +3 -3
- package/modern/components/closer/Component.js +1 -1
- package/modern/components/closer/index.css +3 -3
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +4 -4
- package/modern/components/header/Component.js +1 -1
- package/modern/components/header/index.css +17 -17
- package/modern/index.css +15 -15
- package/modern/index.d.ts +1 -1
- package/modern/index.js +1 -1
- package/package.json +3 -3
- /package/{tslib.es6-36294a48.d.ts → tslib.es6-bcb769c3.d.ts} +0 -0
- /package/{tslib.es6-36294a48.js → tslib.es6-bcb769c3.js} +0 -0
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-
|
|
3
|
+
var tslib_es6 = require('./tslib.es6-bcb769c3.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var reactDiv100vh = require('react-div-100vh');
|
|
6
6
|
var reactSwipeable = require('react-swipeable');
|
|
@@ -22,7 +22,7 @@ var getDataTestId = function (dataTestId, element) {
|
|
|
22
22
|
return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
var styles$1 = {"headerWrapper":"bottom-
|
|
25
|
+
var styles$1 = {"headerWrapper":"bottom-sheet__headerWrapper_1bf90","header":"bottom-sheet__header_1bf90","sticky":"bottom-sheet__sticky_1bf90","highlighted":"bottom-sheet__highlighted_1bf90","justifyEnd":"bottom-sheet__justifyEnd_1bf90","addon":"bottom-sheet__addon_1bf90","addonFixed":"bottom-sheet__addonFixed_1bf90","addonLeft":"bottom-sheet__addonLeft_1bf90","addonRight":"bottom-sheet__addonRight_1bf90","title":"bottom-sheet__title_1bf90","titleCenter":"bottom-sheet__titleCenter_1bf90","titleLeft":"bottom-sheet__titleLeft_1bf90","trimTitle":"bottom-sheet__trimTitle_1bf90","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1bf90","titleIndentRight":"bottom-sheet__titleIndentRight_1bf90","titleIndentLeft":"bottom-sheet__titleIndentLeft_1bf90"};
|
|
26
26
|
require('./components/header/index.css')
|
|
27
27
|
|
|
28
28
|
var Header = function (_a) {
|
|
@@ -72,7 +72,7 @@ var Header = function (_a) {
|
|
|
72
72
|
bottomAddons));
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
var styles = {"modal":"bottom-
|
|
75
|
+
var styles = {"modal":"bottom-sheet__modal_15zwm","component":"bottom-sheet__component_15zwm","withTransition":"bottom-sheet__withTransition_15zwm","scrollableContainer":"bottom-sheet__scrollableContainer_15zwm","marker":"bottom-sheet__marker_15zwm","content":"bottom-sheet__content_15zwm","noHeader":"bottom-sheet__noHeader_15zwm","noFooter":"bottom-sheet__noFooter_15zwm","scrollLocked":"bottom-sheet__scrollLocked_15zwm","appear":"bottom-sheet__appear_15zwm","enter":"bottom-sheet__enter_15zwm","appearActive":"bottom-sheet__appearActive_15zwm","enterActive":"bottom-sheet__enterActive_15zwm","enterDone":"bottom-sheet__enterDone_15zwm","appearDone":"bottom-sheet__appearDone_15zwm","exit":"bottom-sheet__exit_15zwm","exitActive":"bottom-sheet__exitActive_15zwm"};
|
|
76
76
|
require('./index.css')
|
|
77
77
|
|
|
78
78
|
var TIMEOUT = 300;
|
package/component.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('./tslib.es6-
|
|
3
|
+
require('./tslib.es6-bcb769c3.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('react-div-100vh');
|
|
6
6
|
require('react-swipeable');
|
|
7
7
|
require('classnames');
|
|
8
8
|
require('@alfalab/core-components-base-modal');
|
|
9
|
-
var components_header_Component = require('./component-
|
|
9
|
+
var components_header_Component = require('./component-8b08e4ba.js');
|
|
10
10
|
require('./components/footer/Component.js');
|
|
11
11
|
require('./components/swipeable-backdrop/Component.js');
|
|
12
12
|
require('@alfalab/core-components-typography');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-bcb769c3.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
|
|
@@ -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 = {"backer":"bottom-
|
|
14
|
+
var styles = {"backer":"bottom-sheet__backer_fcz1o","button":"bottom-sheet__button_fcz1o"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var Backer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: eu2qb */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
--bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
16
16
|
}
|
|
17
|
-
.bottom-
|
|
17
|
+
.bottom-sheet__backer_fcz1o {
|
|
18
18
|
width: 32px;
|
|
19
19
|
height: 32px;
|
|
20
20
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
color: var(--color-light-graphic-primary);
|
|
25
25
|
}
|
|
26
|
-
.bottom-
|
|
26
|
+
.bottom-sheet__button_fcz1o {
|
|
27
27
|
background: var(--bottom-sheet-backer-bg-color);
|
|
28
28
|
-webkit-backdrop-filter: blur(10px);
|
|
29
29
|
backdrop-filter: blur(10px);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-
|
|
3
|
+
var tslib_es6 = require('../../tslib.es6-bcb769c3.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
6
|
var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
|
|
@@ -12,7 +12,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
13
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
14
|
|
|
15
|
-
var styles = {"closer":"bottom-
|
|
15
|
+
var styles = {"closer":"bottom-sheet__closer_176kj","button":"bottom-sheet__button_176kj"};
|
|
16
16
|
require('./index.css')
|
|
17
17
|
|
|
18
18
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1om2u */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
--bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
16
16
|
}
|
|
17
|
-
.bottom-
|
|
17
|
+
.bottom-sheet__closer_176kj {
|
|
18
18
|
width: 32px;
|
|
19
19
|
height: 32px;
|
|
20
20
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
color: var(--color-light-graphic-primary);
|
|
25
25
|
}
|
|
26
|
-
.bottom-
|
|
26
|
+
.bottom-sheet__button_176kj {
|
|
27
27
|
background: var(--bottom-sheet-closer-bg-color);
|
|
28
28
|
-webkit-backdrop-filter: blur(10px);
|
|
29
29
|
backdrop-filter: blur(10px);
|
|
@@ -9,7 +9,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
9
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
10
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
11
11
|
|
|
12
|
-
var styles = {"footer":"bottom-
|
|
12
|
+
var styles = {"footer":"bottom-sheet__footer_qm8fj","sticky":"bottom-sheet__sticky_qm8fj","highlighted":"bottom-sheet__highlighted_qm8fj"};
|
|
13
13
|
require('./index.css')
|
|
14
14
|
|
|
15
15
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bxba2 */
|
|
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_qm8fj {
|
|
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_qm8fj {
|
|
26
26
|
position: sticky;
|
|
27
27
|
bottom: 0;
|
|
28
28
|
}
|
|
29
|
-
.bottom-
|
|
29
|
+
.bottom-sheet__highlighted_qm8fj {
|
|
30
30
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
31
31
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
32
32
|
}
|
|
@@ -4,10 +4,10 @@ require('react');
|
|
|
4
4
|
require('classnames');
|
|
5
5
|
require('@alfalab/core-components-base-modal');
|
|
6
6
|
require('@alfalab/core-components-typography');
|
|
7
|
-
var components_header_Component = require('../../component-
|
|
7
|
+
var components_header_Component = require('../../component-8b08e4ba.js');
|
|
8
8
|
require('../backer/Component.js');
|
|
9
9
|
require('../closer/Component.js');
|
|
10
|
-
require('../../tslib.es6-
|
|
10
|
+
require('../../tslib.es6-bcb769c3.js');
|
|
11
11
|
require('react-div-100vh');
|
|
12
12
|
require('react-swipeable');
|
|
13
13
|
require('../footer/Component.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: yide5 */
|
|
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_1bf90 {
|
|
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_1bf90 {
|
|
42
42
|
display: flex;
|
|
43
43
|
}
|
|
44
|
-
.bottom-
|
|
44
|
+
.bottom-sheet__sticky_1bf90 {
|
|
45
45
|
position: sticky;
|
|
46
46
|
top: 0;
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__highlighted_1bf90 {
|
|
49
49
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
50
50
|
}
|
|
51
|
-
.bottom-
|
|
51
|
+
.bottom-sheet__justifyEnd_1bf90 {
|
|
52
52
|
justify-content: flex-end;
|
|
53
53
|
}
|
|
54
|
-
.bottom-
|
|
54
|
+
.bottom-sheet__addon_1bf90 {
|
|
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_1bf90 {
|
|
62
62
|
position: fixed;
|
|
63
63
|
}
|
|
64
|
-
.bottom-
|
|
64
|
+
.bottom-sheet__addonLeft_1bf90 {
|
|
65
65
|
left: 0;
|
|
66
66
|
margin-left: var(--gap-xs);
|
|
67
67
|
}
|
|
68
|
-
.bottom-
|
|
68
|
+
.bottom-sheet__addonRight_1bf90 {
|
|
69
69
|
right: 0;
|
|
70
70
|
margin-right: var(--gap-xs);
|
|
71
71
|
}
|
|
72
|
-
.bottom-
|
|
72
|
+
.bottom-sheet__title_1bf90 {
|
|
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_1bf90 {
|
|
82
82
|
text-align: center;
|
|
83
83
|
}
|
|
84
|
-
.bottom-
|
|
84
|
+
.bottom-sheet__titleLeft_1bf90 {
|
|
85
85
|
text-align: left;
|
|
86
86
|
}
|
|
87
|
-
.bottom-
|
|
87
|
+
.bottom-sheet__trimTitle_1bf90 {
|
|
88
88
|
white-space: nowrap;
|
|
89
89
|
overflow: hidden;
|
|
90
90
|
text-overflow: ellipsis;
|
|
91
91
|
}
|
|
92
|
-
.bottom-
|
|
92
|
+
.bottom-sheet__titleBigIndentHorizontal_1bf90 {
|
|
93
93
|
margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__titleIndentRight_1bf90 {
|
|
96
96
|
margin-right: var(--gap-4xl);
|
|
97
97
|
}
|
|
98
|
-
.bottom-
|
|
98
|
+
.bottom-sheet__titleIndentLeft_1bf90 {
|
|
99
99
|
margin-left: var(--gap-4xl);
|
|
100
100
|
}
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __assign } from './tslib.es6-
|
|
1
|
+
import { _ as __assign } from './tslib.es6-6cf7ccd0.js';
|
|
2
2
|
import React, { useContext, useEffect, forwardRef, useState, useRef, useCallback } from 'react';
|
|
3
3
|
import { use100vh } from 'react-div-100vh';
|
|
4
4
|
import { useSwipeable } from 'react-swipeable';
|
|
@@ -15,7 +15,7 @@ var getDataTestId = function (dataTestId, element) {
|
|
|
15
15
|
return dataTestId ? "".concat(dataTestId).concat(elementPart) : undefined;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
var styles$1 = {"headerWrapper":"bottom-
|
|
18
|
+
var styles$1 = {"headerWrapper":"bottom-sheet__headerWrapper_1bf90","header":"bottom-sheet__header_1bf90","sticky":"bottom-sheet__sticky_1bf90","highlighted":"bottom-sheet__highlighted_1bf90","justifyEnd":"bottom-sheet__justifyEnd_1bf90","addon":"bottom-sheet__addon_1bf90","addonFixed":"bottom-sheet__addonFixed_1bf90","addonLeft":"bottom-sheet__addonLeft_1bf90","addonRight":"bottom-sheet__addonRight_1bf90","title":"bottom-sheet__title_1bf90","titleCenter":"bottom-sheet__titleCenter_1bf90","titleLeft":"bottom-sheet__titleLeft_1bf90","trimTitle":"bottom-sheet__trimTitle_1bf90","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1bf90","titleIndentRight":"bottom-sheet__titleIndentRight_1bf90","titleIndentLeft":"bottom-sheet__titleIndentLeft_1bf90"};
|
|
19
19
|
require('./components/header/index.css')
|
|
20
20
|
|
|
21
21
|
var Header = function (_a) {
|
|
@@ -65,7 +65,7 @@ var Header = function (_a) {
|
|
|
65
65
|
bottomAddons));
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
var styles = {"modal":"bottom-
|
|
68
|
+
var styles = {"modal":"bottom-sheet__modal_15zwm","component":"bottom-sheet__component_15zwm","withTransition":"bottom-sheet__withTransition_15zwm","scrollableContainer":"bottom-sheet__scrollableContainer_15zwm","marker":"bottom-sheet__marker_15zwm","content":"bottom-sheet__content_15zwm","noHeader":"bottom-sheet__noHeader_15zwm","noFooter":"bottom-sheet__noFooter_15zwm","scrollLocked":"bottom-sheet__scrollLocked_15zwm","appear":"bottom-sheet__appear_15zwm","enter":"bottom-sheet__enter_15zwm","appearActive":"bottom-sheet__appearActive_15zwm","enterActive":"bottom-sheet__enterActive_15zwm","enterDone":"bottom-sheet__enterDone_15zwm","appearDone":"bottom-sheet__appearDone_15zwm","exit":"bottom-sheet__exit_15zwm","exitActive":"bottom-sheet__exitActive_15zwm"};
|
|
69
69
|
require('./index.css')
|
|
70
70
|
|
|
71
71
|
var TIMEOUT = 300;
|
package/esm/component.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import './tslib.es6-
|
|
1
|
+
import './tslib.es6-6cf7ccd0.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-div-100vh';
|
|
4
4
|
import 'react-swipeable';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-base-modal/esm';
|
|
7
|
-
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-
|
|
7
|
+
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-22841e82.js';
|
|
8
8
|
import './components/footer/Component.js';
|
|
9
9
|
import './components/swipeable-backdrop/Component.js';
|
|
10
10
|
import '@alfalab/core-components-typography/esm';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as __rest, _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __rest, _ as __assign } from '../../tslib.es6-6cf7ccd0.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { IconButton } from '@alfalab/core-components-icon-button/esm';
|
|
5
5
|
import { ArrowBackMIcon } from '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
6
6
|
|
|
7
|
-
var styles = {"backer":"bottom-
|
|
7
|
+
var styles = {"backer":"bottom-sheet__backer_fcz1o","button":"bottom-sheet__button_fcz1o"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
var Backer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: eu2qb */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
--bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
16
16
|
}
|
|
17
|
-
.bottom-
|
|
17
|
+
.bottom-sheet__backer_fcz1o {
|
|
18
18
|
width: 32px;
|
|
19
19
|
height: 32px;
|
|
20
20
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
color: var(--color-light-graphic-primary);
|
|
25
25
|
}
|
|
26
|
-
.bottom-
|
|
26
|
+
.bottom-sheet__button_fcz1o {
|
|
27
27
|
background: var(--bottom-sheet-backer-bg-color);
|
|
28
28
|
-webkit-backdrop-filter: blur(10px);
|
|
29
29
|
backdrop-filter: blur(10px);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as __rest, _ as __assign } from '../../tslib.es6-
|
|
1
|
+
import { a as __rest, _ as __assign } from '../../tslib.es6-6cf7ccd0.js';
|
|
2
2
|
import React, { useContext, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
5
5
|
import { IconButton } from '@alfalab/core-components-icon-button/esm';
|
|
6
6
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
7
7
|
|
|
8
|
-
var styles = {"closer":"bottom-
|
|
8
|
+
var styles = {"closer":"bottom-sheet__closer_176kj","button":"bottom-sheet__button_176kj"};
|
|
9
9
|
require('./index.css')
|
|
10
10
|
|
|
11
11
|
var Closer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1om2u */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
--bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
16
16
|
}
|
|
17
|
-
.bottom-
|
|
17
|
+
.bottom-sheet__closer_176kj {
|
|
18
18
|
width: 32px;
|
|
19
19
|
height: 32px;
|
|
20
20
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
color: var(--color-light-graphic-primary);
|
|
25
25
|
}
|
|
26
|
-
.bottom-
|
|
26
|
+
.bottom-sheet__button_176kj {
|
|
27
27
|
background: var(--bottom-sheet-closer-bg-color);
|
|
28
28
|
-webkit-backdrop-filter: blur(10px);
|
|
29
29
|
backdrop-filter: blur(10px);
|
|
@@ -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_qm8fj","sticky":"bottom-sheet__sticky_qm8fj","highlighted":"bottom-sheet__highlighted_qm8fj"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
var Footer = function (_a) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bxba2 */
|
|
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_qm8fj {
|
|
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_qm8fj {
|
|
26
26
|
position: sticky;
|
|
27
27
|
bottom: 0;
|
|
28
28
|
}
|
|
29
|
-
.bottom-
|
|
29
|
+
.bottom-sheet__highlighted_qm8fj {
|
|
30
30
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
31
31
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
32
32
|
}
|
|
@@ -2,10 +2,10 @@ import 'react';
|
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '@alfalab/core-components-base-modal/esm';
|
|
4
4
|
import '@alfalab/core-components-typography/esm';
|
|
5
|
-
export { a as Header } from '../../component-
|
|
5
|
+
export { a as Header } from '../../component-22841e82.js';
|
|
6
6
|
import '../backer/Component.js';
|
|
7
7
|
import '../closer/Component.js';
|
|
8
|
-
import '../../tslib.es6-
|
|
8
|
+
import '../../tslib.es6-6cf7ccd0.js';
|
|
9
9
|
import 'react-div-100vh';
|
|
10
10
|
import 'react-swipeable';
|
|
11
11
|
import '../footer/Component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: yide5 */
|
|
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_1bf90 {
|
|
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_1bf90 {
|
|
42
42
|
display: flex;
|
|
43
43
|
}
|
|
44
|
-
.bottom-
|
|
44
|
+
.bottom-sheet__sticky_1bf90 {
|
|
45
45
|
position: sticky;
|
|
46
46
|
top: 0;
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__highlighted_1bf90 {
|
|
49
49
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
50
50
|
}
|
|
51
|
-
.bottom-
|
|
51
|
+
.bottom-sheet__justifyEnd_1bf90 {
|
|
52
52
|
justify-content: flex-end;
|
|
53
53
|
}
|
|
54
|
-
.bottom-
|
|
54
|
+
.bottom-sheet__addon_1bf90 {
|
|
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_1bf90 {
|
|
62
62
|
position: fixed;
|
|
63
63
|
}
|
|
64
|
-
.bottom-
|
|
64
|
+
.bottom-sheet__addonLeft_1bf90 {
|
|
65
65
|
left: 0;
|
|
66
66
|
margin-left: var(--gap-xs);
|
|
67
67
|
}
|
|
68
|
-
.bottom-
|
|
68
|
+
.bottom-sheet__addonRight_1bf90 {
|
|
69
69
|
right: 0;
|
|
70
70
|
margin-right: var(--gap-xs);
|
|
71
71
|
}
|
|
72
|
-
.bottom-
|
|
72
|
+
.bottom-sheet__title_1bf90 {
|
|
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_1bf90 {
|
|
82
82
|
text-align: center;
|
|
83
83
|
}
|
|
84
|
-
.bottom-
|
|
84
|
+
.bottom-sheet__titleLeft_1bf90 {
|
|
85
85
|
text-align: left;
|
|
86
86
|
}
|
|
87
|
-
.bottom-
|
|
87
|
+
.bottom-sheet__trimTitle_1bf90 {
|
|
88
88
|
white-space: nowrap;
|
|
89
89
|
overflow: hidden;
|
|
90
90
|
text-overflow: ellipsis;
|
|
91
91
|
}
|
|
92
|
-
.bottom-
|
|
92
|
+
.bottom-sheet__titleBigIndentHorizontal_1bf90 {
|
|
93
93
|
margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__titleIndentRight_1bf90 {
|
|
96
96
|
margin-right: var(--gap-4xl);
|
|
97
97
|
}
|
|
98
|
-
.bottom-
|
|
98
|
+
.bottom-sheet__titleIndentLeft_1bf90 {
|
|
99
99
|
margin-left: var(--gap-4xl);
|
|
100
100
|
}
|
package/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 109nd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-graphic-quaternary: #dbdee1;
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
--bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
26
26
|
--bottom-sheet-out-transition: 0.3s ease;
|
|
27
27
|
}
|
|
28
|
-
.bottom-
|
|
28
|
+
.bottom-sheet__modal_15zwm {
|
|
29
29
|
background-color: transparent;
|
|
30
30
|
position: fixed;
|
|
31
31
|
bottom: 0;
|
|
32
32
|
width: 100%;
|
|
33
33
|
max-width: 600px;
|
|
34
34
|
}
|
|
35
|
-
.bottom-
|
|
35
|
+
.bottom-sheet__component_15zwm {
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
position: relative;
|
|
38
38
|
display: flex;
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
background: var(--color-light-bg-primary);
|
|
43
43
|
transform: translateY(100%);
|
|
44
44
|
}
|
|
45
|
-
.bottom-
|
|
45
|
+
.bottom-sheet__withTransition_15zwm {
|
|
46
46
|
transition: var(--bottom-sheet-out-transition);
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__scrollableContainer_15zwm {
|
|
49
49
|
overflow: auto;
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
position: relative;
|
|
53
53
|
height: 100%;
|
|
54
54
|
}
|
|
55
|
-
.bottom-
|
|
55
|
+
.bottom-sheet__marker_15zwm {
|
|
56
56
|
position: fixed;
|
|
57
57
|
top: var(--gap-2xs);
|
|
58
58
|
left: 50%;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
background-color: var(--color-light-graphic-quaternary);
|
|
64
64
|
z-index: 1000;
|
|
65
65
|
}
|
|
66
|
-
.bottom-
|
|
66
|
+
.bottom-sheet__content_15zwm {
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-direction: column;
|
|
69
69
|
flex: 1;
|
|
@@ -71,29 +71,29 @@
|
|
|
71
71
|
color: var(--color-light-text-primary);
|
|
72
72
|
background-color: var(--color-light-bg-primary);
|
|
73
73
|
}
|
|
74
|
-
.bottom-
|
|
74
|
+
.bottom-sheet__noHeader_15zwm {
|
|
75
75
|
padding-top: var(--gap-xl);
|
|
76
76
|
}
|
|
77
|
-
.bottom-
|
|
77
|
+
.bottom-sheet__noFooter_15zwm {
|
|
78
78
|
padding-bottom: var(--gap-m);
|
|
79
79
|
}
|
|
80
|
-
.bottom-
|
|
80
|
+
.bottom-sheet__scrollLocked_15zwm {
|
|
81
81
|
overflow: hidden;
|
|
82
82
|
}
|
|
83
|
-
.bottom-
|
|
83
|
+
.bottom-sheet__appear_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__enter_15zwm .bottom-sheet__component_15zwm {
|
|
84
84
|
transition: none;
|
|
85
85
|
}
|
|
86
|
-
.bottom-
|
|
86
|
+
.bottom-sheet__appearActive_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__enterActive_15zwm .bottom-sheet__component_15zwm {
|
|
87
87
|
transition: var(--bottom-sheet-in-transition);
|
|
88
88
|
transform: translateY(0);
|
|
89
89
|
}
|
|
90
|
-
.bottom-
|
|
90
|
+
.bottom-sheet__enterDone_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__appearDone_15zwm .bottom-sheet__component_15zwm {
|
|
91
91
|
transform: translateY(0);
|
|
92
92
|
}
|
|
93
|
-
.bottom-
|
|
93
|
+
.bottom-sheet__exit_15zwm .bottom-sheet__component_15zwm {
|
|
94
94
|
transform: translateY(0);
|
|
95
95
|
}
|
|
96
|
-
.bottom-
|
|
96
|
+
.bottom-sheet__exitActive_15zwm .bottom-sheet__component_15zwm {
|
|
97
97
|
transition: var(--bottom-sheet-out-transition);
|
|
98
98
|
transform: translateY(100%);
|
|
99
99
|
}
|
package/esm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-22841e82";
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-
|
|
2
|
-
import './tslib.es6-
|
|
1
|
+
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-22841e82.js';
|
|
2
|
+
import './tslib.es6-6cf7ccd0.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'react-div-100vh';
|
|
5
5
|
import 'react-swipeable';
|
|
File without changes
|
|
File without changes
|
package/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 109nd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-graphic-quaternary: #dbdee1;
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
--bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
26
26
|
--bottom-sheet-out-transition: 0.3s ease;
|
|
27
27
|
}
|
|
28
|
-
.bottom-
|
|
28
|
+
.bottom-sheet__modal_15zwm {
|
|
29
29
|
background-color: transparent;
|
|
30
30
|
position: fixed;
|
|
31
31
|
bottom: 0;
|
|
32
32
|
width: 100%;
|
|
33
33
|
max-width: 600px;
|
|
34
34
|
}
|
|
35
|
-
.bottom-
|
|
35
|
+
.bottom-sheet__component_15zwm {
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
position: relative;
|
|
38
38
|
display: flex;
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
background: var(--color-light-bg-primary);
|
|
43
43
|
transform: translateY(100%);
|
|
44
44
|
}
|
|
45
|
-
.bottom-
|
|
45
|
+
.bottom-sheet__withTransition_15zwm {
|
|
46
46
|
transition: var(--bottom-sheet-out-transition);
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__scrollableContainer_15zwm {
|
|
49
49
|
overflow: auto;
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
position: relative;
|
|
53
53
|
height: 100%;
|
|
54
54
|
}
|
|
55
|
-
.bottom-
|
|
55
|
+
.bottom-sheet__marker_15zwm {
|
|
56
56
|
position: fixed;
|
|
57
57
|
top: var(--gap-2xs);
|
|
58
58
|
left: 50%;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
background-color: var(--color-light-graphic-quaternary);
|
|
64
64
|
z-index: 1000;
|
|
65
65
|
}
|
|
66
|
-
.bottom-
|
|
66
|
+
.bottom-sheet__content_15zwm {
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-direction: column;
|
|
69
69
|
flex: 1;
|
|
@@ -71,29 +71,29 @@
|
|
|
71
71
|
color: var(--color-light-text-primary);
|
|
72
72
|
background-color: var(--color-light-bg-primary);
|
|
73
73
|
}
|
|
74
|
-
.bottom-
|
|
74
|
+
.bottom-sheet__noHeader_15zwm {
|
|
75
75
|
padding-top: var(--gap-xl);
|
|
76
76
|
}
|
|
77
|
-
.bottom-
|
|
77
|
+
.bottom-sheet__noFooter_15zwm {
|
|
78
78
|
padding-bottom: var(--gap-m);
|
|
79
79
|
}
|
|
80
|
-
.bottom-
|
|
80
|
+
.bottom-sheet__scrollLocked_15zwm {
|
|
81
81
|
overflow: hidden;
|
|
82
82
|
}
|
|
83
|
-
.bottom-
|
|
83
|
+
.bottom-sheet__appear_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__enter_15zwm .bottom-sheet__component_15zwm {
|
|
84
84
|
transition: none;
|
|
85
85
|
}
|
|
86
|
-
.bottom-
|
|
86
|
+
.bottom-sheet__appearActive_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__enterActive_15zwm .bottom-sheet__component_15zwm {
|
|
87
87
|
transition: var(--bottom-sheet-in-transition);
|
|
88
88
|
transform: translateY(0);
|
|
89
89
|
}
|
|
90
|
-
.bottom-
|
|
90
|
+
.bottom-sheet__enterDone_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__appearDone_15zwm .bottom-sheet__component_15zwm {
|
|
91
91
|
transform: translateY(0);
|
|
92
92
|
}
|
|
93
|
-
.bottom-
|
|
93
|
+
.bottom-sheet__exit_15zwm .bottom-sheet__component_15zwm {
|
|
94
94
|
transform: translateY(0);
|
|
95
95
|
}
|
|
96
|
-
.bottom-
|
|
96
|
+
.bottom-sheet__exitActive_15zwm .bottom-sheet__component_15zwm {
|
|
97
97
|
transition: var(--bottom-sheet-out-transition);
|
|
98
98
|
transform: translateY(100%);
|
|
99
99
|
}
|
package/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-8b08e4ba";
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var components_header_Component = require('./component-
|
|
4
|
-
require('./tslib.es6-
|
|
3
|
+
var components_header_Component = require('./component-8b08e4ba.js');
|
|
4
|
+
require('./tslib.es6-bcb769c3.js');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-div-100vh');
|
|
7
7
|
require('react-swipeable');
|
|
File without changes
|
|
@@ -14,7 +14,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
14
14
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
const styles$1 = {"headerWrapper":"bottom-
|
|
17
|
+
const styles$1 = {"headerWrapper":"bottom-sheet__headerWrapper_1bf90","header":"bottom-sheet__header_1bf90","sticky":"bottom-sheet__sticky_1bf90","highlighted":"bottom-sheet__highlighted_1bf90","justifyEnd":"bottom-sheet__justifyEnd_1bf90","addon":"bottom-sheet__addon_1bf90","addonFixed":"bottom-sheet__addonFixed_1bf90","addonLeft":"bottom-sheet__addonLeft_1bf90","addonRight":"bottom-sheet__addonRight_1bf90","title":"bottom-sheet__title_1bf90","titleCenter":"bottom-sheet__titleCenter_1bf90","titleLeft":"bottom-sheet__titleLeft_1bf90","trimTitle":"bottom-sheet__trimTitle_1bf90","titleBigIndentHorizontal":"bottom-sheet__titleBigIndentHorizontal_1bf90","titleIndentRight":"bottom-sheet__titleIndentRight_1bf90","titleIndentLeft":"bottom-sheet__titleIndentLeft_1bf90"};
|
|
18
18
|
require('./components/header/index.css')
|
|
19
19
|
|
|
20
20
|
const Header = ({ title, headerClassName, addonClassName, closerClassName, backerClassName, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign, trimTitle, sticky, dataTestId, onBack, }) => {
|
|
@@ -61,7 +61,7 @@ const Header = ({ title, headerClassName, addonClassName, closerClassName, backe
|
|
|
61
61
|
bottomAddons));
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
const styles = {"modal":"bottom-
|
|
64
|
+
const styles = {"modal":"bottom-sheet__modal_15zwm","component":"bottom-sheet__component_15zwm","withTransition":"bottom-sheet__withTransition_15zwm","scrollableContainer":"bottom-sheet__scrollableContainer_15zwm","marker":"bottom-sheet__marker_15zwm","content":"bottom-sheet__content_15zwm","noHeader":"bottom-sheet__noHeader_15zwm","noFooter":"bottom-sheet__noFooter_15zwm","scrollLocked":"bottom-sheet__scrollLocked_15zwm","appear":"bottom-sheet__appear_15zwm","enter":"bottom-sheet__enter_15zwm","appearActive":"bottom-sheet__appearActive_15zwm","enterActive":"bottom-sheet__enterActive_15zwm","enterDone":"bottom-sheet__enterDone_15zwm","appearDone":"bottom-sheet__appearDone_15zwm","exit":"bottom-sheet__exit_15zwm","exitActive":"bottom-sheet__exitActive_15zwm"};
|
|
65
65
|
require('./index.css')
|
|
66
66
|
|
|
67
67
|
const TIMEOUT = 300;
|
package/modern/component.js
CHANGED
|
@@ -3,7 +3,7 @@ import 'react-div-100vh';
|
|
|
3
3
|
import 'react-swipeable';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/core-components-base-modal/modern';
|
|
6
|
-
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-
|
|
6
|
+
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-958e9bad.js';
|
|
7
7
|
import './components/footer/Component.js';
|
|
8
8
|
import './components/swipeable-backdrop/Component.js';
|
|
9
9
|
import '@alfalab/core-components-typography/modern';
|
|
@@ -3,7 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
4
4
|
import { ArrowBackMIcon } from '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
5
5
|
|
|
6
|
-
const styles = {"backer":"bottom-
|
|
6
|
+
const styles = {"backer":"bottom-sheet__backer_fcz1o","button":"bottom-sheet__button_fcz1o"};
|
|
7
7
|
require('./index.css')
|
|
8
8
|
|
|
9
9
|
const Backer = ({ className, size = 'xs', icon = ArrowBackMIcon, dataTestId, onClick, ...restProps }) => (React.createElement("div", { className: cn(styles.backer, className) },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: eu2qb */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
--bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
16
16
|
}
|
|
17
|
-
.bottom-
|
|
17
|
+
.bottom-sheet__backer_fcz1o {
|
|
18
18
|
width: 32px;
|
|
19
19
|
height: 32px;
|
|
20
20
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
color: var(--color-light-graphic-primary);
|
|
25
25
|
}
|
|
26
|
-
.bottom-
|
|
26
|
+
.bottom-sheet__button_fcz1o {
|
|
27
27
|
background: var(--bottom-sheet-backer-bg-color);
|
|
28
28
|
-webkit-backdrop-filter: blur(10px);
|
|
29
29
|
backdrop-filter: blur(10px);
|
|
@@ -4,7 +4,7 @@ import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
|
4
4
|
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
5
5
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
6
6
|
|
|
7
|
-
const styles = {"closer":"bottom-
|
|
7
|
+
const styles = {"closer":"bottom-sheet__closer_176kj","button":"bottom-sheet__button_176kj"};
|
|
8
8
|
require('./index.css')
|
|
9
9
|
|
|
10
10
|
const Closer = ({ className, size = 'xs', icon = CrossMIcon, dataTestId, ...restProps }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1om2u */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-graphic-primary: #0b1f35;
|
|
4
4
|
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
:root {
|
|
15
15
|
--bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
16
16
|
}
|
|
17
|
-
.bottom-
|
|
17
|
+
.bottom-sheet__closer_176kj {
|
|
18
18
|
width: 32px;
|
|
19
19
|
height: 32px;
|
|
20
20
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
cursor: pointer;
|
|
24
24
|
color: var(--color-light-graphic-primary);
|
|
25
25
|
}
|
|
26
|
-
.bottom-
|
|
26
|
+
.bottom-sheet__button_176kj {
|
|
27
27
|
background: var(--bottom-sheet-closer-bg-color);
|
|
28
28
|
-webkit-backdrop-filter: blur(10px);
|
|
29
29
|
backdrop-filter: blur(10px);
|
|
@@ -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_qm8fj","sticky":"bottom-sheet__sticky_qm8fj","highlighted":"bottom-sheet__highlighted_qm8fj"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Footer = ({ children, className, sticky }) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: bxba2 */
|
|
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_qm8fj {
|
|
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_qm8fj {
|
|
26
26
|
position: sticky;
|
|
27
27
|
bottom: 0;
|
|
28
28
|
}
|
|
29
|
-
.bottom-
|
|
29
|
+
.bottom-sheet__highlighted_qm8fj {
|
|
30
30
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
31
31
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
32
32
|
}
|
|
@@ -2,7 +2,7 @@ import 'react';
|
|
|
2
2
|
import 'classnames';
|
|
3
3
|
import '@alfalab/core-components-base-modal/modern';
|
|
4
4
|
import '@alfalab/core-components-typography/modern';
|
|
5
|
-
export { a as Header } from '../../component-
|
|
5
|
+
export { a as Header } from '../../component-958e9bad.js';
|
|
6
6
|
import '../backer/Component.js';
|
|
7
7
|
import '../closer/Component.js';
|
|
8
8
|
import 'react-div-100vh';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: yide5 */
|
|
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_1bf90 {
|
|
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_1bf90 {
|
|
42
42
|
display: flex;
|
|
43
43
|
}
|
|
44
|
-
.bottom-
|
|
44
|
+
.bottom-sheet__sticky_1bf90 {
|
|
45
45
|
position: sticky;
|
|
46
46
|
top: 0;
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__highlighted_1bf90 {
|
|
49
49
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
50
50
|
}
|
|
51
|
-
.bottom-
|
|
51
|
+
.bottom-sheet__justifyEnd_1bf90 {
|
|
52
52
|
justify-content: flex-end;
|
|
53
53
|
}
|
|
54
|
-
.bottom-
|
|
54
|
+
.bottom-sheet__addon_1bf90 {
|
|
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_1bf90 {
|
|
62
62
|
position: fixed;
|
|
63
63
|
}
|
|
64
|
-
.bottom-
|
|
64
|
+
.bottom-sheet__addonLeft_1bf90 {
|
|
65
65
|
left: 0;
|
|
66
66
|
margin-left: var(--gap-xs);
|
|
67
67
|
}
|
|
68
|
-
.bottom-
|
|
68
|
+
.bottom-sheet__addonRight_1bf90 {
|
|
69
69
|
right: 0;
|
|
70
70
|
margin-right: var(--gap-xs);
|
|
71
71
|
}
|
|
72
|
-
.bottom-
|
|
72
|
+
.bottom-sheet__title_1bf90 {
|
|
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_1bf90 {
|
|
82
82
|
text-align: center;
|
|
83
83
|
}
|
|
84
|
-
.bottom-
|
|
84
|
+
.bottom-sheet__titleLeft_1bf90 {
|
|
85
85
|
text-align: left;
|
|
86
86
|
}
|
|
87
|
-
.bottom-
|
|
87
|
+
.bottom-sheet__trimTitle_1bf90 {
|
|
88
88
|
white-space: nowrap;
|
|
89
89
|
overflow: hidden;
|
|
90
90
|
text-overflow: ellipsis;
|
|
91
91
|
}
|
|
92
|
-
.bottom-
|
|
92
|
+
.bottom-sheet__titleBigIndentHorizontal_1bf90 {
|
|
93
93
|
margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
|
|
94
94
|
}
|
|
95
|
-
.bottom-
|
|
95
|
+
.bottom-sheet__titleIndentRight_1bf90 {
|
|
96
96
|
margin-right: var(--gap-4xl);
|
|
97
97
|
}
|
|
98
|
-
.bottom-
|
|
98
|
+
.bottom-sheet__titleIndentLeft_1bf90 {
|
|
99
99
|
margin-left: var(--gap-4xl);
|
|
100
100
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 109nd */
|
|
2
2
|
:root {
|
|
3
3
|
--color-light-bg-primary: #fff;
|
|
4
4
|
--color-light-graphic-quaternary: #dbdee1;
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
--bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
26
26
|
--bottom-sheet-out-transition: 0.3s ease;
|
|
27
27
|
}
|
|
28
|
-
.bottom-
|
|
28
|
+
.bottom-sheet__modal_15zwm {
|
|
29
29
|
background-color: transparent;
|
|
30
30
|
position: fixed;
|
|
31
31
|
bottom: 0;
|
|
32
32
|
width: 100%;
|
|
33
33
|
max-width: 600px;
|
|
34
34
|
}
|
|
35
|
-
.bottom-
|
|
35
|
+
.bottom-sheet__component_15zwm {
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
position: relative;
|
|
38
38
|
display: flex;
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
background: var(--color-light-bg-primary);
|
|
43
43
|
transform: translateY(100%);
|
|
44
44
|
}
|
|
45
|
-
.bottom-
|
|
45
|
+
.bottom-sheet__withTransition_15zwm {
|
|
46
46
|
transition: var(--bottom-sheet-out-transition);
|
|
47
47
|
}
|
|
48
|
-
.bottom-
|
|
48
|
+
.bottom-sheet__scrollableContainer_15zwm {
|
|
49
49
|
overflow: auto;
|
|
50
50
|
display: flex;
|
|
51
51
|
flex-direction: column;
|
|
52
52
|
position: relative;
|
|
53
53
|
height: 100%;
|
|
54
54
|
}
|
|
55
|
-
.bottom-
|
|
55
|
+
.bottom-sheet__marker_15zwm {
|
|
56
56
|
position: fixed;
|
|
57
57
|
top: var(--gap-2xs);
|
|
58
58
|
left: 50%;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
background-color: var(--color-light-graphic-quaternary);
|
|
64
64
|
z-index: 1000;
|
|
65
65
|
}
|
|
66
|
-
.bottom-
|
|
66
|
+
.bottom-sheet__content_15zwm {
|
|
67
67
|
display: flex;
|
|
68
68
|
flex-direction: column;
|
|
69
69
|
flex: 1;
|
|
@@ -71,29 +71,29 @@
|
|
|
71
71
|
color: var(--color-light-text-primary);
|
|
72
72
|
background-color: var(--color-light-bg-primary);
|
|
73
73
|
}
|
|
74
|
-
.bottom-
|
|
74
|
+
.bottom-sheet__noHeader_15zwm {
|
|
75
75
|
padding-top: var(--gap-xl);
|
|
76
76
|
}
|
|
77
|
-
.bottom-
|
|
77
|
+
.bottom-sheet__noFooter_15zwm {
|
|
78
78
|
padding-bottom: var(--gap-m);
|
|
79
79
|
}
|
|
80
|
-
.bottom-
|
|
80
|
+
.bottom-sheet__scrollLocked_15zwm {
|
|
81
81
|
overflow: hidden;
|
|
82
82
|
}
|
|
83
|
-
.bottom-
|
|
83
|
+
.bottom-sheet__appear_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__enter_15zwm .bottom-sheet__component_15zwm {
|
|
84
84
|
transition: none;
|
|
85
85
|
}
|
|
86
|
-
.bottom-
|
|
86
|
+
.bottom-sheet__appearActive_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__enterActive_15zwm .bottom-sheet__component_15zwm {
|
|
87
87
|
transition: var(--bottom-sheet-in-transition);
|
|
88
88
|
transform: translateY(0);
|
|
89
89
|
}
|
|
90
|
-
.bottom-
|
|
90
|
+
.bottom-sheet__enterDone_15zwm .bottom-sheet__component_15zwm, .bottom-sheet__appearDone_15zwm .bottom-sheet__component_15zwm {
|
|
91
91
|
transform: translateY(0);
|
|
92
92
|
}
|
|
93
|
-
.bottom-
|
|
93
|
+
.bottom-sheet__exit_15zwm .bottom-sheet__component_15zwm {
|
|
94
94
|
transform: translateY(0);
|
|
95
95
|
}
|
|
96
|
-
.bottom-
|
|
96
|
+
.bottom-sheet__exitActive_15zwm .bottom-sheet__component_15zwm {
|
|
97
97
|
transition: var(--bottom-sheet-out-transition);
|
|
98
98
|
transform: translateY(100%);
|
|
99
99
|
}
|
package/modern/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-958e9bad";
|
package/modern/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-
|
|
1
|
+
export { B as BottomSheet, C as CLOSE_OFFSET, H as HEADER_OFFSET } from './component-958e9bad.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-div-100vh';
|
|
4
4
|
import 'react-swipeable';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-bottom-sheet",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.14",
|
|
4
4
|
"description": "Bottom sheet mobile component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@alfalab/core-components-backdrop": "^3.0.2",
|
|
22
22
|
"@alfalab/core-components-base-modal": "^5.0.7",
|
|
23
|
-
"@alfalab/core-components-icon-button": "^6.0.
|
|
24
|
-
"@alfalab/core-components-typography": "^3.0.
|
|
23
|
+
"@alfalab/core-components-icon-button": "^6.0.3",
|
|
24
|
+
"@alfalab/core-components-typography": "^3.0.8",
|
|
25
25
|
"classnames": "^2.3.1",
|
|
26
26
|
"react-div-100vh": "^0.7.0",
|
|
27
27
|
"react-swipeable": "^5.5.1",
|
|
File without changes
|
|
File without changes
|