@elliemae/ds-read-more 2.0.0-rc.6 → 2.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-read-more",
3
- "version": "2.0.0-rc.6",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Read More",
6
6
  "module": "./esm/index.js",
@@ -40,11 +40,12 @@
40
40
  "build": "node ../../scripts/build/build.js"
41
41
  },
42
42
  "dependencies": {
43
- "@elliemae/ds-basic": "2.0.0-rc.6",
44
- "@elliemae/ds-button": "2.0.0-rc.6",
43
+ "@elliemae/ds-button": "2.0.0",
44
+ "@elliemae/ds-shared": "2.0.0",
45
45
  "react-desc": "~4.1.3"
46
46
  },
47
47
  "devDependencies": {
48
+ "@testing-library/react": "~12.1.2",
48
49
  "styled-components": "~5.3.3"
49
50
  },
50
51
  "peerDependencies": {
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSReadMore: {
3
4
  ({ lines, more, less, onMore, onLess, content, buttonType, size, ellipsis, }: {
@@ -13,25 +14,47 @@ declare const DSReadMore: {
13
14
  }): JSX.Element;
14
15
  propTypes: {
15
16
  /** Ammount of lines after you want to display an ellipsis + more/less button */
16
- lines: any;
17
+ lines: {
18
+ deprecated: import("react-desc").PropTypesDescValidator;
19
+ };
17
20
  /** Label which will appear on the 'More' button */
18
- more: any;
21
+ more: {
22
+ deprecated: import("react-desc").PropTypesDescValidator;
23
+ };
19
24
  /** Label which will appear on the 'Less' button */
20
- less: any;
25
+ less: {
26
+ deprecated: import("react-desc").PropTypesDescValidator;
27
+ };
21
28
  /** Function which will execute when the user click the 'More' button */
22
- onMore: any;
29
+ onMore: {
30
+ defaultValue<T = unknown>(arg: T): {
31
+ deprecated: import("react-desc").PropTypesDescValidator;
32
+ };
33
+ isRequired: import("react-desc").PropTypesDescValidator;
34
+ };
23
35
  /** Function which will execute when the user click the 'Less' button */
24
- onLess: any;
36
+ onLess: {
37
+ defaultValue<T = unknown>(arg: T): {
38
+ deprecated: import("react-desc").PropTypesDescValidator;
39
+ };
40
+ isRequired: import("react-desc").PropTypesDescValidator;
41
+ };
25
42
  /** The text content you want displayed */
26
43
  content: any;
27
44
  /** 'The type of button for more/less button' */
28
- buttonType: any;
45
+ buttonType: {
46
+ deprecated: import("react-desc").PropTypesDescValidator;
47
+ };
29
48
  /**
30
49
  * ['s', 'm', 'l']
31
50
  */
32
- size: any;
51
+ size: {
52
+ deprecated: import("react-desc").PropTypesDescValidator;
53
+ };
33
54
  /** The text you want to appear when truncating */
34
- ellipsis: any;
55
+ ellipsis: {
56
+ deprecated: import("react-desc").PropTypesDescValidator;
57
+ };
35
58
  };
36
59
  };
37
60
  declare const DSReadMoreWithSchema: any;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const MoreLessButton: {
3
4
  ({ expanded, label, onClick, buttonType, size, ellipsis, }: {
@@ -10,11 +11,11 @@ declare const MoreLessButton: {
10
11
  }): JSX.Element;
11
12
  propTypes: {
12
13
  expanded: any;
13
- label: any;
14
- onClick: any;
15
- buttonType: any;
16
- size: any;
17
- ellipsis: any;
14
+ label: import("react-desc").PropTypesDescValue;
15
+ onClick: import("react-desc").PropTypesDescValue;
16
+ buttonType: import("react-desc").PropTypesDescValue;
17
+ size: import("react-desc").PropTypesDescValue;
18
+ ellipsis: import("react-desc").PropTypesDescValue;
18
19
  };
19
20
  };
20
21
  export { MoreLessButton };