@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/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 |
@@ -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;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import classnames from 'classnames';
2
+ import React from 'react';
3
3
  import * as S from './Description.styles';
4
4
  var Description = function Description(_ref) {
5
5
  var _ref$type = _ref.type,
@@ -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"
@@ -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,4 +1,4 @@
1
1
  import React from 'react';
2
- import { DescriptionRowProps } from './DescriptionRow.types';
2
+ import { type DescriptionRowProps } from './DescriptionRow.types';
3
3
  declare const DescriptionRow: React.FC<DescriptionRowProps>;
4
4
  export default DescriptionRow;
@@ -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,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  export interface DescriptionRowProps {
3
3
  label?: string | React.ReactNode;
4
4
  labelIcon?: React.ReactNode;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { StarProps } from './Star.types';
2
+ import { type StarProps } from './Star.types';
3
3
  declare const Star: React.FC<StarProps>;
4
4
  export default Star;
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.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.3",
38
- "@synerise/ds-tooltip": "^1.1.11",
39
- "@synerise/ds-utils": "^1.3.0",
40
- "classnames": "2.3.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": "11fe1d29b2ac23e70c3d5e6ce8ae20201a619a34"
49
+ "gitHead": "8db1900bf3f7b0782c834ff82f628199530cd934"
50
50
  }