@alfalab/core-components-bottom-sheet 6.0.5 → 6.1.0
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-76642442.d.ts → component-b5d23e5e.d.ts} +9 -1
- package/{component-76642442.js → component-b5d23e5e.js} +6 -5
- package/component.js +1 -1
- package/components/footer/Component.js +1 -1
- package/components/footer/index.css +71 -6
- package/components/header/Component.js +1 -1
- package/components/header/index.css +14 -15
- package/{esm/component-f5632dcc.d.ts → cssm/component-517950e0.d.ts} +9 -1
- package/cssm/{component-3f9ff39b.js → component-517950e0.js} +4 -3
- package/cssm/component.js +1 -1
- package/cssm/components/footer/index.module.css +67 -2
- package/cssm/components/header/Component.js +1 -1
- package/cssm/components/header/index.module.css +1 -2
- package/cssm/index.d.ts +1 -1
- package/cssm/index.js +1 -1
- package/cssm/index.module.css +69 -3
- package/{cssm/component-3f9ff39b.d.ts → esm/component-612e671f.d.ts} +9 -1
- package/esm/{component-f5632dcc.js → component-612e671f.js} +6 -5
- package/esm/component.js +1 -1
- package/esm/components/footer/Component.js +1 -1
- package/esm/components/footer/index.css +71 -6
- package/esm/components/header/Component.js +1 -1
- package/esm/components/header/index.css +14 -15
- package/esm/index.css +84 -18
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/index.css +84 -18
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/modern/{component-803dbc9d.d.ts → component-1cd1bc34.d.ts} +9 -1
- package/modern/{component-803dbc9d.js → component-1cd1bc34.js} +6 -5
- package/modern/component.js +1 -1
- package/modern/components/footer/Component.js +1 -1
- package/modern/components/footer/index.css +71 -6
- package/modern/components/header/Component.js +1 -1
- package/modern/components/header/index.css +14 -15
- package/modern/index.css +84 -18
- package/modern/index.d.ts +1 -1
- package/modern/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var components_header_Component = require('./component-
|
|
5
|
+
var components_header_Component = require('./component-b5d23e5e.js');
|
|
6
6
|
require('tslib');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-div-100vh');
|
|
@@ -8,6 +8,10 @@ import { BaseModalProps } from "@alfalab/core-components-base-modal";
|
|
|
8
8
|
type HeaderProps = Omit<NavigationBarProps, "view" | "size">;
|
|
9
9
|
declare const Header: FC<HeaderProps>;
|
|
10
10
|
declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
|
|
11
|
+
type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
12
|
+
type BorderColorType = "accent" | "key" | "key-inverted" | "link" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "underline" | "underline-inverted" | "graphic-attention" | "graphic-link" | "graphic-negative" | "graphic-positive" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
|
|
13
|
+
type ShadowType = "shadow-xs" | "shadow-s" | "shadow-m" | "shadow-l" | "shadow-xl" | "shadow-xs-hard" | "shadow-s-hard" | "shadow-m-hard" | "shadow-l-hard" | "shadow-xl-hard" | "shadow-xs-up" | "shadow-s-up" | "shadow-m-up" | "shadow-l-up" | "shadow-xl-up" | "shadow-xs-hard-up" | "shadow-s-hard-up" | "shadow-m-hard-up" | "shadow-l-hard-up" | "shadow-xl-hard-up";
|
|
14
|
+
type GapType = "3xs" | "2xs" | "xs" | "s" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl";
|
|
11
15
|
declare const isClient: () => boolean;
|
|
12
16
|
type BottomSheetTitleAlign = 'center' | 'left';
|
|
13
17
|
type BottomSheetProps = {
|
|
@@ -57,6 +61,10 @@ type BottomSheetProps = {
|
|
|
57
61
|
* Дополнительный класс
|
|
58
62
|
*/
|
|
59
63
|
containerClassName?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Цвет фона
|
|
66
|
+
*/
|
|
67
|
+
backgroundColor?: Extract<BackgroundColorType, 'primary' | 'secondary'>;
|
|
60
68
|
/**
|
|
61
69
|
* Дополнительный класс шапки
|
|
62
70
|
*/
|
|
@@ -183,4 +191,4 @@ type BottomSheetProps = {
|
|
|
183
191
|
declare const HEADER_OFFSET = 24;
|
|
184
192
|
declare const CLOSE_OFFSET = 0.2;
|
|
185
193
|
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
186
|
-
export { HeaderProps, Header, getDataTestId, isClient, BottomSheetTitleAlign, BottomSheetProps, HEADER_OFFSET, CLOSE_OFFSET, BottomSheet };
|
|
194
|
+
export { HeaderProps, Header, getDataTestId, BackgroundColorType, BorderColorType, ShadowType, GapType, isClient, BottomSheetTitleAlign, BottomSheetProps, HEADER_OFFSET, CLOSE_OFFSET, BottomSheet };
|
|
@@ -13,7 +13,7 @@ const getDataTestId = (dataTestId, element) => {
|
|
|
13
13
|
return dataTestId ? `${dataTestId}${elementPart}` : undefined;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
const styles$1 = {"headerWrapper":"bottom-
|
|
16
|
+
const styles$1 = {"headerWrapper":"bottom-sheet__headerWrapper_1034c","hasContent":"bottom-sheet__hasContent_1034c","header":"bottom-sheet__header_1034c","sticky":"bottom-sheet__sticky_1034c","highlighted":"bottom-sheet__highlighted_1034c","justifyEnd":"bottom-sheet__justifyEnd_1034c","addon":"bottom-sheet__addon_1034c","addonFixed":"bottom-sheet__addonFixed_1034c","title":"bottom-sheet__title_1034c","titleCenter":"bottom-sheet__titleCenter_1034c","titleLeft":"bottom-sheet__titleLeft_1034c","trimTitle":"bottom-sheet__trimTitle_1034c"};
|
|
17
17
|
require('./components/header/index.css')
|
|
18
18
|
|
|
19
19
|
const Header = ({ className, sticky, title, children, ...restProps }) => {
|
|
@@ -32,7 +32,7 @@ const Header = ({ className, sticky, title, children, ...restProps }) => {
|
|
|
32
32
|
}), contentClassName: cn(styles$1.title) }, children));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
const styles = {"modal":"bottom-
|
|
35
|
+
const styles = {"modal":"bottom-sheet__modal_sul96","component":"bottom-sheet__component_sul96","withTransition":"bottom-sheet__withTransition_sul96","scrollableContainer":"bottom-sheet__scrollableContainer_sul96","marker":"bottom-sheet__marker_sul96","content":"bottom-sheet__content_sul96","noHeader":"bottom-sheet__noHeader_sul96","noFooter":"bottom-sheet__noFooter_sul96","scrollLocked":"bottom-sheet__scrollLocked_sul96","appear":"bottom-sheet__appear_sul96","enter":"bottom-sheet__enter_sul96","appearActive":"bottom-sheet__appearActive_sul96","enterActive":"bottom-sheet__enterActive_sul96","enterDone":"bottom-sheet__enterDone_sul96","appearDone":"bottom-sheet__appearDone_sul96","exit":"bottom-sheet__exit_sul96","exitActive":"bottom-sheet__exitActive_sul96","background-accent":"bottom-sheet__background-accent_sul96","background-info":"bottom-sheet__background-info_sul96","background-attention-muted":"bottom-sheet__background-attention-muted_sul96","background-positive-muted":"bottom-sheet__background-positive-muted_sul96","background-negative-muted":"bottom-sheet__background-negative-muted_sul96","background-primary":"bottom-sheet__background-primary_sul96","background-primary-inverted":"bottom-sheet__background-primary-inverted_sul96","background-secondary":"bottom-sheet__background-secondary_sul96","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_sul96","background-tertiary":"bottom-sheet__background-tertiary_sul96","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_sul96","background-quaternary":"bottom-sheet__background-quaternary_sul96","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_sul96","background-specialbg-component":"bottom-sheet__background-specialbg-component_sul96","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_sul96","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_sul96","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_sul96","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_sul96","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_sul96","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_sul96","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_sul96","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_sul96"};
|
|
36
36
|
require('./index.css')
|
|
37
37
|
|
|
38
38
|
const TIMEOUT = 300;
|
|
@@ -43,7 +43,7 @@ const MARKET_HEIGHT = 24;
|
|
|
43
43
|
/* Верхний отступ шторки, если она открыта на максимальную высоту */
|
|
44
44
|
const HEADER_OFFSET = 24;
|
|
45
45
|
const CLOSE_OFFSET = 0.2;
|
|
46
|
-
const BottomSheet = forwardRef(({ open, title, container, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideHeader, disableOverlayClick, disableBlockingScroll, children, zIndex, transitionProps = {}, dataTestId, swipeable = true, backdropProps, scrollableContainerRef = () => null, onClose, onBack, }, ref) => {
|
|
46
|
+
const BottomSheet = forwardRef(({ open, title, container, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideHeader, disableOverlayClick, disableBlockingScroll, children, zIndex, transitionProps = {}, dataTestId, swipeable = true, backdropProps, scrollableContainerRef = () => null, onClose, onBack, }, ref) => {
|
|
47
47
|
const [sheetOffset, setSheetOffset] = useState(0);
|
|
48
48
|
const [backdropOpacity, setBackdropOpacity] = useState(1);
|
|
49
49
|
const [scrollLocked, setScrollLocked] = useState(false);
|
|
@@ -184,6 +184,7 @@ const BottomSheet = forwardRef(({ open, title, container, titleSize = 'default',
|
|
|
184
184
|
height: initialHeight === 'full' ? targetHeight : 'unset',
|
|
185
185
|
maxHeight: targetHeight,
|
|
186
186
|
});
|
|
187
|
+
const bgClassName = backgroundColor && styles[`background-${backgroundColor}`];
|
|
187
188
|
return (React.createElement(BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: {
|
|
188
189
|
...backdropProps,
|
|
189
190
|
opacity: backdropOpacity,
|
|
@@ -199,7 +200,7 @@ const BottomSheet = forwardRef(({ open, title, container, titleSize = 'default',
|
|
|
199
200
|
onEntered: handleEntered,
|
|
200
201
|
} },
|
|
201
202
|
React.createElement("div", { style: { ...getHeightStyles() } },
|
|
202
|
-
React.createElement("div", { className: cn(styles.component, className, {
|
|
203
|
+
React.createElement("div", { className: cn(styles.component, bgClassName, className, {
|
|
203
204
|
[styles.withTransition]: !sheetOffset,
|
|
204
205
|
}), style: {
|
|
205
206
|
...getSwipeStyles(),
|
|
@@ -214,7 +215,7 @@ const BottomSheet = forwardRef(({ open, title, container, titleSize = 'default',
|
|
|
214
215
|
[styles.noHeader]: hideHeader || emptyHeader,
|
|
215
216
|
[styles.noFooter]: !actionButton,
|
|
216
217
|
}) }, children),
|
|
217
|
-
actionButton && (React.createElement(Footer, { sticky: stickyFooter, className: footerClassName }, actionButton)))))));
|
|
218
|
+
actionButton && (React.createElement(Footer, { sticky: stickyFooter, className: cn(bgClassName, footerClassName) }, actionButton)))))));
|
|
218
219
|
});
|
|
219
220
|
|
|
220
221
|
export { BottomSheet as B, CLOSE_OFFSET as C, HEADER_OFFSET as H, Header as a };
|
package/modern/component.js
CHANGED
|
@@ -4,7 +4,7 @@ import 'react-merge-refs';
|
|
|
4
4
|
import 'react-swipeable';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import '@alfalab/core-components-base-modal/modern';
|
|
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-1cd1bc34.js';
|
|
8
8
|
import './components/footer/Component.js';
|
|
9
9
|
import './components/swipeable-backdrop/Component.js';
|
|
10
10
|
import '@alfalab/core-components-navigation-bar/modern';
|
|
@@ -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_7gxws","sticky":"bottom-sheet__sticky_7gxws","highlighted":"bottom-sheet__highlighted_7gxws","background-accent":"bottom-sheet__background-accent_7gxws","background-info":"bottom-sheet__background-info_7gxws","background-attention-muted":"bottom-sheet__background-attention-muted_7gxws","background-positive-muted":"bottom-sheet__background-positive-muted_7gxws","background-negative-muted":"bottom-sheet__background-negative-muted_7gxws","background-primary":"bottom-sheet__background-primary_7gxws","background-primary-inverted":"bottom-sheet__background-primary-inverted_7gxws","background-secondary":"bottom-sheet__background-secondary_7gxws","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_7gxws","background-tertiary":"bottom-sheet__background-tertiary_7gxws","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_7gxws","background-quaternary":"bottom-sheet__background-quaternary_7gxws","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_7gxws","background-specialbg-component":"bottom-sheet__background-specialbg-component_7gxws","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_7gxws","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_7gxws","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_7gxws","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_7gxws","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_7gxws","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_7gxws","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_7gxws","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_7gxws"};
|
|
6
6
|
require('./index.css')
|
|
7
7
|
|
|
8
8
|
const Footer = ({ children, className, sticky }) => {
|
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1nw41 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
+
--color-light-bg-accent: #ef3124;
|
|
5
|
+
--color-light-bg-attention-muted: #f7ebd9;
|
|
6
|
+
--color-light-bg-info: #d6e8fc;
|
|
7
|
+
--color-light-bg-negative-muted: #fbe8e7;
|
|
8
|
+
--color-light-bg-positive-muted: #e7f6ef;
|
|
4
9
|
--color-light-bg-primary: #fff;
|
|
5
|
-
--color-light-
|
|
10
|
+
--color-light-bg-primary-inverted: #121212;
|
|
11
|
+
--color-light-bg-quaternary: #dcdcdd;
|
|
12
|
+
--color-light-bg-quaternary-inverted: #3a3a3c;
|
|
13
|
+
--color-light-bg-secondary: #f3f4f5;
|
|
14
|
+
--color-light-bg-secondary-inverted: #202022;
|
|
15
|
+
--color-light-bg-tertiary: #e9e9eb;
|
|
16
|
+
--color-light-bg-tertiary-inverted: #2c2c2e;
|
|
17
|
+
--color-light-border-secondary: #e9e9eb;
|
|
18
|
+
--color-light-specialbg-component: rgba(11, 31, 53, 0.07);
|
|
19
|
+
--color-light-specialbg-component-inverted: rgba(255, 255, 255, 0.1);
|
|
20
|
+
--color-light-specialbg-primary-grouped: #f3f4f5;
|
|
21
|
+
--color-light-specialbg-secondary-grouped: #fff;
|
|
22
|
+
--color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05);
|
|
23
|
+
--color-light-specialbg-secondary-transparent-inverted: rgba(255, 255, 255, 0.06);
|
|
24
|
+
--color-light-specialbg-tertiary-grouped: #f3f4f5;
|
|
25
|
+
--color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1);
|
|
26
|
+
--color-light-specialbg-tertiary-transparent-inverted: rgba(255, 255, 255, 0.11); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
27
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
28
|
} :root {
|
|
8
29
|
} :root {
|
|
@@ -20,14 +41,58 @@
|
|
|
20
41
|
} :root {
|
|
21
42
|
--bottom-sheet-footer-border-top: 1px solid var(--color-light-border-secondary);
|
|
22
43
|
--bottom-sheet-footer-background-color: var(--color-light-bg-primary);
|
|
23
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__footer_7gxws {
|
|
24
45
|
padding: var(--gap-m) var(--gap-m);
|
|
25
46
|
background-color: var(--color-light-bg-primary);
|
|
26
|
-
} .bottom-
|
|
47
|
+
} .bottom-sheet__sticky_7gxws {
|
|
27
48
|
position: sticky;
|
|
28
49
|
bottom: 0;
|
|
29
50
|
z-index: 1;
|
|
30
|
-
} .bottom-
|
|
51
|
+
} .bottom-sheet__highlighted_7gxws {
|
|
31
52
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
32
53
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
33
|
-
}
|
|
54
|
+
} .bottom-sheet__background-accent_7gxws {
|
|
55
|
+
background-color: var(--color-light-bg-accent);
|
|
56
|
+
} .bottom-sheet__background-info_7gxws {
|
|
57
|
+
background-color: var(--color-light-bg-info);
|
|
58
|
+
} .bottom-sheet__background-attention-muted_7gxws {
|
|
59
|
+
background-color: var(--color-light-bg-attention-muted);
|
|
60
|
+
} .bottom-sheet__background-positive-muted_7gxws {
|
|
61
|
+
background-color: var(--color-light-bg-positive-muted);
|
|
62
|
+
} .bottom-sheet__background-negative-muted_7gxws {
|
|
63
|
+
background-color: var(--color-light-bg-negative-muted);
|
|
64
|
+
} .bottom-sheet__background-primary_7gxws {
|
|
65
|
+
background-color: var(--color-light-bg-primary);
|
|
66
|
+
} .bottom-sheet__background-primary-inverted_7gxws {
|
|
67
|
+
background-color: var(--color-light-bg-primary-inverted);
|
|
68
|
+
} .bottom-sheet__background-secondary_7gxws {
|
|
69
|
+
background-color: var(--color-light-bg-secondary);
|
|
70
|
+
} .bottom-sheet__background-secondary-inverted_7gxws {
|
|
71
|
+
background-color: var(--color-light-bg-secondary-inverted);
|
|
72
|
+
} .bottom-sheet__background-tertiary_7gxws {
|
|
73
|
+
background-color: var(--color-light-bg-tertiary);
|
|
74
|
+
} .bottom-sheet__background-tertiary-inverted_7gxws {
|
|
75
|
+
background-color: var(--color-light-bg-tertiary-inverted);
|
|
76
|
+
} .bottom-sheet__background-quaternary_7gxws {
|
|
77
|
+
background-color: var(--color-light-bg-quaternary);
|
|
78
|
+
} .bottom-sheet__background-quaternary-inverted_7gxws {
|
|
79
|
+
background-color: var(--color-light-bg-quaternary-inverted);
|
|
80
|
+
} .bottom-sheet__background-specialbg-component_7gxws {
|
|
81
|
+
background-color: var(--color-light-specialbg-component);
|
|
82
|
+
} .bottom-sheet__background-specialbg-component-inverted_7gxws {
|
|
83
|
+
background-color: var(--color-light-specialbg-component-inverted);
|
|
84
|
+
} .bottom-sheet__background-specialbg-primary-grouped_7gxws {
|
|
85
|
+
background-color: var(--color-light-specialbg-primary-grouped);
|
|
86
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_7gxws {
|
|
87
|
+
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
88
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_7gxws {
|
|
89
|
+
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
90
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_7gxws {
|
|
91
|
+
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
92
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_7gxws {
|
|
93
|
+
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
94
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_7gxws {
|
|
95
|
+
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
96
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_7gxws {
|
|
97
|
+
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
98
|
+
}
|
|
@@ -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-navigation-bar/modern';
|
|
5
|
-
export { a as Header } from '../../component-
|
|
5
|
+
export { a as Header } from '../../component-1cd1bc34.js';
|
|
6
6
|
import 'react-div-100vh';
|
|
7
7
|
import 'react-merge-refs';
|
|
8
8
|
import 'react-swipeable';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 16nrz */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-bg-primary: #fff;
|
|
5
4
|
--color-light-border-secondary: #e9e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
5
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
6
|
} :root {
|
|
@@ -28,42 +27,42 @@
|
|
|
28
27
|
--bottom-sheet-title-font-weight: 700;
|
|
29
28
|
--bottom-sheet-title-line-height: 24px;
|
|
30
29
|
--bottom-sheet-title-font-family: var(--font-family-system);
|
|
31
|
-
} .bottom-
|
|
30
|
+
} .bottom-sheet__headerWrapper_1034c {
|
|
32
31
|
padding: var(--gap-s) var(--gap-xs) var(--gap-2xs);
|
|
33
32
|
border-top-right-radius: var(--border-radius-xl);
|
|
34
33
|
border-top-left-radius: var(--border-radius-xl);
|
|
35
34
|
z-index: 1;
|
|
36
|
-
} .bottom-
|
|
37
|
-
background-color:
|
|
38
|
-
} .bottom-
|
|
35
|
+
} .bottom-sheet__hasContent_1034c {
|
|
36
|
+
background-color: inherit;
|
|
37
|
+
} .bottom-sheet__header_1034c {
|
|
39
38
|
display: flex;
|
|
40
|
-
} .bottom-
|
|
39
|
+
} .bottom-sheet__sticky_1034c {
|
|
41
40
|
position: sticky;
|
|
42
41
|
top: 0;
|
|
43
|
-
} .bottom-
|
|
42
|
+
} .bottom-sheet__highlighted_1034c {
|
|
44
43
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
45
|
-
} .bottom-
|
|
44
|
+
} .bottom-sheet__justifyEnd_1034c {
|
|
46
45
|
justify-content: flex-end;
|
|
47
|
-
} .bottom-
|
|
46
|
+
} .bottom-sheet__addon_1034c {
|
|
48
47
|
display: flex;
|
|
49
48
|
justify-content: center;
|
|
50
49
|
align-items: center;
|
|
51
50
|
min-width: 48px;
|
|
52
51
|
height: 48px;
|
|
53
|
-
} .bottom-
|
|
52
|
+
} .bottom-sheet__addonFixed_1034c {
|
|
54
53
|
position: fixed;
|
|
55
|
-
} .bottom-
|
|
54
|
+
} .bottom-sheet__title_1034c {
|
|
56
55
|
padding: var(--gap-s) var(--gap-xs);
|
|
57
56
|
width: 100%;
|
|
58
57
|
font-size: var(--bottom-sheet-title-font-size);
|
|
59
58
|
font-weight: var(--bottom-sheet-title-font-weight);
|
|
60
59
|
line-height: var(--bottom-sheet-title-line-height);
|
|
61
60
|
font-family: var(--bottom-sheet-title-font-family);
|
|
62
|
-
} .bottom-
|
|
61
|
+
} .bottom-sheet__titleCenter_1034c {
|
|
63
62
|
text-align: center;
|
|
64
|
-
} .bottom-
|
|
63
|
+
} .bottom-sheet__titleLeft_1034c {
|
|
65
64
|
text-align: left;
|
|
66
|
-
} .bottom-
|
|
65
|
+
} .bottom-sheet__trimTitle_1034c {
|
|
67
66
|
white-space: nowrap;
|
|
68
67
|
overflow: hidden;
|
|
69
68
|
text-overflow: ellipsis;
|
package/modern/index.css
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: rdtvt */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
+
--color-light-bg-accent: #ef3124;
|
|
5
|
+
--color-light-bg-attention-muted: #f7ebd9;
|
|
6
|
+
--color-light-bg-info: #d6e8fc;
|
|
7
|
+
--color-light-bg-negative-muted: #fbe8e7;
|
|
8
|
+
--color-light-bg-positive-muted: #e7f6ef;
|
|
4
9
|
--color-light-bg-primary: #fff;
|
|
10
|
+
--color-light-bg-primary-inverted: #121212;
|
|
11
|
+
--color-light-bg-quaternary: #dcdcdd;
|
|
12
|
+
--color-light-bg-quaternary-inverted: #3a3a3c;
|
|
13
|
+
--color-light-bg-secondary: #f3f4f5;
|
|
14
|
+
--color-light-bg-secondary-inverted: #202022;
|
|
15
|
+
--color-light-bg-tertiary: #e9e9eb;
|
|
16
|
+
--color-light-bg-tertiary-inverted: #2c2c2e;
|
|
5
17
|
--color-light-graphic-quaternary: #dcdcdd;
|
|
18
|
+
--color-light-specialbg-component: rgba(11, 31, 53, 0.07);
|
|
19
|
+
--color-light-specialbg-component-inverted: rgba(255, 255, 255, 0.1);
|
|
20
|
+
--color-light-specialbg-primary-grouped: #f3f4f5;
|
|
21
|
+
--color-light-specialbg-secondary-grouped: #fff;
|
|
22
|
+
--color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05);
|
|
23
|
+
--color-light-specialbg-secondary-transparent-inverted: rgba(255, 255, 255, 0.06);
|
|
24
|
+
--color-light-specialbg-tertiary-grouped: #f3f4f5;
|
|
25
|
+
--color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1);
|
|
26
|
+
--color-light-specialbg-tertiary-transparent-inverted: rgba(255, 255, 255, 0.11);
|
|
6
27
|
--color-light-text-primary: #0e0e0e; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
28
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
8
29
|
} :root {
|
|
@@ -24,30 +45,31 @@
|
|
|
24
45
|
} :root {
|
|
25
46
|
--bottom-sheet-in-transition: 0.5s cubic-bezier(0.09, 0.91, 0.18, 0.99);
|
|
26
47
|
--bottom-sheet-out-transition: 0.3s ease;
|
|
27
|
-
} .bottom-
|
|
48
|
+
} .bottom-sheet__modal_sul96 {
|
|
28
49
|
background-color: transparent;
|
|
29
50
|
position: fixed;
|
|
30
51
|
bottom: 0;
|
|
31
52
|
width: 100%;
|
|
32
53
|
max-width: 600px;
|
|
33
|
-
} .bottom-
|
|
54
|
+
} .bottom-sheet__component_sul96 {
|
|
34
55
|
overflow: hidden;
|
|
35
56
|
position: relative;
|
|
36
57
|
display: flex;
|
|
37
58
|
flex-direction: column;
|
|
38
59
|
border-top-right-radius: var(--border-radius-xl);
|
|
39
60
|
border-top-left-radius: var(--border-radius-xl);
|
|
40
|
-
background: var(--color-light-bg-primary);
|
|
61
|
+
background-color: var(--color-light-bg-primary);
|
|
41
62
|
transform: translateY(100%);
|
|
42
|
-
} .bottom-
|
|
63
|
+
} .bottom-sheet__withTransition_sul96 {
|
|
43
64
|
transition: var(--bottom-sheet-out-transition);
|
|
44
|
-
} .bottom-
|
|
65
|
+
} .bottom-sheet__scrollableContainer_sul96 {
|
|
45
66
|
overflow: auto;
|
|
46
67
|
display: flex;
|
|
47
68
|
flex-direction: column;
|
|
48
69
|
position: relative;
|
|
49
70
|
height: 100%;
|
|
50
|
-
|
|
71
|
+
background-color: inherit;
|
|
72
|
+
} .bottom-sheet__marker_sul96 {
|
|
51
73
|
position: fixed;
|
|
52
74
|
top: var(--gap-2xs);
|
|
53
75
|
left: 50%;
|
|
@@ -57,7 +79,7 @@
|
|
|
57
79
|
transform: translateX(-50%);
|
|
58
80
|
background-color: var(--color-light-graphic-quaternary);
|
|
59
81
|
z-index: 1000;
|
|
60
|
-
} .bottom-
|
|
82
|
+
} .bottom-sheet__content_sul96 {
|
|
61
83
|
position: relative;
|
|
62
84
|
z-index: 0;
|
|
63
85
|
display: flex;
|
|
@@ -65,23 +87,67 @@
|
|
|
65
87
|
flex: 1;
|
|
66
88
|
padding: 0 var(--gap-m);
|
|
67
89
|
color: var(--color-light-text-primary);
|
|
68
|
-
background-color:
|
|
69
|
-
} .bottom-
|
|
90
|
+
background-color: inherit;
|
|
91
|
+
} .bottom-sheet__noHeader_sul96 {
|
|
70
92
|
padding-top: var(--gap-m);
|
|
71
|
-
} .bottom-
|
|
93
|
+
} .bottom-sheet__noFooter_sul96 {
|
|
72
94
|
padding-bottom: var(--gap-m);
|
|
73
|
-
} .bottom-
|
|
95
|
+
} .bottom-sheet__scrollLocked_sul96 {
|
|
74
96
|
overflow: hidden;
|
|
75
|
-
} .bottom-
|
|
97
|
+
} .bottom-sheet__appear_sul96 .bottom-sheet__component_sul96, .bottom-sheet__enter_sul96 .bottom-sheet__component_sul96 {
|
|
76
98
|
transition: none;
|
|
77
|
-
} .bottom-
|
|
99
|
+
} .bottom-sheet__appearActive_sul96 .bottom-sheet__component_sul96, .bottom-sheet__enterActive_sul96 .bottom-sheet__component_sul96 {
|
|
78
100
|
transition: var(--bottom-sheet-in-transition);
|
|
79
101
|
transform: translateY(0);
|
|
80
|
-
} .bottom-
|
|
102
|
+
} .bottom-sheet__enterDone_sul96 .bottom-sheet__component_sul96, .bottom-sheet__appearDone_sul96 .bottom-sheet__component_sul96 {
|
|
81
103
|
transform: translateY(0);
|
|
82
|
-
} .bottom-
|
|
104
|
+
} .bottom-sheet__exit_sul96 .bottom-sheet__component_sul96 {
|
|
83
105
|
transform: translateY(0);
|
|
84
|
-
} .bottom-
|
|
106
|
+
} .bottom-sheet__exitActive_sul96 .bottom-sheet__component_sul96 {
|
|
85
107
|
transition: var(--bottom-sheet-out-transition);
|
|
86
108
|
transform: translateY(100%);
|
|
87
|
-
}
|
|
109
|
+
} .bottom-sheet__background-accent_sul96 {
|
|
110
|
+
background-color: var(--color-light-bg-accent);
|
|
111
|
+
} .bottom-sheet__background-info_sul96 {
|
|
112
|
+
background-color: var(--color-light-bg-info);
|
|
113
|
+
} .bottom-sheet__background-attention-muted_sul96 {
|
|
114
|
+
background-color: var(--color-light-bg-attention-muted);
|
|
115
|
+
} .bottom-sheet__background-positive-muted_sul96 {
|
|
116
|
+
background-color: var(--color-light-bg-positive-muted);
|
|
117
|
+
} .bottom-sheet__background-negative-muted_sul96 {
|
|
118
|
+
background-color: var(--color-light-bg-negative-muted);
|
|
119
|
+
} .bottom-sheet__background-primary_sul96 {
|
|
120
|
+
background-color: var(--color-light-bg-primary);
|
|
121
|
+
} .bottom-sheet__background-primary-inverted_sul96 {
|
|
122
|
+
background-color: var(--color-light-bg-primary-inverted);
|
|
123
|
+
} .bottom-sheet__background-secondary_sul96 {
|
|
124
|
+
background-color: var(--color-light-bg-secondary);
|
|
125
|
+
} .bottom-sheet__background-secondary-inverted_sul96 {
|
|
126
|
+
background-color: var(--color-light-bg-secondary-inverted);
|
|
127
|
+
} .bottom-sheet__background-tertiary_sul96 {
|
|
128
|
+
background-color: var(--color-light-bg-tertiary);
|
|
129
|
+
} .bottom-sheet__background-tertiary-inverted_sul96 {
|
|
130
|
+
background-color: var(--color-light-bg-tertiary-inverted);
|
|
131
|
+
} .bottom-sheet__background-quaternary_sul96 {
|
|
132
|
+
background-color: var(--color-light-bg-quaternary);
|
|
133
|
+
} .bottom-sheet__background-quaternary-inverted_sul96 {
|
|
134
|
+
background-color: var(--color-light-bg-quaternary-inverted);
|
|
135
|
+
} .bottom-sheet__background-specialbg-component_sul96 {
|
|
136
|
+
background-color: var(--color-light-specialbg-component);
|
|
137
|
+
} .bottom-sheet__background-specialbg-component-inverted_sul96 {
|
|
138
|
+
background-color: var(--color-light-specialbg-component-inverted);
|
|
139
|
+
} .bottom-sheet__background-specialbg-primary-grouped_sul96 {
|
|
140
|
+
background-color: var(--color-light-specialbg-primary-grouped);
|
|
141
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_sul96 {
|
|
142
|
+
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
143
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_sul96 {
|
|
144
|
+
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
145
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_sul96 {
|
|
146
|
+
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
147
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_sul96 {
|
|
148
|
+
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
149
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_sul96 {
|
|
150
|
+
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
151
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_sul96 {
|
|
152
|
+
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
153
|
+
}
|
package/modern/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-1cd1bc34";
|
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-1cd1bc34.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-div-100vh';
|
|
4
4
|
import 'react-merge-refs';
|