@synerise/ds-description 1.1.1 → 1.1.3
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 +430 -1447
- package/README.md +1 -2
- package/dist/Description.d.ts +2 -2
- package/dist/Description.js +1 -1
- package/dist/Description.styles.d.ts +1 -1
- package/dist/Description.styles.js +0 -2
- package/dist/Row/Copy.d.ts +2 -2
- package/dist/Row/Copy.js +3 -3
- package/dist/Row/DescriptionRow.d.ts +1 -1
- package/dist/Row/DescriptionRow.js +1 -1
- package/dist/Row/DescriptionRow.types.d.ts +1 -1
- package/dist/Row/Star.d.ts +1 -1
- package/dist/Row/Star.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -33,11 +33,10 @@ import Description, {DescriptionRow} from '@synerise/ds-description';
|
|
|
33
33
|
### Description
|
|
34
34
|
|
|
35
35
|
| Property | Description | Type | Default |
|
|
36
|
-
| -------- |
|
|
36
|
+
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | ------- |
|
|
37
37
|
| type | Type of description: `table` - description will looks like vertical table, `inline` - value will aligns to label, `dotted-list` - list with dots as prefix, without label, `numbered-list` - counted list, without labels | `table`/ `inline`/ `dotted-list`/ `numbered-list` | `table` |
|
|
38
38
|
| ratio | Define size of column if type='table' | `20-80`/ `30-70`/ `40-60`/ `50-50`/ `60-40`/ `70-30`/ `80-20` | `30-70` |
|
|
39
39
|
|
|
40
|
-
|
|
41
40
|
### DescriptionRow
|
|
42
41
|
|
|
43
42
|
| Property | Description | Type | Default |
|
package/dist/Description.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DescriptionProps } from './Description.types';
|
|
3
|
-
declare const Description: ({ type, children, ratio }: DescriptionProps) => React.JSX.Element;
|
|
2
|
+
import { type DescriptionProps } from './Description.types';
|
|
3
|
+
declare const Description: ({ type, children, ratio, }: DescriptionProps) => React.JSX.Element;
|
|
4
4
|
export default Description;
|
package/dist/Description.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DescriptionRatio, DescriptionType } from './Description.types';
|
|
1
|
+
import { type DescriptionRatio, type DescriptionType } from './Description.types';
|
|
2
2
|
export declare const Description: import("styled-components").StyledComponent<"div", any, {
|
|
3
3
|
type: DescriptionType;
|
|
4
4
|
ratio?: DescriptionRatio | undefined;
|
|
@@ -28,8 +28,6 @@ var dottedListStyles = function dottedListStyles(theme) {
|
|
|
28
28
|
var numberedListStyles = function numberedListStyles(theme) {
|
|
29
29
|
return css(["", ";counter-reset:count-description-rows;", "{", "{display:none;}counter-increment:count-description-rows;&::before{position:relative;height:24px;display:flex;align-items:center;justify-content:center;content:counter(count-description-rows,decimal-leading-zero) ':';color:", ";margin-right:8px;}}"], inlineStyles(), RowWrapper, RowLabel, theme.palette['grey-600']);
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
33
31
|
export var Description = styled.div.withConfig({
|
|
34
32
|
displayName: "Descriptionstyles__Description",
|
|
35
33
|
componentId: "sc-1myairu-0"
|
package/dist/Row/Copy.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { CopyProps } from './Copy.types';
|
|
3
|
-
declare const Copy: ({ copyValue, texts, className, onMouseEnter, onMouseLeave }: CopyProps) => React.JSX.Element;
|
|
2
|
+
import { type CopyProps } from './Copy.types';
|
|
3
|
+
declare const Copy: ({ copyValue, texts, className, onMouseEnter, onMouseLeave, }: CopyProps) => React.JSX.Element;
|
|
4
4
|
export default Copy;
|
package/dist/Row/Copy.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React, { useState, useMemo, useCallback } from 'react';
|
|
2
|
-
import Tooltip from '@synerise/ds-tooltip';
|
|
3
|
-
import Icon, { CopyClipboardM } from '@synerise/ds-icon';
|
|
4
1
|
import copy from 'copy-to-clipboard';
|
|
2
|
+
import React, { useCallback, useMemo, useState } from 'react';
|
|
5
3
|
import { useIntl } from 'react-intl';
|
|
4
|
+
import Icon, { CopyClipboardM } from '@synerise/ds-icon';
|
|
5
|
+
import Tooltip from '@synerise/ds-tooltip';
|
|
6
6
|
import * as S from './DescriptionRow.styles';
|
|
7
7
|
var Copy = function Copy(_ref) {
|
|
8
8
|
var copyValue = _ref.copyValue,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Copy from './Copy';
|
|
2
3
|
import * as S from './DescriptionRow.styles';
|
|
3
4
|
import Star from './Star';
|
|
4
|
-
import Copy from './Copy';
|
|
5
5
|
var DescriptionRow = function DescriptionRow(_ref) {
|
|
6
6
|
var label = _ref.label,
|
|
7
7
|
labelIcon = _ref.labelIcon,
|
package/dist/Row/Star.d.ts
CHANGED
package/dist/Row/Star.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Icon, { StarFillM, StarM } from '@synerise/ds-icon';
|
|
3
2
|
import { theme } from '@synerise/ds-core';
|
|
3
|
+
import Icon, { StarFillM, StarM } from '@synerise/ds-icon';
|
|
4
4
|
import * as S from './DescriptionRow.styles';
|
|
5
5
|
var Star = function Star(_ref) {
|
|
6
6
|
var starType = _ref.starType,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-description",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Description UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-icon": "^1.5.
|
|
38
|
-
"@synerise/ds-tooltip": "^1.1.
|
|
39
|
-
"@synerise/ds-utils": "^1.3.
|
|
40
|
-
"classnames": "2.
|
|
37
|
+
"@synerise/ds-icon": "^1.5.4",
|
|
38
|
+
"@synerise/ds-tooltip": "^1.1.12",
|
|
39
|
+
"@synerise/ds-utils": "^1.3.1",
|
|
40
|
+
"classnames": "^2.5.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@synerise/ds-core": "*",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
47
47
|
"styled-components": "^5.3.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "8db1900bf3f7b0782c834ff82f628199530cd934"
|
|
50
50
|
}
|