@synerise/ds-description 0.3.1 → 0.3.5
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 +32 -0
- package/dist/Description.styles.js +5 -2
- package/dist/Row/Copy.js +5 -19
- package/package.json +8 -8
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.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-description@0.3.4...@synerise/ds-description@0.3.5) (2021-12-22)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-description
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.3.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-description@0.3.3...@synerise/ds-description@0.3.4) (2021-11-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-description
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.3.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-description@0.3.2...@synerise/ds-description@0.3.3) (2021-11-22)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @synerise/ds-description
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.3.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-description@0.3.1...@synerise/ds-description@0.3.2) (2021-11-16)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @synerise/ds-description
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [0.3.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-description@0.2.72...@synerise/ds-description@0.3.1) (2021-11-09)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @synerise/ds-description
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { PrefixWrapper, RowLabel, RowValue, RowWrapper, SuffixWrapper, ValueWrapper } from './Row/DescriptionRow.styles';
|
|
3
3
|
|
|
4
|
-
var getColumnsWidth = function getColumnsWidth() {
|
|
5
|
-
|
|
4
|
+
var getColumnsWidth = function getColumnsWidth(ratio) {
|
|
5
|
+
if (ratio === void 0) {
|
|
6
|
+
ratio = null;
|
|
7
|
+
}
|
|
8
|
+
|
|
6
9
|
var mapRatioToWidth = {
|
|
7
10
|
'20-80': '2fr 8fr',
|
|
8
11
|
'30-70': '3fr 7fr',
|
package/dist/Row/Copy.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
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); }
|
|
6
|
-
|
|
7
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
-
|
|
9
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
-
|
|
11
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
-
|
|
13
1
|
import Tooltip from '@synerise/ds-tooltip/dist/Tooltip';
|
|
14
2
|
import Icon, { CopyClipboardM } from '@synerise/ds-icon';
|
|
15
3
|
import * as React from 'react';
|
|
@@ -36,14 +24,12 @@ var Copy = function Copy(_ref) {
|
|
|
36
24
|
}, [texts, formatMessage]);
|
|
37
25
|
|
|
38
26
|
var _React$useState = React.useState(false),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
setTooltipVisible = _React$useState2[1];
|
|
27
|
+
tooltipVisible = _React$useState[0],
|
|
28
|
+
setTooltipVisible = _React$useState[1];
|
|
42
29
|
|
|
43
|
-
var _React$
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
setTooltipTitle = _React$useState4[1];
|
|
30
|
+
var _React$useState2 = React.useState(textsObj.copyTooltip),
|
|
31
|
+
tooltipTitle = _React$useState2[0],
|
|
32
|
+
setTooltipTitle = _React$useState2[1];
|
|
47
33
|
|
|
48
34
|
var handleCopy = React.useCallback(function () {
|
|
49
35
|
if (copyValue && copy(copyValue)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-description",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Description UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
],
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-avatar": "^0.14.
|
|
36
|
-
"@synerise/ds-button": "^0.16.
|
|
37
|
-
"@synerise/ds-core": "^0.31.
|
|
38
|
-
"@synerise/ds-icon": "^0.46.
|
|
39
|
-
"@synerise/ds-tooltip": "^0.11.
|
|
40
|
-
"@synerise/ds-typography": "^0.12.
|
|
35
|
+
"@synerise/ds-avatar": "^0.14.5",
|
|
36
|
+
"@synerise/ds-button": "^0.16.3",
|
|
37
|
+
"@synerise/ds-core": "^0.31.2",
|
|
38
|
+
"@synerise/ds-icon": "^0.46.2",
|
|
39
|
+
"@synerise/ds-tooltip": "^0.11.3",
|
|
40
|
+
"@synerise/ds-typography": "^0.12.2",
|
|
41
41
|
"classnames": "^2.2.6"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@synerise/ds-utils": "^0.19.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "a89cd14cdbe25b06949b3b9763e58a080111c160"
|
|
52
52
|
}
|