@adobe/spectrum-component-api-schemas 5.0.1 → 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 +187 -184
- package/index.js +28 -12
- package/moon.yml +1 -4
- package/package.json +6 -5
- 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 +10 -10
- package/test/schema-validation.test.js +64 -105
- package/test/snapshots/index.test.js.md +36 -34
- package/schemas/component.json +0 -29
- 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 -109
- 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 -52
- 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 -106
- 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 -95
- 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 -77
- package/schemas/components/slider.json +0 -79
- package/schemas/components/standard-dialog.json +0 -53
- 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 -144
- 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 -60
- 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,75 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tabs.json",
|
|
4
|
-
"title": "Tabs",
|
|
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
|
-
"meta": {
|
|
7
|
-
"category": "navigation",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/tabs/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"orientation": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["horizontal", "vertical"],
|
|
15
|
-
"default": "horizontal"
|
|
16
|
-
},
|
|
17
|
-
"items": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"description": "An array of tab items.",
|
|
20
|
-
"items": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"label": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"description": "The text displayed for the tab item."
|
|
26
|
-
},
|
|
27
|
-
"isDisabled": {
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"default": false,
|
|
30
|
-
"description": "Whether the tab is disabled."
|
|
31
|
-
},
|
|
32
|
-
"state": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"enum": ["default", "hover", "keyboard focus"],
|
|
35
|
-
"default": "default",
|
|
36
|
-
"description": "The interaction state of the tab item."
|
|
37
|
-
},
|
|
38
|
-
"contentVariant": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"enum": ["label-only", "icon-only", "icon-label"],
|
|
41
|
-
"default": "icon-label",
|
|
42
|
-
"description": "Controls whether the tab displays a label, an icon, or both."
|
|
43
|
-
},
|
|
44
|
-
"density": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"enum": ["compact", "regular"],
|
|
47
|
-
"default": "regular"
|
|
48
|
-
},
|
|
49
|
-
"isFluid": {
|
|
50
|
-
"type": "boolean",
|
|
51
|
-
"default": false,
|
|
52
|
-
"description": "This overrides density and is only applicable to horizontal tabs."
|
|
53
|
-
},
|
|
54
|
-
"isEmphasized": {
|
|
55
|
-
"type": "boolean",
|
|
56
|
-
"default": false
|
|
57
|
-
},
|
|
58
|
-
"alignment": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"enum": ["start", "center"],
|
|
61
|
-
"default": "start"
|
|
62
|
-
},
|
|
63
|
-
"selectedItem": {
|
|
64
|
-
"description": "(list of available items)"
|
|
65
|
-
},
|
|
66
|
-
"keyboardActivation": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"enum": ["manual", "automatic"],
|
|
69
|
-
"default": "manual"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tag-field.json",
|
|
4
|
-
"title": "Tag field",
|
|
5
|
-
"description": "A tag field is an input field that allows users to enter and manage tags.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/tag-field/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"size": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["s", "m", "l"],
|
|
15
|
-
"default": "m"
|
|
16
|
-
},
|
|
17
|
-
"state": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": [
|
|
20
|
-
"default",
|
|
21
|
-
"hover",
|
|
22
|
-
"focus + hover",
|
|
23
|
-
"focus + not hover",
|
|
24
|
-
"keyboard focus"
|
|
25
|
-
],
|
|
26
|
-
"default": "default"
|
|
27
|
-
},
|
|
28
|
-
"style": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"enum": ["keyword", "icon", "thumbnail", "avatar"],
|
|
31
|
-
"default": "keyword"
|
|
32
|
-
},
|
|
33
|
-
"isDisabled": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"default": false
|
|
36
|
-
},
|
|
37
|
-
"hideLabel": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"default": false
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tag-group.json",
|
|
4
|
-
"title": "Tag group",
|
|
5
|
-
"description": "A tag group is a collection of tags that represent a set of related items.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/tag-group/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"size": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["s", "m", "l"],
|
|
15
|
-
"default": "m"
|
|
16
|
-
},
|
|
17
|
-
"labelPosition": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": ["top", "side"],
|
|
20
|
-
"default": "top"
|
|
21
|
-
},
|
|
22
|
-
"hideLabel": {
|
|
23
|
-
"type": "boolean",
|
|
24
|
-
"default": false
|
|
25
|
-
},
|
|
26
|
-
"actionLabel": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"description": "If undefined, this button does not appear."
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tag.json",
|
|
4
|
-
"title": "Tag",
|
|
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
|
-
"meta": {
|
|
7
|
-
"category": "navigation",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/tag/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"label": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"hasAvatar": {
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"default": false
|
|
18
|
-
},
|
|
19
|
-
"isRemovable": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"default": false
|
|
22
|
-
},
|
|
23
|
-
"isError": {
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"default": false
|
|
26
|
-
},
|
|
27
|
-
"isDisabled": {
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"default": false
|
|
30
|
-
},
|
|
31
|
-
"isReadOnly": {
|
|
32
|
-
"type": "boolean",
|
|
33
|
-
"default": false
|
|
34
|
-
},
|
|
35
|
-
"state": {
|
|
36
|
-
"type": "string",
|
|
37
|
-
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
38
|
-
"default": "default"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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"
|
|
14
|
-
},
|
|
15
|
-
"description": {
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
"variant": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": [
|
|
21
|
-
"dialog",
|
|
22
|
-
"full screen"
|
|
23
|
-
],
|
|
24
|
-
"default": "dialog"
|
|
25
|
-
},
|
|
26
|
-
"primaryActionLabel": {
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
"secondaryActionLabel": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "If undefined, this button does not appear."
|
|
32
|
-
},
|
|
33
|
-
"cancelActionLabel": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"default": "cancel",
|
|
36
|
-
"description": "If undefined, this button does not appear."
|
|
37
|
-
},
|
|
38
|
-
"slots": {
|
|
39
|
-
"type": "array",
|
|
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
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/text-area.json",
|
|
4
|
-
"title": "Text area",
|
|
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
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/text-area/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"label": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"labelPosition": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "top",
|
|
18
|
-
"enum": ["top", "side"]
|
|
19
|
-
},
|
|
20
|
-
"hideLabel": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"default": false
|
|
23
|
-
},
|
|
24
|
-
"value": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "from minValue to maxValue"
|
|
27
|
-
},
|
|
28
|
-
"width": {
|
|
29
|
-
"type": "number"
|
|
30
|
-
},
|
|
31
|
-
"size": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"enum": ["s", "m", "l", "xl"],
|
|
34
|
-
"default": "m"
|
|
35
|
-
},
|
|
36
|
-
"necessityIndicator": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"enum": ["text", "icon"],
|
|
39
|
-
"default": "icon"
|
|
40
|
-
},
|
|
41
|
-
"isRequired": {
|
|
42
|
-
"type": "boolean",
|
|
43
|
-
"default": false
|
|
44
|
-
},
|
|
45
|
-
"hasCharacterCount": {
|
|
46
|
-
"type": "boolean",
|
|
47
|
-
"default": false
|
|
48
|
-
},
|
|
49
|
-
"showValidIcon": {
|
|
50
|
-
"type": "boolean",
|
|
51
|
-
"default": false
|
|
52
|
-
},
|
|
53
|
-
"isError": {
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"default": false
|
|
56
|
-
},
|
|
57
|
-
"isDisabled": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"default": false
|
|
60
|
-
},
|
|
61
|
-
"hideDragIcon": {
|
|
62
|
-
"type": "boolean",
|
|
63
|
-
"default": false
|
|
64
|
-
},
|
|
65
|
-
"height": {
|
|
66
|
-
"type": "number",
|
|
67
|
-
"description": "If undefined, height is dynamic and grows with input text."
|
|
68
|
-
},
|
|
69
|
-
"helpText": {
|
|
70
|
-
"type": "string"
|
|
71
|
-
},
|
|
72
|
-
"errorMessage": {
|
|
73
|
-
"type": "string"
|
|
74
|
-
},
|
|
75
|
-
"inputType": {
|
|
76
|
-
"type": "string",
|
|
77
|
-
"enum": ["text", "url", "phone", "email", "password"],
|
|
78
|
-
"default": "text"
|
|
79
|
-
},
|
|
80
|
-
"state": {
|
|
81
|
-
"type": "string",
|
|
82
|
-
"enum": [
|
|
83
|
-
"default",
|
|
84
|
-
"hover",
|
|
85
|
-
"focus + hover",
|
|
86
|
-
"focus + not hover",
|
|
87
|
-
"keyboard focus"
|
|
88
|
-
],
|
|
89
|
-
"default": "default"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/text-field.json",
|
|
4
|
-
"title": "Text field",
|
|
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
|
-
"meta": {
|
|
7
|
-
"category": "inputs",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/text-field/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"label": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"labelPosition": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"default": "top",
|
|
18
|
-
"enum": ["top", "side"]
|
|
19
|
-
},
|
|
20
|
-
"hideLabel": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"default": false
|
|
23
|
-
},
|
|
24
|
-
"value": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "from minValue to maxValue"
|
|
27
|
-
},
|
|
28
|
-
"width": {
|
|
29
|
-
"type": "number"
|
|
30
|
-
},
|
|
31
|
-
"size": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"enum": ["s", "m", "l", "xl"],
|
|
34
|
-
"default": "m"
|
|
35
|
-
},
|
|
36
|
-
"necessityIndicator": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"enum": ["text", "icon"],
|
|
39
|
-
"default": "icon"
|
|
40
|
-
},
|
|
41
|
-
"isRequired": {
|
|
42
|
-
"type": "boolean",
|
|
43
|
-
"default": false
|
|
44
|
-
},
|
|
45
|
-
"hasCharacterCount": {
|
|
46
|
-
"type": "boolean",
|
|
47
|
-
"default": false
|
|
48
|
-
},
|
|
49
|
-
"showValidIcon": {
|
|
50
|
-
"type": "boolean",
|
|
51
|
-
"default": false
|
|
52
|
-
},
|
|
53
|
-
"isError": {
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"default": false,
|
|
56
|
-
"description": "If there is an error, this property overrides show valid icon."
|
|
57
|
-
},
|
|
58
|
-
"isDisabled": {
|
|
59
|
-
"type": "boolean",
|
|
60
|
-
"default": false
|
|
61
|
-
},
|
|
62
|
-
"helpText": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
"errorMessage": {
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
"state": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"enum": [
|
|
71
|
-
"default",
|
|
72
|
-
"hover",
|
|
73
|
-
"focus + hover",
|
|
74
|
-
"focus + not hover",
|
|
75
|
-
"keyboard focus"
|
|
76
|
-
],
|
|
77
|
-
"default": "default"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/thumbnail.json",
|
|
4
|
-
"title": "Thumbnail",
|
|
5
|
-
"description": "Thumbnails are small representations of images or content used for previews and navigation in galleries, lists, and media collections.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "navigation",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/thumbnail/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"size": {
|
|
13
|
-
"type": "number",
|
|
14
|
-
"enum": [50, 75, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000]
|
|
15
|
-
},
|
|
16
|
-
"state": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"enum": ["default", "disabled"],
|
|
19
|
-
"default": "default"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/toast.json",
|
|
4
|
-
"title": "Toast",
|
|
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
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/toast/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"text": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"variant": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": ["neutral", "informative", "positive", "negative"],
|
|
18
|
-
"default": "neutral"
|
|
19
|
-
},
|
|
20
|
-
"actionLabel": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"description": "If undefined, this button does not appear."
|
|
23
|
-
},
|
|
24
|
-
"isAutoDismissible": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"default": false
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tooltip.json",
|
|
4
|
-
"title": "Tooltip",
|
|
5
|
-
"description": "Tooltips show contextual help or information about specific components when a user hovers or focuses on them.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "feedback",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/tooltip/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"label": {
|
|
13
|
-
"type": "string"
|
|
14
|
-
},
|
|
15
|
-
"variant": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"enum": ["neutral", "informative", "negative"],
|
|
18
|
-
"default": "neutral"
|
|
19
|
-
},
|
|
20
|
-
"hasIcon": {
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"description": "If the neutral variant, there is never an icon.",
|
|
23
|
-
"default": false
|
|
24
|
-
},
|
|
25
|
-
"maxWidth": {
|
|
26
|
-
"type": "number",
|
|
27
|
-
"default": 160,
|
|
28
|
-
"description": "units: pixels"
|
|
29
|
-
},
|
|
30
|
-
"placement": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"enum": ["top", "bottom", "left", "right"],
|
|
33
|
-
"default": "top"
|
|
34
|
-
},
|
|
35
|
-
"shouldFlip": {
|
|
36
|
-
"type": "boolean",
|
|
37
|
-
"default": false
|
|
38
|
-
},
|
|
39
|
-
"offset": {
|
|
40
|
-
"type": "number",
|
|
41
|
-
"default": 4,
|
|
42
|
-
"description": "units: pixels"
|
|
43
|
-
},
|
|
44
|
-
"containerPadding": {
|
|
45
|
-
"type": "number",
|
|
46
|
-
"default": 8,
|
|
47
|
-
"description": "units: pixels"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tray.json",
|
|
4
|
-
"title": "Tray",
|
|
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
|
-
"meta": {
|
|
7
|
-
"category": "containers",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/tray/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"height": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"default": "auto"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/tree-view.json",
|
|
4
|
-
"title": "Tree view",
|
|
5
|
-
"description": "A tree view provides users with a way to navigate nested hierarchical information.",
|
|
6
|
-
"meta": {
|
|
7
|
-
"category": "navigation",
|
|
8
|
-
"documentationUrl": "https://spectrum.adobe.com/page/tree-view/"
|
|
9
|
-
},
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"size": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"enum": ["s", "m", "l", "xl"],
|
|
15
|
-
"default": "m"
|
|
16
|
-
},
|
|
17
|
-
"isDetached": {
|
|
18
|
-
"type": "boolean",
|
|
19
|
-
"default": false
|
|
20
|
-
},
|
|
21
|
-
"isEmphasized": {
|
|
22
|
-
"type": "boolean",
|
|
23
|
-
"default": false
|
|
24
|
-
},
|
|
25
|
-
"showDragIcon": {
|
|
26
|
-
"type": "boolean",
|
|
27
|
-
"default": false
|
|
28
|
-
},
|
|
29
|
-
"selectionMode": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"enum": ["single", "multiple"],
|
|
32
|
-
"default": "multiple"
|
|
33
|
-
},
|
|
34
|
-
"selectionStyle": {
|
|
35
|
-
"type": "string",
|
|
36
|
-
"enum": ["checkbox", "highlight"],
|
|
37
|
-
"default": "checkbox"
|
|
38
|
-
},
|
|
39
|
-
"selectionBehavior": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"enum": ["toggle", "replace"],
|
|
42
|
-
"default": "toggle"
|
|
43
|
-
},
|
|
44
|
-
"state": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"enum": ["default", "hover", "down", "keyboard focus"],
|
|
47
|
-
"default": "default"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/types/hex-color.json",
|
|
4
|
-
"title": "hex-color",
|
|
5
|
-
"description": "Hexadecimal color code",
|
|
6
|
-
"type": "string",
|
|
7
|
-
"pattern": "/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/"
|
|
8
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/types/typography-classification.json",
|
|
4
|
-
"title": "typography-classification",
|
|
5
|
-
"description": "Typography classification",
|
|
6
|
-
"type": "string",
|
|
7
|
-
"enum": ["serif", "sans serif"],
|
|
8
|
-
"default": "sans serif"
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/types/typography-script.json",
|
|
4
|
-
"title": "typography-script",
|
|
5
|
-
"description": "The script of the text.",
|
|
6
|
-
"type": "string",
|
|
7
|
-
"enum": ["latin", "han", "arabic", "hebrew"],
|
|
8
|
-
"default": "latin"
|
|
9
|
-
}
|