@alfalab/core-components-bottom-sheet 6.0.4 → 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-d340bef9.d.ts → component-b5d23e5e.d.ts} +9 -1
- package/{component-d340bef9.js → component-b5d23e5e.js} +6 -5
- package/component.js +3 -1
- package/components/footer/Component.js +3 -1
- package/components/footer/index.css +71 -6
- package/components/header/Component.js +3 -1
- package/components/header/index.css +15 -16
- package/components/swipeable-backdrop/Component.js +2 -0
- package/{esm/component-ba870936.d.ts → cssm/component-517950e0.d.ts} +9 -1
- package/cssm/{component-3f9ff39b.js → component-517950e0.js} +4 -3
- package/cssm/component.js +3 -1
- package/cssm/components/footer/Component.js +2 -0
- package/cssm/components/footer/index.module.css +67 -2
- package/cssm/components/header/Component.js +3 -1
- package/cssm/components/header/index.module.css +2 -3
- package/cssm/components/swipeable-backdrop/Component.js +2 -0
- package/cssm/index.d.ts +1 -1
- package/cssm/index.js +3 -1
- package/cssm/index.module.css +71 -5
- package/{cssm/component-3f9ff39b.d.ts → esm/component-612e671f.d.ts} +9 -1
- package/esm/{component-ba870936.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 +15 -16
- package/esm/index.css +86 -20
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/index.css +86 -20
- package/index.d.ts +1 -1
- package/index.js +3 -1
- package/modern/{component-dbadd6fb.d.ts → component-1cd1bc34.d.ts} +9 -1
- package/modern/{component-dbadd6fb.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 +15 -16
- package/modern/index.css +86 -20
- package/modern/index.d.ts +1 -1
- package/modern/index.js +1 -1
- package/package.json +6 -6
|
@@ -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 };
|
|
@@ -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_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"};
|
|
26
26
|
require('./components/header/index.css')
|
|
27
27
|
|
|
28
28
|
var Header = function (_a) {
|
|
@@ -43,7 +43,7 @@ var Header = function (_a) {
|
|
|
43
43
|
_b)), contentClassName: cn__default.default(styles$1.title) }), children));
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
var styles = {"modal":"bottom-
|
|
46
|
+
var 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"};
|
|
47
47
|
require('./index.css')
|
|
48
48
|
|
|
49
49
|
var TIMEOUT = 300;
|
|
@@ -56,7 +56,7 @@ var HEADER_OFFSET = 24;
|
|
|
56
56
|
var CLOSE_OFFSET = 0.2;
|
|
57
57
|
var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
58
58
|
var _b, _c, _d;
|
|
59
|
-
var open = _a.open, title = _a.title, container = _a.container, _e = _a.titleSize, titleSize = _e === void 0 ? 'default' : _e, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _f = _a.titleAlign, titleAlign = _f === void 0 ? 'left' : _f, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _g = _a.stickyFooter, stickyFooter = _g === void 0 ? true : _g, _h = _a.initialHeight, initialHeight = _h === void 0 ? 'default' : _h, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _j = _a.transitionProps, transitionProps = _j === void 0 ? {} : _j, dataTestId = _a.dataTestId, _k = _a.swipeable, swipeable = _k === void 0 ? true : _k, backdropProps = _a.backdropProps, _l = _a.scrollableContainerRef, scrollableContainerRef = _l === void 0 ? function () { return null; } : _l, onClose = _a.onClose, onBack = _a.onBack;
|
|
59
|
+
var open = _a.open, title = _a.title, container = _a.container, backgroundColor = _a.backgroundColor, _e = _a.titleSize, titleSize = _e === void 0 ? 'default' : _e, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _f = _a.titleAlign, titleAlign = _f === void 0 ? 'left' : _f, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _g = _a.stickyFooter, stickyFooter = _g === void 0 ? true : _g, _h = _a.initialHeight, initialHeight = _h === void 0 ? 'default' : _h, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _j = _a.transitionProps, transitionProps = _j === void 0 ? {} : _j, dataTestId = _a.dataTestId, _k = _a.swipeable, swipeable = _k === void 0 ? true : _k, backdropProps = _a.backdropProps, _l = _a.scrollableContainerRef, scrollableContainerRef = _l === void 0 ? function () { return null; } : _l, onClose = _a.onClose, onBack = _a.onBack;
|
|
60
60
|
var _m = React.useState(0), sheetOffset = _m[0], setSheetOffset = _m[1];
|
|
61
61
|
var _o = React.useState(1), backdropOpacity = _o[0], setBackdropOpacity = _o[1];
|
|
62
62
|
var _p = React.useState(false), scrollLocked = _p[0], setScrollLocked = _p[1];
|
|
@@ -180,9 +180,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
180
180
|
height: initialHeight === 'full' ? targetHeight : 'unset',
|
|
181
181
|
maxHeight: targetHeight,
|
|
182
182
|
}); };
|
|
183
|
+
var bgClassName = backgroundColor && styles["background-".concat(backgroundColor)];
|
|
183
184
|
return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { opacity: backdropOpacity, handlers: swipeable ? backdropSwipeablehandlers : false, opacityTimeout: TIMEOUT, invisible: initialHeight === 'full' ? false : hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles.modal, modalClassName), wrapperClassName: modalWrapperClassName, disableBlockingScroll: disableBlockingScroll, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: TIMEOUT, classNames: styles }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
|
|
184
185
|
React__default.default.createElement("div", { style: tslib.__assign({}, getHeightStyles()) },
|
|
185
|
-
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, className, (_b = {},
|
|
186
|
+
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, bgClassName, className, (_b = {},
|
|
186
187
|
_b[styles.withTransition] = !sheetOffset,
|
|
187
188
|
_b)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
|
|
188
189
|
React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_c = {},
|
|
@@ -194,7 +195,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
194
195
|
_d[styles.noHeader] = hideHeader || emptyHeader,
|
|
195
196
|
_d[styles.noFooter] = !actionButton,
|
|
196
197
|
_d)) }, children),
|
|
197
|
-
actionButton && (React__default.default.createElement(components_footer_Component.Footer, { sticky: stickyFooter, className: footerClassName }, actionButton)))))));
|
|
198
|
+
actionButton && (React__default.default.createElement(components_footer_Component.Footer, { sticky: stickyFooter, className: cn__default.default(bgClassName, footerClassName) }, actionButton)))))));
|
|
198
199
|
});
|
|
199
200
|
|
|
200
201
|
exports.BottomSheet = BottomSheet;
|
package/component.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
require('tslib');
|
|
4
6
|
require('react');
|
|
5
7
|
require('react-div-100vh');
|
|
@@ -7,7 +9,7 @@ require('react-merge-refs');
|
|
|
7
9
|
require('react-swipeable');
|
|
8
10
|
require('classnames');
|
|
9
11
|
require('@alfalab/core-components-base-modal');
|
|
10
|
-
var components_header_Component = require('./component-
|
|
12
|
+
var components_header_Component = require('./component-b5d23e5e.js');
|
|
11
13
|
require('./components/footer/Component.js');
|
|
12
14
|
require('./components/swipeable-backdrop/Component.js');
|
|
13
15
|
require('@alfalab/core-components-navigation-bar');
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var React = require('react');
|
|
4
6
|
var cn = require('classnames');
|
|
5
7
|
var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
|
|
@@ -9,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
9
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
10
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
11
13
|
|
|
12
|
-
var styles = {"footer":"bottom-
|
|
14
|
+
var 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"};
|
|
13
15
|
require('./index.css')
|
|
14
16
|
|
|
15
17
|
var Footer = function (_a) {
|
|
@@ -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
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
require('tslib');
|
|
4
6
|
require('react');
|
|
5
7
|
require('classnames');
|
|
6
8
|
require('@alfalab/core-components-base-modal');
|
|
7
9
|
require('@alfalab/core-components-navigation-bar');
|
|
8
|
-
var components_header_Component = require('../../component-
|
|
10
|
+
var components_header_Component = require('../../component-b5d23e5e.js');
|
|
9
11
|
require('react-div-100vh');
|
|
10
12
|
require('react-merge-refs');
|
|
11
13
|
require('react-swipeable');
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 16nrz */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
|
-
--color-light-
|
|
5
|
-
--color-light-border-secondary: #e7e9eb; /* 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 */
|
|
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 {
|
|
8
7
|
} :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;
|
|
@@ -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 };
|
|
@@ -54,7 +54,7 @@ var HEADER_OFFSET = 24;
|
|
|
54
54
|
var CLOSE_OFFSET = 0.2;
|
|
55
55
|
var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
56
56
|
var _b, _c, _d;
|
|
57
|
-
var open = _a.open, title = _a.title, container = _a.container, _e = _a.titleSize, titleSize = _e === void 0 ? 'default' : _e, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _f = _a.titleAlign, titleAlign = _f === void 0 ? 'left' : _f, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _g = _a.stickyFooter, stickyFooter = _g === void 0 ? true : _g, _h = _a.initialHeight, initialHeight = _h === void 0 ? 'default' : _h, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _j = _a.transitionProps, transitionProps = _j === void 0 ? {} : _j, dataTestId = _a.dataTestId, _k = _a.swipeable, swipeable = _k === void 0 ? true : _k, backdropProps = _a.backdropProps, _l = _a.scrollableContainerRef, scrollableContainerRef = _l === void 0 ? function () { return null; } : _l, onClose = _a.onClose, onBack = _a.onBack;
|
|
57
|
+
var open = _a.open, title = _a.title, container = _a.container, backgroundColor = _a.backgroundColor, _e = _a.titleSize, titleSize = _e === void 0 ? 'default' : _e, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _f = _a.titleAlign, titleAlign = _f === void 0 ? 'left' : _f, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _g = _a.stickyFooter, stickyFooter = _g === void 0 ? true : _g, _h = _a.initialHeight, initialHeight = _h === void 0 ? 'default' : _h, hideOverlay = _a.hideOverlay, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, children = _a.children, zIndex = _a.zIndex, _j = _a.transitionProps, transitionProps = _j === void 0 ? {} : _j, dataTestId = _a.dataTestId, _k = _a.swipeable, swipeable = _k === void 0 ? true : _k, backdropProps = _a.backdropProps, _l = _a.scrollableContainerRef, scrollableContainerRef = _l === void 0 ? function () { return null; } : _l, onClose = _a.onClose, onBack = _a.onBack;
|
|
58
58
|
var _m = React.useState(0), sheetOffset = _m[0], setSheetOffset = _m[1];
|
|
59
59
|
var _o = React.useState(1), backdropOpacity = _o[0], setBackdropOpacity = _o[1];
|
|
60
60
|
var _p = React.useState(false), scrollLocked = _p[0], setScrollLocked = _p[1];
|
|
@@ -178,9 +178,10 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
178
178
|
height: initialHeight === 'full' ? targetHeight : 'unset',
|
|
179
179
|
maxHeight: targetHeight,
|
|
180
180
|
}); };
|
|
181
|
+
var bgClassName = backgroundColor && styles__default$1.default["background-".concat(backgroundColor)];
|
|
181
182
|
return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { opacity: backdropOpacity, handlers: swipeable ? backdropSwipeablehandlers : false, opacityTimeout: TIMEOUT, invisible: initialHeight === 'full' ? false : hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles__default$1.default.modal, modalClassName), wrapperClassName: modalWrapperClassName, disableBlockingScroll: disableBlockingScroll, transitionProps: tslib.__assign(tslib.__assign({ appear: true, timeout: TIMEOUT, classNames: styles__default$1.default }, transitionProps), { onExited: handleExited, onEntered: handleEntered }) },
|
|
182
183
|
React__default.default.createElement("div", { style: tslib.__assign({}, getHeightStyles()) },
|
|
183
|
-
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default$1.default.component, className, (_b = {},
|
|
184
|
+
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default$1.default.component, bgClassName, className, (_b = {},
|
|
184
185
|
_b[styles__default$1.default.withTransition] = !sheetOffset,
|
|
185
186
|
_b)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeablehandlers),
|
|
186
187
|
React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles__default$1.default.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_c = {},
|
|
@@ -192,7 +193,7 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
192
193
|
_d[styles__default$1.default.noHeader] = hideHeader || emptyHeader,
|
|
193
194
|
_d[styles__default$1.default.noFooter] = !actionButton,
|
|
194
195
|
_d)) }, children),
|
|
195
|
-
actionButton && (React__default.default.createElement(components_footer_Component.Footer, { sticky: stickyFooter, className: footerClassName }, actionButton)))))));
|
|
196
|
+
actionButton && (React__default.default.createElement(components_footer_Component.Footer, { sticky: stickyFooter, className: cn__default.default(bgClassName, footerClassName) }, actionButton)))))));
|
|
196
197
|
});
|
|
197
198
|
|
|
198
199
|
exports.BottomSheet = BottomSheet;
|
package/cssm/component.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
require('tslib');
|
|
4
6
|
require('react');
|
|
5
7
|
require('react-div-100vh');
|
|
@@ -7,7 +9,7 @@ require('react-merge-refs');
|
|
|
7
9
|
require('react-swipeable');
|
|
8
10
|
require('classnames');
|
|
9
11
|
require('@alfalab/core-components-base-modal/cssm');
|
|
10
|
-
var components_header_Component = require('./component-
|
|
12
|
+
var components_header_Component = require('./component-517950e0.js');
|
|
11
13
|
require('./components/footer/Component.js');
|
|
12
14
|
require('./components/swipeable-backdrop/Component.js');
|
|
13
15
|
require('./index.module.css');
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
|
+
--color-light-bg-accent: #ef3124;
|
|
4
|
+
--color-light-bg-attention-muted: #f7ebd9;
|
|
5
|
+
--color-light-bg-info: #d6e8fc;
|
|
6
|
+
--color-light-bg-negative-muted: #fbe8e7;
|
|
7
|
+
--color-light-bg-positive-muted: #e7f6ef;
|
|
3
8
|
--color-light-bg-primary: #fff;
|
|
4
|
-
--color-light-
|
|
9
|
+
--color-light-bg-primary-inverted: #121212;
|
|
10
|
+
--color-light-bg-quaternary: #dcdcdd;
|
|
11
|
+
--color-light-bg-quaternary-inverted: #3a3a3c;
|
|
12
|
+
--color-light-bg-secondary: #f3f4f5;
|
|
13
|
+
--color-light-bg-secondary-inverted: #202022;
|
|
14
|
+
--color-light-bg-tertiary: #e9e9eb;
|
|
15
|
+
--color-light-bg-tertiary-inverted: #2c2c2e;
|
|
16
|
+
--color-light-border-secondary: #e9e9eb;
|
|
17
|
+
--color-light-specialbg-component: rgba(11, 31, 53, 0.07);
|
|
18
|
+
--color-light-specialbg-component-inverted: rgba(255, 255, 255, 0.1);
|
|
19
|
+
--color-light-specialbg-primary-grouped: #f3f4f5;
|
|
20
|
+
--color-light-specialbg-secondary-grouped: #fff;
|
|
21
|
+
--color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05);
|
|
22
|
+
--color-light-specialbg-secondary-transparent-inverted: rgba(255, 255, 255, 0.06);
|
|
23
|
+
--color-light-specialbg-tertiary-grouped: #f3f4f5;
|
|
24
|
+
--color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1);
|
|
25
|
+
--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 */
|
|
5
26
|
} :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 */
|
|
6
27
|
} :root {
|
|
7
28
|
} :root {
|
|
@@ -29,4 +50,48 @@
|
|
|
29
50
|
} .highlighted {
|
|
30
51
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
31
52
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
32
|
-
}
|
|
53
|
+
} .background-accent {
|
|
54
|
+
background-color: var(--color-light-bg-accent);
|
|
55
|
+
} .background-info {
|
|
56
|
+
background-color: var(--color-light-bg-info);
|
|
57
|
+
} .background-attention-muted {
|
|
58
|
+
background-color: var(--color-light-bg-attention-muted);
|
|
59
|
+
} .background-positive-muted {
|
|
60
|
+
background-color: var(--color-light-bg-positive-muted);
|
|
61
|
+
} .background-negative-muted {
|
|
62
|
+
background-color: var(--color-light-bg-negative-muted);
|
|
63
|
+
} .background-primary {
|
|
64
|
+
background-color: var(--color-light-bg-primary);
|
|
65
|
+
} .background-primary-inverted {
|
|
66
|
+
background-color: var(--color-light-bg-primary-inverted);
|
|
67
|
+
} .background-secondary {
|
|
68
|
+
background-color: var(--color-light-bg-secondary);
|
|
69
|
+
} .background-secondary-inverted {
|
|
70
|
+
background-color: var(--color-light-bg-secondary-inverted);
|
|
71
|
+
} .background-tertiary {
|
|
72
|
+
background-color: var(--color-light-bg-tertiary);
|
|
73
|
+
} .background-tertiary-inverted {
|
|
74
|
+
background-color: var(--color-light-bg-tertiary-inverted);
|
|
75
|
+
} .background-quaternary {
|
|
76
|
+
background-color: var(--color-light-bg-quaternary);
|
|
77
|
+
} .background-quaternary-inverted {
|
|
78
|
+
background-color: var(--color-light-bg-quaternary-inverted);
|
|
79
|
+
} .background-specialbg-component {
|
|
80
|
+
background-color: var(--color-light-specialbg-component);
|
|
81
|
+
} .background-specialbg-component-inverted {
|
|
82
|
+
background-color: var(--color-light-specialbg-component-inverted);
|
|
83
|
+
} .background-specialbg-primary-grouped {
|
|
84
|
+
background-color: var(--color-light-specialbg-primary-grouped);
|
|
85
|
+
} .background-specialbg-secondary-grouped {
|
|
86
|
+
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
87
|
+
} .background-specialbg-tertiary-grouped {
|
|
88
|
+
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
89
|
+
} .background-specialbg-secondary-transparent {
|
|
90
|
+
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
91
|
+
} .background-specialbg-secondary-transparent-inverted {
|
|
92
|
+
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
93
|
+
} .background-specialbg-tertiary-transparent {
|
|
94
|
+
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
95
|
+
} .background-specialbg-tertiary-transparent-inverted {
|
|
96
|
+
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
97
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
require('tslib');
|
|
4
6
|
require('react');
|
|
5
7
|
require('classnames');
|
|
6
8
|
require('@alfalab/core-components-base-modal/cssm');
|
|
7
9
|
require('@alfalab/core-components-navigation-bar/cssm');
|
|
8
|
-
var components_header_Component = require('../../component-
|
|
10
|
+
var components_header_Component = require('../../component-517950e0.js');
|
|
9
11
|
require('./index.module.css');
|
|
10
12
|
require('react-div-100vh');
|
|
11
13
|
require('react-merge-refs');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
|
-
--color-light-
|
|
4
|
-
--color-light-border-secondary: #e7e9eb; /* 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 */
|
|
3
|
+
--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 */
|
|
5
4
|
} :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 */
|
|
6
5
|
} :root {
|
|
7
6
|
} :root {
|
|
@@ -33,7 +32,7 @@
|
|
|
33
32
|
border-top-left-radius: var(--border-radius-xl);
|
|
34
33
|
z-index: 1;
|
|
35
34
|
} .hasContent {
|
|
36
|
-
background-color:
|
|
35
|
+
background-color: inherit;
|
|
37
36
|
} .header {
|
|
38
37
|
display: flex;
|
|
39
38
|
} .sticky {
|
package/cssm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./component-
|
|
1
|
+
export * from "./component-517950e0";
|
package/cssm/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var components_header_Component = require('./component-517950e0.js');
|
|
4
6
|
require('tslib');
|
|
5
7
|
require('react');
|
|
6
8
|
require('react-div-100vh');
|