@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,35 +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/close-button.json",
|
|
4
|
-
"title": "Close button",
|
|
5
|
-
"description": "The close button is used inside of other components, like a toast or an action bar, for closing or dismissing its parent component.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "actions",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/close-button/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"size": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["s", "m", "l", "xl"],
|
|
15
|
-
"default": "m"
|
|
16
|
-
},
|
|
17
|
-
"iconSize": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
},
|
|
20
|
-
"staticColor": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"enum": ["white", "black"],
|
|
23
|
-
"description": "Static color must not be set for the default version of this component."
|
|
24
|
-
},
|
|
25
|
-
"isDisabled": {
|
|
26
|
-
"type": "boolean",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
"state": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
32
|
-
"default": "default"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,34 +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/coach-indicator.json",
|
|
4
|
-
"title": "Coach indicator",
|
|
5
|
-
"description": "Coach indicators help guide users through interfaces by highlighting important areas or features during onboarding and feature discovery.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/coach-indicator/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"cornerRounding": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": [
|
|
15
|
-
"none",
|
|
16
|
-
"corner-radius-75",
|
|
17
|
-
"corner-radius-100",
|
|
18
|
-
"corner-radius-200",
|
|
19
|
-
"corner-radius-300",
|
|
20
|
-
"corner-radius-400",
|
|
21
|
-
"corner-radius-500",
|
|
22
|
-
"corner-radius-600",
|
|
23
|
-
"corner-radius-700",
|
|
24
|
-
"corner-radius-800",
|
|
25
|
-
"full"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"staticColor": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"enum": ["white"],
|
|
31
|
-
"description": "If not set to white, the coach indicator uses the default color."
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,51 +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/coach-mark.json",
|
|
4
|
-
"title": "Coach mark",
|
|
5
|
-
"description": "Coach marks provide contextual guidance to users by highlighting specific interface elements.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/coach-mark/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"title": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"description": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"hideImage": {
|
|
19
|
-
"type": "boolean",
|
|
20
|
-
"default": false,
|
|
21
|
-
"description": "Optional image to display in dialog."
|
|
22
|
-
},
|
|
23
|
-
"actions": {
|
|
24
|
-
"type": "object",
|
|
25
|
-
"description": "Configuration for coach mark actions.",
|
|
26
|
-
"properties": {
|
|
27
|
-
"topActionLabel": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "Optional action button displayed at the top, often for a menu."
|
|
30
|
-
},
|
|
31
|
-
"footerContent": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"description": "Optional footer content to display in the dialog footer like a checkbox."
|
|
34
|
-
},
|
|
35
|
-
"primaryActionLabel": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"description": "Label for the primary footer action."
|
|
38
|
-
},
|
|
39
|
-
"secondaryActionLabel": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"description": "Label for the secondary footer action (optional)."
|
|
42
|
-
},
|
|
43
|
-
"cancelActionLabel": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"default": "cancel",
|
|
46
|
-
"description": "Label for the cancel action (optional)."
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,21 +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/code.json",
|
|
4
|
-
"title": "Code",
|
|
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/code/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"script": {
|
|
13
|
-
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/typography-script.json"
|
|
14
|
-
},
|
|
15
|
-
"size": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": ["xs", "s", "m", "l", "xl"],
|
|
18
|
-
"default": "m"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,64 +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/color-area.json",
|
|
4
|
-
"title": "Color area",
|
|
5
|
-
"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.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/color-area/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"background": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "This will vary depending on implementation."
|
|
15
|
-
},
|
|
16
|
-
"x-value": {
|
|
17
|
-
"type": "number",
|
|
18
|
-
"description": "Number (from x-minValue to x-maxValue)"
|
|
19
|
-
},
|
|
20
|
-
"x-minValue": {
|
|
21
|
-
"type": "number",
|
|
22
|
-
"default": 0
|
|
23
|
-
},
|
|
24
|
-
"x-maxValue": {
|
|
25
|
-
"type": "number",
|
|
26
|
-
"default": 100
|
|
27
|
-
},
|
|
28
|
-
"y-value": {
|
|
29
|
-
"type": "number",
|
|
30
|
-
"description": "Number (from y-minValue to y-maxValue)"
|
|
31
|
-
},
|
|
32
|
-
"y-minValue": {
|
|
33
|
-
"type": "number",
|
|
34
|
-
"default": 0
|
|
35
|
-
},
|
|
36
|
-
"y-maxValue": {
|
|
37
|
-
"type": "number",
|
|
38
|
-
"default": 100
|
|
39
|
-
},
|
|
40
|
-
"step": {
|
|
41
|
-
"type": "number",
|
|
42
|
-
"default": 1
|
|
43
|
-
},
|
|
44
|
-
"width": {
|
|
45
|
-
"type": "number",
|
|
46
|
-
"default": 192,
|
|
47
|
-
"description": "units: px"
|
|
48
|
-
},
|
|
49
|
-
"height": {
|
|
50
|
-
"type": "number",
|
|
51
|
-
"default": 192,
|
|
52
|
-
"description": "units: px"
|
|
53
|
-
},
|
|
54
|
-
"isDisabled": {
|
|
55
|
-
"type": "boolean",
|
|
56
|
-
"default": false
|
|
57
|
-
},
|
|
58
|
-
"state": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
61
|
-
"default": "default"
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
@@ -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/color-handle.json",
|
|
4
|
-
"title": "Color handle",
|
|
5
|
-
"description": "Color handles allow users to select and adjust colors in a color picker.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/color-handle/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"channel": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": [
|
|
15
|
-
"hue",
|
|
16
|
-
"saturation",
|
|
17
|
-
"lightness",
|
|
18
|
-
"red",
|
|
19
|
-
"green",
|
|
20
|
-
"blue",
|
|
21
|
-
"alpha"
|
|
22
|
-
],
|
|
23
|
-
"default": "hue",
|
|
24
|
-
"description": "Which channel of the color this handle controls. Use 'alpha' for opacity."
|
|
25
|
-
},
|
|
26
|
-
"isDisabled": {
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"default": false
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,21 +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/color-loupe.json",
|
|
4
|
-
"title": "Color loupe",
|
|
5
|
-
"description": "A color loupe shows the output color that would otherwise be covered by a cursor, stylus, or finger during color selection.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/color-loupe/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"value": {
|
|
13
|
-
"$ref": "https://opensource.adobe.com/spectrum-design-data/schemas/types/hex-color.json"
|
|
14
|
-
},
|
|
15
|
-
"state": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": ["default"],
|
|
18
|
-
"default": "default"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,66 +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/color-slider.json",
|
|
4
|
-
"title": "Color slider",
|
|
5
|
-
"description": "A color slider lets users visually change an individual channel of a color.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/color-slider/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"background": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "This will vary depending on implementation."
|
|
15
|
-
},
|
|
16
|
-
"channel": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"enum": [
|
|
19
|
-
"hue",
|
|
20
|
-
"saturation",
|
|
21
|
-
"lightness",
|
|
22
|
-
"red",
|
|
23
|
-
"green",
|
|
24
|
-
"blue",
|
|
25
|
-
"alpha"
|
|
26
|
-
],
|
|
27
|
-
"default": "hue",
|
|
28
|
-
"description": "Which channel of the color this slider controls. Use 'alpha' for opacity."
|
|
29
|
-
},
|
|
30
|
-
"value": {
|
|
31
|
-
"type": "number",
|
|
32
|
-
"description": "Number (from minValue to maxValue)."
|
|
33
|
-
},
|
|
34
|
-
"minValue": {
|
|
35
|
-
"type": "number",
|
|
36
|
-
"default": 0
|
|
37
|
-
},
|
|
38
|
-
"maxValue": {
|
|
39
|
-
"type": "number",
|
|
40
|
-
"default": 100
|
|
41
|
-
},
|
|
42
|
-
"step": {
|
|
43
|
-
"type": "number",
|
|
44
|
-
"default": 1
|
|
45
|
-
},
|
|
46
|
-
"orientation": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"enum": ["horizontal", "vertical"],
|
|
49
|
-
"default": "horizontal"
|
|
50
|
-
},
|
|
51
|
-
"length": {
|
|
52
|
-
"type": "number",
|
|
53
|
-
"default": 192,
|
|
54
|
-
"description": "units: px"
|
|
55
|
-
},
|
|
56
|
-
"isDisabled": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"default": false
|
|
59
|
-
},
|
|
60
|
-
"state": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
63
|
-
"default": "default"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
@@ -1,47 +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/color-wheel.json",
|
|
4
|
-
"title": "Color wheel",
|
|
5
|
-
"description": "A color wheel lets users visually change an individual channel of a color on a circular track.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/color-wheel/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"background": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "This will vary depending on implementation."
|
|
15
|
-
},
|
|
16
|
-
"value": {
|
|
17
|
-
"type": "number",
|
|
18
|
-
"description": "Number (from minValue to maxValue)"
|
|
19
|
-
},
|
|
20
|
-
"minValue": {
|
|
21
|
-
"type": "number",
|
|
22
|
-
"default": 0
|
|
23
|
-
},
|
|
24
|
-
"maxValue": {
|
|
25
|
-
"type": "number",
|
|
26
|
-
"default": 360
|
|
27
|
-
},
|
|
28
|
-
"step": {
|
|
29
|
-
"type": "number",
|
|
30
|
-
"default": 1
|
|
31
|
-
},
|
|
32
|
-
"size": {
|
|
33
|
-
"type": "number",
|
|
34
|
-
"default": 192,
|
|
35
|
-
"description": "units: px"
|
|
36
|
-
},
|
|
37
|
-
"isDisabled": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"default": false
|
|
40
|
-
},
|
|
41
|
-
"state": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
44
|
-
"default": "default"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,80 +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/combo-box.json",
|
|
4
|
-
"title": "Combo box",
|
|
5
|
-
"description": "Combo boxes combine a text entry with a picker menu, allowing users to filter longer lists to only the selections matching a query.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/combo-box/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"label": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"labelPosition": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": ["top", "side", "in line"],
|
|
18
|
-
"default": "top"
|
|
19
|
-
},
|
|
20
|
-
"value": {
|
|
21
|
-
"type": "string"
|
|
22
|
-
},
|
|
23
|
-
"width": {
|
|
24
|
-
"type": "number"
|
|
25
|
-
},
|
|
26
|
-
"size": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"enum": ["s", "m", "l", "xl"],
|
|
29
|
-
"default": "m"
|
|
30
|
-
},
|
|
31
|
-
"isRequired": {
|
|
32
|
-
"type": "boolean",
|
|
33
|
-
"default": false
|
|
34
|
-
},
|
|
35
|
-
"necessityIndicator": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"enum": ["text", "icon"],
|
|
38
|
-
"default": "icon"
|
|
39
|
-
},
|
|
40
|
-
"hasAutocomplete": {
|
|
41
|
-
"type": "boolean",
|
|
42
|
-
"default": false
|
|
43
|
-
},
|
|
44
|
-
"menuTrigger": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"enum": ["input", "focus", "manual"],
|
|
47
|
-
"default": "input"
|
|
48
|
-
},
|
|
49
|
-
"isError": {
|
|
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
|
-
"description": {
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
|
-
"errorMessage": {
|
|
65
|
-
"type": "string"
|
|
66
|
-
},
|
|
67
|
-
"state": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"enum": [
|
|
70
|
-
"default",
|
|
71
|
-
"hover (text area)",
|
|
72
|
-
"hover (button area)",
|
|
73
|
-
"focus + hover",
|
|
74
|
-
"focus + not hover",
|
|
75
|
-
"keyboard focus"
|
|
76
|
-
],
|
|
77
|
-
"default": "default"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
@@ -1,67 +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/contextual-help.json",
|
|
4
|
-
"title": "Contextual help",
|
|
5
|
-
"description": "Contextual help shows a user extra information about the state of either an adjacent component or an entire view. It explains a high-level topic about an experience and can point users to more information elsewhere.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/contextual-help/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"icon": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["info", "help"],
|
|
15
|
-
"default": "info"
|
|
16
|
-
},
|
|
17
|
-
"popoverPlacement": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": [
|
|
20
|
-
"top",
|
|
21
|
-
"top left",
|
|
22
|
-
"top right",
|
|
23
|
-
"top start",
|
|
24
|
-
"top end",
|
|
25
|
-
"bottom",
|
|
26
|
-
"bottom left",
|
|
27
|
-
"bottom right",
|
|
28
|
-
"bottom start",
|
|
29
|
-
"bottom end",
|
|
30
|
-
"left",
|
|
31
|
-
"left top",
|
|
32
|
-
"left bottom",
|
|
33
|
-
"start",
|
|
34
|
-
"start top",
|
|
35
|
-
"start bottom",
|
|
36
|
-
"right",
|
|
37
|
-
"right top",
|
|
38
|
-
"right bottom",
|
|
39
|
-
"end",
|
|
40
|
-
"end top",
|
|
41
|
-
"end bottom"
|
|
42
|
-
],
|
|
43
|
-
"default": "bottom start"
|
|
44
|
-
},
|
|
45
|
-
"popoverOffset": {
|
|
46
|
-
"type": "number",
|
|
47
|
-
"default": 8
|
|
48
|
-
},
|
|
49
|
-
"href": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "Optional URL within contextual help content like a 'Learn more' link."
|
|
52
|
-
},
|
|
53
|
-
"popoverCrossOffset": {
|
|
54
|
-
"type": "number",
|
|
55
|
-
"default": 0
|
|
56
|
-
},
|
|
57
|
-
"containerPadding": {
|
|
58
|
-
"type": "number",
|
|
59
|
-
"default": 8
|
|
60
|
-
},
|
|
61
|
-
"state": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"enum": ["default", "down", "open", "keyboard focus"],
|
|
64
|
-
"default": "default"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|