@elliemae/ds-card 2.0.0-rc.5 → 2.0.0-rc.9

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-card",
3
- "version": "2.0.0-rc.5",
3
+ "version": "2.0.0-rc.9",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Card",
6
6
  "module": "./esm/index.js",
@@ -68,18 +68,20 @@
68
68
  "build": "node ../../scripts/build/build.js"
69
69
  },
70
70
  "dependencies": {
71
- "@elliemae/ds-button": "2.0.0-rc.5",
72
- "@elliemae/ds-classnames": "2.0.0-rc.5",
73
- "@elliemae/ds-form": "2.0.0-rc.5",
74
- "@elliemae/ds-grid": "2.0.0-rc.5",
75
- "@elliemae/ds-header": "2.0.0-rc.5",
76
- "@elliemae/ds-icons": "2.0.0-rc.5",
77
- "@elliemae/ds-separator": "2.0.0-rc.5",
78
- "@elliemae/ds-system": "2.0.0-rc.5",
79
- "@elliemae/ds-truncated-tooltip-text": "2.0.0-rc.5",
71
+ "@elliemae/ds-button": "2.0.0-rc.9",
72
+ "@elliemae/ds-classnames": "2.0.0-rc.9",
73
+ "@elliemae/ds-form": "2.0.0-rc.9",
74
+ "@elliemae/ds-grid": "2.0.0-rc.9",
75
+ "@elliemae/ds-header": "2.0.0-rc.9",
76
+ "@elliemae/ds-icons": "2.0.0-rc.9",
77
+ "@elliemae/ds-separator": "2.0.0-rc.9",
78
+ "@elliemae/ds-system": "2.0.0-rc.9",
79
+ "@elliemae/ds-truncated-tooltip-text": "2.0.0-rc.9",
80
80
  "react-desc": "~4.1.3"
81
81
  },
82
82
  "devDependencies": {
83
+ "@testing-library/jest-dom": "~5.15.0",
84
+ "@testing-library/react": "~12.1.2",
83
85
  "styled-components": "~5.3.3"
84
86
  },
85
87
  "peerDependencies": {
package/types/DSCard.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSCard: {
3
4
  ({ innerRef, children, containerProps, ...otherProps }: {
@@ -8,17 +9,41 @@ declare const DSCard: {
8
9
  }): JSX.Element;
9
10
  propTypes: {
10
11
  /** inject props to component wrapper */
11
- containerProps: any;
12
+ containerProps: {
13
+ defaultValue<T = unknown>(arg: T): {
14
+ deprecated: import("react-desc").PropTypesDescValidator;
15
+ };
16
+ isRequired: import("react-desc").PropTypesDescValidator;
17
+ };
12
18
  /**
13
19
  * Get reference for the button
14
20
  */
15
- innerRef: any;
21
+ innerRef: {
22
+ defaultValue<T = unknown>(arg: T): {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ isRequired: import("react-desc").PropTypesDescValidator;
26
+ };
16
27
  /**
17
28
  * DSCardBody and DSCardHeader
18
29
  */
19
- children: any;
30
+ children: {
31
+ defaultValue<T = unknown>(arg: T): {
32
+ deprecated: import("react-desc").PropTypesDescValidator;
33
+ };
34
+ isRequired: import("react-desc").PropTypesDescValidator;
35
+ };
20
36
  };
21
37
  };
22
- declare const DSCardWithSchema: any;
38
+ declare const DSCardWithSchema: {
39
+ (props?: {
40
+ [x: string]: any;
41
+ innerRef?: undefined;
42
+ children?: null | undefined;
43
+ containerProps?: {} | undefined;
44
+ } | undefined): JSX.Element;
45
+ propTypes: unknown;
46
+ toTypescript: () => import("react-desc").TypescriptSchema;
47
+ };
23
48
  export { DSCard, DSCardWithSchema };
24
49
  export default DSCard;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSCardBody: {
3
4
  ({ children }: {
@@ -5,9 +6,20 @@ declare const DSCardBody: {
5
6
  }): JSX.Element;
6
7
  propTypes: {
7
8
  /** children */
8
- children: any;
9
+ children: {
10
+ defaultValue<T = unknown>(arg: T): {
11
+ deprecated: import("react-desc").PropTypesDescValidator;
12
+ };
13
+ isRequired: import("react-desc").PropTypesDescValidator;
14
+ };
9
15
  };
10
16
  };
11
- declare const DSCardBodyWithSchema: any;
17
+ declare const DSCardBodyWithSchema: {
18
+ (props?: {
19
+ children: any;
20
+ } | undefined): JSX.Element;
21
+ propTypes: unknown;
22
+ toTypescript: () => import("react-desc").TypescriptSchema;
23
+ };
12
24
  export { DSCardBody, DSCardBodyWithSchema };
13
25
  export default DSCardBody;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DSCardHeader: {
3
4
  ({ title, action }: {
@@ -6,11 +7,28 @@ declare const DSCardHeader: {
6
7
  }): JSX.Element;
7
8
  propTypes: {
8
9
  /** card header title */
9
- title: any;
10
+ title: {
11
+ defaultValue<T = unknown>(arg: T): {
12
+ deprecated: import("react-desc").PropTypesDescValidator;
13
+ };
14
+ isRequired: import("react-desc").PropTypesDescValidator;
15
+ };
10
16
  /** action */
11
- action: any;
17
+ action: {
18
+ defaultValue<T = unknown>(arg: T): {
19
+ deprecated: import("react-desc").PropTypesDescValidator;
20
+ };
21
+ isRequired: import("react-desc").PropTypesDescValidator;
22
+ };
12
23
  };
13
24
  };
14
- declare const DSCardHeaderWithSchema: any;
25
+ declare const DSCardHeaderWithSchema: {
26
+ (props?: {
27
+ title: any;
28
+ action: any;
29
+ } | undefined): JSX.Element;
30
+ propTypes: unknown;
31
+ toTypescript: () => import("react-desc").TypescriptSchema;
32
+ };
15
33
  export { DSCardHeader, DSCardHeaderWithSchema };
16
34
  export default DSCardHeader;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const DetailCard: {
3
4
  ({ title, description, descriptionColor, rightValue, rightDescription, rightAddon, selectable, isSelected, onSelect, expandable, isExpanded, onExpand, expandContent, readOnly, disabled, }: {
@@ -25,61 +26,151 @@ declare const DetailCard: {
25
26
  /**
26
27
  * Description of the card.
27
28
  */
28
- description: any;
29
+ description: {
30
+ defaultValue<T = unknown>(arg: T): {
31
+ deprecated: import("react-desc").PropTypesDescValidator;
32
+ };
33
+ isRequired: import("react-desc").PropTypesDescValidator;
34
+ };
29
35
  /**
30
36
  * Description color.
31
37
  */
32
- descriptionColor: any;
38
+ descriptionColor: {
39
+ defaultValue<T = unknown>(arg: T): {
40
+ deprecated: import("react-desc").PropTypesDescValidator;
41
+ };
42
+ isRequired: import("react-desc").PropTypesDescValidator;
43
+ };
33
44
  /**
34
45
  * Right value (should be used with `rightDescription`)
35
46
  */
36
- rightValue: any;
47
+ rightValue: {
48
+ defaultValue<T = unknown>(arg: T): {
49
+ deprecated: import("react-desc").PropTypesDescValidator;
50
+ };
51
+ isRequired: import("react-desc").PropTypesDescValidator;
52
+ };
37
53
  /**
38
54
  * Right description (should be used with `rightValue`)
39
55
  */
40
- rightDescription: any;
56
+ rightDescription: {
57
+ defaultValue<T = unknown>(arg: T): {
58
+ deprecated: import("react-desc").PropTypesDescValidator;
59
+ };
60
+ isRequired: import("react-desc").PropTypesDescValidator;
61
+ };
41
62
  /**
42
63
  * Right addon array, max elements: 2
43
64
  */
44
- rightAddon: any;
65
+ rightAddon: {
66
+ defaultValue<T = unknown>(arg: T): {
67
+ deprecated: import("react-desc").PropTypesDescValidator;
68
+ };
69
+ isRequired: import("react-desc").PropTypesDescValidator;
70
+ };
45
71
  /**
46
72
  * Whether if the card is selectable or not
47
73
  */
48
- selectable: any;
74
+ selectable: {
75
+ defaultValue<T = unknown>(arg: T): {
76
+ deprecated: import("react-desc").PropTypesDescValidator;
77
+ };
78
+ isRequired: import("react-desc").PropTypesDescValidator;
79
+ };
49
80
  /**
50
81
  * Whether if the card is selected or not
51
82
  */
52
- isSelected: any;
83
+ isSelected: {
84
+ defaultValue<T = unknown>(arg: T): {
85
+ deprecated: import("react-desc").PropTypesDescValidator;
86
+ };
87
+ isRequired: import("react-desc").PropTypesDescValidator;
88
+ };
53
89
  /**
54
90
  * Callback on selection
55
91
  */
56
- onSelect: any;
92
+ onSelect: {
93
+ defaultValue<T = unknown>(arg: T): {
94
+ deprecated: import("react-desc").PropTypesDescValidator;
95
+ };
96
+ isRequired: import("react-desc").PropTypesDescValidator;
97
+ };
57
98
  /**
58
99
  * Whether if the card is expandable or not
59
100
  */
60
- expandable: any;
101
+ expandable: {
102
+ defaultValue<T = unknown>(arg: T): {
103
+ deprecated: import("react-desc").PropTypesDescValidator;
104
+ };
105
+ isRequired: import("react-desc").PropTypesDescValidator;
106
+ };
61
107
  /**
62
108
  * Whether if the card is expanded or not
63
109
  */
64
- isExpanded: any;
110
+ isExpanded: {
111
+ defaultValue<T = unknown>(arg: T): {
112
+ deprecated: import("react-desc").PropTypesDescValidator;
113
+ };
114
+ isRequired: import("react-desc").PropTypesDescValidator;
115
+ };
65
116
  /**
66
117
  * Callback on expand
67
118
  */
68
- onExpand: any;
119
+ onExpand: {
120
+ defaultValue<T = unknown>(arg: T): {
121
+ deprecated: import("react-desc").PropTypesDescValidator;
122
+ };
123
+ isRequired: import("react-desc").PropTypesDescValidator;
124
+ };
69
125
  /**
70
126
  * Content
71
127
  */
72
- expandContent: any;
128
+ expandContent: {
129
+ defaultValue<T = unknown>(arg: T): {
130
+ deprecated: import("react-desc").PropTypesDescValidator;
131
+ };
132
+ isRequired: import("react-desc").PropTypesDescValidator;
133
+ };
73
134
  /**
74
135
  * Read only
75
136
  */
76
- readOnly: any;
137
+ readOnly: {
138
+ defaultValue<T = unknown>(arg: T): {
139
+ deprecated: import("react-desc").PropTypesDescValidator;
140
+ };
141
+ isRequired: import("react-desc").PropTypesDescValidator;
142
+ };
77
143
  /**
78
144
  * Disabled
79
145
  */
80
- disabled: any;
146
+ disabled: {
147
+ defaultValue<T = unknown>(arg: T): {
148
+ deprecated: import("react-desc").PropTypesDescValidator;
149
+ };
150
+ isRequired: import("react-desc").PropTypesDescValidator;
151
+ };
81
152
  };
82
153
  };
83
- declare const DSCardDetailWithSchema: any;
154
+ declare const DSCardDetailWithSchema: {
155
+ (props?: {
156
+ title: any;
157
+ description: any;
158
+ descriptionColor?: string | undefined;
159
+ rightValue: any;
160
+ rightDescription: any;
161
+ rightAddon: any;
162
+ selectable?: boolean | undefined;
163
+ isSelected?: boolean | undefined;
164
+ onSelect?: ((...args: any[]) => void) | undefined;
165
+ expandable?: boolean | undefined;
166
+ isExpanded?: boolean | undefined;
167
+ onExpand?: ((...args: any[]) => void) | undefined;
168
+ expandContent: any;
169
+ readOnly?: boolean | undefined;
170
+ disabled?: boolean | undefined;
171
+ } | undefined): JSX.Element;
172
+ propTypes: unknown;
173
+ toTypescript: () => import("react-desc").TypescriptSchema;
174
+ };
84
175
  export { DetailCard, DSCardDetailWithSchema };
85
176
  export default DetailCard;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- export declare const Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const Title: import("styled-components").StyledComponent<"h3", any, {}, never>;
4
- export declare const Description: import("styled-components").StyledComponent<"p", any, {}, never>;
5
- export declare const RightAddon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
6
- export declare const RightDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
7
- export declare const RightValue: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
8
- export declare const ExpandContent: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const Separator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Title: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Description: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const RightAddon: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const RightDescription: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const RightValue: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const ExpandContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const Container: any;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const ActionAddon: {
3
4
  ({ label, onClick, icon }: {
@@ -9,17 +10,40 @@ declare const ActionAddon: {
9
10
  /**
10
11
  * Addon label
11
12
  */
12
- label: any;
13
+ label: {
14
+ defaultValue<T = unknown>(arg: T): {
15
+ deprecated: import("react-desc").PropTypesDescValidator;
16
+ };
17
+ isRequired: import("react-desc").PropTypesDescValidator;
18
+ };
13
19
  /**
14
20
  * On click callback
15
21
  */
16
- onClick: any;
22
+ onClick: {
23
+ defaultValue<T = unknown>(arg: T): {
24
+ deprecated: import("react-desc").PropTypesDescValidator;
25
+ };
26
+ isRequired: import("react-desc").PropTypesDescValidator;
27
+ };
17
28
  /**
18
29
  * Icon to display after the label
19
30
  */
20
- icon: any;
31
+ icon: {
32
+ defaultValue<T = unknown>(arg: T): {
33
+ deprecated: import("react-desc").PropTypesDescValidator;
34
+ };
35
+ isRequired: import("react-desc").PropTypesDescValidator;
36
+ };
21
37
  };
22
38
  };
23
- declare const DSCardActionAddonWithSchema: any;
39
+ declare const DSCardActionAddonWithSchema: {
40
+ (props?: {
41
+ label: any;
42
+ onClick: any;
43
+ icon: any;
44
+ } | undefined): JSX.Element;
45
+ propTypes: unknown;
46
+ toTypescript: () => import("react-desc").TypescriptSchema;
47
+ };
24
48
  export { ActionAddon, DSCardActionAddonWithSchema };
25
49
  export default ActionAddon;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const CustomCard: {
3
4
  ({ title, description, leftAddon, rightAddon, hasBorder, }: {
@@ -15,21 +16,51 @@ declare const CustomCard: {
15
16
  /**
16
17
  * Description of the card. not requiered
17
18
  */
18
- description: any;
19
+ description: {
20
+ defaultValue<T = unknown>(arg: T): {
21
+ deprecated: import("react-desc").PropTypesDescValidator;
22
+ };
23
+ isRequired: import("react-desc").PropTypesDescValidator;
24
+ };
19
25
  /**
20
26
  * Left Addon
21
27
  */
22
- leftAddon: any;
28
+ leftAddon: {
29
+ defaultValue<T = unknown>(arg: T): {
30
+ deprecated: import("react-desc").PropTypesDescValidator;
31
+ };
32
+ isRequired: import("react-desc").PropTypesDescValidator;
33
+ };
23
34
  /**
24
35
  * Right addon array, max elements: 2
25
36
  */
26
- rightAddon: any;
37
+ rightAddon: {
38
+ defaultValue<T = unknown>(arg: T): {
39
+ deprecated: import("react-desc").PropTypesDescValidator;
40
+ };
41
+ isRequired: import("react-desc").PropTypesDescValidator;
42
+ };
27
43
  /**
28
44
  * Wheter if the card has border or not
29
45
  */
30
- hasBorder: any;
46
+ hasBorder: {
47
+ defaultValue<T = unknown>(arg: T): {
48
+ deprecated: import("react-desc").PropTypesDescValidator;
49
+ };
50
+ isRequired: import("react-desc").PropTypesDescValidator;
51
+ };
31
52
  };
32
53
  };
33
- declare const DSCardCustomWithSchema: any;
54
+ declare const DSCardCustomWithSchema: {
55
+ (props?: {
56
+ title: any;
57
+ description: any;
58
+ leftAddon: any;
59
+ rightAddon: any;
60
+ hasBorder?: boolean | undefined;
61
+ } | undefined): JSX.Element;
62
+ propTypes: unknown;
63
+ toTypescript: () => import("react-desc").TypescriptSchema;
64
+ };
34
65
  export { CustomCard, DSCardCustomWithSchema };
35
66
  export default CustomCard;
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const CardGroup: {
3
4
  ({ children, title, action }: {
@@ -17,9 +18,22 @@ declare const CardGroup: {
17
18
  /**
18
19
  * Right addon action
19
20
  */
20
- action: any;
21
+ action: {
22
+ defaultValue<T = unknown>(arg: T): {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ isRequired: import("react-desc").PropTypesDescValidator;
26
+ };
21
27
  };
22
28
  };
23
- declare const DSCardGroupWithSchema: any;
29
+ declare const DSCardGroupWithSchema: {
30
+ (props?: {
31
+ children: any;
32
+ title: any;
33
+ action: any;
34
+ } | undefined): JSX.Element;
35
+ propTypes: unknown;
36
+ toTypescript: () => import("react-desc").TypescriptSchema;
37
+ };
24
38
  export { CardGroup, DSCardGroupWithSchema };
25
39
  export default CardGroup;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- declare const CardContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
3
- declare const LeftSection: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- declare const LeftAddon: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- declare const RightAddonSection: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- declare const RightAddon: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- declare const Separator: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- declare const MainSection: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- declare const Title: import("styled-components").StyledComponent<"h3", any, {}, never>;
10
- declare const Description: import("styled-components").StyledComponent<"p", any, {}, never>;
2
+ declare const CardContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@elliemae/ds-grid/types/types").GridPropsT & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
3
+ declare const LeftSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ declare const LeftAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ declare const RightAddonSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ declare const RightAddon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
+ declare const Separator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
+ declare const MainSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ declare const Title: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
10
+ declare const Description: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
11
11
  export { CardContainer, LeftSection, LeftAddon, RightAddonSection, RightAddon, Separator, MainSection, Title, Description, };