@salutejs/plasma-new-hope 0.261.0-canary.1760.13180340956.0 → 0.261.0-canary.1762.13182430055.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Drawer/Drawer.css +5 -5
- package/cjs/components/Drawer/Drawer.js +1 -5
- package/cjs/components/Drawer/Drawer.js.map +1 -1
- package/cjs/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
- package/cjs/components/Panel/Panel.css +2 -2
- package/cjs/components/Panel/Panel.js +6 -7
- package/cjs/components/Panel/Panel.js.map +1 -1
- package/cjs/components/Panel/Panel.styles.js +2 -12
- package/cjs/components/Panel/Panel.styles.js.map +1 -1
- package/cjs/components/Panel/Panel.styles_2oh0yk.css +1 -0
- package/cjs/components/Panel/Panel.tokens.js +0 -15
- package/cjs/components/Panel/Panel.tokens.js.map +1 -1
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
- package/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/{es/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css → cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css} +1 -1
- package/cjs/components/Panel/variations/_view/base.js +1 -1
- package/cjs/components/Panel/variations/_view/base.js.map +1 -1
- package/cjs/components/Panel/variations/_view/base_10gjs6e.css +1 -0
- package/cjs/index.css +5 -5
- package/emotion/cjs/components/Checkbox/Checkbox.template-doc.mdx +4 -0
- package/emotion/cjs/components/Drawer/Drawer.js +1 -5
- package/emotion/cjs/components/Panel/Panel.js +6 -7
- package/emotion/cjs/components/Panel/Panel.styles.js +1 -4
- package/emotion/cjs/components/Panel/Panel.tokens.js +1 -6
- package/emotion/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +4 -4
- package/emotion/cjs/components/Panel/variations/_view/base.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +19 -12
- package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
- package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
- package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +19 -12
- package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
- package/emotion/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
- package/emotion/es/components/Checkbox/Checkbox.template-doc.mdx +4 -0
- package/emotion/es/components/Drawer/Drawer.js +1 -5
- package/emotion/es/components/Panel/Panel.js +7 -8
- package/emotion/es/components/Panel/Panel.styles.js +1 -4
- package/emotion/es/components/Panel/Panel.tokens.js +0 -5
- package/emotion/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +5 -5
- package/emotion/es/components/Panel/variations/_view/base.js +2 -2
- package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +19 -12
- package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
- package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
- package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +19 -12
- package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
- package/emotion/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
- package/es/components/Drawer/Drawer.css +5 -5
- package/es/components/Drawer/Drawer.js +1 -5
- package/es/components/Drawer/Drawer.js.map +1 -1
- package/es/components/Drawer/ui/DrawerContent/DrawerContent.css +5 -5
- package/es/components/Panel/Panel.css +2 -2
- package/es/components/Panel/Panel.js +8 -9
- package/es/components/Panel/Panel.js.map +1 -1
- package/es/components/Panel/Panel.styles.js +2 -12
- package/es/components/Panel/Panel.styles.js.map +1 -1
- package/es/components/Panel/Panel.styles_2oh0yk.css +1 -0
- package/es/components/Panel/Panel.tokens.js +1 -14
- package/es/components/Panel/Panel.tokens.js.map +1 -1
- package/es/components/Panel/ui/PanelHeader/PanelHeader.css +3 -3
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +9 -9
- package/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js.map +1 -1
- package/{cjs/components/Panel/ui/PanelHeader/PanelHeader.styles_16qje7n.css → es/components/Panel/ui/PanelHeader/PanelHeader.styles_8c7krd.css} +1 -1
- package/es/components/Panel/variations/_view/base.js +1 -1
- package/es/components/Panel/variations/_view/base.js.map +1 -1
- package/es/components/Panel/variations/_view/base_10gjs6e.css +1 -0
- package/es/index.css +5 -5
- package/package.json +2 -2
- package/styled-components/cjs/components/Checkbox/Checkbox.template-doc.mdx +4 -0
- package/styled-components/cjs/components/Drawer/Drawer.js +1 -5
- package/styled-components/cjs/components/Panel/Panel.js +6 -7
- package/styled-components/cjs/components/Panel/Panel.styles.js +1 -4
- package/styled-components/cjs/components/Panel/Panel.tokens.js +1 -6
- package/styled-components/cjs/components/Panel/ui/PanelHeader/PanelHeader.styles.js +1 -1
- package/styled-components/cjs/components/Panel/variations/_view/base.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +8 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
- package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
- package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.config.js +8 -1
- package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
- package/styled-components/cjs/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
- package/styled-components/es/components/Checkbox/Checkbox.template-doc.mdx +4 -0
- package/styled-components/es/components/Drawer/Drawer.js +1 -5
- package/styled-components/es/components/Panel/Panel.js +7 -8
- package/styled-components/es/components/Panel/Panel.styles.js +1 -4
- package/styled-components/es/components/Panel/Panel.tokens.js +0 -5
- package/styled-components/es/components/Panel/ui/PanelHeader/PanelHeader.styles.js +2 -2
- package/styled-components/es/components/Panel/variations/_view/base.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.config.js +8 -1
- package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -11
- package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +0 -10
- package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.config.js +8 -1
- package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +15 -5
- package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +0 -10
- package/styled-components/es/examples/plasma_web/components/Dropzone/Dropzone.stories.tsx +1 -1
- package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +0 -10
- package/types/components/Drawer/Drawer.d.ts +0 -4
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.types.d.ts +0 -8
- package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
- package/types/components/Panel/Panel.d.ts.map +1 -1
- package/types/components/Panel/Panel.styles.d.ts +1 -3
- package/types/components/Panel/Panel.styles.d.ts.map +1 -1
- package/types/components/Panel/Panel.tokens.d.ts +0 -5
- package/types/components/Panel/Panel.tokens.d.ts.map +1 -1
- package/types/components/Panel/Panel.types.d.ts +0 -8
- package/types/components/Panel/Panel.types.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Avatar/Avatar.d.ts +4 -4
- package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Checkbox/Checkbox.config.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Checkbox/Checkbox.d.ts +1 -1
- package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts +0 -2
- package/types/examples/plasma_b2c/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Avatar/Avatar.d.ts +4 -4
- package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts +1 -1
- package/types/examples/plasma_web/components/Checkbox/Checkbox.config.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Checkbox/Checkbox.d.ts +1 -1
- package/types/examples/plasma_web/components/Drawer/Drawer.d.ts +0 -2
- package/types/examples/plasma_web/components/Drawer/Drawer.d.ts.map +1 -1
- package/cjs/components/Panel/Panel.styles_1g0gq8z.css +0 -1
- package/cjs/components/Panel/variations/_view/base_lwq4bq.css +0 -1
- package/es/components/Panel/Panel.styles_1g0gq8z.css +0 -1
- package/es/components/Panel/variations/_view/base_lwq4bq.css +0 -1
@@ -3,12 +3,9 @@ import type { ComponentProps } from 'react';
|
|
3
3
|
import type { StoryObj, Meta } from '@storybook/react';
|
4
4
|
import { action } from '@storybook/addon-actions';
|
5
5
|
|
6
|
-
import {
|
7
|
-
import { mergeConfig } from '../../../../engines';
|
8
|
-
import { WithTheme, argTypesFromConfig } from '../../../_helpers';
|
6
|
+
import { WithTheme } from '../../../_helpers';
|
9
7
|
import { Link } from '../Link/Link';
|
10
8
|
|
11
|
-
import { config } from './Checkbox.config';
|
12
9
|
import { Checkbox } from './Checkbox';
|
13
10
|
|
14
11
|
const onChange = action('onChange');
|
@@ -19,7 +16,20 @@ const meta: Meta<typeof Checkbox> = {
|
|
19
16
|
title: 'web/Data Entry/Checkbox',
|
20
17
|
decorators: [WithTheme],
|
21
18
|
component: Checkbox,
|
22
|
-
argTypes:
|
19
|
+
argTypes: {
|
20
|
+
view: {
|
21
|
+
options: ['accent'],
|
22
|
+
control: {
|
23
|
+
type: 'radio',
|
24
|
+
},
|
25
|
+
},
|
26
|
+
size: {
|
27
|
+
options: ['m', 's'],
|
28
|
+
control: {
|
29
|
+
type: 'radio',
|
30
|
+
},
|
31
|
+
},
|
32
|
+
},
|
23
33
|
args: {
|
24
34
|
view: 'accent',
|
25
35
|
size: 'm',
|
@@ -16,7 +16,7 @@ const onChoseFiles = action('onChoseFiles');
|
|
16
16
|
const iconPlacements = ['top', 'left'];
|
17
17
|
|
18
18
|
const meta: Meta<typeof Dropzone> = {
|
19
|
-
title: '
|
19
|
+
title: 'plasma_web/Dropzone',
|
20
20
|
component: Dropzone,
|
21
21
|
decorators: [WithTheme],
|
22
22
|
argTypes: {
|
@@ -47,16 +47,6 @@ export default {
|
|
47
47
|
},
|
48
48
|
table: { defaultValue: { summary: 'right' } },
|
49
49
|
},
|
50
|
-
customBackgroundColor: {
|
51
|
-
control: {
|
52
|
-
type: 'color',
|
53
|
-
},
|
54
|
-
},
|
55
|
-
customContentBackgroundColor: {
|
56
|
-
control: {
|
57
|
-
type: 'color',
|
58
|
-
},
|
59
|
-
},
|
60
50
|
},
|
61
51
|
} as Meta;
|
62
52
|
|
@@ -11,13 +11,13 @@
|
|
11
11
|
|
12
12
|
.base_ydejlv_b175yas1__99ab42b5{--plasma-panel-border-radius:var(--plasma-drawer-border-radius);}
|
13
13
|
|
14
|
-
.
|
14
|
+
.base_10gjs6e_b11yryf5__c70de98c{background:var(--plasma-panel-background);box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|
15
15
|
|
16
16
|
.base_t42kp6_b68f6vo__04aa8af1{padding:var(--plasma-panel-padding);height:var(--plasma_private-panel-height);width:var(--plasma_private-panel-width);}
|
17
17
|
|
18
18
|
.base_2yf5jv_b1xkcksz__e72487ad{border-radius:var(--plasma-panel-border-radius);}
|
19
19
|
|
20
|
-
.
|
20
|
+
.Panel_styles_2oh0yk_siaxu13__4b38fa73{background:var(--plasma-panel-content-background-color);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
21
21
|
|
22
22
|
.base_1wckm5d_b1mvcfe5__595610ae{overflow-y:scroll;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding-right:20px;box-sizing:border-box;}.base_1wckm5d_b1mvcfe5__595610ae::-webkit-scrollbar{display:none;}
|
23
23
|
|
@@ -51,9 +51,9 @@
|
|
51
51
|
.Button_styles_8cvmld_s1rjh7ra__4694a0fa{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);margin:var(--s1rjh7ra-0);}
|
52
52
|
.Button_styles_8cvmld_b9ga1dj__4694a0fa{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_8cvmld_b9ga1dj__4694a0fa{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_buttonSquare__4694a0fa{width:var(--plasma-button-height);padding:0;}
|
53
53
|
|
54
|
-
.
|
55
|
-
.
|
56
|
-
.
|
54
|
+
.PanelHeader_styles_8c7krd_b5xb1jq__8864a0a4{background:var(--plasma-panel-background);-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
55
|
+
.PanelHeader_styles_8c7krd_s1hqmxl1__8864a0a4{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
56
|
+
.PanelHeader_styles_8c7krd_c7hx8go__8864a0a4{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
57
57
|
|
58
58
|
.base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
|
59
59
|
|
@@ -15,7 +15,7 @@ import { useDrawer } from './hooks/useDrawer.js';
|
|
15
15
|
import { Overlay } from '../Overlay/Overlay.js';
|
16
16
|
import { getSizeValueFromProp } from '../../utils/getSizeValueFromProp.js';
|
17
17
|
|
18
|
-
var _excluded = ["id", "zIndex", "popupInfo", "withBlur", "children", "view", "size", "width", "height", "isOpen", "opened", "initialFocusRef", "focusAfterRef", "className", "
|
18
|
+
var _excluded = ["id", "zIndex", "popupInfo", "withBlur", "children", "view", "size", "width", "height", "isOpen", "opened", "initialFocusRef", "focusAfterRef", "className", "onClose", "onOverlayClick", "onEscKeyDown", "offset", "frame", "borderRadius", "placement", "closeOnEsc", "closeOnOverlayClick", "asModal"];
|
19
19
|
|
20
20
|
// issue #823
|
21
21
|
|
@@ -35,8 +35,6 @@ var drawerRoot = function drawerRoot(Root) {
|
|
35
35
|
initialFocusRef = _ref.initialFocusRef,
|
36
36
|
focusAfterRef = _ref.focusAfterRef,
|
37
37
|
className = _ref.className,
|
38
|
-
customBackgroundColor = _ref.customBackgroundColor,
|
39
|
-
customContentBackgroundColor = _ref.customContentBackgroundColor,
|
40
38
|
onClose = _ref.onClose,
|
41
39
|
onOverlayClick = _ref.onOverlayClick,
|
42
40
|
onEscKeyDown = _ref.onEscKeyDown,
|
@@ -120,8 +118,6 @@ var drawerRoot = function drawerRoot(Root) {
|
|
120
118
|
}, /*#__PURE__*/React.createElement(StyledPanel, {
|
121
119
|
width: innerWidth,
|
122
120
|
height: innerHeight,
|
123
|
-
customBackgroundColor: customBackgroundColor,
|
124
|
-
customContentBackgroundColor: customContentBackgroundColor,
|
125
121
|
className: className
|
126
122
|
}, children)));
|
127
123
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Drawer.js","sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { useForkRef, safeUseId } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines';\nimport { usePopupContext } from '../Popup';\nimport { Overlay } from '../Overlay';\nimport { DEFAULT_Z_INDEX } from '../Popup/utils';\nimport { cx, getSizeValueFromProp } from '../../utils';\nimport { useFocusTrap } from '../../hooks';\n\nimport { classes, tokens } from './Drawer.tokens';\nimport type { DrawerProps } from './Drawer.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport { StyledPopup, StyledPanel } from './Drawer.styles';\nimport { getIdLastDrawer } from './DrawerContext';\nimport { useDrawer } from './hooks';\n\n// issue #823\n\nexport const drawerRoot = (Root: RootProps<HTMLDivElement, DrawerProps>) =>\n forwardRef<HTMLDivElement, DrawerProps>(\n (\n {\n id,\n zIndex,\n popupInfo,\n withBlur,\n children,\n view,\n size,\n width,\n height,\n isOpen,\n opened,\n initialFocusRef,\n focusAfterRef,\n className,\n customBackgroundColor,\n customContentBackgroundColor,\n onClose,\n onOverlayClick,\n onEscKeyDown,\n offset,\n frame,\n borderRadius = 'none',\n placement = 'right',\n closeOnEsc = true,\n closeOnOverlayClick = true,\n asModal = true,\n ...rest\n },\n outerRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const trapRef = useFocusTrap(true, initialFocusRef, focusAfterRef);\n const popupController = usePopupContext();\n\n const innerRef = useForkRef<HTMLDivElement>(trapRef, outerRef);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const overlayBackgroundToken = withBlur\n ? `var(${tokens.drawerOverlayWithBlurColor})`\n : `var(${tokens.drawerOverlayColor})`;\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n const innerHeight = height ? getSizeValueFromProp(height) : '100%';\n\n const placementClass = placement ? classes[`${placement}Placement` as keyof typeof classes] : undefined;\n\n const { drawerInfo } = useDrawer({\n id: innerId,\n isOpen: innerIsOpen,\n closeOnEsc,\n onEscKeyDown,\n onClose,\n popupInfo,\n disableScroll: asModal,\n });\n const transparent = useMemo(() => getIdLastDrawer(popupController.items) !== innerId, [\n innerId,\n popupController.items,\n ]);\n\n const onDrawerOverlayKeyDown = (event: React.MouseEvent<HTMLDivElement>) => {\n if (onOverlayClick) {\n onOverlayClick(event);\n return;\n }\n\n if (onClose) {\n onClose();\n }\n };\n\n return (\n <StyledPopup\n id={innerId}\n ref={asModal ? innerRef : outerRef}\n className={cx(placementClass)}\n opened={innerIsOpen}\n zIndex={zIndex}\n placement={placement}\n popupInfo={drawerInfo}\n frame={frame}\n width={innerWidth}\n height={innerHeight}\n offset={offset}\n withAnimation\n overlay={\n asModal && (\n <Root view={view}>\n <Overlay\n className={classes.overlay}\n zIndex={zIndex || DEFAULT_Z_INDEX}\n backgroundColorProperty={overlayBackgroundToken}\n withBlur={withBlur}\n transparent={transparent}\n isClickable={closeOnOverlayClick}\n onOverlayClick={onDrawerOverlayKeyDown}\n />\n </Root>\n )\n }\n {...rest}\n >\n <Root\n view={view}\n size={size}\n style={{ width: innerWidth, height: innerHeight }}\n borderRadius={borderRadius}\n >\n <StyledPanel\n width={innerWidth}\n height={innerHeight}\n customBackgroundColor={customBackgroundColor}\n customContentBackgroundColor={customContentBackgroundColor}\n className={className}\n >\n {children}\n </StyledPanel>\n </Root>\n </StyledPopup>\n );\n },\n );\n\nexport const drawerConfig = {\n name: 'Drawer',\n tag: 'div',\n layout: drawerRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n borderRadius: {\n css: borderRadiusCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n borderRadius: 'none',\n },\n};\n"],"names":["drawerRoot","Root","forwardRef","_ref","outerRef","id","zIndex","popupInfo","withBlur","children","view","size","width","height","isOpen","opened","initialFocusRef","focusAfterRef","className","customBackgroundColor","customContentBackgroundColor","onClose","onOverlayClick","onEscKeyDown","offset","frame","_ref$borderRadius","borderRadius","_ref$placement","placement","_ref$closeOnEsc","closeOnEsc","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$asModal","asModal","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","trapRef","useFocusTrap","popupController","usePopupContext","innerRef","useForkRef","uniqId","safeUseId","innerId","overlayBackgroundToken","concat","tokens","drawerOverlayWithBlurColor","drawerOverlayColor","innerWidth","getSizeValueFromProp","innerHeight","placementClass","classes","undefined","_useDrawer","useDrawer","disableScroll","drawerInfo","transparent","useMemo","getIdLastDrawer","items","onDrawerOverlayKeyDown","event","React","createElement","StyledPopup","_extends","ref","cx","withAnimation","overlay","Overlay","DEFAULT_Z_INDEX","backgroundColorProperty","isClickable","style","StyledPanel","drawerConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","borderRadiusCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA;;IAEaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA4C,EAAA;AAAA,EAAA,oBACnEC,UAAU,CACN,UAAAC,IAAA,EA8BIC,QAAQ,EACP;AAAA,IAAA,IA7BGC,EAAE,GAAAF,IAAA,CAAFE,EAAE;MACFC,MAAM,GAAAH,IAAA,CAANG,MAAM;MACNC,SAAS,GAAAJ,IAAA,CAATI,SAAS;MACTC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MACRC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;MACRC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;MACJC,KAAK,GAAAT,IAAA,CAALS,KAAK;MACLC,MAAM,GAAAV,IAAA,CAANU,MAAM;MACNC,MAAM,GAAAX,IAAA,CAANW,MAAM;MACNC,MAAM,GAAAZ,IAAA,CAANY,MAAM;MACNC,eAAe,GAAAb,IAAA,CAAfa,eAAe;MACfC,aAAa,GAAAd,IAAA,CAAbc,aAAa;MACbC,SAAS,GAAAf,IAAA,CAATe,SAAS;MACTC,qBAAqB,GAAAhB,IAAA,CAArBgB,qBAAqB;MACrBC,4BAA4B,GAAAjB,IAAA,CAA5BiB,4BAA4B;MAC5BC,OAAO,GAAAlB,IAAA,CAAPkB,OAAO;MACPC,cAAc,GAAAnB,IAAA,CAAd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AE2C,UAAU;AAAE1C,QAAAA,MAAM,EAAE4C,WAAAA;OAAc;AAClD9B,MAAAA,YAAY,EAAEA,YAAAA;AAAa,KAAA,eAE3B4C,KAAA,CAAAC,aAAA,CAACY,WAAW,EAAA;AACRxE,MAAAA,KAAK,EAAE2C,UAAW;AAClB1C,MAAAA,MAAM,EAAE4C,WAAY;AACpBtC,MAAAA,qBAAqB,EAAEA,qBAAsB;AAC7CC,MAAAA,4BAA4B,EAAEA,4BAA6B;AAC3DF,MAAAA,SAAS,EAAEA,SAAAA;KAEVT,EAAAA,QACQ,CACX,CACG,CAAC,CAAA;AAEtB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM4E,YAAY,GAAG;AACxBC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAExF,UAAU;AAClByF,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACRhF,IAAAA,IAAI,EAAE;AACFiF,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACDjF,IAAAA,IAAI,EAAE;AACFgF,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDlE,IAAAA,YAAY,EAAE;AACVgE,MAAAA,GAAG,EAAEG,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNrF,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTgB,IAAAA,YAAY,EAAE,MAAA;AAClB,GAAA;AACJ;;;;"}
|
1
|
+
{"version":3,"file":"Drawer.js","sources":["../../../src/components/Drawer/Drawer.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport { useForkRef, safeUseId } from '@salutejs/plasma-core';\n\nimport type { RootProps } from '../../engines';\nimport { usePopupContext } from '../Popup';\nimport { Overlay } from '../Overlay';\nimport { DEFAULT_Z_INDEX } from '../Popup/utils';\nimport { cx, getSizeValueFromProp } from '../../utils';\nimport { useFocusTrap } from '../../hooks';\n\nimport { classes, tokens } from './Drawer.tokens';\nimport type { DrawerProps } from './Drawer.types';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport { StyledPopup, StyledPanel } from './Drawer.styles';\nimport { getIdLastDrawer } from './DrawerContext';\nimport { useDrawer } from './hooks';\n\n// issue #823\n\nexport const drawerRoot = (Root: RootProps<HTMLDivElement, DrawerProps>) =>\n forwardRef<HTMLDivElement, DrawerProps>(\n (\n {\n id,\n zIndex,\n popupInfo,\n withBlur,\n children,\n view,\n size,\n width,\n height,\n isOpen,\n opened,\n initialFocusRef,\n focusAfterRef,\n className,\n onClose,\n onOverlayClick,\n onEscKeyDown,\n offset,\n frame,\n borderRadius = 'none',\n placement = 'right',\n closeOnEsc = true,\n closeOnOverlayClick = true,\n asModal = true,\n ...rest\n },\n outerRef,\n ) => {\n const innerIsOpen = Boolean(isOpen || opened);\n\n const trapRef = useFocusTrap(true, initialFocusRef, focusAfterRef);\n const popupController = usePopupContext();\n\n const innerRef = useForkRef<HTMLDivElement>(trapRef, outerRef);\n\n const uniqId = safeUseId();\n const innerId = id || uniqId;\n const overlayBackgroundToken = withBlur\n ? `var(${tokens.drawerOverlayWithBlurColor})`\n : `var(${tokens.drawerOverlayColor})`;\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n const innerHeight = height ? getSizeValueFromProp(height) : '100%';\n\n const placementClass = placement ? classes[`${placement}Placement` as keyof typeof classes] : undefined;\n\n const { drawerInfo } = useDrawer({\n id: innerId,\n isOpen: innerIsOpen,\n closeOnEsc,\n onEscKeyDown,\n onClose,\n popupInfo,\n disableScroll: asModal,\n });\n const transparent = useMemo(() => getIdLastDrawer(popupController.items) !== innerId, [\n innerId,\n popupController.items,\n ]);\n\n const onDrawerOverlayKeyDown = (event: React.MouseEvent<HTMLDivElement>) => {\n if (onOverlayClick) {\n onOverlayClick(event);\n return;\n }\n\n if (onClose) {\n onClose();\n }\n };\n\n return (\n <StyledPopup\n id={innerId}\n ref={asModal ? innerRef : outerRef}\n className={cx(placementClass)}\n opened={innerIsOpen}\n zIndex={zIndex}\n placement={placement}\n popupInfo={drawerInfo}\n frame={frame}\n width={innerWidth}\n height={innerHeight}\n offset={offset}\n withAnimation\n overlay={\n asModal && (\n <Root view={view}>\n <Overlay\n className={classes.overlay}\n zIndex={zIndex || DEFAULT_Z_INDEX}\n backgroundColorProperty={overlayBackgroundToken}\n withBlur={withBlur}\n transparent={transparent}\n isClickable={closeOnOverlayClick}\n onOverlayClick={onDrawerOverlayKeyDown}\n />\n </Root>\n )\n }\n {...rest}\n >\n <Root\n view={view}\n size={size}\n style={{ width: innerWidth, height: innerHeight }}\n borderRadius={borderRadius}\n >\n <StyledPanel width={innerWidth} height={innerHeight} className={className}>\n {children}\n </StyledPanel>\n </Root>\n </StyledPopup>\n );\n },\n );\n\nexport const drawerConfig = {\n name: 'Drawer',\n tag: 'div',\n layout: drawerRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n borderRadius: {\n css: borderRadiusCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n borderRadius: 'none',\n },\n};\n"],"names":["drawerRoot","Root","forwardRef","_ref","outerRef","id","zIndex","popupInfo","withBlur","children","view","size","width","height","isOpen","opened","initialFocusRef","focusAfterRef","className","onClose","onOverlayClick","onEscKeyDown","offset","frame","_ref$borderRadius","borderRadius","_ref$placement","placement","_ref$closeOnEsc","closeOnEsc","_ref$closeOnOverlayCl","closeOnOverlayClick","_ref$asModal","asModal","rest","_objectWithoutProperties","_excluded","innerIsOpen","Boolean","trapRef","useFocusTrap","popupController","usePopupContext","innerRef","useForkRef","uniqId","safeUseId","innerId","overlayBackgroundToken","concat","tokens","drawerOverlayWithBlurColor","drawerOverlayColor","innerWidth","getSizeValueFromProp","innerHeight","placementClass","classes","undefined","_useDrawer","useDrawer","disableScroll","drawerInfo","transparent","useMemo","getIdLastDrawer","items","onDrawerOverlayKeyDown","event","React","createElement","StyledPopup","_extends","ref","cx","withAnimation","overlay","Overlay","DEFAULT_Z_INDEX","backgroundColorProperty","isClickable","style","StyledPanel","drawerConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","borderRadiusCSS","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA;;IAEaA,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAA4C,EAAA;AAAA,EAAA,oBACnEC,UAAU,CACN,UAAAC,IAAA,EA4BIC,QAAQ,EACP;AAAA,IAAA,IA3BGC,EAAE,GAAAF,IAAA,CAAFE,EAAE;MACFC,MAAM,GAAAH,IAAA,CAANG,MAAM;MACNC,SAAS,GAAAJ,IAAA,CAATI,SAAS;MACTC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MACRC,QAAQ,GAAAN,IAAA,CAARM,QAAQ;MACRC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;MACJC,KAAK,GAAAT,IAAA,CAALS,KAAK;MACLC,MAAM,GAAAV,IAAA,CAANU,MAAM;MACNC,MAAM,GAAAX,IAAA,CAANW,MAAM;MACNC,MAAM,GAAAZ,IAAA,CAANY,MAAM;MACNC,eAAe,GAAAb,IAAA,CAAfa,eAAe;MACfC,aAAa,GAAAd,IAAA,CAAbc,aAAa;MACbC,SAAS,GAAAf,IAAA,CAATe,SAAS;MACTC,OAAO,GAAAhB,IAAA,CAAPgB,OAAO;MACPC,cAAc,GAAAjB,IAAA,CAAdiB,cAAc;MACdC,YAAY,GAAAlB,IAAA,CAAZkB,YAAY;MACZC,MAAM,GAAAnB,IAAA,CAANmB,MAAM;MACNC,KAAK,GAAApB,IAAA,CAALoB,KAAK;MAAAC,iBAAA,GAAArB,IAAA,CACLsB,YAAY;AAAZA,MAAAA,YAAY,GAAAD,iBAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,iBAAA;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AA;KAC3DT,EAAAA,QACQ,CACX,CACG,CAAC,CAAA;AAEtB,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAM0E,YAAY,GAAG;AACxBC,EAAAA,IAAI,EAAE,QAAQ;AACdC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEtF,UAAU;AAClBuF,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR9E,IAAAA,IAAI,EAAE;AACF+E,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD/E,IAAAA,IAAI,EAAE;AACF8E,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDlE,IAAAA,YAAY,EAAE;AACVgE,MAAAA,GAAG,EAAEG,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNnF,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTc,IAAAA,YAAY,EAAE,MAAA;AAClB,GAAA;AACJ;;;;"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
.
|
1
|
+
.base_10gjs6e_b11yryf5__c70de98c{background:var(--plasma-panel-background);box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|
2
2
|
|
3
3
|
.base_t42kp6_b68f6vo__04aa8af1{padding:var(--plasma-panel-padding);height:var(--plasma_private-panel-height);width:var(--plasma_private-panel-width);}
|
4
4
|
|
5
5
|
.base_2yf5jv_b1xkcksz__e72487ad{border-radius:var(--plasma-panel-border-radius);}
|
6
6
|
|
7
|
-
.
|
7
|
+
.Panel_styles_2oh0yk_siaxu13__4b38fa73{background:var(--plasma-panel-content-background-color);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
8
8
|
|
9
9
|
.base_1wckm5d_b1mvcfe5__595610ae{overflow-y:scroll;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding-right:20px;box-sizing:border-box;}.base_1wckm5d_b1mvcfe5__595610ae::-webkit-scrollbar{display:none;}
|
10
10
|
|
@@ -38,8 +38,8 @@
|
|
38
38
|
.Button_styles_8cvmld_s1rjh7ra__4694a0fa{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);margin:var(--s1rjh7ra-0);}
|
39
39
|
.Button_styles_8cvmld_b9ga1dj__4694a0fa{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_8cvmld_b9ga1dj__4694a0fa{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_buttonSquare__4694a0fa{width:var(--plasma-button-height);padding:0;}
|
40
40
|
|
41
|
-
.
|
42
|
-
.
|
43
|
-
.
|
41
|
+
.PanelHeader_styles_8c7krd_b5xb1jq__8864a0a4{background:var(--plasma-panel-background);-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
42
|
+
.PanelHeader_styles_8c7krd_s1hqmxl1__8864a0a4{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
43
|
+
.PanelHeader_styles_8c7krd_c7hx8go__8864a0a4{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
44
44
|
|
45
45
|
.base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
.
|
1
|
+
.base_10gjs6e_b11yryf5__c70de98c{background:var(--plasma-panel-background);box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|
2
2
|
|
3
3
|
.base_t42kp6_b68f6vo__04aa8af1{padding:var(--plasma-panel-padding);height:var(--plasma_private-panel-height);width:var(--plasma_private-panel-width);}
|
4
4
|
|
5
5
|
.base_2yf5jv_b1xkcksz__e72487ad{border-radius:var(--plasma-panel-border-radius);}
|
6
6
|
|
7
|
-
.
|
7
|
+
.Panel_styles_2oh0yk_siaxu13__4b38fa73{background:var(--plasma-panel-content-background-color);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2
|
1
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
2
2
|
import React, { forwardRef } from 'react';
|
3
3
|
import { cx } from '../../utils/index.js';
|
4
4
|
import { base } from './variations/_view/base.js';
|
5
5
|
import { base as base$1 } from './variations/_size/base.js';
|
6
6
|
import { base as base$2 } from './variations/_borderRadius/base.js';
|
7
|
-
import { classes
|
7
|
+
import { classes } from './Panel.tokens.js';
|
8
8
|
import { StyledWrapper } from './Panel.styles.js';
|
9
9
|
import { getSizeValueFromProp } from '../../utils/getSizeValueFromProp.js';
|
10
10
|
|
11
|
-
var _excluded = ["children", "view", "size", "width", "height", "
|
11
|
+
var _excluded = ["children", "view", "size", "width", "height", "className", "style"];
|
12
12
|
var panelRoot = function panelRoot(Root) {
|
13
13
|
return /*#__PURE__*/forwardRef(function (_ref, outerRef) {
|
14
14
|
var children = _ref.children,
|
@@ -16,8 +16,6 @@ var panelRoot = function panelRoot(Root) {
|
|
16
16
|
size = _ref.size,
|
17
17
|
width = _ref.width,
|
18
18
|
height = _ref.height,
|
19
|
-
customBackgroundColor = _ref.customBackgroundColor,
|
20
|
-
customContentBackgroundColor = _ref.customContentBackgroundColor,
|
21
19
|
className = _ref.className,
|
22
20
|
style = _ref.style,
|
23
21
|
rest = _objectWithoutProperties(_ref, _excluded);
|
@@ -28,10 +26,11 @@ var panelRoot = function panelRoot(Root) {
|
|
28
26
|
view: view,
|
29
27
|
size: size,
|
30
28
|
className: cx(classes.root, className),
|
31
|
-
style: _objectSpread2(_objectSpread2({}, style), {},
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
style: _objectSpread2(_objectSpread2({}, style), {}, {
|
30
|
+
'--plasma_private-panel-width': innerWidth,
|
31
|
+
'--plasma_private-panel-height': innerHeight
|
32
|
+
})
|
33
|
+
}, rest), /*#__PURE__*/React.createElement(StyledWrapper, null, children));
|
35
34
|
});
|
36
35
|
};
|
37
36
|
var panelConfig = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Panel.js","sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { CSSProperties } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx, getSizeValueFromProp } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport type { PanelProps } from './Panel.types';\nimport { classes
|
1
|
+
{"version":3,"file":"Panel.js","sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\nimport type { CSSProperties } from 'react';\n\nimport type { RootProps } from '../../engines';\nimport { cx, getSizeValueFromProp } from '../../utils';\n\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as borderRadiusCSS } from './variations/_borderRadius/base';\nimport type { PanelProps } from './Panel.types';\nimport { classes } from './Panel.tokens';\nimport { StyledWrapper } from './Panel.styles';\n\nexport const panelRoot = (Root: RootProps<HTMLDivElement, PanelProps>) =>\n forwardRef<HTMLDivElement, PanelProps>(\n ({ children, view, size, width, height, className, style, ...rest }, outerRef) => {\n const innerWidth = width ? getSizeValueFromProp(width) : '100%';\n const innerHeight = height ? getSizeValueFromProp(height) : '100%';\n\n return (\n <Root\n ref={outerRef}\n view={view}\n size={size}\n className={cx(classes.root, className)}\n style={\n {\n ...style,\n '--plasma_private-panel-width': innerWidth,\n '--plasma_private-panel-height': innerHeight,\n } as CSSProperties\n }\n {...rest}\n >\n <StyledWrapper>{children}</StyledWrapper>\n </Root>\n );\n },\n );\n\nexport const panelConfig = {\n name: 'Panel',\n tag: 'div',\n layout: panelRoot,\n base: '',\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n borderRadius: {\n css: borderRadiusCSS,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n borderRadius: 'none',\n },\n};\n"],"names":["panelRoot","Root","forwardRef","_ref","outerRef","children","view","size","width","height","className","style","rest","_objectWithoutProperties","_excluded","innerWidth","getSizeValueFromProp","innerHeight","React","createElement","_extends","ref","cx","classes","root","_objectSpread","StyledWrapper","panelConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","borderRadius","borderRadiusCSS","defaults"],"mappings":";;;;;;;;;;;IAaaA,SAAS,GAAG,SAAZA,SAASA,CAAIC,IAA2C,EAAA;AAAA,EAAA,oBACjEC,UAAU,CACN,UAAAC,IAAA,EAAqEC,QAAQ,EAAK;AAAA,IAAA,IAA/EC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;MAAEC,IAAI,GAAAH,IAAA,CAAJG,IAAI;MAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;MAAEC,KAAK,GAAAL,IAAA,CAALK,KAAK;MAAEC,MAAM,GAAAN,IAAA,CAANM,MAAM;MAAEC,SAAS,GAAAP,IAAA,CAATO,SAAS;MAAEC,KAAK,GAAAR,IAAA,CAALQ,KAAK;AAAKC,MAAAA,IAAI,GAAAC,wBAAA,CAAAV,IAAA,EAAAW,SAAA,CAAA,CAAA;IAC7D,IAAMC,UAAU,GAAGP,KAAK,GAAGQ,oBAAoB,CAACR,KAAK,CAAC,GAAG,MAAM,CAAA;IAC/D,IAAMS,WAAW,GAAGR,MAAM,GAAGO,oBAAoB,CAACP,MAAM,CAAC,GAAG,MAAM,CAAA;AAElE,IAAA,oBACIS,KAAA,CAAAC,aAAA,CAAClB,IAAI,EAAAmB,QAAA,CAAA;AACDC,MAAAA,GAAG,EAAEjB,QAAS;AACdE,MAAAA,IAAI,EAAEA,IAAK;AACXC,MAAAA,IAAI,EAAEA,IAAK;MACXG,SAAS,EAAEY,EAAE,CAACC,OAAO,CAACC,IAAI,EAAEd,SAAS,CAAE;AACvCC,MAAAA,KAAK,EAAAc,cAAA,CAAAA,cAAA,KAEMd,KAAK,CAAA,EAAA,EAAA,EAAA;AACR,QAAA,8BAA8B,EAAEI,UAAU;AAC1C,QAAA,+BAA+B,EAAEE,WAAAA;AAAW,OAAA,CAAA;KAGhDL,EAAAA,IAAI,CAERM,eAAAA,KAAA,CAAAC,aAAA,CAACO,aAAa,EAAA,IAAA,EAAErB,QAAwB,CACtC,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMsB,WAAW,GAAG;AACvBC,EAAAA,IAAI,EAAE,OAAO;AACbC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE9B,SAAS;AACjB+B,EAAAA,IAAI,EAAE,EAAE;AACRC,EAAAA,UAAU,EAAE;AACR1B,IAAAA,IAAI,EAAE;AACF2B,MAAAA,GAAG,EAAEC,IAAAA;KACR;AACD3B,IAAAA,IAAI,EAAE;AACF0B,MAAAA,GAAG,EAAEE,MAAAA;KACR;AACDC,IAAAA,YAAY,EAAE;AACVH,MAAAA,GAAG,EAAEI,MAAAA;AACT,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACNhC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACT6B,IAAAA,YAAY,EAAE,MAAA;AAClB,GAAA;AACJ;;;;"}
|
@@ -1,20 +1,10 @@
|
|
1
|
-
import './Panel.
|
1
|
+
import './Panel.styles_2oh0yk.css';
|
2
2
|
import { styled } from '@linaria/react';
|
3
|
-
import { tokens } from './Panel.tokens.js';
|
4
3
|
|
5
|
-
var _exp = function _exp() {
|
6
|
-
return function (_ref) {
|
7
|
-
var customContentBackgroundColor = _ref.customContentBackgroundColor;
|
8
|
-
return customContentBackgroundColor || "var(".concat(tokens.contentBackgroundColor, ")");
|
9
|
-
};
|
10
|
-
};
|
11
4
|
var StyledWrapper = /*#__PURE__*/styled('div')({
|
12
5
|
name: "StyledWrapper",
|
13
6
|
"class": "siaxu13",
|
14
|
-
propsAsIs: false
|
15
|
-
vars: {
|
16
|
-
"siaxu13-0": [/*#__PURE__*/_exp()]
|
17
|
-
}
|
7
|
+
propsAsIs: false
|
18
8
|
});
|
19
9
|
|
20
10
|
export { StyledWrapper };
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Panel.styles.js","sources":["../../../src/components/Panel/Panel.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { tokens } from './Panel.tokens';\n\nexport const StyledWrapper = styled.div
|
1
|
+
{"version":3,"file":"Panel.styles.js","sources":["../../../src/components/Panel/Panel.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { tokens } from './Panel.tokens';\n\nexport const StyledWrapper = styled.div`\n background: var(${tokens.contentBackgroundColor});\n height: 100%;\n width: 100%;\n display: inline-flex;\n flex-direction: column;\n position: relative;\n`;\n"],"names":["StyledWrapper","styled","name","class","propsAsIs"],"mappings":";;AAIO,IAAMA,aAAa,gBAAGC,MAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,eAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAOlC;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
.siaxu13{background:var(--plasma-panel-content-background-color);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
@@ -6,19 +6,6 @@ var classes = {
|
|
6
6
|
hasHeader: 'panel-has-header',
|
7
7
|
isRightClose: 'panel-right-close-button'
|
8
8
|
};
|
9
|
-
var privateTokens = {
|
10
|
-
width: '--plasma_private-panel-width',
|
11
|
-
height: '--plasma_private-panel-height',
|
12
|
-
backgrounColor: '--plasma_private-panel-custom-background-color'
|
13
|
-
};
|
14
|
-
var tokens = {
|
15
|
-
background: '--plasma-panel-background',
|
16
|
-
shadow: '--plasma-panel-shadow',
|
17
|
-
contentBackgroundColor: '--plasma-panel-content-background-color',
|
18
|
-
padding: '--plasma-panel-padding',
|
19
|
-
borderRadius: '--plasma-panel-border-radius',
|
20
|
-
closeColor: '--plasma-panel-close-color'
|
21
|
-
};
|
22
9
|
|
23
|
-
export { classes
|
10
|
+
export { classes };
|
24
11
|
//# sourceMappingURL=Panel.tokens.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Panel.tokens.js","sources":["../../../src/components/Panel/Panel.tokens.ts"],"sourcesContent":["export const classes = {\n root: 'panel-root',\n content: 'panel-content',\n header: 'panel-header',\n footer: 'panel-footer',\n hasHeader: 'panel-has-header',\n isRightClose: 'panel-right-close-button',\n};\n\nexport const
|
1
|
+
{"version":3,"file":"Panel.tokens.js","sources":["../../../src/components/Panel/Panel.tokens.ts"],"sourcesContent":["export const classes = {\n root: 'panel-root',\n content: 'panel-content',\n header: 'panel-header',\n footer: 'panel-footer',\n hasHeader: 'panel-has-header',\n isRightClose: 'panel-right-close-button',\n};\n\nexport const tokens = {\n background: '--plasma-panel-background',\n shadow: '--plasma-panel-shadow',\n contentBackgroundColor: '--plasma-panel-content-background-color',\n padding: '--plasma-panel-padding',\n borderRadius: '--plasma-panel-border-radius',\n closeColor: '--plasma-panel-close-color',\n};\n"],"names":["classes","root","content","header","footer","hasHeader","isRightClose"],"mappings":"AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,IAAI,EAAE,YAAY;AAClBC,EAAAA,OAAO,EAAE,eAAe;AACxBC,EAAAA,MAAM,EAAE,cAAc;AACtBC,EAAAA,MAAM,EAAE,cAAc;AACtBC,EAAAA,SAAS,EAAE,kBAAkB;AAC7BC,EAAAA,YAAY,EAAE,0BAAA;AAClB;;;;"}
|
@@ -26,8 +26,8 @@
|
|
26
26
|
.Button_styles_8cvmld_s1rjh7ra__4694a0fa{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);margin:var(--s1rjh7ra-0);}
|
27
27
|
.Button_styles_8cvmld_b9ga1dj__4694a0fa{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_8cvmld_b9ga1dj__4694a0fa{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_b9ga1dj__4694a0fa.Button_styles_8cvmld_buttonSquare__4694a0fa{width:var(--plasma-button-height);padding:0;}
|
28
28
|
|
29
|
-
.
|
30
|
-
.
|
31
|
-
.
|
29
|
+
.PanelHeader_styles_8c7krd_b5xb1jq__8864a0a4{background:var(--plasma-panel-background);-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
30
|
+
.PanelHeader_styles_8c7krd_s1hqmxl1__8864a0a4{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
31
|
+
.PanelHeader_styles_8c7krd_c7hx8go__8864a0a4{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
32
32
|
|
33
33
|
.base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import './PanelHeader.
|
1
|
+
import './PanelHeader.styles_8c7krd.css';
|
2
2
|
import { styled } from '@linaria/react';
|
3
3
|
import { placements } from './PanelHeader.types.js';
|
4
4
|
import { component, mergeConfig } from '../../../../engines/common.js';
|
@@ -6,19 +6,19 @@ import { buttonConfig } from '../../../Button/Button.js';
|
|
6
6
|
|
7
7
|
var mergedButtonConfig = /*#__PURE__*/mergeConfig(buttonConfig);
|
8
8
|
var Button = /*#__PURE__*/component(mergedButtonConfig);
|
9
|
-
var
|
9
|
+
var _exp2 = function _exp2() {
|
10
10
|
return function (_ref) {
|
11
11
|
var placement = _ref.placement;
|
12
12
|
return placement === placements.left ? -1 : 0;
|
13
13
|
};
|
14
14
|
};
|
15
|
-
var
|
15
|
+
var _exp3 = function _exp3() {
|
16
16
|
return function (_ref2) {
|
17
17
|
var placement = _ref2.placement;
|
18
18
|
return !placement || placement === placements.right ? '0.5rem' : '';
|
19
19
|
};
|
20
20
|
};
|
21
|
-
var
|
21
|
+
var _exp4 = function _exp4() {
|
22
22
|
return function (_ref3) {
|
23
23
|
var placement = _ref3.placement;
|
24
24
|
return placement === placements.left ? '0.5rem' : '';
|
@@ -29,9 +29,9 @@ var ButtonWrapper = /*#__PURE__*/styled('div')({
|
|
29
29
|
"class": "b5xb1jq",
|
30
30
|
propsAsIs: false,
|
31
31
|
vars: {
|
32
|
-
"b5xb1jq-0": [/*#__PURE__*/
|
33
|
-
"b5xb1jq-1": [/*#__PURE__*/
|
34
|
-
"b5xb1jq-2": [/*#__PURE__*/
|
32
|
+
"b5xb1jq-0": [/*#__PURE__*/_exp2()],
|
33
|
+
"b5xb1jq-1": [/*#__PURE__*/_exp3()],
|
34
|
+
"b5xb1jq-2": [/*#__PURE__*/_exp4()]
|
35
35
|
}
|
36
36
|
});
|
37
37
|
var StyledHeader = /*#__PURE__*/styled('div')({
|
@@ -39,10 +39,10 @@ var StyledHeader = /*#__PURE__*/styled('div')({
|
|
39
39
|
"class": "s1hqmxl1",
|
40
40
|
propsAsIs: false
|
41
41
|
});
|
42
|
-
var
|
42
|
+
var _exp5 = function _exp5() {
|
43
43
|
return Button;
|
44
44
|
};
|
45
|
-
var CloseIconWrapper = /*#__PURE__*/styled(
|
45
|
+
var CloseIconWrapper = /*#__PURE__*/styled(_exp5())({
|
46
46
|
name: "CloseIconWrapper",
|
47
47
|
"class": "c7hx8go",
|
48
48
|
propsAsIs: true
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PanelHeader.styles.js","sources":["../../../../../src/components/Panel/ui/PanelHeader/PanelHeader.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { mergeConfig, component } from '../../../../engines';\nimport { buttonConfig } from '../../../Button';\nimport { tokens as buttonTokens } from '../../../Button/Button.tokens';\nimport {
|
1
|
+
{"version":3,"file":"PanelHeader.styles.js","sources":["../../../../../src/components/Panel/ui/PanelHeader/PanelHeader.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\n\nimport { mergeConfig, component } from '../../../../engines';\nimport { buttonConfig } from '../../../Button';\nimport { tokens as buttonTokens } from '../../../Button/Button.tokens';\nimport { tokens } from '../../Panel.tokens';\n\nimport { ClosePlacementType, placements } from './PanelHeader.types';\n\nconst mergedButtonConfig = mergeConfig(buttonConfig);\nconst Button = component(mergedButtonConfig);\n\nexport const ButtonWrapper = styled.div<{ placement?: ClosePlacementType }>`\n background: var(${tokens.background});\n\n order: ${({ placement }) => (placement === placements.left ? -1 : 0)};\n padding-left: ${({ placement }) => (!placement || placement === placements.right ? '0.5rem' : '')};\n padding-right: ${({ placement }) => (placement === placements.left ? '0.5rem' : '')};\n`;\n\nexport const StyledHeader = styled.div`\n height: fit-content;\n flex-grow: 1;\n`;\n\nexport const CloseIconWrapper = styled(Button)`\n position: relative;\n width: 1.5rem;\n min-height: 1.5rem;\n ${buttonTokens.buttonColor}: var(${tokens.closeColor});\n ${buttonTokens.buttonColorHover}: var(${tokens.closeColor});\n ${buttonTokens.buttonColorActive}: var(${tokens.closeColor});\n`;\n"],"names":["mergedButtonConfig","mergeConfig","buttonConfig","Button","component","_exp2","_ref","placement","placements","left","_exp3","_ref2","right","_exp4","_ref3","ButtonWrapper","styled","name","class","propsAsIs","vars","StyledHeader","_exp5","CloseIconWrapper"],"mappings":";;;;;AASA,IAAMA,kBAAkB,gBAAGC,WAAW,CAACC,YAAY,CAAC,CAAA;AACpD,IAAMC,MAAM,gBAAGC,SAAS,CAACJ,kBAAkB,CAAC,CAAA;AAAC,IAAAK,KAAA,GAT3BA,SAS2BA,KAAAA,GAAA;AAAA,EAAA,OAKhC,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,SAAAA,GAAAA,IAAAA,CAAAA,SAAAA,CAAAA;IAAAA,OAAiBA,SAAS,KAAKC,UAAU,CAACC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAE,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAAA,IAAAC,KAAA,GAdtDA,SAcsDA,KAAAA,GAAA;AAAA,EAAA,OACpD,UAAAC,KAAA,EAAA;AAAA,IAAA,IAAGJ,SA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,SAAA,EAAA,IAAA;AAAA,CAOrC;;;;"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
.b5xb1jq{background:var(--
|
1
|
+
.b5xb1jq{background:var(--plasma-panel-background);-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
2
2
|
.s1hqmxl1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
3
3
|
.c7hx8go{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.js","sources":["../../../../../src/components/Panel/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport {
|
1
|
+
{"version":3,"file":"base.js","sources":["../../../../../src/components/Panel/variations/_view/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { tokens } from '../../Panel.tokens';\n\nexport const base = css`\n background: var(${tokens.background});\n box-shadow: var(${tokens.shadow});\n box-sizing: border-box;\n`;\n"],"names":["base"],"mappings":"AAIO,IAAMA,IAAI,GAIhB;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
.b11yryf5{background:var(--plasma-panel-background);box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|
package/es/index.css
CHANGED
@@ -371,21 +371,21 @@
|
|
371
371
|
|
372
372
|
.base_ydejlv_b175yas1__99ab42b5{--plasma-panel-border-radius:var(--plasma-drawer-border-radius);}
|
373
373
|
|
374
|
-
.
|
374
|
+
.base_10gjs6e_b11yryf5__c70de98c{background:var(--plasma-panel-background);box-shadow:var(--plasma-panel-shadow);box-sizing:border-box;}
|
375
375
|
|
376
376
|
.base_t42kp6_b68f6vo__04aa8af1{padding:var(--plasma-panel-padding);height:var(--plasma_private-panel-height);width:var(--plasma_private-panel-width);}
|
377
377
|
|
378
378
|
.base_2yf5jv_b1xkcksz__e72487ad{border-radius:var(--plasma-panel-border-radius);}
|
379
379
|
|
380
|
-
.
|
380
|
+
.Panel_styles_2oh0yk_siaxu13__4b38fa73{background:var(--plasma-panel-content-background-color);height:100%;width:100%;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;position:relative;}
|
381
381
|
|
382
382
|
.base_1wckm5d_b1mvcfe5__595610ae{overflow-y:scroll;-webkit-scrollbar-width:none;-moz-scrollbar-width:none;-ms-scrollbar-width:none;scrollbar-width:none;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;padding-right:20px;box-sizing:border-box;}.base_1wckm5d_b1mvcfe5__595610ae::-webkit-scrollbar{display:none;}
|
383
383
|
|
384
384
|
.base_hmbg05_b1orvu2x__ac0d2781{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;}
|
385
385
|
|
386
|
-
.
|
387
|
-
.
|
388
|
-
.
|
386
|
+
.PanelHeader_styles_8c7krd_b5xb1jq__8864a0a4{background:var(--plasma-panel-background);-webkit-order:var(--b5xb1jq-0);-ms-flex-order:var(--b5xb1jq-0);order:var(--b5xb1jq-0);padding-left:var(--b5xb1jq-1);padding-right:var(--b5xb1jq-2);}
|
387
|
+
.PanelHeader_styles_8c7krd_s1hqmxl1__8864a0a4{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}
|
388
|
+
.PanelHeader_styles_8c7krd_c7hx8go__8864a0a4{position:relative;width:1.5rem;min-height:1.5rem;--plasma-button-color:var(--plasma-panel-close-color);--plasma-button-color-hover:var(--plasma-panel-close-color);--plasma-button-color-active:var(--plasma-panel-close-color);}
|
389
389
|
|
390
390
|
.base_fbxbaa_b37w9ja__9aed17a1{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1{position:absolute;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1 .base_fbxbaa_b5xb1jq__9aed17a1{background:transparent;}.base_fbxbaa_b37w9ja__9aed17a1.base_fbxbaa_panelHasHeader__9aed17a1.base_fbxbaa_panelRightCloseButton__9aed17a1{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;}
|
391
391
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.261.0-canary.
|
3
|
+
"version": "0.261.0-canary.1762.13182430055.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -131,5 +131,5 @@
|
|
131
131
|
"sideEffects": [
|
132
132
|
"*.css"
|
133
133
|
],
|
134
|
-
"gitHead": "
|
134
|
+
"gitHead": "2e90019cd83dd18d13ff830d86d637e602c1b8a5"
|
135
135
|
}
|
@@ -9,6 +9,10 @@ import { PropsTable, Description } from '@site/src/components';
|
|
9
9
|
<Description name="Checkbox" />
|
10
10
|
<PropsTable name="Checkbox" exclude={['css', 'focused']} />
|
11
11
|
|
12
|
+
:::caution устаревшие view
|
13
|
+
Актуальное значение свойства `view` - это `accent`. Все остальные - depracated.
|
14
|
+
:::
|
15
|
+
|
12
16
|
## Использование
|
13
17
|
Компонент `Checkbox` может содержать лейбл и описание.
|
14
18
|
|
@@ -19,7 +19,7 @@ var _base3 = /*#__PURE__*/require("./variations/_borderRadius/base");
|
|
19
19
|
var _Drawer2 = /*#__PURE__*/require("./Drawer.styles");
|
20
20
|
var _DrawerContext = /*#__PURE__*/require("./DrawerContext");
|
21
21
|
var _hooks2 = /*#__PURE__*/require("./hooks");
|
22
|
-
var _excluded = ["id", "zIndex", "popupInfo", "withBlur", "children", "view", "size", "width", "height", "isOpen", "opened", "initialFocusRef", "focusAfterRef", "className", "
|
22
|
+
var _excluded = ["id", "zIndex", "popupInfo", "withBlur", "children", "view", "size", "width", "height", "isOpen", "opened", "initialFocusRef", "focusAfterRef", "className", "onClose", "onOverlayClick", "onEscKeyDown", "offset", "frame", "borderRadius", "placement", "closeOnEsc", "closeOnOverlayClick", "asModal"];
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
24
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
25
25
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
@@ -43,8 +43,6 @@ var drawerRoot = exports.drawerRoot = function drawerRoot(Root) {
|
|
43
43
|
initialFocusRef = _ref.initialFocusRef,
|
44
44
|
focusAfterRef = _ref.focusAfterRef,
|
45
45
|
className = _ref.className,
|
46
|
-
customBackgroundColor = _ref.customBackgroundColor,
|
47
|
-
customContentBackgroundColor = _ref.customContentBackgroundColor,
|
48
46
|
onClose = _ref.onClose,
|
49
47
|
onOverlayClick = _ref.onOverlayClick,
|
50
48
|
onEscKeyDown = _ref.onEscKeyDown,
|
@@ -128,8 +126,6 @@ var drawerRoot = exports.drawerRoot = function drawerRoot(Root) {
|
|
128
126
|
}, /*#__PURE__*/_react["default"].createElement(_Drawer2.StyledPanel, {
|
129
127
|
width: innerWidth,
|
130
128
|
height: innerHeight,
|
131
|
-
customBackgroundColor: customBackgroundColor,
|
132
|
-
customContentBackgroundColor: customContentBackgroundColor,
|
133
129
|
className: className
|
134
130
|
}, children)));
|
135
131
|
});
|