@zanichelli/albe-web-components 9.3.0-rc1 → 10.0.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/CHANGELOG.md +17 -0
- package/dist/cjs/index-e3299e0a.js +16 -20
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header_11.cjs.entry.js +1056 -0
- package/dist/cjs/z-book-card.cjs.entry.js +5 -1
- package/dist/cjs/z-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/z-date-picker.cjs.entry.js +477 -0
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1016 -0
- package/dist/cjs/z-navigation-tab-link.cjs.entry.js +4 -4
- package/dist/cjs/z-navigation-tab.cjs.entry.js +4 -4
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +36 -44
- package/dist/cjs/z-panel-elem.cjs.entry.js +6 -2
- package/dist/cjs/z-select.cjs.entry.js +333 -0
- package/dist/cjs/z-skip-to-content.cjs.entry.js +10 -2
- package/dist/collection/collection-manifest.json +1 -4
- package/dist/collection/components/modal/z-modal/styles.css +2 -6
- package/dist/collection/components/navigation/tabs/navigation-tab.css +2 -1
- package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +19 -8
- package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +19 -8
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +35 -43
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.stories.js +11 -0
- package/dist/collection/components/navigation/tabs/z-navigation-tabs/styles.css +2 -2
- package/dist/collection/components/panel/z-panel-elem/index.js +6 -2
- package/dist/collection/components/panel/z-panel-elem/styles.css +9 -2
- package/dist/collection/components/z-book-card/index.js +23 -1
- package/dist/collection/components/z-breadcrumb/index.js +1 -1
- package/dist/collection/components/z-skip-to-content/index.js +9 -1
- package/dist/collection/components/z-skip-to-content/styles.css +18 -17
- package/dist/esm/{index-8528dee0.js → index-1b2e3e53.js} +1 -1
- package/dist/esm/index-a2ca4b97.js +16 -20
- package/dist/esm/{index-5b83b0b1.js → index-d3dfe710.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-6c83dfcb.js → utils-4d2d99d9.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header_11.entry.js +1042 -0
- package/dist/esm/z-book-card.entry.js +6 -2
- package/dist/esm/z-breadcrumb.entry.js +2 -2
- package/dist/esm/z-chip.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +1 -1
- package/dist/esm/z-date-picker.entry.js +473 -0
- package/dist/esm/z-dragdrop-area_2.entry.js +1011 -0
- package/dist/esm/z-file-upload.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +1 -1
- package/dist/esm/z-navigation-tab-link.entry.js +5 -5
- package/dist/esm/z-navigation-tab.entry.js +5 -5
- package/dist/esm/z-navigation-tabs.entry.js +36 -44
- package/dist/esm/z-panel-elem.entry.js +6 -2
- package/dist/esm/z-pocket_3.entry.js +1 -1
- package/dist/esm/z-select.entry.js +329 -0
- package/dist/esm/z-skip-to-content.entry.js +11 -3
- package/dist/esm/z-slideshow.entry.js +1 -1
- package/dist/esm/z-table-deprecated.entry.js +2 -2
- package/dist/esm/z-table-header.entry.js +2 -2
- package/dist/esm/z-table.entry.js +2 -2
- package/dist/esm/z-toggle-switch.entry.js +1 -1
- package/dist/esm/z-tr.entry.js +2 -2
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +11 -5
- package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +11 -7
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +4 -4
- package/dist/types/components/z-book-card/index.d.ts +4 -0
- package/dist/types/components.d.ts +28 -120
- package/dist/types/{components/navigation → deprecated}/z-link/index.d.ts +1 -1
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/p-06d2f371.entry.js +1 -0
- package/dist/web-components-library/p-09be4e46.entry.js +1 -0
- package/dist/web-components-library/p-113762ff.entry.js +1 -0
- package/dist/web-components-library/p-1976afea.entry.js +1 -0
- package/dist/web-components-library/{p-7eb6d043.entry.js → p-1cbd8a5f.entry.js} +1 -1
- package/dist/web-components-library/{p-c99acff4.entry.js → p-2d0ac109.entry.js} +1 -1
- package/dist/web-components-library/p-2d600a28.entry.js +1 -0
- package/dist/web-components-library/{p-dca0db1b.entry.js → p-2f013f10.entry.js} +1 -1
- package/dist/web-components-library/p-36487afc.entry.js +1 -0
- package/dist/web-components-library/{p-13ac8bd3.entry.js → p-37e8194f.entry.js} +1 -1
- package/dist/web-components-library/p-386bdb7f.entry.js +1 -0
- package/dist/web-components-library/p-3e61bad0.entry.js +1 -0
- package/dist/web-components-library/{p-327b7b79.js → p-65dd23d7.js} +1 -1
- package/dist/web-components-library/{p-b3093245.entry.js → p-69bde29c.entry.js} +1 -1
- package/dist/web-components-library/p-6b6453ba.entry.js +1 -0
- package/dist/web-components-library/{p-aa8b0c95.entry.js → p-8b2bf3b4.entry.js} +1 -1
- package/dist/web-components-library/p-9829f5bd.entry.js +16 -0
- package/dist/web-components-library/{p-432a2f5b.entry.js → p-a6a09ce6.entry.js} +1 -1
- package/{www/build/p-7f43e400.entry.js → dist/web-components-library/p-c1f20cec.entry.js} +1 -1
- package/dist/web-components-library/p-c97d133c.entry.js +1 -0
- package/dist/web-components-library/{p-c8bd65d9.entry.js → p-cb07de86.entry.js} +1 -1
- package/dist/web-components-library/{p-eb9fa72b.js → p-d7668580.js} +1 -1
- package/dist/web-components-library/p-dd17b462.entry.js +1 -0
- package/dist/web-components-library/{p-91447194.js → p-dd3e0b4e.js} +1 -1
- package/dist/web-components-library/p-f5b5f897.entry.js +1 -0
- package/dist/web-components-library/p-fef8f2e1.entry.js +1 -0
- package/dist/web-components-library/web-components-library.css +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +2 -2
- package/react/components.d.ts +0 -3
- package/react/components.js +2 -5
- package/react/components.js.map +1 -1
- package/www/build/index.esm.js +1 -1
- package/www/build/p-06d2f371.entry.js +1 -0
- package/www/build/p-09be4e46.entry.js +1 -0
- package/www/build/p-113762ff.entry.js +1 -0
- package/www/build/p-1976afea.entry.js +1 -0
- package/www/build/{p-7eb6d043.entry.js → p-1cbd8a5f.entry.js} +1 -1
- package/www/build/{p-c99acff4.entry.js → p-2d0ac109.entry.js} +1 -1
- package/www/build/p-2d600a28.entry.js +1 -0
- package/www/build/{p-dca0db1b.entry.js → p-2f013f10.entry.js} +1 -1
- package/www/build/p-36487afc.entry.js +1 -0
- package/www/build/{p-13ac8bd3.entry.js → p-37e8194f.entry.js} +1 -1
- package/www/build/p-386bdb7f.entry.js +1 -0
- package/www/build/p-3e61bad0.entry.js +1 -0
- package/www/build/{p-327b7b79.js → p-65dd23d7.js} +1 -1
- package/www/build/{p-b3093245.entry.js → p-69bde29c.entry.js} +1 -1
- package/www/build/p-6b6453ba.entry.js +1 -0
- package/www/build/{p-aa8b0c95.entry.js → p-8b2bf3b4.entry.js} +1 -1
- package/www/build/p-9829f5bd.entry.js +16 -0
- package/www/build/{p-432a2f5b.entry.js → p-a6a09ce6.entry.js} +1 -1
- package/www/build/p-ac088d9a.css +2 -0
- package/{dist/web-components-library/p-7f43e400.entry.js → www/build/p-c1f20cec.entry.js} +1 -1
- package/www/build/p-c97d133c.entry.js +1 -0
- package/www/build/{p-c8bd65d9.entry.js → p-cb07de86.entry.js} +1 -1
- package/www/build/{p-eb9fa72b.js → p-d7668580.js} +1 -1
- package/www/build/p-d8829c48.js +1 -0
- package/www/build/p-dd17b462.entry.js +1 -0
- package/www/build/{p-91447194.js → p-dd3e0b4e.js} +1 -1
- package/www/build/p-f5b5f897.entry.js +1 -0
- package/www/build/p-fef8f2e1.entry.js +1 -0
- package/www/build/web-components-library.css +1 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -59
- package/dist/cjs/z-app-header_14.cjs.entry.js +0 -2828
- package/dist/cjs/z-body.cjs.entry.js +0 -18
- package/dist/cjs/z-dragdrop-area.cjs.entry.js +0 -37
- package/dist/cjs/z-heading.cjs.entry.js +0 -18
- package/dist/cjs/z-typography.cjs.entry.js +0 -30
- package/dist/collection/deprecated/typography/z-body/index.js +0 -68
- package/dist/collection/deprecated/typography/z-heading/index.js +0 -68
- package/dist/collection/deprecated/typography/z-typography/index.js +0 -91
- package/dist/collection/deprecated/typography/z-typography/styles.css +0 -65
- package/dist/esm/z-app-header_14.entry.js +0 -2811
- package/dist/esm/z-body.entry.js +0 -14
- package/dist/esm/z-dragdrop-area.entry.js +0 -33
- package/dist/esm/z-heading.entry.js +0 -14
- package/dist/esm/z-typography.entry.js +0 -26
- package/dist/types/deprecated/typography/z-body/index.d.ts +0 -9
- package/dist/types/deprecated/typography/z-heading/index.d.ts +0 -9
- package/dist/types/deprecated/typography/z-typography/index.d.ts +0 -11
- package/dist/web-components-library/p-052c06ac.entry.js +0 -1
- package/dist/web-components-library/p-3ee4aa12.entry.js +0 -1
- package/dist/web-components-library/p-438f017e.entry.js +0 -1
- package/dist/web-components-library/p-4423b00c.entry.js +0 -1
- package/dist/web-components-library/p-466c3c0b.entry.js +0 -1
- package/dist/web-components-library/p-52b084fb.entry.js +0 -1
- package/dist/web-components-library/p-5ac6109d.entry.js +0 -1
- package/dist/web-components-library/p-625d603e.entry.js +0 -1
- package/dist/web-components-library/p-76c2c26d.entry.js +0 -1
- package/dist/web-components-library/p-b2420056.entry.js +0 -1
- package/dist/web-components-library/p-bbeb69ae.entry.js +0 -1
- package/dist/web-components-library/p-c1de287b.entry.js +0 -1
- package/dist/web-components-library/p-d147e995.entry.js +0 -1
- package/dist/web-components-library/p-e78ce8ec.entry.js +0 -1
- package/dist/web-components-library/p-f01f4e9b.entry.js +0 -16
- package/www/build/p-052c06ac.entry.js +0 -1
- package/www/build/p-39b528a6.js +0 -129
- package/www/build/p-3ee4aa12.entry.js +0 -1
- package/www/build/p-438f017e.entry.js +0 -1
- package/www/build/p-4423b00c.entry.js +0 -1
- package/www/build/p-466c3c0b.entry.js +0 -1
- package/www/build/p-52b084fb.entry.js +0 -1
- package/www/build/p-5a0a4f69.css +0 -1653
- package/www/build/p-5ac6109d.entry.js +0 -1
- package/www/build/p-625d603e.entry.js +0 -1
- package/www/build/p-76c2c26d.entry.js +0 -1
- package/www/build/p-b2420056.entry.js +0 -1
- package/www/build/p-bbeb69ae.entry.js +0 -1
- package/www/build/p-c1de287b.entry.js +0 -1
- package/www/build/p-d147e995.entry.js +0 -1
- package/www/build/p-e78ce8ec.entry.js +0 -1
- package/www/build/p-f01f4e9b.entry.js +0 -16
- /package/dist/collection/{components/navigation → deprecated}/z-link/index.js +0 -0
- /package/dist/collection/{components/navigation → deprecated}/z-link/styles.css +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e3299e0a.js');
|
|
6
|
-
|
|
7
|
-
const ZBody = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
/** Font weight variant */
|
|
11
|
-
this.variant = "regular";
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (index.h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, index.h("slot", null)));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.z_body = ZBody;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e3299e0a.js');
|
|
6
|
-
|
|
7
|
-
const stylesCss = ":host{margin-top:calc(var(--space-unit) * 3);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.dragdrop{position:relative;display:flex;height:228px;flex-direction:column;border-color:var(--color-surface04);background-color:var(--color-surface02);background-image:url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='2' ry='2' stroke='%23CACCCEFF' stroke-width='2' stroke-dasharray='15%2c 10%2c 14%2c 11' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e\");border-radius:2px;color:var(--color-text01)}:host>.dragdrop.dragover *{pointer-events:none}:host>.dragdrop .dragover-container{position:absolute;z-index:10;top:0;left:0;display:none;width:100%;height:100%;background-color:var(--color-primary03);box-shadow:var(--shadow-focus-primary)}:host>.dragdrop .dragover-container .dragover-message{padding:10px 28px;background-color:var(--color-link-primary);color:var(--color-text04)}:host>.dragdrop.dragover .dragover-container{display:flex;align-items:center;justify-content:center}";
|
|
8
|
-
|
|
9
|
-
const ZDragdropArea = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
this.fileDropped = index.createEvent(this, "fileDropped", 7);
|
|
13
|
-
}
|
|
14
|
-
fileDroppedHandler(files) {
|
|
15
|
-
this.fileDropped.emit(files);
|
|
16
|
-
}
|
|
17
|
-
renderOnDragOverMessage() {
|
|
18
|
-
return (index.h("div", { class: "dragover-container" }, index.h("div", { class: "dragover-message" }, index.h("span", { class: "body-2-sb" }, "Rilascia i file in questa area per allegarli."))));
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return (index.h("div", { tabIndex: 0, ref: (val) => (this.dragDropContainer = val), class: "dragdrop", onDragOver: (e) => {
|
|
22
|
-
e.preventDefault();
|
|
23
|
-
this.dragDropContainer.classList.add("dragover");
|
|
24
|
-
}, onDragLeave: () => {
|
|
25
|
-
this.dragDropContainer.classList.remove("dragover");
|
|
26
|
-
}, onDrop: (e) => {
|
|
27
|
-
e.preventDefault();
|
|
28
|
-
if (e.dataTransfer.files.length) {
|
|
29
|
-
this.dragDropContainer.classList.remove("dragover");
|
|
30
|
-
this.fileDroppedHandler(e.dataTransfer.files);
|
|
31
|
-
}
|
|
32
|
-
} }, this.renderOnDragOverMessage(), index.h("slot", null)));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
ZDragdropArea.style = stylesCss;
|
|
36
|
-
|
|
37
|
-
exports.z_dragdrop_area = ZDragdropArea;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e3299e0a.js');
|
|
6
|
-
|
|
7
|
-
const ZHeading = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
/** Font weight variant */
|
|
11
|
-
this.variant = "regular";
|
|
12
|
-
}
|
|
13
|
-
render() {
|
|
14
|
-
return (index.h("z-typography", { tabIndex: 0, component: this.component || `h${this.level}`, level: `h${this.level}`, variant: this.variant }, index.h("slot", null)));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
exports.z_heading = ZHeading;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-e3299e0a.js');
|
|
6
|
-
|
|
7
|
-
const stylesCss = ":host>*{margin:0;font-family:var(--dashboard-font)}:host(.regular)>*{font-weight:var(--font-rg)}:host(.semibold)>*{font-weight:600}:host(.light)>*{font-weight:300}:host(.h1)>*{font-size:32px;line-height:40px}:host(.h2)>*{font-size:28px;line-height:36px}:host(.h3)>*{font-size:24px;line-height:32px}:host(.h4)>*{font-size:20px;line-height:28px}:host(.b1)>*{font-size:20px;line-height:28px}:host(.b2)>*{font-size:18px;line-height:28px}:host(.b3)>*{font-size:16px;line-height:24px}:host(.b4)>*{font-size:14px;line-height:20px}:host(.b5)>*{font-size:12px;line-height:16px}:host(:focus-visible){outline:none}";
|
|
8
|
-
|
|
9
|
-
const ZTypography = class {
|
|
10
|
-
constructor(hostRef) {
|
|
11
|
-
index.registerInstance(this, hostRef);
|
|
12
|
-
/** Font weight variant */
|
|
13
|
-
this.variant = "regular";
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
const el = document.createElement(this.component || "span");
|
|
17
|
-
el.innerHTML = `<slot />`;
|
|
18
|
-
this.hostElement.shadowRoot.appendChild(el);
|
|
19
|
-
return (index.h(index.Host, { class: {
|
|
20
|
-
[this.level]: Boolean(this.level),
|
|
21
|
-
regular: this.variant === "regular",
|
|
22
|
-
semibold: this.variant === "semibold",
|
|
23
|
-
light: this.variant === "light",
|
|
24
|
-
} }));
|
|
25
|
-
}
|
|
26
|
-
get hostElement() { return index.getElement(this); }
|
|
27
|
-
};
|
|
28
|
-
ZTypography.style = stylesCss;
|
|
29
|
-
|
|
30
|
-
exports.z_typography = ZTypography;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
export class ZBody {
|
|
3
|
-
constructor() {
|
|
4
|
-
/** Font weight variant */
|
|
5
|
-
this.variant = "regular";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return (h("z-typography", { tabIndex: 0, component: this.component || "span", level: `b${this.level}`, variant: this.variant }, h("slot", null)));
|
|
9
|
-
}
|
|
10
|
-
static get is() { return "z-body"; }
|
|
11
|
-
static get encapsulation() { return "shadow"; }
|
|
12
|
-
static get properties() {
|
|
13
|
-
return {
|
|
14
|
-
"level": {
|
|
15
|
-
"type": "number",
|
|
16
|
-
"mutable": false,
|
|
17
|
-
"complexType": {
|
|
18
|
-
"original": "1 | 2 | 3 | 4 | 5",
|
|
19
|
-
"resolved": "1 | 2 | 3 | 4 | 5",
|
|
20
|
-
"references": {}
|
|
21
|
-
},
|
|
22
|
-
"required": false,
|
|
23
|
-
"optional": false,
|
|
24
|
-
"docs": {
|
|
25
|
-
"tags": [],
|
|
26
|
-
"text": "Typography level"
|
|
27
|
-
},
|
|
28
|
-
"attribute": "level",
|
|
29
|
-
"reflect": false
|
|
30
|
-
},
|
|
31
|
-
"variant": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"mutable": false,
|
|
34
|
-
"complexType": {
|
|
35
|
-
"original": "\"regular\" | \"semibold\"",
|
|
36
|
-
"resolved": "\"regular\" | \"semibold\"",
|
|
37
|
-
"references": {}
|
|
38
|
-
},
|
|
39
|
-
"required": false,
|
|
40
|
-
"optional": false,
|
|
41
|
-
"docs": {
|
|
42
|
-
"tags": [],
|
|
43
|
-
"text": "Font weight variant"
|
|
44
|
-
},
|
|
45
|
-
"attribute": "variant",
|
|
46
|
-
"reflect": false,
|
|
47
|
-
"defaultValue": "\"regular\""
|
|
48
|
-
},
|
|
49
|
-
"component": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"mutable": false,
|
|
52
|
-
"complexType": {
|
|
53
|
-
"original": "string",
|
|
54
|
-
"resolved": "string",
|
|
55
|
-
"references": {}
|
|
56
|
-
},
|
|
57
|
-
"required": false,
|
|
58
|
-
"optional": false,
|
|
59
|
-
"docs": {
|
|
60
|
-
"tags": [],
|
|
61
|
-
"text": "HTML tag to use to wrap slotted content"
|
|
62
|
-
},
|
|
63
|
-
"attribute": "component",
|
|
64
|
-
"reflect": false
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
export class ZHeading {
|
|
3
|
-
constructor() {
|
|
4
|
-
/** Font weight variant */
|
|
5
|
-
this.variant = "regular";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
return (h("z-typography", { tabIndex: 0, component: this.component || `h${this.level}`, level: `h${this.level}`, variant: this.variant }, h("slot", null)));
|
|
9
|
-
}
|
|
10
|
-
static get is() { return "z-heading"; }
|
|
11
|
-
static get encapsulation() { return "shadow"; }
|
|
12
|
-
static get properties() {
|
|
13
|
-
return {
|
|
14
|
-
"level": {
|
|
15
|
-
"type": "number",
|
|
16
|
-
"mutable": false,
|
|
17
|
-
"complexType": {
|
|
18
|
-
"original": "1 | 2 | 3 | 4",
|
|
19
|
-
"resolved": "1 | 2 | 3 | 4",
|
|
20
|
-
"references": {}
|
|
21
|
-
},
|
|
22
|
-
"required": false,
|
|
23
|
-
"optional": false,
|
|
24
|
-
"docs": {
|
|
25
|
-
"tags": [],
|
|
26
|
-
"text": "Typography level"
|
|
27
|
-
},
|
|
28
|
-
"attribute": "level",
|
|
29
|
-
"reflect": false
|
|
30
|
-
},
|
|
31
|
-
"variant": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"mutable": false,
|
|
34
|
-
"complexType": {
|
|
35
|
-
"original": "\"regular\" | \"semibold\" | \"light\"",
|
|
36
|
-
"resolved": "\"light\" | \"regular\" | \"semibold\"",
|
|
37
|
-
"references": {}
|
|
38
|
-
},
|
|
39
|
-
"required": false,
|
|
40
|
-
"optional": false,
|
|
41
|
-
"docs": {
|
|
42
|
-
"tags": [],
|
|
43
|
-
"text": "Font weight variant"
|
|
44
|
-
},
|
|
45
|
-
"attribute": "variant",
|
|
46
|
-
"reflect": false,
|
|
47
|
-
"defaultValue": "\"regular\""
|
|
48
|
-
},
|
|
49
|
-
"component": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"mutable": false,
|
|
52
|
-
"complexType": {
|
|
53
|
-
"original": "string",
|
|
54
|
-
"resolved": "string",
|
|
55
|
-
"references": {}
|
|
56
|
-
},
|
|
57
|
-
"required": false,
|
|
58
|
-
"optional": false,
|
|
59
|
-
"docs": {
|
|
60
|
-
"tags": [],
|
|
61
|
-
"text": "HTML tag to use to wrap slotted content"
|
|
62
|
-
},
|
|
63
|
-
"attribute": "component",
|
|
64
|
-
"reflect": false
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
export class ZTypography {
|
|
3
|
-
constructor() {
|
|
4
|
-
/** Font weight variant */
|
|
5
|
-
this.variant = "regular";
|
|
6
|
-
}
|
|
7
|
-
render() {
|
|
8
|
-
const el = document.createElement(this.component || "span");
|
|
9
|
-
el.innerHTML = `<slot />`;
|
|
10
|
-
this.hostElement.shadowRoot.appendChild(el);
|
|
11
|
-
return (h(Host, { class: {
|
|
12
|
-
[this.level]: Boolean(this.level),
|
|
13
|
-
regular: this.variant === "regular",
|
|
14
|
-
semibold: this.variant === "semibold",
|
|
15
|
-
light: this.variant === "light",
|
|
16
|
-
} }));
|
|
17
|
-
}
|
|
18
|
-
static get is() { return "z-typography"; }
|
|
19
|
-
static get encapsulation() { return "shadow"; }
|
|
20
|
-
static get originalStyleUrls() {
|
|
21
|
-
return {
|
|
22
|
-
"$": ["styles.css"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
static get styleUrls() {
|
|
26
|
-
return {
|
|
27
|
-
"$": ["styles.css"]
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
static get properties() {
|
|
31
|
-
return {
|
|
32
|
-
"level": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"mutable": false,
|
|
35
|
-
"complexType": {
|
|
36
|
-
"original": "ZTypographyLevels",
|
|
37
|
-
"resolved": "\"b1\" | \"b2\" | \"b3\" | \"b4\" | \"b5\" | \"h1\" | \"h2\" | \"h3\" | \"h4\"",
|
|
38
|
-
"references": {
|
|
39
|
-
"ZTypographyLevels": {
|
|
40
|
-
"location": "local"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"required": false,
|
|
45
|
-
"optional": false,
|
|
46
|
-
"docs": {
|
|
47
|
-
"tags": [],
|
|
48
|
-
"text": "Typography level"
|
|
49
|
-
},
|
|
50
|
-
"attribute": "level",
|
|
51
|
-
"reflect": false
|
|
52
|
-
},
|
|
53
|
-
"variant": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"mutable": false,
|
|
56
|
-
"complexType": {
|
|
57
|
-
"original": "\"regular\" | \"semibold\" | \"light\"",
|
|
58
|
-
"resolved": "\"light\" | \"regular\" | \"semibold\"",
|
|
59
|
-
"references": {}
|
|
60
|
-
},
|
|
61
|
-
"required": false,
|
|
62
|
-
"optional": false,
|
|
63
|
-
"docs": {
|
|
64
|
-
"tags": [],
|
|
65
|
-
"text": "Font weight variant"
|
|
66
|
-
},
|
|
67
|
-
"attribute": "variant",
|
|
68
|
-
"reflect": false,
|
|
69
|
-
"defaultValue": "\"regular\""
|
|
70
|
-
},
|
|
71
|
-
"component": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"mutable": false,
|
|
74
|
-
"complexType": {
|
|
75
|
-
"original": "string",
|
|
76
|
-
"resolved": "string",
|
|
77
|
-
"references": {}
|
|
78
|
-
},
|
|
79
|
-
"required": false,
|
|
80
|
-
"optional": false,
|
|
81
|
-
"docs": {
|
|
82
|
-
"tags": [],
|
|
83
|
-
"text": "HTML tag to use to wrap slotted content"
|
|
84
|
-
},
|
|
85
|
-
"attribute": "component",
|
|
86
|
-
"reflect": false
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
static get elementRef() { return "hostElement"; }
|
|
91
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
:host > * {
|
|
2
|
-
margin: 0;
|
|
3
|
-
font-family: var(--dashboard-font);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
:host(.regular) > * {
|
|
7
|
-
font-weight: var(--font-rg);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:host(.semibold) > * {
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host(.light) > * {
|
|
15
|
-
font-weight: 300;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host(.h1) > * {
|
|
19
|
-
font-size: 32px;
|
|
20
|
-
line-height: 40px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host(.h2) > * {
|
|
24
|
-
font-size: 28px;
|
|
25
|
-
line-height: 36px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
:host(.h3) > * {
|
|
29
|
-
font-size: 24px;
|
|
30
|
-
line-height: 32px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host(.h4) > * {
|
|
34
|
-
font-size: 20px;
|
|
35
|
-
line-height: 28px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:host(.b1) > * {
|
|
39
|
-
font-size: 20px;
|
|
40
|
-
line-height: 28px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:host(.b2) > * {
|
|
44
|
-
font-size: 18px;
|
|
45
|
-
line-height: 28px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host(.b3) > * {
|
|
49
|
-
font-size: 16px;
|
|
50
|
-
line-height: 24px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host(.b4) > * {
|
|
54
|
-
font-size: 14px;
|
|
55
|
-
line-height: 20px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host(.b5) > * {
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
line-height: 16px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
:host(:focus-visible) {
|
|
64
|
-
outline: none;
|
|
65
|
-
}
|