@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.
Files changed (40) hide show
  1. package/{component-76642442.d.ts → component-b5d23e5e.d.ts} +9 -1
  2. package/{component-76642442.js → component-b5d23e5e.js} +6 -5
  3. package/component.js +1 -1
  4. package/components/footer/Component.js +1 -1
  5. package/components/footer/index.css +71 -6
  6. package/components/header/Component.js +1 -1
  7. package/components/header/index.css +14 -15
  8. package/{esm/component-f5632dcc.d.ts → cssm/component-517950e0.d.ts} +9 -1
  9. package/cssm/{component-3f9ff39b.js → component-517950e0.js} +4 -3
  10. package/cssm/component.js +1 -1
  11. package/cssm/components/footer/index.module.css +67 -2
  12. package/cssm/components/header/Component.js +1 -1
  13. package/cssm/components/header/index.module.css +1 -2
  14. package/cssm/index.d.ts +1 -1
  15. package/cssm/index.js +1 -1
  16. package/cssm/index.module.css +69 -3
  17. package/{cssm/component-3f9ff39b.d.ts → esm/component-612e671f.d.ts} +9 -1
  18. package/esm/{component-f5632dcc.js → component-612e671f.js} +6 -5
  19. package/esm/component.js +1 -1
  20. package/esm/components/footer/Component.js +1 -1
  21. package/esm/components/footer/index.css +71 -6
  22. package/esm/components/header/Component.js +1 -1
  23. package/esm/components/header/index.css +14 -15
  24. package/esm/index.css +84 -18
  25. package/esm/index.d.ts +1 -1
  26. package/esm/index.js +1 -1
  27. package/index.css +84 -18
  28. package/index.d.ts +1 -1
  29. package/index.js +1 -1
  30. package/modern/{component-803dbc9d.d.ts → component-1cd1bc34.d.ts} +9 -1
  31. package/modern/{component-803dbc9d.js → component-1cd1bc34.js} +6 -5
  32. package/modern/component.js +1 -1
  33. package/modern/components/footer/Component.js +1 -1
  34. package/modern/components/footer/index.css +71 -6
  35. package/modern/components/header/Component.js +1 -1
  36. package/modern/components/header/index.css +14 -15
  37. package/modern/index.css +84 -18
  38. package/modern/index.d.ts +1 -1
  39. package/modern/index.js +1 -1
  40. package/package.json +1 -1
@@ -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-sheet__headerWrapper_1rksr","hasContent":"bottom-sheet__hasContent_1rksr","header":"bottom-sheet__header_1rksr","sticky":"bottom-sheet__sticky_1rksr","highlighted":"bottom-sheet__highlighted_1rksr","justifyEnd":"bottom-sheet__justifyEnd_1rksr","addon":"bottom-sheet__addon_1rksr","addonFixed":"bottom-sheet__addonFixed_1rksr","title":"bottom-sheet__title_1rksr","titleCenter":"bottom-sheet__titleCenter_1rksr","titleLeft":"bottom-sheet__titleLeft_1rksr","trimTitle":"bottom-sheet__trimTitle_1rksr"};
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-sheet__modal_1lik2","component":"bottom-sheet__component_1lik2","withTransition":"bottom-sheet__withTransition_1lik2","scrollableContainer":"bottom-sheet__scrollableContainer_1lik2","marker":"bottom-sheet__marker_1lik2","content":"bottom-sheet__content_1lik2","noHeader":"bottom-sheet__noHeader_1lik2","noFooter":"bottom-sheet__noFooter_1lik2","scrollLocked":"bottom-sheet__scrollLocked_1lik2","appear":"bottom-sheet__appear_1lik2","enter":"bottom-sheet__enter_1lik2","appearActive":"bottom-sheet__appearActive_1lik2","enterActive":"bottom-sheet__enterActive_1lik2","enterDone":"bottom-sheet__enterDone_1lik2","appearDone":"bottom-sheet__appearDone_1lik2","exit":"bottom-sheet__exit_1lik2","exitActive":"bottom-sheet__exitActive_1lik2"};
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
@@ -9,7 +9,7 @@ require('react-merge-refs');
9
9
  require('react-swipeable');
10
10
  require('classnames');
11
11
  require('@alfalab/core-components-base-modal');
12
- var components_header_Component = require('./component-76642442.js');
12
+ var components_header_Component = require('./component-b5d23e5e.js');
13
13
  require('./components/footer/Component.js');
14
14
  require('./components/swipeable-backdrop/Component.js');
15
15
  require('@alfalab/core-components-navigation-bar');
@@ -11,7 +11,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
12
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
13
13
 
14
- var styles = {"footer":"bottom-sheet__footer_1jpy0","sticky":"bottom-sheet__sticky_1jpy0","highlighted":"bottom-sheet__highlighted_1jpy0"};
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"};
15
15
  require('./index.css')
16
16
 
17
17
  var Footer = function (_a) {
@@ -1,8 +1,29 @@
1
- /* hash: cp1bo */
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-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 */
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-sheet__footer_1jpy0 {
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-sheet__sticky_1jpy0 {
47
+ } .bottom-sheet__sticky_7gxws {
27
48
  position: sticky;
28
49
  bottom: 0;
29
50
  z-index: 1;
30
- } .bottom-sheet__highlighted_1jpy0 {
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
+ }
@@ -7,7 +7,7 @@ require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-base-modal');
9
9
  require('@alfalab/core-components-navigation-bar');
10
- var components_header_Component = require('../../component-76642442.js');
10
+ var components_header_Component = require('../../component-b5d23e5e.js');
11
11
  require('react-div-100vh');
12
12
  require('react-merge-refs');
13
13
  require('react-swipeable');
@@ -1,7 +1,6 @@
1
- /* hash: 1f5gr */
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-sheet__headerWrapper_1rksr {
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-sheet__hasContent_1rksr {
37
- background-color: var(--color-light-bg-primary);
38
- } .bottom-sheet__header_1rksr {
35
+ } .bottom-sheet__hasContent_1034c {
36
+ background-color: inherit;
37
+ } .bottom-sheet__header_1034c {
39
38
  display: flex;
40
- } .bottom-sheet__sticky_1rksr {
39
+ } .bottom-sheet__sticky_1034c {
41
40
  position: sticky;
42
41
  top: 0;
43
- } .bottom-sheet__highlighted_1rksr {
42
+ } .bottom-sheet__highlighted_1034c {
44
43
  border-bottom: var(--bottom-sheet-header-border-bottom);
45
- } .bottom-sheet__justifyEnd_1rksr {
44
+ } .bottom-sheet__justifyEnd_1034c {
46
45
  justify-content: flex-end;
47
- } .bottom-sheet__addon_1rksr {
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-sheet__addonFixed_1rksr {
52
+ } .bottom-sheet__addonFixed_1034c {
54
53
  position: fixed;
55
- } .bottom-sheet__title_1rksr {
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-sheet__titleCenter_1rksr {
61
+ } .bottom-sheet__titleCenter_1034c {
63
62
  text-align: center;
64
- } .bottom-sheet__titleLeft_1rksr {
63
+ } .bottom-sheet__titleLeft_1034c {
65
64
  text-align: left;
66
- } .bottom-sheet__trimTitle_1rksr {
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
@@ -9,7 +9,7 @@ require('react-merge-refs');
9
9
  require('react-swipeable');
10
10
  require('classnames');
11
11
  require('@alfalab/core-components-base-modal/cssm');
12
- var components_header_Component = require('./component-3f9ff39b.js');
12
+ var components_header_Component = require('./component-517950e0.js');
13
13
  require('./components/footer/Component.js');
14
14
  require('./components/swipeable-backdrop/Component.js');
15
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-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 */
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
+ }
@@ -7,7 +7,7 @@ require('react');
7
7
  require('classnames');
8
8
  require('@alfalab/core-components-base-modal/cssm');
9
9
  require('@alfalab/core-components-navigation-bar/cssm');
10
- var components_header_Component = require('../../component-3f9ff39b.js');
10
+ var components_header_Component = require('../../component-517950e0.js');
11
11
  require('./index.module.css');
12
12
  require('react-div-100vh');
13
13
  require('react-merge-refs');
@@ -1,6 +1,5 @@
1
1
  :root {
2
2
  } /* deprecated */ :root {
3
- --color-light-bg-primary: #fff;
4
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 {
@@ -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: var(--color-light-bg-primary);
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-3f9ff39b";
1
+ export * from "./component-517950e0";
package/cssm/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-3f9ff39b.js');
5
+ var components_header_Component = require('./component-517950e0.js');
6
6
  require('tslib');
7
7
  require('react');
8
8
  require('react-div-100vh');
@@ -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;
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;
4
16
  --color-light-graphic-quaternary: #dcdcdd;
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);
5
26
  --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 */
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 {
@@ -36,7 +57,7 @@
36
57
  flex-direction: column;
37
58
  border-top-right-radius: var(--border-radius-xl);
38
59
  border-top-left-radius: var(--border-radius-xl);
39
- background: var(--color-light-bg-primary);
60
+ background-color: var(--color-light-bg-primary);
40
61
  transform: translateY(100%);
41
62
  } .withTransition {
42
63
  transition: var(--bottom-sheet-out-transition);
@@ -46,6 +67,7 @@
46
67
  flex-direction: column;
47
68
  position: relative;
48
69
  height: 100%;
70
+ background-color: inherit;
49
71
  } .marker {
50
72
  position: fixed;
51
73
  top: var(--gap-2xs);
@@ -64,7 +86,7 @@
64
86
  flex: 1;
65
87
  padding: 0 var(--gap-m);
66
88
  color: var(--color-light-text-primary);
67
- background-color: var(--color-light-bg-primary);
89
+ background-color: inherit;
68
90
  } .noHeader {
69
91
  padding-top: var(--gap-m);
70
92
  } .noFooter {
@@ -83,4 +105,48 @@
83
105
  } .exitActive .component {
84
106
  transition: var(--bottom-sheet-out-transition);
85
107
  transform: translateY(100%);
86
- }
108
+ } .background-accent {
109
+ background-color: var(--color-light-bg-accent);
110
+ } .background-info {
111
+ background-color: var(--color-light-bg-info);
112
+ } .background-attention-muted {
113
+ background-color: var(--color-light-bg-attention-muted);
114
+ } .background-positive-muted {
115
+ background-color: var(--color-light-bg-positive-muted);
116
+ } .background-negative-muted {
117
+ background-color: var(--color-light-bg-negative-muted);
118
+ } .background-primary {
119
+ background-color: var(--color-light-bg-primary);
120
+ } .background-primary-inverted {
121
+ background-color: var(--color-light-bg-primary-inverted);
122
+ } .background-secondary {
123
+ background-color: var(--color-light-bg-secondary);
124
+ } .background-secondary-inverted {
125
+ background-color: var(--color-light-bg-secondary-inverted);
126
+ } .background-tertiary {
127
+ background-color: var(--color-light-bg-tertiary);
128
+ } .background-tertiary-inverted {
129
+ background-color: var(--color-light-bg-tertiary-inverted);
130
+ } .background-quaternary {
131
+ background-color: var(--color-light-bg-quaternary);
132
+ } .background-quaternary-inverted {
133
+ background-color: var(--color-light-bg-quaternary-inverted);
134
+ } .background-specialbg-component {
135
+ background-color: var(--color-light-specialbg-component);
136
+ } .background-specialbg-component-inverted {
137
+ background-color: var(--color-light-specialbg-component-inverted);
138
+ } .background-specialbg-primary-grouped {
139
+ background-color: var(--color-light-specialbg-primary-grouped);
140
+ } .background-specialbg-secondary-grouped {
141
+ background-color: var(--color-light-specialbg-secondary-grouped);
142
+ } .background-specialbg-tertiary-grouped {
143
+ background-color: var(--color-light-specialbg-tertiary-grouped);
144
+ } .background-specialbg-secondary-transparent {
145
+ background-color: var(--color-light-specialbg-secondary-transparent);
146
+ } .background-specialbg-secondary-transparent-inverted {
147
+ background-color: var(--color-light-specialbg-secondary-transparent-inverted);
148
+ } .background-specialbg-tertiary-transparent {
149
+ background-color: var(--color-light-specialbg-tertiary-transparent);
150
+ } .background-specialbg-tertiary-transparent-inverted {
151
+ background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
152
+ }