@duro-app/cli 3.0.0 → 3.1.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 +9 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duro-app/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.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.1.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/tokens": "^3.
|
|
65
|
-
"@duro-app/ui": "^3.
|
|
63
|
+
"@duro-app/eslint-plugin": "^3.1.0",
|
|
64
|
+
"@duro-app/tokens": "^3.1.0",
|
|
65
|
+
"@duro-app/ui": "^3.1.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"registry": "node scripts/build-registry.mjs",
|
package/registry.json
CHANGED
|
@@ -2294,8 +2294,8 @@
|
|
|
2294
2294
|
"importPath": "@duro-app/ui",
|
|
2295
2295
|
"kind": "component",
|
|
2296
2296
|
"meta": {
|
|
2297
|
-
"description": "
|
|
2298
|
-
"example": "// Split: list ≥ 240px beside a detail pane, one column below md\n<Grid layout=\"split\" gap=\"lg\">\n <List.Root>…</List.Root>\n <Panel.Root>…</Panel.Root>\n</Grid>\n\n// Responsive: columns auto-fit based on min width\n<Grid minColumnWidth=\"280px\" gap=\"md\">\n <Card>A</Card>\n <Card>B</Card>\n <Card>C</Card>\n</Grid>\n\n// Fixed: always 3 columns\n<Grid columns={3} gap=\"md\">\n <Card>A</Card>\n <Card>B</Card>\n <Card>C</Card>\n</Grid>",
|
|
2297
|
+
"description": "Grid layout. Columns are a count (1-6), a list of weights ([1, 2] for one-third / two-thirds), responsive auto-fit via minColumnWidth, or a named split layout (list/detail, nav/content) that collapses to one column on the width of its own container, so it is safe to nest and to place beside a DetailPanel. Weights rather than CSS template strings, so the same props render as CSS grid on web and as a wrapping flex row on native.",
|
|
2298
|
+
"example": "// Split: list ≥ 240px beside a detail pane, one column below md\n<Grid layout=\"split\" gap=\"lg\">\n <List.Root>…</List.Root>\n <Panel.Root>…</Panel.Root>\n</Grid>\n\n// Responsive: columns auto-fit based on min width\n<Grid minColumnWidth=\"280px\" gap=\"md\">\n <Card>A</Card>\n <Card>B</Card>\n <Card>C</Card>\n</Grid>\n\n// Fixed: always 3 columns\n<Grid columns={3} gap=\"md\">\n <Card>A</Card>\n <Card>B</Card>\n <Card>C</Card>\n</Grid>\n\n// Weighted: a one-third / two-thirds split (works on native too)\n<Grid columns={[1, 2]} gap=\"md\">\n <Card>Sidebar</Card>\n <Card>Content</Card>\n</Grid>",
|
|
2299
2299
|
"relatedTo": [
|
|
2300
2300
|
{
|
|
2301
2301
|
"component": "Stack",
|
|
@@ -2315,7 +2315,7 @@
|
|
|
2315
2315
|
"whenToUse": [
|
|
2316
2316
|
"Card grids, dashboard layouts, multi-column forms",
|
|
2317
2317
|
"Responsive layouts that should auto-adjust column count",
|
|
2318
|
-
"A list/detail or nav/content screen — layout=\"split\" | \"split-wide\", never a hand-rolled gridTemplateColumns with its own @media"
|
|
2318
|
+
"A list/detail or nav/content screen — layout=\"split\" | \"split-wide\", never a hand-rolled gridTemplateColumns with its own @media; a split inside a split is fine, each collapses on its own room"
|
|
2319
2319
|
]
|
|
2320
2320
|
},
|
|
2321
2321
|
"name": "Grid",
|
|
@@ -2337,17 +2337,19 @@
|
|
|
2337
2337
|
]
|
|
2338
2338
|
},
|
|
2339
2339
|
{
|
|
2340
|
+
"description": "A column count (equal columns) or weights: `[1, 2]` gives a one-third / two-thirds split. Weights are the portable form of a track list — a CSS template string would be silently ignored on native.",
|
|
2340
2341
|
"name": "columns",
|
|
2341
2342
|
"required": false,
|
|
2342
|
-
"type": "
|
|
2343
|
+
"type": "GridColumns"
|
|
2343
2344
|
},
|
|
2344
2345
|
{
|
|
2346
|
+
"description": "Responsive auto-fit: as many columns of at least this width as fit. Wins over `columns` when both are set. On native this approximates to cells of that minimum width that grow and wrap.",
|
|
2345
2347
|
"name": "minColumnWidth",
|
|
2346
2348
|
"required": false,
|
|
2347
2349
|
"type": "string"
|
|
2348
2350
|
},
|
|
2349
2351
|
{
|
|
2350
|
-
"description": "A named responsive layout. `split` is list/detail (1:2, list ≥ 240px), `split-wide` is nav/content (1:3, nav ≥ 280px)
|
|
2352
|
+
"description": "A named responsive layout. `split` is list/detail (1:2, list ≥ 240px), `split-wide` is nav/content (1:3, nav ≥ 280px). Each collapses to one column on the width of its OWN container — `split` below `sm` (640px), `split-wide` below `md` (768px) — so a split nested inside another split, or beside an open DetailPanel, collapses when it runs out of room rather than when the window does. Wins over `columns` / `minColumnWidth`.",
|
|
2351
2353
|
"name": "layout",
|
|
2352
2354
|
"required": false,
|
|
2353
2355
|
"type": "GridLayout"
|
|
@@ -6218,7 +6220,7 @@
|
|
|
6218
6220
|
"page-with-sidenav": {
|
|
6219
6221
|
"export": "PageWithSideNavRecipe",
|
|
6220
6222
|
"meta": {
|
|
6221
|
-
"description": "Page with a side navigation rail: SideNav in the narrow column of Grid layout=\"split-wide\", the routed content in the wide one; the rail stacks above the content
|
|
6223
|
+
"description": "Page with a side navigation rail: SideNav in the narrow column of Grid layout=\"split-wide\", the routed content in the wide one; the rail stacks above the content when the page is narrower than md.",
|
|
6222
6224
|
"example": "<PageWithSideNavRecipe />",
|
|
6223
6225
|
"whenNotToUse": [
|
|
6224
6226
|
"Three or four destinations — Tabs inside a PageShell read better than a rail",
|
|
@@ -6284,7 +6286,7 @@
|
|
|
6284
6286
|
"split-pane": {
|
|
6285
6287
|
"export": "SplitPaneRecipe",
|
|
6286
6288
|
"meta": {
|
|
6287
|
-
"description": "List/detail split: a selectable List beside a Panel showing the selection, on Grid layout=\"split\" (list ≥ 240px, one column
|
|
6289
|
+
"description": "List/detail split: a selectable List beside a Panel showing the selection, on Grid layout=\"split\" (list ≥ 240px, one column when the board is narrower than sm).",
|
|
6288
6290
|
"example": "<SplitPaneRecipe />",
|
|
6289
6291
|
"whenNotToUse": [
|
|
6290
6292
|
"The detail is a short-lived inspection — use DetailPanel over the list instead",
|