@elliemae/ds-card 2.0.0-alpha.1 → 2.0.0-alpha.13
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/cjs/DSCard.js +8 -3
- package/cjs/DSCardBody.js +10 -7
- package/cjs/DSCardHeader.js +9 -8
- package/cjs/detail/DetailCard.js +42 -45
- package/cjs/detail/styled.js +25 -23
- package/cjs/index.js +1 -1
- package/cjs/v2/ActionAddon.js +17 -15
- package/cjs/v2/Card.js +32 -29
- package/cjs/v2/Group.js +22 -16
- package/cjs/v2/components.js +16 -13
- package/esm/DSCard.js +5 -0
- package/esm/DSCardBody.js +9 -6
- package/esm/DSCardHeader.js +5 -4
- package/esm/detail/DetailCard.js +24 -24
- package/esm/detail/styled.js +15 -13
- package/esm/v2/ActionAddon.js +15 -12
- package/esm/v2/Card.js +31 -28
- package/esm/v2/Group.js +17 -11
- package/esm/v2/components.js +7 -4
- package/package.json +14 -12
- package/types/DSCard.d.ts +29 -4
- package/types/DSCardBody.d.ts +14 -2
- package/types/DSCardHeader.d.ts +21 -3
- package/types/detail/DetailCard.d.ts +106 -15
- package/types/detail/styled.d.ts +7 -7
- package/types/v2/ActionAddon.d.ts +28 -4
- package/types/v2/Card.d.ts +36 -5
- package/types/v2/Group.d.ts +16 -2
- package/types/v2/components.d.ts +9 -9
- package/cjs/package.json +0 -7
- package/esm/package.json +0 -7
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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;
|
package/types/v2/Card.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 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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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;
|
package/types/v2/Group.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 CardGroup: {
|
|
3
4
|
({ children, title, action }: {
|
|
@@ -17,9 +18,22 @@ declare const CardGroup: {
|
|
|
17
18
|
/**
|
|
18
19
|
* Right addon action
|
|
19
20
|
*/
|
|
20
|
-
action:
|
|
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:
|
|
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;
|
package/types/v2/components.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
declare const CardContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<
|
|
3
|
-
declare const LeftSection: import("styled-components").StyledComponent<"div",
|
|
4
|
-
declare const LeftAddon: import("styled-components").StyledComponent<"div",
|
|
5
|
-
declare const RightAddonSection: import("styled-components").StyledComponent<"div",
|
|
6
|
-
declare const RightAddon: import("styled-components").StyledComponent<"div",
|
|
7
|
-
declare const Separator: import("styled-components").StyledComponent<"div",
|
|
8
|
-
declare const MainSection: import("styled-components").StyledComponent<"div",
|
|
9
|
-
declare const Title: import("styled-components").StyledComponent<"h3",
|
|
10
|
-
declare const Description: import("styled-components").StyledComponent<"p",
|
|
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, };
|
package/cjs/package.json
DELETED