@salutejs/plasma-new-hope 0.261.0-canary.1760.13177544873.0 → 0.261.0-canary.1761.13194272044.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +9 -3
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.js +39 -0
- package/cjs/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.js.map +1 -0
- 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/Combobox/ComboboxNew/Combobox.js +8 -3
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.js +33 -0
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/index.js +11 -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/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/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/Combobox/ComboboxNew/Combobox.js +9 -4
- package/emotion/es/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.js +26 -0
- package/emotion/es/components/Combobox/ComboboxNew/ui/index.js +2 -1
- 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/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/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/Combobox/ComboboxNew/Combobox.js +9 -3
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.js +30 -0
- package/es/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.js.map +1 -0
- 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 +3 -2
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +8 -3
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.js +33 -0
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/index.js +11 -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/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/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/Combobox/ComboboxNew/Combobox.js +9 -4
- package/styled-components/es/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.js +26 -0
- package/styled-components/es/components/Combobox/ComboboxNew/ui/index.js +2 -1
- 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/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/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/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +5 -0
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.d.ts +9 -0
- package/types/components/Combobox/ComboboxNew/ui/VirtualList/VirtualList.d.ts.map +1 -0
- package/types/components/Combobox/ComboboxNew/ui/index.d.ts +1 -0
- package/types/components/Combobox/ComboboxNew/ui/index.d.ts.map +1 -1
- 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/Combobox/Combobox.d.ts +48 -0
- package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +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/Combobox/Combobox.d.ts +48 -0
- package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +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
- /package/cjs/components/Combobox/ComboboxNew/ui/{Inner/ui/Item/Item.css → VirtualList/VirtualList.css} +0 -0
- /package/es/components/Combobox/ComboboxNew/ui/{Inner/ui/Item/Item.css → VirtualList/VirtualList.css} +0 -0
@@ -10,21 +10,6 @@ var classes = {
|
|
10
10
|
hasHeader: 'panel-has-header',
|
11
11
|
isRightClose: 'panel-right-close-button'
|
12
12
|
};
|
13
|
-
var privateTokens = {
|
14
|
-
width: '--plasma_private-panel-width',
|
15
|
-
height: '--plasma_private-panel-height',
|
16
|
-
backgrounColor: '--plasma_private-panel-custom-background-color'
|
17
|
-
};
|
18
|
-
var tokens = {
|
19
|
-
background: '--plasma-panel-background',
|
20
|
-
shadow: '--plasma-panel-shadow',
|
21
|
-
contentBackgroundColor: '--plasma-panel-content-background-color',
|
22
|
-
padding: '--plasma-panel-padding',
|
23
|
-
borderRadius: '--plasma-panel-border-radius',
|
24
|
-
closeColor: '--plasma-panel-close-color'
|
25
|
-
};
|
26
13
|
|
27
14
|
exports.classes = classes;
|
28
|
-
exports.privateTokens = privateTokens;
|
29
|
-
exports.tokens = tokens;
|
30
15
|
//# 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
|
-
require('./PanelHeader.
|
1
|
+
require('./PanelHeader.styles_8c7krd.css');
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
@@ -10,19 +10,19 @@ var Button$1 = require('../../../Button/Button.js');
|
|
10
10
|
|
11
11
|
var mergedButtonConfig = /*#__PURE__*/common.mergeConfig(Button$1.buttonConfig);
|
12
12
|
var Button = /*#__PURE__*/common.component(mergedButtonConfig);
|
13
|
-
var
|
13
|
+
var _exp2 = function _exp2() {
|
14
14
|
return function (_ref) {
|
15
15
|
var placement = _ref.placement;
|
16
16
|
return placement === PanelHeader_types.placements.left ? -1 : 0;
|
17
17
|
};
|
18
18
|
};
|
19
|
-
var
|
19
|
+
var _exp3 = function _exp3() {
|
20
20
|
return function (_ref2) {
|
21
21
|
var placement = _ref2.placement;
|
22
22
|
return !placement || placement === PanelHeader_types.placements.right ? '0.5rem' : '';
|
23
23
|
};
|
24
24
|
};
|
25
|
-
var
|
25
|
+
var _exp4 = function _exp4() {
|
26
26
|
return function (_ref3) {
|
27
27
|
var placement = _ref3.placement;
|
28
28
|
return placement === PanelHeader_types.placements.left ? '0.5rem' : '';
|
@@ -33,9 +33,9 @@ var ButtonWrapper = /*#__PURE__*/react.styled('div')({
|
|
33
33
|
"class": "b5xb1jq",
|
34
34
|
propsAsIs: false,
|
35
35
|
vars: {
|
36
|
-
"b5xb1jq-0": [/*#__PURE__*/
|
37
|
-
"b5xb1jq-1": [/*#__PURE__*/
|
38
|
-
"b5xb1jq-2": [/*#__PURE__*/
|
36
|
+
"b5xb1jq-0": [/*#__PURE__*/_exp2()],
|
37
|
+
"b5xb1jq-1": [/*#__PURE__*/_exp3()],
|
38
|
+
"b5xb1jq-2": [/*#__PURE__*/_exp4()]
|
39
39
|
}
|
40
40
|
});
|
41
41
|
var StyledHeader = /*#__PURE__*/react.styled('div')({
|
@@ -43,10 +43,10 @@ var StyledHeader = /*#__PURE__*/react.styled('div')({
|
|
43
43
|
"class": "s1hqmxl1",
|
44
44
|
propsAsIs: false
|
45
45
|
});
|
46
|
-
var
|
46
|
+
var _exp5 = function _exp5() {
|
47
47
|
return Button;
|
48
48
|
};
|
49
|
-
var CloseIconWrapper = /*#__PURE__*/react.styled(
|
49
|
+
var CloseIconWrapper = /*#__PURE__*/react.styled(_exp5())({
|
50
50
|
name: "CloseIconWrapper",
|
51
51
|
"class": "c7hx8go",
|
52
52
|
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,kBAAW,CAACC,qBAAY,CAAC,CAAA;AACpD,IAAMC,MAAM,gBAAGC,gBAAS,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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AA,GAAA;AAAA,EAAA,OAEqCnB,MAAM,CAAA;AAAA,CAAA,CAAA;AAAtC,IAAMoB,gBAAgB,gBAAGP,YAAM,CAAAM,KAAA,EAAA,CAAA,CAAA;AAAAL,EAAAA,IAAA,EAAA,kBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,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/cjs/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
|
|
@@ -21,7 +21,7 @@ var _base = /*#__PURE__*/require("./variations/_view/base");
|
|
21
21
|
var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
22
22
|
var _SelectNative = /*#__PURE__*/require("./ui/SelectNative/SelectNative");
|
23
23
|
var _Combobox3 = /*#__PURE__*/require("./Combobox.context");
|
24
|
-
var _excluded = ["name", "multiple", "value", "onChange", "defaultValue", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "keepPlaceholder", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue", "zIndex", "beforeList", "afterList", "hintView", "hintSize"];
|
24
|
+
var _excluded = ["name", "multiple", "value", "onChange", "defaultValue", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "keepPlaceholder", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue", "zIndex", "beforeList", "afterList", "virtual", "hintView", "hintSize"];
|
25
25
|
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); }
|
26
26
|
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; }
|
27
27
|
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); }
|
@@ -84,6 +84,8 @@ var comboboxRoot = exports.comboboxRoot = function comboboxRoot(Root) {
|
|
84
84
|
zIndex = props.zIndex,
|
85
85
|
beforeList = props.beforeList,
|
86
86
|
afterList = props.afterList,
|
87
|
+
_props$virtual = props.virtual,
|
88
|
+
virtual = _props$virtual === void 0 ? false : _props$virtual,
|
87
89
|
hintView = props.hintView,
|
88
90
|
hintSize = props.hintSize,
|
89
91
|
rest = _objectWithoutProperties(props, _excluded);
|
@@ -490,7 +492,10 @@ var comboboxRoot = exports.comboboxRoot = function comboboxRoot(Root) {
|
|
490
492
|
listOverflow: listOverflow,
|
491
493
|
listWidth: listWidth,
|
492
494
|
ref: targetRef
|
493
|
-
},
|
495
|
+
}, virtual ? /*#__PURE__*/_react["default"].createElement(_ui.VirtualList, {
|
496
|
+
items: filteredItems,
|
497
|
+
listHeight: listHeight
|
498
|
+
}) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, beforeList, (0, _utils.isEmpty)(filteredItems) ? /*#__PURE__*/_react["default"].createElement(_Combobox2.StyledEmptyState, {
|
494
499
|
className: _Combobox.classes.emptyStateWrapper,
|
495
500
|
size: size,
|
496
501
|
description: "\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"
|
@@ -504,7 +509,7 @@ var comboboxRoot = exports.comboboxRoot = function comboboxRoot(Root) {
|
|
504
509
|
index: index,
|
505
510
|
listWidth: listWidth
|
506
511
|
});
|
507
|
-
}), afterList))))));
|
512
|
+
}), afterList)))))));
|
508
513
|
});
|
509
514
|
};
|
510
515
|
var comboboxConfig = exports.comboboxConfig = {
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.VirtualList = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _rcVirtualList = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("rc-virtual-list"));
|
9
|
+
var _ui = /*#__PURE__*/require("../Inner/ui");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
var getHeight = function getHeight(listHeight) {
|
12
|
+
if (!listHeight) return 300;
|
13
|
+
if (typeof listHeight === 'number') return listHeight;
|
14
|
+
return parseInt(listHeight, 10);
|
15
|
+
};
|
16
|
+
var VirtualList = exports.VirtualList = function VirtualList(_ref) {
|
17
|
+
var items = _ref.items,
|
18
|
+
listHeight = _ref.listHeight;
|
19
|
+
return /*#__PURE__*/_react["default"].createElement(_rcVirtualList["default"], {
|
20
|
+
data: items,
|
21
|
+
height: getHeight(listHeight),
|
22
|
+
itemHeight: 100,
|
23
|
+
itemKey: "id"
|
24
|
+
}, function (item, index, props) {
|
25
|
+
return /*#__PURE__*/_react["default"].createElement("div", props, /*#__PURE__*/_react["default"].createElement(_ui.Item, {
|
26
|
+
item: item,
|
27
|
+
path: ['root'],
|
28
|
+
currentLevel: 0,
|
29
|
+
index: index,
|
30
|
+
ariaLevel: 1
|
31
|
+
}));
|
32
|
+
});
|
33
|
+
};
|
@@ -24,4 +24,15 @@ Object.keys(_Target).forEach(function (key) {
|
|
24
24
|
return _Target[key];
|
25
25
|
}
|
26
26
|
});
|
27
|
+
});
|
28
|
+
var _VirtualList = /*#__PURE__*/require("./VirtualList/VirtualList");
|
29
|
+
Object.keys(_VirtualList).forEach(function (key) {
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
31
|
+
if (key in exports && exports[key] === _VirtualList[key]) return;
|
32
|
+
Object.defineProperty(exports, key, {
|
33
|
+
enumerable: true,
|
34
|
+
get: function get() {
|
35
|
+
return _VirtualList[key];
|
36
|
+
}
|
37
|
+
});
|
27
38
|
});
|
@@ -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
|
});
|
@@ -12,7 +12,7 @@ var _base2 = /*#__PURE__*/require("./variations/_size/base");
|
|
12
12
|
var _base3 = /*#__PURE__*/require("./variations/_borderRadius/base");
|
13
13
|
var _Panel = /*#__PURE__*/require("./Panel.tokens");
|
14
14
|
var _Panel2 = /*#__PURE__*/require("./Panel.styles");
|
15
|
-
var _excluded = ["children", "view", "size", "width", "height", "
|
15
|
+
var _excluded = ["children", "view", "size", "width", "height", "className", "style"];
|
16
16
|
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); }
|
17
17
|
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; }
|
18
18
|
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); }
|
@@ -30,8 +30,6 @@ var panelRoot = exports.panelRoot = function panelRoot(Root) {
|
|
30
30
|
size = _ref.size,
|
31
31
|
width = _ref.width,
|
32
32
|
height = _ref.height,
|
33
|
-
customBackgroundColor = _ref.customBackgroundColor,
|
34
|
-
customContentBackgroundColor = _ref.customContentBackgroundColor,
|
35
33
|
className = _ref.className,
|
36
34
|
style = _ref.style,
|
37
35
|
rest = _objectWithoutProperties(_ref, _excluded);
|
@@ -42,10 +40,11 @@ var panelRoot = exports.panelRoot = function panelRoot(Root) {
|
|
42
40
|
view: view,
|
43
41
|
size: size,
|
44
42
|
className: (0, _utils.cx)(_Panel.classes.root, className),
|
45
|
-
style: _objectSpread(_objectSpread({}, style), {},
|
46
|
-
|
47
|
-
|
48
|
-
|
43
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
44
|
+
'--plasma_private-panel-width': innerWidth,
|
45
|
+
'--plasma_private-panel-height': innerHeight
|
46
|
+
})
|
47
|
+
}, rest), /*#__PURE__*/_react["default"].createElement(_Panel2.StyledWrapper, null, children));
|
49
48
|
});
|
50
49
|
};
|
51
50
|
var panelConfig = exports.panelConfig = {
|
@@ -10,7 +10,4 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
10
10
|
var StyledWrapper = exports.StyledWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
11
11
|
target: "e1uvnvko0",
|
12
12
|
label: "plasma-new-hope__StyledWrapper"
|
13
|
-
})("background:",
|
14
|
-
var customContentBackgroundColor = _ref.customContentBackgroundColor;
|
15
|
-
return customContentBackgroundColor || "var(".concat(_Panel.tokens.contentBackgroundColor, ")");
|
16
|
-
}, ";height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvUGFuZWwuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlrRiIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhbmVsL1BhbmVsLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi9QYW5lbC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkV3JhcHBlciA9IHN0eWxlZC5kaXY8eyBjdXN0b21Db250ZW50QmFja2dyb3VuZENvbG9yPzogc3RyaW5nIH0+YFxuICAgIGJhY2tncm91bmQ6ICR7KHsgY3VzdG9tQ29udGVudEJhY2tncm91bmRDb2xvciB9KSA9PlxuICAgICAgICBjdXN0b21Db250ZW50QmFja2dyb3VuZENvbG9yIHx8IGB2YXIoJHt0b2tlbnMuY29udGVudEJhY2tncm91bmRDb2xvcn0pYH07XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuYDtcbiJdfQ== */"));
|
13
|
+
})("background:var(", _Panel.tokens.contentBackgroundColor, ");height:100%;width:100%;display:inline-flex;flex-direction:column;position:relative;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvUGFuZWwuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QyIsImZpbGUiOiIuLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhbmVsL1BhbmVsLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi9QYW5lbC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgU3R5bGVkV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gICAgYmFja2dyb3VuZDogdmFyKCR7dG9rZW5zLmNvbnRlbnRCYWNrZ3JvdW5kQ29sb3J9KTtcbiAgICBoZWlnaHQ6IDEwMCU7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG5gO1xuIl19 */"));
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.tokens = exports.
|
6
|
+
exports.tokens = exports.classes = void 0;
|
7
7
|
var classes = exports.classes = {
|
8
8
|
root: 'panel-root',
|
9
9
|
content: 'panel-content',
|
@@ -12,11 +12,6 @@ var classes = exports.classes = {
|
|
12
12
|
hasHeader: 'panel-has-header',
|
13
13
|
isRightClose: 'panel-right-close-button'
|
14
14
|
};
|
15
|
-
var privateTokens = exports.privateTokens = {
|
16
|
-
width: '--plasma_private-panel-width',
|
17
|
-
height: '--plasma_private-panel-height',
|
18
|
-
backgrounColor: '--plasma_private-panel-custom-background-color'
|
19
|
-
};
|
20
15
|
var tokens = exports.tokens = {
|
21
16
|
background: '--plasma-panel-background',
|
22
17
|
shadow: '--plasma-panel-shadow',
|
@@ -17,7 +17,7 @@ var Button = /*#__PURE__*/(0, _engines.component)(mergedButtonConfig);
|
|
17
17
|
var ButtonWrapper = exports.ButtonWrapper = /*#__PURE__*/(0, _base["default"])("div", {
|
18
18
|
target: "e35wejq2",
|
19
19
|
label: "plasma-new-hope__ButtonWrapper"
|
20
|
-
})("background:var(", _Panel.
|
20
|
+
})("background:var(", _Panel.tokens.background, ");order:", function (_ref) {
|
21
21
|
var placement = _ref.placement;
|
22
22
|
return placement === _PanelHeader.placements.left ? -1 : 0;
|
23
23
|
}, ";padding-left:", function (_ref2) {
|
@@ -26,7 +26,7 @@ var ButtonWrapper = exports.ButtonWrapper = /*#__PURE__*/(0, _base["default"])("
|
|
26
26
|
}, ";padding-right:", function (_ref3) {
|
27
27
|
var placement = _ref3.placement;
|
28
28
|
return placement === _PanelHeader.placements.left ? '0.5rem' : '';
|
29
|
-
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
29
|
+
}, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvdWkvUGFuZWxIZWFkZXIvUGFuZWxIZWFkZXIuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVkyRSIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhbmVsL3VpL1BhbmVsSGVhZGVyL1BhbmVsSGVhZGVyLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcblxuaW1wb3J0IHsgbWVyZ2VDb25maWcsIGNvbXBvbmVudCB9IGZyb20gJy4uLy4uLy4uLy4uL2VuZ2luZXMnO1xuaW1wb3J0IHsgYnV0dG9uQ29uZmlnIH0gZnJvbSAnLi4vLi4vLi4vQnV0dG9uJztcbmltcG9ydCB7IHRva2VucyBhcyBidXR0b25Ub2tlbnMgfSBmcm9tICcuLi8uLi8uLi9CdXR0b24vQnV0dG9uLnRva2Vucyc7XG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi8uLi9QYW5lbC50b2tlbnMnO1xuXG5pbXBvcnQgeyBDbG9zZVBsYWNlbWVudFR5cGUsIHBsYWNlbWVudHMgfSBmcm9tICcuL1BhbmVsSGVhZGVyLnR5cGVzJztcblxuY29uc3QgbWVy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W5zLmNsb3NlQ29sb3J9KTtcbiAgICAke2J1dHRvblRva2Vucy5idXR0b25Db2xvckFjdGl2ZX06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG5gO1xuIl19 */"));
|
30
30
|
var StyledHeader = exports.StyledHeader = /*#__PURE__*/(0, _base["default"])("div", {
|
31
31
|
target: "e35wejq1",
|
32
32
|
label: "plasma-new-hope__StyledHeader"
|
@@ -36,10 +36,10 @@ var StyledHeader = exports.StyledHeader = /*#__PURE__*/(0, _base["default"])("di
|
|
36
36
|
} : {
|
37
37
|
name: "1ncj9np",
|
38
38
|
styles: "height:fit-content;flex-grow:1",
|
39
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
39
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvdWkvUGFuZWxIZWFkZXIvUGFuZWxIZWFkZXIuc3R5bGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9Cc0MiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9QYW5lbC91aS9QYW5lbEhlYWRlci9QYW5lbEhlYWRlci5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbmltcG9ydCB7IG1lcmdlQ29uZmlnLCBjb21wb25lbnQgfSBmcm9tICcuLi8uLi8uLi8uLi9lbmdpbmVzJztcbmltcG9ydCB7IGJ1dHRvbkNvbmZpZyB9IGZyb20gJy4uLy4uLy4uL0J1dHRvbic7XG5pbXBvcnQgeyB0b2tlbnMgYXMgYnV0dG9uVG9rZW5zIH0gZnJvbSAnLi4vLi4vLi4vQnV0dG9uL0J1dHRvbi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ZTtcbiAgICB3aWR0aDogMS41cmVtO1xuICAgIG1pbi1oZWlnaHQ6IDEuNXJlbTtcbiAgICAke2J1dHRvblRva2Vucy5idXR0b25Db2xvcn06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG4gICAgJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JIb3Zlcn06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG4gICAgJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JBY3RpdmV9OiB2YXIoJHt0b2tlbnMuY2xvc2VDb2xvcn0pO1xuYDtcbiJdfQ== */",
|
40
40
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
41
41
|
});
|
42
42
|
var CloseIconWrapper = exports.CloseIconWrapper = /*#__PURE__*/(0, _base["default"])(Button, {
|
43
43
|
target: "e35wejq0",
|
44
44
|
label: "plasma-new-hope__CloseIconWrapper"
|
45
|
-
})("position:relative;width:1.5rem;min-height:1.5rem;", _Button2.tokens.buttonColor, ":var(", _Panel.tokens.closeColor, ");", _Button2.tokens.buttonColorHover, ":var(", _Panel.tokens.closeColor, ");", _Button2.tokens.buttonColorActive, ":var(", _Panel.tokens.closeColor, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
45
|
+
})("position:relative;width:1.5rem;min-height:1.5rem;", _Button2.tokens.buttonColor, ":var(", _Panel.tokens.closeColor, ");", _Button2.tokens.buttonColorHover, ":var(", _Panel.tokens.closeColor, ");", _Button2.tokens.buttonColorActive, ":var(", _Panel.tokens.closeColor, ");" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvdWkvUGFuZWxIZWFkZXIvUGFuZWxIZWFkZXIuc3R5bGVzLnRzIl0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XG4gICAgcGFkZGluZy1sZWZ0OiAkeyh7IHBsYWNlbWVudCB9KSA9PiAoIXBsYWNlbWVudCB8fCBwbGFjZW1lbnQgPT09IHBsYWNlbWVudHMucmlnaHQgPyAnMC41cmVtJyA6ICcnKX07XG4gICAgcGFkZGluZy1yaWdodDogJHsoeyBwbGFjZW1lbnQgfSkgPT4gKHBsYWNlbWVudCA9PT0gcGxhY2VtZW50cy5sZWZ0ID8gJzAuNXJlbScgOiAnJyl9O1xuYDtcblxuZXhwb3J0IGNvbnN0IFN0eWxlZEhlYWRlciA9IHN0eWxlZC5kaXZgXG4gICAgaGVpZ2h0OiBmaXQtY29udGVudDtcbiAgICBmbGV4LWdyb3c6IDE7XG5gO1xuXG5leHBvcnQgY29uc3QgQ2xvc2VJY29uV3JhcHBlciA9IHN0eWxlZChCdXR0b24pYFxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICB3aWR0aDogMS41cmVtO1xuICAgIG1pbi1oZWlnaHQ6IDEuNXJlbTtcbiAgICAke2J1dHRvblRva2Vucy5idXR0b25Db2xvcn06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG4gICAgJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JIb3Zlcn06IHZhcigke3Rva2Vucy5jbG9zZUNvbG9yfSk7XG4gICAgJHtidXR0b25Ub2tlbnMuYnV0dG9uQ29sb3JBY3RpdmV9OiB2YXIoJHt0b2tlbnMuY2xvc2VDb2xvcn0pO1xuYDtcbiJdfQ== */"));
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.base = void 0;
|
7
7
|
var _react = /*#__PURE__*/require("@emotion/react");
|
8
8
|
var _Panel = /*#__PURE__*/require("../../Panel.tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)("background:var(", _Panel.
|
9
|
+
var base = exports.base = /*#__PURE__*/(0, _react.css)("background:var(", _Panel.tokens.background, ");box-shadow:var(", _Panel.tokens.shadow, ");box-sizing:border-box;;label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvUGFuZWwvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUl1QiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9jb21wb25lbnRzL1BhbmVsL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9rZW5zIH0gZnJvbSAnLi4vLi4vUGFuZWwudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgYmFja2dyb3VuZDogdmFyKCR7dG9rZW5zLmJhY2tncm91bmR9KTtcbiAgICBib3gtc2hhZG93OiB2YXIoJHt0b2tlbnMuc2hhZG93fSk7XG4gICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbmA7XG4iXX0= */"));
|
@@ -14,7 +14,7 @@ import type { ClosePlacementType } from '../../../../components/Drawer';
|
|
14
14
|
import { Drawer, DrawerContent, DrawerFooter, DrawerHeader } from './Drawer';
|
15
15
|
|
16
16
|
export default {
|
17
|
-
title: 'b2c/Overlay/
|
17
|
+
title: 'b2c/Overlay/Divider',
|
18
18
|
decorators: [WithTheme],
|
19
19
|
argTypes: {
|
20
20
|
placement: {
|
@@ -85,16 +85,6 @@ export default {
|
|
85
85
|
type: 'select',
|
86
86
|
},
|
87
87
|
},
|
88
|
-
customBackgroundColor: {
|
89
|
-
control: {
|
90
|
-
type: 'color',
|
91
|
-
},
|
92
|
-
},
|
93
|
-
customContentBackgroundColor: {
|
94
|
-
control: {
|
95
|
-
type: 'color',
|
96
|
-
},
|
97
|
-
},
|
98
88
|
},
|
99
89
|
} as Meta;
|
100
90
|
|
@@ -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
|
|
@@ -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
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _excluded = ["name", "multiple", "value", "onChange", "defaultValue", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "keepPlaceholder", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue", "zIndex", "beforeList", "afterList", "hintView", "hintSize"];
|
1
|
+
var _excluded = ["name", "multiple", "value", "onChange", "defaultValue", "isTargetAmount", "targetAmount", "items", "placement", "label", "placeholder", "helperText", "contentLeft", "textBefore", "textAfter", "variant", "listOverflow", "listHeight", "listWidth", "portal", "renderItem", "view", "size", "labelPlacement", "keepPlaceholder", "readOnly", "disabled", "alwaysOpened", "filter", "closeAfterSelect", "renderValue", "zIndex", "beforeList", "afterList", "virtual", "hintView", "hintSize"];
|
2
2
|
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); }
|
3
3
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
4
4
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
@@ -22,7 +22,7 @@ import { classes } from './Combobox.tokens';
|
|
22
22
|
import { FloatingPopover } from './FloatingPopover';
|
23
23
|
import { useKeyNavigation, getItemByFocused } from './hooks/useKeyboardNavigation';
|
24
24
|
import { initialItemsTransform, updateAncestors, updateDescendants, updateSingleAncestors, filterItems, getItemId, getInitialValue } from './utils';
|
25
|
-
import { Inner, StyledTextField } from './ui';
|
25
|
+
import { Inner, StyledTextField, VirtualList } from './ui';
|
26
26
|
import { pathReducer, focusedPathReducer } from './reducers';
|
27
27
|
import { getPathMap, getTreeMaps } from './hooks/getPathMaps';
|
28
28
|
import { Ul, base, StyledArrow, IconArrowWrapper, StyledEmptyState } from './Combobox.styles';
|
@@ -77,6 +77,8 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
77
77
|
zIndex = props.zIndex,
|
78
78
|
beforeList = props.beforeList,
|
79
79
|
afterList = props.afterList,
|
80
|
+
_props$virtual = props.virtual,
|
81
|
+
virtual = _props$virtual === void 0 ? false : _props$virtual,
|
80
82
|
hintView = props.hintView,
|
81
83
|
hintSize = props.hintSize,
|
82
84
|
rest = _objectWithoutProperties(props, _excluded);
|
@@ -483,7 +485,10 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
483
485
|
listOverflow: listOverflow,
|
484
486
|
listWidth: listWidth,
|
485
487
|
ref: targetRef
|
486
|
-
},
|
488
|
+
}, virtual ? /*#__PURE__*/React.createElement(VirtualList, {
|
489
|
+
items: filteredItems,
|
490
|
+
listHeight: listHeight
|
491
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null, beforeList, isEmpty(filteredItems) ? /*#__PURE__*/React.createElement(StyledEmptyState, {
|
487
492
|
className: classes.emptyStateWrapper,
|
488
493
|
size: size,
|
489
494
|
description: "\u041D\u0438\u0447\u0435\u0433\u043E \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D\u043E"
|
@@ -497,7 +502,7 @@ export var comboboxRoot = function comboboxRoot(Root) {
|
|
497
502
|
index: index,
|
498
503
|
listWidth: listWidth
|
499
504
|
});
|
500
|
-
}), afterList))))));
|
505
|
+
}), afterList)))))));
|
501
506
|
});
|
502
507
|
};
|
503
508
|
export var comboboxConfig = {
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import List from 'rc-virtual-list';
|
3
|
+
import { Item } from '../Inner/ui';
|
4
|
+
var getHeight = function getHeight(listHeight) {
|
5
|
+
if (!listHeight) return 300;
|
6
|
+
if (typeof listHeight === 'number') return listHeight;
|
7
|
+
return parseInt(listHeight, 10);
|
8
|
+
};
|
9
|
+
export var VirtualList = function VirtualList(_ref) {
|
10
|
+
var items = _ref.items,
|
11
|
+
listHeight = _ref.listHeight;
|
12
|
+
return /*#__PURE__*/React.createElement(List, {
|
13
|
+
data: items,
|
14
|
+
height: getHeight(listHeight),
|
15
|
+
itemHeight: 100,
|
16
|
+
itemKey: "id"
|
17
|
+
}, function (item, index, props) {
|
18
|
+
return /*#__PURE__*/React.createElement("div", props, /*#__PURE__*/React.createElement(Item, {
|
19
|
+
item: item,
|
20
|
+
path: ['root'],
|
21
|
+
currentLevel: 0,
|
22
|
+
index: index,
|
23
|
+
ariaLevel: 1
|
24
|
+
}));
|
25
|
+
});
|
26
|
+
};
|