@adobe/spectrum-component-api-schemas 0.0.0-schema-20240613154750
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 +7 -0
- package/LICENSE +201 -0
- package/dist/v1/schemas/component.json +29 -0
- package/dist/v1/schemas/components/action-bar.json +18 -0
- package/dist/v1/schemas/components/action-button.json +62 -0
- package/dist/v1/schemas/components/action-group.json +69 -0
- package/dist/v1/schemas/components/alert-banner.json +29 -0
- package/dist/v1/schemas/components/alert-dialog.json +42 -0
- package/dist/v1/schemas/components/avatar.json +30 -0
- package/dist/v1/schemas/components/badge.json +50 -0
- package/dist/v1/schemas/components/body.json +25 -0
- package/dist/v1/schemas/components/bottom-navigation-android.json +37 -0
- package/dist/v1/schemas/components/breadcrumbs.json +18 -0
- package/dist/v1/schemas/components/button-group.json +28 -0
- package/dist/v1/schemas/components/button.json +60 -0
- package/dist/v1/schemas/components/checkbox-group.json +53 -0
- package/dist/v1/schemas/components/checkbox.json +52 -0
- package/dist/v1/schemas/components/close-button.json +35 -0
- package/dist/v1/schemas/components/code.json +21 -0
- package/dist/v1/schemas/components/color-area.json +64 -0
- package/dist/v1/schemas/components/color-loupe.json +21 -0
- package/dist/v1/schemas/components/color-slider.json +52 -0
- package/dist/v1/schemas/components/color-wheel.json +47 -0
- package/dist/v1/schemas/components/combo-box.json +84 -0
- package/dist/v1/schemas/components/contextual-help.json +64 -0
- package/dist/v1/schemas/components/detail.json +26 -0
- package/dist/v1/schemas/components/divider.json +23 -0
- package/dist/v1/schemas/components/field-label.json +39 -0
- package/dist/v1/schemas/components/heading.json +29 -0
- package/dist/v1/schemas/components/help-text.json +35 -0
- package/dist/v1/schemas/components/in-line-alert.json +25 -0
- package/dist/v1/schemas/components/link.json +32 -0
- package/dist/v1/schemas/components/menu.json +65 -0
- package/dist/v1/schemas/components/meter.json +37 -0
- package/dist/v1/schemas/components/picker.json +85 -0
- package/dist/v1/schemas/components/popover.json +65 -0
- package/dist/v1/schemas/components/progress-bar.json +50 -0
- package/dist/v1/schemas/components/progress-circle.json +41 -0
- package/dist/v1/schemas/components/radio-group.json +62 -0
- package/dist/v1/schemas/components/rating.json +31 -0
- package/dist/v1/schemas/components/scroll-zoom-bar.json +44 -0
- package/dist/v1/schemas/components/side-navigation.json +18 -0
- package/dist/v1/schemas/components/slider.json +74 -0
- package/dist/v1/schemas/components/status-light.json +44 -0
- package/dist/v1/schemas/components/swatch-group.json +38 -0
- package/dist/v1/schemas/components/swatch.json +45 -0
- package/dist/v1/schemas/components/switch.json +42 -0
- package/dist/v1/schemas/components/tab-bar-ios.json +37 -0
- package/dist/v1/schemas/components/tabs.json +32 -0
- package/dist/v1/schemas/components/tag.json +41 -0
- package/dist/v1/schemas/components/text-area.json +98 -0
- package/dist/v1/schemas/components/text-field.json +86 -0
- package/dist/v1/schemas/components/toast.json +29 -0
- package/dist/v1/schemas/components/tooltip.json +50 -0
- package/dist/v1/schemas/components/tray.json +17 -0
- package/dist/v1/schemas/components/tree-view.json +50 -0
- package/dist/v1/schemas/types/component-size.json +8 -0
- package/dist/v1/schemas/types/hex-color.json +8 -0
- package/dist/v1/schemas/types/typography-classification.json +9 -0
- package/dist/v1/schemas/types/typography-script.json +9 -0
- package/dist/v1/schemas/types/workflow-icon.json +901 -0
- package/index.js +52 -0
- package/moon.yml +59 -0
- package/package.json +26 -0
- package/schemas/component.json +29 -0
- package/schemas/components/action-bar.json +18 -0
- package/schemas/components/action-button.json +62 -0
- package/schemas/components/action-group.json +69 -0
- package/schemas/components/alert-banner.json +29 -0
- package/schemas/components/alert-dialog.json +42 -0
- package/schemas/components/avatar.json +30 -0
- package/schemas/components/badge.json +50 -0
- package/schemas/components/body.json +25 -0
- package/schemas/components/bottom-navigation-android.json +37 -0
- package/schemas/components/breadcrumbs.json +18 -0
- package/schemas/components/button-group.json +28 -0
- package/schemas/components/button.json +60 -0
- package/schemas/components/checkbox-group.json +53 -0
- package/schemas/components/checkbox.json +52 -0
- package/schemas/components/close-button.json +35 -0
- package/schemas/components/code.json +21 -0
- package/schemas/components/color-area.json +64 -0
- package/schemas/components/color-loupe.json +21 -0
- package/schemas/components/color-slider.json +52 -0
- package/schemas/components/color-wheel.json +47 -0
- package/schemas/components/combo-box.json +84 -0
- package/schemas/components/contextual-help.json +64 -0
- package/schemas/components/detail.json +26 -0
- package/schemas/components/divider.json +23 -0
- package/schemas/components/field-label.json +39 -0
- package/schemas/components/heading.json +29 -0
- package/schemas/components/help-text.json +35 -0
- package/schemas/components/in-line-alert.json +25 -0
- package/schemas/components/link.json +32 -0
- package/schemas/components/menu.json +65 -0
- package/schemas/components/meter.json +37 -0
- package/schemas/components/picker.json +85 -0
- package/schemas/components/popover.json +65 -0
- package/schemas/components/progress-bar.json +50 -0
- package/schemas/components/progress-circle.json +41 -0
- package/schemas/components/radio-group.json +62 -0
- package/schemas/components/rating.json +31 -0
- package/schemas/components/scroll-zoom-bar.json +44 -0
- package/schemas/components/side-navigation.json +18 -0
- package/schemas/components/slider.json +74 -0
- package/schemas/components/status-light.json +44 -0
- package/schemas/components/swatch-group.json +38 -0
- package/schemas/components/swatch.json +45 -0
- package/schemas/components/switch.json +42 -0
- package/schemas/components/tab-bar-ios.json +37 -0
- package/schemas/components/tabs.json +32 -0
- package/schemas/components/tag.json +41 -0
- package/schemas/components/text-area.json +98 -0
- package/schemas/components/text-field.json +86 -0
- package/schemas/components/toast.json +29 -0
- package/schemas/components/tooltip.json +50 -0
- package/schemas/components/tray.json +17 -0
- package/schemas/components/tree-view.json +50 -0
- package/schemas/types/component-size.json +8 -0
- package/schemas/types/hex-color.json +8 -0
- package/schemas/types/typography-classification.json +9 -0
- package/schemas/types/typography-script.json +9 -0
- package/schemas/types/workflow-icon.json +901 -0
- package/test/componentSchemaValidator.test.js +74 -0
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
"emphasized": {
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://opensource.adobe.com/spectrum-tokens/schemas/types/component-size.json",
|
|
4
|
+
"title": "component-size",
|
|
5
|
+
"description": "T-shirt sizes for components",
|
|
6
|
+
"type": "string",
|
|
7
|
+
"enum": ["xs", "s", "m", "l", "xl", "xxl", "xxxl"]
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
}
|