@synerise/ds-ordered-list 0.3.0 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.3.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.3.3...@synerise/ds-ordered-list@0.3.4) (2022-01-17)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-ordered-list
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.3.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.3.2...@synerise/ds-ordered-list@0.3.3) (2021-12-22)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-ordered-list
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.3.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.3.1...@synerise/ds-ordered-list@0.3.2) (2021-11-22)
23
+
24
+ **Note:** Version bump only for package @synerise/ds-ordered-list
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.3.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.2.48...@synerise/ds-ordered-list@0.3.1) (2021-11-09)
31
+
32
+ **Note:** Version bump only for package @synerise/ds-ordered-list
33
+
34
+
35
+
36
+
37
+
6
38
  # [0.3.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.2.48...@synerise/ds-ordered-list@0.3.0) (2021-11-09)
7
39
 
8
40
  **Note:** Version bump only for package @synerise/ds-ordered-list
@@ -14,7 +14,7 @@ var Item = function Item(_ref) {
14
14
  listStyle = _ref.listStyle,
15
15
  subMenuProps = _ref.subMenuProps,
16
16
  text = _ref.text;
17
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.ItemWrapper, null, /*#__PURE__*/React.createElement(S.IndexFormatterWrapper, null, indexFormatter ? indexFormatter(index) : index), prefixel, label, suffixel), !!subMenu && (subMenu === null || subMenu === void 0 ? void 0 : subMenu.length) > 0 && /*#__PURE__*/React.createElement(OrderedList, _extends({
17
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.ItemWrapper, null, /*#__PURE__*/React.createElement(S.IndexFormatterWrapper, null, indexFormatter ? indexFormatter(index) : index), prefixel, label, suffixel), !!subMenu && (subMenu == null ? void 0 : subMenu.length) > 0 && /*#__PURE__*/React.createElement(OrderedList, _extends({
18
18
  text: text,
19
19
  indexFormatter: indexFormatter,
20
20
  data: subMenu,
@@ -22,4 +22,4 @@ var Item = function Item(_ref) {
22
22
  }, subMenuProps)));
23
23
  };
24
24
 
25
- export default /*#__PURE__*/React.memo(Item);
25
+ export default React.memo(Item);
@@ -2,8 +2,6 @@ var _excluded = ["index"];
2
2
 
3
3
  function _extends() { _extends = Object.assign || 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); }
4
4
 
5
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
-
7
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
6
 
9
7
  import * as React from 'react';
@@ -22,12 +20,12 @@ var OrderedList = function OrderedList(_ref) {
22
20
  listStyle: listStyle
23
21
  }, data.map(function (_ref2, i) {
24
22
  var index = _ref2.index,
25
- item = _objectWithoutProperties(_ref2, _excluded);
23
+ item = _objectWithoutPropertiesLoose(_ref2, _excluded);
26
24
 
27
25
  return /*#__PURE__*/React.createElement(Item, _extends({
28
26
  listStyle: listStyle,
29
27
  index: i,
30
- key: String(item === null || item === void 0 ? void 0 : item.id),
28
+ key: String(item == null ? void 0 : item.id),
31
29
  indexFormatter: indexFormatter
32
30
  }, item));
33
31
  })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-ordered-list",
3
- "version": "0.3.0",
3
+ "version": "0.3.4",
4
4
  "description": "OrderedList UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -25,13 +25,13 @@
25
25
  ],
26
26
  "types": "dist/index.d.ts",
27
27
  "dependencies": {
28
- "@synerise/ds-icon": "^0.46.0",
29
- "@synerise/ds-input": "^0.18.0",
28
+ "@synerise/ds-icon": "^0.47.0",
29
+ "@synerise/ds-input": "^0.18.4",
30
30
  "@synerise/ds-utils": "^0.11.16"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@synerise/ds-core": "*",
34
34
  "react": ">=16.9.0 < 17.0.0"
35
35
  },
36
- "gitHead": "a797e1d5e1233f121f8f7dfbeaf97b48a8195d25"
36
+ "gitHead": "56c08eca6e2a1e41b8a39e28a9ec657ac1bdec83"
37
37
  }