@appdirect/ds-enforce 0.0.0-stage → 0.0.2
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/README.md +19 -2
- package/dist/contracts/Alert.json +79 -0
- package/dist/contracts/Badge.json +77 -0
- package/dist/contracts/Box.json +51 -0
- package/dist/contracts/Button.json +110 -0
- package/dist/contracts/DataTable.json +67 -0
- package/dist/contracts/Grid.json +34 -0
- package/dist/contracts/Group.json +43 -0
- package/dist/contracts/Inline.json +72 -0
- package/dist/contracts/PageContentHeader.json +106 -0
- package/dist/contracts/Stack.json +61 -0
- package/dist/contracts/index.json +54 -0
- package/dist/eslint/contracts.json +843 -0
- package/dist/eslint/index.cjs +70 -0
- package/dist/eslint/rules/contract-props.cjs +276 -0
- package/dist/eslint/rules/no-tailwind-classnames.cjs +76 -0
- package/dist/eslint/rules/no-theme-override.cjs +55 -0
- package/dist/eslint/rules/no-unadopted-mantine.cjs +79 -0
- package/dist/mantine-theme-defaults.json +30 -0
- package/dist/mantine.d.ts +10 -0
- package/dist/stylelint/index.cjs +16 -0
- package/package.json +36 -4
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "Stack",
|
|
3
|
+
"kind": "wrapper",
|
|
4
|
+
"version": "0.2.6",
|
|
5
|
+
"purpose": "Vertical layout primitive (flex-direction: column).",
|
|
6
|
+
"importFrom": [
|
|
7
|
+
"@appdirect/design-system"
|
|
8
|
+
],
|
|
9
|
+
"mantineCounterpart": "Stack",
|
|
10
|
+
"api": {
|
|
11
|
+
"props": {
|
|
12
|
+
"gap": {
|
|
13
|
+
"enum": [
|
|
14
|
+
"none",
|
|
15
|
+
"xxs",
|
|
16
|
+
"xs",
|
|
17
|
+
"sm",
|
|
18
|
+
"md",
|
|
19
|
+
"lg",
|
|
20
|
+
"xl",
|
|
21
|
+
"xxl"
|
|
22
|
+
],
|
|
23
|
+
"default": "md",
|
|
24
|
+
"notes": "Mantine Core xs–xl plus none (0), xxs (4), xxl (48). Also accepts string | number passthrough."
|
|
25
|
+
},
|
|
26
|
+
"align": {
|
|
27
|
+
"enum": [
|
|
28
|
+
"stretch",
|
|
29
|
+
"flex-start",
|
|
30
|
+
"flex-end",
|
|
31
|
+
"center",
|
|
32
|
+
"baseline"
|
|
33
|
+
],
|
|
34
|
+
"default": "stretch"
|
|
35
|
+
},
|
|
36
|
+
"justify": {
|
|
37
|
+
"enum": [
|
|
38
|
+
"flex-start",
|
|
39
|
+
"flex-end",
|
|
40
|
+
"center",
|
|
41
|
+
"space-between",
|
|
42
|
+
"space-around",
|
|
43
|
+
"space-evenly"
|
|
44
|
+
],
|
|
45
|
+
"default": "flex-start"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"deprecatedPatterns": [
|
|
50
|
+
"import { Stack } from '@mantine/core'"
|
|
51
|
+
],
|
|
52
|
+
"enforcement": {
|
|
53
|
+
"deterministic": [
|
|
54
|
+
"importFrom",
|
|
55
|
+
"api.props.gap.enum"
|
|
56
|
+
],
|
|
57
|
+
"semantic": [
|
|
58
|
+
"purpose"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contracts": [
|
|
3
|
+
{
|
|
4
|
+
"id": "Alert",
|
|
5
|
+
"kind": "wrapper",
|
|
6
|
+
"file": "Alert.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"id": "Badge",
|
|
10
|
+
"kind": "wrapper",
|
|
11
|
+
"file": "Badge.json"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "Box",
|
|
15
|
+
"kind": "wrapper",
|
|
16
|
+
"file": "Box.json"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "Button",
|
|
20
|
+
"kind": "wrapper",
|
|
21
|
+
"file": "Button.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "DataTable",
|
|
25
|
+
"kind": "complex",
|
|
26
|
+
"file": "DataTable.json"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "Grid",
|
|
30
|
+
"kind": "wrapper",
|
|
31
|
+
"file": "Grid.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "Group",
|
|
35
|
+
"kind": "wrapper",
|
|
36
|
+
"file": "Group.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "Inline",
|
|
40
|
+
"kind": "wrapper",
|
|
41
|
+
"file": "Inline.json"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "PageContentHeader",
|
|
45
|
+
"kind": "complex",
|
|
46
|
+
"file": "PageContentHeader.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "Stack",
|
|
50
|
+
"kind": "wrapper",
|
|
51
|
+
"file": "Stack.json"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|