@duro-app/cli 3.2.1 → 3.3.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 +5 -5
- package/registry.json +60 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duro-app/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Machine-queryable docs for the Duro design system: components, props, recipes, tokens and rules as CLI output, JSON, or an MCP server.",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@modelcontextprotocol/sdk": ">=1.0.0",
|
|
48
|
-
"@duro-app/ui": "^3.
|
|
48
|
+
"@duro-app/ui": "^3.3.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependenciesMeta": {
|
|
51
51
|
"@duro-app/ui": {
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@types/node": "^24.0.0",
|
|
61
61
|
"ts-morph": "^26.0.0",
|
|
62
62
|
"typescript": "^5.7.0",
|
|
63
|
-
"@duro-app/eslint-plugin": "^3.
|
|
64
|
-
"@duro-app/
|
|
65
|
-
"@duro-app/
|
|
63
|
+
"@duro-app/eslint-plugin": "^3.3.0",
|
|
64
|
+
"@duro-app/tokens": "^3.3.0",
|
|
65
|
+
"@duro-app/ui": "^3.3.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"registry": "node scripts/build-registry.mjs",
|
package/registry.json
CHANGED
|
@@ -699,6 +699,18 @@
|
|
|
699
699
|
"required": false,
|
|
700
700
|
"type": "boolean"
|
|
701
701
|
},
|
|
702
|
+
{
|
|
703
|
+
"description": "Accessible name when the group is not inside a Field.Root (inside one, the Field.Label names it).",
|
|
704
|
+
"name": "aria-label",
|
|
705
|
+
"required": false,
|
|
706
|
+
"type": "string"
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"description": "id of the element that names the group, when not inside a Field.Root.",
|
|
710
|
+
"name": "aria-labelledby",
|
|
711
|
+
"required": false,
|
|
712
|
+
"type": "string"
|
|
713
|
+
},
|
|
702
714
|
{
|
|
703
715
|
"name": "children",
|
|
704
716
|
"required": true,
|
|
@@ -2166,7 +2178,7 @@
|
|
|
2166
2178
|
]
|
|
2167
2179
|
},
|
|
2168
2180
|
"description": "Compound form field with label, description, and error display. Inside Form, auto-binds to react-hook-form via name prop. Works standalone with manual invalid prop.",
|
|
2169
|
-
"example": "// Inside Form (auto-binds validation)\n<Field.Root name=\"email\">\n <Field.Label>Email</Field.Label>\n <Input type=\"email\" placeholder=\"you@example.com\" />\n <Field.Description>We'll never share your email.</Field.Description>\n <Field.Error />\n</Field.Root>\n\n// Standalone (manual error)\n<Field.Root invalid>\n <Field.Label>Email</Field.Label>\n <Input variant=\"error\" />\n <Field.Error>This email is already taken.</Field.Error>\n</Field.Root>",
|
|
2181
|
+
"example": "// Inside Form (auto-binds validation)\n<Field.Root name=\"email\">\n <Field.Label>Email</Field.Label>\n <Input type=\"email\" placeholder=\"you@example.com\" />\n <Field.Description>We'll never share your email.</Field.Description>\n <Field.Error />\n</Field.Root>\n\n// A group of controls — the label names the group (aria-labelledby).\n// A direct ToggleGroup / CheckboxGroup / RadioGroup child is detected;\n// pass `group` when the group is nested (e.g. inside a Stack).\n<Field.Root>\n <Field.Label>Type</Field.Label>\n <ToggleGroup value={[type]} onValueChange={setType}>\n <Toggle value=\"app\">Application</Toggle>\n <Toggle value=\"platform\">Platform</Toggle>\n </ToggleGroup>\n</Field.Root>\n\n// Standalone (manual error)\n<Field.Root invalid>\n <Field.Label>Email</Field.Label>\n <Input variant=\"error\" />\n <Field.Error>This email is already taken.</Field.Error>\n</Field.Root>",
|
|
2170
2182
|
"relatedTo": [
|
|
2171
2183
|
{
|
|
2172
2184
|
"component": "Form",
|
|
@@ -2187,6 +2199,21 @@
|
|
|
2187
2199
|
"component": "Select",
|
|
2188
2200
|
"kind": "composition",
|
|
2189
2201
|
"relationship": "Place Select inside Field.Root"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"component": "ToggleGroup",
|
|
2205
|
+
"kind": "composition",
|
|
2206
|
+
"relationship": "Inside Field.Root the Field.Label names the group"
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"component": "CheckboxGroup",
|
|
2210
|
+
"kind": "composition",
|
|
2211
|
+
"relationship": "Inside Field.Root the Field.Label names the group"
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
"component": "RadioGroup",
|
|
2215
|
+
"kind": "composition",
|
|
2216
|
+
"relationship": "Inside Field.Root the Field.Label names the group"
|
|
2190
2217
|
}
|
|
2191
2218
|
],
|
|
2192
2219
|
"whenNotToUse": [
|
|
@@ -2194,7 +2221,8 @@
|
|
|
2194
2221
|
],
|
|
2195
2222
|
"whenToUse": [
|
|
2196
2223
|
"Any form input that needs a label and/or error message",
|
|
2197
|
-
"Standalone labeled input (without Form) with manual error display"
|
|
2224
|
+
"Standalone labeled input (without Form) with manual error display",
|
|
2225
|
+
"A labelled GROUP of controls (ToggleGroup, CheckboxGroup, RadioGroup): the label names the group via aria-labelledby — detected for a direct child, `group` for a nested one"
|
|
2198
2226
|
]
|
|
2199
2227
|
},
|
|
2200
2228
|
"name": "Field",
|
|
@@ -2240,6 +2268,12 @@
|
|
|
2240
2268
|
"required": false,
|
|
2241
2269
|
"type": "string"
|
|
2242
2270
|
},
|
|
2271
|
+
{
|
|
2272
|
+
"description": "The control is a group of controls rather than one input — the label then names the group (`aria-labelledby`) instead of pointing `for` at an input. Detected automatically when a direct child is a ToggleGroup, CheckboxGroup.Root or RadioGroup.Root; set it for any other group.",
|
|
2273
|
+
"name": "group",
|
|
2274
|
+
"required": false,
|
|
2275
|
+
"type": "boolean"
|
|
2276
|
+
},
|
|
2243
2277
|
{
|
|
2244
2278
|
"name": "invalid",
|
|
2245
2279
|
"required": false,
|
|
@@ -3716,6 +3750,18 @@
|
|
|
3716
3750
|
"required": false,
|
|
3717
3751
|
"type": "boolean"
|
|
3718
3752
|
},
|
|
3753
|
+
{
|
|
3754
|
+
"description": "Accessible name when the group is not inside a Field.Root (inside one, the Field.Label names it).",
|
|
3755
|
+
"name": "aria-label",
|
|
3756
|
+
"required": false,
|
|
3757
|
+
"type": "string"
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
"description": "id of the element that names the group, when not inside a Field.Root.",
|
|
3761
|
+
"name": "aria-labelledby",
|
|
3762
|
+
"required": false,
|
|
3763
|
+
"type": "string"
|
|
3764
|
+
},
|
|
3719
3765
|
{
|
|
3720
3766
|
"name": "children",
|
|
3721
3767
|
"required": true,
|
|
@@ -5711,6 +5757,18 @@
|
|
|
5711
5757
|
"small"
|
|
5712
5758
|
]
|
|
5713
5759
|
},
|
|
5760
|
+
{
|
|
5761
|
+
"description": "Accessible name when the group is not inside a Field.Root (inside one, the Field.Label names it).",
|
|
5762
|
+
"name": "aria-label",
|
|
5763
|
+
"required": false,
|
|
5764
|
+
"type": "string"
|
|
5765
|
+
},
|
|
5766
|
+
{
|
|
5767
|
+
"description": "id of the element that names the group, when not inside a Field.Root.",
|
|
5768
|
+
"name": "aria-labelledby",
|
|
5769
|
+
"required": false,
|
|
5770
|
+
"type": "string"
|
|
5771
|
+
},
|
|
5714
5772
|
{
|
|
5715
5773
|
"name": "children",
|
|
5716
5774
|
"required": true,
|