@synerise/ds-ordered-list 0.2.47 → 0.3.2
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 +1 -1
- package/dist/Ordered-list.js +7 -7
- 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.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)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [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)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
# [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)
|
23
|
+
|
24
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
## [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)
|
31
|
+
|
32
|
+
**Note:** Version bump only for package @synerise/ds-ordered-list
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
6
38
|
## [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)
|
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
|
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,
|
package/dist/Ordered-list.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
var _excluded = ["index"];
|
2
2
|
|
3
|
-
function
|
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
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; }
|
6
6
|
|
@@ -14,18 +14,18 @@ var OrderedList = function OrderedList(_ref) {
|
|
14
14
|
indexFormatter = _ref.indexFormatter,
|
15
15
|
listStyle = _ref.listStyle,
|
16
16
|
text = _ref.text;
|
17
|
-
return React.createElement("div", null, text && React.createElement(S.ContentAbove, null, React.createElement(Label, {
|
17
|
+
return /*#__PURE__*/React.createElement("div", null, text && /*#__PURE__*/React.createElement(S.ContentAbove, null, /*#__PURE__*/React.createElement(Label, {
|
18
18
|
label: text
|
19
|
-
})), React.createElement(S.OrderedList, {
|
19
|
+
})), /*#__PURE__*/React.createElement(S.OrderedList, {
|
20
20
|
listStyle: listStyle
|
21
21
|
}, data.map(function (_ref2, i) {
|
22
22
|
var index = _ref2.index,
|
23
|
-
item =
|
23
|
+
item = _objectWithoutPropertiesLoose(_ref2, _excluded);
|
24
24
|
|
25
|
-
return React.createElement(Item, _extends({
|
25
|
+
return /*#__PURE__*/React.createElement(Item, _extends({
|
26
26
|
listStyle: listStyle,
|
27
27
|
index: i,
|
28
|
-
key: String(item
|
28
|
+
key: String(item == null ? void 0 : item.id),
|
29
29
|
indexFormatter: indexFormatter
|
30
30
|
}, item));
|
31
31
|
})));
|
@@ -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.2
|
3
|
+
"version": "0.3.2",
|
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.2",
|
29
|
+
"@synerise/ds-input": "^0.18.2",
|
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": "2468359677783819939fb9f1ef5acc36667ecd1a"
|
37
37
|
}
|