@adobe/spectrum-design-data 3.7.0 → 3.8.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 (109) hide show
  1. package/changelog/accordion.json +359 -0
  2. package/changelog/action-bar.json +110 -0
  3. package/changelog/action-button.json +362 -0
  4. package/changelog/action-group.json +72 -0
  5. package/changelog/alert-banner.json +65 -0
  6. package/changelog/alert-dialog.json +88 -0
  7. package/changelog/avatar-group.json +93 -0
  8. package/changelog/avatar.json +99 -0
  9. package/changelog/badge.json +595 -0
  10. package/changelog/bar-panel.json +7 -0
  11. package/changelog/body.json +7 -0
  12. package/changelog/bottom-navigation-android.json +7 -0
  13. package/changelog/breadcrumbs.json +145 -0
  14. package/changelog/button-group.json +66 -0
  15. package/changelog/button.json +504 -0
  16. package/changelog/calendar.json +62 -0
  17. package/changelog/card-horizontal.json +7 -0
  18. package/changelog/card.json +24 -0
  19. package/changelog/cards.json +137 -0
  20. package/changelog/checkbox-group.json +48 -0
  21. package/changelog/checkbox.json +210 -0
  22. package/changelog/close-button.json +125 -0
  23. package/changelog/coach-indicator.json +77 -0
  24. package/changelog/coach-mark.json +44 -0
  25. package/changelog/code.json +7 -0
  26. package/changelog/collection-card.json +7 -0
  27. package/changelog/color-area.json +67 -0
  28. package/changelog/color-control.json +7 -0
  29. package/changelog/color-handle.json +80 -0
  30. package/changelog/color-loupe.json +77 -0
  31. package/changelog/color-slider.json +89 -0
  32. package/changelog/color-wheel.json +68 -0
  33. package/changelog/combo-box.json +277 -0
  34. package/changelog/contextual-help.json +74 -0
  35. package/changelog/date-field.json +24 -0
  36. package/changelog/date-picker.json +175 -0
  37. package/changelog/detail.json +7 -0
  38. package/changelog/divider.json +82 -0
  39. package/changelog/double-calendar.json +7 -0
  40. package/changelog/drop-zone.json +155 -0
  41. package/changelog/field-label.json +118 -0
  42. package/changelog/field.json +7 -0
  43. package/changelog/floating-action-button.json +7 -0
  44. package/changelog/form-item.json +7 -0
  45. package/changelog/heading.json +24 -0
  46. package/changelog/help-text.json +100 -0
  47. package/changelog/illustrated-message.json +79 -0
  48. package/changelog/in-field-button.json +7 -0
  49. package/changelog/in-field-progress-button.json +7 -0
  50. package/changelog/in-field-progress-circle.json +48 -0
  51. package/changelog/in-line-alert.json +66 -0
  52. package/changelog/link.json +123 -0
  53. package/changelog/list-view.json +184 -0
  54. package/changelog/menu.json +254 -0
  55. package/changelog/meter.json +89 -0
  56. package/changelog/number-field.json +232 -0
  57. package/changelog/opacity-checkerboard.json +7 -0
  58. package/changelog/picker.json +241 -0
  59. package/changelog/popover.json +86 -0
  60. package/changelog/progress-bar.json +94 -0
  61. package/changelog/progress-circle.json +62 -0
  62. package/changelog/radio-button.json +180 -0
  63. package/changelog/radio-group.json +61 -0
  64. package/changelog/rating.json +64 -0
  65. package/changelog/scroll-zoom-bar.json +7 -0
  66. package/changelog/search-field.json +188 -0
  67. package/changelog/segmented-control.json +139 -0
  68. package/changelog/segmented-text-field.json +7 -0
  69. package/changelog/select-box.json +106 -0
  70. package/changelog/side-navigation.json +171 -0
  71. package/changelog/single-calendar.json +7 -0
  72. package/changelog/slider.json +144 -0
  73. package/changelog/stack-item.json +25 -0
  74. package/changelog/standard-dialog.json +58 -0
  75. package/changelog/standard-panel.json +7 -0
  76. package/changelog/status-light.json +108 -0
  77. package/changelog/steplist.json +66 -0
  78. package/changelog/swatch-group.json +62 -0
  79. package/changelog/swatch.json +99 -0
  80. package/changelog/switch.json +164 -0
  81. package/changelog/tab-bar-ios.json +25 -0
  82. package/changelog/table.json +140 -0
  83. package/changelog/tabs.json +118 -0
  84. package/changelog/tag-field.json +91 -0
  85. package/changelog/tag-group.json +66 -0
  86. package/changelog/tag.json +217 -0
  87. package/changelog/takeover-dialog.json +67 -0
  88. package/changelog/text-area.json +240 -0
  89. package/changelog/text-field.json +222 -0
  90. package/changelog/thumbnail.json +49 -0
  91. package/changelog/time-field.json +24 -0
  92. package/changelog/title.json +24 -0
  93. package/changelog/toast.json +110 -0
  94. package/changelog/tooltip.json +115 -0
  95. package/changelog/tray.json +7 -0
  96. package/changelog/tree-view.json +202 -0
  97. package/changelog/triple-calendar.json +7 -0
  98. package/changelog/user-card.json +24 -0
  99. package/components/accordion.json +37 -0
  100. package/components/action-button.json +44 -0
  101. package/components/badge.json +18 -2
  102. package/components/button.json +47 -1
  103. package/components/checkbox.json +42 -0
  104. package/components/radio-button.json +43 -3
  105. package/components/switch.json +36 -1
  106. package/package.json +4 -2
  107. package/registry/anatomy-terms.json +13 -8
  108. package/registry/token-terminology.json +1 -1
  109. package/tokens/layout.tokens.json +3 -2
@@ -38,11 +38,51 @@
38
38
  "options": {
39
39
  "isSelected": { "type": "boolean", "default": false },
40
40
  "isEmphasized": { "type": "boolean", "default": false },
41
+ "isDisabled": { "type": "boolean", "default": false },
42
+ "size": {
43
+ "type": "string",
44
+ "default": "m",
45
+ "values": [
46
+ { "value": "s" },
47
+ { "value": "m" },
48
+ { "value": "l" },
49
+ { "value": "xl" }
50
+ ]
51
+ },
41
52
  "label": {
42
53
  "type": "string",
43
54
  "description": "The text displayed next to a radio button."
44
55
  }
45
56
  },
57
+ "anatomy": [
58
+ {
59
+ "name": "container",
60
+ "description": "Row that holds the control and the label.",
61
+ "required": true,
62
+ "contains": ["control", "label"]
63
+ },
64
+ {
65
+ "name": "control",
66
+ "description": "Circle that holds the selection indicator. Unselected it is drawn as a ring; selected it is filled.",
67
+ "required": true,
68
+ "contains": ["selection-indicator"]
69
+ },
70
+ {
71
+ "name": "selection-indicator",
72
+ "description": "Dot at the center of the control, shown while the radio button is selected."
73
+ },
74
+ { "name": "label", "description": "Text label." },
75
+ {
76
+ "name": "focus-indicator",
77
+ "description": "Outline drawn outside the control for keyboard focus.",
78
+ "presentIn": ["keyboard-focus"]
79
+ }
80
+ ],
81
+ "anatomyReview": {
82
+ "status": "reviewed",
83
+ "reviewedIn": "1.0.0-draft",
84
+ "notes": "Figma draws the selected state as a 6px inner border around a 4px white dot; modeled as a filled control with a selection-indicator dot, which renders the same. focus-indicator is state-only."
85
+ },
46
86
  "states": [
47
87
  { "name": "hover", "trigger": "interaction" },
48
88
  { "name": "down", "trigger": "interaction" },
@@ -52,15 +92,15 @@
52
92
  "tokenBindings": [
53
93
  {
54
94
  "token": "neutral-content-color-selected-default",
55
- "context": "S2 Control (selected, non emphasized)"
95
+ "context": "Control (selected, non emphasized)"
56
96
  },
57
97
  {
58
98
  "token": "neutral-content-color-selected-hover",
59
- "context": "S2 Control (selected, non emphasized)"
99
+ "context": "Control (selected, non emphasized)"
60
100
  },
61
101
  {
62
102
  "token": "neutral-content-color-selected-key-focus",
63
- "context": "S2 Control (selected, non emphasized)"
103
+ "context": "Control (selected, non emphasized)"
64
104
  }
65
105
  ],
66
106
  "accessibility": {
@@ -105,7 +105,42 @@
105
105
  },
106
106
  "isEmphasized": { "type": "boolean", "default": false },
107
107
  "isDisabled": { "type": "boolean", "default": false },
108
- "isReadOnly": { "type": "boolean", "default": false }
108
+ "isReadOnly": {
109
+ "type": "boolean",
110
+ "default": false,
111
+ "description": "Behavior only: the switch keeps its default or selected appearance and does not respond to hover or press. No distinct read-only visual is defined in Figma (Web POC), react-spectrum S2, or Spectrum Web Components 1st-gen."
112
+ },
113
+ "hideLabel": { "type": "boolean", "default": false }
114
+ },
115
+ "anatomy": [
116
+ {
117
+ "name": "container",
118
+ "description": "Row that holds the track and the label.",
119
+ "required": true,
120
+ "contains": ["track", "label"]
121
+ },
122
+ {
123
+ "name": "track",
124
+ "description": "Pill-shaped background. Its border is drawn while the switch is off. Holds the handle.",
125
+ "required": true,
126
+ "contains": ["handle"]
127
+ },
128
+ {
129
+ "name": "handle",
130
+ "description": "Circle that sits at the start of the track when off and at the end when on.",
131
+ "required": true
132
+ },
133
+ { "name": "label", "description": "Text label." },
134
+ {
135
+ "name": "focus-indicator",
136
+ "description": "Outline drawn outside the track for keyboard focus.",
137
+ "presentIn": ["keyboard-focus"]
138
+ }
139
+ ],
140
+ "anatomyReview": {
141
+ "status": "reviewed",
142
+ "reviewedIn": "1.0.0-draft",
143
+ "notes": "control removed (a grouping with no style of its own); its size moved to track, which now holds the handle. focus-indicator is state-only."
109
144
  },
110
145
  "states": [
111
146
  { "name": "hover", "trigger": "interaction" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-design-data",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "Spectrum design tokens in cascade format — the canonical source of truth for @adobe/spectrum-tokens",
5
5
  "type": "module",
6
6
  "repository": {
@@ -20,6 +20,7 @@
20
20
  "./package.json": "./package.json",
21
21
  "./tokens/*": "./tokens/*.tokens.json",
22
22
  "./components/*": "./components/*.json",
23
+ "./changelog/*": "./changelog/*.json",
23
24
  "./fields/*": "./fields/*.json",
24
25
  "./mode-sets/*": "./mode-sets/*.json",
25
26
  "./guidelines/*": "./guidelines/*.json",
@@ -53,6 +54,7 @@
53
54
  "files": [
54
55
  "tokens/",
55
56
  "components/",
57
+ "changelog/",
56
58
  "fields/",
57
59
  "mode-sets/",
58
60
  "guidelines/",
@@ -63,7 +65,7 @@
63
65
  "devDependencies": {
64
66
  "ajv": "^8.12.0",
65
67
  "ajv-formats": "^3.0.1",
66
- "@adobe/design-data-spec": "4.8.0"
68
+ "@adobe/design-data-spec": "4.9.0"
67
69
  },
68
70
  "scripts": {}
69
71
  }
@@ -211,6 +211,18 @@
211
211
  "description": "Check or confirmation icon element within a component",
212
212
  "usedIn": ["tokens"]
213
213
  },
214
+ {
215
+ "id": "box",
216
+ "label": "Box",
217
+ "description": "Rounded square that holds a mark (e.g., a checkbox)",
218
+ "usedIn": ["component-schemas"]
219
+ },
220
+ {
221
+ "id": "dash",
222
+ "label": "Dash",
223
+ "description": "Short horizontal bar icon element, e.g. the indeterminate mark of a checkbox",
224
+ "usedIn": ["component-schemas"]
225
+ },
214
226
  {
215
227
  "id": "stepper",
216
228
  "label": "Stepper",
@@ -241,17 +253,10 @@
241
253
  "description": "Heading text element within a component section",
242
254
  "usedIn": ["tokens", "s2-docs"]
243
255
  },
244
- {
245
- "id": "focus-ring",
246
- "label": "Focus Ring",
247
- "description": "Visible ring drawn around a focused component for accessibility",
248
- "usedIn": ["tokens"],
249
- "standaloneScope": true
250
- },
251
256
  {
252
257
  "id": "focus-indicator",
253
258
  "label": "Focus Indicator",
254
- "description": "Visual indicator showing keyboard focus state on a component",
259
+ "description": "Visual indicator showing keyboard focus state on a component. Named for its intent, not its shape: it may be a ring or a side indicator. Its tokens are focus-indicator color, gap and thickness.",
255
260
  "usedIn": ["tokens"],
256
261
  "standaloneScope": true
257
262
  },
@@ -458,7 +458,7 @@
458
458
  {
459
459
  "id": "focus-ring",
460
460
  "label": "Focus Ring",
461
- "description": "Visual indication of interactive keyboard focus on any UI element",
461
+ "description": "Shared style class for the ring-shaped focus indicator, built from the focus-indicator tokens (color, gap, thickness). Not a token anatomy; tokens use focus-indicator.",
462
462
  "usedIn": ["tokens", "taxonomy"],
463
463
  "definition": {
464
464
  "superordinate": "structure",
@@ -5769,8 +5769,9 @@
5769
5769
  },
5770
5770
  {
5771
5771
  "name": {
5772
- "anatomy": "focus-ring",
5773
- "property": "gap"
5772
+ "anatomy": "focus-indicator",
5773
+ "property": "gap",
5774
+ "legacyKey": "focus-ring-gap"
5774
5775
  },
5775
5776
  "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/alias.json",
5776
5777
  "$ref": "1b06f6e2-d9be-4934-b3da-bed75986d104",