@elliemae/ds-group-box 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 +6 -4
- package/types/DSGroupBox.d.ts +76 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-group-box",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Group Box",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -64,13 +64,15 @@
|
|
|
64
64
|
"build": "node ../../scripts/build/build.js"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@elliemae/ds-classnames": "2.0.0
|
|
68
|
-
"@elliemae/ds-system": "2.0.0
|
|
69
|
-
"@elliemae/ds-truncated-tooltip-text": "2.0.0
|
|
67
|
+
"@elliemae/ds-classnames": "2.0.0",
|
|
68
|
+
"@elliemae/ds-system": "2.0.0",
|
|
69
|
+
"@elliemae/ds-truncated-tooltip-text": "2.0.0",
|
|
70
70
|
"prop-types": "~15.7.2",
|
|
71
71
|
"react-desc": "~4.1.3"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
+
"@testing-library/jest-dom": "~5.15.0",
|
|
75
|
+
"@testing-library/react": "~12.1.2",
|
|
74
76
|
"styled-components": "~5.3.3",
|
|
75
77
|
"styled-system": "~5.1.5"
|
|
76
78
|
},
|
package/types/DSGroupBox.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 DSGroupBox: {
|
|
3
4
|
({ containerProps, labelProps, rightActions, centerActions, type, asRow, onlyHeader, noBorder, noPadding, children: components, isMain, }: {
|
|
@@ -19,15 +20,30 @@ declare const DSGroupBox: {
|
|
|
19
20
|
}): JSX.Element;
|
|
20
21
|
propTypes: {
|
|
21
22
|
/** props to inject to wrapper */
|
|
22
|
-
containerProps:
|
|
23
|
+
containerProps: {
|
|
24
|
+
defaultValue<T = unknown>(arg: T): {
|
|
25
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
26
|
+
};
|
|
27
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
23
29
|
/**
|
|
24
30
|
* Label attributes to be rendered
|
|
25
31
|
*/
|
|
26
|
-
labelProps:
|
|
32
|
+
labelProps: {
|
|
33
|
+
defaultValue<T = unknown>(arg: T): {
|
|
34
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
27
38
|
/**
|
|
28
39
|
* ['category-box', 'group-box']
|
|
29
40
|
*/
|
|
30
|
-
type:
|
|
41
|
+
type: {
|
|
42
|
+
defaultValue<T = unknown>(arg: T): {
|
|
43
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
44
|
+
};
|
|
45
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
46
|
+
};
|
|
31
47
|
/**
|
|
32
48
|
* Components to be rendered inside the box
|
|
33
49
|
*/
|
|
@@ -35,29 +51,79 @@ declare const DSGroupBox: {
|
|
|
35
51
|
/**
|
|
36
52
|
* Actions on the right side of the label
|
|
37
53
|
*/
|
|
38
|
-
rightActions:
|
|
54
|
+
rightActions: {
|
|
55
|
+
defaultValue<T = unknown>(arg: T): {
|
|
56
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
57
|
+
};
|
|
58
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
59
|
+
};
|
|
39
60
|
/**
|
|
40
61
|
* Actions on the next to the label
|
|
41
62
|
*/
|
|
42
|
-
centerActions:
|
|
63
|
+
centerActions: {
|
|
64
|
+
defaultValue<T = unknown>(arg: T): {
|
|
65
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
66
|
+
};
|
|
67
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
68
|
+
};
|
|
43
69
|
/**
|
|
44
70
|
* Display the content of the group box with flex direction row
|
|
45
71
|
*/
|
|
46
|
-
asRow:
|
|
72
|
+
asRow: {
|
|
73
|
+
defaultValue<T = unknown>(arg: T): {
|
|
74
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
75
|
+
};
|
|
76
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
77
|
+
};
|
|
47
78
|
/**
|
|
48
79
|
* Show border only on the header
|
|
49
80
|
*/
|
|
50
|
-
onlyHeader:
|
|
81
|
+
onlyHeader: {
|
|
82
|
+
defaultValue<T = unknown>(arg: T): {
|
|
83
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
84
|
+
};
|
|
85
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
86
|
+
};
|
|
51
87
|
/**
|
|
52
88
|
* Remove the wrapper border
|
|
53
89
|
*/
|
|
54
|
-
noBorder:
|
|
90
|
+
noBorder: {
|
|
91
|
+
defaultValue<T = unknown>(arg: T): {
|
|
92
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
93
|
+
};
|
|
94
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
95
|
+
};
|
|
55
96
|
/**
|
|
56
97
|
* Remove the top and bottom padding from the content
|
|
57
98
|
*/
|
|
58
|
-
noPadding:
|
|
99
|
+
noPadding: {
|
|
100
|
+
defaultValue<T = unknown>(arg: T): {
|
|
101
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
102
|
+
};
|
|
103
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
104
|
+
};
|
|
59
105
|
};
|
|
60
106
|
};
|
|
61
|
-
declare const DSGroupBoxWithSchema:
|
|
107
|
+
declare const DSGroupBoxWithSchema: {
|
|
108
|
+
(props?: {
|
|
109
|
+
containerProps?: {} | undefined;
|
|
110
|
+
labelProps?: {
|
|
111
|
+
labelText: string;
|
|
112
|
+
borderBottom: boolean;
|
|
113
|
+
id: string;
|
|
114
|
+
} | undefined;
|
|
115
|
+
rightActions?: never[] | undefined;
|
|
116
|
+
centerActions?: never[] | undefined;
|
|
117
|
+
type?: string | undefined;
|
|
118
|
+
asRow?: boolean | undefined;
|
|
119
|
+
onlyHeader?: boolean | undefined;
|
|
120
|
+
noBorder?: boolean | undefined;
|
|
121
|
+
noPadding?: boolean | undefined;
|
|
122
|
+
children?: never[] | undefined;
|
|
123
|
+
isMain?: boolean | undefined;
|
|
124
|
+
} | undefined): JSX.Element;
|
|
125
|
+
propTypes: unknown;
|
|
126
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
127
|
+
};
|
|
62
128
|
export { DSGroupBox, DSGroupBoxWithSchema };
|
|
63
129
|
export default DSGroupBox;
|