@alfalab/core-components-bottom-sheet 5.3.1 → 6.0.1
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-7f6ec6ba.d.ts → component-1a05f463.d.ts} +14 -67
- package/{component-7f6ec6ba.js → component-1a05f463.js} +23 -67
- package/component.js +2 -7
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +4 -4
- package/components/header/Component.js +3 -8
- package/components/header/index.css +19 -32
- package/cssm/{component-8a02e7db.d.ts → component-3f9ff39b.d.ts} +14 -67
- package/cssm/{component-8a02e7db.js → component-3f9ff39b.js} +21 -65
- package/cssm/component.js +2 -9
- package/cssm/components/header/Component.js +3 -10
- package/cssm/components/header/index.module.css +7 -20
- package/cssm/index.d.ts +1 -1
- package/cssm/index.js +2 -9
- package/cssm/index.module.css +4 -5
- package/esm/{component-9a8081cd.d.ts → component-d9905fec.d.ts} +14 -67
- package/esm/{component-9a8081cd.js → component-d9905fec.js} +24 -68
- package/esm/component.js +2 -7
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +4 -4
- package/esm/components/header/Component.js +3 -8
- package/esm/components/header/index.css +19 -32
- package/esm/index.css +19 -20
- package/esm/index.d.ts +1 -1
- package/esm/index.js +2 -7
- package/index.css +19 -20
- package/index.d.ts +1 -1
- package/index.js +2 -7
- package/modern/{component-6012913e.d.ts → component-f5b809c2.d.ts} +14 -67
- package/modern/{component-6012913e.js → component-f5b809c2.js} +28 -51
- package/modern/component.js +2 -7
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +4 -4
- package/modern/components/header/Component.js +2 -7
- package/modern/components/header/index.css +19 -32
- package/modern/index.css +19 -20
- package/modern/index.d.ts +1 -1
- package/modern/index.js +2 -7
- package/package.json +5 -4
- package/components/backer/Component.d.ts +0 -28
- package/components/backer/Component.js +0 -23
- package/components/backer/index.css +0 -34
- package/components/closer/Component.d.ts +0 -24
- package/components/closer/Component.js +0 -28
- package/components/closer/index.css +0 -34
- package/cssm/components/backer/Component.d.ts +0 -28
- package/cssm/components/backer/Component.js +0 -22
- package/cssm/components/backer/index.module.css +0 -33
- package/cssm/components/closer/Component.d.ts +0 -24
- package/cssm/components/closer/Component.js +0 -27
- package/cssm/components/closer/index.module.css +0 -33
- package/esm/components/backer/Component.d.ts +0 -28
- package/esm/components/backer/Component.js +0 -16
- package/esm/components/backer/index.css +0 -34
- package/esm/components/closer/Component.d.ts +0 -24
- package/esm/components/closer/Component.js +0 -21
- package/esm/components/closer/index.css +0 -34
- package/modern/components/backer/Component.d.ts +0 -28
- package/modern/components/backer/Component.js +0 -12
- package/modern/components/backer/index.css +0 -34
- package/modern/components/closer/Component.d.ts +0 -24
- package/modern/components/closer/Component.js +0 -19
- package/modern/components/closer/index.css +0 -34
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 16iui */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
5
|
+
--color-light-border-primary: #dbdee1;
|
|
5
6
|
} :root {
|
|
6
7
|
} :root {
|
|
7
8
|
} :root {
|
|
@@ -16,68 +17,54 @@
|
|
|
16
17
|
} :root {
|
|
17
18
|
--gap-2xs: 4px;
|
|
18
19
|
--gap-xs: 8px;
|
|
19
|
-
--gap-
|
|
20
|
+
--gap-s: 12px;
|
|
20
21
|
} :root {
|
|
21
22
|
--font-family-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
22
23
|
sans-serif;
|
|
23
24
|
} :root {
|
|
24
25
|
} :root {
|
|
25
|
-
--bottom-sheet-header-border-bottom:
|
|
26
|
+
--bottom-sheet-header-border-bottom: 1px solid var(--color-light-border-primary);
|
|
26
27
|
--bottom-sheet-title-font-size: 18px;
|
|
27
28
|
--bottom-sheet-title-font-weight: 700;
|
|
28
29
|
--bottom-sheet-title-line-height: 24px;
|
|
29
30
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
padding: var(--gap-xs);
|
|
33
|
-
padding-bottom: 0;
|
|
34
|
-
background-color: var(--color-light-bg-primary);
|
|
31
|
+
} .bottom-sheet__headerWrapper_1q9xx {
|
|
32
|
+
padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
|
|
35
33
|
border-top-right-radius: var(--border-radius-xl);
|
|
36
34
|
border-top-left-radius: var(--border-radius-xl);
|
|
37
35
|
z-index: 1;
|
|
38
|
-
} .bottom-
|
|
36
|
+
} .bottom-sheet__hasContent_1q9xx {
|
|
37
|
+
background-color: var(--color-light-bg-primary);
|
|
38
|
+
} .bottom-sheet__header_1q9xx {
|
|
39
39
|
display: flex;
|
|
40
|
-
} .bottom-
|
|
40
|
+
} .bottom-sheet__sticky_1q9xx {
|
|
41
41
|
position: sticky;
|
|
42
42
|
top: 0;
|
|
43
|
-
} .bottom-
|
|
43
|
+
} .bottom-sheet__highlighted_1q9xx {
|
|
44
44
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
45
|
-
} .bottom-
|
|
45
|
+
} .bottom-sheet__justifyEnd_1q9xx {
|
|
46
46
|
justify-content: flex-end;
|
|
47
|
-
} .bottom-
|
|
47
|
+
} .bottom-sheet__addon_1q9xx {
|
|
48
48
|
display: flex;
|
|
49
49
|
justify-content: center;
|
|
50
50
|
align-items: center;
|
|
51
51
|
min-width: 48px;
|
|
52
52
|
height: 48px;
|
|
53
|
-
} .bottom-
|
|
53
|
+
} .bottom-sheet__addonFixed_1q9xx {
|
|
54
54
|
position: fixed;
|
|
55
|
-
} .bottom-
|
|
56
|
-
|
|
57
|
-
margin-left: var(--gap-xs);
|
|
58
|
-
} .bottom-sheet__addonRight_1veed {
|
|
59
|
-
right: 0;
|
|
60
|
-
margin-right: var(--gap-xs);
|
|
61
|
-
} .bottom-sheet__title_1veed {
|
|
62
|
-
padding: var(--gap-xs) var(--gap-xs);
|
|
63
|
-
margin: var(--bottom-sheet-title-margin-vertical) 0;
|
|
55
|
+
} .bottom-sheet__title_1q9xx {
|
|
56
|
+
padding: var(--gap-s) var(--gap-xs);
|
|
64
57
|
width: 100%;
|
|
65
58
|
font-size: var(--bottom-sheet-title-font-size);
|
|
66
59
|
font-weight: var(--bottom-sheet-title-font-weight);
|
|
67
60
|
line-height: var(--bottom-sheet-title-line-height);
|
|
68
61
|
font-family: var(--bottom-sheet-title-font-family);
|
|
69
|
-
} .bottom-
|
|
62
|
+
} .bottom-sheet__titleCenter_1q9xx {
|
|
70
63
|
text-align: center;
|
|
71
|
-
} .bottom-
|
|
64
|
+
} .bottom-sheet__titleLeft_1q9xx {
|
|
72
65
|
text-align: left;
|
|
73
|
-
} .bottom-
|
|
66
|
+
} .bottom-sheet__trimTitle_1q9xx {
|
|
74
67
|
white-space: nowrap;
|
|
75
68
|
overflow: hidden;
|
|
76
69
|
text-overflow: ellipsis;
|
|
77
|
-
} .bottom-sheet__titleBigIndentHorizontal_1veed {
|
|
78
|
-
margin: var(--bottom-sheet-title-margin-vertical) var(--gap-4xl);
|
|
79
|
-
} .bottom-sheet__titleIndentRight_1veed {
|
|
80
|
-
margin-right: var(--gap-4xl);
|
|
81
|
-
} .bottom-sheet__titleIndentLeft_1veed {
|
|
82
|
-
margin-left: var(--gap-4xl);
|
|
83
70
|
}
|
package/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: xnz1g */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-bg-primary: #fff;
|
|
@@ -14,41 +14,40 @@
|
|
|
14
14
|
|
|
15
15
|
/* Hard up */
|
|
16
16
|
} :root {
|
|
17
|
+
--border-radius-xl: 16px;
|
|
17
18
|
--border-radius-xxl: 20px;
|
|
18
|
-
--border-radius-3xl: 24px;
|
|
19
19
|
} :root {
|
|
20
20
|
--gap-2xs: 4px;
|
|
21
21
|
--gap-m: 16px;
|
|
22
|
-
--gap-xl: 24px;
|
|
23
22
|
} :root {
|
|
24
23
|
} :root {
|
|
25
24
|
} :root {
|
|
26
25
|
--bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
27
26
|
--bottom-sheet-out-transition: 0.3s ease;
|
|
28
|
-
} .bottom-
|
|
27
|
+
} .bottom-sheet__modal_1k7p8 {
|
|
29
28
|
background-color: transparent;
|
|
30
29
|
position: fixed;
|
|
31
30
|
bottom: 0;
|
|
32
31
|
width: 100%;
|
|
33
32
|
max-width: 600px;
|
|
34
|
-
} .bottom-
|
|
33
|
+
} .bottom-sheet__component_1k7p8 {
|
|
35
34
|
overflow: hidden;
|
|
36
35
|
position: relative;
|
|
37
36
|
display: flex;
|
|
38
37
|
flex-direction: column;
|
|
39
|
-
border-top-right-radius: var(--border-radius-
|
|
40
|
-
border-top-left-radius: var(--border-radius-
|
|
38
|
+
border-top-right-radius: var(--border-radius-xl);
|
|
39
|
+
border-top-left-radius: var(--border-radius-xl);
|
|
41
40
|
background: var(--color-light-bg-primary);
|
|
42
41
|
transform: translateY(100%);
|
|
43
|
-
} .bottom-
|
|
42
|
+
} .bottom-sheet__withTransition_1k7p8 {
|
|
44
43
|
transition: var(--bottom-sheet-out-transition);
|
|
45
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__scrollableContainer_1k7p8 {
|
|
46
45
|
overflow: auto;
|
|
47
46
|
display: flex;
|
|
48
47
|
flex-direction: column;
|
|
49
48
|
position: relative;
|
|
50
49
|
height: 100%;
|
|
51
|
-
} .bottom-
|
|
50
|
+
} .bottom-sheet__marker_1k7p8 {
|
|
52
51
|
position: fixed;
|
|
53
52
|
top: var(--gap-2xs);
|
|
54
53
|
left: 50%;
|
|
@@ -58,29 +57,29 @@
|
|
|
58
57
|
transform: translateX(-50%);
|
|
59
58
|
background-color: var(--color-light-graphic-quaternary);
|
|
60
59
|
z-index: 1000;
|
|
61
|
-
} .bottom-
|
|
60
|
+
} .bottom-sheet__content_1k7p8 {
|
|
62
61
|
display: flex;
|
|
63
62
|
flex-direction: column;
|
|
64
63
|
flex: 1;
|
|
65
64
|
padding: 0 var(--gap-m);
|
|
66
65
|
color: var(--color-light-text-primary);
|
|
67
66
|
background-color: var(--color-light-bg-primary);
|
|
68
|
-
} .bottom-
|
|
69
|
-
padding-top: var(--gap-
|
|
70
|
-
} .bottom-
|
|
67
|
+
} .bottom-sheet__noHeader_1k7p8 {
|
|
68
|
+
padding-top: var(--gap-m);
|
|
69
|
+
} .bottom-sheet__noFooter_1k7p8 {
|
|
71
70
|
padding-bottom: var(--gap-m);
|
|
72
|
-
} .bottom-
|
|
71
|
+
} .bottom-sheet__scrollLocked_1k7p8 {
|
|
73
72
|
overflow: hidden;
|
|
74
|
-
} .bottom-
|
|
73
|
+
} .bottom-sheet__appear_1k7p8 .bottom-sheet__component_1k7p8, .bottom-sheet__enter_1k7p8 .bottom-sheet__component_1k7p8 {
|
|
75
74
|
transition: none;
|
|
76
|
-
} .bottom-
|
|
75
|
+
} .bottom-sheet__appearActive_1k7p8 .bottom-sheet__component_1k7p8, .bottom-sheet__enterActive_1k7p8 .bottom-sheet__component_1k7p8 {
|
|
77
76
|
transition: var(--bottom-sheet-in-transition);
|
|
78
77
|
transform: translateY(0);
|
|
79
|
-
} .bottom-
|
|
78
|
+
} .bottom-sheet__enterDone_1k7p8 .bottom-sheet__component_1k7p8, .bottom-sheet__appearDone_1k7p8 .bottom-sheet__component_1k7p8 {
|
|
80
79
|
transform: translateY(0);
|
|
81
|
-
} .bottom-
|
|
80
|
+
} .bottom-sheet__exit_1k7p8 .bottom-sheet__component_1k7p8 {
|
|
82
81
|
transform: translateY(0);
|
|
83
|
-
} .bottom-
|
|
82
|
+
} .bottom-sheet__exitActive_1k7p8 .bottom-sheet__component_1k7p8 {
|
|
84
83
|
transition: var(--bottom-sheet-out-transition);
|
|
85
84
|
transform: translateY(100%);
|
|
86
85
|
}
|
package/modern/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-f5b809c2";
|
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-f5b809c2.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-div-100vh';
|
|
4
4
|
import 'react-merge-refs';
|
|
@@ -6,11 +6,6 @@ import 'react-swipeable';
|
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '@alfalab/core-components-base-modal/modern';
|
|
8
8
|
import './components/footer/Component.js';
|
|
9
|
-
import '@alfalab/core-components-
|
|
9
|
+
import '@alfalab/core-components-navigation-bar/modern';
|
|
10
10
|
import './components/swipeable-backdrop/Component.js';
|
|
11
11
|
import '@alfalab/core-components-backdrop/modern';
|
|
12
|
-
import './components/backer/Component.js';
|
|
13
|
-
import '@alfalab/core-components-icon-button/modern';
|
|
14
|
-
import '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
15
|
-
import './components/closer/Component.js';
|
|
16
|
-
import '@alfalab/icons-glyph/CrossMIcon';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-bottom-sheet",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Bottom sheet mobile component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@alfalab/core-components-backdrop": "^3.0.4",
|
|
22
|
-
"@alfalab/core-components-base-modal": "^5.
|
|
23
|
-
"@alfalab/core-components-icon-button": "^6.0.
|
|
24
|
-
"@alfalab/core-components-typography": "^3.
|
|
22
|
+
"@alfalab/core-components-base-modal": "^5.1.1",
|
|
23
|
+
"@alfalab/core-components-icon-button": "^6.0.8",
|
|
24
|
+
"@alfalab/core-components-typography": "^3.2.0",
|
|
25
|
+
"@alfalab/core-components-navigation-bar": "^0.1.1",
|
|
25
26
|
"classnames": "^2.3.1",
|
|
26
27
|
"react-div-100vh": "^0.7.0",
|
|
27
28
|
"react-merge-refs": "^1.1.0",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
|
-
import { IconButtonProps } from "@alfalab/core-components-icon-button";
|
|
5
|
-
type BackerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
-
/**
|
|
7
|
-
* Дополнительный класс
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Размер кнопки
|
|
12
|
-
*/
|
|
13
|
-
size?: IconButtonProps['size'];
|
|
14
|
-
/**
|
|
15
|
-
* Иконка
|
|
16
|
-
*/
|
|
17
|
-
icon?: ElementType;
|
|
18
|
-
/**
|
|
19
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
20
|
-
*/
|
|
21
|
-
dataTestId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Обработчик нажатия
|
|
24
|
-
*/
|
|
25
|
-
onClick?: () => void;
|
|
26
|
-
};
|
|
27
|
-
declare const Backer: React.FC<BackerProps>;
|
|
28
|
-
export { BackerProps, Backer };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib = require('tslib');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var cn = require('classnames');
|
|
6
|
-
var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
|
|
7
|
-
var ArrowBackMIcon = require('@alfalab/icons-glyph/ArrowBackMIcon');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
-
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
|
-
|
|
14
|
-
var styles = {"backer":"bottom-sheet__backer_i62n2","button":"bottom-sheet__button_i62n2"};
|
|
15
|
-
require('./index.css')
|
|
16
|
-
|
|
17
|
-
var Backer = function (_a) {
|
|
18
|
-
var className = _a.className, _b = _a.size, size = _b === void 0 ? 'xs' : _b, _c = _a.icon, icon = _c === void 0 ? ArrowBackMIcon.ArrowBackMIcon : _c, dataTestId = _a.dataTestId, onClick = _a.onClick, restProps = tslib.__rest(_a, ["className", "size", "icon", "dataTestId", "onClick"]);
|
|
19
|
-
return (React__default.default.createElement("div", { className: cn__default.default(styles.backer, className) },
|
|
20
|
-
React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({ size: size, className: styles.button, "aria-label": '\u043D\u0430\u0437\u0430\u0434', onClick: onClick, icon: icon, dataTestId: dataTestId }, restProps))));
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
exports.Backer = Backer;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* hash: fo1vj */
|
|
2
|
-
:root {
|
|
3
|
-
} /* deprecated */ :root {
|
|
4
|
-
--color-light-graphic-primary: #0b1f35;
|
|
5
|
-
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
6
|
-
} :root {
|
|
7
|
-
} :root {
|
|
8
|
-
} :root {
|
|
9
|
-
|
|
10
|
-
/* Hard */
|
|
11
|
-
|
|
12
|
-
/* Up */
|
|
13
|
-
|
|
14
|
-
/* Hard up */
|
|
15
|
-
} :root {
|
|
16
|
-
} :root {
|
|
17
|
-
} :root {
|
|
18
|
-
} :root {
|
|
19
|
-
} :root {
|
|
20
|
-
--bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
21
|
-
} .bottom-sheet__backer_i62n2 {
|
|
22
|
-
width: 32px;
|
|
23
|
-
height: 32px;
|
|
24
|
-
display: flex;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
color: var(--color-light-graphic-primary);
|
|
29
|
-
} .bottom-sheet__button_i62n2 {
|
|
30
|
-
background: var(--bottom-sheet-backer-bg-color);
|
|
31
|
-
-webkit-backdrop-filter: blur(10px);
|
|
32
|
-
backdrop-filter: blur(10px);
|
|
33
|
-
border-radius: 50px;
|
|
34
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
|
-
import { IconButtonProps } from "@alfalab/core-components-icon-button";
|
|
5
|
-
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
-
/**
|
|
7
|
-
* Дополнительный класс
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Размер кнопки
|
|
12
|
-
*/
|
|
13
|
-
size?: IconButtonProps['size'];
|
|
14
|
-
/**
|
|
15
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
16
|
-
*/
|
|
17
|
-
dataTestId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Иконка
|
|
20
|
-
*/
|
|
21
|
-
icon?: ElementType;
|
|
22
|
-
};
|
|
23
|
-
declare const Closer: React.FC<CloserProps>;
|
|
24
|
-
export { CloserProps, Closer };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib = require('tslib');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var cn = require('classnames');
|
|
6
|
-
var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
|
|
7
|
-
var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
|
|
8
|
-
var CrossMIcon = require('@alfalab/icons-glyph/CrossMIcon');
|
|
9
|
-
|
|
10
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
|
-
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
|
-
|
|
15
|
-
var styles = {"closer":"bottom-sheet__closer_1254o","button":"bottom-sheet__button_1254o"};
|
|
16
|
-
require('./index.css')
|
|
17
|
-
|
|
18
|
-
var Closer = function (_a) {
|
|
19
|
-
var className = _a.className, _b = _a.size, size = _b === void 0 ? 'xs' : _b, _c = _a.icon, icon = _c === void 0 ? CrossMIcon.CrossMIcon : _c, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["className", "size", "icon", "dataTestId"]);
|
|
20
|
-
var onClose = React.useContext(coreComponentsBaseModal.BaseModalContext).onClose;
|
|
21
|
-
var handleClick = React.useCallback(function (event) {
|
|
22
|
-
onClose(event, 'closerClick');
|
|
23
|
-
}, [onClose]);
|
|
24
|
-
return (React__default.default.createElement("div", { className: cn__default.default(styles.closer, className) },
|
|
25
|
-
React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({ size: size, className: styles.button, "aria-label": '\u0437\u0430\u043A\u0440\u044B\u0442\u044C', onClick: handleClick, icon: icon, dataTestId: dataTestId }, restProps))));
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
exports.Closer = Closer;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* hash: 1cmjx */
|
|
2
|
-
:root {
|
|
3
|
-
} /* deprecated */ :root {
|
|
4
|
-
--color-light-graphic-primary: #0b1f35;
|
|
5
|
-
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
6
|
-
} :root {
|
|
7
|
-
} :root {
|
|
8
|
-
} :root {
|
|
9
|
-
|
|
10
|
-
/* Hard */
|
|
11
|
-
|
|
12
|
-
/* Up */
|
|
13
|
-
|
|
14
|
-
/* Hard up */
|
|
15
|
-
} :root {
|
|
16
|
-
} :root {
|
|
17
|
-
} :root {
|
|
18
|
-
} :root {
|
|
19
|
-
} :root {
|
|
20
|
-
--bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
21
|
-
} .bottom-sheet__closer_1254o {
|
|
22
|
-
width: 32px;
|
|
23
|
-
height: 32px;
|
|
24
|
-
display: flex;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
color: var(--color-light-graphic-primary);
|
|
29
|
-
} .bottom-sheet__button_1254o {
|
|
30
|
-
background: var(--bottom-sheet-closer-bg-color);
|
|
31
|
-
-webkit-backdrop-filter: blur(10px);
|
|
32
|
-
backdrop-filter: blur(10px);
|
|
33
|
-
border-radius: 50px;
|
|
34
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
|
-
import { IconButtonProps } from "@alfalab/core-components-icon-button";
|
|
5
|
-
type BackerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
-
/**
|
|
7
|
-
* Дополнительный класс
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Размер кнопки
|
|
12
|
-
*/
|
|
13
|
-
size?: IconButtonProps['size'];
|
|
14
|
-
/**
|
|
15
|
-
* Иконка
|
|
16
|
-
*/
|
|
17
|
-
icon?: ElementType;
|
|
18
|
-
/**
|
|
19
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
20
|
-
*/
|
|
21
|
-
dataTestId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Обработчик нажатия
|
|
24
|
-
*/
|
|
25
|
-
onClick?: () => void;
|
|
26
|
-
};
|
|
27
|
-
declare const Backer: React.FC<BackerProps>;
|
|
28
|
-
export { BackerProps, Backer };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib = require('tslib');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var cn = require('classnames');
|
|
6
|
-
var coreComponentsIconButton = require('@alfalab/core-components-icon-button/cssm');
|
|
7
|
-
var ArrowBackMIcon = require('@alfalab/icons-glyph/ArrowBackMIcon');
|
|
8
|
-
var styles = require('./index.module.css');
|
|
9
|
-
|
|
10
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
|
-
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
|
-
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
15
|
-
|
|
16
|
-
var Backer = function (_a) {
|
|
17
|
-
var className = _a.className, _b = _a.size, size = _b === void 0 ? 'xs' : _b, _c = _a.icon, icon = _c === void 0 ? ArrowBackMIcon.ArrowBackMIcon : _c, dataTestId = _a.dataTestId, onClick = _a.onClick, restProps = tslib.__rest(_a, ["className", "size", "icon", "dataTestId", "onClick"]);
|
|
18
|
-
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.backer, className) },
|
|
19
|
-
React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({ size: size, className: styles__default.default.button, "aria-label": '\u043D\u0430\u0437\u0430\u0434', onClick: onClick, icon: icon, dataTestId: dataTestId }, restProps))));
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
exports.Backer = Backer;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
} /* deprecated */ :root {
|
|
3
|
-
--color-light-graphic-primary: #0b1f35;
|
|
4
|
-
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
5
|
-
} :root {
|
|
6
|
-
} :root {
|
|
7
|
-
} :root {
|
|
8
|
-
|
|
9
|
-
/* Hard */
|
|
10
|
-
|
|
11
|
-
/* Up */
|
|
12
|
-
|
|
13
|
-
/* Hard up */
|
|
14
|
-
} :root {
|
|
15
|
-
} :root {
|
|
16
|
-
} :root {
|
|
17
|
-
} :root {
|
|
18
|
-
} :root {
|
|
19
|
-
--bottom-sheet-backer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
20
|
-
} .backer {
|
|
21
|
-
width: 32px;
|
|
22
|
-
height: 32px;
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
color: var(--color-light-graphic-primary);
|
|
28
|
-
} .button {
|
|
29
|
-
background: var(--bottom-sheet-backer-bg-color);
|
|
30
|
-
-webkit-backdrop-filter: blur(10px);
|
|
31
|
-
backdrop-filter: blur(10px);
|
|
32
|
-
border-radius: 50px;
|
|
33
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
|
-
import { IconButtonProps } from "@alfalab/core-components-icon-button";
|
|
5
|
-
type CloserProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
-
/**
|
|
7
|
-
* Дополнительный класс
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Размер кнопки
|
|
12
|
-
*/
|
|
13
|
-
size?: IconButtonProps['size'];
|
|
14
|
-
/**
|
|
15
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
16
|
-
*/
|
|
17
|
-
dataTestId?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Иконка
|
|
20
|
-
*/
|
|
21
|
-
icon?: ElementType;
|
|
22
|
-
};
|
|
23
|
-
declare const Closer: React.FC<CloserProps>;
|
|
24
|
-
export { CloserProps, Closer };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib = require('tslib');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var cn = require('classnames');
|
|
6
|
-
var coreComponentsBaseModal = require('@alfalab/core-components-base-modal/cssm');
|
|
7
|
-
var coreComponentsIconButton = require('@alfalab/core-components-icon-button/cssm');
|
|
8
|
-
var CrossMIcon = require('@alfalab/icons-glyph/CrossMIcon');
|
|
9
|
-
var styles = require('./index.module.css');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
14
|
-
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
15
|
-
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
16
|
-
|
|
17
|
-
var Closer = function (_a) {
|
|
18
|
-
var className = _a.className, _b = _a.size, size = _b === void 0 ? 'xs' : _b, _c = _a.icon, icon = _c === void 0 ? CrossMIcon.CrossMIcon : _c, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["className", "size", "icon", "dataTestId"]);
|
|
19
|
-
var onClose = React.useContext(coreComponentsBaseModal.BaseModalContext).onClose;
|
|
20
|
-
var handleClick = React.useCallback(function (event) {
|
|
21
|
-
onClose(event, 'closerClick');
|
|
22
|
-
}, [onClose]);
|
|
23
|
-
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.closer, className) },
|
|
24
|
-
React__default.default.createElement(coreComponentsIconButton.IconButton, tslib.__assign({ size: size, className: styles__default.default.button, "aria-label": '\u0437\u0430\u043A\u0440\u044B\u0442\u044C', onClick: handleClick, icon: icon, dataTestId: dataTestId }, restProps))));
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports.Closer = Closer;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
} /* deprecated */ :root {
|
|
3
|
-
--color-light-graphic-primary: #0b1f35;
|
|
4
|
-
--color-light-bg-primary-inverted-alpha-3: rgba(11, 31, 53, 0.03);
|
|
5
|
-
} :root {
|
|
6
|
-
} :root {
|
|
7
|
-
} :root {
|
|
8
|
-
|
|
9
|
-
/* Hard */
|
|
10
|
-
|
|
11
|
-
/* Up */
|
|
12
|
-
|
|
13
|
-
/* Hard up */
|
|
14
|
-
} :root {
|
|
15
|
-
} :root {
|
|
16
|
-
} :root {
|
|
17
|
-
} :root {
|
|
18
|
-
} :root {
|
|
19
|
-
--bottom-sheet-closer-bg-color: var(--color-light-bg-primary-inverted-alpha-3);
|
|
20
|
-
} .closer {
|
|
21
|
-
width: 32px;
|
|
22
|
-
height: 32px;
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
color: var(--color-light-graphic-primary);
|
|
28
|
-
} .button {
|
|
29
|
-
background: var(--bottom-sheet-closer-bg-color);
|
|
30
|
-
-webkit-backdrop-filter: blur(10px);
|
|
31
|
-
backdrop-filter: blur(10px);
|
|
32
|
-
border-radius: 50px;
|
|
33
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ButtonHTMLAttributes, ElementType } from "react";
|
|
4
|
-
import { IconButtonProps } from "@alfalab/core-components-icon-button";
|
|
5
|
-
type BackerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
-
/**
|
|
7
|
-
* Дополнительный класс
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Размер кнопки
|
|
12
|
-
*/
|
|
13
|
-
size?: IconButtonProps['size'];
|
|
14
|
-
/**
|
|
15
|
-
* Иконка
|
|
16
|
-
*/
|
|
17
|
-
icon?: ElementType;
|
|
18
|
-
/**
|
|
19
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
20
|
-
*/
|
|
21
|
-
dataTestId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Обработчик нажатия
|
|
24
|
-
*/
|
|
25
|
-
onClick?: () => void;
|
|
26
|
-
};
|
|
27
|
-
declare const Backer: React.FC<BackerProps>;
|
|
28
|
-
export { BackerProps, Backer };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __rest, __assign } from 'tslib';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import cn from 'classnames';
|
|
4
|
-
import { IconButton } from '@alfalab/core-components-icon-button/esm';
|
|
5
|
-
import { ArrowBackMIcon } from '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
6
|
-
|
|
7
|
-
var styles = {"backer":"bottom-sheet__backer_i62n2","button":"bottom-sheet__button_i62n2"};
|
|
8
|
-
require('./index.css')
|
|
9
|
-
|
|
10
|
-
var Backer = function (_a) {
|
|
11
|
-
var className = _a.className, _b = _a.size, size = _b === void 0 ? 'xs' : _b, _c = _a.icon, icon = _c === void 0 ? ArrowBackMIcon : _c, dataTestId = _a.dataTestId, onClick = _a.onClick, restProps = __rest(_a, ["className", "size", "icon", "dataTestId", "onClick"]);
|
|
12
|
-
return (React.createElement("div", { className: cn(styles.backer, className) },
|
|
13
|
-
React.createElement(IconButton, __assign({ size: size, className: styles.button, "aria-label": '\u043D\u0430\u0437\u0430\u0434', onClick: onClick, icon: icon, dataTestId: dataTestId }, restProps))));
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { Backer };
|