@duro-app/cli 5.20.0 → 5.21.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 +57 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duro-app/cli",
3
- "version": "5.20.0",
3
+ "version": "5.21.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.",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@modelcontextprotocol/sdk": ">=1.0.0",
49
- "@duro-app/ui": "^5.20.0"
49
+ "@duro-app/ui": "^5.21.0"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "@duro-app/ui": {
@@ -61,9 +61,9 @@
61
61
  "@types/node": "^24.0.0",
62
62
  "ts-morph": "^26.0.0",
63
63
  "typescript": "^5.7.0",
64
- "@duro-app/eslint-plugin": "^5.20.0",
65
- "@duro-app/ui": "^5.20.0",
66
- "@duro-app/tokens": "^5.20.0"
64
+ "@duro-app/eslint-plugin": "^5.21.0",
65
+ "@duro-app/ui": "^5.21.0",
66
+ "@duro-app/tokens": "^5.21.0"
67
67
  },
68
68
  "scripts": {
69
69
  "registry": "node scripts/build-registry.mjs",
package/registry.json CHANGED
@@ -1378,13 +1378,25 @@
1378
1378
  "description": "Initial preference (uncontrolled). Default `'system'`. For SSR with no hydration flash, pass the value you persisted server-side (e.g. a cookie).",
1379
1379
  "name": "defaultPreference",
1380
1380
  "required": false,
1381
- "type": "ColorModePreference"
1381
+ "type": "ColorModePreference",
1382
+ "union": [
1383
+ "system",
1384
+ "dark",
1385
+ "light",
1386
+ "high-contrast"
1387
+ ]
1382
1388
  },
1383
1389
  {
1384
1390
  "description": "Controlled preference — when set, the provider does not own the state.",
1385
1391
  "name": "preference",
1386
1392
  "required": false,
1387
- "type": "ColorModePreference"
1393
+ "type": "ColorModePreference",
1394
+ "union": [
1395
+ "system",
1396
+ "dark",
1397
+ "light",
1398
+ "high-contrast"
1399
+ ]
1388
1400
  },
1389
1401
  {
1390
1402
  "description": "Fired whenever the preference changes (controlled or not).",
@@ -3307,8 +3319,8 @@
3307
3319
  "importPath": "@duro-app/ui",
3308
3320
  "kind": "component",
3309
3321
  "meta": {
3310
- "description": "Semantic heading element (h1-h6) with typography presets. Always use the correct level for document hierarchy. Visual size can differ from semantic level via the variant prop.",
3311
- "example": "<Stack gap=\"md\">\n <Heading level={1}>Page Title</Heading>\n <Heading level={2} variant=\"headingMd\">Section</Heading>\n <Heading level={3}>Subsection</Heading>\n</Stack>",
3322
+ "description": "Semantic heading element (h1-h6) with typography presets. Always use the correct level for document hierarchy. The look is `variant` (heading, display, overline) and its size is `size` (sm, md, lg, xl), both independent of the semantic level. The old combined variants (headingSm, displayLg, …) still work and are deprecated.",
3323
+ "example": "<Stack gap=\"md\">\n <Heading level={1}>Page Title</Heading>\n <Heading level={2} size=\"md\">Section</Heading>\n <Heading level={1} variant=\"display\" size=\"lg\">Hero</Heading>\n <Heading level={3} variant=\"overline\" color=\"muted\">Group</Heading>\n <Heading level={2} variant=\"overline\" size=\"lg\">Large group</Heading>\n</Stack>",
3312
3324
  "relatedTo": [
3313
3325
  {
3314
3326
  "component": "Text",
@@ -3324,7 +3336,8 @@
3324
3336
  "whenToUse": [
3325
3337
  "Page titles (level 1)",
3326
3338
  "Section headers (level 2-3)",
3327
- "Card or panel titles (level 3-4)"
3339
+ "Card or panel titles (level 3-4)",
3340
+ "Group titles over a list of rows or a form section (level 3-4, variant=\"overline\", any size)"
3328
3341
  ]
3329
3342
  },
3330
3343
  "name": "Heading",
@@ -3336,10 +3349,14 @@
3336
3349
  "type": "1 | 2 | 3 | 4 | 5 | 6"
3337
3350
  },
3338
3351
  {
3352
+ "description": "The look: `heading` (default), `display` (fluid hero titles), `overline` (small uppercase group titles).",
3339
3353
  "name": "variant",
3340
3354
  "required": false,
3341
3355
  "type": "HeadingVariant",
3342
3356
  "union": [
3357
+ "heading",
3358
+ "display",
3359
+ "overline",
3343
3360
  "displayLg",
3344
3361
  "displayMd",
3345
3362
  "displaySm",
@@ -3349,6 +3366,18 @@
3349
3366
  "headingSm"
3350
3367
  ]
3351
3368
  },
3369
+ {
3370
+ "description": "The size within the look. Default: the level's size for `heading`, `md` for `display`, `sm` for `overline`; `display` and `overline` stop at `lg`.",
3371
+ "name": "size",
3372
+ "required": false,
3373
+ "type": "HeadingSize",
3374
+ "union": [
3375
+ "sm",
3376
+ "md",
3377
+ "lg",
3378
+ "xl"
3379
+ ]
3380
+ },
3352
3381
  {
3353
3382
  "default": "'default'",
3354
3383
  "name": "color",
@@ -7250,13 +7279,13 @@
7250
7279
  }
7251
7280
  ],
7252
7281
  "whenNotToUse": [
7253
- "Page or section titles — use Heading",
7282
+ "Page, section or group titles — use Heading, even in overline style (variant=\"overline\")",
7254
7283
  "Form field labels — use Field.Label (auto-binds to form)"
7255
7284
  ],
7256
7285
  "whenToUse": [
7257
7286
  "Body text (paragraphs, descriptions)",
7258
7287
  "UI labels and metadata",
7259
- "Captions, code snippets, overlines"
7288
+ "Captions, code snippets, and overline eyebrows above a Heading"
7260
7289
  ]
7261
7290
  },
7262
7291
  "name": "Text",
@@ -10793,6 +10822,12 @@
10793
10822
  {
10794
10823
  "key": "overline"
10795
10824
  },
10825
+ {
10826
+ "key": "overlineMd"
10827
+ },
10828
+ {
10829
+ "key": "overlineLg"
10830
+ },
10796
10831
  {
10797
10832
  "key": "headingSm"
10798
10833
  },
@@ -10938,6 +10973,12 @@
10938
10973
  "filled",
10939
10974
  "interactive"
10940
10975
  ],
10976
+ "ColorModePreference": [
10977
+ "system",
10978
+ "dark",
10979
+ "light",
10980
+ "high-contrast"
10981
+ ],
10941
10982
  "ContainerSize": [
10942
10983
  "compact",
10943
10984
  "default",
@@ -10990,7 +11031,16 @@
10990
11031
  "split-wide",
10991
11032
  "content-aside"
10992
11033
  ],
11034
+ "HeadingSize": [
11035
+ "sm",
11036
+ "md",
11037
+ "lg",
11038
+ "xl"
11039
+ ],
10993
11040
  "HeadingVariant": [
11041
+ "heading",
11042
+ "display",
11043
+ "overline",
10994
11044
  "displayLg",
10995
11045
  "displayMd",
10996
11046
  "displaySm",