@adobe/design-data-spec 0.2.0 → 0.4.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/README.md +3 -3
- package/components/accordion.json +87 -0
- package/components/action-bar.json +21 -0
- package/components/action-button.json +75 -0
- package/components/action-group.json +68 -0
- package/components/alert-banner.json +33 -0
- package/components/alert-dialog.json +46 -0
- package/components/avatar-group.json +26 -0
- package/components/avatar.json +54 -0
- package/components/badge.json +73 -0
- package/components/body.json +29 -0
- package/components/bottom-navigation-android.json +41 -0
- package/components/breadcrumbs.json +89 -0
- package/components/button-group.json +37 -0
- package/components/button.json +70 -0
- package/components/calendar.json +104 -0
- package/components/cards.json +30 -0
- package/components/checkbox-group.json +53 -0
- package/components/checkbox.json +61 -0
- package/components/close-button.json +48 -0
- package/components/coach-indicator.json +38 -0
- package/components/coach-mark.json +55 -0
- package/components/code.json +25 -0
- package/components/color-area.json +77 -0
- package/components/color-handle.json +35 -0
- package/components/color-loupe.json +20 -0
- package/components/color-slider.json +79 -0
- package/components/color-wheel.json +60 -0
- package/components/combo-box.json +94 -0
- package/components/contextual-help.json +80 -0
- package/components/date-picker.json +161 -0
- package/components/detail.json +30 -0
- package/components/divider.json +27 -0
- package/components/drop-zone.json +45 -0
- package/components/field-label.json +43 -0
- package/components/heading.json +33 -0
- package/components/help-text.json +40 -0
- package/components/illustrated-message.json +49 -0
- package/components/in-field-progress-button.json +44 -0
- package/components/in-field-progress-circle.json +26 -0
- package/components/in-line-alert.json +47 -0
- package/components/link.json +45 -0
- package/components/list-view.json +93 -0
- package/components/menu.json +76 -0
- package/components/meter.json +48 -0
- package/components/number-field.json +70 -0
- package/components/opacity-checkerboard.json +25 -0
- package/components/picker.json +92 -0
- package/components/popover.json +69 -0
- package/components/progress-bar.json +68 -0
- package/components/progress-circle.json +45 -0
- package/components/radio-button.json +43 -0
- package/components/radio-group.json +62 -0
- package/components/rating.json +47 -0
- package/components/scroll-zoom-bar.json +53 -0
- package/components/search-field.json +72 -0
- package/components/segmented-control.json +76 -0
- package/components/select-box.json +62 -0
- package/components/side-navigation.json +71 -0
- package/components/slider.json +92 -0
- package/components/standard-dialog.json +53 -0
- package/components/standard-panel.json +53 -0
- package/components/status-light.json +54 -0
- package/components/steplist.json +56 -0
- package/components/swatch-group.json +48 -0
- package/components/swatch.json +59 -0
- package/components/switch.json +55 -0
- package/components/tab-bar-ios.json +41 -0
- package/components/table.json +122 -0
- package/components/tabs.json +79 -0
- package/components/tag-field.json +53 -0
- package/components/tag-group.json +35 -0
- package/components/tag.json +54 -0
- package/components/takeover-dialog.json +58 -0
- package/components/text-area.json +103 -0
- package/components/text-field.json +91 -0
- package/components/thumbnail.json +27 -0
- package/components/toast.json +33 -0
- package/components/tooltip.json +54 -0
- package/components/tray.json +21 -0
- package/components/tree-view.json +63 -0
- package/conformance/README.md +26 -26
- package/conformance/invalid/SPEC-014/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-014/tokens.tokens.json +9 -0
- package/conformance/invalid/SPEC-018/dataset.json +9 -0
- package/conformance/invalid/SPEC-018/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-019/dataset.json +29 -0
- package/conformance/invalid/SPEC-019/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-020/dataset.json +27 -0
- package/conformance/invalid/SPEC-020/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-021/dataset.json +18 -0
- package/conformance/invalid/SPEC-021/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-022/dataset.json +33 -0
- package/conformance/invalid/SPEC-022/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-023/dataset.json +18 -0
- package/conformance/invalid/SPEC-023/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-024/dataset.json +18 -0
- package/conformance/invalid/SPEC-024/expected-errors.json +10 -0
- package/conformance/valid/component-refs/dataset.json +63 -0
- package/conformance/valid/lifecycle-with-last-modified.json +12 -0
- package/package.json +19 -6
- package/rules/rules.yaml +81 -0
- package/schemas/anatomy-part.schema.json +35 -0
- package/schemas/component.schema.json +267 -0
- package/schemas/state-declaration.schema.json +36 -0
- package/spec/agent-surface.md +116 -0
- package/spec/anatomy-format.md +167 -0
- package/spec/component-format.md +326 -0
- package/spec/evolution.md +32 -32
- package/spec/index.md +27 -21
- package/spec/manifest.md +3 -1
- package/spec/state-model.md +245 -0
- package/spec/taxonomy.md +17 -1
- package/spec/token-format.md +1 -1
- package/src/canonical.js +61 -0
- package/src/validate.js +166 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/button-group.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "button-group",
|
|
6
|
+
"displayName": "Button group",
|
|
7
|
+
"description": "A button group is a grouping of buttons whose actions are related to each other.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "actions",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/button-group/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"orientation": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"default": "horizontal",
|
|
16
|
+
"enum": ["horizontal", "vertical"]
|
|
17
|
+
},
|
|
18
|
+
"size": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"pattern": "^(x?s|m|x{0,3}l)$",
|
|
21
|
+
"enum": ["s", "m", "l", "xl"],
|
|
22
|
+
"default": "m"
|
|
23
|
+
},
|
|
24
|
+
"overflowMode": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["wrap", "collapse"],
|
|
27
|
+
"default": "wrap"
|
|
28
|
+
},
|
|
29
|
+
"isDisabled": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"lifecycle": {
|
|
35
|
+
"introduced": "1.0.0-draft"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/button.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "button",
|
|
6
|
+
"displayName": "Button",
|
|
7
|
+
"description": "Buttons allow users to perform an action or to navigate to another page.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "actions",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/button/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"variant": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["accent", "negative", "primary", "secondary"],
|
|
16
|
+
"default": "accent",
|
|
17
|
+
"description": "Visual emphasis level."
|
|
18
|
+
},
|
|
19
|
+
"style": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": ["fill", "outline"],
|
|
22
|
+
"default": "fill"
|
|
23
|
+
},
|
|
24
|
+
"size": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["s", "m", "l", "xl"],
|
|
27
|
+
"default": "m"
|
|
28
|
+
},
|
|
29
|
+
"isDisabled": { "type": "boolean", "default": false },
|
|
30
|
+
"isPending": { "type": "boolean", "default": false },
|
|
31
|
+
"isLabelHidden": { "type": "boolean", "default": false },
|
|
32
|
+
"icon": {
|
|
33
|
+
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/workflow-icon.json",
|
|
34
|
+
"description": "Icon placed at the start of the button. Required when isLabelHidden is true."
|
|
35
|
+
},
|
|
36
|
+
"staticColor": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": ["white", "black"],
|
|
39
|
+
"description": "Static color for use on colored backgrounds."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"slots": [
|
|
43
|
+
{
|
|
44
|
+
"name": "default",
|
|
45
|
+
"description": "Text label of the button.",
|
|
46
|
+
"required": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "icon",
|
|
50
|
+
"description": "Icon placed at the start of the button."
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"anatomy": [
|
|
54
|
+
{ "name": "icon", "description": "Leading icon." },
|
|
55
|
+
{ "name": "label", "description": "Button text.", "required": true }
|
|
56
|
+
],
|
|
57
|
+
"states": [
|
|
58
|
+
{ "name": "hover", "trigger": "interaction", "precedence": 50 },
|
|
59
|
+
{
|
|
60
|
+
"name": "focus",
|
|
61
|
+
"trigger": "interaction",
|
|
62
|
+
"precedence": 60,
|
|
63
|
+
"layered": true
|
|
64
|
+
},
|
|
65
|
+
{ "name": "disabled", "trigger": "prop", "precedence": 100 }
|
|
66
|
+
],
|
|
67
|
+
"lifecycle": {
|
|
68
|
+
"introduced": "1.0.0-draft"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/calendar.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "calendar",
|
|
6
|
+
"displayName": "Calendar",
|
|
7
|
+
"description": "Calendars display days, weeks, and months, allowing users to select dates or ranges.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/calendar/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"currentMonth": {
|
|
14
|
+
"type": "number",
|
|
15
|
+
"minimum": 1,
|
|
16
|
+
"maximum": 12,
|
|
17
|
+
"description": "The month currently displayed in the calendar (1 = January, 12 = December)."
|
|
18
|
+
},
|
|
19
|
+
"currentYear": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"description": "The year currently displayed in the calendar (Gregorian year number)."
|
|
22
|
+
},
|
|
23
|
+
"selectionMode": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": ["single", "range"],
|
|
26
|
+
"default": "single",
|
|
27
|
+
"description": "Controls whether the calendar allows selecting a single date or a date range."
|
|
28
|
+
},
|
|
29
|
+
"isDisabled": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false
|
|
32
|
+
},
|
|
33
|
+
"isError": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": false
|
|
36
|
+
},
|
|
37
|
+
"minValue": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"description": "The minimum allowed date that a user may select (ISO format string)."
|
|
40
|
+
},
|
|
41
|
+
"maxValue": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "The maximum allowed date that a user may select (ISO format string)."
|
|
44
|
+
},
|
|
45
|
+
"showTimeZone": {
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false,
|
|
48
|
+
"description": "Whether to show a time zone indicator in the calendar."
|
|
49
|
+
},
|
|
50
|
+
"days": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"description": "An array of days displayed in the current calendar view.",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"date": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "The date represented by this day (ISO format string)."
|
|
59
|
+
},
|
|
60
|
+
"isDisabled": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": false,
|
|
63
|
+
"description": "Whether this day is disabled."
|
|
64
|
+
},
|
|
65
|
+
"isSelected": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": false,
|
|
68
|
+
"description": "Whether this day is currently selected."
|
|
69
|
+
},
|
|
70
|
+
"isRangeStart": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"default": false,
|
|
73
|
+
"description": "Whether this day is the start of a selected range."
|
|
74
|
+
},
|
|
75
|
+
"isRangeEnd": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"default": false,
|
|
78
|
+
"description": "Whether this day is the end of a selected range."
|
|
79
|
+
},
|
|
80
|
+
"isUnavailable": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"default": false,
|
|
83
|
+
"description": "Whether this day is unavailable for selection. If true, the day appears with a strikethrough."
|
|
84
|
+
},
|
|
85
|
+
"isToday": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": false,
|
|
88
|
+
"description": "Whether this day represents the current date."
|
|
89
|
+
},
|
|
90
|
+
"state": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"enum": ["default", "hover", "keyboard focus"],
|
|
93
|
+
"default": "default",
|
|
94
|
+
"description": "The interaction state of the day cell."
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": ["date"]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"lifecycle": {
|
|
102
|
+
"introduced": "1.0.0-draft"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/cards.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "cards",
|
|
6
|
+
"displayName": "Cards",
|
|
7
|
+
"description": "Cards group related content into distinct layouts depending on context.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "containers",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/cards/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"variant": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"asset",
|
|
17
|
+
"collection",
|
|
18
|
+
"flex",
|
|
19
|
+
"gallery",
|
|
20
|
+
"horizontal",
|
|
21
|
+
"product"
|
|
22
|
+
],
|
|
23
|
+
"default": "asset",
|
|
24
|
+
"description": "Determines which card layout variant is used."
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"lifecycle": {
|
|
28
|
+
"introduced": "1.0.0-draft"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/checkbox-group.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "checkbox-group",
|
|
6
|
+
"displayName": "Checkbox group",
|
|
7
|
+
"description": "A checkbox group is a grouping of checkboxes that are related to each other.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/checkbox-group/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"labelPosition": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["top", "side"],
|
|
19
|
+
"default": "top"
|
|
20
|
+
},
|
|
21
|
+
"necessityIndicator": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": ["text", "icon"],
|
|
24
|
+
"default": "icon"
|
|
25
|
+
},
|
|
26
|
+
"isRequired": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": false
|
|
29
|
+
},
|
|
30
|
+
"orientation": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"enum": ["horizontal", "vertical"],
|
|
33
|
+
"default": "vertical"
|
|
34
|
+
},
|
|
35
|
+
"isError": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"isDisabled": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
"description": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"errorMessage": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"lifecycle": {
|
|
51
|
+
"introduced": "1.0.0-draft"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/checkbox.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "checkbox",
|
|
6
|
+
"displayName": "Checkbox",
|
|
7
|
+
"description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/checkbox/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"label": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "When the label is not defined, the checkbox appears as a standalone checkbox."
|
|
16
|
+
},
|
|
17
|
+
"isSelected": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"default": false
|
|
20
|
+
},
|
|
21
|
+
"isIndeterminate": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false,
|
|
24
|
+
"description": "When a checkbox is indeterminate, it overrides the selection state."
|
|
25
|
+
},
|
|
26
|
+
"size": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": ["s", "m", "l", "xl"],
|
|
29
|
+
"default": "m"
|
|
30
|
+
},
|
|
31
|
+
"isEmphasized": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false
|
|
34
|
+
},
|
|
35
|
+
"isDisabled": {
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"isError": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"states": [
|
|
45
|
+
{
|
|
46
|
+
"name": "hover",
|
|
47
|
+
"trigger": "interaction"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "down",
|
|
51
|
+
"trigger": "interaction"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "keyboard-focus",
|
|
55
|
+
"trigger": "interaction"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"lifecycle": {
|
|
59
|
+
"introduced": "1.0.0-draft"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/close-button.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "close-button",
|
|
6
|
+
"displayName": "Close button",
|
|
7
|
+
"description": "The close button is used inside of other components, like a toast or an action bar, for closing or dismissing its parent component.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "actions",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/close-button/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"size": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": ["s", "m", "l", "xl"],
|
|
16
|
+
"default": "m"
|
|
17
|
+
},
|
|
18
|
+
"iconSize": {
|
|
19
|
+
"type": "string"
|
|
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
|
+
"isDisabled": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"states": [
|
|
32
|
+
{
|
|
33
|
+
"name": "hover",
|
|
34
|
+
"trigger": "interaction"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "down",
|
|
38
|
+
"trigger": "interaction"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "keyboard-focus",
|
|
42
|
+
"trigger": "interaction"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"lifecycle": {
|
|
46
|
+
"introduced": "1.0.0-draft"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/coach-indicator.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "coach-indicator",
|
|
6
|
+
"displayName": "Coach indicator",
|
|
7
|
+
"description": "Coach indicators help guide users through interfaces by highlighting important areas or features during onboarding and feature discovery.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "feedback",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/coach-indicator/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"cornerRounding": {
|
|
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"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"staticColor": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": ["white"],
|
|
32
|
+
"description": "If not set to white, the coach indicator uses the default color."
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"lifecycle": {
|
|
36
|
+
"introduced": "1.0.0-draft"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/coach-mark.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "coach-mark",
|
|
6
|
+
"displayName": "Coach mark",
|
|
7
|
+
"description": "Coach marks provide contextual guidance to users by highlighting specific interface elements.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "feedback",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/coach-mark/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"title": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"hideImage": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": false,
|
|
22
|
+
"description": "Optional image to display in dialog."
|
|
23
|
+
},
|
|
24
|
+
"actions": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"description": "Configuration for coach mark actions.",
|
|
27
|
+
"properties": {
|
|
28
|
+
"topActionLabel": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Optional action button displayed at the top, often for a menu."
|
|
31
|
+
},
|
|
32
|
+
"footerContent": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Optional footer content to display in the dialog footer like a checkbox."
|
|
35
|
+
},
|
|
36
|
+
"primaryActionLabel": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Label for the primary footer action."
|
|
39
|
+
},
|
|
40
|
+
"secondaryActionLabel": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "Label for the secondary footer action (optional)."
|
|
43
|
+
},
|
|
44
|
+
"cancelActionLabel": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"default": "cancel",
|
|
47
|
+
"description": "Label for the cancel action (optional)."
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"lifecycle": {
|
|
53
|
+
"introduced": "1.0.0-draft"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/code.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "code",
|
|
6
|
+
"displayName": "Code",
|
|
7
|
+
"description": "Detail is a typography component used for disclosing extra information or smaller items in hierarchical relationships of text.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "typography",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/code/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"script": {
|
|
14
|
+
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
|
|
15
|
+
},
|
|
16
|
+
"size": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": ["xs", "s", "m", "l", "xl"],
|
|
19
|
+
"default": "m"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"lifecycle": {
|
|
23
|
+
"introduced": "1.0.0-draft"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/color-area.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "color-area",
|
|
6
|
+
"displayName": "Color area",
|
|
7
|
+
"description": "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.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/color-area/"
|
|
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": [
|
|
61
|
+
{
|
|
62
|
+
"name": "hover",
|
|
63
|
+
"trigger": "interaction"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "down",
|
|
67
|
+
"trigger": "interaction"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "keyboard-focus",
|
|
71
|
+
"trigger": "interaction"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"lifecycle": {
|
|
75
|
+
"introduced": "1.0.0-draft"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/color-handle.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "color-handle",
|
|
6
|
+
"displayName": "Color handle",
|
|
7
|
+
"description": "Color handles allow users to select and adjust colors in a color picker.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "inputs",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/color-handle/"
|
|
11
|
+
},
|
|
12
|
+
"options": {
|
|
13
|
+
"channel": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"hue",
|
|
17
|
+
"saturation",
|
|
18
|
+
"lightness",
|
|
19
|
+
"red",
|
|
20
|
+
"green",
|
|
21
|
+
"blue",
|
|
22
|
+
"alpha"
|
|
23
|
+
],
|
|
24
|
+
"default": "hue",
|
|
25
|
+
"description": "Which channel of the color this handle controls. Use 'alpha' for opacity."
|
|
26
|
+
},
|
|
27
|
+
"isDisabled": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"lifecycle": {
|
|
33
|
+
"introduced": "1.0.0-draft"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/component.schema.json",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/components/color-loupe.json",
|
|
4
|
+
"specVersion": "1.0.0-draft",
|
|
5
|
+
"name": "color-loupe",
|
|
6
|
+
"displayName": "Color loupe",
|
|
7
|
+
"description": "A color loupe shows the output color that would otherwise be covered by a cursor, stylus, or finger during color selection.",
|
|
8
|
+
"meta": {
|
|
9
|
+
"category": "feedback",
|
|
10
|
+
"documentationUrl": "https://spectrum.adobe.com/page/color-loupe/"
|
|
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
|
+
}
|