@salutejs/plasma-new-hope 0.88.0-canary.1223.9286484439.0 → 0.88.0-canary.1223.9301566220.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/package.json +4 -4
  2. package/styled-components/cjs/components/Accordion/Accordion.js +1 -1
  3. package/styled-components/cjs/components/Accordion/Accordion.tokens.js +2 -1
  4. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +20 -13
  5. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +8 -5
  6. package/styled-components/cjs/components/_Icon/Icon.assets/Minus.js +21 -0
  7. package/styled-components/cjs/components/_Icon/Icons/IconMinus.js +22 -0
  8. package/styled-components/cjs/components/_Icon/index.js +8 -1
  9. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.config.js +2 -2
  10. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
  11. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.config.js +2 -2
  12. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +4 -19
  13. package/styled-components/es/components/Accordion/Accordion.js +1 -1
  14. package/styled-components/es/components/Accordion/Accordion.tokens.js +2 -1
  15. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.js +21 -14
  16. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +8 -5
  17. package/styled-components/es/components/_Icon/Icon.assets/Minus.js +14 -0
  18. package/styled-components/es/components/_Icon/Icons/IconMinus.js +15 -0
  19. package/styled-components/es/components/_Icon/index.js +2 -1
  20. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.config.js +2 -2
  21. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
  22. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.config.js +2 -2
  23. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +4 -19
  24. package/types/components/Accordion/Accordion.tokens.d.ts +1 -0
  25. package/types/components/Accordion/Accordion.tokens.d.ts.map +1 -1
  26. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts.map +1 -1
  27. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts +2 -1
  28. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts.map +1 -1
  29. package/types/components/_Icon/Icon.assets/Minus.d.ts +4 -0
  30. package/types/components/_Icon/Icon.assets/Minus.d.ts.map +1 -0
  31. package/types/components/_Icon/Icons/IconMinus.d.ts +4 -0
  32. package/types/components/_Icon/Icons/IconMinus.d.ts.map +1 -0
  33. package/types/components/_Icon/index.d.ts +1 -0
  34. package/types/components/_Icon/index.d.ts.map +1 -1
  35. package/types/examples/plasma_b2c/components/Accordion/Accordion.config.d.ts +1 -1
  36. package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts +1 -1
  37. package/types/examples/plasma_web/components/Accordion/Accordion.config.d.ts +1 -1
  38. package/types/examples/plasma_web/components/Accordion/Accordion.d.ts +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.9286484439.0",
3
+ "version": "0.88.0-canary.1223.9301566220.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -68,7 +68,7 @@
68
68
  "@rollup/plugin-babel": "^6.0.4",
69
69
  "@rollup/plugin-commonjs": "^25.0.4",
70
70
  "@rollup/plugin-node-resolve": "^15.1.0",
71
- "@salutejs/plasma-sb-utils": "0.158.0-dev.0",
71
+ "@salutejs/plasma-sb-utils": "0.158.0",
72
72
  "@storybook/addon-docs": "^7.6.17",
73
73
  "@storybook/addon-essentials": "^7.6.17",
74
74
  "@storybook/addons": "^7.6.17",
@@ -97,11 +97,11 @@
97
97
  "@linaria/core": "5.0.2",
98
98
  "@linaria/react": "5.0.3",
99
99
  "@popperjs/core": "2.11.8",
100
- "@salutejs/plasma-core": "1.160.0-dev.0",
100
+ "@salutejs/plasma-core": "1.160.0",
101
101
  "focus-visible": "5.2.0",
102
102
  "react-draggable": "4.4.3",
103
103
  "react-popper": "2.3.0",
104
104
  "storeon": "3.1.5"
105
105
  },
106
- "gitHead": "68f8382e833d663be60c9cfb34306c0b5ee3941c"
106
+ "gitHead": "93085fc5bf6fc985c6fcfe7d2ed6b6005d2a6a99"
107
107
  }
@@ -44,7 +44,7 @@ var accordionConfig = exports.accordionConfig = {
44
44
  }
45
45
  },
46
46
  defaults: {
47
- view: 'secondary',
47
+ view: 'default',
48
48
  size: 'm'
49
49
  }
50
50
  };
@@ -10,7 +10,8 @@ var classes = exports.classes = {
10
10
  accordionRoot: 'accordion-root',
11
11
  accordionItem: 'accordion-item',
12
12
  clearAccordionItem: 'clear-accordion-item',
13
- accordionItemShowBody: 'accordion-item-show-body'
13
+ accordionItemShowBody: 'accordion-item-show-body',
14
+ accordionPlusAnimationElement: 'accordion-plus-animation-element'
14
15
  };
15
16
  var tokens = exports.tokens = {
16
17
  accordionGap: '--plasma-accordion-gap',
@@ -9,7 +9,7 @@ var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react")
9
9
  var _roundness = /*#__PURE__*/require("../../../../utils/roundness");
10
10
  var _Accordion = /*#__PURE__*/require("../../Accordion.tokens");
11
11
  var _AccordionItem = /*#__PURE__*/require("./AccordionItem.styles");
12
- var _StyledArrow, _StyledClose;
12
+ var _StyledMinus, _StyledArrow;
13
13
  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); }
14
14
  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; }
15
15
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -37,18 +37,6 @@ var AccordionItem = exports.AccordionItem = function AccordionItem(_ref) {
37
37
  _useState4 = _slicedToArray(_useState3, 2),
38
38
  leftPadding = _useState4[0],
39
39
  setLeftPadding = _useState4[1];
40
- var accordionBorderRadius = (0, _roundness.convertRoundnessMatrix)(pin, "var(".concat(_Accordion.tokens.accordionItemBorderRadius, ")"));
41
- var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledArrow, {
42
- size: "s",
43
- color: "inhert"
44
- })) : undefined;
45
- var leftContentRotate = type === 'arrow' && show ? _Accordion.classes.accordionItemShowBody : undefined;
46
- var rightContent = contentRight !== null && contentRight !== void 0 ? contentRight : type === 'sign' ? _StyledClose || (_StyledClose = /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledClose, {
47
- size: "xs",
48
- color: "inhert"
49
- })) : undefined;
50
- var rightContentRotate = type === 'sign' && show ? _Accordion.classes.accordionItemShowBody : undefined;
51
- var showedBody = show ? _Accordion.classes.accordionItemShowBody : undefined;
52
40
  var showHandler = function showHandler() {
53
41
  setShow(!show);
54
42
  onChangeValue && onChangeValue(!show);
@@ -66,6 +54,25 @@ var AccordionItem = exports.AccordionItem = function AccordionItem(_ref) {
66
54
  var leftPaddingBody = leftContentWidth ? "calc(".concat(leftContentWidth, "px + var(").concat(_Accordion.tokens.accordionItemGap, "))") : 0;
67
55
  setLeftPadding(leftPaddingBody);
68
56
  }, [type, leftContentRef, setLeftPadding]);
57
+ var showedBody = show ? _Accordion.classes.accordionItemShowBody : undefined;
58
+ var StyledAnimationPLus = function StyledAnimationPLus() {
59
+ return /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledPlus, null, _StyledMinus || (_StyledMinus = /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledMinus, {
60
+ size: "s",
61
+ color: "inhert"
62
+ })), /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledMinus, {
63
+ size: "s",
64
+ color: "inhert",
65
+ className: showedBody !== null && showedBody !== void 0 ? showedBody : _Accordion.classes.accordionPlusAnimationElement
66
+ }));
67
+ };
68
+ var accordionBorderRadius = (0, _roundness.convertRoundnessMatrix)(pin, "var(".concat(_Accordion.tokens.accordionItemBorderRadius, ")"));
69
+ var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledArrow, {
70
+ size: "s",
71
+ color: "inhert"
72
+ })) : undefined;
73
+ var leftContentRotate = type === 'arrow' && show ? _Accordion.classes.accordionItemShowBody : undefined;
74
+ var rightContent = contentRight !== null && contentRight !== void 0 ? contentRight : type === 'sign' ? /*#__PURE__*/_react["default"].createElement(StyledAnimationPLus, null) : undefined;
75
+ var rightContentRotate = type === 'sign' && show ? _Accordion.classes.accordionItemShowBody : undefined;
69
76
  return /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionItem, {
70
77
  role: "tab",
71
78
  tabIndex: 0,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.StyledClose = exports.StyledArrow = exports.StyledAccordionTitle = exports.StyledAccordionItem = exports.StyledAccordionHeaderLeft = exports.StyledAccordionHeader = exports.StyledAccordionContentRight = exports.StyledAccordionContentLeft = exports.StyledAccordionBodyAnimate = exports.StyledAccordionBody = void 0;
6
+ exports.StyledPlus = exports.StyledMinus = exports.StyledArrow = exports.StyledAccordionTitle = exports.StyledAccordionItem = exports.StyledAccordionHeaderLeft = exports.StyledAccordionHeader = exports.StyledAccordionContentRight = exports.StyledAccordionContentLeft = exports.StyledAccordionBodyAnimate = exports.StyledAccordionBody = void 0;
7
7
  var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
8
8
  var _Icon = /*#__PURE__*/require("../../../_Icon");
9
9
  var _Accordion = /*#__PURE__*/require("../../Accordion.tokens");
@@ -25,7 +25,7 @@ var StyledAccordionHeaderLeft = exports.StyledAccordionHeaderLeft = /*#__PURE__*
25
25
  })(["display:flex;gap:var(", ");justify-content:space-between;align-items:center;"], _Accordion.tokens.accordionItemGap);
26
26
  var StyledAccordionContentRight = exports.StyledAccordionContentRight = /*#__PURE__*/_styledComponents["default"].div.withConfig({
27
27
  componentId: "plasma-new-hope__sc-20ij9z-3"
28
- })(["transition:0.2s;&&.", "{transition:0.2s;transform:rotate(45deg);}"], _Accordion.classes.accordionItemShowBody);
28
+ })(["transition:0.2s;transform:rotate(90deg);&&.", "{transition:0.2s;transform:rotate(0deg);}"], _Accordion.classes.accordionItemShowBody);
29
29
  var StyledAccordionContentLeft = exports.StyledAccordionContentLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
30
30
  componentId: "plasma-new-hope__sc-20ij9z-4"
31
31
  })(["transition:0.2s;display:flex;align-items:center;&&.", "{transition:0.2s;transform:rotate(180deg);}"], _Accordion.classes.accordionItemShowBody);
@@ -34,13 +34,16 @@ var StyledAccordionTitle = exports.StyledAccordionTitle = /*#__PURE__*/_styledCo
34
34
  })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-weight:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Accordion.tokens.accordionItemTitleColor, _Accordion.tokens.accordionItemTitleFontWeight, _Accordion.tokens.accordionItemTitleFontSize, _Accordion.tokens.accordionItemTitleFontWeight, _Accordion.tokens.accordionItemTitleFontStyle, _Accordion.tokens.accordionItemTitleLetterSpacing, _Accordion.tokens.accordionItemTitleLineHeight);
35
35
  var StyledAccordionBodyAnimate = exports.StyledAccordionBodyAnimate = /*#__PURE__*/_styledComponents["default"].div.withConfig({
36
36
  componentId: "plasma-new-hope__sc-20ij9z-6"
37
- })(["display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.2s ease-out;overflow:hidden;&&.", "{grid-template-rows:1fr;padding-bottom:var(", ");}"], _Accordion.classes.accordionItemShowBody, _Accordion.tokens.accordionItemPaddingBottom);
37
+ })(["display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.2s ease-out;overflow:hidden;&&.", "{grid-template-rows:1fr;padding-bottom:var(", ");&.", "{transition:0.2s;transform:rotate(0deg);}}"], _Accordion.classes.accordionItemShowBody, _Accordion.tokens.accordionItemPaddingBottom, _Accordion.classes.accordionPlusAnimationElement);
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
41
  var StyledArrow = exports.StyledArrow = /*#__PURE__*/(0, _styledComponents["default"])(_Icon.IconChevronDown).withConfig({
42
42
  componentId: "plasma-new-hope__sc-20ij9z-8"
43
43
  })(["pointer-events:none;user-select:none;color:var(", ");"], _Accordion.tokens.accordionItemTextColor);
44
- var StyledClose = exports.StyledClose = /*#__PURE__*/(0, _styledComponents["default"])(_Icon.IconClose).withConfig({
44
+ var StyledMinus = exports.StyledMinus = /*#__PURE__*/(0, _styledComponents["default"])(_Icon.IconMinus).withConfig({
45
45
  componentId: "plasma-new-hope__sc-20ij9z-9"
46
- })(["pointer-events:none;user-select:none;color:var(", ");transform:rotate(45deg);display:flex;align-items:center;"], _Accordion.tokens.accordionItemTextColor);
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
+ var StyledPlus = exports.StyledPlus = /*#__PURE__*/_styledComponents["default"].div.withConfig({
48
+ componentId: "plasma-new-hope__sc-20ij9z-10"
49
+ })(["position:relative;height:1.5rem;display:flex;align-items:center;justify-content:center;width:1.5rem;"]);
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Minus = void 0;
7
+ var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
+ var _path;
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 Minus = exports.Minus = function Minus(props) {
12
+ return /*#__PURE__*/_react["default"].createElement("svg", _extends({
13
+ width: "100%",
14
+ viewBox: "0 0 24 24",
15
+ fill: "none"
16
+ }, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
17
+ id: "icon",
18
+ d: "M3.25 12C3.25 11.58 3.58 11.25 4 11.25L20 11.25C20.41 11.25 20.75 11.58 20.75 12C20.75 12.41 20.41 12.75 20 12.75L4 12.75C3.58 12.75 3.25 12.41 3.25 12Z",
19
+ fill: "currentColor"
20
+ })));
21
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.IconMinus = void 0;
7
+ var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
+ var _Minus = /*#__PURE__*/require("../Icon.assets/Minus");
9
+ var _IconRoot = /*#__PURE__*/require("../IconRoot");
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ var IconMinus = exports.IconMinus = function IconMinus(_ref) {
12
+ var _ref$size = _ref.size,
13
+ size = _ref$size === void 0 ? 's' : _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: _Minus.Minus
21
+ });
22
+ };
@@ -57,6 +57,12 @@ Object.defineProperty(exports, "IconMic", {
57
57
  return _IconMic.IconMic;
58
58
  }
59
59
  });
60
+ Object.defineProperty(exports, "IconMinus", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _IconMinus.IconMinus;
64
+ }
65
+ });
60
66
  var _IconDisclosureLeft = /*#__PURE__*/require("./Icons/IconDisclosureLeft");
61
67
  var _IconDisclosureRight = /*#__PURE__*/require("./Icons/IconDisclosureRight");
62
68
  var _IconMic = /*#__PURE__*/require("./Icons/IconMic");
@@ -65,4 +71,5 @@ var _IconChevronDoubleLeft = /*#__PURE__*/require("./Icons/IconChevronDoubleLeft
65
71
  var _IconChevronDown = /*#__PURE__*/require("./Icons/IconChevronDown");
66
72
  var _IconClose = /*#__PURE__*/require("./Icons/IconClose");
67
73
  var _IconCross = /*#__PURE__*/require("./Icons/IconCross");
68
- var _IconDone = /*#__PURE__*/require("./Icons/IconDone");
74
+ var _IconDone = /*#__PURE__*/require("./Icons/IconDone");
75
+ var _IconMinus = /*#__PURE__*/require("./Icons/IconMinus");
@@ -8,12 +8,12 @@ var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _Accordion = /*#__PURE__*/require("../../../../components/Accordion");
9
9
  var config = exports.config = {
10
10
  defaults: {
11
- view: 'secondary',
11
+ view: 'default',
12
12
  size: 'm'
13
13
  },
14
14
  variations: {
15
15
  view: {
16
- secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionBackground),
16
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionBackground),
17
17
  clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":0rem !important;", ":0rem !important;", ":var(--background-primary);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":0rem !important;", ":var(--surface-solid-tertiary);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemPaddingRight, _Accordion.accordionTokens.accordionItemPaddingLeft, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionBackground)
18
18
  },
19
19
  size: {
@@ -15,7 +15,7 @@ const meta: Meta<typeof Accordion> = {
15
15
  decorators: [WithTheme],
16
16
  component: Accordion,
17
17
  args: {
18
- view: 'secondary',
18
+ view: 'default',
19
19
  size: 'm',
20
20
  stretching: 'filled',
21
21
  pin: 'square-square',
@@ -8,12 +8,12 @@ var _styledComponents = /*#__PURE__*/require("styled-components");
8
8
  var _Accordion = /*#__PURE__*/require("../../../../components/Accordion");
9
9
  var config = exports.config = {
10
10
  defaults: {
11
- view: 'secondary',
11
+ view: 'default',
12
12
  size: 'm'
13
13
  },
14
14
  variations: {
15
15
  view: {
16
- secondary: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionBackground),
16
+ "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionBackground),
17
17
  clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":0rem !important;", ":0rem !important;", ":var(--background-primary);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":0rem !important;", ":var(--surface-solid-tertiary);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemPaddingRight, _Accordion.accordionTokens.accordionItemPaddingLeft, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionBackground)
18
18
  },
19
19
  size: {
@@ -15,7 +15,7 @@ const meta: Meta<typeof Accordion> = {
15
15
  decorators: [WithTheme],
16
16
  component: Accordion,
17
17
  args: {
18
- view: 'secondary',
18
+ view: 'default',
19
19
  size: 'm',
20
20
  stretching: 'filled',
21
21
  pin: 'square-square',
@@ -66,24 +66,9 @@ export const Default: StoryObj<ComponentProps<typeof Accordion>> = {
66
66
 
67
67
  return (
68
68
  <Accordion {...args}>
69
- <AccordionItem
70
- type={args.type}
71
- pin={args.pin}
72
- title="Как оплатить заправку бонусами СберСпасибо?"
73
- body="После указания деталей заправки нажмите кнопку «К оплате». Откроется окно оплаты, где вы сможете списать бонусы и оплатить ими до 99% стоимости топлива"
74
- />
75
- <AccordionItem
76
- type={args.type}
77
- pin={args.pin}
78
- title="Как оплатить заправку бонусами СберСпасибо?"
79
- body="После указания деталей заправки нажмите кнопку «К оплате». Откроется окно оплаты, где вы сможете списать бонусы и оплатить ими до 99% стоимости топлива"
80
- />
81
- <AccordionItem
82
- type={args.type}
83
- pin={args.pin}
84
- title="Как оплатить заправку бонусами СберСпасибо?"
85
- body="После указания деталей заправки нажмите кнопку «К оплате». Откроется окно оплаты, где вы сможете списать бонусы и оплатить ими до 99% стоимости топлива"
86
- />
69
+ <AccordionItem type={args.type} pin={args.pin} title={args.title} body={args.body} />
70
+ <AccordionItem type={args.type} pin={args.pin} title={args.title} body={args.body} />
71
+ <AccordionItem type={args.type} pin={args.pin} title={args.title} body={args.body} />
87
72
  </Accordion>
88
73
  );
89
74
  },
@@ -35,7 +35,7 @@ export var accordionConfig = {
35
35
  }
36
36
  },
37
37
  defaults: {
38
- view: 'secondary',
38
+ view: 'default',
39
39
  size: 'm'
40
40
  }
41
41
  };
@@ -4,7 +4,8 @@ export var classes = {
4
4
  accordionRoot: 'accordion-root',
5
5
  accordionItem: 'accordion-item',
6
6
  clearAccordionItem: 'clear-accordion-item',
7
- accordionItemShowBody: 'accordion-item-show-body'
7
+ accordionItemShowBody: 'accordion-item-show-body',
8
+ accordionPlusAnimationElement: 'accordion-plus-animation-element'
8
9
  };
9
10
  export var tokens = {
10
11
  accordionGap: '--plasma-accordion-gap',
@@ -1,4 +1,4 @@
1
- var _StyledArrow, _StyledClose;
1
+ var _StyledMinus, _StyledArrow;
2
2
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
3
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
4
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -8,7 +8,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
8
  import React, { useState, useRef, useEffect } from 'react';
9
9
  import { convertRoundnessMatrix } from '../../../../utils/roundness';
10
10
  import { classes, tokens } from '../../Accordion.tokens';
11
- import { StyledAccordionItem, StyledAccordionHeader, StyledAccordionBody, StyledAccordionTitle, StyledAccordionContentLeft, StyledAccordionHeaderLeft, StyledAccordionContentRight, StyledArrow, StyledClose, StyledAccordionBodyAnimate } from './AccordionItem.styles';
11
+ import { StyledAccordionItem, StyledAccordionHeader, StyledAccordionBody, StyledAccordionTitle, StyledAccordionContentLeft, StyledAccordionHeaderLeft, StyledAccordionContentRight, StyledArrow, StyledMinus, StyledPlus, StyledAccordionBodyAnimate } from './AccordionItem.styles';
12
12
  export var AccordionItem = function AccordionItem(_ref) {
13
13
  var value = _ref.value,
14
14
  contentRight = _ref.contentRight,
@@ -28,18 +28,6 @@ export var AccordionItem = function AccordionItem(_ref) {
28
28
  _useState4 = _slicedToArray(_useState3, 2),
29
29
  leftPadding = _useState4[0],
30
30
  setLeftPadding = _useState4[1];
31
- var accordionBorderRadius = convertRoundnessMatrix(pin, "var(".concat(tokens.accordionItemBorderRadius, ")"));
32
- var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/React.createElement(StyledArrow, {
33
- size: "s",
34
- color: "inhert"
35
- })) : undefined;
36
- var leftContentRotate = type === 'arrow' && show ? classes.accordionItemShowBody : undefined;
37
- var rightContent = contentRight !== null && contentRight !== void 0 ? contentRight : type === 'sign' ? _StyledClose || (_StyledClose = /*#__PURE__*/React.createElement(StyledClose, {
38
- size: "xs",
39
- color: "inhert"
40
- })) : undefined;
41
- var rightContentRotate = type === 'sign' && show ? classes.accordionItemShowBody : undefined;
42
- var showedBody = show ? classes.accordionItemShowBody : undefined;
43
31
  var showHandler = function showHandler() {
44
32
  setShow(!show);
45
33
  onChangeValue && onChangeValue(!show);
@@ -57,6 +45,25 @@ export var AccordionItem = function AccordionItem(_ref) {
57
45
  var leftPaddingBody = leftContentWidth ? "calc(".concat(leftContentWidth, "px + var(").concat(tokens.accordionItemGap, "))") : 0;
58
46
  setLeftPadding(leftPaddingBody);
59
47
  }, [type, leftContentRef, setLeftPadding]);
48
+ var showedBody = show ? classes.accordionItemShowBody : undefined;
49
+ var StyledAnimationPLus = function StyledAnimationPLus() {
50
+ return /*#__PURE__*/React.createElement(StyledPlus, null, _StyledMinus || (_StyledMinus = /*#__PURE__*/React.createElement(StyledMinus, {
51
+ size: "s",
52
+ color: "inhert"
53
+ })), /*#__PURE__*/React.createElement(StyledMinus, {
54
+ size: "s",
55
+ color: "inhert",
56
+ className: showedBody !== null && showedBody !== void 0 ? showedBody : classes.accordionPlusAnimationElement
57
+ }));
58
+ };
59
+ var accordionBorderRadius = convertRoundnessMatrix(pin, "var(".concat(tokens.accordionItemBorderRadius, ")"));
60
+ var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/React.createElement(StyledArrow, {
61
+ size: "s",
62
+ color: "inhert"
63
+ })) : undefined;
64
+ var leftContentRotate = type === 'arrow' && show ? classes.accordionItemShowBody : undefined;
65
+ var rightContent = contentRight !== null && contentRight !== void 0 ? contentRight : type === 'sign' ? /*#__PURE__*/React.createElement(StyledAnimationPLus, null) : undefined;
66
+ var rightContentRotate = type === 'sign' && show ? classes.accordionItemShowBody : undefined;
60
67
  return /*#__PURE__*/React.createElement(StyledAccordionItem, {
61
68
  role: "tab",
62
69
  tabIndex: 0,
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import { IconChevronDown, IconClose } from '../../../_Icon';
2
+ import { IconChevronDown, 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({
@@ -18,7 +18,7 @@ export var StyledAccordionHeaderLeft = /*#__PURE__*/styled.div.withConfig({
18
18
  })(["display:flex;gap:var(", ");justify-content:space-between;align-items:center;"], tokens.accordionItemGap);
19
19
  export var StyledAccordionContentRight = /*#__PURE__*/styled.div.withConfig({
20
20
  componentId: "plasma-new-hope__sc-20ij9z-3"
21
- })(["transition:0.2s;&&.", "{transition:0.2s;transform:rotate(45deg);}"], classes.accordionItemShowBody);
21
+ })(["transition:0.2s;transform:rotate(90deg);&&.", "{transition:0.2s;transform:rotate(0deg);}"], classes.accordionItemShowBody);
22
22
  export var StyledAccordionContentLeft = /*#__PURE__*/styled.div.withConfig({
23
23
  componentId: "plasma-new-hope__sc-20ij9z-4"
24
24
  })(["transition:0.2s;display:flex;align-items:center;&&.", "{transition:0.2s;transform:rotate(180deg);}"], classes.accordionItemShowBody);
@@ -27,13 +27,16 @@ export var StyledAccordionTitle = /*#__PURE__*/styled.div.withConfig({
27
27
  })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-weight:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");"], tokens.accordionItemTitleColor, tokens.accordionItemTitleFontWeight, tokens.accordionItemTitleFontSize, tokens.accordionItemTitleFontWeight, tokens.accordionItemTitleFontStyle, tokens.accordionItemTitleLetterSpacing, tokens.accordionItemTitleLineHeight);
28
28
  export var StyledAccordionBodyAnimate = /*#__PURE__*/styled.div.withConfig({
29
29
  componentId: "plasma-new-hope__sc-20ij9z-6"
30
- })(["display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.2s ease-out;overflow:hidden;&&.", "{grid-template-rows:1fr;padding-bottom:var(", ");}"], classes.accordionItemShowBody, tokens.accordionItemPaddingBottom);
30
+ })(["display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.2s ease-out;overflow:hidden;&&.", "{grid-template-rows:1fr;padding-bottom:var(", ");&.", "{transition:0.2s;transform:rotate(0deg);}}"], classes.accordionItemShowBody, tokens.accordionItemPaddingBottom, classes.accordionPlusAnimationElement);
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
34
  export var StyledArrow = /*#__PURE__*/styled(IconChevronDown).withConfig({
35
35
  componentId: "plasma-new-hope__sc-20ij9z-8"
36
36
  })(["pointer-events:none;user-select:none;color:var(", ");"], tokens.accordionItemTextColor);
37
- export var StyledClose = /*#__PURE__*/styled(IconClose).withConfig({
37
+ export var StyledMinus = /*#__PURE__*/styled(IconMinus).withConfig({
38
38
  componentId: "plasma-new-hope__sc-20ij9z-9"
39
- })(["pointer-events:none;user-select:none;color:var(", ");transform:rotate(45deg);display:flex;align-items:center;"], tokens.accordionItemTextColor);
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
+ export var StyledPlus = /*#__PURE__*/styled.div.withConfig({
41
+ componentId: "plasma-new-hope__sc-20ij9z-10"
42
+ })(["position:relative;height:1.5rem;display:flex;align-items:center;justify-content:center;width:1.5rem;"]);
@@ -0,0 +1,14 @@
1
+ var _path;
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 Minus = function Minus(props) {
5
+ return /*#__PURE__*/React.createElement("svg", _extends({
6
+ width: "100%",
7
+ viewBox: "0 0 24 24",
8
+ fill: "none"
9
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
10
+ id: "icon",
11
+ d: "M3.25 12C3.25 11.58 3.58 11.25 4 11.25L20 11.25C20.41 11.25 20.75 11.58 20.75 12C20.75 12.41 20.41 12.75 20 12.75L4 12.75C3.58 12.75 3.25 12.41 3.25 12Z",
12
+ fill: "currentColor"
13
+ })));
14
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { Minus } from '../Icon.assets/Minus';
3
+ import { IconRoot } from '../IconRoot';
4
+ export var IconMinus = function IconMinus(_ref) {
5
+ var _ref$size = _ref.size,
6
+ size = _ref$size === void 0 ? 's' : _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: Minus
14
+ });
15
+ };
@@ -6,4 +6,5 @@ export { IconChevronDoubleLeft } from './Icons/IconChevronDoubleLeft';
6
6
  export { IconChevronDown } from './Icons/IconChevronDown';
7
7
  export { IconClose } from './Icons/IconClose';
8
8
  export { IconCross } from './Icons/IconCross';
9
- export { IconDone } from './Icons/IconDone';
9
+ export { IconDone } from './Icons/IconDone';
10
+ export { IconMinus } from './Icons/IconMinus';
@@ -2,12 +2,12 @@ import { css } from 'styled-components';
2
2
  import { accordionTokens } from '../../../../components/Accordion';
3
3
  export var config = {
4
4
  defaults: {
5
- view: 'secondary',
5
+ view: 'default',
6
6
  size: 'm'
7
7
  },
8
8
  variations: {
9
9
  view: {
10
- secondary: /*#__PURE__*/css(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], accordionTokens.accordionGap, accordionTokens.accordionWidth, accordionTokens.accordionItemBackground, accordionTokens.accordionItemTitleColor, accordionTokens.accordionItemTextColor, accordionTokens.accordionItemFocus, accordionTokens.accordionBackground),
10
+ "default": /*#__PURE__*/css(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], accordionTokens.accordionGap, accordionTokens.accordionWidth, accordionTokens.accordionItemBackground, accordionTokens.accordionItemTitleColor, accordionTokens.accordionItemTextColor, accordionTokens.accordionItemFocus, accordionTokens.accordionBackground),
11
11
  clear: /*#__PURE__*/css(["", ":0.125rem;", ":20rem;", ":0rem !important;", ":0rem !important;", ":var(--background-primary);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":0rem !important;", ":var(--surface-solid-tertiary);"], accordionTokens.accordionGap, accordionTokens.accordionWidth, accordionTokens.accordionItemPaddingRight, accordionTokens.accordionItemPaddingLeft, accordionTokens.accordionItemBackground, accordionTokens.accordionItemTitleColor, accordionTokens.accordionItemTextColor, accordionTokens.accordionItemFocus, accordionTokens.accordionItemBorderRadius, accordionTokens.accordionBackground)
12
12
  },
13
13
  size: {
@@ -15,7 +15,7 @@ const meta: Meta<typeof Accordion> = {
15
15
  decorators: [WithTheme],
16
16
  component: Accordion,
17
17
  args: {
18
- view: 'secondary',
18
+ view: 'default',
19
19
  size: 'm',
20
20
  stretching: 'filled',
21
21
  pin: 'square-square',
@@ -2,12 +2,12 @@ import { css } from 'styled-components';
2
2
  import { accordionTokens } from '../../../../components/Accordion';
3
3
  export var config = {
4
4
  defaults: {
5
- view: 'secondary',
5
+ view: 'default',
6
6
  size: 'm'
7
7
  },
8
8
  variations: {
9
9
  view: {
10
- secondary: /*#__PURE__*/css(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], accordionTokens.accordionGap, accordionTokens.accordionWidth, accordionTokens.accordionItemBackground, accordionTokens.accordionItemTitleColor, accordionTokens.accordionItemTextColor, accordionTokens.accordionItemFocus, accordionTokens.accordionBackground),
10
+ "default": /*#__PURE__*/css(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], accordionTokens.accordionGap, accordionTokens.accordionWidth, accordionTokens.accordionItemBackground, accordionTokens.accordionItemTitleColor, accordionTokens.accordionItemTextColor, accordionTokens.accordionItemFocus, accordionTokens.accordionBackground),
11
11
  clear: /*#__PURE__*/css(["", ":0.125rem;", ":20rem;", ":0rem !important;", ":0rem !important;", ":var(--background-primary);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":0rem !important;", ":var(--surface-solid-tertiary);"], accordionTokens.accordionGap, accordionTokens.accordionWidth, accordionTokens.accordionItemPaddingRight, accordionTokens.accordionItemPaddingLeft, accordionTokens.accordionItemBackground, accordionTokens.accordionItemTitleColor, accordionTokens.accordionItemTextColor, accordionTokens.accordionItemFocus, accordionTokens.accordionItemBorderRadius, accordionTokens.accordionBackground)
12
12
  },
13
13
  size: {
@@ -15,7 +15,7 @@ const meta: Meta<typeof Accordion> = {
15
15
  decorators: [WithTheme],
16
16
  component: Accordion,
17
17
  args: {
18
- view: 'secondary',
18
+ view: 'default',
19
19
  size: 'm',
20
20
  stretching: 'filled',
21
21
  pin: 'square-square',
@@ -66,24 +66,9 @@ export const Default: StoryObj<ComponentProps<typeof Accordion>> = {
66
66
 
67
67
  return (
68
68
  <Accordion {...args}>
69
- <AccordionItem
70
- type={args.type}
71
- pin={args.pin}
72
- title="Как оплатить заправку бонусами СберСпасибо?"
73
- body="После указания деталей заправки нажмите кнопку «К оплате». Откроется окно оплаты, где вы сможете списать бонусы и оплатить ими до 99% стоимости топлива"
74
- />
75
- <AccordionItem
76
- type={args.type}
77
- pin={args.pin}
78
- title="Как оплатить заправку бонусами СберСпасибо?"
79
- body="После указания деталей заправки нажмите кнопку «К оплате». Откроется окно оплаты, где вы сможете списать бонусы и оплатить ими до 99% стоимости топлива"
80
- />
81
- <AccordionItem
82
- type={args.type}
83
- pin={args.pin}
84
- title="Как оплатить заправку бонусами СберСпасибо?"
85
- body="После указания деталей заправки нажмите кнопку «К оплате». Откроется окно оплаты, где вы сможете списать бонусы и оплатить ими до 99% стоимости топлива"
86
- />
69
+ <AccordionItem type={args.type} pin={args.pin} title={args.title} body={args.body} />
70
+ <AccordionItem type={args.type} pin={args.pin} title={args.title} body={args.body} />
71
+ <AccordionItem type={args.type} pin={args.pin} title={args.title} body={args.body} />
87
72
  </Accordion>
88
73
  );
89
74
  },
@@ -5,6 +5,7 @@ export declare const classes: {
5
5
  accordionItem: string;
6
6
  clearAccordionItem: string;
7
7
  accordionItemShowBody: string;
8
+ accordionPlusAnimationElement: string;
8
9
  };
9
10
  export declare const tokens: {
10
11
  accordionGap: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;CAOnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC"}
1
+ {"version":3,"file":"Accordion.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;CAQnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAA8C,MAAM,OAAO,CAAC;AAiB1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAqEvF,CAAC"}
1
+ {"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,cAAc,EAA8C,MAAM,OAAO,CAAC;AAkB1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,kBAAkB,CA4EvF,CAAC"}
@@ -8,5 +8,6 @@ export declare const StyledAccordionTitle: import("styled-components").StyledCom
8
8
  export declare const StyledAccordionBodyAnimate: import("styled-components").StyledComponent<"div", any, {}, never>;
9
9
  export declare const StyledAccordionBody: import("styled-components").StyledComponent<"div", any, {}, never>;
10
10
  export declare const StyledArrow: import("styled-components").StyledComponent<import("react").FC<import("../../../_Icon/IconRoot").IconProps>, any, {}, never>;
11
- export declare const StyledClose: import("styled-components").StyledComponent<import("react").FC<import("../../../_Icon/IconRoot").IconProps>, any, {}, never>;
11
+ export declare const StyledMinus: import("styled-components").StyledComponent<import("react").FC<import("../../../_Icon/IconRoot").IconProps>, any, {}, never>;
12
+ export declare const StyledPlus: import("styled-components").StyledComponent<"div", any, {}, never>;
12
13
  //# sourceMappingURL=AccordionItem.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,mBAAmB,oEAa/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAUjC,CAAC;AAEF,eAAO,MAAM,yBAAyB,oEAKrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,oEAOvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,oEAStC,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAQhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,oEAUtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,oEAW/B,CAAC;AAEF,eAAO,MAAM,WAAW,8HAIvB,CAAC;AAEF,eAAO,MAAM,WAAW,8HAOvB,CAAC"}
1
+ {"version":3,"file":"AccordionItem.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Accordion/ui/AccordionItem/AccordionItem.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,mBAAmB,oEAa/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,oEAUjC,CAAC;AAEF,eAAO,MAAM,yBAAyB,oEAKrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,oEAQvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,oEAStC,CAAC;AAEF,eAAO,MAAM,oBAAoB,oEAQhC,CAAC;AAEF,eAAO,MAAM,0BAA0B,oEAetC,CAAC;AAEF,eAAO,MAAM,mBAAmB,oEAW/B,CAAC;AAEF,eAAO,MAAM,WAAW,8HAIvB,CAAC;AAEF,eAAO,MAAM,WAAW,8HAmBvB,CAAC;AAEF,eAAO,MAAM,UAAU,oEAOtB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../IconRoot';
3
+ export declare const Minus: React.FC<IconProps>;
4
+ //# sourceMappingURL=Minus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Minus.d.ts","sourceRoot":"","sources":["../../../../src/components/_Icon/Icon.assets/Minus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAQrC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from '../IconRoot';
3
+ export declare const IconMinus: React.FC<IconProps>;
4
+ //# sourceMappingURL=IconMinus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconMinus.d.ts","sourceRoot":"","sources":["../../../../src/components/_Icon/Icons/IconMinus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAY,SAAS,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAEzC,CAAC"}
@@ -7,4 +7,5 @@ export { IconChevronDown } from './Icons/IconChevronDown';
7
7
  export { IconClose } from './Icons/IconClose';
8
8
  export { IconCross } from './Icons/IconCross';
9
9
  export { IconDone } from './Icons/IconDone';
10
+ export { IconMinus } from './Icons/IconMinus';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -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"}
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"}
@@ -5,7 +5,7 @@ export declare const config: {
5
5
  };
6
6
  variations: {
7
7
  view: {
8
- secondary: import("@linaria/core").LinariaClassName;
8
+ default: import("@linaria/core").LinariaClassName;
9
9
  clear: import("@linaria/core").LinariaClassName;
10
10
  };
11
11
  size: {
@@ -2,7 +2,7 @@
2
2
  import { AccordionItem } from '../../../../components/Accordion';
3
3
  export declare const Accordion: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
4
4
  view: {
5
- secondary: import("@linaria/core").LinariaClassName;
5
+ default: import("@linaria/core").LinariaClassName;
6
6
  clear: import("@linaria/core").LinariaClassName;
7
7
  };
8
8
  size: {
@@ -5,7 +5,7 @@ export declare const config: {
5
5
  };
6
6
  variations: {
7
7
  view: {
8
- secondary: import("@linaria/core").LinariaClassName;
8
+ default: import("@linaria/core").LinariaClassName;
9
9
  clear: import("@linaria/core").LinariaClassName;
10
10
  };
11
11
  size: {
@@ -2,7 +2,7 @@
2
2
  import { AccordionItem } from '../../../../components/Accordion';
3
3
  export declare const Accordion: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
4
4
  view: {
5
- secondary: import("@linaria/core").LinariaClassName;
5
+ default: import("@linaria/core").LinariaClassName;
6
6
  clear: import("@linaria/core").LinariaClassName;
7
7
  };
8
8
  size: {