@adobe/spectrum-component-api-schemas 0.0.0 → 1.0.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 CHANGED
@@ -1,5 +1,62 @@
1
1
  # @adobe/spectrum-component-api-schemas
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#520](https://github.com/adobe/spectrum-tokens/pull/520) [`2964807`](https://github.com/adobe/spectrum-tokens/commit/2964807641908e40820bea0556b3b0542503223b) Thanks [@GarthDB](https://github.com/GarthDB) and [@AmunMRa](https://github.com/AmunMRa)! - S2 components batch 1
8
+
9
+ ## Changes
10
+
11
+ ### Properties Added
12
+
13
+ - component: search-field
14
+ - `helpText`
15
+ - `placeholder`
16
+ - `state`:
17
+ - `down`
18
+ - component: status-light
19
+ - `variant`
20
+ - `seafoam`
21
+ - `pink`
22
+ - `turquoise`
23
+ - `cinnamon`
24
+ - `brown`
25
+ - `silver`
26
+ - component: text-area
27
+ - `helpText`
28
+ - component: text-field
29
+ - `helpText`
30
+
31
+ ### Properties removed
32
+
33
+ - component: search-field
34
+ - `isQuiet`
35
+ - component: text-area
36
+ - `isQuiet`
37
+ - `isReadOnly`
38
+ - component: text-field
39
+ - `isQuiet`
40
+ - `isReadOnly`
41
+
42
+ ### Properties updated
43
+
44
+ - component: meter
45
+ - `size`:
46
+ - `enum`: `["small", "large"]` -> `["s", "m", "l", "xl"]`
47
+ - `default`: `large` -> `m`
48
+ - component: popover
49
+ - `showTip`:
50
+ - `default`: `false` -> `true`
51
+ - `placement`:
52
+ - `default`: `bottom` -> `top`
53
+ - `offset`:
54
+ - `default`: `6` -> `8`
55
+
56
+ ### New Component
57
+
58
+ - select-box
59
+
3
60
  ## 0.0.0
4
61
 
5
62
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-component-api-schemas",
3
- "version": "0.0.0",
3
+ "version": "1.0.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -25,13 +25,16 @@
25
25
  },
26
26
  "size": {
27
27
  "type": "string",
28
- "enum": ["small", "large"],
29
- "default": "large"
28
+ "enum": ["s", "m", "l", "xl"],
29
+ "default": "m"
30
30
  },
31
31
  "value": {
32
32
  "type": "number",
33
33
  "minimum": 0,
34
34
  "maximum": 1
35
+ },
36
+ "helpText": {
37
+ "type": "string"
35
38
  }
36
39
  }
37
40
  }
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "showTip": {
19
19
  "type": "boolean",
20
- "default": false
20
+ "default": true
21
21
  },
22
22
  "placement": {
23
23
  "type": "string",
@@ -45,12 +45,12 @@
45
45
  "end top",
46
46
  "end bottom"
47
47
  ],
48
- "default": "bottom"
48
+ "default": "top"
49
49
  },
50
50
  "offset": {
51
51
  "type": "number",
52
- "default": 6,
53
- "description": "default: 6 px (desktop) or 8 px (mobile)"
52
+ "default": 8,
53
+ "description": "pixel measurement"
54
54
  },
55
55
  "crossOffset": {
56
56
  "type": "number",
@@ -24,21 +24,21 @@
24
24
  "default": "m",
25
25
  "pattern": "^(x?s|m|x{0,3}l)$"
26
26
  },
27
- "isQuiet": {
28
- "type": "boolean",
29
- "default": false
27
+ "helpText": {
28
+ "type": "string"
29
+ },
30
+ "placeholder": {
31
+ "type": "string"
30
32
  },
31
33
  "isDisabled": {
32
34
  "type": "boolean",
33
35
  "default": false
34
36
  },
35
- "description": {
36
- "type": "string"
37
- },
38
37
  "state": {
39
38
  "type": "string",
40
39
  "enum": [
41
40
  "default",
41
+ "down",
42
42
  "hover",
43
43
  "focus + hover",
44
44
  "focus + not hover",
@@ -0,0 +1,38 @@
1
+ {
2
+ "$schema": "https://opensource.adobe.com/spectrum-tokens/schemas/component.json",
3
+ "$id": "https://opensource.adobe.com/spectrum-tokens/schemas/components/select-box.json",
4
+ "title": "Select box",
5
+ "description": "",
6
+ "meta": {
7
+ "category": "inputs",
8
+ "documentationUrl": "https://spectrum.adobe.com/page/select-box/"
9
+ },
10
+ "type": "object",
11
+ "properties": {
12
+ "label": {
13
+ "type": "string"
14
+ },
15
+ "orientation": {
16
+ "type": "string",
17
+ "enum": ["horizontal", "vertical"],
18
+ "default": "horizontal"
19
+ },
20
+ "isSelected": {
21
+ "type": "boolean",
22
+ "default": false
23
+ },
24
+ "showIllustration": {
25
+ "type": "boolean",
26
+ "default": false
27
+ },
28
+ "showCheckbox": {
29
+ "type": "boolean",
30
+ "default": false
31
+ },
32
+ "state": {
33
+ "type": "string",
34
+ "enum": ["default", "down", "hover", "keyboard focus"],
35
+ "default": "default"
36
+ }
37
+ }
38
+ }
@@ -27,7 +27,12 @@
27
27
  "magenta",
28
28
  "fuchsia",
29
29
  "purple",
30
- "seafoam"
30
+ "seafoam",
31
+ "pink",
32
+ "turquoise",
33
+ "cinnamon",
34
+ "brown",
35
+ "silver"
31
36
  ],
32
37
  "default": "informative"
33
38
  },
@@ -29,15 +29,14 @@
29
29
  "enum": ["s", "m", "l", "xl"],
30
30
  "default": "m"
31
31
  },
32
- "isQuiet": {
33
- "type": "boolean",
34
- "default": false
35
- },
36
32
  "necessityIndicator": {
37
33
  "type": "string",
38
34
  "enum": ["text", "icon"],
39
35
  "default": "icon"
40
36
  },
37
+ "helpText": {
38
+ "type": "string"
39
+ },
41
40
  "isRequired": {
42
41
  "type": "boolean",
43
42
  "default": false
@@ -58,10 +57,6 @@
58
57
  "type": "boolean",
59
58
  "default": false
60
59
  },
61
- "isReadOnly": {
62
- "type": "boolean",
63
- "default": false
64
- },
65
60
  "hideDragIcon": {
66
61
  "type": "boolean",
67
62
  "default": false
@@ -29,15 +29,14 @@
29
29
  "enum": ["s", "m", "l", "xl"],
30
30
  "default": "m"
31
31
  },
32
- "isQuiet": {
33
- "type": "boolean",
34
- "default": false
35
- },
36
32
  "necessityIndicator": {
37
33
  "type": "string",
38
34
  "enum": ["text", "icon"],
39
35
  "default": "icon"
40
36
  },
37
+ "helpText": {
38
+ "type": "string"
39
+ },
41
40
  "isRequired": {
42
41
  "type": "boolean",
43
42
  "default": false
@@ -59,10 +58,6 @@
59
58
  "type": "boolean",
60
59
  "default": false
61
60
  },
62
- "isReadOnly": {
63
- "type": "boolean",
64
- "default": false
65
- },
66
61
  "description": {
67
62
  "type": "string",
68
63
  "default": null