@spectrum-web-components/illustrated-message 0.8.9 → 0.8.11

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.
@@ -107,63 +107,6 @@
107
107
  }
108
108
  }
109
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-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`"
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-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`"
155
- }
156
- ],
157
- "exports": [
158
- {
159
- "kind": "js",
160
- "name": "default",
161
- "declaration": {
162
- "name": "styles",
163
- "module": "src/spectrum-illustratedmessage.css.ts"
164
- }
165
- }
166
- ]
167
110
  }
168
111
  ]
169
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/illustrated-message",
3
- "version": "0.8.9",
3
+ "version": "0.8.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,8 +44,8 @@
44
44
  "lit-html"
45
45
  ],
46
46
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.5.6",
48
- "@spectrum-web-components/styles": "^0.13.1",
47
+ "@spectrum-web-components/base": "^0.5.8",
48
+ "@spectrum-web-components/styles": "^0.14.0",
49
49
  "tslib": "^2.0.0"
50
50
  },
51
51
  "devDependencies": {
@@ -56,5 +56,5 @@
56
56
  "sideEffects": [
57
57
  "./sp-*.js"
58
58
  ],
59
- "gitHead": "32e049a0da090ffc1a54cfe3234be4d5efc73339"
59
+ "gitHead": "e5cd4a0db2201b8126eb9133ac3c24172d086359"
60
60
  }
@@ -1 +1 @@
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
+ {"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,KAAc,MAAM;QAC7B,OAAO,CAAC,aAAa,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;IACtD,CAAC;IAQkB,MAAM;QACrB,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 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"]}