@spectrum-web-components/illustrated-message 0.9.0-slim.10 → 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.
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "kind": "javascript-module",
7
- "path": "sp-illustrated-message.ts",
7
+ "path": "sp-illustrated-message.js",
8
8
  "declarations": [],
9
9
  "exports": [
10
10
  {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  {
21
21
  "kind": "javascript-module",
22
- "path": "src/IllustratedMessage.ts",
22
+ "path": "src/IllustratedMessage.js",
23
23
  "declarations": [
24
24
  {
25
25
  "kind": "class",
@@ -103,64 +103,7 @@
103
103
  "name": "IllustratedMessage",
104
104
  "declaration": {
105
105
  "name": "IllustratedMessage",
106
- "module": "src/IllustratedMessage.ts"
107
- }
108
- }
109
- ]
110
- },
111
- {
112
- "kind": "javascript-module",
113
- "path": "src/illustrated-message.css.ts",
114
- "declarations": [
115
- {
116
- "kind": "variable",
117
- "name": "styles",
118
- "default": "css`\n:host{--spectrum-illustrated-message-description-max-width:500px;--spectrum-illustrated-message-heading-max-width:500px;--spectrum-illustrated-message-illustration-margin-bottom:24px;--spectrum-illustrated-message-heading-margin:0;--spectrum-illustrated-message-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-illustrated-message-illustration-margin-bottom\n)}#heading{margin:var(--spectrum-illustrated-message-heading-margin);max-width:var(\n--spectrum-illustrated-message-heading-max-width\n)}#description{font-style:italic;margin:var(--spectrum-illustrated-message-description-margin);max-width:var(\n--spectrum-illustrated-message-description-max-width\n)}:host([cta]) #description{font-style:normal}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}::slotted(svg[viewBox]){width:100%}\n`"
119
- }
120
- ],
121
- "exports": [
122
- {
123
- "kind": "js",
124
- "name": "default",
125
- "declaration": {
126
- "name": "styles",
127
- "module": "src/illustrated-message.css.ts"
128
- }
129
- }
130
- ]
131
- },
132
- {
133
- "kind": "javascript-module",
134
- "path": "src/index.ts",
135
- "declarations": [],
136
- "exports": [
137
- {
138
- "kind": "js",
139
- "name": "*",
140
- "declaration": {
141
- "name": "*",
142
- "package": "./IllustratedMessage.js"
143
- }
144
- }
145
- ]
146
- },
147
- {
148
- "kind": "javascript-module",
149
- "path": "src/spectrum-illustratedmessage.css.ts",
150
- "declarations": [
151
- {
152
- "kind": "variable",
153
- "name": "styles",
154
- "default": "css`\n:host{--spectrum-illustrated-message-description-max-width:500px;--spectrum-illustrated-message-heading-max-width:500px;--spectrum-illustrated-message-illustration-margin-bottom:24px;--spectrum-illustrated-message-heading-margin:0;--spectrum-illustrated-message-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-illustrated-message-illustration-margin-bottom\n)}#heading{margin:var(--spectrum-illustrated-message-heading-margin);max-width:var(\n--spectrum-illustrated-message-heading-max-width\n)}#description{font-style:italic;margin:var(--spectrum-illustrated-message-description-margin);max-width:var(\n--spectrum-illustrated-message-description-max-width\n)}:host([cta]) #description{font-style:normal}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}\n`"
155
- }
156
- ],
157
- "exports": [
158
- {
159
- "kind": "js",
160
- "name": "default",
161
- "declaration": {
162
- "name": "styles",
163
- "module": "src/spectrum-illustratedmessage.css.ts"
106
+ "module": "src/IllustratedMessage.js"
164
107
  }
165
108
  }
166
109
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/illustrated-message",
3
- "version": "0.9.0-slim.10+3481c77b4",
3
+ "version": "0.9.0",
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
- ".": "./src/index.js",
24
- "./src/*": "./src/*",
23
+ ".": {
24
+ "development": "./src/index.dev.js",
25
+ "default": "./src/index.js"
26
+ },
25
27
  "./package.json": "./package.json",
26
- "./sp-illustrated-message": "./sp-illustrated-message.js",
27
- "./sp-illustrated-message.js": "./sp-illustrated-message.js"
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,18 @@
44
57
  "lit-html"
45
58
  ],
46
59
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.5.4",
48
- "@spectrum-web-components/styles": "^0.13.0-slim.10+3481c77b4",
60
+ "@spectrum-web-components/base": "^0.7.0",
61
+ "@spectrum-web-components/styles": "^0.16.0",
49
62
  "tslib": "^2.0.0"
50
63
  },
51
64
  "devDependencies": {
52
- "@spectrum-css/illustratedmessage": "^3.0.15"
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
- "./sp-*.js"
70
+ "./sp-*.js",
71
+ "./**/*.dev.js"
58
72
  ],
59
- "gitHead": "3481c77b431e0ccb4b0230a90cc83e770a46e59f"
73
+ "gitHead": "05c81318844160db3f8156144106e643507fef97"
60
74
  }
@@ -0,0 +1,3 @@
1
+ import { IllustratedMessage } from "./src/IllustratedMessage.dev.js";
2
+ customElements.define("sp-illustrated-message", IllustratedMessage);
3
+ //# sourceMappingURL=sp-illustrated-message.dev.js.map
@@ -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,2 @@
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 { IllustratedMessage } from './src/IllustratedMessage.js';
13
- customElements.define('sp-illustrated-message', IllustratedMessage);
14
- //# sourceMappingURL=sp-illustrated-message.js.map
1
+ import{IllustratedMessage as e}from"./src/IllustratedMessage.js";customElements.define("sp-illustrated-message",e);
2
+ //# sourceMappingURL=sp-illustrated-message.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"sp-illustrated-message.js","sourceRoot":"","sources":["sp-illustrated-message.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,kBAAkB,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 { 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"]}
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,iEAEA,eAAe,OAAO,yBAA0B,CAAkB",
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,4 @@
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 { __decorate } from "tslib";
13
- import { html, SpectrumElement, } from '@spectrum-web-components/base';
14
- import { property } from '@spectrum-web-components/base/src/decorators.js';
15
- import messageStyles from './illustrated-message.css.js';
16
- import headingStyles from '@spectrum-web-components/styles/heading.js';
17
- import bodyStyles from '@spectrum-web-components/styles/body.js';
18
- /**
19
- * @element sp-illustrated-message
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
- */
25
- export class IllustratedMessage extends SpectrumElement {
26
- constructor() {
27
- super(...arguments);
28
- this.heading = '';
29
- this.description = '';
30
- }
31
- static get styles() {
32
- return [headingStyles, bodyStyles, messageStyles];
33
- }
34
- render() {
35
- 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`
36
2
  <div id="illustration"><slot></slot></div>
37
3
  <h2
38
4
  id="heading"
@@ -43,14 +9,5 @@ export class IllustratedMessage extends SpectrumElement {
43
9
  <div id="description" class="spectrum-Body spectrum-Body--sizeS">
44
10
  <slot name="description">${this.description}</slot>
45
11
  </div>
46
- `;
47
- }
48
- }
49
- IllustratedMessage.is = 'sp-illustrated-message';
50
- __decorate([
51
- property()
52
- ], IllustratedMessage.prototype, "heading", void 0);
53
- __decorate([
54
- property()
55
- ], IllustratedMessage.prototype, "description", void 0);
56
- //# sourceMappingURL=IllustratedMessage.js.map
12
+ `}}IllustratedMessage.is="sp-illustrated-message",l([p()],IllustratedMessage.prototype,"heading",2),l([p()],IllustratedMessage.prototype,"description",2);
13
+ //# sourceMappingURL=IllustratedMessage.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"IllustratedMessage.js","sourceRoot":"","sources":["IllustratedMessage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,IAAI,EACJ,eAAe,GAElB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAE3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,aAAa,MAAM,4CAA4C,CAAC;AACvE,OAAO,UAAU,MAAM,yCAAyC,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,OAAO,kBAAmB,SAAQ,eAAe;IAAvD;;QAQW,YAAO,GAAG,EAAE,CAAC;QAGb,gBAAW,GAAG,EAAE,CAAC;IAgB5B,CAAC;IAxBU,MAAM,KAAK,MAAM;QACpB,OAAO,CAAC,aAAa,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;IACtD,CAAC;IAQS,MAAM;QACZ,OAAO,IAAI,CAAA;;;;;;uCAMoB,IAAI,CAAC,OAAO;;;2CAGR,IAAI,CAAC,WAAW;;SAElD,CAAC;IACN,CAAC;;AAzBsB,qBAAE,GAAG,wBAAwB,CAAC;AAOrD;IADC,QAAQ,EAAE;mDACS;AAGpB;IADC,QAAQ,EAAE;uDACa","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 get styles(): CSSResultArray {\n return [headingStyles, bodyStyles, messageStyles];\n }\n\n @property()\n public heading = '';\n\n @property()\n public description = '';\n\n protected 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"]}
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": "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
+ "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,25 +1,20 @@
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 { css } from '@spectrum-web-components/base';
13
- const styles = css `
14
- :host{--spectrum-illustrated-message-description-max-width:500px;--spectrum-illustrated-message-heading-max-width:500px;--spectrum-illustrated-message-illustration-margin-bottom:24px;--spectrum-illustrated-message-heading-margin:0;--spectrum-illustrated-message-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
- --spectrum-illustrated-message-illustration-margin-bottom
16
- )}#heading{margin:var(--spectrum-illustrated-message-heading-margin);max-width:var(
17
- --spectrum-illustrated-message-heading-max-width
18
- )}#description{font-style:italic;margin:var(--spectrum-illustrated-message-description-margin);max-width:var(
19
- --spectrum-illustrated-message-description-max-width
20
- )}:host([cta]) #description{font-style:normal}#illustration{fill:currentColor;stroke:currentColor;color:var(
1
+ import{css as t}from"@spectrum-web-components/base";const e=t`
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(
3
+ --spectrum-illustratedmessage-illustration-margin-bottom
4
+ )}#heading{color:var(
5
+ --spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)
6
+ );font-size:var(
7
+ --spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)
8
+ );font-weight:var(
9
+ --spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)
10
+ );margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(
11
+ --spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)
12
+ );font-style:var(
13
+ --spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
14
+ );margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(
15
+ --spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
16
+ )}#illustration{fill:currentColor;stroke:currentColor;color:var(
21
17
  --spectrum-global-color-gray-500
22
18
  )}::slotted(svg[viewBox]){width:100%}
23
- `;
24
- export default styles;
25
- //# sourceMappingURL=illustrated-message.css.js.map
19
+ `;export default e;
20
+ //# sourceMappingURL=illustrated-message.css.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"illustrated-message.css.js","sourceRoot":"","sources":["illustrated-message.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;CAUjB,CAAC;AACF,eAAe,MAAM,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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustrated-message-description-max-width:500px;--spectrum-illustrated-message-heading-max-width:500px;--spectrum-illustrated-message-illustration-margin-bottom:24px;--spectrum-illustrated-message-heading-margin:0;--spectrum-illustrated-message-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-illustrated-message-illustration-margin-bottom\n)}#heading{margin:var(--spectrum-illustrated-message-heading-margin);max-width:var(\n--spectrum-illustrated-message-heading-max-width\n)}#description{font-style:italic;margin:var(--spectrum-illustrated-message-description-margin);max-width:var(\n--spectrum-illustrated-message-description-max-width\n)}:host([cta]) #description{font-style:normal}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}::slotted(svg[viewBox]){width:100%}\n`;\nexport default styles;"]}
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,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBf,cAAe",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./IllustratedMessage.dev.js";
2
+ //# sourceMappingURL=index.dev.js.map
@@ -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
- 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
- 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
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,cAAc,yBAAyB,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*/\nexport * from './IllustratedMessage.js';\n"]}
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,25 +1,20 @@
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 { css } from '@spectrum-web-components/base';
13
- const styles = css `
14
- :host{--spectrum-illustrated-message-description-max-width:500px;--spectrum-illustrated-message-heading-max-width:500px;--spectrum-illustrated-message-illustration-margin-bottom:24px;--spectrum-illustrated-message-heading-margin:0;--spectrum-illustrated-message-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
- --spectrum-illustrated-message-illustration-margin-bottom
16
- )}#heading{margin:var(--spectrum-illustrated-message-heading-margin);max-width:var(
17
- --spectrum-illustrated-message-heading-max-width
18
- )}#description{font-style:italic;margin:var(--spectrum-illustrated-message-description-margin);max-width:var(
19
- --spectrum-illustrated-message-description-max-width
20
- )}:host([cta]) #description{font-style:normal}#illustration{fill:currentColor;stroke:currentColor;color:var(
1
+ import{css as t}from"@spectrum-web-components/base";const e=t`
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(
3
+ --spectrum-illustratedmessage-illustration-margin-bottom
4
+ )}#heading{color:var(
5
+ --spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)
6
+ );font-size:var(
7
+ --spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)
8
+ );font-weight:var(
9
+ --spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)
10
+ );margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(
11
+ --spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)
12
+ );font-style:var(
13
+ --spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
14
+ );margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(
15
+ --spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
16
+ )}#illustration{fill:currentColor;stroke:currentColor;color:var(
21
17
  --spectrum-global-color-gray-500
22
18
  )}
23
- `;
24
- export default styles;
25
- //# sourceMappingURL=spectrum-illustratedmessage.css.js.map
19
+ `;export default e;
20
+ //# sourceMappingURL=spectrum-illustratedmessage.css.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"spectrum-illustratedmessage.css.js","sourceRoot":"","sources":["spectrum-illustratedmessage.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;CAUjB,CAAC;AACF,eAAe,MAAM,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 { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustrated-message-description-max-width:500px;--spectrum-illustrated-message-heading-max-width:500px;--spectrum-illustrated-message-illustration-margin-bottom:24px;--spectrum-illustrated-message-heading-margin:0;--spectrum-illustrated-message-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-illustrated-message-illustration-margin-bottom\n)}#heading{margin:var(--spectrum-illustrated-message-heading-margin);max-width:var(\n--spectrum-illustrated-message-heading-max-width\n)}#description{font-style:italic;margin:var(--spectrum-illustrated-message-description-margin);max-width:var(\n--spectrum-illustrated-message-description-max-width\n)}:host([cta]) #description{font-style:normal}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}\n`;\nexport default styles;"]}
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,oDACA,KAAM,GAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAmBf,cAAe",
6
+ "names": []
7
+ }
@@ -1,40 +1,17 @@
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-illustrated-message.js';
14
- import { illustration } from '../../dropzone/test/test-svg.js';
15
- export default {
16
- component: 'sp-illustrated-message',
17
- title: 'IllustratedMessage',
18
- };
19
- export const Default = () => {
20
- 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`
21
2
  <sp-illustrated-message
22
3
  heading="Drag and Drop Your File"
23
4
  description="This message has italics"
24
5
  >
25
- ${illustration}
6
+ ${s}
26
7
  </sp-illustrated-message>
27
- `;
28
- };
29
- export const CTA = () => {
30
- return html `
8
+ `,CTA=()=>e`
31
9
  <sp-illustrated-message
32
10
  heading="Drag and Drop Your File"
33
11
  description="This message has no italics"
34
12
  cta
35
13
  >
36
- ${illustration}
14
+ ${s}
37
15
  </sp-illustrated-message>
38
16
  `;
39
- };
40
- //# sourceMappingURL=illustrated-message.stories.js.map
17
+ //# sourceMappingURL=illustrated-message.stories.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"illustrated-message.stories.js","sourceRoot":"","sources":["illustrated-message.stories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,IAAI,EAAkB,MAAM,+BAA+B,CAAC;AAErE,OAAO,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,eAAe;IACX,SAAS,EAAE,wBAAwB;IACnC,KAAK,EAAE,oBAAoB;CAC9B,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAmB,EAAE;IACxC,OAAO,IAAI,CAAA;;;;;cAKD,YAAY;;KAErB,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,GAAmB,EAAE;IACpC,OAAO,IAAI,CAAA;;;;;;cAMD,YAAY;;KAErB,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-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"]}
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,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
+ "names": []
7
+ }
@@ -1,18 +1,4 @@
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 '@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";import{html as c}from"lit";import{measureFixtureCreation as s}from"../../../../test/benchmark/helpers.js";s(c`
16
2
  <sp-illustrated-message
17
3
  heading="Drag and Drop Your File"
18
4
  description="This message has italics"
@@ -30,4 +16,4 @@ measureFixtureCreation(html `
30
16
  </svg>
31
17
  </sp-illustrated-message>
32
18
  `);
33
- //# sourceMappingURL=test-basic.js.map
19
+ //# sourceMappingURL=test-basic.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"test-basic.js","sourceRoot":"","sources":["test-basic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,wEAAwE,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAE/E,sBAAsB,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;CAiB1B,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 '@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"]}
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,+EACA,2BACA,+EAEA,EAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAiBtB",
6
+ "names": []
7
+ }
@@ -1,15 +1,2 @@
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/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 s from"../stories/illustrated-message.stories.js";import{regressVisuals as r}from"../../../test/visual/test.js";r("IllustratedMessageStories",s);
2
+ //# sourceMappingURL=illustrated-message.test-vrt.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"illustrated-message.test-vrt.js","sourceRoot":"","sources":["illustrated-message.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,2CAA2C,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,2BAA2B,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/illustrated-message.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('IllustratedMessageStories', stories);\n"]}
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,4DACA,8DAEA,EAAe,4BAA6B,CAAO",
6
+ "names": []
7
+ }
@@ -1,19 +1,4 @@
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 '../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";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`
17
2
  <sp-illustrated-message
18
3
  heading="Drag and Drop Your File"
19
4
  description="This message has italics"
@@ -30,13 +15,5 @@ describe('Illustrated Message', () => {
30
15
  ></path>
31
16
  </svg>
32
17
  </sp-illustrated-message>
33
- `);
34
- expect(el).to.not.equal(undefined);
35
- if (!el.shadowRoot)
36
- throw new Error('No shadowRoot');
37
- const slot = el.shadowRoot.querySelector('slot');
38
- expect(slot).to.not.equal(undefined);
39
- return true;
40
- });
41
- });
42
- //# sourceMappingURL=illustrated-message.test.js.map
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})});
19
+ //# sourceMappingURL=illustrated-message.test.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"illustrated-message.test.js","sourceRoot":"","sources":["illustrated-message.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,8BAA8B,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEzD,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE;QACnB,MAAM,EAAE,GAAG,MAAM,OAAO,CACpB,IAAI,CAAA;;;;;;;;;;;;;;;;;aAiBH,CACJ,CAAC;QACF,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACnC,IAAI,CAAC,EAAE,CAAC,UAAU;YAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;QACrD,MAAM,IAAI,GAAG,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,MAAM,CAAoB,CAAC;QACpE,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACrC,OAAO,IAAI,CAAC;IAChB,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*/\nimport '../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"]}
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,+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
+ "names": []
7
+ }