UNPKG

@kelvininc/ui-components

Version:
60 lines (59 loc) 3.88 kB
import { Host, h } from "@stencil/core"; import { getClassMap } from "../../../utils/css-class.helper"; /** * @part illustration - The illustration container. */ export class KvNoDataAvailable { constructor() { /** @inheritdoc */ this.customClass = ''; } render() { return (h(Host, { key: '83de034efb4e07748655ecb24b968e3128679a4b' }, h("svg", { key: '544baa013af20877d8ff57e2f3c051a622069a80', part: "illustration", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 86", fill: "none", class: Object.assign(Object.assign({}, getClassMap(this.customClass)), { illustration: true }) }, h("circle", { key: '147e8ac3a4a86911f44a5edd2fc020d029fd2d65', cx: "56", cy: "43", r: "40", fill: "var(--illustrations-background, #262626)" }), h("path", { key: '8734220454f3a97234e6411e220bf1a7088b7a25', fill: "var(--illustrations-shape-secondary, #404040)", d: "M66.975 41.914C62.307 33.874 56 23 56 23v39.984c.227 0 .463 0 .69-.016 7.135-.354 12.81-6.181 12.81-13.312 0-2.89-1.161-5.417-2.517-7.75z" }), h("path", { key: 'f7459478408058870298a8fbc7546b1dcf5232ef', fill: "var(--illustrations-shape-primary, #595959)", "fill-rule": "evenodd", d: "M45.016 41.921C49.692 33.881 56 23.008 56 23.008V63c-.235 0-.462-.008-.69-.016-7.135-.355-12.81-6.174-12.81-13.312 0-2.89 1.16-5.425 2.516-7.75", "clip-rule": "evenodd" }), h("rect", { key: '187b7123215cdf415f29c2f66a8f5dd2009afc7b', width: "40.582", height: "6.087", x: "4", y: "78.696", fill: "var(--illustrations-accent-primary, #7c4dff)", rx: "3", transform: "rotate(-45 4 78.696)" }), h("path", { key: 'b93ae6894fbb03802524331f8a1f37040a355b8a', fill: "var(--illustrations-accent-secondary, #6933ff)", d: "m6.152 80.848 28.696-28.696.03.031a3 3 0 0 1 0 4.243L10.427 80.879a3 3 0 0 1-4.243 0z" }), h("rect", { key: 'abeefc8d8d1debaeac0d4d2037edb15c57d958e6', width: "40.582", height: "6.087", fill: "var(--illustrations-icon-primary, #e5e5e5)", rx: "3", transform: "scale(-1 1)rotate(-45 76.494 84.015)" }), h("path", { key: '44695f366c45499828bdc7658398bc178b33d179', fill: "var(--illustrations-icon-secondary, #bfbfbf)", d: "M34.85 80.848 6.154 52.152l-.03.031a3 3 0 0 0 0 4.243l24.452 24.453a3 3 0 0 0 4.243 0z" })))); } static get is() { return "kv-no-data-available"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "$": ["../../../illustrations/illustrations.scss"] }; } static get styleUrls() { return { "$": ["../../../illustrations/illustrations.css"] }; } static get properties() { return { "customClass": { "type": "string", "attribute": "custom-class", "mutable": false, "complexType": { "original": "CustomCssClass", "resolved": "CssClassMap | string | string[]", "references": { "CustomCssClass": { "location": "import", "path": "../../../types", "id": "src/types.ts::CustomCssClass" } } }, "required": false, "optional": false, "docs": { "tags": [{ "name": "inheritdoc", "text": undefined }], "text": "(optional) Additional classes to apply for custom CSS. If multiple classes are\nprovided they should be separated by spaces. It is also valid to provide\nCssClassMap with boolean logic." }, "getter": false, "setter": false, "reflect": true, "defaultValue": "''" } }; } }