@getvitops/generator 0.1.0 → 0.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getvitops/generator",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Generate design-system outputs (Bricks, standalone CSS, Tailwind v4) from a design-system.json.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -25,9 +25,11 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "lightningcss": "^1.32.0",
28
- "zod": "^4.1.13"
28
+ "zod": "^4.1.13",
29
+ "@getvitops/utils": "0.2.0"
29
30
  },
30
31
  "devDependencies": {
31
- "@getvitops/core": "0.1.0"
32
+ "vitest": "^4.1.9",
33
+ "@getvitops/core": "0.2.0"
32
34
  }
33
35
  }
package/schema.json CHANGED
@@ -15,31 +15,66 @@
15
15
  "type": "string"
16
16
  },
17
17
  "additionalProperties": {
18
- "type": "object",
19
- "properties": {
20
- "xxd": {
21
- "type": "string"
22
- },
23
- "xd": {
24
- "type": "string"
25
- },
26
- "d": {
27
- "type": "string"
28
- },
29
- "base": {
30
- "type": "string"
31
- },
32
- "l": {
33
- "type": "string"
34
- },
35
- "xl": {
36
- "type": "string"
18
+ "anyOf": [
19
+ {
20
+ "type": "object",
21
+ "properties": {
22
+ "seed": {
23
+ "type": "string"
24
+ },
25
+ "anchors": {
26
+ "type": "object",
27
+ "propertyNames": {
28
+ "type": "string"
29
+ },
30
+ "additionalProperties": {
31
+ "type": "string"
32
+ }
33
+ }
34
+ },
35
+ "required": [
36
+ "seed"
37
+ ],
38
+ "additionalProperties": false
37
39
  },
38
- "xxl": {
39
- "type": "string"
40
+ {
41
+ "type": "object",
42
+ "properties": {
43
+ "tones": {
44
+ "anyOf": [
45
+ {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ }
50
+ },
51
+ {
52
+ "type": "object",
53
+ "propertyNames": {
54
+ "type": "string"
55
+ },
56
+ "additionalProperties": {
57
+ "type": "string"
58
+ }
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ "required": [
64
+ "tones"
65
+ ],
66
+ "additionalProperties": false
40
67
  }
41
- },
42
- "additionalProperties": false
68
+ ]
69
+ }
70
+ },
71
+ "roles": {
72
+ "type": "object",
73
+ "propertyNames": {
74
+ "type": "string"
75
+ },
76
+ "additionalProperties": {
77
+ "type": "string"
43
78
  }
44
79
  },
45
80
  "utilities": {
@@ -55,80 +90,11 @@
55
90
  "stroke"
56
91
  ]
57
92
  }
58
- },
59
- "schemes": {
60
- "type": "object",
61
- "propertyNames": {
62
- "type": "string"
63
- },
64
- "additionalProperties": {
65
- "type": "object",
66
- "properties": {
67
- "appearance": {
68
- "type": "string",
69
- "enum": [
70
- "light",
71
- "dark"
72
- ]
73
- },
74
- "semantic": {
75
- "type": "object",
76
- "propertyNames": {
77
- "type": "string"
78
- },
79
- "additionalProperties": {
80
- "anyOf": [
81
- {
82
- "type": "string"
83
- },
84
- {
85
- "type": "object",
86
- "properties": {
87
- "ramp": {
88
- "type": "string"
89
- },
90
- "invert": {
91
- "type": "boolean"
92
- },
93
- "shift": {
94
- "type": "number"
95
- },
96
- "steps": {
97
- "type": "object",
98
- "propertyNames": {
99
- "type": "string"
100
- },
101
- "additionalProperties": {
102
- "type": "string"
103
- }
104
- },
105
- "value": {
106
- "type": "object",
107
- "propertyNames": {
108
- "type": "string"
109
- },
110
- "additionalProperties": {
111
- "type": "string"
112
- }
113
- }
114
- },
115
- "additionalProperties": false
116
- }
117
- ]
118
- }
119
- }
120
- },
121
- "required": [
122
- "appearance",
123
- "semantic"
124
- ],
125
- "additionalProperties": false
126
- }
127
93
  }
128
94
  },
129
95
  "required": [
130
96
  "palette",
131
- "schemes"
97
+ "roles"
132
98
  ],
133
99
  "additionalProperties": false
134
100
  },