@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.
- package/custom-elements.json +3 -60
- package/package.json +24 -10
- package/sp-illustrated-message.dev.js +3 -0
- package/sp-illustrated-message.dev.js.map +7 -0
- package/sp-illustrated-message.js +2 -14
- package/sp-illustrated-message.js.map +7 -1
- package/src/IllustratedMessage.dev.js +51 -0
- package/src/IllustratedMessage.dev.js.map +7 -0
- package/src/IllustratedMessage.js +3 -46
- package/src/IllustratedMessage.js.map +7 -1
- package/src/illustrated-message.css.dev.js +22 -0
- package/src/illustrated-message.css.dev.js.map +7 -0
- package/src/illustrated-message.css.js +18 -23
- package/src/illustrated-message.css.js.map +7 -1
- package/src/index.dev.js +2 -0
- package/src/index.dev.js.map +7 -0
- package/src/index.js +2 -13
- package/src/index.js.map +7 -1
- package/src/spectrum-illustratedmessage.css.dev.js +22 -0
- package/src/spectrum-illustratedmessage.css.dev.js.map +7 -0
- package/src/spectrum-illustratedmessage.css.js +18 -23
- package/src/spectrum-illustratedmessage.css.js.map +7 -1
- package/stories/illustrated-message.stories.js +5 -28
- package/stories/illustrated-message.stories.js.map +7 -1
- package/test/benchmark/test-basic.js +2 -16
- package/test/benchmark/test-basic.js.map +7 -1
- package/test/illustrated-message.test-vrt.js +2 -15
- package/test/illustrated-message.test-vrt.js.map +7 -1
- package/test/illustrated-message.test.js +3 -26
- package/test/illustrated-message.test.js.map +7 -1
package/custom-elements.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"modules": [
|
5
5
|
{
|
6
6
|
"kind": "javascript-module",
|
7
|
-
"path": "sp-illustrated-message.
|
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.
|
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.
|
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
|
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
|
-
".":
|
24
|
-
|
23
|
+
".": {
|
24
|
+
"development": "./src/index.dev.js",
|
25
|
+
"default": "./src/index.js"
|
26
|
+
},
|
25
27
|
"./package.json": "./package.json",
|
26
|
-
"./
|
27
|
-
|
28
|
+
"./src/IllustratedMessage.js": {
|
29
|
+
"development": "./src/IllustratedMessage.dev.js",
|
30
|
+
"default": "./src/IllustratedMessage.js"
|
31
|
+
},
|
32
|
+
"./src/illustrated-message.css.js": "./src/illustrated-message.css.js",
|
33
|
+
"./src/index.js": {
|
34
|
+
"development": "./src/index.dev.js",
|
35
|
+
"default": "./src/index.js"
|
36
|
+
},
|
37
|
+
"./sp-illustrated-message.js": {
|
38
|
+
"development": "./sp-illustrated-message.dev.js",
|
39
|
+
"default": "./sp-illustrated-message.js"
|
40
|
+
}
|
28
41
|
},
|
29
42
|
"scripts": {
|
30
43
|
"test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
|
@@ -44,17 +57,18 @@
|
|
44
57
|
"lit-html"
|
45
58
|
],
|
46
59
|
"dependencies": {
|
47
|
-
"@spectrum-web-components/base": "^0.
|
48
|
-
"@spectrum-web-components/styles": "^0.
|
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": "^
|
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": "
|
73
|
+
"gitHead": "05c81318844160db3f8156144106e643507fef97"
|
60
74
|
}
|
@@ -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
|
-
|
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
|
-
{
|
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
|
-
{
|
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
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
:
|
15
|
-
--spectrum-
|
16
|
-
)}#
|
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
|
-
|
25
|
-
//# sourceMappingURL=illustrated-message.css.js.map
|
19
|
+
`;export default e;
|
20
|
+
//# sourceMappingURL=illustrated-message.css.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["illustrated-message.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(\n--spectrum-illustratedmessage-illustration-margin-bottom\n)}#heading{color:var(\n--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)\n);font-size:var(\n--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)\n);font-weight:var(\n--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(\n--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)\n);font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n)}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}::slotted(svg[viewBox]){width:100%}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA,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
|
+
}
|
package/src/index.dev.js
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["index.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './IllustratedMessage.dev.js'\n"],
|
5
|
+
"mappings": "AAWA;",
|
6
|
+
"names": []
|
7
|
+
}
|
package/src/index.js
CHANGED
@@ -1,13 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
4
|
-
you may not use this file except in compliance with the License. You may obtain a copy
|
5
|
-
of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
-
|
7
|
-
Unless required by applicable law or agreed to in writing, software distributed under
|
8
|
-
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
9
|
-
OF ANY KIND, either express or implied. See the License for the specific language
|
10
|
-
governing permissions and limitations under the License.
|
11
|
-
*/
|
12
|
-
export * from './IllustratedMessage.js';
|
13
|
-
//# sourceMappingURL=index.js.map
|
1
|
+
export*from"./IllustratedMessage.js";
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["index.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nexport * from './IllustratedMessage.js';\n"],
|
5
|
+
"mappings": "AAWA",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { css } from "@spectrum-web-components/base";
|
2
|
+
const styles = css`
|
3
|
+
:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(
|
4
|
+
--spectrum-illustratedmessage-illustration-margin-bottom
|
5
|
+
)}#heading{color:var(
|
6
|
+
--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)
|
7
|
+
);font-size:var(
|
8
|
+
--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)
|
9
|
+
);font-weight:var(
|
10
|
+
--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)
|
11
|
+
);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(
|
12
|
+
--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)
|
13
|
+
);font-style:var(
|
14
|
+
--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
|
15
|
+
);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(
|
16
|
+
--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)
|
17
|
+
)}#illustration{fill:currentColor;stroke:currentColor;color:var(
|
18
|
+
--spectrum-global-color-gray-500
|
19
|
+
)}
|
20
|
+
`;
|
21
|
+
export default styles;
|
22
|
+
//# sourceMappingURL=spectrum-illustratedmessage.css.dev.js.map
|
@@ -0,0 +1,7 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["spectrum-illustratedmessage.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(\n--spectrum-illustratedmessage-illustration-margin-bottom\n)}#heading{color:var(\n--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)\n);font-size:var(\n--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)\n);font-weight:var(\n--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(\n--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)\n);font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n)}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA;AACA,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBf,eAAe;",
|
6
|
+
"names": []
|
7
|
+
}
|
@@ -1,25 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
:
|
15
|
-
--spectrum-
|
16
|
-
)}#
|
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
|
-
|
25
|
-
//# sourceMappingURL=spectrum-illustratedmessage.css.js.map
|
19
|
+
`;export default e;
|
20
|
+
//# sourceMappingURL=spectrum-illustratedmessage.css.js.map
|
@@ -1 +1,7 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"sources": ["spectrum-illustratedmessage.css.ts"],
|
4
|
+
"sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host{--spectrum-illustratedmessage-description-max-width:500px;--spectrum-illustratedmessage-heading-max-width:500px;--spectrum-illustratedmessage-illustration-margin-bottom:24px;--spectrum-illustratedmessage-heading-margin:0;--spectrum-illustratedmessage-description-margin:4px 0 0 0}:host{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center}#illustration{margin-bottom:var(\n--spectrum-illustratedmessage-illustration-margin-bottom\n)}#heading{color:var(\n--spectrum-illustratedmessage-heading-color,var(--spectrum-global-color-gray-800)\n);font-size:var(\n--spectrum-illustratedmessage-heading-font-size,var(--spectrum-alias-heading-m-text-size)\n);font-weight:var(\n--spectrum-illustratedmessage-heading-font-weight,var(--spectrum-alias-heading-text-font-weight-regular)\n);margin:var(--spectrum-illustratedmessage-heading-margin);max-width:var(--spectrum-illustratedmessage-heading-max-width)}#description{color:var(\n--spectrum-illustratedmessage-description-color,var(--spectrum-global-color-gray-700)\n);font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n);margin:var(--spectrum-illustratedmessage-description-margin);max-width:var(--spectrum-illustratedmessage-description-max-width)}:host([cta]) #description{font-style:var(\n--spectrum-illustratedmessage-description-font-style,var(--spectrum-global-font-style-regular)\n)}#illustration{fill:currentColor;stroke:currentColor;color:var(\n--spectrum-global-color-gray-500\n)}\n`;\nexport default styles;"],
|
5
|
+
"mappings": "AAWA,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
|
-
${
|
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
|
-
${
|
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
|
-
{
|
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
|
-
{
|
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
|
-
|
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
|
-
{
|
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
|
-
|
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
|
-
{
|
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
|
+
}
|