@synerise/ds-ordered-list 0.2.45 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +32 -0
- package/dist/Elements/Item/Item.js +2 -2
- package/dist/Ordered-list.js +6 -4
- package/dist/Ordered-list.types.js +1 -0
- package/package.json +4 -4
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.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
|
+
|
8
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [0.2.48](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.2.47...@synerise/ds-ordered-list@0.2.48) (2021-11-05)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
## [0.2.47](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.2.45...@synerise/ds-ordered-list@0.2.47) (2021-10-26)
|
23
|
+
|
24
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
## [0.2.46](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.2.45...@synerise/ds-ordered-list@0.2.46) (2021-10-19)
|
31
|
+
|
32
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
6
38
|
## [0.2.45](https://github.com/Synerise/synerise-design/compare/@synerise/ds-ordered-list@0.2.44...@synerise/ds-ordered-list@0.2.45) (2021-10-19)
|
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 React.createElement(React.Fragment, null, React.createElement(S.ItemWrapper, null, React.createElement(S.IndexFormatterWrapper, null, indexFormatter ? indexFormatter(index) : index), prefixel, label, suffixel), !!subMenu && (subMenu === null || subMenu === void 0 ? void 0 : subMenu.length) > 0 && 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 || subMenu === void 0 ? 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 React.memo(Item);
|
25
|
+
export default /*#__PURE__*/React.memo(Item);
|
package/dist/Ordered-list.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
var _excluded = ["index"];
|
2
|
+
|
1
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); }
|
2
4
|
|
3
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; }
|
@@ -14,15 +16,15 @@ var OrderedList = function OrderedList(_ref) {
|
|
14
16
|
indexFormatter = _ref.indexFormatter,
|
15
17
|
listStyle = _ref.listStyle,
|
16
18
|
text = _ref.text;
|
17
|
-
return React.createElement("div", null, text && React.createElement(S.ContentAbove, null, React.createElement(Label, {
|
19
|
+
return /*#__PURE__*/React.createElement("div", null, text && /*#__PURE__*/React.createElement(S.ContentAbove, null, /*#__PURE__*/React.createElement(Label, {
|
18
20
|
label: text
|
19
|
-
})), React.createElement(S.OrderedList, {
|
21
|
+
})), /*#__PURE__*/React.createElement(S.OrderedList, {
|
20
22
|
listStyle: listStyle
|
21
23
|
}, data.map(function (_ref2, i) {
|
22
24
|
var index = _ref2.index,
|
23
|
-
item = _objectWithoutProperties(_ref2,
|
25
|
+
item = _objectWithoutProperties(_ref2, _excluded);
|
24
26
|
|
25
|
-
return React.createElement(Item, _extends({
|
27
|
+
return /*#__PURE__*/React.createElement(Item, _extends({
|
26
28
|
listStyle: listStyle,
|
27
29
|
index: i,
|
28
30
|
key: String(item === null || item === void 0 ? void 0 : item.id),
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@synerise/ds-ordered-list",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.3.0",
|
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.
|
29
|
-
"@synerise/ds-input": "^0.
|
28
|
+
"@synerise/ds-icon": "^0.46.0",
|
29
|
+
"@synerise/ds-input": "^0.18.0",
|
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": "
|
36
|
+
"gitHead": "a797e1d5e1233f121f8f7dfbeaf97b48a8195d25"
|
37
37
|
}
|