@adobe/spectrum-component-api-schemas 5.0.0 → 6.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.
- package/CHANGELOG.md +60 -19
- package/package.json +4 -4
- package/schemas/component.json +5 -2
- package/schemas/components/accordion.json +2 -2
- package/schemas/components/action-bar.json +2 -2
- package/schemas/components/action-button.json +4 -4
- package/schemas/components/action-group.json +2 -2
- package/schemas/components/alert-banner.json +2 -2
- package/schemas/components/alert-dialog.json +2 -2
- package/schemas/components/avatar-group.json +2 -2
- package/schemas/components/avatar.json +2 -2
- package/schemas/components/badge.json +3 -3
- package/schemas/components/body.json +4 -4
- package/schemas/components/bottom-navigation-android.json +3 -3
- package/schemas/components/breadcrumbs.json +2 -2
- package/schemas/components/button-group.json +2 -2
- package/schemas/components/button.json +3 -3
- package/schemas/components/calendar.json +90 -99
- package/schemas/components/cards.json +2 -2
- package/schemas/components/checkbox-group.json +2 -2
- package/schemas/components/checkbox.json +2 -2
- package/schemas/components/close-button.json +2 -2
- package/schemas/components/coach-indicator.json +2 -2
- package/schemas/components/coach-mark.json +2 -2
- package/schemas/components/code.json +3 -3
- package/schemas/components/color-area.json +2 -2
- package/schemas/components/color-handle.json +2 -2
- package/schemas/components/color-loupe.json +3 -3
- package/schemas/components/color-slider.json +2 -2
- package/schemas/components/color-wheel.json +2 -2
- package/schemas/components/combo-box.json +2 -2
- package/schemas/components/contextual-help.json +2 -2
- package/schemas/components/date-picker.json +2 -2
- package/schemas/components/detail.json +3 -3
- package/schemas/components/divider.json +2 -2
- package/schemas/components/drop-zone.json +2 -2
- package/schemas/components/field-label.json +2 -2
- package/schemas/components/heading.json +4 -4
- package/schemas/components/help-text.json +2 -2
- package/schemas/components/illustrated-message.json +42 -49
- package/schemas/components/in-field-progress-button.json +2 -2
- package/schemas/components/in-field-progress-circle.json +2 -2
- package/schemas/components/in-line-alert.json +2 -2
- package/schemas/components/link.json +2 -2
- package/schemas/components/list-view.json +81 -98
- package/schemas/components/menu.json +3 -3
- package/schemas/components/meter.json +2 -2
- package/schemas/components/number-field.json +2 -2
- package/schemas/components/opacity-checkerboard.json +2 -2
- package/schemas/components/picker.json +6 -20
- package/schemas/components/popover.json +2 -2
- package/schemas/components/progress-bar.json +2 -2
- package/schemas/components/progress-circle.json +2 -2
- package/schemas/components/radio-button.json +2 -2
- package/schemas/components/radio-group.json +2 -2
- package/schemas/components/rating.json +2 -2
- package/schemas/components/scroll-zoom-bar.json +2 -2
- package/schemas/components/search-field.json +3 -3
- package/schemas/components/segmented-control.json +2 -2
- package/schemas/components/select-box.json +2 -2
- package/schemas/components/side-navigation.json +7 -25
- package/schemas/components/slider.json +2 -2
- package/schemas/components/standard-dialog.json +46 -50
- package/schemas/components/standard-panel.json +2 -2
- package/schemas/components/status-light.json +2 -2
- package/schemas/components/{step-list.json → steplist.json} +4 -4
- package/schemas/components/swatch-group.json +2 -2
- package/schemas/components/swatch.json +2 -2
- package/schemas/components/switch.json +2 -2
- package/schemas/components/tab-bar-ios.json +3 -3
- package/schemas/components/table.json +107 -133
- package/schemas/components/tabs.json +2 -2
- package/schemas/components/tag-field.json +2 -2
- package/schemas/components/tag-group.json +2 -2
- package/schemas/components/tag.json +2 -2
- package/schemas/components/takeover-dialog.json +47 -53
- package/schemas/components/text-area.json +2 -2
- package/schemas/components/text-field.json +2 -2
- package/schemas/components/thumbnail.json +2 -2
- package/schemas/components/toast.json +2 -2
- package/schemas/components/tooltip.json +2 -2
- package/schemas/components/tray.json +2 -2
- package/schemas/components/tree-view.json +2 -2
- package/schemas/types/hex-color.json +1 -1
- package/schemas/types/typography-classification.json +1 -1
- package/schemas/types/typography-script.json +1 -1
- package/schemas/types/workflow-icon.json +1 -1
- package/test/performance.test.js +3 -3
- package/test/snapshots/index.test.js.md +36 -34
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/swatch.json",
|
|
4
4
|
"title": "Swatch",
|
|
5
5
|
"description": "A swatch shows a small sample of a fill — such as a color, gradient, texture, or material — that is intended to be applied to an object.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/switch.json",
|
|
4
4
|
"title": "Switch",
|
|
5
5
|
"description": "Switches allow users to turn an individual option on or off. They are usually used to activate or deactivate a specific setting.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tab-bar-ios.json",
|
|
4
4
|
"title": "Tab bar (iOS)",
|
|
5
5
|
"description": "Tab bar is a top-level navigation control for iOS apps.",
|
|
6
6
|
"meta": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"default": "bottom"
|
|
19
19
|
},
|
|
20
20
|
"icon": {
|
|
21
|
-
"$ref": "https://opensource.adobe.com/spectrum-
|
|
21
|
+
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json"
|
|
22
22
|
},
|
|
23
23
|
"background": {
|
|
24
24
|
"type": "string",
|
|
@@ -1,144 +1,118 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/table.json",
|
|
4
|
+
"title": "Table",
|
|
5
|
+
"description": "Tables display information in rows and columns, allowing users to compare and scan structured data.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "data visualization",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/table/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"size": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": ["s", "m", "l"],
|
|
15
|
+
"default": "m",
|
|
16
|
+
"description": "Controls the density of table rows."
|
|
9
17
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"default": false,
|
|
25
|
-
"description": "If true, the table header is hidden."
|
|
26
|
-
},
|
|
27
|
-
"header": {
|
|
28
|
-
"type": "object",
|
|
29
|
-
"description": "Configuration for the table header row.",
|
|
30
|
-
"properties": {
|
|
31
|
-
"alignment": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"enum": [
|
|
34
|
-
"left",
|
|
35
|
-
"right"
|
|
36
|
-
],
|
|
37
|
-
"default": "left",
|
|
38
|
-
"description": "Alignment of the table header text."
|
|
39
|
-
},
|
|
40
|
-
"state": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"enum": [
|
|
43
|
-
"default",
|
|
44
|
-
"hover",
|
|
45
|
-
"down",
|
|
46
|
-
"keyboard focus"
|
|
47
|
-
],
|
|
48
|
-
"default": "default",
|
|
49
|
-
"description": "Interaction state of the header row."
|
|
50
|
-
}
|
|
51
|
-
}
|
|
18
|
+
"hideHeader": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"default": false,
|
|
21
|
+
"description": "If true, the table header is hidden."
|
|
22
|
+
},
|
|
23
|
+
"header": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"description": "Configuration for the table header row.",
|
|
26
|
+
"properties": {
|
|
27
|
+
"alignment": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["left", "right"],
|
|
30
|
+
"default": "left",
|
|
31
|
+
"description": "Alignment of the table header text."
|
|
52
32
|
},
|
|
53
|
-
"
|
|
33
|
+
"state": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
36
|
+
"default": "default",
|
|
37
|
+
"description": "Interaction state of the header row."
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"density": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"enum": ["compact", "regular", "spacious"],
|
|
44
|
+
"default": "regular"
|
|
45
|
+
},
|
|
46
|
+
"isQuiet": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": false,
|
|
49
|
+
"description": "If true, the table uses a quiet visual style."
|
|
50
|
+
},
|
|
51
|
+
"isSortable": {
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"default": false,
|
|
54
|
+
"description": "If true, table columns can be sorted."
|
|
55
|
+
},
|
|
56
|
+
"columns": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"description": "An array of column definitions for the table.",
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"key": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "Unique identifier for the column."
|
|
65
|
+
},
|
|
66
|
+
"label": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "The header text displayed for the column."
|
|
69
|
+
},
|
|
70
|
+
"type": {
|
|
54
71
|
"type": "string",
|
|
55
72
|
"enum": [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
73
|
+
"text",
|
|
74
|
+
"number",
|
|
75
|
+
"avatar",
|
|
76
|
+
"date",
|
|
77
|
+
"sparkline",
|
|
78
|
+
"select",
|
|
79
|
+
"layout"
|
|
59
80
|
],
|
|
60
|
-
"default": "
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
81
|
+
"default": "text",
|
|
82
|
+
"description": "Defines the data type for the column."
|
|
83
|
+
},
|
|
84
|
+
"resizing": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"enum": ["fluid", "fixed"],
|
|
87
|
+
"default": "fluid",
|
|
88
|
+
"description": "Defines whether the column width is fluid or fixed."
|
|
89
|
+
},
|
|
90
|
+
"summary placement": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"enum": ["top", "bottom"],
|
|
93
|
+
"default": "bottom",
|
|
94
|
+
"description": "Placement of the summary row for this column, if applicable."
|
|
95
|
+
},
|
|
96
|
+
"summary text": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "Text to display in the summary row for this column, if applicable."
|
|
99
|
+
},
|
|
100
|
+
"isSortable": {
|
|
68
101
|
"type": "boolean",
|
|
69
102
|
"default": false,
|
|
70
|
-
"description": "
|
|
103
|
+
"description": "Whether this column is sortable."
|
|
104
|
+
}
|
|
71
105
|
},
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"label": {
|
|
83
|
-
"type": "string",
|
|
84
|
-
"description": "The header text displayed for the column."
|
|
85
|
-
},
|
|
86
|
-
"type": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"enum": [
|
|
89
|
-
"text",
|
|
90
|
-
"number",
|
|
91
|
-
"avatar",
|
|
92
|
-
"date",
|
|
93
|
-
"sparkline",
|
|
94
|
-
"select",
|
|
95
|
-
"layout"
|
|
96
|
-
],
|
|
97
|
-
"default": "text",
|
|
98
|
-
"description": "Defines the data type for the column."
|
|
99
|
-
},
|
|
100
|
-
"resizing": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"enum": [
|
|
103
|
-
"fluid",
|
|
104
|
-
"fixed"
|
|
105
|
-
],
|
|
106
|
-
"default": "fluid",
|
|
107
|
-
"description": "Defines whether the column width is fluid or fixed."
|
|
108
|
-
},
|
|
109
|
-
"summary placement": {
|
|
110
|
-
"type": "string",
|
|
111
|
-
"enum": [
|
|
112
|
-
"top",
|
|
113
|
-
"bottom"
|
|
114
|
-
],
|
|
115
|
-
"default": "bottom",
|
|
116
|
-
"description": "Placement of the summary row for this column, if applicable."
|
|
117
|
-
},
|
|
118
|
-
"summary text": {
|
|
119
|
-
"type": "string",
|
|
120
|
-
"description": "Text to display in the summary row for this column, if applicable."
|
|
121
|
-
},
|
|
122
|
-
"isSortable": {
|
|
123
|
-
"type": "boolean",
|
|
124
|
-
"default": false,
|
|
125
|
-
"description": "Whether this column is sortable."
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"required": [
|
|
129
|
-
"key",
|
|
130
|
-
"label",
|
|
131
|
-
"type"
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"rows": {
|
|
136
|
-
"type": "array",
|
|
137
|
-
"description": "An array of row data for the table.",
|
|
138
|
-
"items": {
|
|
139
|
-
"type": "object",
|
|
140
|
-
"description": "Each object represents a single row, keyed by column IDs."
|
|
141
|
-
}
|
|
142
|
-
}
|
|
106
|
+
"required": ["key", "label", "type"]
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"rows": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"description": "An array of row data for the table.",
|
|
112
|
+
"items": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"description": "Each object represents a single row, keyed by column IDs."
|
|
115
|
+
}
|
|
143
116
|
}
|
|
117
|
+
}
|
|
144
118
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tabs.json",
|
|
4
4
|
"title": "Tabs",
|
|
5
5
|
"description": "Tabs organize content into multiple sections and allow users to navigate between them. The content under the set of tabs should be related and form a coherent unit.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tag-field.json",
|
|
4
4
|
"title": "Tag field",
|
|
5
5
|
"description": "A tag field is an input field that allows users to enter and manage tags.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tag-group.json",
|
|
4
4
|
"title": "Tag group",
|
|
5
5
|
"description": "A tag group is a collection of tags that represent a set of related items.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tag.json",
|
|
4
4
|
"title": "Tag",
|
|
5
5
|
"description": "Tags allow users to categorize content. They can represent keywords or people, and are grouped to describe an item or a search request.",
|
|
6
6
|
"meta": {
|
|
@@ -1,60 +1,54 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/takeover-dialog.json",
|
|
4
|
+
"title": "Takeover dialog",
|
|
5
|
+
"description": "Takeover dialogs are larger, flexible dialogs that contain other components to support complex workflows.",
|
|
6
|
+
"meta": {
|
|
7
|
+
"category": "feedback",
|
|
8
|
+
"documentationUrl": "https://spectrum.adobe.com/page/takeover-dialog/"
|
|
9
|
+
},
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"title": {
|
|
13
|
+
"type": "string"
|
|
9
14
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
"description": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"variant": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": ["dialog", "full screen"],
|
|
21
|
+
"default": "dialog"
|
|
22
|
+
},
|
|
23
|
+
"primaryActionLabel": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"secondaryActionLabel": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "If undefined, this button does not appear."
|
|
29
|
+
},
|
|
30
|
+
"cancelActionLabel": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"default": "cancel",
|
|
33
|
+
"description": "If undefined, this button does not appear."
|
|
34
|
+
},
|
|
35
|
+
"slots": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"description": "Areas where other components can be inserted (e.g. Side navigation, Steplist, Forms).",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"name": {
|
|
30
42
|
"type": "string",
|
|
31
|
-
"description": "
|
|
32
|
-
|
|
33
|
-
|
|
43
|
+
"description": "Identifier for the slot (e.g. 'sidebar', 'content', 'footer')."
|
|
44
|
+
},
|
|
45
|
+
"component": {
|
|
34
46
|
"type": "string",
|
|
35
|
-
"
|
|
36
|
-
|
|
47
|
+
"description": "The type of component placed in this slot (e.g. side-navigation, steplist, form)."
|
|
48
|
+
}
|
|
37
49
|
},
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
"description": "Areas where other components can be inserted (e.g. Side navigation, Steplist, Forms).",
|
|
41
|
-
"items": {
|
|
42
|
-
"type": "object",
|
|
43
|
-
"properties": {
|
|
44
|
-
"name": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"description": "Identifier for the slot (e.g. 'sidebar', 'content', 'footer')."
|
|
47
|
-
},
|
|
48
|
-
"component": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "The type of component placed in this slot (e.g. side-navigation, steplist, form)."
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"required": [
|
|
54
|
-
"name",
|
|
55
|
-
"component"
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
}
|
|
50
|
+
"required": ["name", "component"]
|
|
51
|
+
}
|
|
59
52
|
}
|
|
53
|
+
}
|
|
60
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/text-area.json",
|
|
4
4
|
"title": "Text area",
|
|
5
5
|
"description": "A text area lets a user input a longer amount of text than a standard text field. It can include all of the standard validation options supported by the text field component.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/text-field.json",
|
|
4
4
|
"title": "Text field",
|
|
5
5
|
"description": "Text fields allow users to input custom text entries with a keyboard. Various options can be shown with the field to communicate the input requirements.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/thumbnail.json",
|
|
4
4
|
"title": "Thumbnail",
|
|
5
5
|
"description": "Thumbnails are small representations of images or content used for previews and navigation in galleries, lists, and media collections.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/toast.json",
|
|
4
4
|
"title": "Toast",
|
|
5
5
|
"description": "Toasts display brief, temporary notifications. They're meant to be noticed without disrupting a user's experience or requiring an action to be taken.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tooltip.json",
|
|
4
4
|
"title": "Tooltip",
|
|
5
5
|
"description": "Tooltips show contextual help or information about specific components when a user hovers or focuses on them.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tray.json",
|
|
4
4
|
"title": "Tray",
|
|
5
5
|
"description": "Trays are containers that display transient content such as menus, options, additional actions, and more. They only exist on mobile experiences and are used for exposing types of content that may be too overwhelming for popovers.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/tree-view.json",
|
|
4
4
|
"title": "Tree view",
|
|
5
5
|
"description": "A tree view provides users with a way to navigate nested hierarchical information.",
|
|
6
6
|
"meta": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/types/hex-color.json",
|
|
4
4
|
"title": "hex-color",
|
|
5
5
|
"description": "Hexadecimal color code",
|
|
6
6
|
"type": "string",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-classification.json",
|
|
4
4
|
"title": "typography-classification",
|
|
5
5
|
"description": "Typography classification",
|
|
6
6
|
"type": "string",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json",
|
|
4
4
|
"title": "typography-script",
|
|
5
5
|
"description": "The script of the text.",
|
|
6
6
|
"type": "string",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
|
|
4
4
|
"type": "string",
|
|
5
5
|
"title": "workflow-icon",
|
|
6
6
|
"enum": [
|
package/test/performance.test.js
CHANGED
|
@@ -49,10 +49,10 @@ test("getSchemaBySlug should complete within reasonable time", async (t) => {
|
|
|
49
49
|
const end = performance.now();
|
|
50
50
|
const duration = end - start;
|
|
51
51
|
|
|
52
|
-
// Should complete within
|
|
52
|
+
// Should complete within 250ms (increased for CI environments)
|
|
53
53
|
t.true(
|
|
54
|
-
duration <
|
|
55
|
-
`getSchemaBySlug took ${duration.toFixed(2)}ms, expected <
|
|
54
|
+
duration < 250,
|
|
55
|
+
`getSchemaBySlug took ${duration.toFixed(2)}ms, expected < 250ms`,
|
|
56
56
|
);
|
|
57
57
|
t.truthy(schema);
|
|
58
58
|
});
|