@snack-uikit/drawer 0.8.8 → 0.8.10-preview-1f246c4a.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 (89) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/components/Drawer/Drawer.js +84 -0
  3. package/dist/cjs/components/Drawer/index.js +25 -0
  4. package/dist/cjs/components/DrawerCustom/DrawerCustom.js +76 -0
  5. package/dist/cjs/components/DrawerCustom/constants.js +19 -0
  6. package/dist/cjs/components/DrawerCustom/index.js +25 -0
  7. package/dist/cjs/components/index.js +26 -0
  8. package/dist/cjs/constants.js +35 -0
  9. package/dist/cjs/helperComponents/Body/Body.js +39 -0
  10. package/dist/cjs/helperComponents/Body/index.js +25 -0
  11. package/dist/cjs/helperComponents/ButtonClose/ButtonClose.js +28 -0
  12. package/dist/cjs/helperComponents/ButtonClose/index.js +25 -0
  13. package/dist/cjs/helperComponents/Footer/Footer.js +41 -0
  14. package/dist/cjs/helperComponents/Footer/index.js +25 -0
  15. package/dist/cjs/helperComponents/Header/Header.js +65 -0
  16. package/dist/cjs/helperComponents/Header/index.js +25 -0
  17. package/dist/cjs/helperComponents/WithTooltip/WithTooltip.js +22 -0
  18. package/dist/cjs/helperComponents/WithTooltip/index.js +25 -0
  19. package/dist/cjs/helperComponents/index.js +28 -0
  20. package/dist/cjs/index.js +25 -0
  21. package/dist/cjs/types.js +5 -0
  22. package/dist/esm/components/Drawer/Drawer.d.ts +40 -0
  23. package/dist/esm/components/Drawer/index.js +1 -0
  24. package/dist/esm/components/DrawerCustom/DrawerCustom.d.ts +41 -0
  25. package/dist/esm/components/DrawerCustom/constants.d.ts +5 -0
  26. package/dist/esm/components/DrawerCustom/index.js +1 -0
  27. package/dist/esm/components/index.js +2 -0
  28. package/dist/esm/constants.d.ts +29 -0
  29. package/dist/esm/helperComponents/Body/Body.d.ts +10 -0
  30. package/dist/esm/helperComponents/Body/index.js +1 -0
  31. package/dist/esm/helperComponents/ButtonClose/ButtonClose.d.ts +5 -0
  32. package/dist/esm/helperComponents/ButtonClose/index.js +1 -0
  33. package/dist/esm/helperComponents/Footer/Footer.d.ts +10 -0
  34. package/dist/esm/helperComponents/Footer/index.js +1 -0
  35. package/dist/esm/helperComponents/Header/Header.d.ts +20 -0
  36. package/dist/esm/helperComponents/Header/index.js +1 -0
  37. package/dist/esm/helperComponents/WithTooltip/WithTooltip.d.ts +8 -0
  38. package/dist/esm/helperComponents/WithTooltip/index.js +1 -0
  39. package/dist/esm/helperComponents/index.js +4 -0
  40. package/dist/esm/index.js +1 -0
  41. package/dist/esm/types.d.ts +5 -0
  42. package/package.json +14 -12
  43. package/dist/components/Drawer/styles.module.css +0 -3
  44. package/dist/components/DrawerCustom/motion.css +0 -63
  45. package/dist/components/DrawerCustom/styles.module.css +0 -53
  46. package/dist/helperComponents/Body/styles.module.css +0 -8
  47. package/dist/helperComponents/ButtonClose/styles.module.css +0 -35
  48. package/dist/helperComponents/Footer/styles.module.css +0 -17
  49. package/dist/helperComponents/Header/styles.module.css +0 -35
  50. /package/dist/{components → cjs/components}/Drawer/Drawer.d.ts +0 -0
  51. /package/dist/{components → cjs/components}/Drawer/index.d.ts +0 -0
  52. /package/dist/{components → cjs/components}/DrawerCustom/DrawerCustom.d.ts +0 -0
  53. /package/dist/{components → cjs/components}/DrawerCustom/constants.d.ts +0 -0
  54. /package/dist/{components → cjs/components}/DrawerCustom/index.d.ts +0 -0
  55. /package/dist/{components → cjs/components}/index.d.ts +0 -0
  56. /package/dist/{constants.d.ts → cjs/constants.d.ts} +0 -0
  57. /package/dist/{helperComponents → cjs/helperComponents}/Body/Body.d.ts +0 -0
  58. /package/dist/{helperComponents → cjs/helperComponents}/Body/index.d.ts +0 -0
  59. /package/dist/{helperComponents → cjs/helperComponents}/ButtonClose/ButtonClose.d.ts +0 -0
  60. /package/dist/{helperComponents → cjs/helperComponents}/ButtonClose/index.d.ts +0 -0
  61. /package/dist/{helperComponents → cjs/helperComponents}/Footer/Footer.d.ts +0 -0
  62. /package/dist/{helperComponents → cjs/helperComponents}/Footer/index.d.ts +0 -0
  63. /package/dist/{helperComponents → cjs/helperComponents}/Header/Header.d.ts +0 -0
  64. /package/dist/{helperComponents → cjs/helperComponents}/Header/index.d.ts +0 -0
  65. /package/dist/{helperComponents → cjs/helperComponents}/WithTooltip/WithTooltip.d.ts +0 -0
  66. /package/dist/{helperComponents → cjs/helperComponents}/WithTooltip/index.d.ts +0 -0
  67. /package/dist/{helperComponents → cjs/helperComponents}/index.d.ts +0 -0
  68. /package/dist/{index.d.ts → cjs/index.d.ts} +0 -0
  69. /package/dist/{types.d.ts → cjs/types.d.ts} +0 -0
  70. /package/dist/{components → esm/components}/Drawer/Drawer.js +0 -0
  71. /package/dist/{components/Drawer/index.js → esm/components/Drawer/index.d.ts} +0 -0
  72. /package/dist/{components → esm/components}/DrawerCustom/DrawerCustom.js +0 -0
  73. /package/dist/{components → esm/components}/DrawerCustom/constants.js +0 -0
  74. /package/dist/{components/DrawerCustom/index.js → esm/components/DrawerCustom/index.d.ts} +0 -0
  75. /package/dist/{components/index.js → esm/components/index.d.ts} +0 -0
  76. /package/dist/{constants.js → esm/constants.js} +0 -0
  77. /package/dist/{helperComponents → esm/helperComponents}/Body/Body.js +0 -0
  78. /package/dist/{helperComponents/Body/index.js → esm/helperComponents/Body/index.d.ts} +0 -0
  79. /package/dist/{helperComponents → esm/helperComponents}/ButtonClose/ButtonClose.js +0 -0
  80. /package/dist/{helperComponents/ButtonClose/index.js → esm/helperComponents/ButtonClose/index.d.ts} +0 -0
  81. /package/dist/{helperComponents → esm/helperComponents}/Footer/Footer.js +0 -0
  82. /package/dist/{helperComponents/Footer/index.js → esm/helperComponents/Footer/index.d.ts} +0 -0
  83. /package/dist/{helperComponents → esm/helperComponents}/Header/Header.js +0 -0
  84. /package/dist/{helperComponents/Header/index.js → esm/helperComponents/Header/index.d.ts} +0 -0
  85. /package/dist/{helperComponents → esm/helperComponents}/WithTooltip/WithTooltip.js +0 -0
  86. /package/dist/{helperComponents/WithTooltip/index.js → esm/helperComponents/WithTooltip/index.d.ts} +0 -0
  87. /package/dist/{helperComponents/index.js → esm/helperComponents/index.d.ts} +0 -0
  88. /package/dist/{index.js → esm/index.d.ts} +0 -0
  89. /package/dist/{types.js → esm/types.js} +0 -0
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = {
8
+ enumerable: true,
9
+ get: function () {
10
+ return m[k];
11
+ }
12
+ };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ } : function (o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ });
19
+ var __exportStar = void 0 && (void 0).__exportStar || function (m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
22
+ Object.defineProperty(exports, "__esModule", {
23
+ value: true
24
+ });
25
+ __exportStar(require("./components"), exports);
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,40 @@
1
+ import { ReactElement } from 'react';
2
+ import { ButtonFilledProps, ButtonOutlineProps, ButtonSimpleProps } from '@snack-uikit/button';
3
+ import { TooltipProps } from '@snack-uikit/tooltip';
4
+ import { DrawerBodyProps, DrawerHeaderProps } from '../../helperComponents';
5
+ import { Size } from '../../types';
6
+ import { DrawerCustomProps } from '../DrawerCustom';
7
+ export type DrawerProps = Omit<DrawerCustomProps, 'size' | 'children' | 'nestedDrawer' | 'push'> & Pick<DrawerHeaderProps, 'titleTooltip' | 'image'> & Pick<DrawerBodyProps, 'content'> & {
8
+ /** Заголовок */
9
+ title: string;
10
+ /** Подзаголовок */
11
+ subtitle?: string;
12
+ /** Размер */
13
+ size?: Size;
14
+ /** Основная кнопка */
15
+ approveButton?: Omit<ButtonFilledProps, 'size'> & {
16
+ tooltip?: TooltipProps;
17
+ };
18
+ /** Кнопка отмены */
19
+ cancelButton?: Omit<ButtonOutlineProps, 'size'> & {
20
+ tooltip?: TooltipProps;
21
+ };
22
+ /** Дополнительная кнопка */
23
+ additionalButton?: Omit<ButtonSimpleProps, 'size'> & {
24
+ tooltip?: TooltipProps;
25
+ };
26
+ /** Вложенный Drawer */
27
+ nestedDrawer?: ReactElement<DrawerProps>;
28
+ /**
29
+ * Максимальное кол-во строк
30
+ * <br> - `title` - в заголовке
31
+ * <br> - `subtitle` - в подзаголовке
32
+ * @default '{ <br>title: 1; <br>subtitle: 2; }'
33
+ */
34
+ truncate?: {
35
+ title?: number;
36
+ subtitle?: number;
37
+ };
38
+ };
39
+ /** Готовый компонент Drawer */
40
+ export declare function Drawer({ title, titleTooltip, subtitle, image, content, approveButton, cancelButton, additionalButton, nestedDrawer, truncate, ...rest }: DrawerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Drawer';
@@ -0,0 +1,41 @@
1
+ import 'rc-drawer/assets/index.css';
2
+ import { DrawerProps as RcDrawerProps } from 'rc-drawer';
3
+ import { PropsWithChildren, ReactElement } from 'react';
4
+ import { WithSupportProps } from '@snack-uikit/utils';
5
+ import { DrawerBody, DrawerBodyProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps } from '../../helperComponents';
6
+ import { Mode, Position, Size } from '../../types';
7
+ export type DrawerCustomProps = WithSupportProps<PropsWithChildren<{
8
+ /** Управление состоянием показан/не показан. */
9
+ open: boolean;
10
+ /** Колбэк закрытия */
11
+ onClose(): void;
12
+ /** Режим отображения */
13
+ mode?: Mode;
14
+ /** Расположение открытого Drawer */
15
+ position?: Position;
16
+ /** CSS-класс для элемента с контентом */
17
+ className?: string;
18
+ /** CSS-класс для корневого элемента */
19
+ rootClassName?: string;
20
+ /** Размер */
21
+ size?: Size | string | number;
22
+ /** Смещение при открытии "вложенного" компонента */
23
+ push?: RcDrawerProps['push'];
24
+ /** Контейнер в котором будет рендерится Drawer. По-умолчанию - body */
25
+ container?: string | HTMLElement;
26
+ /** Вложенный Drawer */
27
+ nestedDrawer?: ReactElement<DrawerCustomProps>;
28
+ }>>;
29
+ declare function DrawerCustomComponent({ open, mode, position, onClose, rootClassName, className, size, push, container, children, nestedDrawer, ...rest }: DrawerCustomProps): import("react/jsx-runtime").JSX.Element;
30
+ /** Компонент-конструктор */
31
+ export declare const DrawerCustom: typeof DrawerCustomComponent & {
32
+ Header: typeof DrawerHeader;
33
+ Body: typeof DrawerBody;
34
+ Footer: typeof DrawerFooter;
35
+ };
36
+ export declare namespace DrawerCustom {
37
+ type HeaderProps = DrawerHeaderProps;
38
+ type BodyProps = DrawerBodyProps;
39
+ type FooterProps = DrawerFooterProps;
40
+ }
41
+ export {};
@@ -0,0 +1,5 @@
1
+ import './motion.css';
2
+ import type { DrawerProps } from 'rc-drawer';
3
+ export declare const maskMotion: DrawerProps['maskMotion'];
4
+ export declare const motion: DrawerProps['motion'];
5
+ export declare const motionProps: Partial<DrawerProps>;
@@ -0,0 +1 @@
1
+ export * from './DrawerCustom';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerCustom';
2
+ export * from './Drawer';
@@ -0,0 +1,29 @@
1
+ export declare const SIZE: {
2
+ readonly S: "s";
3
+ readonly M: "m";
4
+ readonly L: "l";
5
+ };
6
+ export declare const SIZE_AS_VALUES: string[];
7
+ export declare const MODE: {
8
+ readonly Regular: "regular";
9
+ readonly Soft: "soft";
10
+ };
11
+ export declare const POSITION: {
12
+ readonly Right: "right";
13
+ readonly Left: "left";
14
+ };
15
+ export declare const NESTED_DRAWER_PUSH_DISTANCE = 24;
16
+ export declare const TEST_IDS: {
17
+ closeButton: string;
18
+ header: string;
19
+ title: string;
20
+ tooltip: string;
21
+ subtitle: string;
22
+ image: string;
23
+ content: string;
24
+ footer: string;
25
+ footerActions: string;
26
+ approveButton: string;
27
+ cancelButton: string;
28
+ additionalButton: string;
29
+ };
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { WithSupportProps } from '@snack-uikit/utils';
3
+ export type DrawerBodyProps = WithSupportProps<{
4
+ /** Контент */
5
+ content: ReactNode;
6
+ /** CSS-класс */
7
+ className?: string;
8
+ }>;
9
+ /** Вспомогательный компонент для добавления "тела" в DrawerCustom */
10
+ export declare function DrawerBody({ content, className, ...rest }: DrawerBodyProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Body';
@@ -0,0 +1,5 @@
1
+ type ButtonCloseProps = {
2
+ onClick(): void;
3
+ };
4
+ export declare function ButtonClose({ onClick }: ButtonCloseProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1 @@
1
+ export * from './ButtonClose';
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ import { WithSupportProps } from '@snack-uikit/utils';
3
+ export type DrawerFooterProps = WithSupportProps<{
4
+ /** Слот для добавления кнопок-действий */
5
+ actions: ReactNode;
6
+ /** CSS-класс */
7
+ className?: string;
8
+ }>;
9
+ /** Вспомогательный компонент для добавления "футера" в DrawerCustom */
10
+ export declare function DrawerFooter({ actions, className, ...rest }: DrawerFooterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Footer';
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import { TooltipProps } from '@snack-uikit/tooltip';
3
+ import { WithSupportProps } from '@snack-uikit/utils';
4
+ export type DrawerHeaderProps = WithSupportProps<{
5
+ /** Изображение */
6
+ image?: {
7
+ src: string;
8
+ alt: string;
9
+ };
10
+ /** Заголовок */
11
+ title: ReactNode;
12
+ /** Тултип для заголовка */
13
+ titleTooltip?: TooltipProps['tip'];
14
+ /** Подзаголовок */
15
+ subtitle?: ReactNode;
16
+ /** CSS-класс */
17
+ className?: string;
18
+ }>;
19
+ /** Вспомогательный компонент для добавления "шапки" в DrawerCustom */
20
+ export declare function DrawerHeader({ title, titleTooltip, subtitle, image, className, ...rest }: DrawerHeaderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Header';
@@ -0,0 +1,8 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { TooltipProps } from '@snack-uikit/tooltip';
3
+ type WithTooltipProps = PropsWithChildren<{
4
+ /** Тултип над кнопкой */
5
+ tooltip?: TooltipProps;
6
+ }>;
7
+ export declare function WithTooltip({ tooltip, children }: WithTooltipProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './WithTooltip';
@@ -0,0 +1,4 @@
1
+ export * from './Body';
2
+ export * from './ButtonClose';
3
+ export * from './Footer';
4
+ export * from './Header';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,5 @@
1
+ import { ValueOf } from '@snack-uikit/utils';
2
+ import { MODE, POSITION, SIZE } from './constants';
3
+ export type Size = ValueOf<typeof SIZE>;
4
+ export type Mode = ValueOf<typeof MODE>;
5
+ export type Position = ValueOf<typeof POSITION>;
package/package.json CHANGED
@@ -4,15 +4,16 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Drawer",
7
- "version": "0.8.8",
7
+ "version": "0.8.10-preview-1f246c4a.0",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
11
11
  "*.woff2"
12
12
  ],
13
13
  "description": "",
14
- "main": "./dist/index.js",
15
- "module": "./dist/index.js",
14
+ "types": "./dist/esm/index.d.ts",
15
+ "main": "./dist/cjs/index.js",
16
+ "module": "./dist/esm/index.js",
16
17
  "homepage": "https://github.com/cloud-ru-tech/snack-uikit/tree/master/packages/drawer",
17
18
  "repository": {
18
19
  "type": "git",
@@ -24,7 +25,8 @@
24
25
  "Белов Алексей <anbelov@cloud.ru>"
25
26
  ],
26
27
  "files": [
27
- "dist",
28
+ "dist/cjs",
29
+ "dist/esm",
28
30
  "src",
29
31
  "./CHANGELOG.md",
30
32
  "./LICENSE"
@@ -32,15 +34,15 @@
32
34
  "license": "Apache-2.0",
33
35
  "scripts": {},
34
36
  "dependencies": {
35
- "@snack-uikit/button": "0.17.5",
36
- "@snack-uikit/icons": "0.22.1",
37
- "@snack-uikit/scroll": "0.6.1",
38
- "@snack-uikit/tooltip": "0.13.10",
39
- "@snack-uikit/truncate-string": "0.4.23",
40
- "@snack-uikit/typography": "0.6.3",
41
- "@snack-uikit/utils": "3.4.0",
37
+ "@snack-uikit/button": "0.17.6-preview-1f246c4a.0",
38
+ "@snack-uikit/icons": "0.22.2-preview-1f246c4a.0",
39
+ "@snack-uikit/scroll": "0.6.3-preview-1f246c4a.0",
40
+ "@snack-uikit/tooltip": "0.13.11-preview-1f246c4a.0",
41
+ "@snack-uikit/truncate-string": "0.4.25-preview-1f246c4a.0",
42
+ "@snack-uikit/typography": "0.6.4-preview-1f246c4a.0",
43
+ "@snack-uikit/utils": "3.4.1-preview-1f246c4a.0",
42
44
  "classnames": "2.3.2",
43
45
  "rc-drawer": "6.4.1"
44
46
  },
45
- "gitHead": "fc6a22e54444112c7ded3349a79da17bb777fd0e"
47
+ "gitHead": "a185a55c0722b19f70dd168cf299e6f53a0fd93f"
46
48
  }
@@ -1,3 +0,0 @@
1
- .drawer{
2
- box-sizing:border-box;
3
- }
@@ -1,63 +0,0 @@
1
- .maskMotion {
2
- opacity: unset;
3
- }
4
- .maskMotion-enter, .maskMotion-appear {
5
- opacity: 0;
6
- }
7
- .maskMotion-enter-active, .maskMotion-appear-active {
8
- opacity: 1;
9
- transition: opacity 0.2s;
10
- }
11
- .maskMotion-leave {
12
- opacity: 1;
13
- }
14
- .maskMotion-leave-active {
15
- opacity: 0;
16
- transition: opacity 0.1s;
17
- }
18
-
19
- .panelMotion {
20
- transform: unset;
21
- }
22
- .panelMotion-left-enter-start, .panelMotion-left-appear-start, .panelMotion-left-leave-start {
23
- transition: none !important;
24
- }
25
- .panelMotion-left-enter-active, .panelMotion-left-appear-active {
26
- transition: transform 0.2s ease-in-out;
27
- }
28
- .panelMotion-left-leave-active {
29
- transition: transform 0.1s ease-out;
30
- }
31
- .panelMotion-left-enter, .panelMotion-left-appear {
32
- transform: translateX(-100%);
33
- }
34
- .panelMotion-left-enter-active, .panelMotion-left-appear-active {
35
- transform: translateX(0);
36
- }
37
- .panelMotion-left-leave {
38
- transform: translateX(0);
39
- }
40
- .panelMotion-left-leave-active {
41
- transform: translateX(-100%) !important;
42
- }
43
- .panelMotion-right-enter-start, .panelMotion-right-appear-start, .panelMotion-right-leave-start {
44
- transition: none !important;
45
- }
46
- .panelMotion-right-enter-active, .panelMotion-right-appear-active {
47
- transition: transform 0.2s ease-in-out;
48
- }
49
- .panelMotion-right-leave-active {
50
- transition: transform 0.1s ease-out;
51
- }
52
- .panelMotion-right-enter, .panelMotion-right-appear {
53
- transform: translateX(100%);
54
- }
55
- .panelMotion-right-enter-active, .panelMotion-right-appear-active {
56
- transform: translateX(0);
57
- }
58
- .panelMotion-right-leave {
59
- transform: translateX(0);
60
- }
61
- .panelMotion-right-leave-active {
62
- transform: translateX(100%) !important;
63
- }
@@ -1,53 +0,0 @@
1
- .drawerRoot{
2
- z-index:auto !important;
3
- }
4
-
5
- div[data-content-wrapper=true]{
6
- will-change:transform;
7
- z-index:auto;
8
- overflow:unset;
9
- max-width:calc(100% - var(--space-drawer-outside-gap, 24px));
10
- height:100%;
11
- }
12
- div[data-content-wrapper=true][data-size=s]{
13
- min-width:var(--size-drawer-min-width-s, 304px);
14
- width:var(--size-drawer-width-s, 464px);
15
- }
16
- div[data-content-wrapper=true][data-size=m]{
17
- min-width:var(--size-drawer-min-width-m, 304px);
18
- width:var(--size-drawer-width-m, 864px);
19
- }
20
- div[data-content-wrapper=true][data-size=l]{
21
- min-width:var(--size-drawer-min-width-l, 304px);
22
- width:var(--size-drawer-width-l, 1872px);
23
- }
24
- div[data-content-wrapper=true][data-mode=regular] .drawer{
25
- background-color:var(--sys-neutral-background1-level, #fdfdfd);
26
- }
27
- div[data-content-wrapper=true][data-mode=soft] .drawer{
28
- background-color:var(--sys-neutral-background2-level, #ffffff);
29
- }
30
-
31
- .drawer{
32
- overflow:unset;
33
- display:flex;
34
- flex-direction:column;
35
- box-sizing:border-box;
36
- box-shadow:var(--box-shadow-elevation-level5, 0px 0px 16px 0px rgba(0, 0, 0, 0.0784313725), 0px 24px 16px 0px rgba(0, 0, 0, 0.0784313725));
37
- }
38
-
39
- .headerElements{
40
- padding-top:var(--space-drawer-header-elements-top, 32px);
41
- padding-right:var(--space-drawer-header-elements-side, 32px);
42
- gap:var(--space-drawer-headline-layout-badge-elements-layout-gap, 16px);
43
- position:absolute;
44
- top:0;
45
- right:0;
46
- display:flex;
47
- align-items:center;
48
- }
49
-
50
- .mask{
51
- z-index:auto !important;
52
- background-color:var(--sys-blackout, rgba(0, 0, 0, 0.3215686275));
53
- }
@@ -1,8 +0,0 @@
1
- .drawerBody{
2
- padding-left:var(--space-drawer-body-side, 32px);
3
- padding-right:var(--space-drawer-body-side, 32px);
4
- flex:1 1 auto;
5
- box-sizing:border-box;
6
- min-height:var(--dimension-2m, 16px);
7
- color:var(--sys-neutral-text-main, #41424e);
8
- }
@@ -1,35 +0,0 @@
1
- .buttonClose{
2
- width:var(--size-drawer-button-close, 32px);
3
- height:var(--size-drawer-button-close, 32px);
4
- border-radius:var(--radius-drawer-button-close, 16px);
5
- cursor:pointer;
6
- display:flex;
7
- align-items:center;
8
- justify-content:center;
9
- box-sizing:border-box;
10
- margin:0;
11
- padding:0;
12
- color:var(--sys-neutral-text-support, #6d707f);
13
- background-color:var(--sys-neutral-decor-default, #dde0ea);
14
- border:0 solid transparent;
15
- outline:0;
16
- outline-offset:var(--spacing-state-focus-offset, 2px);
17
- }
18
- .buttonClose:hover, .buttonClose:focus-visible{
19
- color:var(--sys-neutral-text-main, #41424e);
20
- background-color:var(--sys-neutral-decor-hovered, #cfd2dc);
21
- }
22
- .buttonClose:focus-visible{
23
- outline-width:var(--border-state-focus-s-border-width, 2px);
24
- outline-style:var(--border-state-focus-s-border-style, solid);
25
- outline-color:var(--border-state-focus-s-border-color, );
26
- outline-color:var(--sys-available-complementary, #1c1c24);
27
- }
28
- .buttonClose:active{
29
- color:var(--sys-neutral-text-main, #41424e);
30
- background-color:var(--sys-neutral-decor-activated, #bec2cf);
31
- }
32
- .buttonClose svg{
33
- width:var(--size-icon-container-s, 24px) !important;
34
- height:var(--size-icon-container-s, 24px) !important;
35
- }
@@ -1,17 +0,0 @@
1
- .footer{
2
- padding-top:var(--space-drawer-footer-top, 24px);
3
- padding-left:var(--space-drawer-footer-side, 32px);
4
- padding-right:var(--space-drawer-footer-side, 32px);
5
- padding-bottom:var(--space-drawer-footer-bottom, 32px);
6
- gap:var(--space-drawer-footer-gap, 16px);
7
- display:flex;
8
- flex-direction:column;
9
- }
10
-
11
- .footerActions{
12
- gap:var(--space-drawer-footer-action-row-gap, 8px);
13
- display:flex;
14
- flex-direction:row-reverse;
15
- flex-wrap:wrap-reverse;
16
- align-items:center;
17
- }
@@ -1,35 +0,0 @@
1
- .drawerHeader{
2
- }
3
-
4
- .image{
5
- height:var(--size-drawer-image, 184px);
6
- display:block;
7
- width:100%;
8
- -o-object-fit:cover;
9
- object-fit:cover;
10
- }
11
-
12
- .headlineLayout{
13
- padding-top:var(--space-drawer-headline-layout-top, 32px);
14
- padding-left:var(--space-drawer-headline-layout-side-s, 32px);
15
- padding-right:var(--space-drawer-headline-layout-side-m, 64px);
16
- padding-bottom:var(--space-drawer-headline-layout-bottom, 24px);
17
- gap:var(--space-drawer-headline-layout-gap, 8px);
18
- display:flex;
19
- flex-direction:column;
20
- }
21
-
22
- .headline{
23
- gap:var(--space-drawer-headline-layout-headline, 4px);
24
- display:flex;
25
- align-items:center;
26
- }
27
-
28
- .title{
29
- display:grid;
30
- color:var(--sys-neutral-text-main, #41424e);
31
- }
32
-
33
- .subtitle{
34
- color:var(--sys-neutral-text-support, #6d707f);
35
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes