@spectrum-web-components/illustrated-message 0.8.10 → 0.8.13-devmode.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/package.json +22 -9
- package/sp-illustrated-message.dev.js +3 -0
- package/sp-illustrated-message.dev.js.map +7 -0
- package/sp-illustrated-message.js +3 -14
- package/sp-illustrated-message.js.map +7 -1
- package/src/IllustratedMessage.dev.js +51 -0
- package/src/IllustratedMessage.dev.js.map +7 -0
- package/src/IllustratedMessage.js +38 -43
- package/src/IllustratedMessage.js.map +7 -1
- package/src/illustrated-message.css.dev.js +22 -0
- package/src/illustrated-message.css.dev.js.map +7 -0
- package/src/illustrated-message.css.js +3 -14
- package/src/illustrated-message.css.js.map +7 -1
- package/src/index.dev.js +2 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -13
- package/src/index.js.map +7 -1
- package/src/spectrum-illustratedmessage.css.dev.js +22 -0
- package/src/spectrum-illustratedmessage.css.dev.js.map +7 -0
- package/src/spectrum-illustratedmessage.css.js +3 -14
- package/src/spectrum-illustratedmessage.css.js.map +7 -1
- package/stories/illustrated-message.stories.js +8 -19
- package/stories/illustrated-message.stories.js.map +7 -1
- package/test/benchmark/test-basic.js +5 -16
- package/test/benchmark/test-basic.js.map +7 -1
- package/test/illustrated-message.test-vrt.js +4 -15
- package/test/illustrated-message.test-vrt.js.map +7 -1
- package/test/illustrated-message.test.js +13 -24
- package/test/illustrated-message.test.js.map +7 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spectrum-web-components/illustrated-message",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.13-devmode.0+07474d44f",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -20,11 +20,24 @@
|
|
20
20
|
"module": "./src/index.js",
|
21
21
|
"type": "module",
|
22
22
|
"exports": {
|
23
|
-
".":
|
24
|
-
|
23
|
+
".": {
|
24
|
+
"development": "./src/index.dev.js",
|
25
|
+
"default": "./src/index.js"
|
26
|
+
},
|
25
27
|
"./package.json": "./package.json",
|
26
|
-
"./
|
27
|
-
|
28
|
+
"./src/IllustratedMessage.js": {
|
29
|
+
"development": "./src/IllustratedMessage.dev.js",
|
30
|
+
"default": "./src/IllustratedMessage.js"
|
31
|
+
},
|
32
|
+
"./src/illustrated-message.css.js": "./src/illustrated-message.css.js",
|
33
|
+
"./src/index.js": {
|
34
|
+
"development": "./src/index.dev.js",
|
35
|
+
"default": "./src/index.js"
|
36
|
+
},
|
37
|
+
"./sp-illustrated-message.js": {
|
38
|
+
"development": "./sp-illustrated-message.dev.js",
|
39
|
+
"default": "./sp-illustrated-message.js"
|
40
|
+
}
|
28
41
|
},
|
29
42
|
"scripts": {
|
30
43
|
"test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
|
@@ -44,17 +57,17 @@
|
|
44
57
|
"lit-html"
|
45
58
|
],
|
46
59
|
"dependencies": {
|
47
|
-
"@spectrum-web-components/base": "^0.5.
|
48
|
-
"@spectrum-web-components/styles": "^0.
|
60
|
+
"@spectrum-web-components/base": "^0.5.9-devmode.24+07474d44f",
|
61
|
+
"@spectrum-web-components/styles": "^0.15.1-devmode.0+07474d44f",
|
49
62
|
"tslib": "^2.0.0"
|
50
63
|
},
|
51
64
|
"devDependencies": {
|
52
|
-
"@spectrum-css/illustratedmessage": "^4.0.
|
65
|
+
"@spectrum-css/illustratedmessage": "^4.0.6"
|
53
66
|
},
|
54
67
|
"types": "./src/index.d.ts",
|
55
68
|
"customElements": "custom-elements.json",
|
56
69
|
"sideEffects": [
|
57
70
|
"./sp-*.js"
|
58
71
|
],
|
59
|
-
"gitHead": "
|
72
|
+
"gitHead": "07474d44f6cee1db241b9ccf3dc812514ffbe7fa"
|
60
73
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["sp-illustrated-message.ts"],
|
4
|
+
"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 { IllustratedMessage } from './src/IllustratedMessage.dev.js'\n\ncustomElements.define('sp-illustrated-message', IllustratedMessage);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-illustrated-message': IllustratedMessage;\n }\n}\n"],
|
5
|
+
"mappings": "AAWA;AAEA,eAAe,OAAO,0BAA0B,kBAAkB;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,14 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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 { IllustratedMessage } from './src/IllustratedMessage.js';
|
13
|
-
customElements.define('sp-illustrated-message', IllustratedMessage);
|
14
|
-
//# sourceMappingURL=sp-illustrated-message.js.map
|
1
|
+
import { IllustratedMessage } from "./src/IllustratedMessage.js";
|
2
|
+
customElements.define("sp-illustrated-message", IllustratedMessage);
|
3
|
+
//# sourceMappingURL=sp-illustrated-message.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["sp-illustrated-message.ts"],
|
4
|
+
"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 { IllustratedMessage } from './src/IllustratedMessage.js';\n\ncustomElements.define('sp-illustrated-message', IllustratedMessage);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-illustrated-message': IllustratedMessage;\n }\n}\n"],
|
5
|
+
"mappings": "AAWA;AAEA,eAAe,OAAO,0BAA0B,kBAAkB;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
6
|
+
if (decorator = decorators[i])
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
8
|
+
if (kind && result)
|
9
|
+
__defProp(target, key, result);
|
10
|
+
return result;
|
11
|
+
};
|
12
|
+
import {
|
13
|
+
html,
|
14
|
+
SpectrumElement
|
15
|
+
} from "@spectrum-web-components/base";
|
16
|
+
import { property } from "@spectrum-web-components/base/src/decorators.js";
|
17
|
+
import messageStyles from "./illustrated-message.css.js";
|
18
|
+
import headingStyles from "@spectrum-web-components/styles/heading.js";
|
19
|
+
import bodyStyles from "@spectrum-web-components/styles/body.js";
|
20
|
+
export class IllustratedMessage extends SpectrumElement {
|
21
|
+
constructor() {
|
22
|
+
super(...arguments);
|
23
|
+
this.heading = "";
|
24
|
+
this.description = "";
|
25
|
+
}
|
26
|
+
static get styles() {
|
27
|
+
return [headingStyles, bodyStyles, messageStyles];
|
28
|
+
}
|
29
|
+
render() {
|
30
|
+
return html`
|
31
|
+
<div id="illustration"><slot></slot></div>
|
32
|
+
<h2
|
33
|
+
id="heading"
|
34
|
+
class="spectrum-Heading spectrum-Heading--sizeL spectrum-Heading--light"
|
35
|
+
>
|
36
|
+
<slot name="heading">${this.heading}</slot>
|
37
|
+
</h2>
|
38
|
+
<div id="description" class="spectrum-Body spectrum-Body--sizeS">
|
39
|
+
<slot name="description">${this.description}</slot>
|
40
|
+
</div>
|
41
|
+
`;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
IllustratedMessage.is = "sp-illustrated-message";
|
45
|
+
__decorateClass([
|
46
|
+
property()
|
47
|
+
], IllustratedMessage.prototype, "heading", 2);
|
48
|
+
__decorateClass([
|
49
|
+
property()
|
50
|
+
], IllustratedMessage.prototype, "description", 2);
|
51
|
+
//# sourceMappingURL=IllustratedMessage.dev.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["IllustratedMessage.ts"],
|
4
|
+
"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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport messageStyles from './illustrated-message.css.js';\nimport headingStyles from '@spectrum-web-components/styles/heading.js';\nimport bodyStyles from '@spectrum-web-components/styles/body.js';\n\n/**\n * @element sp-illustrated-message\n *\n * @slot - The SVG that represents the illustration\n * @slot heading - Headline for the message\n * @slot description - Description text for the illustration\n */\nexport class IllustratedMessage extends SpectrumElement {\n public static readonly is = 'sp-illustrated-message';\n\n public static override get styles(): CSSResultArray {\n return [headingStyles, bodyStyles, messageStyles];\n }\n\n @property()\n public heading = '';\n\n @property()\n public description = '';\n\n protected override render(): TemplateResult {\n return html`\n <div id=\"illustration\"><slot></slot></div>\n <h2\n id=\"heading\"\n class=\"spectrum-Heading spectrum-Heading--sizeL spectrum-Heading--light\"\n >\n <slot name=\"heading\">${this.heading}</slot>\n </h2>\n <div id=\"description\" class=\"spectrum-Body spectrum-Body--sizeS\">\n <slot name=\"description\">${this.description}</slot>\n </div>\n `;\n }\n}\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAMA;AAEA;AACA;AACA;AASO,aAAM,2BAA2B,gBAAgB;AAAA,EAAjD;AAAA;AAQI,mBAAU;AAGV,uBAAc;AAAA;AAAA,aARM,SAAyB;AAChD,WAAO,CAAC,eAAe,YAAY,aAAa;AAAA,EACpD;AAAA,EAQmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uCAMwB,KAAK;AAAA;AAAA;AAAA,2CAGD,KAAK;AAAA;AAAA;AAAA,EAG5C;AACJ;AA1B2B,AADpB,mBACoB,KAAK;AAOrB;AAAA,EADP,AAAC,SAAS;AAAA,GACH,AARJ,mBAQI;AAGA;AAAA,EADP,AAAC,SAAS;AAAA,GACH,AAXJ,mBAWI;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,38 +1,33 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
import {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
import
|
17
|
-
import
|
18
|
-
|
19
|
-
|
20
|
-
*
|
21
|
-
* @slot - The SVG that represents the illustration
|
22
|
-
* @slot heading - Headline for the message
|
23
|
-
* @slot description - Description text for the illustration
|
24
|
-
*/
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
6
|
+
if (decorator = decorators[i])
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
8
|
+
if (kind && result)
|
9
|
+
__defProp(target, key, result);
|
10
|
+
return result;
|
11
|
+
};
|
12
|
+
import {
|
13
|
+
html,
|
14
|
+
SpectrumElement
|
15
|
+
} from "@spectrum-web-components/base";
|
16
|
+
import { property } from "@spectrum-web-components/base/src/decorators.js";
|
17
|
+
import messageStyles from "./illustrated-message.css.js";
|
18
|
+
import headingStyles from "@spectrum-web-components/styles/heading.js";
|
19
|
+
import bodyStyles from "@spectrum-web-components/styles/body.js";
|
25
20
|
export class IllustratedMessage extends SpectrumElement {
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
21
|
+
constructor() {
|
22
|
+
super(...arguments);
|
23
|
+
this.heading = "";
|
24
|
+
this.description = "";
|
25
|
+
}
|
26
|
+
static get styles() {
|
27
|
+
return [headingStyles, bodyStyles, messageStyles];
|
28
|
+
}
|
29
|
+
render() {
|
30
|
+
return html`
|
36
31
|
<div id="illustration"><slot></slot></div>
|
37
32
|
<h2
|
38
33
|
id="heading"
|
@@ -44,13 +39,13 @@ export class IllustratedMessage extends SpectrumElement {
|
|
44
39
|
<slot name="description">${this.description}</slot>
|
45
40
|
</div>
|
46
41
|
`;
|
47
|
-
|
42
|
+
}
|
48
43
|
}
|
49
|
-
IllustratedMessage.is =
|
50
|
-
|
51
|
-
|
52
|
-
], IllustratedMessage.prototype, "heading",
|
53
|
-
|
54
|
-
|
55
|
-
], IllustratedMessage.prototype, "description",
|
56
|
-
//# sourceMappingURL=IllustratedMessage.js.map
|
44
|
+
IllustratedMessage.is = "sp-illustrated-message";
|
45
|
+
__decorateClass([
|
46
|
+
property()
|
47
|
+
], IllustratedMessage.prototype, "heading", 2);
|
48
|
+
__decorateClass([
|
49
|
+
property()
|
50
|
+
], IllustratedMessage.prototype, "description", 2);
|
51
|
+
//# sourceMappingURL=IllustratedMessage.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["IllustratedMessage.ts"],
|
4
|
+
"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 {\n CSSResultArray,\n html,\n SpectrumElement,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport { property } from '@spectrum-web-components/base/src/decorators.js';\n\nimport messageStyles from './illustrated-message.css.js';\nimport headingStyles from '@spectrum-web-components/styles/heading.js';\nimport bodyStyles from '@spectrum-web-components/styles/body.js';\n\n/**\n * @element sp-illustrated-message\n *\n * @slot - The SVG that represents the illustration\n * @slot heading - Headline for the message\n * @slot description - Description text for the illustration\n */\nexport class IllustratedMessage extends SpectrumElement {\n public static readonly is = 'sp-illustrated-message';\n\n public static override get styles(): CSSResultArray {\n return [headingStyles, bodyStyles, messageStyles];\n }\n\n @property()\n public heading = '';\n\n @property()\n public description = '';\n\n protected override render(): TemplateResult {\n return html`\n <div id=\"illustration\"><slot></slot></div>\n <h2\n id=\"heading\"\n class=\"spectrum-Heading spectrum-Heading--sizeL spectrum-Heading--light\"\n >\n <slot name=\"heading\">${this.heading}</slot>\n </h2>\n <div id=\"description\" class=\"spectrum-Body spectrum-Body--sizeS\">\n <slot name=\"description\">${this.description}</slot>\n </div>\n `;\n }\n}\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;AAYA;AAAA;AAAA;AAAA;AAMA;AAEA;AACA;AACA;AASO,aAAM,2BAA2B,gBAAgB;AAAA,EAAjD;AAAA;AAQI,mBAAU;AAGV,uBAAc;AAAA;AAAA,aARM,SAAyB;AAChD,WAAO,CAAC,eAAe,YAAY,aAAa;AAAA,EACpD;AAAA,EAQmB,SAAyB;AACxC,WAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uCAMwB,KAAK;AAAA;AAAA;AAAA,2CAGD,KAAK;AAAA;AAAA;AAAA,EAG5C;AACJ;AA1B2B,AADpB,mBACoB,KAAK;AAOrB;AAAA,EADP,AAAC,SAAS;AAAA,GACH,AARJ,mBAQI;AAGA;AAAA,EADP,AAAC,SAAS;AAAA,GACH,AAXJ,mBAWI;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { css } from "@spectrum-web-components/base";
|
2
|
+
const styles = css`
|
3
|
+
:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(
|
4
|
+
--spectrum-illustratedmessage-illustration-margin-bottom
|
5
|
+
)}#heading{color:var(
|
6
|
+
--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)
|
7
|
+
);font-size:var(
|
8
|
+
--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)
|
9
|
+
);font-weight:var(
|
10
|
+
--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)
|
11
|
+
);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(
|
12
|
+
--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)
|
13
|
+
);font-style:var(
|
14
|
+
--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
|
15
|
+
);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(
|
16
|
+
--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
|
17
|
+
)}#illustration{fill:currentColor;stroke:currentColor;color:var(
|
18
|
+
--spectrum-global-color-gray-500
|
19
|
+
)}::slotted(svg[viewBox]){width:100%}
|
20
|
+
`;
|
21
|
+
export default styles;
|
22
|
+
//# sourceMappingURL=illustrated-message.css.dev.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["illustrated-message.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(\n--spectrum-illustratedmessage-illustration-margin-bottom\n)}#heading{color:var(\n--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)\n);font-size:var(\n--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)\n);font-weight:var(\n--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(\n--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)\n);font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n)}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}::slotted(svg[viewBox]){width:100%}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBf,eAAe;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,16 +1,5 @@
|
|
1
|
-
|
2
|
-
|
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 { css } from '@spectrum-web-components/base';
|
13
|
-
const styles = css `
|
1
|
+
import { css } from "@spectrum-web-components/base";
|
2
|
+
const styles = css`
|
14
3
|
:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(
|
15
4
|
--spectrum-illustratedmessage-illustration-margin-bottom
|
16
5
|
)}#heading{color:var(
|
@@ -30,4 +19,4 @@ const styles = css `
|
|
30
19
|
)}::slotted(svg[viewBox]){width:100%}
|
31
20
|
`;
|
32
21
|
export default styles;
|
33
|
-
//# sourceMappingURL=illustrated-message.css.js.map
|
22
|
+
//# sourceMappingURL=illustrated-message.css.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["illustrated-message.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(\n--spectrum-illustratedmessage-illustration-margin-bottom\n)}#heading{color:var(\n--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)\n);font-size:var(\n--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)\n);font-weight:var(\n--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(\n--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)\n);font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n)}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}::slotted(svg[viewBox]){width:100%}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBf,eAAe;",
|
6
|
+
"names": []
|
7
|
+
}
|
package/src/index.dev.js
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["index.ts"],
|
4
|
+
"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*/\nexport * from './IllustratedMessage.dev.js'\n"],
|
5
|
+
"mappings": "AAWA;",
|
6
|
+
"names": []
|
7
|
+
}
|
package/src/index.js
CHANGED
@@ -1,13 +1,2 @@
|
|
1
|
-
|
2
|
-
|
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
|
-
export * from './IllustratedMessage.js';
|
13
|
-
//# sourceMappingURL=index.js.map
|
1
|
+
export * from "./IllustratedMessage.js";
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["index.ts"],
|
4
|
+
"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*/\nexport * from './IllustratedMessage.js';\n"],
|
5
|
+
"mappings": "AAWA;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { css } from "@spectrum-web-components/base";
|
2
|
+
const styles = css`
|
3
|
+
:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(
|
4
|
+
--spectrum-illustratedmessage-illustration-margin-bottom
|
5
|
+
)}#heading{color:var(
|
6
|
+
--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)
|
7
|
+
);font-size:var(
|
8
|
+
--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)
|
9
|
+
);font-weight:var(
|
10
|
+
--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)
|
11
|
+
);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(
|
12
|
+
--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)
|
13
|
+
);font-style:var(
|
14
|
+
--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
|
15
|
+
);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(
|
16
|
+
--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
|
17
|
+
)}#illustration{fill:currentColor;stroke:currentColor;color:var(
|
18
|
+
--spectrum-global-color-gray-500
|
19
|
+
)}
|
20
|
+
`;
|
21
|
+
export default styles;
|
22
|
+
//# sourceMappingURL=spectrum-illustratedmessage.css.dev.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["spectrum-illustratedmessage.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(\n--spectrum-illustratedmessage-illustration-margin-bottom\n)}#heading{color:var(\n--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)\n);font-size:var(\n--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)\n);font-weight:var(\n--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(\n--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)\n);font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n)}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBf,eAAe;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,16 +1,5 @@
|
|
1
|
-
|
2
|
-
|
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 { css } from '@spectrum-web-components/base';
|
13
|
-
const styles = css `
|
1
|
+
import { css } from "@spectrum-web-components/base";
|
2
|
+
const styles = css`
|
14
3
|
:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(
|
15
4
|
--spectrum-illustratedmessage-illustration-margin-bottom
|
16
5
|
)}#heading{color:var(
|
@@ -30,4 +19,4 @@ const styles = css `
|
|
30
19
|
)}
|
31
20
|
`;
|
32
21
|
export default styles;
|
33
|
-
//# sourceMappingURL=spectrum-illustratedmessage.css.js.map
|
22
|
+
//# sourceMappingURL=spectrum-illustratedmessage.css.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["spectrum-illustratedmessage.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(\n--spectrum-illustratedmessage-illustration-margin-bottom\n)}#heading{color:var(\n--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)\n);font-size:var(\n--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)\n);font-weight:var(\n--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(\n--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)\n);font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n)}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBf,eAAe;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,23 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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-illustrated-message.js';
|
14
|
-
import { illustration } from '../../dropzone/test/test-svg.js';
|
1
|
+
import { html } from "@spectrum-web-components/base";
|
2
|
+
import "@spectrum-web-components/illustrated-message/sp-illustrated-message.js";
|
3
|
+
import { illustration } from "../../dropzone/test/test-svg.js";
|
15
4
|
export default {
|
16
|
-
|
17
|
-
|
5
|
+
component: "sp-illustrated-message",
|
6
|
+
title: "IllustratedMessage"
|
18
7
|
};
|
19
8
|
export const Default = () => {
|
20
|
-
|
9
|
+
return html`
|
21
10
|
<sp-illustrated-message
|
22
11
|
heading="Drag and Drop Your File"
|
23
12
|
description="This message has italics"
|
@@ -27,7 +16,7 @@ export const Default = () => {
|
|
27
16
|
`;
|
28
17
|
};
|
29
18
|
export const CTA = () => {
|
30
|
-
|
19
|
+
return html`
|
31
20
|
<sp-illustrated-message
|
32
21
|
heading="Drag and Drop Your File"
|
33
22
|
description="This message has no italics"
|
@@ -37,4 +26,4 @@ export const CTA = () => {
|
|
37
26
|
</sp-illustrated-message>
|
38
27
|
`;
|
39
28
|
};
|
40
|
-
//# sourceMappingURL=illustrated-message.stories.js.map
|
29
|
+
//# sourceMappingURL=illustrated-message.stories.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["illustrated-message.stories.ts"],
|
4
|
+
"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 '@spectrum-web-components/illustrated-message/sp-illustrated-message.js';\nimport { illustration } from '../../dropzone/test/test-svg.js';\n\nexport default {\n component: 'sp-illustrated-message',\n title: 'IllustratedMessage',\n};\n\nexport const Default = (): TemplateResult => {\n return html`\n <sp-illustrated-message\n heading=\"Drag and Drop Your File\"\n description=\"This message has italics\"\n >\n ${illustration}\n </sp-illustrated-message>\n `;\n};\n\nexport const CTA = (): TemplateResult => {\n return html`\n <sp-illustrated-message\n heading=\"Drag and Drop Your File\"\n description=\"This message has no italics\"\n cta\n >\n ${illustration}\n </sp-illustrated-message>\n `;\n};\n"],
|
5
|
+
"mappings": "AAWA;AAEA;AACA;AAEA,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,UAAU,MAAsB;AACzC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA,cAKG;AAAA;AAAA;AAGd;AAEO,aAAM,MAAM,MAAsB;AACrC,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAMG;AAAA;AAAA;AAGd;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,18 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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 '@spectrum-web-components/illustrated-message/sp-illustrated-message.js';
|
13
|
-
import { html } from 'lit';
|
14
|
-
import { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';
|
15
|
-
measureFixtureCreation(html `
|
1
|
+
import "@spectrum-web-components/illustrated-message/sp-illustrated-message.js";
|
2
|
+
import { html } from "lit";
|
3
|
+
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
4
|
+
measureFixtureCreation(html`
|
16
5
|
<sp-illustrated-message
|
17
6
|
heading="Drag and Drop Your File"
|
18
7
|
description="This message has italics"
|
@@ -30,4 +19,4 @@ measureFixtureCreation(html `
|
|
30
19
|
</svg>
|
31
20
|
</sp-illustrated-message>
|
32
21
|
`);
|
33
|
-
//# sourceMappingURL=test-basic.js.map
|
22
|
+
//# sourceMappingURL=test-basic.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["test-basic.ts"],
|
4
|
+
"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 '@spectrum-web-components/illustrated-message/sp-illustrated-message.js';\nimport { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-illustrated-message\n heading=\"Drag and Drop Your File\"\n description=\"This message has italics\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 150 103\"\n width=\"150\"\n height=\"103\"\n viewBox=\"0 0 150 103\"\n >\n <path\n d=\"M133.7,8.5h-118c-1.9,0-3.5,1.6-3.5,3.5v27c0,0.8,0.7,1.5,1.5,1.5s1.5-0.7,1.5-1.5V23.5h119V92c0,0.3-0.2,0.5-0.5,0.5h-118c-0.3,0-0.5-0.2-0.5-0.5V69c0-0.8-0.7-1.5-1.5-1.5s-1.5,0.7-1.5,1.5v23c0,1.9,1.6,3.5,3.5,3.5h118c1.9,0,3.5-1.6,3.5-3.5V12C137.2,10.1,135.6,8.5,133.7,8.5z M15.2,21.5V12c0-0.3,0.2-0.5,0.5-0.5h118c0.3,0,0.5,0.2,0.5,0.5v9.5H15.2z M32.6,16.5c0,0.6-0.4,1-1,1h-10c-0.6,0-1-0.4-1-1s0.4-1,1-1h10C32.2,15.5,32.6,15.9,32.6,16.5z M13.6,56.1l-8.6,8.5C4.8,65,4.4,65.1,4,65.1c-0.4,0-0.8-0.1-1.1-0.4c-0.6-0.6-0.6-1.5,0-2.1l8.6-8.5l-8.6-8.5c-0.6-0.6-0.6-1.5,0-2.1c0.6-0.6,1.5-0.6,2.1,0l8.6,8.5l8.6-8.5c0.6-0.6,1.5-0.6,2.1,0c0.6,0.6,0.6,1.5,0,2.1L15.8,54l8.6,8.5c0.6,0.6,0.6,1.5,0,2.1c-0.3,0.3-0.7,0.4-1.1,0.4c-0.4,0-0.8-0.1-1.1-0.4L13.6,56.1z\"\n ></path>\n </svg>\n </sp-illustrated-message>\n`);\n"],
|
5
|
+
"mappings": "AAYA;AACA;AACA;AAEA,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAiBtB;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,15 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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/illustrated-message.stories.js';
|
13
|
-
import { regressVisuals } from '../../../test/visual/test.js';
|
14
|
-
regressVisuals('IllustratedMessageStories', stories);
|
15
|
-
//# sourceMappingURL=illustrated-message.test-vrt.js.map
|
1
|
+
import * as stories from "../stories/illustrated-message.stories.js";
|
2
|
+
import { regressVisuals } from "../../../test/visual/test.js";
|
3
|
+
regressVisuals("IllustratedMessageStories", stories);
|
4
|
+
//# sourceMappingURL=illustrated-message.test-vrt.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["illustrated-message.test-vrt.ts"],
|
4
|
+
"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/illustrated-message.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('IllustratedMessageStories', stories);\n"],
|
5
|
+
"mappings": "AAYA;AACA;AAEA,eAAe,6BAA6B,OAAO;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,19 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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 '../sp-illustrated-message.js';
|
13
|
-
import { expect, fixture, html } from '@open-wc/testing';
|
14
|
-
describe('Illustrated Message', () => {
|
15
|
-
it('loads', async () => {
|
16
|
-
const el = await fixture(html `
|
1
|
+
import "@spectrum-web-components/illustrated-message/sp-illustrated-message.js";
|
2
|
+
import { expect, fixture, html } from "@open-wc/testing";
|
3
|
+
describe("Illustrated Message", () => {
|
4
|
+
it("loads", async () => {
|
5
|
+
const el = await fixture(html`
|
17
6
|
<sp-illustrated-message
|
18
7
|
heading="Drag and Drop Your File"
|
19
8
|
description="This message has italics"
|
@@ -31,12 +20,12 @@ describe('Illustrated Message', () => {
|
|
31
20
|
</svg>
|
32
21
|
</sp-illustrated-message>
|
33
22
|
`);
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
23
|
+
expect(el).to.not.equal(void 0);
|
24
|
+
if (!el.shadowRoot)
|
25
|
+
throw new Error("No shadowRoot");
|
26
|
+
const slot = el.shadowRoot.querySelector("slot");
|
27
|
+
expect(slot).to.not.equal(void 0);
|
28
|
+
return true;
|
29
|
+
});
|
41
30
|
});
|
42
|
-
//# sourceMappingURL=illustrated-message.test.js.map
|
31
|
+
//# sourceMappingURL=illustrated-message.test.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["illustrated-message.test.ts"],
|
4
|
+
"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 '@spectrum-web-components/illustrated-message/sp-illustrated-message.js';\nimport { IllustratedMessage } from '../';\nimport { expect, fixture, html } from '@open-wc/testing';\n\ndescribe('Illustrated Message', () => {\n it('loads', async () => {\n const el = await fixture<IllustratedMessage>(\n html`\n <sp-illustrated-message\n heading=\"Drag and Drop Your File\"\n description=\"This message has italics\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 150 103\"\n width=\"150\"\n height=\"103\"\n viewBox=\"0 0 150 103\"\n >\n <path\n d=\"M133.7,8.5h-118c-1.9,0-3.5,1.6-3.5,3.5v27c0,0.8,0.7,1.5,1.5,1.5s1.5-0.7,1.5-1.5V23.5h119V92c0,0.3-0.2,0.5-0.5,0.5h-118c-0.3,0-0.5-0.2-0.5-0.5V69c0-0.8-0.7-1.5-1.5-1.5s-1.5,0.7-1.5,1.5v23c0,1.9,1.6,3.5,3.5,3.5h118c1.9,0,3.5-1.6,3.5-3.5V12C137.2,10.1,135.6,8.5,133.7,8.5z M15.2,21.5V12c0-0.3,0.2-0.5,0.5-0.5h118c0.3,0,0.5,0.2,0.5,0.5v9.5H15.2z M32.6,16.5c0,0.6-0.4,1-1,1h-10c-0.6,0-1-0.4-1-1s0.4-1,1-1h10C32.2,15.5,32.6,15.9,32.6,16.5z M13.6,56.1l-8.6,8.5C4.8,65,4.4,65.1,4,65.1c-0.4,0-0.8-0.1-1.1-0.4c-0.6-0.6-0.6-1.5,0-2.1l8.6-8.5l-8.6-8.5c-0.6-0.6-0.6-1.5,0-2.1c0.6-0.6,1.5-0.6,2.1,0l8.6,8.5l8.6-8.5c0.6-0.6,1.5-0.6,2.1,0c0.6,0.6,0.6,1.5,0,2.1L15.8,54l8.6,8.5c0.6,0.6,0.6,1.5,0,2.1c-0.3,0.3-0.7,0.4-1.1,0.4c-0.4,0-0.8-0.1-1.1-0.4L13.6,56.1z\"\n ></path>\n </svg>\n </sp-illustrated-message>\n `\n );\n expect(el).to.not.equal(undefined);\n if (!el.shadowRoot) throw new Error('No shadowRoot');\n const slot = el.shadowRoot.querySelector('slot') as HTMLSlotElement;\n expect(slot).to.not.equal(undefined);\n return true;\n });\n});\n"],
|
5
|
+
"mappings": "AAWA;AAEA;AAEA,SAAS,uBAAuB,MAAM;AAClC,KAAG,SAAS,YAAY;AACpB,UAAM,KAAK,MAAM,QACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAkBJ;AACA,WAAO,EAAE,EAAE,GAAG,IAAI,MAAM,MAAS;AACjC,QAAI,CAAC,GAAG;AAAY,YAAM,IAAI,MAAM,eAAe;AACnD,UAAM,OAAO,GAAG,WAAW,cAAc,MAAM;AAC/C,WAAO,IAAI,EAAE,GAAG,IAAI,MAAM,MAAS;AACnC,WAAO;AAAA,EACX,CAAC;AACL,CAAC;",
|
6
|
+
"names": []
|
7
|
+
}
|