@duro-app/cli 3.4.2 → 3.6.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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/registry.json +145 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duro-app/cli",
3
- "version": "3.4.2",
3
+ "version": "3.6.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.4.2"
48
+ "@duro-app/ui": "^3.6.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.4.2",
64
- "@duro-app/ui": "^3.4.2",
65
- "@duro-app/tokens": "^3.4.2"
63
+ "@duro-app/eslint-plugin": "^3.6.0",
64
+ "@duro-app/tokens": "^3.6.0",
65
+ "@duro-app/ui": "^3.6.0"
66
66
  },
67
67
  "scripts": {
68
68
  "registry": "node scripts/build-registry.mjs",
package/registry.json CHANGED
@@ -2666,6 +2666,8 @@
2666
2666
  "mail",
2667
2667
  "file-text",
2668
2668
  "plug",
2669
+ "search",
2670
+ "mic",
2669
2671
  "sun",
2670
2672
  "moon",
2671
2673
  "monitor",
@@ -5843,6 +5845,138 @@
5843
5845
  "props": null,
5844
5846
  "sourcePath": "packages/ui/src/components/Tooltip/Tooltip.tsx"
5845
5847
  },
5848
+ "Tree": {
5849
+ "importPath": "@duro-app/ui",
5850
+ "kind": "compound",
5851
+ "meta": {
5852
+ "anatomy": {
5853
+ "required": [
5854
+ "Root",
5855
+ "Item"
5856
+ ]
5857
+ },
5858
+ "description": "Hierarchy of items with single selection and expandable branches (the WAI-ARIA tree pattern): one tab stop, arrow keys, Home/End, typeahead. Compound component — Root is required.",
5859
+ "example": "<Tree.Root aria-label=\"Blocs\" defaultExpanded={['energy']} onValueChange={setSelected}>\n <Tree.Item value=\"energy\" label=\"Core business — Energy\">\n <Tree.Item value=\"generation\" label=\"Generation\" meta=\"4 apps\" />\n <Tree.Item value=\"network\" label=\"Network operations\">\n <Tree.Item value=\"scada\" label=\"SCADA supervision\" />\n </Tree.Item>\n </Tree.Item>\n <Tree.Item value=\"finance\" label=\"Finance & steering\" />\n</Tree.Root>",
5860
+ "relatedTo": [
5861
+ {
5862
+ "component": "SideNav",
5863
+ "kind": "contrast",
5864
+ "relationship": "SideNav is navigation between pages; Tree browses arbitrary-depth data. Never nest SideNav to fake a tree"
5865
+ },
5866
+ {
5867
+ "component": "split-pane",
5868
+ "kind": "composition",
5869
+ "relationship": "A Tree in the list column of the split-pane recipe, the selection’s details beside it"
5870
+ }
5871
+ ],
5872
+ "whenNotToUse": [
5873
+ "Site or app navigation — use SideNav (a rail advertises destinations; a tree browses data)",
5874
+ "A flat list of choices — use List or RadioGroup",
5875
+ "Choosing several nodes at once — not supported (single selection)"
5876
+ ],
5877
+ "whenToUse": [
5878
+ "Browsing data that nests to any depth — a file tree, zones › services › capabilities, namespace › resource",
5879
+ "Picking one node of a hierarchy to show its details beside the tree"
5880
+ ]
5881
+ },
5882
+ "name": "Tree",
5883
+ "parts": {
5884
+ "Item": {
5885
+ "name": "Item",
5886
+ "props": [
5887
+ {
5888
+ "description": "unique within the tree",
5889
+ "name": "value",
5890
+ "required": true,
5891
+ "type": "string"
5892
+ },
5893
+ {
5894
+ "description": "what the row shows",
5895
+ "name": "label",
5896
+ "required": true,
5897
+ "type": "ReactNode"
5898
+ },
5899
+ {
5900
+ "description": "plain text for typeahead when `label` isn't a string",
5901
+ "name": "textValue",
5902
+ "required": false,
5903
+ "type": "string"
5904
+ },
5905
+ {
5906
+ "description": "nested items: the branch's children (none = a leaf)",
5907
+ "name": "children",
5908
+ "required": false,
5909
+ "type": "ReactNode"
5910
+ },
5911
+ {
5912
+ "description": "trailing content on the row (a count, a status)",
5913
+ "name": "meta",
5914
+ "required": false,
5915
+ "type": "ReactNode"
5916
+ }
5917
+ ],
5918
+ "sourcePath": "packages/ui/src/components/Tree/Tree.tsx"
5919
+ },
5920
+ "Root": {
5921
+ "name": "Root",
5922
+ "props": [
5923
+ {
5924
+ "name": "children",
5925
+ "required": true,
5926
+ "type": "ReactNode"
5927
+ },
5928
+ {
5929
+ "description": "accessible name of the tree (or give `aria-labelledby`)",
5930
+ "name": "aria-label",
5931
+ "required": false,
5932
+ "type": "string"
5933
+ },
5934
+ {
5935
+ "name": "aria-labelledby",
5936
+ "required": false,
5937
+ "type": "string"
5938
+ },
5939
+ {
5940
+ "description": "the selected item (controlled)",
5941
+ "name": "value",
5942
+ "required": false,
5943
+ "type": "string | null"
5944
+ },
5945
+ {
5946
+ "default": "null",
5947
+ "name": "defaultValue",
5948
+ "required": false,
5949
+ "type": "string | null"
5950
+ },
5951
+ {
5952
+ "name": "onValueChange",
5953
+ "required": false,
5954
+ "type": "(value: string) => void"
5955
+ },
5956
+ {
5957
+ "description": "the open branches (controlled)",
5958
+ "name": "expanded",
5959
+ "required": false,
5960
+ "type": "ReadonlyArray<string>"
5961
+ },
5962
+ {
5963
+ "default": "[]",
5964
+ "name": "defaultExpanded",
5965
+ "required": false,
5966
+ "type": "ReadonlyArray<string>"
5967
+ },
5968
+ {
5969
+ "name": "onExpandedChange",
5970
+ "required": false,
5971
+ "type": "(expanded: string[]) => void"
5972
+ }
5973
+ ],
5974
+ "sourcePath": "packages/ui/src/components/Tree/Tree.tsx"
5975
+ }
5976
+ },
5977
+ "props": null,
5978
+ "sourcePath": "packages/ui/src/components/Tree/Tree.tsx"
5979
+ },
5846
5980
  "VirtualTable": {
5847
5981
  "importPath": "@duro-app/ui/table",
5848
5982
  "kind": "component",
@@ -6226,6 +6360,13 @@
6226
6360
  "plug"
6227
6361
  ]
6228
6362
  },
6363
+ {
6364
+ "label": "Input / action glyphs",
6365
+ "names": [
6366
+ "search",
6367
+ "mic"
6368
+ ]
6369
+ },
6229
6370
  {
6230
6371
  "label": "Color-mode glyphs",
6231
6372
  "names": [
@@ -6278,6 +6419,8 @@
6278
6419
  "mail",
6279
6420
  "file-text",
6280
6421
  "plug",
6422
+ "search",
6423
+ "mic",
6281
6424
  "sun",
6282
6425
  "moon",
6283
6426
  "monitor",
@@ -7326,6 +7469,8 @@
7326
7469
  "mail",
7327
7470
  "file-text",
7328
7471
  "plug",
7472
+ "search",
7473
+ "mic",
7329
7474
  "sun",
7330
7475
  "moon",
7331
7476
  "monitor",