@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,51 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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
|
-
}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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-tokens/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-tokens/schemas/component.json",
|
|
3
|
-
"$id": "https://opensource.adobe.com/spectrum-tokens/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
|
-
}
|