@adobe/design-data-spec 0.15.0 → 1.0.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 (84) hide show
  1. package/components/accordion.json +27 -4
  2. package/components/action-button.json +27 -4
  3. package/components/action-group.json +51 -10
  4. package/components/alert-banner.json +15 -2
  5. package/components/alert-dialog.json +18 -8
  6. package/components/avatar-group.json +24 -2
  7. package/components/avatar.json +72 -13
  8. package/components/badge.json +120 -31
  9. package/components/body.json +24 -2
  10. package/components/bottom-navigation-android.json +18 -4
  11. package/components/breadcrumbs.json +34 -7
  12. package/components/button-group.json +32 -5
  13. package/components/button.json +50 -10
  14. package/components/calendar.json +9 -2
  15. package/components/cards.json +21 -9
  16. package/components/checkbox-group.json +27 -6
  17. package/components/checkbox.json +15 -2
  18. package/components/close-button.json +24 -4
  19. package/components/coach-indicator.json +40 -14
  20. package/components/code.json +18 -2
  21. package/components/color-handle.json +24 -10
  22. package/components/color-slider.json +33 -12
  23. package/components/combo-box.json +48 -8
  24. package/components/contextual-help.json +78 -27
  25. package/components/date-picker.json +12 -2
  26. package/components/detail.json +24 -4
  27. package/components/divider.json +21 -4
  28. package/components/drop-zone.json +12 -2
  29. package/components/field-label.json +33 -6
  30. package/components/heading.json +36 -4
  31. package/components/help-text.json +25 -5
  32. package/components/illustrated-message.json +21 -4
  33. package/components/in-field-progress-button.json +29 -3
  34. package/components/in-field-progress-circle.json +23 -3
  35. package/components/in-line-alert.json +33 -11
  36. package/components/link.json +18 -4
  37. package/components/list-view.json +12 -2
  38. package/components/menu.json +42 -5
  39. package/components/meter.json +30 -4
  40. package/components/number-field.json +32 -5
  41. package/components/opacity-checkerboard.json +25 -2
  42. package/components/picker.json +41 -7
  43. package/components/popover.json +69 -25
  44. package/components/progress-bar.json +39 -8
  45. package/components/progress-circle.json +21 -4
  46. package/components/radio-group.json +42 -8
  47. package/components/scroll-zoom-bar.json +21 -4
  48. package/components/search-field.json +15 -2
  49. package/components/segmented-control.json +27 -6
  50. package/components/select-box.json +9 -2
  51. package/components/side-navigation.json +12 -2
  52. package/components/slider.json +17 -3
  53. package/components/standard-dialog.json +12 -2
  54. package/components/standard-panel.json +33 -6
  55. package/components/status-light.json +87 -28
  56. package/components/steplist.json +9 -2
  57. package/components/swatch-group.json +48 -8
  58. package/components/swatch.json +39 -9
  59. package/components/switch.json +15 -2
  60. package/components/tab-bar-ios.json +18 -4
  61. package/components/table.json +24 -4
  62. package/components/tabs.json +9 -2
  63. package/components/tag-field.json +27 -4
  64. package/components/tag-group.json +21 -4
  65. package/components/takeover-dialog.json +9 -2
  66. package/components/text-area.json +50 -7
  67. package/components/text-field.json +32 -5
  68. package/components/thumbnail.json +38 -1
  69. package/components/title.json +24 -2
  70. package/components/toast.json +15 -2
  71. package/components/tooltip.json +27 -4
  72. package/components/tree-view.json +42 -8
  73. package/conformance/invalid/SPEC-019/dataset.json +14 -1
  74. package/conformance/invalid/SPEC-037/dataset.json +14 -6
  75. package/conformance/invalid/SPEC-038/dataset.json +20 -0
  76. package/conformance/invalid/SPEC-038/expected-errors.json +10 -0
  77. package/conformance/valid/SPEC-037/dataset.json +20 -8
  78. package/conformance/valid/SPEC-038/dataset.json +29 -0
  79. package/conformance/valid/component-refs/dataset.json +41 -7
  80. package/package.json +1 -1
  81. package/rules/rules.yaml +17 -4
  82. package/schemas/component.schema.json +25 -11
  83. package/spec/agent-surface.md +1 -1
  84. package/spec/component-format.md +67 -33
@@ -13,18 +13,45 @@
13
13
  "orientation": {
14
14
  "type": "string",
15
15
  "default": "horizontal",
16
- "enum": ["horizontal", "vertical"]
16
+ "values": [
17
+ {
18
+ "value": "horizontal"
19
+ },
20
+ {
21
+ "value": "vertical"
22
+ }
23
+ ]
17
24
  },
18
25
  "size": {
19
26
  "type": "string",
20
27
  "pattern": "^(x?s|m|x{0,3}l)$",
21
- "enum": ["s", "m", "l", "xl"],
22
- "default": "m"
28
+ "default": "m",
29
+ "values": [
30
+ {
31
+ "value": "s"
32
+ },
33
+ {
34
+ "value": "m"
35
+ },
36
+ {
37
+ "value": "l"
38
+ },
39
+ {
40
+ "value": "xl"
41
+ }
42
+ ]
23
43
  },
24
44
  "overflowMode": {
25
45
  "type": "string",
26
- "enum": ["wrap", "collapse"],
27
- "default": "wrap"
46
+ "default": "wrap",
47
+ "values": [
48
+ {
49
+ "value": "wrap"
50
+ },
51
+ {
52
+ "value": "collapse"
53
+ }
54
+ ]
28
55
  },
29
56
  "isDisabled": {
30
57
  "type": "boolean",
@@ -12,19 +12,52 @@
12
12
  "options": {
13
13
  "variant": {
14
14
  "type": "string",
15
- "enum": ["accent", "negative", "primary", "secondary"],
16
15
  "default": "accent",
17
- "description": "Visual emphasis level."
16
+ "description": "Visual emphasis level.",
17
+ "values": [
18
+ {
19
+ "value": "accent"
20
+ },
21
+ {
22
+ "value": "negative"
23
+ },
24
+ {
25
+ "value": "primary"
26
+ },
27
+ {
28
+ "value": "secondary"
29
+ }
30
+ ]
18
31
  },
19
32
  "style": {
20
33
  "type": "string",
21
- "enum": ["fill", "outline"],
22
- "default": "fill"
34
+ "default": "fill",
35
+ "values": [
36
+ {
37
+ "value": "fill"
38
+ },
39
+ {
40
+ "value": "outline"
41
+ }
42
+ ]
23
43
  },
24
44
  "size": {
25
45
  "type": "string",
26
- "enum": ["s", "m", "l", "xl"],
27
- "default": "m"
46
+ "default": "m",
47
+ "values": [
48
+ {
49
+ "value": "s"
50
+ },
51
+ {
52
+ "value": "m"
53
+ },
54
+ {
55
+ "value": "l"
56
+ },
57
+ {
58
+ "value": "xl"
59
+ }
60
+ ]
28
61
  },
29
62
  "isDisabled": {
30
63
  "type": "boolean",
@@ -44,8 +77,15 @@
44
77
  },
45
78
  "staticColor": {
46
79
  "type": "string",
47
- "enum": ["white", "black"],
48
- "description": "Static color for use on colored backgrounds."
80
+ "description": "Static color for use on colored backgrounds.",
81
+ "values": [
82
+ {
83
+ "value": "white"
84
+ },
85
+ {
86
+ "value": "black"
87
+ }
88
+ ]
49
89
  }
50
90
  },
51
91
  "slots": [
@@ -478,7 +518,7 @@
478
518
  },
479
519
  {
480
520
  "token": "static-white-focus-indicator-color",
481
- "context": "Static white \u2013 Focus indicator"
521
+ "context": "Static white Focus indicator"
482
522
  },
483
523
  {
484
524
  "token": "transparent-black-900",
@@ -522,7 +562,7 @@
522
562
  },
523
563
  {
524
564
  "token": "static-black-focus-indicator-color",
525
- "context": "Static black \u2013 Focus indicator"
565
+ "context": "Static black Focus indicator"
526
566
  }
527
567
  ],
528
568
  "accessibility": {
@@ -22,9 +22,16 @@
22
22
  },
23
23
  "selectionMode": {
24
24
  "type": "string",
25
- "enum": ["single", "range"],
26
25
  "default": "single",
27
- "description": "Controls whether the calendar allows selecting a single date or a date range."
26
+ "description": "Controls whether the calendar allows selecting a single date or a date range.",
27
+ "values": [
28
+ {
29
+ "value": "single"
30
+ },
31
+ {
32
+ "value": "range"
33
+ }
34
+ ]
28
35
  },
29
36
  "isDisabled": {
30
37
  "type": "boolean",
@@ -12,16 +12,28 @@
12
12
  "options": {
13
13
  "variant": {
14
14
  "type": "string",
15
- "enum": [
16
- "asset",
17
- "collection",
18
- "flex",
19
- "gallery",
20
- "horizontal",
21
- "product"
22
- ],
23
15
  "default": "asset",
24
- "description": "Determines which card layout variant is used."
16
+ "description": "Determines which card layout variant is used.",
17
+ "values": [
18
+ {
19
+ "value": "asset"
20
+ },
21
+ {
22
+ "value": "collection"
23
+ },
24
+ {
25
+ "value": "flex"
26
+ },
27
+ {
28
+ "value": "gallery"
29
+ },
30
+ {
31
+ "value": "horizontal"
32
+ },
33
+ {
34
+ "value": "product"
35
+ }
36
+ ]
25
37
  }
26
38
  },
27
39
  "lifecycle": {
@@ -15,13 +15,27 @@
15
15
  },
16
16
  "labelPosition": {
17
17
  "type": "string",
18
- "enum": ["top", "side"],
19
- "default": "top"
18
+ "default": "top",
19
+ "values": [
20
+ {
21
+ "value": "top"
22
+ },
23
+ {
24
+ "value": "side"
25
+ }
26
+ ]
20
27
  },
21
28
  "necessityIndicator": {
22
29
  "type": "string",
23
- "enum": ["text", "icon"],
24
- "default": "icon"
30
+ "default": "icon",
31
+ "values": [
32
+ {
33
+ "value": "text"
34
+ },
35
+ {
36
+ "value": "icon"
37
+ }
38
+ ]
25
39
  },
26
40
  "isRequired": {
27
41
  "type": "boolean",
@@ -29,8 +43,15 @@
29
43
  },
30
44
  "orientation": {
31
45
  "type": "string",
32
- "enum": ["horizontal", "vertical"],
33
- "default": "vertical"
46
+ "default": "vertical",
47
+ "values": [
48
+ {
49
+ "value": "horizontal"
50
+ },
51
+ {
52
+ "value": "vertical"
53
+ }
54
+ ]
34
55
  },
35
56
  "isError": {
36
57
  "type": "boolean",
@@ -25,8 +25,21 @@
25
25
  },
26
26
  "size": {
27
27
  "type": "string",
28
- "enum": ["s", "m", "l", "xl"],
29
- "default": "m"
28
+ "default": "m",
29
+ "values": [
30
+ {
31
+ "value": "s"
32
+ },
33
+ {
34
+ "value": "m"
35
+ },
36
+ {
37
+ "value": "l"
38
+ },
39
+ {
40
+ "value": "xl"
41
+ }
42
+ ]
30
43
  },
31
44
  "isEmphasized": {
32
45
  "type": "boolean",
@@ -12,16 +12,36 @@
12
12
  "options": {
13
13
  "size": {
14
14
  "type": "string",
15
- "enum": ["s", "m", "l", "xl"],
16
- "default": "m"
15
+ "default": "m",
16
+ "values": [
17
+ {
18
+ "value": "s"
19
+ },
20
+ {
21
+ "value": "m"
22
+ },
23
+ {
24
+ "value": "l"
25
+ },
26
+ {
27
+ "value": "xl"
28
+ }
29
+ ]
17
30
  },
18
31
  "iconSize": {
19
32
  "type": "string"
20
33
  },
21
34
  "staticColor": {
22
35
  "type": "string",
23
- "enum": ["white", "black"],
24
- "description": "Static color must not be set for the default version of this component."
36
+ "description": "Static color must not be set for the default version of this component.",
37
+ "values": [
38
+ {
39
+ "value": "white"
40
+ },
41
+ {
42
+ "value": "black"
43
+ }
44
+ ]
25
45
  },
26
46
  "isDisabled": {
27
47
  "type": "boolean",
@@ -12,24 +12,50 @@
12
12
  "options": {
13
13
  "cornerRounding": {
14
14
  "type": "string",
15
- "enum": [
16
- "none",
17
- "corner-radius-75",
18
- "corner-radius-100",
19
- "corner-radius-200",
20
- "corner-radius-300",
21
- "corner-radius-400",
22
- "corner-radius-500",
23
- "corner-radius-600",
24
- "corner-radius-700",
25
- "corner-radius-800",
26
- "full"
15
+ "values": [
16
+ {
17
+ "value": "none"
18
+ },
19
+ {
20
+ "value": "corner-radius-75"
21
+ },
22
+ {
23
+ "value": "corner-radius-100"
24
+ },
25
+ {
26
+ "value": "corner-radius-200"
27
+ },
28
+ {
29
+ "value": "corner-radius-300"
30
+ },
31
+ {
32
+ "value": "corner-radius-400"
33
+ },
34
+ {
35
+ "value": "corner-radius-500"
36
+ },
37
+ {
38
+ "value": "corner-radius-600"
39
+ },
40
+ {
41
+ "value": "corner-radius-700"
42
+ },
43
+ {
44
+ "value": "corner-radius-800"
45
+ },
46
+ {
47
+ "value": "full"
48
+ }
27
49
  ]
28
50
  },
29
51
  "staticColor": {
30
52
  "type": "string",
31
- "enum": ["white"],
32
- "description": "If not set to white, the coach indicator uses the default color."
53
+ "description": "If not set to white, the coach indicator uses the default color.",
54
+ "values": [
55
+ {
56
+ "value": "white"
57
+ }
58
+ ]
33
59
  }
34
60
  },
35
61
  "lifecycle": {
@@ -15,8 +15,24 @@
15
15
  },
16
16
  "size": {
17
17
  "type": "string",
18
- "enum": ["xs", "s", "m", "l", "xl"],
19
- "default": "m"
18
+ "default": "m",
19
+ "values": [
20
+ {
21
+ "value": "xs"
22
+ },
23
+ {
24
+ "value": "s"
25
+ },
26
+ {
27
+ "value": "m"
28
+ },
29
+ {
30
+ "value": "l"
31
+ },
32
+ {
33
+ "value": "xl"
34
+ }
35
+ ]
20
36
  }
21
37
  },
22
38
  "lifecycle": {
@@ -12,17 +12,31 @@
12
12
  "options": {
13
13
  "channel": {
14
14
  "type": "string",
15
- "enum": [
16
- "hue",
17
- "saturation",
18
- "lightness",
19
- "red",
20
- "green",
21
- "blue",
22
- "alpha"
23
- ],
24
15
  "default": "hue",
25
- "description": "Which channel of the color this handle controls. Use 'alpha' for opacity."
16
+ "description": "Which channel of the color this handle controls. Use 'alpha' for opacity.",
17
+ "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
+ }
39
+ ]
26
40
  },
27
41
  "isDisabled": {
28
42
  "type": "boolean",
@@ -16,17 +16,31 @@
16
16
  },
17
17
  "channel": {
18
18
  "type": "string",
19
- "enum": [
20
- "hue",
21
- "saturation",
22
- "lightness",
23
- "red",
24
- "green",
25
- "blue",
26
- "alpha"
27
- ],
28
19
  "default": "hue",
29
- "description": "Which channel of the color this slider controls. Use 'alpha' for opacity."
20
+ "description": "Which channel of the color this slider controls. Use 'alpha' for opacity.",
21
+ "values": [
22
+ {
23
+ "value": "hue"
24
+ },
25
+ {
26
+ "value": "saturation"
27
+ },
28
+ {
29
+ "value": "lightness"
30
+ },
31
+ {
32
+ "value": "red"
33
+ },
34
+ {
35
+ "value": "green"
36
+ },
37
+ {
38
+ "value": "blue"
39
+ },
40
+ {
41
+ "value": "alpha"
42
+ }
43
+ ]
30
44
  },
31
45
  "value": {
32
46
  "type": "number",
@@ -46,8 +60,15 @@
46
60
  },
47
61
  "orientation": {
48
62
  "type": "string",
49
- "enum": ["horizontal", "vertical"],
50
- "default": "horizontal"
63
+ "default": "horizontal",
64
+ "values": [
65
+ {
66
+ "value": "horizontal"
67
+ },
68
+ {
69
+ "value": "vertical"
70
+ }
71
+ ]
51
72
  },
52
73
  "length": {
53
74
  "type": "number",
@@ -15,8 +15,18 @@
15
15
  },
16
16
  "labelPosition": {
17
17
  "type": "string",
18
- "enum": ["top", "side", "in line"],
19
- "default": "top"
18
+ "default": "top",
19
+ "values": [
20
+ {
21
+ "value": "top"
22
+ },
23
+ {
24
+ "value": "side"
25
+ },
26
+ {
27
+ "value": "in line"
28
+ }
29
+ ]
20
30
  },
21
31
  "value": {
22
32
  "type": "string"
@@ -26,8 +36,21 @@
26
36
  },
27
37
  "size": {
28
38
  "type": "string",
29
- "enum": ["s", "m", "l", "xl"],
30
- "default": "m"
39
+ "default": "m",
40
+ "values": [
41
+ {
42
+ "value": "s"
43
+ },
44
+ {
45
+ "value": "m"
46
+ },
47
+ {
48
+ "value": "l"
49
+ },
50
+ {
51
+ "value": "xl"
52
+ }
53
+ ]
31
54
  },
32
55
  "isRequired": {
33
56
  "type": "boolean",
@@ -35,8 +58,15 @@
35
58
  },
36
59
  "necessityIndicator": {
37
60
  "type": "string",
38
- "enum": ["text", "icon"],
39
- "default": "icon"
61
+ "default": "icon",
62
+ "values": [
63
+ {
64
+ "value": "text"
65
+ },
66
+ {
67
+ "value": "icon"
68
+ }
69
+ ]
40
70
  },
41
71
  "hasAutocomplete": {
42
72
  "type": "boolean",
@@ -44,8 +74,18 @@
44
74
  },
45
75
  "menuTrigger": {
46
76
  "type": "string",
47
- "enum": ["input", "focus", "manual"],
48
- "default": "input"
77
+ "default": "input",
78
+ "values": [
79
+ {
80
+ "value": "input"
81
+ },
82
+ {
83
+ "value": "focus"
84
+ },
85
+ {
86
+ "value": "manual"
87
+ }
88
+ ]
49
89
  },
50
90
  "isError": {
51
91
  "type": "boolean",