@synerise/ds-information-card 0.7.6 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/InformationCardDescription/InformationCardDescription.js +7 -6
- package/dist/InformationCardPropertyList/InformationCardPropertyList.js +2 -6
- package/dist/InformationCardSummary/InformationCardSummary.js +1 -6
- package/dist/modules.d.js +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.8.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-information-card@0.7.7...@synerise/ds-information-card@0.8.0) (2025-01-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.7.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-information-card@0.7.6...@synerise/ds-information-card@0.7.7) (2025-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-information-card
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.7.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-information-card@0.7.5...@synerise/ds-information-card@0.7.6) (2025-01-15)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-information-card
|
|
@@ -20,12 +20,13 @@ export var InformationCardDescription = function InformationCardDescription(_ref
|
|
|
20
20
|
},
|
|
21
21
|
placeholder: "placeholder",
|
|
22
22
|
suffixTooltip: "Edit"
|
|
23
|
-
}, descriptionConfig,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
}, descriptionConfig, {
|
|
24
|
+
// {...(descriptionConfig.error
|
|
25
|
+
// ? {
|
|
26
|
+
// error: descriptionConfig.error,
|
|
27
|
+
// errorText: (isError: boolean, text: string) => (isError ? text : ''),
|
|
28
|
+
// }
|
|
29
|
+
// : {})}
|
|
29
30
|
disabled: descriptionConfig.disabled
|
|
30
31
|
}));
|
|
31
32
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
function
|
|
2
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
5
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
|
+
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); }
|
|
6
2
|
import React, { useMemo } from 'react';
|
|
7
3
|
import { v4 as uuid } from 'uuid';
|
|
8
4
|
import * as S from '../InformationCard.styles';
|
|
@@ -10,7 +6,7 @@ export var InformationCardPropertyList = function InformationCardPropertyList(_r
|
|
|
10
6
|
var items = _ref.items;
|
|
11
7
|
var itemsWithIDs = useMemo(function () {
|
|
12
8
|
return items == null ? void 0 : items.map(function (item) {
|
|
13
|
-
return
|
|
9
|
+
return _extends({
|
|
14
10
|
id: uuid()
|
|
15
11
|
}, item);
|
|
16
12
|
});
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
2
|
import React, { useMemo } from 'react';
|
|
8
3
|
import { v4 as uuid } from 'uuid';
|
|
9
4
|
import Tooltip from '@synerise/ds-tooltip/dist/Tooltip';
|
|
@@ -12,7 +7,7 @@ export var InformationCardSummary = function InformationCardSummary(_ref) {
|
|
|
12
7
|
var items = _ref.items;
|
|
13
8
|
var itemsWithIDs = useMemo(function () {
|
|
14
9
|
return items == null ? void 0 : items.map(function (item) {
|
|
15
|
-
return
|
|
10
|
+
return _extends({
|
|
16
11
|
id: uuid()
|
|
17
12
|
}, item);
|
|
18
13
|
});
|
package/dist/modules.d.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import '@testing-library/jest-dom
|
|
1
|
+
import '@testing-library/jest-dom';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-information-card",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "InformationCard UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -35,28 +35,28 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-alert": "^0.
|
|
39
|
-
"@synerise/ds-avatar": "^0.
|
|
40
|
-
"@synerise/ds-badge": "^0.
|
|
41
|
-
"@synerise/ds-button": "^0.
|
|
42
|
-
"@synerise/ds-card": "^0.
|
|
43
|
-
"@synerise/ds-description": "^0.
|
|
44
|
-
"@synerise/ds-divider": "^0.
|
|
45
|
-
"@synerise/ds-dropdown": "^0.
|
|
46
|
-
"@synerise/ds-icon": "^0.
|
|
47
|
-
"@synerise/ds-menu": "^0.
|
|
48
|
-
"@synerise/ds-scrollbar": "^0.
|
|
49
|
-
"@synerise/ds-subtle-form": "^0.
|
|
50
|
-
"@synerise/ds-tooltip": "^0.
|
|
51
|
-
"@synerise/ds-typography": "^0.
|
|
52
|
-
"@synerise/ds-utils": "^0.
|
|
53
|
-
"rc-trigger": "5.
|
|
38
|
+
"@synerise/ds-alert": "^0.9.0",
|
|
39
|
+
"@synerise/ds-avatar": "^0.18.0",
|
|
40
|
+
"@synerise/ds-badge": "^0.9.0",
|
|
41
|
+
"@synerise/ds-button": "^0.23.0",
|
|
42
|
+
"@synerise/ds-card": "^0.20.0",
|
|
43
|
+
"@synerise/ds-description": "^0.5.0",
|
|
44
|
+
"@synerise/ds-divider": "^0.8.0",
|
|
45
|
+
"@synerise/ds-dropdown": "^0.19.0",
|
|
46
|
+
"@synerise/ds-icon": "^0.71.0",
|
|
47
|
+
"@synerise/ds-menu": "^0.21.0",
|
|
48
|
+
"@synerise/ds-scrollbar": "^0.12.0",
|
|
49
|
+
"@synerise/ds-subtle-form": "^0.10.0",
|
|
50
|
+
"@synerise/ds-tooltip": "^0.15.0",
|
|
51
|
+
"@synerise/ds-typography": "^0.17.0",
|
|
52
|
+
"@synerise/ds-utils": "^0.32.0",
|
|
53
|
+
"rc-trigger": "^5.3.4"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@synerise/ds-core": "*",
|
|
57
|
-
"react": ">=16.9.0 <=
|
|
57
|
+
"react": ">=16.9.0 <= 18.3.1",
|
|
58
58
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
59
|
-
"styled-components": "5.
|
|
59
|
+
"styled-components": "^5.3.3"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "fbde34e126b492edaf148e469ab96247a891d6df"
|
|
62
62
|
}
|