@spectrum-web-components/illustrated-message 0.8.14-devmode2.0 → 0.9.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 +4 -4
- package/sp-illustrated-message.js +1 -2
- package/sp-illustrated-message.js.map +1 -1
- package/src/IllustratedMessage.js +2 -40
- package/src/IllustratedMessage.js.map +1 -1
- package/src/illustrated-message.css.js +2 -4
- package/src/illustrated-message.css.js.map +1 -1
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/spectrum-illustratedmessage.css.js +2 -4
- package/src/spectrum-illustratedmessage.css.js.map +1 -1
- package/stories/illustrated-message.stories.js +4 -16
- package/stories/illustrated-message.stories.js.map +1 -1
- package/test/benchmark/test-basic.js +1 -4
- package/test/benchmark/test-basic.js.map +1 -1
- package/test/illustrated-message.test-vrt.js +1 -3
- package/test/illustrated-message.test-vrt.js.map +1 -1
- package/test/illustrated-message.test.js +2 -14
- package/test/illustrated-message.test.js.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spectrum-web-components/illustrated-message",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.9.0",
|
4
4
|
"publishConfig": {
|
5
5
|
"access": "public"
|
6
6
|
},
|
@@ -57,8 +57,8 @@
|
|
57
57
|
"lit-html"
|
58
58
|
],
|
59
59
|
"dependencies": {
|
60
|
-
"@spectrum-web-components/base": "^0.
|
61
|
-
"@spectrum-web-components/styles": "^0.
|
60
|
+
"@spectrum-web-components/base": "^0.7.0",
|
61
|
+
"@spectrum-web-components/styles": "^0.16.0",
|
62
62
|
"tslib": "^2.0.0"
|
63
63
|
},
|
64
64
|
"devDependencies": {
|
@@ -70,5 +70,5 @@
|
|
70
70
|
"./sp-*.js",
|
71
71
|
"./**/*.dev.js"
|
72
72
|
],
|
73
|
-
"gitHead": "
|
73
|
+
"gitHead": "05c81318844160db3f8156144106e643507fef97"
|
74
74
|
}
|
@@ -1,3 +1,2 @@
|
|
1
|
-
import
|
2
|
-
customElements.define("sp-illustrated-message", IllustratedMessage);
|
1
|
+
import{IllustratedMessage as e}from"./src/IllustratedMessage.js";customElements.define("sp-illustrated-message",e);
|
3
2
|
//# sourceMappingURL=sp-illustrated-message.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["sp-illustrated-message.ts"],
|
4
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
|
5
|
+
"mappings": "AAWA,iEAEA,eAAe,OAAO,yBAA0B,CAAkB",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,33 +1,4 @@
|
|
1
|
-
var
|
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`
|
1
|
+
var m=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var l=(r,t,s,i)=>{for(var e=i>1?void 0:i?n(t,s):t,o=r.length-1,d;o>=0;o--)(d=r[o])&&(e=(i?d(t,s,e):d(e))||e);return i&&e&&m(t,s,e),e};import{html as a,SpectrumElement as c}from"@spectrum-web-components/base";import{property as p}from"@spectrum-web-components/base/src/decorators.js";import u from"./illustrated-message.css.js";import h from"@spectrum-web-components/styles/heading.js";import y from"@spectrum-web-components/styles/body.js";export class IllustratedMessage extends c{constructor(){super(...arguments);this.heading="";this.description=""}static get styles(){return[h,y,u]}render(){return a`
|
31
2
|
<div id="illustration"><slot></slot></div>
|
32
3
|
<h2
|
33
4
|
id="heading"
|
@@ -38,14 +9,5 @@ export class IllustratedMessage extends SpectrumElement {
|
|
38
9
|
<div id="description" class="spectrum-Body spectrum-Body--sizeS">
|
39
10
|
<slot name="description">${this.description}</slot>
|
40
11
|
</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);
|
12
|
+
`}}IllustratedMessage.is="sp-illustrated-message",l([p()],IllustratedMessage.prototype,"heading",2),l([p()],IllustratedMessage.prototype,"description",2);
|
51
13
|
//# sourceMappingURL=IllustratedMessage.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["IllustratedMessage.ts"],
|
4
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": "
|
5
|
+
"mappings": "wMAYA,0EAMA,2EAEA,4CACA,0DACA,uDASO,aAAM,0BAA2B,EAAgB,CAAjD,kCAQI,aAAU,GAGV,iBAAc,aARM,SAAyB,CAChD,MAAO,CAAC,EAAe,EAAY,CAAa,CACpD,CAQmB,QAAyB,CACxC,MAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uCAMwB,KAAK;AAAA;AAAA;AAAA,2CAGD,KAAK;AAAA;AAAA,SAG5C,CACJ,CA1B2B,AADpB,mBACoB,GAAK,yBAOrB,GADP,AAAC,EAAS,GACH,AARJ,mBAQI,uBAGA,GADP,AAAC,EAAS,GACH,AAXJ,mBAWI",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
import{css as t}from"@spectrum-web-components/base";const e=t`
|
3
2
|
: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
3
|
--spectrum-illustratedmessage-illustration-margin-bottom
|
5
4
|
)}#heading{color:var(
|
@@ -17,6 +16,5 @@ const styles = css`
|
|
17
16
|
)}#illustration{fill:currentColor;stroke:currentColor;color:var(
|
18
17
|
--spectrum-global-color-gray-500
|
19
18
|
)}::slotted(svg[viewBox]){width:100%}
|
20
|
-
`;
|
21
|
-
export default styles;
|
19
|
+
`;export default e;
|
22
20
|
//# sourceMappingURL=illustrated-message.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["illustrated-message.css.ts"],
|
4
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
|
5
|
+
"mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBf,cAAe",
|
6
6
|
"names": []
|
7
7
|
}
|
package/src/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export
|
1
|
+
export*from"./IllustratedMessage.js";
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["index.ts"],
|
4
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
|
5
|
+
"mappings": "AAWA",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
const styles = css`
|
1
|
+
import{css as t}from"@spectrum-web-components/base";const e=t`
|
3
2
|
: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
3
|
--spectrum-illustratedmessage-illustration-margin-bottom
|
5
4
|
)}#heading{color:var(
|
@@ -17,6 +16,5 @@ const styles = css`
|
|
17
16
|
)}#illustration{fill:currentColor;stroke:currentColor;color:var(
|
18
17
|
--spectrum-global-color-gray-500
|
19
18
|
)}
|
20
|
-
`;
|
21
|
-
export default styles;
|
19
|
+
`;export default e;
|
22
20
|
//# sourceMappingURL=spectrum-illustratedmessage.css.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["spectrum-illustratedmessage.css.ts"],
|
4
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
|
5
|
+
"mappings": "AAWA,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBf,cAAe",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,29 +1,17 @@
|
|
1
|
-
import
|
2
|
-
import "@spectrum-web-components/illustrated-message/sp-illustrated-message.js";
|
3
|
-
import { illustration } from "../../dropzone/test/test-svg.js";
|
4
|
-
export default {
|
5
|
-
component: "sp-illustrated-message",
|
6
|
-
title: "IllustratedMessage"
|
7
|
-
};
|
8
|
-
export const Default = () => {
|
9
|
-
return html`
|
1
|
+
import{html as e}from"@spectrum-web-components/base";import"@spectrum-web-components/illustrated-message/sp-illustrated-message.js";import{illustration as s}from"../../dropzone/test/test-svg.js";export default{component:"sp-illustrated-message",title:"IllustratedMessage"};export const Default=()=>e`
|
10
2
|
<sp-illustrated-message
|
11
3
|
heading="Drag and Drop Your File"
|
12
4
|
description="This message has italics"
|
13
5
|
>
|
14
|
-
${
|
6
|
+
${s}
|
15
7
|
</sp-illustrated-message>
|
16
|
-
|
17
|
-
};
|
18
|
-
export const CTA = () => {
|
19
|
-
return html`
|
8
|
+
`,CTA=()=>e`
|
20
9
|
<sp-illustrated-message
|
21
10
|
heading="Drag and Drop Your File"
|
22
11
|
description="This message has no italics"
|
23
12
|
cta
|
24
13
|
>
|
25
|
-
${
|
14
|
+
${s}
|
26
15
|
</sp-illustrated-message>
|
27
16
|
`;
|
28
|
-
};
|
29
17
|
//# sourceMappingURL=illustrated-message.stories.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["illustrated-message.stories.ts"],
|
4
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
|
5
|
+
"mappings": "AAWA,qDAEA,+EACA,+DAEA,cAAe,CACX,UAAW,yBACX,MAAO,oBACX,EAEO,YAAM,SAAU,IACZ;AAAA;AAAA;AAAA;AAAA;AAAA,cAKG;AAAA;AAAA,MAKD,IAAM,IACR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAMG;AAAA;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,7 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { html } from "lit";
|
3
|
-
import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
|
4
|
-
measureFixtureCreation(html`
|
1
|
+
import"@spectrum-web-components/illustrated-message/sp-illustrated-message.js";import{html as c}from"lit";import{measureFixtureCreation as s}from"../../../../test/benchmark/helpers.js";s(c`
|
5
2
|
<sp-illustrated-message
|
6
3
|
heading="Drag and Drop Your File"
|
7
4
|
description="This message has italics"
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["test-basic.ts"],
|
4
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
|
5
|
+
"mappings": "AAYA,+EACA,2BACA,+EAEA,EAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAiBtB",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,4 +1,2 @@
|
|
1
|
-
import
|
2
|
-
import { regressVisuals } from "../../../test/visual/test.js";
|
3
|
-
regressVisuals("IllustratedMessageStories", stories);
|
1
|
+
import*as s from"../stories/illustrated-message.stories.js";import{regressVisuals as r}from"../../../test/visual/test.js";r("IllustratedMessageStories",s);
|
4
2
|
//# sourceMappingURL=illustrated-message.test-vrt.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["illustrated-message.test-vrt.ts"],
|
4
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
|
5
|
+
"mappings": "AAYA,4DACA,8DAEA,EAAe,4BAA6B,CAAO",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,8 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { expect, fixture, html } from "@open-wc/testing";
|
3
|
-
describe("Illustrated Message", () => {
|
4
|
-
it("loads", async () => {
|
5
|
-
const el = await fixture(html`
|
1
|
+
import"@spectrum-web-components/illustrated-message/sp-illustrated-message.js";import{expect as t,fixture as o,html as l}from"@open-wc/testing";describe("Illustrated Message",()=>{it("loads",async()=>{const e=await o(l`
|
6
2
|
<sp-illustrated-message
|
7
3
|
heading="Drag and Drop Your File"
|
8
4
|
description="This message has italics"
|
@@ -19,13 +15,5 @@ describe("Illustrated Message", () => {
|
|
19
15
|
></path>
|
20
16
|
</svg>
|
21
17
|
</sp-illustrated-message>
|
22
|
-
`);
|
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
|
-
});
|
30
|
-
});
|
18
|
+
`);if(t(e).to.not.equal(void 0),!e.shadowRoot)throw new Error("No shadowRoot");const s=e.shadowRoot.querySelector("slot");return t(s).to.not.equal(void 0),!0})});
|
31
19
|
//# sourceMappingURL=illustrated-message.test.js.map
|
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["illustrated-message.test.ts"],
|
4
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
|
5
|
+
"mappings": "AAWA,+EAEA,iEAEA,SAAS,sBAAuB,IAAM,CAClC,GAAG,QAAS,SAAY,CACpB,KAAM,GAAK,KAAM,GACb;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAkBJ,EAEA,GADA,EAAO,CAAE,EAAE,GAAG,IAAI,MAAM,MAAS,EAC7B,CAAC,EAAG,WAAY,KAAM,IAAI,OAAM,eAAe,EACnD,KAAM,GAAO,EAAG,WAAW,cAAc,MAAM,EAC/C,SAAO,CAAI,EAAE,GAAG,IAAI,MAAM,MAAS,EAC5B,EACX,CAAC,CACL,CAAC",
|
6
6
|
"names": []
|
7
7
|
}
|