@vellira-ui/tokens 2.98.7 → 2.99.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 (92) hide show
  1. package/dist/css/tokens.css +30 -24
  2. package/dist/dark/components/contextMenu.d.ts +13 -3
  3. package/dist/dark/components/contextMenu.d.ts.map +1 -1
  4. package/dist/dark/components/contextMenu.js +0 -2
  5. package/dist/dark/components/dropdown.d.ts +13 -3
  6. package/dist/dark/components/dropdown.d.ts.map +1 -1
  7. package/dist/dark/components/dropdown.js +2 -2
  8. package/dist/dark/components/modal.d.ts +16 -7
  9. package/dist/dark/components/modal.d.ts.map +1 -1
  10. package/dist/dark/components/modal.js +0 -2
  11. package/dist/dark/components/popover.d.ts +5 -25
  12. package/dist/dark/components/popover.d.ts.map +1 -1
  13. package/dist/dark/components/popover.js +0 -4
  14. package/dist/dark/components/select.d.ts +9 -2
  15. package/dist/dark/components/select.d.ts.map +1 -1
  16. package/dist/dark/components/select.js +3 -3
  17. package/dist/dark/components/tooltip.d.ts.map +1 -1
  18. package/dist/dark/components/tooltip.js +0 -2
  19. package/dist/dark/semantic/surface.d.ts +1 -0
  20. package/dist/dark/semantic/surface.d.ts.map +1 -1
  21. package/dist/dark/semantic/surface.js +1 -0
  22. package/dist/factories/componentFocusRing.d.ts +4 -2
  23. package/dist/factories/componentFocusRing.d.ts.map +1 -1
  24. package/dist/factories/componentFocusRing.js +2 -1
  25. package/dist/factories/createContextMenuTokens.d.ts +49 -18
  26. package/dist/factories/createContextMenuTokens.d.ts.map +1 -1
  27. package/dist/factories/createContextMenuTokens.js +3 -3
  28. package/dist/factories/createModalTokens.d.ts +39 -20
  29. package/dist/factories/createModalTokens.d.ts.map +1 -1
  30. package/dist/factories/createModalTokens.js +4 -6
  31. package/dist/factories/createPopoverTokens.d.ts +11 -19
  32. package/dist/factories/createPopoverTokens.d.ts.map +1 -1
  33. package/dist/factories/createPopoverTokens.js +3 -7
  34. package/dist/factories/createTooltipTokens.d.ts +4 -7
  35. package/dist/factories/createTooltipTokens.d.ts.map +1 -1
  36. package/dist/factories/createTooltipTokens.js +4 -4
  37. package/dist/generated/token-types.d.ts +7 -6
  38. package/dist/generated/token-types.d.ts.map +1 -1
  39. package/dist/generated/token-types.js +8 -16
  40. package/dist/highContrast/components/contextMenu.d.ts +13 -3
  41. package/dist/highContrast/components/contextMenu.d.ts.map +1 -1
  42. package/dist/highContrast/components/contextMenu.js +0 -2
  43. package/dist/highContrast/components/dropdown.d.ts +13 -3
  44. package/dist/highContrast/components/dropdown.d.ts.map +1 -1
  45. package/dist/highContrast/components/dropdown.js +2 -2
  46. package/dist/highContrast/components/modal.d.ts +16 -7
  47. package/dist/highContrast/components/modal.d.ts.map +1 -1
  48. package/dist/highContrast/components/modal.js +0 -2
  49. package/dist/highContrast/components/popover.d.ts +5 -25
  50. package/dist/highContrast/components/popover.d.ts.map +1 -1
  51. package/dist/highContrast/components/popover.js +0 -4
  52. package/dist/highContrast/components/select.d.ts +9 -2
  53. package/dist/highContrast/components/select.d.ts.map +1 -1
  54. package/dist/highContrast/components/select.js +3 -3
  55. package/dist/highContrast/components/tooltip.d.ts.map +1 -1
  56. package/dist/highContrast/components/tooltip.js +0 -2
  57. package/dist/highContrast/semantic/surface.d.ts +1 -0
  58. package/dist/highContrast/semantic/surface.d.ts.map +1 -1
  59. package/dist/highContrast/semantic/surface.js +1 -0
  60. package/dist/light/components/contextMenu.d.ts +13 -3
  61. package/dist/light/components/contextMenu.d.ts.map +1 -1
  62. package/dist/light/components/contextMenu.js +0 -2
  63. package/dist/light/components/dropdown.d.ts +13 -3
  64. package/dist/light/components/dropdown.d.ts.map +1 -1
  65. package/dist/light/components/dropdown.js +2 -2
  66. package/dist/light/components/modal.d.ts +16 -7
  67. package/dist/light/components/modal.d.ts.map +1 -1
  68. package/dist/light/components/modal.js +0 -2
  69. package/dist/light/components/popover.d.ts +5 -25
  70. package/dist/light/components/popover.d.ts.map +1 -1
  71. package/dist/light/components/popover.js +0 -4
  72. package/dist/light/components/select.d.ts +9 -2
  73. package/dist/light/components/select.d.ts.map +1 -1
  74. package/dist/light/components/select.js +3 -3
  75. package/dist/light/components/tooltip.d.ts.map +1 -1
  76. package/dist/light/components/tooltip.js +0 -2
  77. package/dist/light/semantic/surface.d.ts +1 -0
  78. package/dist/light/semantic/surface.d.ts.map +1 -1
  79. package/dist/light/semantic/surface.js +1 -0
  80. package/dist/platform-output/component-token-intents.d.ts +71 -0
  81. package/dist/platform-output/component-token-intents.d.ts.map +1 -0
  82. package/dist/platform-output/component-token-intents.js +110 -0
  83. package/dist/platform-output/component-token-web-compatibility.d.ts +32 -0
  84. package/dist/platform-output/component-token-web-compatibility.d.ts.map +1 -0
  85. package/dist/platform-output/component-token-web-compatibility.js +40 -0
  86. package/dist/preservation/token-migrations.d.ts +44 -5
  87. package/dist/preservation/token-migrations.d.ts.map +1 -1
  88. package/dist/preservation/token-migrations.js +73 -1
  89. package/dist/token-architecture.d.ts +4 -4
  90. package/dist/token-architecture.d.ts.map +1 -1
  91. package/dist/token-architecture.js +4 -1
  92. package/package.json +1 -1
@@ -203,10 +203,17 @@ const semanticVocabularyRemovalMigrationsV1 = semanticVocabularyRemovalPathsV1.m
203
203
  kind: 'remove',
204
204
  issue: '#883',
205
205
  reason: from === 'semantic.surface.background'
206
- ? 'Remove the ambiguous surface.background alias after application roots move to the canonical surface.canvas role.'
206
+ ? 'Remove ambiguous surface.background after consumers are split by purpose: application roots use surface.canvas and bounded neutral containers use the explicit surface.panel role introduced by #912.'
207
207
  : 'Remove the unused legacy semantic.navigation namespace instead of preserving a duplicate component-history vocabulary.',
208
208
  from,
209
209
  }));
210
+ const semanticPanelAdditionV1 = {
211
+ id: '912-surface-panel-addition',
212
+ kind: 'addition',
213
+ issue: '#912',
214
+ reason: 'Add an explicit bounded neutral panel/chrome role after the #883 audit missed authored CSS consumers of the removed surface.background variable; panel preserves those historical bounded-container values without changing canvas or elevated semantics.',
215
+ to: 'semantic.surface.panel',
216
+ };
210
217
  const semanticVocabularyVisualMigrationsV1 = [
211
218
  {
212
219
  id: '883-dark-text-muted-hierarchy',
@@ -368,10 +375,75 @@ const semanticVocabularyDownstreamVisualMigrationsV1 = [
368
375
  approvalEvidence: semanticVocabularyVisualApproval,
369
376
  },
370
377
  ];
378
+ const platformNeutralComponentRepresentationPathsV1 = [
379
+ 'components.contextMenu.content.shadow',
380
+ 'components.contextMenu.item.focus.ring.shadow',
381
+ 'components.contextMenu.trigger.focus.ring.shadow',
382
+ 'components.dropdown.content.shadow',
383
+ 'components.dropdown.item.focus.ring.shadow',
384
+ 'components.dropdown.trigger.focus.ring.shadow',
385
+ 'components.modal.closeButton.focus.ring.shadow',
386
+ 'components.modal.content.maxHeight',
387
+ 'components.modal.content.shadow',
388
+ 'components.select.dropdown.shadow',
389
+ 'components.select.option.selected.shadow',
390
+ 'components.tooltip.content.shadow',
391
+ ];
392
+ const platformNeutralComponentRepresentationMigrationsV1 = platformNeutralComponentRepresentationPathsV1.map((from) => ({
393
+ id: `884-representation-${from.replaceAll('.', '-')}`,
394
+ kind: 'representation-change',
395
+ layer: 'canonical',
396
+ issue: '#884',
397
+ reason: 'Replace renderer-shaped canonical component storage with a renderer-neutral intent at the same logical token path.',
398
+ from,
399
+ equivalence: 'The canonical representation changes only; Web resolves the intent to the pre-#884 CSS value and React Native resolves consumed elevation/layout intents to the pre-#884 native presentation output.',
400
+ evidence: '#880 preservation locks serialized Web output while component-token-output-equivalence regressions cover Web and React Native adapters for Light, Dark, and High Contrast themes.',
401
+ }));
402
+ const platformNeutralLegacyCanonicalRemovalsV1 = [
403
+ 'components.modal.content.nativeMaxHeight',
404
+ 'components.popover.content.shadow.native.x',
405
+ 'components.popover.content.shadow.native.y',
406
+ 'components.popover.content.shadow.native.blur',
407
+ 'components.popover.content.shadow.native.color',
408
+ 'components.popover.content.shadow.native.opacity',
409
+ 'components.popover.content.shadow.native.elevation',
410
+ ];
411
+ const platformNeutralLegacyCanonicalRemovalMigrationsV1 = platformNeutralLegacyCanonicalRemovalsV1.map((from) => ({
412
+ id: `884-remove-${from.replaceAll('.', '-')}`,
413
+ kind: 'remove',
414
+ issue: '#884',
415
+ reason: 'Remove renderer-specific canonical storage after the same renderer output moved behind the platform-output adapter; the Web identity remains a compatibility alias until #889.',
416
+ platforms: ['react-native'],
417
+ from,
418
+ }));
419
+ const platformNeutralPopoverShadowMigrationV1 = {
420
+ id: '884-popover-shadow-web-to-canonical-intent',
421
+ kind: 'representation-change',
422
+ layer: 'canonical',
423
+ issue: '#884',
424
+ reason: 'Collapse the old Popover shadow.web branch into one renderer-neutral canonical shadow intent.',
425
+ from: 'components.popover.content.shadow.web',
426
+ to: 'components.popover.content.shadow',
427
+ equivalence: 'The new canonical lg elevation intent resolves to the same semantic lg Web shadow and the same structured native lg shadow used before #884.',
428
+ evidence: '#880 preservation retains the legacy Web output identity and component-token-output-equivalence regressions lock the Web/RN adapter results for all three themes.',
429
+ };
430
+ const platformNeutralPopoverWebAdditionV1 = {
431
+ id: '884-popover-normalized-web-shadow-output',
432
+ kind: 'addition',
433
+ issue: '#884',
434
+ reason: 'Expose the normalized Popover shadow path in Web platform output while retaining the old renderer-shaped CSS identities as compatibility aliases until #889.',
435
+ platforms: ['web'],
436
+ to: 'components.popover.content.shadow',
437
+ };
371
438
  export const tokenMigrationManifestV1 = [
372
439
  ...stateVocabularyRenameMigrationsV1,
440
+ ...platformNeutralComponentRepresentationMigrationsV1,
441
+ ...platformNeutralLegacyCanonicalRemovalMigrationsV1,
442
+ platformNeutralPopoverShadowMigrationV1,
443
+ platformNeutralPopoverWebAdditionV1,
373
444
  ...semanticVocabularyRenameMigrationsV1,
374
445
  ...semanticVocabularyRemovalMigrationsV1,
446
+ semanticPanelAdditionV1,
375
447
  ...semanticVocabularyVisualMigrationsV1,
376
448
  ...semanticVocabularyDownstreamVisualMigrationsV1,
377
449
  {
@@ -143,8 +143,8 @@ export declare const legitimatePersistentActiveStateDomainsV1: readonly [{
143
143
  }];
144
144
  export declare const semanticVocabularyV1: {
145
145
  readonly surface: {
146
- readonly purpose: "Layer and interaction backgrounds.";
147
- readonly roles: readonly ["canvas", "default", "subtle", "muted", "elevated", "hover", "active", "pressed", "disabled", "danger", "inverse"];
146
+ readonly purpose: "Layer and interaction backgrounds with explicit root, bounded-panel, and elevated ownership.";
147
+ readonly roles: readonly ["canvas", "default", "panel", "subtle", "muted", "elevated", "hover", "active", "pressed", "disabled", "danger", "inverse"];
148
148
  };
149
149
  readonly text: {
150
150
  readonly purpose: "Text foreground hierarchy and text interaction roles.";
@@ -194,14 +194,14 @@ export declare const semanticVocabularyV1: {
194
194
  };
195
195
  };
196
196
  export declare const canonicalTokenVocabulary: {
197
- readonly surface: readonly ["canvas", "default", "subtle", "muted", "elevated", "hover", "active", "pressed", "disabled", "danger", "inverse"];
197
+ readonly surface: readonly ["canvas", "default", "panel", "subtle", "muted", "elevated", "hover", "active", "pressed", "disabled", "danger", "inverse"];
198
198
  readonly state: readonly ["default", "hover", "pressed", "active", "selected", "disabled", "focus"];
199
199
  readonly foreground: readonly ["primary", "secondary", "muted", "subtle", "disabled", "brand", "interactive", "interactiveHover", "interactivePressed", "inverse"];
200
200
  readonly border: readonly ["subtle", "muted", "default", "strong", "elevated", "disabled", "interactive"];
201
201
  readonly intent: readonly ["primary", "accent", "neutral", "success", "warning", "danger"];
202
202
  readonly status: readonly ["success", "error", "warning", "info"];
203
203
  };
204
- export declare const canonicalSemanticRolePaths: readonly ["surface.canvas", "surface.default", "surface.subtle", "surface.muted", "surface.elevated", "surface.hover", "surface.active", "surface.pressed", "surface.disabled", "surface.danger", "surface.inverse", "text.primary", "text.secondary", "text.muted", "text.subtle", "text.disabled", "text.brand", "text.interactive", "text.interactiveHover", "text.interactivePressed", "text.inverse", "icons.default", "icons.secondary", "icons.muted", "icons.subtle", "icons.disabled", "icons.interactive", "icons.brand", "icons.interactiveHover", "icons.success", "icons.danger", "icons.inverse", "border.subtle", "border.muted", "border.default", "border.strong", "border.elevated", "border.disabled", "border.interactive", "divider.muted", "divider.default", "divider.strong", "focus.ring.color", "focus.ring.width", "focus.ring.shadow", "focus.ring.offsetColor", "status.success.fg", "status.success.bg", "status.success.border", "status.success.ring", "status.success.emphasisFg", "status.error.fg", "status.error.bg", "status.error.border", "status.error.ring", "status.error.emphasisFg", "status.warning.fg", "status.warning.bg", "status.warning.border", "status.warning.ring", "status.warning.emphasisFg", "status.info.fg", "status.info.bg", "status.info.border", "status.info.ring", "status.info.emphasisFg", "overlay.backdrop", "overlay.tooltip.bg", "overlay.tooltip.fg", "overlay.tooltip.border", "overlay.floating.bg", "overlay.floating.border", "overlay.dialog.bg", "overlay.dialog.border"];
204
+ export declare const canonicalSemanticRolePaths: readonly ["surface.canvas", "surface.default", "surface.panel", "surface.subtle", "surface.muted", "surface.elevated", "surface.hover", "surface.active", "surface.pressed", "surface.disabled", "surface.danger", "surface.inverse", "text.primary", "text.secondary", "text.muted", "text.subtle", "text.disabled", "text.brand", "text.interactive", "text.interactiveHover", "text.interactivePressed", "text.inverse", "icons.default", "icons.secondary", "icons.muted", "icons.subtle", "icons.disabled", "icons.interactive", "icons.brand", "icons.interactiveHover", "icons.success", "icons.danger", "icons.inverse", "border.subtle", "border.muted", "border.default", "border.strong", "border.elevated", "border.disabled", "border.interactive", "divider.muted", "divider.default", "divider.strong", "focus.ring.color", "focus.ring.width", "focus.ring.shadow", "focus.ring.offsetColor", "status.success.fg", "status.success.bg", "status.success.border", "status.success.ring", "status.success.emphasisFg", "status.error.fg", "status.error.bg", "status.error.border", "status.error.ring", "status.error.emphasisFg", "status.warning.fg", "status.warning.bg", "status.warning.border", "status.warning.ring", "status.warning.emphasisFg", "status.info.fg", "status.info.bg", "status.info.border", "status.info.ring", "status.info.emphasisFg", "overlay.backdrop", "overlay.tooltip.bg", "overlay.tooltip.fg", "overlay.tooltip.border", "overlay.floating.bg", "overlay.floating.border", "overlay.dialog.bg", "overlay.dialog.border"];
205
205
  export declare const componentTokenFactoryModel: {
206
206
  readonly canonicalName: "create<Component>Tokens";
207
207
  readonly legacyPaletteName: "create<Component>Palette is retained when the component exposes intent palettes.";
@@ -1 +1 @@
1
- {"version":3,"file":"token-architecture.d.ts","sourceRoot":"","sources":["../src/token-architecture.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,uBAAuB,qGAO1B,CAAC;AAEX,eAAO,MAAM,qBAAqB,EAChC,wFAAiG,CAAC;AAEpG,eAAO,MAAM,eAAe,wLAelB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBrC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;CA2BqB,CAAC;AAsHxE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GAAG,MAAM,GACrB,cAAc,GAAG,IAAI,CAwCvB;AAED,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GAAG,MAAM,GACrB,cAAc,CAQhB;AAED,eAAO,MAAM,0BAA0B,qFAQ7B,CAAC;AAEX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC/B,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;EAiC3C,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGvB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;CA8C3B,CAAC;AAEX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;;;;;;;;;;;;;;EAiC3C,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGvB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;CA+C3B,CAAC;AAEX,eAAO,MAAM,0BAA0B,4+CA4E7B,CAAC;AAEX,eAAO,MAAM,0BAA0B;;;;;;CAS7B,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqG/B,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;EA+BjC,CAAC"}
@@ -298,10 +298,11 @@ export const legitimatePersistentActiveStateDomainsV1 = [
298
298
  ];
299
299
  export const semanticVocabularyV1 = {
300
300
  surface: {
301
- purpose: 'Layer and interaction backgrounds.',
301
+ purpose: 'Layer and interaction backgrounds with explicit root, bounded-panel, and elevated ownership.',
302
302
  roles: [
303
303
  'canvas',
304
304
  'default',
305
+ 'panel',
305
306
  'subtle',
306
307
  'muted',
307
308
  'elevated',
@@ -395,6 +396,7 @@ export const canonicalTokenVocabulary = {
395
396
  surface: [
396
397
  'canvas',
397
398
  'default',
399
+ 'panel',
398
400
  'subtle',
399
401
  'muted',
400
402
  'elevated',
@@ -441,6 +443,7 @@ export const canonicalTokenVocabulary = {
441
443
  export const canonicalSemanticRolePaths = [
442
444
  'surface.canvas',
443
445
  'surface.default',
446
+ 'surface.panel',
444
447
  'surface.subtle',
445
448
  'surface.muted',
446
449
  'surface.elevated',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellira-ui/tokens",
3
- "version": "2.98.7",
3
+ "version": "2.99.0",
4
4
  "description": "Design tokens for Vellira Design System",
5
5
  "keywords": [
6
6
  "vellira",