@salutejs/plasma-new-hope 0.88.0-canary.1223.9301566220.0 → 0.88.0-canary.1223.9302553119.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +3 -3
- package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +2 -2
- package/styled-components/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +32 -0
- package/styled-components/cjs/components/_Icon/Icons/IconChevronDownFill.js +22 -0
- package/styled-components/cjs/components/_Icon/index.js +7 -0
- package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.js +3 -3
- package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +3 -3
- package/styled-components/es/components/_Icon/Icon.assets/ChevronDownFill.js +25 -0
- package/styled-components/es/components/_Icon/Icons/IconChevronDownFill.js +15 -0
- package/styled-components/es/components/_Icon/index.js +1 -0
- package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconChevronDownFill.d.ts +4 -0
- package/types/components/_Icon/Icons/IconChevronDownFill.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +1 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-new-hope",
|
3
|
-
"version": "0.88.0-canary.1223.
|
3
|
+
"version": "0.88.0-canary.1223.9302553119.0",
|
4
4
|
"description": "Salute Design System blueprint",
|
5
5
|
"main": "cjs/index.js",
|
6
6
|
"module": "es/index.js",
|
@@ -103,5 +103,5 @@
|
|
103
103
|
"react-popper": "2.3.0",
|
104
104
|
"storeon": "3.1.5"
|
105
105
|
},
|
106
|
-
"gitHead": "
|
106
|
+
"gitHead": "87d78f583ce31022b0bcaa10859379befa5c45ef"
|
107
107
|
}
|
@@ -57,17 +57,17 @@ var AccordionItem = exports.AccordionItem = function AccordionItem(_ref) {
|
|
57
57
|
var showedBody = show ? _Accordion.classes.accordionItemShowBody : undefined;
|
58
58
|
var StyledAnimationPLus = function StyledAnimationPLus() {
|
59
59
|
return /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledPlus, null, _StyledMinus || (_StyledMinus = /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledMinus, {
|
60
|
-
size: "
|
60
|
+
size: "xs",
|
61
61
|
color: "inhert"
|
62
62
|
})), /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledMinus, {
|
63
|
-
size: "
|
63
|
+
size: "xs",
|
64
64
|
color: "inhert",
|
65
65
|
className: showedBody !== null && showedBody !== void 0 ? showedBody : _Accordion.classes.accordionPlusAnimationElement
|
66
66
|
}));
|
67
67
|
};
|
68
68
|
var accordionBorderRadius = (0, _roundness.convertRoundnessMatrix)(pin, "var(".concat(_Accordion.tokens.accordionItemBorderRadius, ")"));
|
69
69
|
var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledArrow, {
|
70
|
-
size: "
|
70
|
+
size: "xs",
|
71
71
|
color: "inhert"
|
72
72
|
})) : undefined;
|
73
73
|
var leftContentRotate = type === 'arrow' && show ? _Accordion.classes.accordionItemShowBody : undefined;
|
@@ -38,7 +38,7 @@ var StyledAccordionBodyAnimate = exports.StyledAccordionBodyAnimate = /*#__PURE_
|
|
38
38
|
var StyledAccordionBody = exports.StyledAccordionBody = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
39
39
|
componentId: "plasma-new-hope__sc-20ij9z-7"
|
40
40
|
})(["color:var(", ");font-family:var(", ");font-size:var(", ");font-weight:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");overflow:hidden;padding-right:var(", ");padding-left:var(", ");"], _Accordion.tokens.accordionItemTextColor, _Accordion.tokens.accordionItemTextFontWeight, _Accordion.tokens.accordionItemTextFontSize, _Accordion.tokens.accordionItemTextFontWeight, _Accordion.tokens.accordionItemTextFontStyle, _Accordion.tokens.accordionItemTextLetterSpacing, _Accordion.tokens.accordionItemTextLineHeight, _Accordion.tokens.accordionItemPaddingRight, _Accordion.tokens.accordionItemPaddingLeft);
|
41
|
-
var StyledArrow = exports.StyledArrow = /*#__PURE__*/(0, _styledComponents["default"])(_Icon.
|
41
|
+
var StyledArrow = exports.StyledArrow = /*#__PURE__*/(0, _styledComponents["default"])(_Icon.IconChevronDownFill).withConfig({
|
42
42
|
componentId: "plasma-new-hope__sc-20ij9z-8"
|
43
43
|
})(["pointer-events:none;user-select:none;color:var(", ");"], _Accordion.tokens.accordionItemTextColor);
|
44
44
|
var StyledMinus = exports.StyledMinus = /*#__PURE__*/(0, _styledComponents["default"])(_Icon.IconMinus).withConfig({
|
@@ -46,4 +46,4 @@ var StyledMinus = exports.StyledMinus = /*#__PURE__*/(0, _styledComponents["defa
|
|
46
46
|
})(["pointer-events:none;user-select:none;color:var(", ");display:flex;align-items:center;position:absolute;top:0;left:0;&&.", "{transition:0.2s;transform:rotate(90deg);}&&.", "{transition:0.2s;transform:rotate(0deg);}"], _Accordion.tokens.accordionItemTextColor, _Accordion.classes.accordionPlusAnimationElement, _Accordion.classes.accordionItemShowBody);
|
47
47
|
var StyledPlus = exports.StyledPlus = /*#__PURE__*/_styledComponents["default"].div.withConfig({
|
48
48
|
componentId: "plasma-new-hope__sc-20ij9z-10"
|
49
|
-
})(["position:relative;height:
|
49
|
+
})(["position:relative;height:1rem;display:flex;align-items:center;justify-content:center;width:1rem;"]);
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.ChevronDownFill = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _defs, _g;
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
10
|
+
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); }
|
11
|
+
var ChevronDownFill = exports.ChevronDownFill = function ChevronDownFill(props) {
|
12
|
+
return /*#__PURE__*/_react["default"].createElement("svg", _extends({
|
13
|
+
width: "100%",
|
14
|
+
viewBox: "0 0 16 16",
|
15
|
+
fill: "none"
|
16
|
+
}, props), _defs || (_defs = /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
|
17
|
+
id: "clip3066_154194"
|
18
|
+
}, /*#__PURE__*/_react["default"].createElement("rect", {
|
19
|
+
width: "16.000000",
|
20
|
+
height: "16.000000",
|
21
|
+
fill: "currentColor",
|
22
|
+
fillOpacity: "0"
|
23
|
+
})))), _g || (_g = /*#__PURE__*/_react["default"].createElement("g", {
|
24
|
+
clipPath: "url(#clip3066_154194)"
|
25
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
26
|
+
id: "path",
|
27
|
+
d: "M11.45 5.79C11.37 5.61 11.19 5.5 11 5.5L5 5.5C4.8 5.5 4.62 5.61 4.54 5.79C4.46 5.96 4.49 6.17 4.62 6.32L7.62 9.82C7.71 9.93 7.85 10 8 10C8.14 10 8.28 9.93 8.37 9.82L11.37 6.32C11.5 6.17 11.53 5.96 11.45 5.79Z",
|
28
|
+
fillRule: "evenodd",
|
29
|
+
fill: "currentColor",
|
30
|
+
clipRule: "evenodd"
|
31
|
+
}))));
|
32
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.IconChevronDownFill = void 0;
|
7
|
+
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
|
+
var _ChevronDownFill = /*#__PURE__*/require("../Icon.assets/ChevronDownFill");
|
9
|
+
var _IconRoot = /*#__PURE__*/require("../IconRoot");
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
|
+
var IconChevronDownFill = exports.IconChevronDownFill = function IconChevronDownFill(_ref) {
|
12
|
+
var _ref$size = _ref.size,
|
13
|
+
size = _ref$size === void 0 ? 'xs' : _ref$size,
|
14
|
+
color = _ref.color,
|
15
|
+
className = _ref.className;
|
16
|
+
return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
|
17
|
+
className: className,
|
18
|
+
size: size,
|
19
|
+
color: color,
|
20
|
+
icon: _ChevronDownFill.ChevronDownFill
|
21
|
+
});
|
22
|
+
};
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "IconChevronDown", {
|
|
15
15
|
return _IconChevronDown.IconChevronDown;
|
16
16
|
}
|
17
17
|
});
|
18
|
+
Object.defineProperty(exports, "IconChevronDownFill", {
|
19
|
+
enumerable: true,
|
20
|
+
get: function get() {
|
21
|
+
return _IconChevronDownFill.IconChevronDownFill;
|
22
|
+
}
|
23
|
+
});
|
18
24
|
Object.defineProperty(exports, "IconChevronLeft", {
|
19
25
|
enumerable: true,
|
20
26
|
get: function get() {
|
@@ -69,6 +75,7 @@ var _IconMic = /*#__PURE__*/require("./Icons/IconMic");
|
|
69
75
|
var _IconChevronLeft = /*#__PURE__*/require("./Icons/IconChevronLeft");
|
70
76
|
var _IconChevronDoubleLeft = /*#__PURE__*/require("./Icons/IconChevronDoubleLeft");
|
71
77
|
var _IconChevronDown = /*#__PURE__*/require("./Icons/IconChevronDown");
|
78
|
+
var _IconChevronDownFill = /*#__PURE__*/require("./Icons/IconChevronDownFill");
|
72
79
|
var _IconClose = /*#__PURE__*/require("./Icons/IconClose");
|
73
80
|
var _IconCross = /*#__PURE__*/require("./Icons/IconCross");
|
74
81
|
var _IconDone = /*#__PURE__*/require("./Icons/IconDone");
|
@@ -48,17 +48,17 @@ export var AccordionItem = function AccordionItem(_ref) {
|
|
48
48
|
var showedBody = show ? classes.accordionItemShowBody : undefined;
|
49
49
|
var StyledAnimationPLus = function StyledAnimationPLus() {
|
50
50
|
return /*#__PURE__*/React.createElement(StyledPlus, null, _StyledMinus || (_StyledMinus = /*#__PURE__*/React.createElement(StyledMinus, {
|
51
|
-
size: "
|
51
|
+
size: "xs",
|
52
52
|
color: "inhert"
|
53
53
|
})), /*#__PURE__*/React.createElement(StyledMinus, {
|
54
|
-
size: "
|
54
|
+
size: "xs",
|
55
55
|
color: "inhert",
|
56
56
|
className: showedBody !== null && showedBody !== void 0 ? showedBody : classes.accordionPlusAnimationElement
|
57
57
|
}));
|
58
58
|
};
|
59
59
|
var accordionBorderRadius = convertRoundnessMatrix(pin, "var(".concat(tokens.accordionItemBorderRadius, ")"));
|
60
60
|
var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/React.createElement(StyledArrow, {
|
61
|
-
size: "
|
61
|
+
size: "xs",
|
62
62
|
color: "inhert"
|
63
63
|
})) : undefined;
|
64
64
|
var leftContentRotate = type === 'arrow' && show ? classes.accordionItemShowBody : undefined;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import styled from 'styled-components';
|
2
|
-
import {
|
2
|
+
import { IconChevronDownFill, IconMinus } from '../../../_Icon';
|
3
3
|
import { classes, tokens } from '../../Accordion.tokens';
|
4
4
|
import { addFocus } from '../../../../mixins';
|
5
5
|
export var StyledAccordionItem = /*#__PURE__*/styled.div.withConfig({
|
@@ -31,7 +31,7 @@ export var StyledAccordionBodyAnimate = /*#__PURE__*/styled.div.withConfig({
|
|
31
31
|
export var StyledAccordionBody = /*#__PURE__*/styled.div.withConfig({
|
32
32
|
componentId: "plasma-new-hope__sc-20ij9z-7"
|
33
33
|
})(["color:var(", ");font-family:var(", ");font-size:var(", ");font-weight:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");overflow:hidden;padding-right:var(", ");padding-left:var(", ");"], tokens.accordionItemTextColor, tokens.accordionItemTextFontWeight, tokens.accordionItemTextFontSize, tokens.accordionItemTextFontWeight, tokens.accordionItemTextFontStyle, tokens.accordionItemTextLetterSpacing, tokens.accordionItemTextLineHeight, tokens.accordionItemPaddingRight, tokens.accordionItemPaddingLeft);
|
34
|
-
export var StyledArrow = /*#__PURE__*/styled(
|
34
|
+
export var StyledArrow = /*#__PURE__*/styled(IconChevronDownFill).withConfig({
|
35
35
|
componentId: "plasma-new-hope__sc-20ij9z-8"
|
36
36
|
})(["pointer-events:none;user-select:none;color:var(", ");"], tokens.accordionItemTextColor);
|
37
37
|
export var StyledMinus = /*#__PURE__*/styled(IconMinus).withConfig({
|
@@ -39,4 +39,4 @@ export var StyledMinus = /*#__PURE__*/styled(IconMinus).withConfig({
|
|
39
39
|
})(["pointer-events:none;user-select:none;color:var(", ");display:flex;align-items:center;position:absolute;top:0;left:0;&&.", "{transition:0.2s;transform:rotate(90deg);}&&.", "{transition:0.2s;transform:rotate(0deg);}"], tokens.accordionItemTextColor, classes.accordionPlusAnimationElement, classes.accordionItemShowBody);
|
40
40
|
export var StyledPlus = /*#__PURE__*/styled.div.withConfig({
|
41
41
|
componentId: "plasma-new-hope__sc-20ij9z-10"
|
42
|
-
})(["position:relative;height:
|
42
|
+
})(["position:relative;height:1rem;display:flex;align-items:center;justify-content:center;width:1rem;"]);
|
@@ -0,0 +1,25 @@
|
|
1
|
+
var _defs, _g;
|
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
|
+
import React from 'react';
|
4
|
+
export var ChevronDownFill = function ChevronDownFill(props) {
|
5
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
6
|
+
width: "100%",
|
7
|
+
viewBox: "0 0 16 16",
|
8
|
+
fill: "none"
|
9
|
+
}, props), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
10
|
+
id: "clip3066_154194"
|
11
|
+
}, /*#__PURE__*/React.createElement("rect", {
|
12
|
+
width: "16.000000",
|
13
|
+
height: "16.000000",
|
14
|
+
fill: "currentColor",
|
15
|
+
fillOpacity: "0"
|
16
|
+
})))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
17
|
+
clipPath: "url(#clip3066_154194)"
|
18
|
+
}, /*#__PURE__*/React.createElement("path", {
|
19
|
+
id: "path",
|
20
|
+
d: "M11.45 5.79C11.37 5.61 11.19 5.5 11 5.5L5 5.5C4.8 5.5 4.62 5.61 4.54 5.79C4.46 5.96 4.49 6.17 4.62 6.32L7.62 9.82C7.71 9.93 7.85 10 8 10C8.14 10 8.28 9.93 8.37 9.82L11.37 6.32C11.5 6.17 11.53 5.96 11.45 5.79Z",
|
21
|
+
fillRule: "evenodd",
|
22
|
+
fill: "currentColor",
|
23
|
+
clipRule: "evenodd"
|
24
|
+
}))));
|
25
|
+
};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { ChevronDownFill } from '../Icon.assets/ChevronDownFill';
|
3
|
+
import { IconRoot } from '../IconRoot';
|
4
|
+
export var IconChevronDownFill = function IconChevronDownFill(_ref) {
|
5
|
+
var _ref$size = _ref.size,
|
6
|
+
size = _ref$size === void 0 ? 'xs' : _ref$size,
|
7
|
+
color = _ref.color,
|
8
|
+
className = _ref.className;
|
9
|
+
return /*#__PURE__*/React.createElement(IconRoot, {
|
10
|
+
className: className,
|
11
|
+
size: size,
|
12
|
+
color: color,
|
13
|
+
icon: ChevronDownFill
|
14
|
+
});
|
15
|
+
};
|
@@ -4,6 +4,7 @@ export { IconMic } from './Icons/IconMic';
|
|
4
4
|
export { IconChevronLeft } from './Icons/IconChevronLeft';
|
5
5
|
export { IconChevronDoubleLeft } from './Icons/IconChevronDoubleLeft';
|
6
6
|
export { IconChevronDown } from './Icons/IconChevronDown';
|
7
|
+
export { IconChevronDownFill } from './Icons/IconChevronDownFill';
|
7
8
|
export { IconClose } from './Icons/IconClose';
|
8
9
|
export { IconCross } from './Icons/IconCross';
|
9
10
|
export { IconDone } from './Icons/IconDone';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ChevronDownFill.d.ts","sourceRoot":"","sources":["../../../../src/components/_Icon/Icon.assets/ChevronDownFill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAiB/C,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"IconChevronDownFill.d.ts","sourceRoot":"","sources":["../../../../src/components/_Icon/Icons/IconChevronDownFill.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,SAAS,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAEnD,CAAC"}
|
@@ -4,6 +4,7 @@ export { IconMic } from './Icons/IconMic';
|
|
4
4
|
export { IconChevronLeft } from './Icons/IconChevronLeft';
|
5
5
|
export { IconChevronDoubleLeft } from './Icons/IconChevronDoubleLeft';
|
6
6
|
export { IconChevronDown } from './Icons/IconChevronDown';
|
7
|
+
export { IconChevronDownFill } from './Icons/IconChevronDownFill';
|
7
8
|
export { IconClose } from './Icons/IconClose';
|
8
9
|
export { IconCross } from './Icons/IconCross';
|
9
10
|
export { IconDone } from './Icons/IconDone';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_Icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_Icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|