@vonage/vwc-empty-state 2.33.1 → 2.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/vwc-empty-state",
3
- "version": "2.33.1",
3
+ "version": "2.35.0",
4
4
  "description": "empty-state component",
5
5
  "homepage": "https://github.com/Vonage/vivid/tree/master/components/empty-state#readme",
6
6
  "license": "ISC",
@@ -25,17 +25,17 @@
25
25
  "url": "https://github.com/Vonage/vivid/issues"
26
26
  },
27
27
  "dependencies": {
28
- "@vonage/vvd-core": "2.33.1",
29
- "@vonage/vwc-icon": "2.33.1",
28
+ "@vonage/vvd-core": "2.35.0",
29
+ "@vonage/vwc-icon": "2.35.0",
30
30
  "lit-element": "^2.4.0",
31
31
  "lit-html": "^1.3.0",
32
32
  "tslib": "^2.3.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@vonage/vvd-design-tokens": "2.33.1",
36
- "@vonage/vvd-typography": "2.33.1",
37
- "@vonage/vvd-umbrella": "2.33.1",
35
+ "@vonage/vvd-design-tokens": "2.35.0",
36
+ "@vonage/vvd-typography": "2.35.0",
37
+ "@vonage/vvd-umbrella": "2.35.0",
38
38
  "typescript": "^4.3.2"
39
39
  },
40
- "gitHead": "1e9cb0efeb762d2059a6a3e9935d7e6a57c48092"
40
+ "gitHead": "fcc5fe79ad54db7aa0991c7eb4f4287dfbaa4383"
41
41
  }
@@ -14,7 +14,9 @@ export class VWCEmptyStateBase extends LitElement {
14
14
  }
15
15
  render() {
16
16
  return html `<section>
17
- ${this.icon ? this.renderIcon() : nothing}
17
+ <slot name="graphic">
18
+ ${this.icon ? this.renderIcon() : nothing}
19
+ </slot>
18
20
  ${this.heading ? this.renderHeading() : nothing}
19
21
  ${this.body ? this.renderBody() : nothing}
20
22
  </section>`;
@@ -1 +1 @@
1
- {"version":3,"file":"vwc-empty-state-base.js","sourceRoot":"","sources":["src/vwc-empty-state-base.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,UAAU,EAAE,IAAI,EAAkB,QAAQ,EAC1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAUtC,UAAU;QACnB,OAAO,IAAI,CAAA,wCAAwC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC;IACxF,CAAC;IAES,aAAa;QACtB,OAAO,IAAI,CAAA,uBAAuB,IAAI,CAAC,OAAO,OAAO,CAAC;IACvD,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAA,mBAAmB,IAAI,CAAC,IAAI,MAAM,CAAC;IAC/C,CAAC;IAEkB,MAAM;QACxB,OAAO,IAAI,CAAA;KACR,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,OAAO;KACvC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,OAAO;KAC7C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,OAAO;aAC/B,CAAC;IACb,CAAC;CACD;AA3BC;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC3B;AAGd;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACxB;AAGjB;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC3B","sourcesContent":["import {\n\tLitElement, html, TemplateResult, property\n} from 'lit-element';\nimport { nothing } from 'lit-html';\nimport { ifDefined } from 'lit-html/directives/if-defined.js';\n\nexport class VWCEmptyStateBase extends LitElement {\n\t@property({ type: String, reflect: true })\n\t\ticon?: string;\n\n\t@property({ type: String, reflect: true })\n\t\theading?: string;\n\n\t@property({ type: String, reflect: true })\n\t\tbody?: string;\n\n\tprotected renderIcon(): TemplateResult {\n\t\treturn html`<vwc-icon class=\"illustration\"\ttype=\"${ifDefined(this.icon)}\"></vwc-icon>`;\n\t}\n\n\tprotected renderHeading(): TemplateResult {\n\t\treturn html`<h3 class=\"heading\">${this.heading}</h3>`;\n\t}\n\n\tprotected renderBody(): TemplateResult {\n\t\treturn html`<p class=\"body\">${this.body}</p>`;\n\t}\n\n\tprotected override render(): TemplateResult {\n\t\treturn html`<section>\n\t\t\t${this.icon ? this.renderIcon() : nothing}\n\t\t\t${this.heading ? this.renderHeading() : nothing}\n\t\t\t${this.body ? this.renderBody() : nothing}\n\t\t</section>`;\n\t}\n}\n"]}
1
+ {"version":3,"file":"vwc-empty-state-base.js","sourceRoot":"","sources":["src/vwc-empty-state-base.ts"],"names":[],"mappings":";AAAA,OAAO,EACN,UAAU,EAAE,IAAI,EAAkB,QAAQ,EAC1C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAUtC,UAAU;QACnB,OAAO,IAAI,CAAA,wCAAwC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC;IACxF,CAAC;IAES,aAAa;QACtB,OAAO,IAAI,CAAA,uBAAuB,IAAI,CAAC,OAAO,OAAO,CAAC;IACvD,CAAC;IAES,UAAU;QACnB,OAAO,IAAI,CAAA,mBAAmB,IAAI,CAAC,IAAI,MAAM,CAAC;IAC/C,CAAC;IAEkB,MAAM;QACxB,OAAO,IAAI,CAAA;;MAEP,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,OAAO;;KAExC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,OAAO;KAC7C,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,OAAO;aAC/B,CAAC;IACb,CAAC;CACD;AA7BC;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC3B;AAGd;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACxB;AAGjB;IADA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAC3B","sourcesContent":["import {\n\tLitElement, html, TemplateResult, property\n} from 'lit-element';\nimport { nothing } from 'lit-html';\nimport { ifDefined } from 'lit-html/directives/if-defined.js';\n\nexport class VWCEmptyStateBase extends LitElement {\n\t@property({ type: String, reflect: true })\n\t\ticon?: string;\n\n\t@property({ type: String, reflect: true })\n\t\theading?: string;\n\n\t@property({ type: String, reflect: true })\n\t\tbody?: string;\n\n\tprotected renderIcon(): TemplateResult {\n\t\treturn html`<vwc-icon class=\"illustration\"\ttype=\"${ifDefined(this.icon)}\"></vwc-icon>`;\n\t}\n\n\tprotected renderHeading(): TemplateResult {\n\t\treturn html`<h3 class=\"heading\">${this.heading}</h3>`;\n\t}\n\n\tprotected renderBody(): TemplateResult {\n\t\treturn html`<p class=\"body\">${this.body}</p>`;\n\t}\n\n\tprotected override render(): TemplateResult {\n\t\treturn html`<section>\n\t\t\t<slot name=\"graphic\">\n\t\t\t\t${this.icon ? this.renderIcon() : nothing}\n\t\t\t</slot>\n\t\t\t${this.heading ? this.renderHeading() : nothing}\n\t\t\t${this.body ? this.renderBody() : nothing}\n\t\t</section>`;\n\t}\n}\n"]}