@adobe/spectrum-design-data 0.4.0 → 0.7.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 (96) hide show
  1. package/components/accordion.json +108 -194
  2. package/components/action-bar.json +64 -97
  3. package/components/action-button.json +95 -230
  4. package/components/action-group.json +88 -86
  5. package/components/alert-banner.json +104 -76
  6. package/components/alert-dialog.json +78 -126
  7. package/components/avatar-group.json +61 -119
  8. package/components/avatar.json +98 -212
  9. package/components/badge.json +138 -256
  10. package/components/breadcrumbs.json +95 -89
  11. package/components/button-group.json +57 -48
  12. package/components/button.json +151 -368
  13. package/components/calendar.json +97 -34
  14. package/components/cards.json +109 -250
  15. package/components/checkbox-group.json +50 -58
  16. package/components/checkbox.json +121 -186
  17. package/components/close-button.json +61 -124
  18. package/components/coach-indicator.json +63 -72
  19. package/components/coach-mark.json +89 -93
  20. package/components/color-area.json +68 -94
  21. package/components/color-handle.json +39 -79
  22. package/components/color-loupe.json +35 -52
  23. package/components/color-slider.json +95 -116
  24. package/components/color-wheel.json +67 -73
  25. package/components/combo-box.json +243 -331
  26. package/components/contextual-help.json +86 -175
  27. package/components/date-picker.json +139 -179
  28. package/components/divider.json +30 -69
  29. package/components/drop-zone.json +51 -92
  30. package/components/field-label.json +75 -117
  31. package/components/help-text.json +81 -105
  32. package/components/illustrated-message.json +106 -73
  33. package/components/in-line-alert.json +50 -83
  34. package/components/link.json +63 -85
  35. package/components/list-view.json +107 -146
  36. package/components/menu.json +180 -274
  37. package/components/meter.json +72 -118
  38. package/components/number-field.json +213 -305
  39. package/components/picker.json +208 -320
  40. package/components/popover.json +94 -129
  41. package/components/progress-bar.json +94 -131
  42. package/components/progress-circle.json +45 -72
  43. package/components/radio-button.json +87 -156
  44. package/components/radio-group.json +107 -74
  45. package/components/rating.json +66 -99
  46. package/components/search-field.json +132 -202
  47. package/components/segmented-control.json +94 -109
  48. package/components/select-box.json +119 -179
  49. package/components/side-navigation.json +108 -118
  50. package/components/slider.json +143 -228
  51. package/components/standard-dialog.json +96 -114
  52. package/components/standard-panel.json +105 -53
  53. package/components/status-light.json +104 -240
  54. package/components/steplist.json +77 -161
  55. package/components/swatch-group.json +42 -58
  56. package/components/swatch.json +75 -162
  57. package/components/switch.json +101 -189
  58. package/components/table.json +97 -102
  59. package/components/tabs.json +77 -104
  60. package/components/tag-field.json +86 -150
  61. package/components/tag-group.json +50 -44
  62. package/components/tag.json +81 -198
  63. package/components/takeover-dialog.json +59 -57
  64. package/components/text-area.json +200 -323
  65. package/components/text-field.json +183 -304
  66. package/components/thumbnail.json +63 -105
  67. package/components/toast.json +97 -83
  68. package/components/tooltip.json +104 -96
  69. package/components/tree-view.json +169 -181
  70. package/guidelines/app-frame-content-area.json +81 -0
  71. package/guidelines/app-frame-creating-bluelines.json +58 -0
  72. package/guidelines/app-frame-header.json +72 -0
  73. package/guidelines/app-frame-overview.json +167 -0
  74. package/guidelines/app-frame-side-navigation.json +138 -0
  75. package/guidelines/attention-hierarchy.json +42 -0
  76. package/guidelines/background-layers.json +38 -0
  77. package/guidelines/brand.json +50 -0
  78. package/guidelines/colors.json +62 -0
  79. package/guidelines/containers.json +62 -0
  80. package/guidelines/developer-overview.json +35 -0
  81. package/guidelines/faqs.json +35 -0
  82. package/guidelines/fonts.json +58 -0
  83. package/guidelines/grays.json +66 -0
  84. package/guidelines/icon-fundamentals.json +45 -0
  85. package/guidelines/illustrations.json +111 -0
  86. package/guidelines/introduction.json +31 -0
  87. package/guidelines/manifest.json +204 -0
  88. package/guidelines/motion.json +41 -0
  89. package/guidelines/object-styles.json +102 -0
  90. package/guidelines/principles.json +30 -0
  91. package/guidelines/resources.json +59 -0
  92. package/guidelines/spacing.json +25 -0
  93. package/guidelines/states.json +34 -0
  94. package/guidelines/typography-fundamentals.json +142 -0
  95. package/guidelines/using-icons.json +107 -0
  96. package/package.json +4 -2
@@ -9,130 +9,104 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/color-area/"
11
11
  },
12
- "options": {
13
- "background": {
14
- "type": "string",
15
- "description": "This will vary depending on implementation."
16
- },
17
- "x-value": {
18
- "type": "number",
19
- "description": "Number (from x-minValue to x-maxValue)"
20
- },
21
- "x-minValue": {
22
- "type": "number",
23
- "default": 0
24
- },
25
- "x-maxValue": {
26
- "type": "number",
27
- "default": 100
28
- },
29
- "y-value": {
30
- "type": "number",
31
- "description": "Number (from y-minValue to y-maxValue)"
32
- },
33
- "y-minValue": {
34
- "type": "number",
35
- "default": 0
36
- },
37
- "y-maxValue": {
38
- "type": "number",
39
- "default": 100
40
- },
41
- "step": {
42
- "type": "number",
43
- "default": 1
44
- },
45
- "width": {
46
- "type": "number",
47
- "default": 192,
48
- "description": "units: px"
49
- },
50
- "height": {
51
- "type": "number",
52
- "default": 192,
53
- "description": "units: px"
54
- },
55
- "isDisabled": {
56
- "type": "boolean",
57
- "default": false
58
- }
59
- },
60
- "states": [
12
+ "documentBlocks": [
61
13
  {
62
- "name": "hover",
63
- "trigger": "interaction"
14
+ "type": "purpose",
15
+ "content": "A color area allows users to visually select two properties of a color simultaneously. It's commonly used together with a color slider or color wheel."
64
16
  },
65
17
  {
66
- "name": "down",
67
- "trigger": "interaction"
18
+ "type": "guideline",
19
+ "content": "A color area enables visual selection of two color properties at once. It's often paired with a color slider or color wheel."
68
20
  },
69
21
  {
70
- "name": "keyboard-focus",
71
- "trigger": "interaction"
72
- }
73
- ],
74
- "lifecycle": {
75
- "introduced": "1.0.0-draft"
76
- },
77
- "tokenBindings": [
22
+ "type": "guideline",
23
+ "content": "A color area in a disabled state shows that an input exists, but is not available in that circumstance. This can be used to maintain layout continuity and communicate that the area may become available later."
24
+ },
78
25
  {
79
- "token": "color-area-width",
80
- "context": "Size"
26
+ "type": "guideline",
27
+ "content": "A color area’s height and width can be customized appropriately for its context."
81
28
  },
82
29
  {
83
- "token": "color-area-minimum-width",
84
- "context": "Size"
30
+ "type": "guideline",
31
+ "content": "The step refers to the increment by which these values increase or decrease. A step value of 1 (default) allows a user to only select whole numbers within the min and max range."
85
32
  },
86
33
  {
87
- "token": "color-area-height",
88
- "context": "Size"
34
+ "type": "guideline",
35
+ "content": "The x and y values are the numbers selected within the color area’s horizontal and vertical axes, respectively."
89
36
  },
90
37
  {
91
- "token": "color-area-minimum-height",
92
- "context": "Size"
38
+ "type": "guideline",
39
+ "content": "The x/y min and max values also can be customized appropriately for what the color area is being used for. By default, the min value starts at 0 and max value is set to 100."
93
40
  },
94
41
  {
95
- "token": "color-area-border-width",
96
- "context": "Color area border"
42
+ "type": "guideline",
43
+ "content": "A color area can be navigated using a keyboard. The keyboard focus state enlarges the handle to become twice as large."
97
44
  },
98
45
  {
99
- "token": "color-area-border-rounding",
100
- "context": "Color area border"
46
+ "type": "guideline",
47
+ "content": "The color area’s handle can slide all the way over the edge of the area. It always displays the selected color inside the handle and never gets cut off by the border or any container."
101
48
  },
102
49
  {
103
- "token": "color-area-border-color",
104
- "context": "Color area border"
50
+ "type": "guideline",
51
+ "content": "Minimum sizing ensures that the component remains clear, usable, and visually consistent, even in flexible or responsive layouts."
105
52
  },
106
53
  {
107
- "token": "color-area-border-opacity",
108
- "context": "Color area border"
54
+ "type": "guideline",
55
+ "content": "When using color areas, it’s important to clearly display the color selection in real time. This can be in a color swatch, directly on the canvas, or both."
109
56
  },
110
57
  {
111
- "token": "disabled-background-color",
112
- "context": "Disabled"
58
+ "type": "guideline",
59
+ "content": "The color loupe component can be used above the handle to show the selected color that would otherwise be covered by a mouse, stylus, or finger on the down/touch state. This can be customized to appear only on finger-input, or always appear regardless of input type."
113
60
  }
114
61
  ],
62
+ "options": {
63
+ "background": {
64
+ "type": "string",
65
+ "description": "This will vary depending on implementation."
66
+ },
67
+ "x-value": {
68
+ "type": "number",
69
+ "description": "Number (from x-minValue to x-maxValue)"
70
+ },
71
+ "x-minValue": { "type": "number", "default": 0 },
72
+ "x-maxValue": { "type": "number", "default": 100 },
73
+ "y-value": {
74
+ "type": "number",
75
+ "description": "Number (from y-minValue to y-maxValue)"
76
+ },
77
+ "y-minValue": { "type": "number", "default": 0 },
78
+ "y-maxValue": { "type": "number", "default": 100 },
79
+ "step": { "type": "number", "default": 1 },
80
+ "width": { "type": "number", "default": 192, "description": "units: px" },
81
+ "height": { "type": "number", "default": 192, "description": "units: px" },
82
+ "isDisabled": { "type": "boolean", "default": false }
83
+ },
84
+ "states": [
85
+ { "name": "hover", "trigger": "interaction" },
86
+ { "name": "down", "trigger": "interaction" },
87
+ { "name": "keyboard-focus", "trigger": "interaction" }
88
+ ],
89
+ "lifecycle": { "introduced": "1.0.0-draft" },
90
+ "tokenBindings": [
91
+ { "token": "color-area-width", "context": "Size" },
92
+ { "token": "color-area-minimum-width", "context": "Size" },
93
+ { "token": "color-area-height", "context": "Size" },
94
+ { "token": "color-area-minimum-height", "context": "Size" },
95
+ { "token": "color-area-border-width", "context": "Color area border" },
96
+ { "token": "color-area-border-rounding", "context": "Color area border" },
97
+ { "token": "color-area-border-color", "context": "Color area border" },
98
+ { "token": "color-area-border-opacity", "context": "Color area border" },
99
+ { "token": "disabled-background-color", "context": "Disabled" }
100
+ ],
115
101
  "accessibility": {
116
102
  "role": "slider",
117
103
  "intents": ["choose"],
118
104
  "focusable": true,
119
105
  "keyboardIntents": ["increment", "decrement"],
120
106
  "wcag": [
121
- {
122
- "criterion": "1.3.1",
123
- "level": "A",
124
- "title": "Info and Relationships"
125
- },
126
- {
127
- "criterion": "2.1.1",
128
- "level": "A",
129
- "title": "Keyboard"
130
- },
131
- {
132
- "criterion": "4.1.2",
133
- "level": "A",
134
- "title": "Name, Role, Value"
135
- }
107
+ { "criterion": "1.3.1", "level": "A", "title": "Info and Relationships" },
108
+ { "criterion": "2.1.1", "level": "A", "title": "Keyboard" },
109
+ { "criterion": "4.1.2", "level": "A", "title": "Name, Role, Value" }
136
110
  ]
137
111
  }
138
112
  }
@@ -9,103 +9,63 @@
9
9
  "category": "inputs",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/color-handle/"
11
11
  },
12
+ "documentBlocks": [
13
+ {
14
+ "type": "purpose",
15
+ "content": "Color handles select or adjust a color value along a track or wheel. The outer border is not included in the handle's size."
16
+ },
17
+ {
18
+ "type": "guideline",
19
+ "content": "Handle behavior.\n\nIn the color area and color slider, the handle can slide all the way to the edge of the component. It always displays the selected color inside the handle and never gets cut off by the border or any container."
20
+ },
21
+ {
22
+ "type": "guideline",
23
+ "content": "Transparent colors.\n\nWhen using transparent colors, the handle displays an opacity checkerboard background to clearly show the level of transparency."
24
+ },
25
+ {
26
+ "type": "guideline",
27
+ "content": "Keyboard focus.\n\nThe keyboard focus state enlarges the handle to become twice as large."
28
+ }
29
+ ],
12
30
  "options": {
13
31
  "channel": {
14
32
  "type": "string",
15
33
  "default": "hue",
16
34
  "description": "Which channel of the color this handle controls. Use 'alpha' for opacity.",
17
35
  "values": [
18
- {
19
- "value": "hue"
20
- },
21
- {
22
- "value": "saturation"
23
- },
24
- {
25
- "value": "lightness"
26
- },
27
- {
28
- "value": "red"
29
- },
30
- {
31
- "value": "green"
32
- },
33
- {
34
- "value": "blue"
35
- },
36
- {
37
- "value": "alpha"
38
- }
36
+ { "value": "hue" },
37
+ { "value": "saturation" },
38
+ { "value": "lightness" },
39
+ { "value": "red" },
40
+ { "value": "green" },
41
+ { "value": "blue" },
42
+ { "value": "alpha" }
39
43
  ]
40
44
  },
41
- "isDisabled": {
42
- "type": "boolean",
43
- "default": false
44
- }
45
- },
46
- "lifecycle": {
47
- "introduced": "1.0.0-draft"
45
+ "isDisabled": { "type": "boolean", "default": false }
48
46
  },
47
+ "lifecycle": { "introduced": "1.0.0-draft" },
49
48
  "tokenBindings": [
50
- {
51
- "token": "color-handle-size",
52
- "context": "Size (keyboard focus)"
53
- },
49
+ { "token": "color-handle-size", "context": "Size (keyboard focus)" },
54
50
  {
55
51
  "token": "color-handle-size-key-focus",
56
52
  "context": "Size (keyboard focus)"
57
53
  },
58
- {
59
- "token": "color-handle-border-width",
60
- "context": "Border"
61
- },
62
- {
63
- "token": "color-handle-inner-border-width",
64
- "context": "Border"
65
- },
66
- {
67
- "token": "color-handle-outer-border-width",
68
- "context": "Border"
69
- },
70
- {
71
- "token": "white",
72
- "context": "Border"
73
- },
74
- {
75
- "token": "color-handle-inner-border-color",
76
- "context": "Border"
77
- },
78
- {
79
- "token": "color-handle-inner-border-opacity",
80
- "context": "Border"
81
- },
82
- {
83
- "token": "color-handle-outer-border-color",
84
- "context": "Border"
85
- },
86
- {
87
- "token": "color-handle-outer-border-opacity",
88
- "context": "Border"
89
- },
90
- {
91
- "token": "disabled-content-color",
92
- "context": "Border (disabled)"
93
- },
94
- {
95
- "token": "disabled-background-color",
96
- "context": "Border (disabled)"
97
- }
54
+ { "token": "color-handle-border-width", "context": "Border" },
55
+ { "token": "color-handle-inner-border-width", "context": "Border" },
56
+ { "token": "color-handle-outer-border-width", "context": "Border" },
57
+ { "token": "white", "context": "Border" },
58
+ { "token": "color-handle-inner-border-color", "context": "Border" },
59
+ { "token": "color-handle-inner-border-opacity", "context": "Border" },
60
+ { "token": "color-handle-outer-border-color", "context": "Border" },
61
+ { "token": "color-handle-outer-border-opacity", "context": "Border" },
62
+ { "token": "disabled-content-color", "context": "Border (disabled)" },
63
+ { "token": "disabled-background-color", "context": "Border (disabled)" }
98
64
  ],
99
65
  "accessibility": {
100
66
  "intents": ["choose"],
101
67
  "focusable": true,
102
68
  "keyboardIntents": ["increment", "decrement"],
103
- "wcag": [
104
- {
105
- "criterion": "2.1.1",
106
- "level": "A",
107
- "title": "Keyboard"
108
- }
109
- ]
69
+ "wcag": [{ "criterion": "2.1.1", "level": "A", "title": "Keyboard" }]
110
70
  }
111
71
  }
@@ -9,69 +9,52 @@
9
9
  "category": "feedback",
10
10
  "documentationUrl": "https://spectrum.adobe.com/page/color-loupe/"
11
11
  },
12
- "options": {
13
- "value": {
14
- "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/hex-color.json"
15
- }
16
- },
17
- "lifecycle": {
18
- "introduced": "1.0.0-draft"
19
- },
20
- "tokenBindings": [
21
- {
22
- "token": "color-loupe-height",
23
- "context": "Size"
24
- },
25
- {
26
- "token": "color-loupe-width",
27
- "context": "Size"
28
- },
29
- {
30
- "token": "color-loupe-outer-border-width",
31
- "context": "Border"
32
- },
33
- {
34
- "token": "color-loupe-inner-border-width",
35
- "context": "Border"
36
- },
37
- {
38
- "token": "color-loupe-bottom-to-color-handle",
39
- "context": "Spacing"
40
- },
41
- {
42
- "token": "drop-shadow-elevated-x",
43
- "context": "Shadows"
44
- },
45
- {
46
- "token": "drop-shadow-elevated-y",
47
- "context": "Shadows"
48
- },
12
+ "documentBlocks": [
49
13
  {
50
- "token": "drop-shadow-elevated-blur",
51
- "context": "Shadows"
14
+ "type": "purpose",
15
+ "content": "A color loupe shows the output color that would otherwise be covered by a cursor, stylus, or finger during color selection."
52
16
  },
53
17
  {
54
- "token": "color-loupe-outer-border",
55
- "context": "Border"
18
+ "type": "guideline",
19
+ "content": "Color loupe.\n\nThe loupe is a floating element positioned above the handle. It provides a preview that reflects the color currently sampled by its parent color component and disappears when the interaction ends."
56
20
  },
57
21
  {
58
- "token": "drop-shadow-x",
59
- "context": "S1 Shadows"
22
+ "type": "guideline",
23
+ "content": "Transparent colors.\n\nWhen using transparent colors, the loupe displays an opacity checkerboard background to clearly show the level of transparency."
60
24
  },
61
25
  {
62
- "token": "color-loupe-drop-shadow-y",
63
- "context": "S1 Shadows"
26
+ "type": "guideline",
27
+ "content": "Keyboard focus.\n\nThe loupe is a visual-only element and should not receive focus since it does not provide interactive functionality."
64
28
  },
65
29
  {
66
- "token": "color-loupe-drop-shadow-blur",
67
- "context": "S1 Shadows"
30
+ "type": "guideline",
31
+ "content": "Display combined values.\n\nColor selection usually happens using a variety of input methods (color area, color slider, color wheel). The color loupe should display the final output color: the combined values from multiple color inputs.\n\nThe number of input methods is determined by the color space (or \"mode\"), for example:\n\n* 2 controls: HSL using color wheel (hue) and color area (saturation and lightness)\n* 3 controls: RGB using unique color sliders for Red, Green, and Blue\n* 4 controls: RGBa using unique color sliders for Red, Green, Blue, and Alpha"
68
32
  },
69
33
  {
70
- "token": "color-loupe-drop-shadow-color",
71
- "context": "S1 Shadows"
34
+ "type": "guideline",
35
+ "content": "Color loupe on down/touch state.\n\nThe color loupe component can be used above the handle to show the selected color that would otherwise be covered by a cursor, stylus, or finger on the down/touch state. This can be customized to appear only on finger-input, or always appear regardless of input type."
72
36
  }
73
37
  ],
74
- "accessibility": {
75
- "focusable": false
76
- }
38
+ "options": {
39
+ "value": {
40
+ "$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/hex-color.json"
41
+ }
42
+ },
43
+ "lifecycle": { "introduced": "1.0.0-draft" },
44
+ "tokenBindings": [
45
+ { "token": "color-loupe-height", "context": "Size" },
46
+ { "token": "color-loupe-width", "context": "Size" },
47
+ { "token": "color-loupe-outer-border-width", "context": "Border" },
48
+ { "token": "color-loupe-inner-border-width", "context": "Border" },
49
+ { "token": "color-loupe-bottom-to-color-handle", "context": "Spacing" },
50
+ { "token": "drop-shadow-elevated-x", "context": "Shadows" },
51
+ { "token": "drop-shadow-elevated-y", "context": "Shadows" },
52
+ { "token": "drop-shadow-elevated-blur", "context": "Shadows" },
53
+ { "token": "color-loupe-outer-border", "context": "Border" },
54
+ { "token": "drop-shadow-x", "context": "S1 Shadows" },
55
+ { "token": "color-loupe-drop-shadow-y", "context": "S1 Shadows" },
56
+ { "token": "color-loupe-drop-shadow-blur", "context": "S1 Shadows" },
57
+ { "token": "color-loupe-drop-shadow-color", "context": "S1 Shadows" }
58
+ ],
59
+ "accessibility": { "focusable": false }
77
60
  }