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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/divider",
3
- "version": "0.4.3-express.12+27420d682",
3
+ "version": "0.4.4",
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.1",
47
+ "@spectrum-web-components/base": "^0.5.3",
48
48
  "tslib": "^2.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@spectrum-css/divider": "^1.0.14"
51
+ "@spectrum-css/divider": "^1.0.17"
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": "27420d682bb3b3f679875e1f4148c10df0bd738c"
59
+ "gitHead": "57aba8030b6af96af4015a0aa830e342a17dc219"
60
60
  }
@@ -1,111 +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 { html } from '@spectrum-web-components/base';
13
- import '../sp-divider.js';
14
- import './typography-decorator.js';
15
- import '@spectrum-web-components/action-button/sp-action-button.js';
16
- import '@spectrum-web-components/icon/sp-icon.js';
17
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-align-left.js';
18
- import '@spectrum-web-components/icons-workflow/icons/sp-icon-align-right.js';
19
- export default {
20
- title: 'Divider',
21
- decorators: [
22
- (story) => html `
23
- <typography-decorator .story=${story()}></typography-decorator>
24
- `,
25
- ],
26
- };
27
- export const large = () => {
28
- return html `
29
- <h2 class="spectrum-Heading spectrum-Heading--sizeM">Large</h2>
30
- <sp-divider size="l"></sp-divider>
31
- <p class="spectrum-Body">Page or Section Titles.</p>
32
- `;
33
- };
34
- export const medium = () => {
35
- return html `
36
- <h3 class="spectrum-Heading spectrum-Heading--sizeS">Medium</h3>
37
- <sp-divider size="m"></sp-divider>
38
- <p class="spectrum-Body">
39
- Divide subsections, or divide different groups of elements (between
40
- panels, rails, etc.)
41
- </p>
42
- `;
43
- };
44
- export const small = () => {
45
- return html `
46
- <h4 class="spectrum-Heading spectrum-Heading--sizeXS">Small</h4>
47
- <sp-divider size="s"></sp-divider>
48
- <p class="spectrum-Body">
49
- Divide like-elements (tables, tool groups, elements within a panel,
50
- etc.)
51
- </p>
52
- `;
53
- };
54
- export const verticalSmall = () => {
55
- return html `
56
- <div
57
- style="height: var(--spectrum-global-dimension-size-400, 32px); display: flex;"
58
- >
59
- <sp-action-button quiet>
60
- <sp-icon-align-left slot="icon"></sp-icon-align-left>
61
- </sp-action-button>
62
- <sp-divider
63
- vertical
64
- size="s"
65
- style="height: auto; align-self: stretch;"
66
- ></sp-divider>
67
- <sp-action-button quiet>
68
- <sp-icon-align-right slot="icon"></sp-icon-align-right>
69
- </sp-action-button>
70
- </div>
71
- `;
72
- };
73
- export const verticalMedium = () => {
74
- return html `
75
- <div
76
- style="height: var(--spectrum-global-dimension-size-400, 32px); display: flex;"
77
- >
78
- <sp-action-button quiet>
79
- <sp-icon-align-left slot="icon"></sp-icon-align-left>
80
- </sp-action-button>
81
- <sp-divider
82
- size="m"
83
- vertical
84
- style="height: auto; align-self: stretch;"
85
- ></sp-divider>
86
- <sp-action-button quiet>
87
- <sp-icon-align-right slot="icon"></sp-icon-align-right>
88
- </sp-action-button>
89
- </div>
90
- `;
91
- };
92
- export const verticalLarge = () => {
93
- return html `
94
- <div
95
- style="height: var(--spectrum-global-dimension-size-400, 32px); display: flex;"
96
- >
97
- <sp-action-button quiet>
98
- <sp-icon-align-left slot="icon"></sp-icon-align-left>
99
- </sp-action-button>
100
- <sp-divider
101
- size="l"
102
- vertical
103
- style="height: auto; align-self: stretch;"
104
- ></sp-divider>
105
- <sp-action-button quiet>
106
- <sp-icon-align-right slot="icon"></sp-icon-align-right>
107
- </sp-action-button>
108
- </div>
109
- `;
110
- };
111
- //# sourceMappingURL=divider.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"divider.stories.js","sourceRoot":"","sources":["divider.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AAErE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,2BAA2B,CAAC;AACnC,OAAO,4DAA4D,CAAC;AACpE,OAAO,0CAA0C,CAAC;AAClD,OAAO,qEAAqE,CAAC;AAC7E,OAAO,sEAAsE,CAAC;AAE9E,eAAe;IACX,KAAK,EAAE,SAAS;IAChB,UAAU,EAAE;QACR,CAAC,KAA2B,EAAkB,EAAE,CAAC,IAAI,CAAA;2CAClB,KAAK,EAAE;SACzC;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAmB,EAAE;IACtC,OAAO,IAAI,CAAA;;;;KAIV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAmB,EAAE;IACvC,OAAO,IAAI,CAAA;;;;;;;KAOV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAmB,EAAE;IACtC,OAAO,IAAI,CAAA;;;;;;;KAOV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAmB,EAAE;IAC9C,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;KAgBV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,GAAmB,EAAE;IAC/C,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;KAgBV,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAmB,EAAE;IAC9C,OAAO,IAAI,CAAA;;;;;;;;;;;;;;;;KAgBV,CAAC;AACN,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*/\nimport { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '../sp-divider.js';\nimport './typography-decorator.js';\nimport '@spectrum-web-components/action-button/sp-action-button.js';\nimport '@spectrum-web-components/icon/sp-icon.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-align-left.js';\nimport '@spectrum-web-components/icons-workflow/icons/sp-icon-align-right.js';\n\nexport default {\n title: 'Divider',\n decorators: [\n (story: () => TemplateResult): TemplateResult => html`\n <typography-decorator .story=${story()}></typography-decorator>\n `,\n ],\n};\n\nexport const large = (): TemplateResult => {\n return html`\n <h2 class=\"spectrum-Heading spectrum-Heading--sizeM\">Large</h2>\n <sp-divider size=\"l\"></sp-divider>\n <p class=\"spectrum-Body\">Page or Section Titles.</p>\n `;\n};\n\nexport const medium = (): TemplateResult => {\n return html`\n <h3 class=\"spectrum-Heading spectrum-Heading--sizeS\">Medium</h3>\n <sp-divider size=\"m\"></sp-divider>\n <p class=\"spectrum-Body\">\n Divide subsections, or divide different groups of elements (between\n panels, rails, etc.)\n </p>\n `;\n};\n\nexport const small = (): TemplateResult => {\n return html`\n <h4 class=\"spectrum-Heading spectrum-Heading--sizeXS\">Small</h4>\n <sp-divider size=\"s\"></sp-divider>\n <p class=\"spectrum-Body\">\n Divide like-elements (tables, tool groups, elements within a panel,\n etc.)\n </p>\n `;\n};\n\nexport const verticalSmall = (): TemplateResult => {\n return html`\n <div\n style=\"height: var(--spectrum-global-dimension-size-400, 32px); display: flex;\"\n >\n <sp-action-button quiet>\n <sp-icon-align-left slot=\"icon\"></sp-icon-align-left>\n </sp-action-button>\n <sp-divider\n vertical\n size=\"s\"\n style=\"height: auto; align-self: stretch;\"\n ></sp-divider>\n <sp-action-button quiet>\n <sp-icon-align-right slot=\"icon\"></sp-icon-align-right>\n </sp-action-button>\n </div>\n `;\n};\n\nexport const verticalMedium = (): TemplateResult => {\n return html`\n <div\n style=\"height: var(--spectrum-global-dimension-size-400, 32px); display: flex;\"\n >\n <sp-action-button quiet>\n <sp-icon-align-left slot=\"icon\"></sp-icon-align-left>\n </sp-action-button>\n <sp-divider\n size=\"m\"\n vertical\n style=\"height: auto; align-self: stretch;\"\n ></sp-divider>\n <sp-action-button quiet>\n <sp-icon-align-right slot=\"icon\"></sp-icon-align-right>\n </sp-action-button>\n </div>\n `;\n};\n\nexport const verticalLarge = (): TemplateResult => {\n return html`\n <div\n style=\"height: var(--spectrum-global-dimension-size-400, 32px); display: flex;\"\n >\n <sp-action-button quiet>\n <sp-icon-align-left slot=\"icon\"></sp-icon-align-left>\n </sp-action-button>\n <sp-divider\n size=\"l\"\n vertical\n style=\"height: auto; align-self: stretch;\"\n ></sp-divider>\n <sp-action-button quiet>\n <sp-icon-align-right slot=\"icon\"></sp-icon-align-right>\n </sp-action-button>\n </div>\n `;\n};\n"]}
@@ -1,35 +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
- Unless required by applicable law or agreed to in writing, software distributed under
7
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
8
- OF ANY KIND, either express or implied. See the License for the specific language
9
- governing permissions and limitations under the License.
10
- */
11
- import { __decorate } from "tslib";
12
- import { html, LitElement, } from '@spectrum-web-components/base';
13
- import { customElement, property, } from '@spectrum-web-components/base/src/decorators.js';
14
- import styles from '@spectrum-web-components/theme/src/typography.css.js';
15
- /**
16
- * @element typography-decorator
17
- */
18
- let Typography = class Typography extends LitElement {
19
- render() {
20
- if (!this.story)
21
- return html ``;
22
- return html `
23
- <div class="spectrum-Typography">${this.story}</div>
24
- `;
25
- }
26
- };
27
- Typography.styles = [styles];
28
- __decorate([
29
- property({ attribute: false })
30
- ], Typography.prototype, "story", void 0);
31
- Typography = __decorate([
32
- customElement('typography-decorator')
33
- ], Typography);
34
- export { Typography };
35
- //# sourceMappingURL=typography-decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typography-decorator.js","sourceRoot":"","sources":["typography-decorator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;EASE;;AAEF,OAAO,EAEH,IAAI,EACJ,UAAU,GAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,aAAa,EACb,QAAQ,GACX,MAAM,iDAAiD,CAAC;AAEzD,OAAO,MAAM,MAAM,sDAAsD,CAAC;AAE1E;;GAEG;AAEH,IAAa,UAAU,GAAvB,MAAa,UAAW,SAAQ,UAAU;IAM5B,MAAM;QACZ,IAAI,CAAC,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAA,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAA;+CAC4B,IAAI,CAAC,KAAK;SAChD,CAAC;IACN,CAAC;CACJ,CAAA;AAXU,iBAAM,GAAmB,CAAC,MAAM,CAAE,CAAA;AAGzC;IADC,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;yCACD;AAJrB,UAAU;IADtB,aAAa,CAAC,sBAAsB,CAAC;GACzB,UAAU,CAYtB;SAZY,UAAU","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\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 {\n CSSResultArray,\n html,\n LitElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n customElement,\n property,\n} from '@spectrum-web-components/base/src/decorators.js';\n\nimport styles from '@spectrum-web-components/theme/src/typography.css.js';\n\n/**\n * @element typography-decorator\n */\n@customElement('typography-decorator')\nexport class Typography extends LitElement {\n static styles: CSSResultArray = [styles];\n\n @property({ attribute: false })\n public story?: TemplateResult;\n\n protected render(): TemplateResult {\n if (!this.story) return html``;\n return html`\n <div class=\"spectrum-Typography\">${this.story}</div>\n `;\n }\n}\n"]}