@adobe/spectrum-component-api-schemas 6.0.0 → 6.1.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 +26 -0
- package/index.js +28 -12
- package/moon.yml +1 -4
- package/package.json +3 -2
- package/scripts/convert-to-spec-format.mjs +136 -0
- package/test/index.test.js +64 -34
- package/test/integration.test.js +4 -6
- package/test/performance.test.js +7 -7
- package/test/schema-validation.test.js +64 -105
- package/schemas/component.json +0 -32
- package/schemas/components/accordion.json +0 -74
- package/schemas/components/action-bar.json +0 -18
- package/schemas/components/action-button.json +0 -62
- package/schemas/components/action-group.json +0 -69
- package/schemas/components/alert-banner.json +0 -29
- package/schemas/components/alert-dialog.json +0 -42
- package/schemas/components/avatar-group.json +0 -22
- package/schemas/components/avatar.json +0 -45
- package/schemas/components/badge.json +0 -69
- package/schemas/components/body.json +0 -25
- package/schemas/components/bottom-navigation-android.json +0 -37
- package/schemas/components/breadcrumbs.json +0 -72
- package/schemas/components/button-group.json +0 -33
- package/schemas/components/button.json +0 -61
- package/schemas/components/calendar.json +0 -100
- package/schemas/components/cards.json +0 -238
- package/schemas/components/checkbox-group.json +0 -49
- package/schemas/components/checkbox.json +0 -49
- package/schemas/components/close-button.json +0 -35
- package/schemas/components/coach-indicator.json +0 -34
- package/schemas/components/coach-mark.json +0 -51
- package/schemas/components/code.json +0 -21
- package/schemas/components/color-area.json +0 -64
- package/schemas/components/color-handle.json +0 -31
- package/schemas/components/color-loupe.json +0 -21
- package/schemas/components/color-slider.json +0 -66
- package/schemas/components/color-wheel.json +0 -47
- package/schemas/components/combo-box.json +0 -80
- package/schemas/components/contextual-help.json +0 -67
- package/schemas/components/date-picker.json +0 -157
- package/schemas/components/detail.json +0 -26
- package/schemas/components/divider.json +0 -23
- package/schemas/components/drop-zone.json +0 -41
- package/schemas/components/field-label.json +0 -39
- package/schemas/components/heading.json +0 -29
- package/schemas/components/help-text.json +0 -36
- package/schemas/components/illustrated-message.json +0 -45
- package/schemas/components/in-field-progress-button.json +0 -31
- package/schemas/components/in-field-progress-circle.json +0 -22
- package/schemas/components/in-line-alert.json +0 -43
- package/schemas/components/link.json +0 -32
- package/schemas/components/list-view.json +0 -89
- package/schemas/components/menu.json +0 -63
- package/schemas/components/meter.json +0 -44
- package/schemas/components/number-field.json +0 -57
- package/schemas/components/opacity-checkerboard.json +0 -21
- package/schemas/components/picker.json +0 -81
- package/schemas/components/popover.json +0 -65
- package/schemas/components/progress-bar.json +0 -64
- package/schemas/components/progress-circle.json +0 -41
- package/schemas/components/radio-button.json +0 -30
- package/schemas/components/radio-group.json +0 -58
- package/schemas/components/rating.json +0 -34
- package/schemas/components/scroll-zoom-bar.json +0 -44
- package/schemas/components/search-field.json +0 -58
- package/schemas/components/segmented-control.json +0 -72
- package/schemas/components/select-box.json +0 -50
- package/schemas/components/side-navigation.json +0 -59
- package/schemas/components/slider.json +0 -79
- package/schemas/components/standard-dialog.json +0 -49
- package/schemas/components/standard-panel.json +0 -49
- package/schemas/components/status-light.json +0 -51
- package/schemas/components/steplist.json +0 -52
- package/schemas/components/swatch-group.json +0 -44
- package/schemas/components/swatch.json +0 -46
- package/schemas/components/switch.json +0 -42
- package/schemas/components/tab-bar-ios.json +0 -37
- package/schemas/components/table.json +0 -118
- package/schemas/components/tabs.json +0 -75
- package/schemas/components/tag-field.json +0 -42
- package/schemas/components/tag-group.json +0 -31
- package/schemas/components/tag.json +0 -41
- package/schemas/components/takeover-dialog.json +0 -54
- package/schemas/components/text-area.json +0 -92
- package/schemas/components/text-field.json +0 -80
- package/schemas/components/thumbnail.json +0 -22
- package/schemas/components/toast.json +0 -29
- package/schemas/components/tooltip.json +0 -50
- package/schemas/components/tray.json +0 -17
- package/schemas/components/tree-view.json +0 -50
- package/schemas/types/hex-color.json +0 -8
- package/schemas/types/typography-classification.json +0 -9
- package/schemas/types/typography-script.json +0 -9
- package/schemas/types/workflow-icon.json +0 -901
- package/test/componentSchemaValidator.test.js +0 -74
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/date-picker.json",
|
|
4
|
-
"title": "Date picker",
|
|
5
|
-
"description": "A date picker lets users enter a single date or a date range. It includes a calendar popover and a field.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/date-picker/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"variant": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["single", "double", "triple"],
|
|
15
|
-
"default": "single",
|
|
16
|
-
"description": "Controls the number of months displayed in the calendar popover."
|
|
17
|
-
},
|
|
18
|
-
"selectedDate": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "The currently selected date. Used when selectionMode is single."
|
|
21
|
-
},
|
|
22
|
-
"selectedRange": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"description": "The currently selected date range, used when selectionMode is range.",
|
|
25
|
-
"properties": {
|
|
26
|
-
"start": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"description": "Range start date."
|
|
29
|
-
},
|
|
30
|
-
"end": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"description": "Range end date."
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"dateField": {
|
|
37
|
-
"type": "object",
|
|
38
|
-
"description": "Configuration for the date input field.",
|
|
39
|
-
"properties": {
|
|
40
|
-
"label": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Optional text label displayed with the date field."
|
|
43
|
-
},
|
|
44
|
-
"labelPosition": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"enum": ["top", "side"],
|
|
47
|
-
"default": "top"
|
|
48
|
-
},
|
|
49
|
-
"hideLabel": {
|
|
50
|
-
"type": "boolean",
|
|
51
|
-
"default": false
|
|
52
|
-
},
|
|
53
|
-
"isDisabled": {
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"default": false
|
|
56
|
-
},
|
|
57
|
-
"isReadOnly": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": false
|
|
60
|
-
},
|
|
61
|
-
"isRequired": {
|
|
62
|
-
"type": "boolean",
|
|
63
|
-
"default": false
|
|
64
|
-
},
|
|
65
|
-
"isError": {
|
|
66
|
-
"type": "boolean",
|
|
67
|
-
"default": false,
|
|
68
|
-
"description": "If there is an error, this property overrides show valid icon."
|
|
69
|
-
},
|
|
70
|
-
"state": {
|
|
71
|
-
"type": "string",
|
|
72
|
-
"enum": [
|
|
73
|
-
"default",
|
|
74
|
-
"hover",
|
|
75
|
-
"hover (in-field button)",
|
|
76
|
-
"focus + hover",
|
|
77
|
-
"focus + open",
|
|
78
|
-
"focus + not hover",
|
|
79
|
-
"keyboard focus"
|
|
80
|
-
],
|
|
81
|
-
"default": "default"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"calendarPopover": {
|
|
86
|
-
"type": "object",
|
|
87
|
-
"description": "Configuration for the calendar popover.",
|
|
88
|
-
"properties": {
|
|
89
|
-
"isDisabled": {
|
|
90
|
-
"type": "boolean",
|
|
91
|
-
"default": false
|
|
92
|
-
},
|
|
93
|
-
"minValue": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"description": "The minimum allowed date that a user may select."
|
|
96
|
-
},
|
|
97
|
-
"maxValue": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"description": "The maximum allowed date that a user may select (ISO format string)."
|
|
100
|
-
},
|
|
101
|
-
"currentMonth": {
|
|
102
|
-
"type": "number",
|
|
103
|
-
"minimum": 1,
|
|
104
|
-
"maximum": 12,
|
|
105
|
-
"description": "The month currently displayed in the calendar (1 = January, 12 = December)."
|
|
106
|
-
},
|
|
107
|
-
"currentYear": {
|
|
108
|
-
"type": "number",
|
|
109
|
-
"description": "The year currently displayed in the calendar (Gregorian year number)."
|
|
110
|
-
},
|
|
111
|
-
"selectionMode": {
|
|
112
|
-
"type": "string",
|
|
113
|
-
"enum": ["single", "range"],
|
|
114
|
-
"default": "single",
|
|
115
|
-
"description": "Controls whether the calendar allows selecting a single date or a date range."
|
|
116
|
-
},
|
|
117
|
-
"showTimeZone": {
|
|
118
|
-
"type": "boolean",
|
|
119
|
-
"default": false,
|
|
120
|
-
"description": "Whether to show a time zone indicator in the popover."
|
|
121
|
-
},
|
|
122
|
-
"isError": {
|
|
123
|
-
"type": "boolean",
|
|
124
|
-
"default": false,
|
|
125
|
-
"description": "If the calendar popover is in an error state."
|
|
126
|
-
},
|
|
127
|
-
"timeFields": {
|
|
128
|
-
"type": "object",
|
|
129
|
-
"description": "Optional start and end time fields displayed within the calendar popover.",
|
|
130
|
-
"properties": {
|
|
131
|
-
"showStartTime": {
|
|
132
|
-
"type": "boolean",
|
|
133
|
-
"default": false,
|
|
134
|
-
"description": "If true, displays a start time field."
|
|
135
|
-
},
|
|
136
|
-
"showEndTime": {
|
|
137
|
-
"type": "boolean",
|
|
138
|
-
"default": false,
|
|
139
|
-
"description": "If true, displays an end time field."
|
|
140
|
-
},
|
|
141
|
-
"granularity": {
|
|
142
|
-
"type": "string",
|
|
143
|
-
"enum": ["hour", "minute", "second"],
|
|
144
|
-
"default": "minute",
|
|
145
|
-
"description": "The level of time granularity for the time fields."
|
|
146
|
-
},
|
|
147
|
-
"is24Hour": {
|
|
148
|
-
"type": "boolean",
|
|
149
|
-
"default": false,
|
|
150
|
-
"description": "If true, displays time in 24-hour format instead of AM/PM."
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/detail.json",
|
|
4
|
-
"title": "Detail",
|
|
5
|
-
"description": "Detail is a typography component used for disclosing extra information or smaller items in hierarchical relationships of text.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "typography",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/detail/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"script": {
|
|
13
|
-
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
|
|
14
|
-
},
|
|
15
|
-
"weight": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": ["light", "default"],
|
|
18
|
-
"default": "default"
|
|
19
|
-
},
|
|
20
|
-
"size": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"enum": ["s", "m", "l", "xl"],
|
|
23
|
-
"default": "m"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/divider.json",
|
|
4
|
-
"title": "Divider",
|
|
5
|
-
"description": "Dividers bring clarity to a layout by grouping and dividing content in close proximity. They can also be used to establish rhythm and hierarchy.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "containers",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/divider/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"size": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["s", "m", "l"],
|
|
15
|
-
"default": "s"
|
|
16
|
-
},
|
|
17
|
-
"orientation": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": ["horizontal", "vertical"],
|
|
20
|
-
"default": "horizontal"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/drop-zone.json",
|
|
4
|
-
"title": "Drop zone",
|
|
5
|
-
"description": "A drop zone allows users to drag and drop files or other content into a designated area.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/drop-zone/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"accept": {
|
|
13
|
-
"type": "array",
|
|
14
|
-
"items": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "File types that are accepted by the drop zone."
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"size": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"enum": ["s", "m", "l"],
|
|
22
|
-
"default": "m"
|
|
23
|
-
},
|
|
24
|
-
"actionLabel": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "If undefined, this button does not appear."
|
|
27
|
-
},
|
|
28
|
-
"onDrop": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Callback function called when files are dropped onto the drop zone."
|
|
31
|
-
},
|
|
32
|
-
"onDragOver": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "Callback function called when a file is dragged over the drop zone."
|
|
35
|
-
},
|
|
36
|
-
"onDragLeave": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Callback function called when a file is dragged out of the drop zone."
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/field-label.json",
|
|
4
|
-
"title": "Field label",
|
|
5
|
-
"description": "Field labels give context to the information that a user needs to input. They're commonly used in forms.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/field-label/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"label": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"labelPosition": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": ["top", "side"],
|
|
18
|
-
"default": "top"
|
|
19
|
-
},
|
|
20
|
-
"size": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"enum": ["s", "m", "l", "xl"],
|
|
23
|
-
"default": "m"
|
|
24
|
-
},
|
|
25
|
-
"necessityIndicator": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"enum": ["text", "icon"],
|
|
28
|
-
"default": "icon"
|
|
29
|
-
},
|
|
30
|
-
"isRequired": {
|
|
31
|
-
"type": "boolean",
|
|
32
|
-
"default": false
|
|
33
|
-
},
|
|
34
|
-
"isDisabled": {
|
|
35
|
-
"type": "boolean",
|
|
36
|
-
"default": false
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/heading.json",
|
|
4
|
-
"title": "Heading",
|
|
5
|
-
"description": "Heading is a typography component used to create various levels of hierarchies between text.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "typography",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/heading/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"script": {
|
|
13
|
-
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
|
|
14
|
-
},
|
|
15
|
-
"classification": {
|
|
16
|
-
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-classification.json"
|
|
17
|
-
},
|
|
18
|
-
"weight": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": ["light", "default", "heavy"],
|
|
21
|
-
"default": "default"
|
|
22
|
-
},
|
|
23
|
-
"size": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"enum": ["xs", "s", "m", "l", "xl", "xxl", "xxxl"],
|
|
26
|
-
"default": "m"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/help-text.json",
|
|
4
|
-
"title": "Help text",
|
|
5
|
-
"description": "Help text provides either an informative description or an error message that gives more context about what a user needs to input. It’s commonly used in forms.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/help-text/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"text": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"variant": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": ["neutral", "negative"],
|
|
18
|
-
"default": "neutral"
|
|
19
|
-
},
|
|
20
|
-
"hideIcon": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"default": false,
|
|
23
|
-
"description": "Only applicable if variant is negative."
|
|
24
|
-
},
|
|
25
|
-
"size": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"enum": ["s", "m", "l", "xl"],
|
|
28
|
-
"default": "m"
|
|
29
|
-
},
|
|
30
|
-
"isDisabled": {
|
|
31
|
-
"type": "boolean",
|
|
32
|
-
"default": false,
|
|
33
|
-
"description": "Help text cannot be both disabled and negative variant."
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/illustrated-message.json",
|
|
4
|
-
"title": "Illustrated message",
|
|
5
|
-
"description": "An illustrated message displays an illustration with a short title and description, often used for empty states or error states.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/illustrated-message/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"illustration": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Optional illustration or icon displayed above the message."
|
|
15
|
-
},
|
|
16
|
-
"size": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"enum": ["s", "m", "l"],
|
|
19
|
-
"default": "m",
|
|
20
|
-
"description": "Size of the illustration."
|
|
21
|
-
},
|
|
22
|
-
"orientation": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"enum": ["vertical", "horizontal"],
|
|
25
|
-
"default": "vertical",
|
|
26
|
-
"description": "Orientation of the illustrated message."
|
|
27
|
-
},
|
|
28
|
-
"title": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Primary heading text of the message."
|
|
31
|
-
},
|
|
32
|
-
"description": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "Secondary descriptive text providing context or instructions."
|
|
35
|
-
},
|
|
36
|
-
"primaryActionLabel": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Label for the primary action button. If undefined, no primary action is shown."
|
|
39
|
-
},
|
|
40
|
-
"secondaryActionLabel": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Label for the secondary action button. If undefined, no secondary action is shown."
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/in-field-progress-button.json",
|
|
4
|
-
"title": "In field progress button",
|
|
5
|
-
"description": "In field progress buttons provide interactive controls within form fields for actions like clearing, adding, or disclosing additional content.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "actions",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/in-field-progress-button/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"size": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["s", "m", "l", "xl"],
|
|
15
|
-
"default": "m"
|
|
16
|
-
},
|
|
17
|
-
"state": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
20
|
-
"default": "default"
|
|
21
|
-
},
|
|
22
|
-
"style": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"enum": ["disclosure", "clear", "dash", "add"]
|
|
25
|
-
},
|
|
26
|
-
"isQuiet": {
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"default": false
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/in-field-progress-circle.json",
|
|
4
|
-
"title": "In field progress circle",
|
|
5
|
-
"description": "In field progress circles indicate progress for loading states within form fields and input areas.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/in-field-progress-circle/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"size": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["s", "m", "l", "xl"],
|
|
15
|
-
"default": "m"
|
|
16
|
-
},
|
|
17
|
-
"staticColor": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": ["white", "black"]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/in-line-alert.json",
|
|
4
|
-
"title": "In-line alert",
|
|
5
|
-
"description": "In-line alerts display a non-modal message associated with objects in a view. These are often used in form validation, providing a place to aggregate feedback related to multiple fields.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/in-line-alert/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"variant": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": [
|
|
15
|
-
"neutral",
|
|
16
|
-
"informative",
|
|
17
|
-
"positive",
|
|
18
|
-
"notice",
|
|
19
|
-
"negative",
|
|
20
|
-
"accent"
|
|
21
|
-
],
|
|
22
|
-
"default": "neutral"
|
|
23
|
-
},
|
|
24
|
-
"style": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"enum": ["bold", "subtle", "outline"],
|
|
27
|
-
"default": "outline",
|
|
28
|
-
"description": "The visual style of the alert."
|
|
29
|
-
},
|
|
30
|
-
"href": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"description": "Optional URL within in-line alert content like a 'Learn more' link."
|
|
33
|
-
},
|
|
34
|
-
"heading": {
|
|
35
|
-
"type": "string",
|
|
36
|
-
"description": "Optional heading text displayed at the top of the alert."
|
|
37
|
-
},
|
|
38
|
-
"actionLabel": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "If undefined, this button does not appear."
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/link.json",
|
|
4
|
-
"title": "Link",
|
|
5
|
-
"description": "Links allow users to navigate to a different location. They can be presented inside a paragraph or as standalone text.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "actions",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/link/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"variant": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["primary", "secondary"],
|
|
15
|
-
"default": "primary"
|
|
16
|
-
},
|
|
17
|
-
"isQuiet": {
|
|
18
|
-
"type": "boolean",
|
|
19
|
-
"default": false
|
|
20
|
-
},
|
|
21
|
-
"staticColor": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"enum": ["white", "black"],
|
|
24
|
-
"description": "Static color must not be set for the default version of this component."
|
|
25
|
-
},
|
|
26
|
-
"state": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
29
|
-
"default": "default"
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/components/list-view.json",
|
|
4
|
-
"title": "List view",
|
|
5
|
-
"description": "List views display rows of data or options that users can browse, select, and interact with.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "navigation",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/list-view/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"selectionMode": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["none", "single", "multiple"],
|
|
15
|
-
"default": "single",
|
|
16
|
-
"description": "Defines how many items can be selected at once."
|
|
17
|
-
},
|
|
18
|
-
"isQuiet": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"default": false,
|
|
21
|
-
"description": "If true, the list view uses a quiet visual style."
|
|
22
|
-
},
|
|
23
|
-
"items": {
|
|
24
|
-
"type": "array",
|
|
25
|
-
"description": "An array of list view items.",
|
|
26
|
-
"items": {
|
|
27
|
-
"type": "object",
|
|
28
|
-
"properties": {
|
|
29
|
-
"label": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "Primary text displayed for the item."
|
|
32
|
-
},
|
|
33
|
-
"description": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "Secondary text displayed under the label (optional)."
|
|
36
|
-
},
|
|
37
|
-
"hideCheckbox": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"default": false,
|
|
40
|
-
"description": "If true, the checkbox is hidden."
|
|
41
|
-
},
|
|
42
|
-
"hideDragHandle": {
|
|
43
|
-
"type": "boolean",
|
|
44
|
-
"default": false,
|
|
45
|
-
"description": "If true, the drag handle is hidden."
|
|
46
|
-
},
|
|
47
|
-
"hideNavigationIndicator": {
|
|
48
|
-
"type": "boolean",
|
|
49
|
-
"default": false,
|
|
50
|
-
"description": "If true, the navigation indicator is hidden."
|
|
51
|
-
},
|
|
52
|
-
"isDisabled": {
|
|
53
|
-
"type": "boolean",
|
|
54
|
-
"default": false,
|
|
55
|
-
"description": "If true, the item is disabled."
|
|
56
|
-
},
|
|
57
|
-
"isSelected": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": false,
|
|
60
|
-
"description": "If true, the item is selected."
|
|
61
|
-
},
|
|
62
|
-
"overflowMode": {
|
|
63
|
-
"type": "string",
|
|
64
|
-
"enum": ["wrap", "truncate"],
|
|
65
|
-
"default": "truncate",
|
|
66
|
-
"description": "Defines how text should behave when it overflows the available space."
|
|
67
|
-
},
|
|
68
|
-
"itemRounding": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"enum": ["none", "top", "bottom"],
|
|
71
|
-
"default": "none",
|
|
72
|
-
"description": "Defines the border radius of the list view item."
|
|
73
|
-
},
|
|
74
|
-
"isEmphasized": {
|
|
75
|
-
"type": "boolean",
|
|
76
|
-
"default": false
|
|
77
|
-
},
|
|
78
|
-
"state": {
|
|
79
|
-
"type": "string",
|
|
80
|
-
"enum": ["default", "hover", "dragged"],
|
|
81
|
-
"default": "default",
|
|
82
|
-
"description": "The interaction state of the list view item."
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"required": ["label"]
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|