@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,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,21 +0,0 @@
|
|
|
1
|
-
import { __rest, __assign } from 'tslib';
|
|
2
|
-
import React, { useContext, useCallback } from 'react';
|
|
3
|
-
import cn from 'classnames';
|
|
4
|
-
import { BaseModalContext } from '@alfalab/core-components-base-modal/esm';
|
|
5
|
-
import { IconButton } from '@alfalab/core-components-icon-button/esm';
|
|
6
|
-
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
7
|
-
|
|
8
|
-
var styles = {"closer":"bottom-sheet__closer_1254o","button":"bottom-sheet__button_1254o"};
|
|
9
|
-
require('./index.css')
|
|
10
|
-
|
|
11
|
-
var Closer = function (_a) {
|
|
12
|
-
var className = _a.className, _b = _a.size, size = _b === void 0 ? 'xs' : _b, _c = _a.icon, icon = _c === void 0 ? CrossMIcon : _c, dataTestId = _a.dataTestId, restProps = __rest(_a, ["className", "size", "icon", "dataTestId"]);
|
|
13
|
-
var onClose = useContext(BaseModalContext).onClose;
|
|
14
|
-
var handleClick = useCallback(function (event) {
|
|
15
|
-
onClose(event, 'closerClick');
|
|
16
|
-
}, [onClose]);
|
|
17
|
-
return (React.createElement("div", { className: cn(styles.closer, className) },
|
|
18
|
-
React.createElement(IconButton, __assign({ size: size, className: styles.button, "aria-label": '\u0437\u0430\u043A\u0440\u044B\u0442\u044C', onClick: handleClick, icon: icon, dataTestId: dataTestId }, restProps))));
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { 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,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import cn from 'classnames';
|
|
3
|
-
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
4
|
-
import { ArrowBackMIcon } from '@alfalab/icons-glyph/ArrowBackMIcon';
|
|
5
|
-
|
|
6
|
-
const styles = {"backer":"bottom-sheet__backer_i62n2","button":"bottom-sheet__button_i62n2"};
|
|
7
|
-
require('./index.css')
|
|
8
|
-
|
|
9
|
-
const Backer = ({ className, size = 'xs', icon = ArrowBackMIcon, dataTestId, onClick, ...restProps }) => (React.createElement("div", { className: cn(styles.backer, className) },
|
|
10
|
-
React.createElement(IconButton, { size: size, className: styles.button, "aria-label": '\u043D\u0430\u0437\u0430\u0434', onClick: onClick, icon: icon, dataTestId: dataTestId, ...restProps })));
|
|
11
|
-
|
|
12
|
-
export { 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,19 +0,0 @@
|
|
|
1
|
-
import React, { useContext, useCallback } from 'react';
|
|
2
|
-
import cn from 'classnames';
|
|
3
|
-
import { BaseModalContext } from '@alfalab/core-components-base-modal/modern';
|
|
4
|
-
import { IconButton } from '@alfalab/core-components-icon-button/modern';
|
|
5
|
-
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
6
|
-
|
|
7
|
-
const styles = {"closer":"bottom-sheet__closer_1254o","button":"bottom-sheet__button_1254o"};
|
|
8
|
-
require('./index.css')
|
|
9
|
-
|
|
10
|
-
const Closer = ({ className, size = 'xs', icon = CrossMIcon, dataTestId, ...restProps }) => {
|
|
11
|
-
const { onClose } = useContext(BaseModalContext);
|
|
12
|
-
const handleClick = useCallback((event) => {
|
|
13
|
-
onClose(event, 'closerClick');
|
|
14
|
-
}, [onClose]);
|
|
15
|
-
return (React.createElement("div", { className: cn(styles.closer, className) },
|
|
16
|
-
React.createElement(IconButton, { size: size, className: styles.button, "aria-label": '\u0437\u0430\u043A\u0440\u044B\u0442\u044C', onClick: handleClick, icon: icon, dataTestId: dataTestId, ...restProps })));
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { 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
|
-
}
|