@appdirect/ds-enforce 0.0.18 → 0.0.20
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.
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "DashboardWidget",
|
|
3
|
+
"kind": "complex",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"purpose": "Dashboard card with a title row, optional header controls, a flexible content slot, and a footer that stays in flow so equal-height rows align.",
|
|
6
|
+
"importFrom": [
|
|
7
|
+
"@appdirect/design-system"
|
|
8
|
+
],
|
|
9
|
+
"mantineCounterpart": null,
|
|
10
|
+
"anatomy": [
|
|
11
|
+
"card",
|
|
12
|
+
"header",
|
|
13
|
+
"title",
|
|
14
|
+
"content",
|
|
15
|
+
"footer"
|
|
16
|
+
],
|
|
17
|
+
"api": {
|
|
18
|
+
"props": {
|
|
19
|
+
"title": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"required": true
|
|
22
|
+
},
|
|
23
|
+
"children": {
|
|
24
|
+
"type": "ReactNode",
|
|
25
|
+
"required": true
|
|
26
|
+
},
|
|
27
|
+
"editable": {
|
|
28
|
+
"type": "boolean"
|
|
29
|
+
},
|
|
30
|
+
"panelNotification": {
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
},
|
|
33
|
+
"headerSelect": {
|
|
34
|
+
"type": "object"
|
|
35
|
+
},
|
|
36
|
+
"footerLinks": {
|
|
37
|
+
"type": "array"
|
|
38
|
+
},
|
|
39
|
+
"spacing": {
|
|
40
|
+
"enum": [
|
|
41
|
+
"xs",
|
|
42
|
+
"sm",
|
|
43
|
+
"md",
|
|
44
|
+
"lg",
|
|
45
|
+
"xl"
|
|
46
|
+
],
|
|
47
|
+
"default": "lg"
|
|
48
|
+
},
|
|
49
|
+
"interactive": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
"selected": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"composition": {
|
|
60
|
+
"mustUseFor": [
|
|
61
|
+
"dashboard metric and summary cards"
|
|
62
|
+
],
|
|
63
|
+
"mustNotRebuildFrom": [
|
|
64
|
+
"Card + Title + Select"
|
|
65
|
+
],
|
|
66
|
+
"internalPrimitives": [
|
|
67
|
+
"Card",
|
|
68
|
+
"Title",
|
|
69
|
+
"Text",
|
|
70
|
+
"Switch",
|
|
71
|
+
"Select",
|
|
72
|
+
"Menu",
|
|
73
|
+
"ActionIcon",
|
|
74
|
+
"Alert"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"enforcement": {
|
|
78
|
+
"deterministic": [
|
|
79
|
+
"importFrom",
|
|
80
|
+
"kind",
|
|
81
|
+
"mantineCounterpart",
|
|
82
|
+
"api.props.title.required",
|
|
83
|
+
"api.props.children.required"
|
|
84
|
+
],
|
|
85
|
+
"semantic": [
|
|
86
|
+
"purpose",
|
|
87
|
+
"composition.mustUseFor",
|
|
88
|
+
"composition.mustNotRebuildFrom"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -186,6 +186,38 @@
|
|
|
186
186
|
"colorEnum": null,
|
|
187
187
|
"colorDeprecated": true
|
|
188
188
|
},
|
|
189
|
+
{
|
|
190
|
+
"id": "DashboardWidget",
|
|
191
|
+
"kind": "complex",
|
|
192
|
+
"mantineName": "DashboardWidget",
|
|
193
|
+
"importNames": [
|
|
194
|
+
"DashboardWidget"
|
|
195
|
+
],
|
|
196
|
+
"variantEnum": null,
|
|
197
|
+
"sizeEnum": null,
|
|
198
|
+
"fixedProps": {},
|
|
199
|
+
"defaultProps": {
|
|
200
|
+
"spacing": "lg",
|
|
201
|
+
"interactive": false,
|
|
202
|
+
"selected": false
|
|
203
|
+
},
|
|
204
|
+
"deprecatedPatterns": [],
|
|
205
|
+
"deterministic": [
|
|
206
|
+
"importFrom",
|
|
207
|
+
"kind",
|
|
208
|
+
"mantineCounterpart",
|
|
209
|
+
"api.props.title.required",
|
|
210
|
+
"api.props.children.required"
|
|
211
|
+
],
|
|
212
|
+
"semantic": [
|
|
213
|
+
"purpose",
|
|
214
|
+
"composition.mustUseFor",
|
|
215
|
+
"composition.mustNotRebuildFrom"
|
|
216
|
+
],
|
|
217
|
+
"purpose": "Dashboard card with a title row, optional header controls, a flexible content slot, and a footer that stays in flow so equal-height rows align.",
|
|
218
|
+
"colorEnum": null,
|
|
219
|
+
"colorDeprecated": false
|
|
220
|
+
},
|
|
189
221
|
{
|
|
190
222
|
"id": "DataTable",
|
|
191
223
|
"kind": "complex",
|