@spectrum-web-components/divider 0.4.0 → 0.4.3-express.12

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/README.md CHANGED
@@ -26,9 +26,11 @@ import { Divider } from '@spectrum-web-components/divider';
26
26
 
27
27
  ## Horizontal
28
28
 
29
- ### Small
29
+ <sp-tabs selected="m" auto label="Horizontal Size Attribute Options">
30
+ <sp-tab value="s">Small</sp-tab>
31
+ <sp-tab-panel value="s">
30
32
 
31
- ```html-live
33
+ ```html-live demo
32
34
  <h2 class="spectrum-Heading spectrum-Heading--sizeXS">Small</h2>
33
35
  <sp-divider size="s"></sp-divider>
34
36
  <p class="spectrum-Body">
@@ -36,9 +38,11 @@ import { Divider } from '@spectrum-web-components/divider';
36
38
  </p>
37
39
  ```
38
40
 
39
- ### Medium
41
+ </sp-tab-panel>
42
+ <sp-tab value="m">Medium</sp-tab>
43
+ <sp-tab-panel value="m">
40
44
 
41
- ```html-live
45
+ ```html-live demo
42
46
  <h2 class="spectrum-Heading spectrum-Heading--sizeS">Medium</h2>
43
47
  <sp-divider size="m"></sp-divider>
44
48
  <p class="spectrum-Body">
@@ -47,56 +51,82 @@ import { Divider } from '@spectrum-web-components/divider';
47
51
  </p>
48
52
  ```
49
53
 
50
- ### Large
54
+ </sp-tab-panel>
55
+ <sp-tab value="l">Large</sp-tab>
56
+ <sp-tab-panel value="l">
51
57
 
52
- ```html-live
58
+ ```html-live demo
53
59
  <h2 class="spectrum-Heading spectrum-Heading--sizeM">Large</h2>
54
60
  <sp-divider size="l"></sp-divider>
55
61
  <p class="spectrum-Body">Page or Section Titles.</p>
56
62
  ```
57
63
 
64
+ </sp-tab-panel>
65
+ </sp-tabs>
66
+
58
67
  ## Vertical
59
68
 
60
69
  When a vertical Divider is used inside of a flex container, use `align-self: stretch; height: auto;` on the Divider.
61
70
 
62
- ### Small
71
+ <sp-tabs selected="m" auto label="Vertical Size Attribute Options">
72
+ <sp-tab value="s">Small</sp-tab>
73
+ <sp-tab-panel value="s">
63
74
 
64
- ```html-live
75
+ ```html-live demo
65
76
  <div style="height: 32px; display: flex;">
66
77
  <sp-action-button quiet label="Zoom in">
67
78
  <sp-icon-magnify slot="icon"></sp-icon-magnify>
68
79
  </sp-action-button>
69
- <sp-divider size="s" vertical></sp-divider>
80
+ <sp-divider
81
+ size="s"
82
+ style="align-self: stretch; height: auto;"
83
+ vertical
84
+ ></sp-divider>
70
85
  <sp-action-button quiet label="Zoom in">
71
86
  <sp-icon-magnify slot="icon"></sp-icon-magnify>
72
87
  </sp-action-button>
73
88
  </div>
74
89
  ```
75
90
 
76
- ### Medium
91
+ </sp-tab-panel>
92
+ <sp-tab value="m">Medium</sp-tab>
93
+ <sp-tab-panel value="m">
77
94
 
78
- ```html-live
95
+ ```html-live demo
79
96
  <div style="height: 32px; display: flex;">
80
97
  <sp-action-button quiet label="Zoom in">
81
98
  <sp-icon-magnify slot="icon"></sp-icon-magnify>
82
99
  </sp-action-button>
83
- <sp-divider size="m" vertical></sp-divider>
100
+ <sp-divider
101
+ size="m"
102
+ style="align-self: stretch; height: auto;"
103
+ vertical
104
+ ></sp-divider>
84
105
  <sp-action-button quiet label="Zoom in">
85
106
  <sp-icon-magnify slot="icon"></sp-icon-magnify>
86
107
  </sp-action-button>
87
108
  </div>
88
109
  ```
89
110
 
90
- ### Large
111
+ </sp-tab-panel>
112
+ <sp-tab value="l">Large</sp-tab>
113
+ <sp-tab-panel value="l">
91
114
 
92
- ```html-live
115
+ ```html-live demo
93
116
  <div style="height: 32px; display: flex;">
94
117
  <sp-action-button quiet label="Zoom in">
95
118
  <sp-icon-magnify slot="icon"></sp-icon-magnify>
96
119
  </sp-action-button>
97
- <sp-divider size="l" vertical></sp-divider>
120
+ <sp-divider
121
+ size="l"
122
+ style="align-self: stretch; height: auto;"
123
+ vertical
124
+ ></sp-divider>
98
125
  <sp-action-button quiet label="Zoom in">
99
126
  <sp-icon-magnify slot="icon"></sp-icon-magnify>
100
127
  </sp-action-button>
101
128
  </div>
102
129
  ```
130
+
131
+ </sp-tab-panel>
132
+ </sp-tabs>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/divider",
3
- "version": "0.4.0",
3
+ "version": "0.4.3-express.12+27420d682",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,11 +44,11 @@
44
44
  "lit-html"
45
45
  ],
46
46
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.5.0",
47
+ "@spectrum-web-components/base": "^0.5.1",
48
48
  "tslib": "^2.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@spectrum-css/divider": "^1.0.5"
51
+ "@spectrum-css/divider": "^1.0.14"
52
52
  },
53
53
  "types": "./src/index.d.ts",
54
54
  "customElements": "custom-elements.json",
@@ -56,5 +56,5 @@
56
56
  "./sp-*.js",
57
57
  "./stories/typography-decorator.js"
58
58
  ],
59
- "gitHead": "7ce77352f6894043bceac9ef92b21e5f85420969"
59
+ "gitHead": "27420d682bb3b3f679875e1f4148c10df0bd738c"
60
60
  }
@@ -1,15 +0,0 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import * as stories from '../stories/divider.stories.js';
13
- import { regressVisuals } from '../../../test/visual/test.js';
14
- regressVisuals('DividerStories', stories);
15
- //# sourceMappingURL=divider.test-vrt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divider.test-vrt.js","sourceRoot":"","sources":["divider.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as stories from '../stories/divider.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('DividerStories', stories);\n"]}
@@ -1,30 +0,0 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { elementUpdated, expect, fixture, html } from '@open-wc/testing';
13
- import '../sp-divider.js';
14
- describe('Divider', () => {
15
- it('loads default divider accessibly', async () => {
16
- const el = await fixture(html `
17
- <sp-divider></sp-divider>
18
- `);
19
- await elementUpdated(el);
20
- await expect(el).to.be.accessible();
21
- });
22
- it('loads [vertical] divider accessibly', async () => {
23
- const el = await fixture(html `
24
- <sp-divider vertical></sp-divider>
25
- `);
26
- await elementUpdated(el);
27
- await expect(el).to.be.accessible();
28
- });
29
- });
30
- //# sourceMappingURL=divider.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divider.test.js","sourceRoot":"","sources":["divider.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,kBAAkB,CAAC;AAG1B,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACrB,EAAE,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAC9C,MAAM,EAAE,GAAG,MAAM,OAAO,CACpB,IAAI,CAAA;;aAEH,CACJ,CAAC;QAEF,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,EAAE,GAAG,MAAM,OAAO,CACpB,IAAI,CAAA;;aAEH,CACJ,CAAC;QAEF,MAAM,cAAc,CAAC,EAAE,CAAC,CAAC;QAEzB,MAAM,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\nimport '../sp-divider.js';\nimport { Divider } from '..';\n\ndescribe('Divider', () => {\n it('loads default divider accessibly', async () => {\n const el = await fixture<Divider>(\n html`\n <sp-divider></sp-divider>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('loads [vertical] divider accessibly', async () => {\n const el = await fixture<Divider>(\n html`\n <sp-divider vertical></sp-divider>\n `\n );\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n});\n"]}