@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
|
@@ -7,7 +7,7 @@ const utils = require('./utils-4ac02425.js');
|
|
|
7
7
|
const index$1 = require('./index-e8ce94a1.js');
|
|
8
8
|
require('./breakpoints-ebe1a437.js');
|
|
9
9
|
|
|
10
|
-
const stylesCss = ".sc-z-skip-to-content-h{position:absolute;left:-100%;height:60px;box-sizing:border-box;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);background-color:#24f4ff;font-family:var(--font-family-sans);font-weight:var(--font-rg)}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h
|
|
10
|
+
const stylesCss = ".sc-z-skip-to-content-h{position:absolute;left:-100%;height:60px;box-sizing:border-box;padding:calc(var(--space-unit) * 1.25) calc(var(--space-unit) * 3);background-color:#24f4ff;font-family:var(--font-family-sans);font-weight:var(--font-rg);text-align:center}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{display:inline-flex;height:100%;align-items:center}.skip-to-content-visible.sc-z-skip-to-content-h,.sc-z-skip-to-content-h:focus{position:static;display:block}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-invisible.sc-z-skip-to-content{overflow:hidden;width:0;height:0}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-visible.sc-z-skip-to-content{width:initial;height:initial}.dark.sc-z-skip-to-content-h{background-color:var(--bg-grey-800);color:var(--color-white)}.light.sc-z-skip-to-content-h{border:2px solid var(--text-grey-800);background-color:var(--bg-white);color:var(--text-grey-800)}@media (min-width: 768px){.sc-z-skip-to-content-h{text-align:start}}@media (min-width: 1152px){.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{padding:0 calc(var(--space-unit) * 3);border-right:1px solid var(--bg-grey-800)}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content>a.z-link.link-invisible.sc-z-skip-to-content{overflow:initial;width:initial;height:initial}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:first-child{padding-left:0}.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child,.dark.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child,.light.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content:last-child{padding-right:0;border-right:none}.dark.sc-z-skip-to-content-h>.link-container.sc-z-skip-to-content{border-right:1px solid var(--bg-white)}}";
|
|
11
11
|
|
|
12
12
|
const ZSkipToContent = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -56,7 +56,15 @@ const ZSkipToContent = class {
|
|
|
56
56
|
"skip-to-content-visible": this.visible,
|
|
57
57
|
} }, this.links.map((link, i) => {
|
|
58
58
|
const id = `skip-to-content-${i}`;
|
|
59
|
-
return (index.h("
|
|
59
|
+
return (index.h("div", { class: "link-container" }, index.h("a", { id: id, class: {
|
|
60
|
+
"body-1-sb": true,
|
|
61
|
+
"z-link": true,
|
|
62
|
+
"z-link-underline": true,
|
|
63
|
+
"z-link-white": this.variant === index$1.ThemeVariant.DARK,
|
|
64
|
+
"z-link-black": this.variant !== index$1.ThemeVariant.DARK,
|
|
65
|
+
"link-visible": id == this.visibleLink,
|
|
66
|
+
"link-invisible": id != this.visibleLink,
|
|
67
|
+
}, "aria-label": link.ariaLabel || link.label, href: link.href, onFocus: () => (this.visibleLink = id), onClick: () => this.handleLinkClick(), onKeyUp: (e) => utils.handleKeyboardSubmit(e, this.handleLinkClick.bind(this)) }, link.label)));
|
|
60
68
|
})));
|
|
61
69
|
}
|
|
62
70
|
get hostElement() { return index.getElement(this); }
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"./deprecated/typography/z-typography/index.js",
|
|
4
3
|
"./components/buttons/z-button/index.js",
|
|
5
4
|
"./components/buttons/z-button-sort/index.js",
|
|
6
5
|
"./components/buttons/z-chip/index.js",
|
|
@@ -30,7 +29,6 @@
|
|
|
30
29
|
"./components/navigation/tabs/z-navigation-tab-link/index.js",
|
|
31
30
|
"./components/navigation/tabs/z-navigation-tabs/index.js",
|
|
32
31
|
"./components/navigation/z-app-header/index.js",
|
|
33
|
-
"./components/navigation/z-link/index.js",
|
|
34
32
|
"./components/navigation/z-menu/index.js",
|
|
35
33
|
"./components/navigation/z-menu-section/index.js",
|
|
36
34
|
"./components/notification/z-info-box/index.js",
|
|
@@ -65,8 +63,7 @@
|
|
|
65
63
|
"./components/z-skip-to-content/index.js",
|
|
66
64
|
"./components/z-tag/index.js",
|
|
67
65
|
"./components/z-visually-hidden/index.js",
|
|
68
|
-
"./deprecated/
|
|
69
|
-
"./deprecated/typography/z-heading/index.js",
|
|
66
|
+
"./deprecated/z-link/index.js",
|
|
70
67
|
"./deprecated/z-table-deprecated/z-table-body/index.js",
|
|
71
68
|
"./deprecated/z-table-deprecated/z-table-cell/index.js",
|
|
72
69
|
"./deprecated/z-table-deprecated/z-table-empty-box/index.js",
|
|
@@ -184,7 +184,8 @@
|
|
|
184
184
|
overflow: initial;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
.modal-container-scroll-outside > header
|
|
187
|
+
.modal-container-scroll-outside > header,
|
|
188
|
+
.modal-container-scroll-inside > header {
|
|
188
189
|
border-top-left-radius: var(--border-radius);
|
|
189
190
|
border-top-right-radius: var(--border-radius);
|
|
190
191
|
}
|
|
@@ -209,11 +210,6 @@
|
|
|
209
210
|
border-bottom-right-radius: var(--border-radius);
|
|
210
211
|
}
|
|
211
212
|
|
|
212
|
-
.modal-container-scroll-inside > header {
|
|
213
|
-
border-top-left-radius: var(--border-radius);
|
|
214
|
-
border-top-right-radius: var(--border-radius);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
213
|
.modal-dialog::-webkit-scrollbar {
|
|
218
214
|
display: none;
|
|
219
215
|
}
|
|
@@ -38,7 +38,8 @@ z-navigation-tab-link *::after {
|
|
|
38
38
|
|
|
39
39
|
z-navigation-tab > *:focus:focus-visible,
|
|
40
40
|
z-navigation-tab-link > *:focus:focus-visible {
|
|
41
|
-
|
|
41
|
+
z-index: 1;
|
|
42
|
+
box-shadow: inset 0 0 4px 3px var(--color-highlight);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
z-navigation-tab:not([disabled]):hover > *,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { NavigationTabsOrientation, NavigationTabsSize } from "../../../../beans";
|
|
3
3
|
import { ICONS } from "../../../icons/icons";
|
|
4
4
|
/**
|
|
5
5
|
* Single tab component to use inside `z-navigation-tabs`. It renders a button.
|
|
6
|
+
* This component uses the `tab` role:
|
|
7
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role
|
|
6
8
|
*/
|
|
7
9
|
export class ZNavigationTab {
|
|
8
10
|
constructor() {
|
|
@@ -27,9 +29,9 @@ export class ZNavigationTab {
|
|
|
27
29
|
* Scroll into view to center the tab.
|
|
28
30
|
*/
|
|
29
31
|
scrollToTab({ target: button }) {
|
|
30
|
-
const scrollOptions = this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
32
|
+
const scrollOptions = (this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
31
33
|
? { block: "nearest", inline: "center" }
|
|
32
|
-
: { block: "center", inline: "nearest" };
|
|
34
|
+
: { block: "center", inline: "nearest" });
|
|
33
35
|
button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
|
|
34
36
|
}
|
|
35
37
|
onClick() {
|
|
@@ -56,7 +58,7 @@ export class ZNavigationTab {
|
|
|
56
58
|
return h("z-icon", { name: icon });
|
|
57
59
|
}
|
|
58
60
|
render() {
|
|
59
|
-
return (h(
|
|
61
|
+
return (h(Host, { role: "tab", id: this.tabId, "aria-selected": this.selected ? "true" : "false", "aria-controls": this.ariaControls }, h("button", { tabIndex: this.selected ? 0 : -1, onFocus: this.scrollToTab.bind(this), disabled: this.disabled, title: this.htmlTitle }, this.icon && this.renderIcon(), this.orientation === NavigationTabsOrientation.HORIZONTAL && this.label)));
|
|
60
62
|
}
|
|
61
63
|
static get is() { return "z-navigation-tab"; }
|
|
62
64
|
static get originalStyleUrls() {
|
|
@@ -82,8 +84,11 @@ export class ZNavigationTab {
|
|
|
82
84
|
"required": false,
|
|
83
85
|
"optional": true,
|
|
84
86
|
"docs": {
|
|
85
|
-
"tags": [
|
|
86
|
-
|
|
87
|
+
"tags": [{
|
|
88
|
+
"name": "link",
|
|
89
|
+
"text": "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls"
|
|
90
|
+
}],
|
|
91
|
+
"text": "`aria-controls` attribute of the tab.\nIdentifies the element (with `role=tabpanel`) whose contents or presence are controlled by this tab.\nThe value must be the `id` of the element it controls."
|
|
87
92
|
},
|
|
88
93
|
"attribute": "aria-controls",
|
|
89
94
|
"reflect": false
|
|
@@ -99,8 +104,14 @@ export class ZNavigationTab {
|
|
|
99
104
|
"required": false,
|
|
100
105
|
"optional": true,
|
|
101
106
|
"docs": {
|
|
102
|
-
"tags": [
|
|
103
|
-
|
|
107
|
+
"tags": [{
|
|
108
|
+
"name": "link",
|
|
109
|
+
"text": "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby"
|
|
110
|
+
}, {
|
|
111
|
+
"name": "deprecated",
|
|
112
|
+
"text": "Use native `id` attribute instead"
|
|
113
|
+
}],
|
|
114
|
+
"text": "`id` attribute of the tab.\nSet this id to the `aria-labelledby` attribute of the controlled `tabpanel` element."
|
|
104
115
|
},
|
|
105
116
|
"attribute": "tab-id",
|
|
106
117
|
"reflect": false
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { NavigationTabsOrientation, NavigationTabsSize } from "../../../../beans";
|
|
3
3
|
import { ICONS } from "../../../icons/icons";
|
|
4
4
|
/**
|
|
5
5
|
* Single tab component to use inside `z-navigation-tabs`. It renders an anchor element.
|
|
6
|
+
* This component uses the `tab` role:
|
|
7
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/tab_role
|
|
6
8
|
*/
|
|
7
9
|
export class ZNavigationTabLink {
|
|
8
10
|
constructor() {
|
|
@@ -27,9 +29,9 @@ export class ZNavigationTabLink {
|
|
|
27
29
|
* Scroll into view to center the tab.
|
|
28
30
|
*/
|
|
29
31
|
scrollToTab({ target: button }) {
|
|
30
|
-
const scrollOptions = this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
32
|
+
const scrollOptions = (this.orientation === NavigationTabsOrientation.HORIZONTAL
|
|
31
33
|
? { block: "nearest", inline: "center" }
|
|
32
|
-
: { block: "center", inline: "nearest" };
|
|
34
|
+
: { block: "center", inline: "nearest" });
|
|
33
35
|
button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
|
|
34
36
|
}
|
|
35
37
|
onClick() {
|
|
@@ -54,7 +56,7 @@ export class ZNavigationTabLink {
|
|
|
54
56
|
return h("z-icon", { name: icon });
|
|
55
57
|
}
|
|
56
58
|
render() {
|
|
57
|
-
return (h(
|
|
59
|
+
return (h(Host, { role: "tab", id: this.tabId, "aria-selected": this.selected ? "true" : "false", "aria-controls": this.ariaControls }, h("a", { tabIndex: this.selected ? 0 : -1, onFocus: this.scrollToTab.bind(this), href: !this.disabled && this.href, title: this.htmlTitle, target: this.target }, this.icon && this.renderIcon(), this.orientation === "horizontal" && this.label)));
|
|
58
60
|
}
|
|
59
61
|
static get is() { return "z-navigation-tab-link"; }
|
|
60
62
|
static get originalStyleUrls() {
|
|
@@ -80,8 +82,11 @@ export class ZNavigationTabLink {
|
|
|
80
82
|
"required": false,
|
|
81
83
|
"optional": true,
|
|
82
84
|
"docs": {
|
|
83
|
-
"tags": [
|
|
84
|
-
|
|
85
|
+
"tags": [{
|
|
86
|
+
"name": "link",
|
|
87
|
+
"text": "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls"
|
|
88
|
+
}],
|
|
89
|
+
"text": "`aria-controls` attribute of the tab.\nIdentifies the element (with `role=tabpanel`) whose contents or presence are controlled by this tab.\nThe value must be the `id` of the element it controls."
|
|
85
90
|
},
|
|
86
91
|
"attribute": "aria-controls",
|
|
87
92
|
"reflect": false
|
|
@@ -97,8 +102,14 @@ export class ZNavigationTabLink {
|
|
|
97
102
|
"required": false,
|
|
98
103
|
"optional": true,
|
|
99
104
|
"docs": {
|
|
100
|
-
"tags": [
|
|
101
|
-
|
|
105
|
+
"tags": [{
|
|
106
|
+
"name": "link",
|
|
107
|
+
"text": "https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledby"
|
|
108
|
+
}, {
|
|
109
|
+
"name": "deprecated",
|
|
110
|
+
"text": "Use native `id` attribute instead"
|
|
111
|
+
}],
|
|
112
|
+
"text": "`id` attribute of the tab.\nSet this id to the `aria-labelledby` attribute of the controlled `tabpanel` element."
|
|
102
113
|
},
|
|
103
114
|
"attribute": "tab-id",
|
|
104
115
|
"reflect": false
|
|
@@ -27,22 +27,23 @@ export class ZNavigationTabs {
|
|
|
27
27
|
get dimension() {
|
|
28
28
|
return this.orientation == NavigationTabsOrientation.HORIZONTAL ? "Width" : "Height";
|
|
29
29
|
}
|
|
30
|
+
get tabs() {
|
|
31
|
+
return Array.from(this.host.children);
|
|
32
|
+
}
|
|
30
33
|
/**
|
|
31
34
|
* Set the `size` prop to all `z-navigation-tab` children.
|
|
32
35
|
*/
|
|
33
36
|
setChildrenSize() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
child.setAttribute("size", this.size);
|
|
37
|
+
this.tabs.forEach((tab) => {
|
|
38
|
+
tab.size = this.size;
|
|
37
39
|
});
|
|
38
40
|
}
|
|
39
41
|
/**
|
|
40
42
|
* Set the `orientation` prop to all `z-navigation-tab` children.
|
|
41
43
|
*/
|
|
42
44
|
setChildrenOrientation() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
child.setAttribute("orientation", this.orientation);
|
|
45
|
+
this.tabs.forEach((tab) => {
|
|
46
|
+
tab.orientation = this.orientation;
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
@@ -73,11 +74,10 @@ export class ZNavigationTabs {
|
|
|
73
74
|
* @param {CustomEvent} event `selected` event triggered by a child tab
|
|
74
75
|
*/
|
|
75
76
|
onTabSelected(event) {
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
child.removeAttribute("selected");
|
|
77
|
+
const selectedTab = event.target;
|
|
78
|
+
this.tabs.forEach((tab, i) => {
|
|
79
|
+
if (tab !== selectedTab) {
|
|
80
|
+
tab.selected = undefined;
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
83
|
this.tabFocus = i;
|
|
@@ -103,30 +103,31 @@ export class ZNavigationTabs {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* Move focus through tabs using keyboard arrows.
|
|
107
|
+
* When `TAB` is pressed, focus the currently selected tab, if any.
|
|
107
108
|
*/
|
|
108
109
|
navigateThroughTabs(e) {
|
|
109
|
-
const
|
|
110
|
+
const tabs = this.tabs;
|
|
110
111
|
if (e.key === KeyboardCode.TAB) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
if (child.hasAttribute("selected") &&
|
|
114
|
-
((_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.offsetParent) === null || _b === void 0 ? void 0 : _b.nodeName) === "Z-NAVIGATION-TABS") {
|
|
112
|
+
tabs.forEach((tab, i) => {
|
|
113
|
+
if (tab.selected && tabs.some((tab) => tab === e.target)) {
|
|
115
114
|
this.tabFocus = i;
|
|
116
115
|
}
|
|
117
116
|
});
|
|
117
|
+
tabs[this.tabFocus].children[0].tabIndex = 0;
|
|
118
|
+
tabs[this.tabFocus].children[0].focus();
|
|
118
119
|
return;
|
|
119
120
|
}
|
|
120
121
|
if (!this.isArrowNavigation(e)) {
|
|
121
122
|
return true;
|
|
122
123
|
}
|
|
123
124
|
e.preventDefault();
|
|
124
|
-
|
|
125
|
+
tabs[this.tabFocus].children[0].tabIndex = -1;
|
|
125
126
|
// Move forward
|
|
126
127
|
if ((e.key === NavigationTabsKeyboardEvents.RIGHT && this.orientation == NavigationTabsOrientation.HORIZONTAL) ||
|
|
127
128
|
(e.key === NavigationTabsKeyboardEvents.DOWN && this.orientation == NavigationTabsOrientation.VERTICAL)) {
|
|
128
129
|
this.tabFocus++;
|
|
129
|
-
if (this.tabFocus >=
|
|
130
|
+
if (this.tabFocus >= tabs.length) {
|
|
130
131
|
this.tabFocus = 0;
|
|
131
132
|
}
|
|
132
133
|
// Move backward
|
|
@@ -135,50 +136,41 @@ export class ZNavigationTabs {
|
|
|
135
136
|
(e.key === NavigationTabsKeyboardEvents.UP && this.orientation == NavigationTabsOrientation.VERTICAL)) {
|
|
136
137
|
this.tabFocus--;
|
|
137
138
|
if (this.tabFocus < 0) {
|
|
138
|
-
this.tabFocus =
|
|
139
|
+
this.tabFocus = tabs.length - 1;
|
|
139
140
|
}
|
|
140
141
|
}
|
|
141
|
-
//ignore disabled tabs
|
|
142
|
-
if (
|
|
142
|
+
// ignore disabled tabs
|
|
143
|
+
if (tabs[this.tabFocus].disabled) {
|
|
143
144
|
this.navigateThroughTabs(e);
|
|
144
145
|
}
|
|
145
146
|
else {
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
tabs[this.tabFocus].children[0].tabIndex = 0;
|
|
148
|
+
tabs[this.tabFocus].children[0].focus();
|
|
148
149
|
}
|
|
149
150
|
}
|
|
150
151
|
/**
|
|
151
|
-
*
|
|
152
|
+
* Check if a keyboard event was triggered by an arrow key.
|
|
152
153
|
*/
|
|
153
154
|
isArrowNavigation(e) {
|
|
154
|
-
return
|
|
155
|
-
}
|
|
156
|
-
setTabindex() {
|
|
157
|
-
var _a;
|
|
158
|
-
const children = Array.from(this.host.children);
|
|
159
|
-
if (children.length > 0) {
|
|
160
|
-
children.forEach((child, i) => {
|
|
161
|
-
var _a;
|
|
162
|
-
child.hasAttribute("aria-selected") && (this.tabFocus = i);
|
|
163
|
-
(_a = child.querySelector('[role="tab"]')) === null || _a === void 0 ? void 0 : _a.setAttribute("tabindex", "-1");
|
|
164
|
-
});
|
|
165
|
-
(_a = children[this.tabFocus].querySelector('[role="tab"]')) === null || _a === void 0 ? void 0 : _a.setAttribute("tabindex", "0");
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
componentWillLoad() {
|
|
169
|
-
this.tabFocus = 0;
|
|
155
|
+
return Object.values(NavigationTabsKeyboardEvents).includes(e.key);
|
|
170
156
|
}
|
|
171
157
|
componentDidRender() {
|
|
172
158
|
this.setChildrenSize();
|
|
173
159
|
this.setChildrenOrientation();
|
|
174
160
|
this.checkScrollVisible();
|
|
175
|
-
this.
|
|
161
|
+
if (!this.tabFocus) {
|
|
162
|
+
this.tabFocus = 0;
|
|
163
|
+
const tabChild = this.tabs[this.tabFocus].children[0];
|
|
164
|
+
if (tabChild) {
|
|
165
|
+
tabChild.tabIndex = 0;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
176
168
|
}
|
|
177
169
|
render() {
|
|
178
170
|
return (h(Host, { class: {
|
|
179
171
|
"interactive-2": this.size === NavigationTabsSize.SMALL,
|
|
180
172
|
"interactive-1": this.size !== NavigationTabsSize.SMALL,
|
|
181
|
-
}, scrollable: this.canNavigate }, this.canNavigate && (h("button", { class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabindex: "-1", disabled: !this.canNavigatePrev }, h("z-icon", { name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 }))), h("nav", { role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.tabsNav = el !== null && el !== void 0 ? el : this.tabsNav), onScroll: this.checkScrollEnabled.bind(this) }, h("slot", null)), this.canNavigate && (h("button", { class: "navigation-button", onClick: this.navigateForward.bind(this), onKeyDown: (e) => {
|
|
173
|
+
}, scrollable: this.canNavigate }, this.canNavigate && (h("button", { class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabindex: "-1", disabled: !this.canNavigatePrev }, h("z-icon", { name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 }))), h("nav", { role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.tabsNav = el !== null && el !== void 0 ? el : this.tabsNav), onScroll: this.checkScrollEnabled.bind(this), "aria-orientation": this.orientation }, h("slot", null)), this.canNavigate && (h("button", { class: "navigation-button", onClick: this.navigateForward.bind(this), onKeyDown: (e) => {
|
|
182
174
|
this.navigateThroughTabs(e);
|
|
183
175
|
}, tabindex: "-1", disabled: !this.canNavigateNext }, h("z-icon", { name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 })))));
|
|
184
176
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
2
|
+
document.querySelector("z-navigation-tabs")?.addEventListener("selected", (event) => {
|
|
3
|
+
const controlledPanel = event.target.closest("[aria-controls]")?.ariaControls;
|
|
4
|
+
const panels = Array.from(document.querySelectorAll("[role=tabpanel]"));
|
|
5
|
+
panels.forEach((panel) => (panel.hidden = true));
|
|
6
|
+
const panelToActivate = panels.find((panel) => panel.id === controlledPanel);
|
|
7
|
+
if (panelToActivate) {
|
|
8
|
+
panelToActivate.hidden = false;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
margin: 0;
|
|
30
30
|
background: var(--color-white);
|
|
31
31
|
border-radius: var(--border-no-radius);
|
|
32
|
-
box-shadow: 0 0 4px 1px
|
|
32
|
+
box-shadow: 0 0 4px 1px (--shadow-color-base);
|
|
33
33
|
cursor: pointer;
|
|
34
34
|
fill: var(--color-primary01);
|
|
35
35
|
outline: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.navigation-button:focus:focus-visible {
|
|
39
|
-
box-shadow: inset var(--
|
|
39
|
+
box-shadow: inset 0 0 4px 3px var(--color-highlight);
|
|
40
40
|
fill: var(--color-primary01);
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -17,10 +17,14 @@ export class ZPanelElem {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const elemId = this.elemid ? this.elemid : "";
|
|
20
|
-
return (h("div", { class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { "aria-hidden": "true", class: "panel-elem-icon" }, this.renderIcon())), h("div", { class: "panel-elem-link" }, h("
|
|
20
|
+
return (h("div", { class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { "aria-hidden": "true", class: "panel-elem-icon" }, this.renderIcon())), h("div", { class: "panel-elem-link" }, h("a", { class: {
|
|
21
|
+
"z-link": true,
|
|
22
|
+
"z-link-disabled": this.isdisabled,
|
|
23
|
+
"z-link-icon": true,
|
|
24
|
+
}, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { class: "z-link-icon-left", height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { class: "panel-elem-desc" }, h("slot", { name: this.descrSlotName })))));
|
|
21
25
|
}
|
|
22
26
|
static get is() { return "z-panel-elem"; }
|
|
23
|
-
static get encapsulation() { return "
|
|
27
|
+
static get encapsulation() { return "scoped"; }
|
|
24
28
|
static get originalStyleUrls() {
|
|
25
29
|
return {
|
|
26
30
|
"$": ["styles.css"]
|
|
@@ -21,13 +21,16 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.panel-elem-link {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
24
27
|
margin: var(--space-unit) auto 0;
|
|
25
28
|
border-radius: var(--border-no-radius);
|
|
26
29
|
font-size: 12px;
|
|
27
|
-
text-align: center;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
.panel-elem-link > z-link {
|
|
32
|
+
.panel-elem-link > a.z-link {
|
|
33
|
+
padding: calc(var(--space-unit) * 0.5) 0;
|
|
31
34
|
font-weight: var(--font-sb);
|
|
32
35
|
}
|
|
33
36
|
|
|
@@ -37,3 +40,7 @@
|
|
|
37
40
|
letter-spacing: 0.16px;
|
|
38
41
|
text-align: center;
|
|
39
42
|
}
|
|
43
|
+
|
|
44
|
+
a > z-icon {
|
|
45
|
+
margin-right: var(--space-unit);
|
|
46
|
+
}
|
|
@@ -14,6 +14,10 @@ import { randomId } from "../../utils/utils";
|
|
|
14
14
|
*/
|
|
15
15
|
export class ZBookCard {
|
|
16
16
|
constructor() {
|
|
17
|
+
/**
|
|
18
|
+
* [optional] ISBN label
|
|
19
|
+
*/
|
|
20
|
+
this.isbnLabel = "";
|
|
17
21
|
this.isMobile = false;
|
|
18
22
|
this.hasResources = false;
|
|
19
23
|
this.showResources = false;
|
|
@@ -83,7 +87,7 @@ export class ZBookCard {
|
|
|
83
87
|
return this.authors ? (h("div", { class: "authors", "aria-description": "Autori" }, this.authors)) : null;
|
|
84
88
|
}
|
|
85
89
|
renderIsbn() {
|
|
86
|
-
return this.isbn ? (h("div", { class: "isbn" }, h("span", { class: "code", "aria-description":
|
|
90
|
+
return this.isbn ? (h("div", { class: "isbn" }, h("span", { class: "code", "aria-description": `ISBN ${this.isbnLabel}` }, this.isbn), this.isbnLabel ? h("span", { class: "label" }, " ", this.isbnLabel) : null)) : null;
|
|
87
91
|
}
|
|
88
92
|
renderShowResources() {
|
|
89
93
|
return (h("button", { class: "show-resources", "aria-label": `Risorse del libro ${this.operaTitle}`, "aria-expanded": this.showResources.toString(), "aria-controls": `resources-${this.id}`, onClick: () => this.toggleResources() }, this.showResources ? "Chiudi" : "Vedi tutto", h("z-icon", { name: this.showResources ? "chevron-up" : "chevron-down" })));
|
|
@@ -227,6 +231,24 @@ export class ZBookCard {
|
|
|
227
231
|
"attribute": "isbn",
|
|
228
232
|
"reflect": false
|
|
229
233
|
},
|
|
234
|
+
"isbnLabel": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"mutable": false,
|
|
237
|
+
"complexType": {
|
|
238
|
+
"original": "string",
|
|
239
|
+
"resolved": "string",
|
|
240
|
+
"references": {}
|
|
241
|
+
},
|
|
242
|
+
"required": false,
|
|
243
|
+
"optional": false,
|
|
244
|
+
"docs": {
|
|
245
|
+
"tags": [],
|
|
246
|
+
"text": "[optional] ISBN label"
|
|
247
|
+
},
|
|
248
|
+
"attribute": "isbn-label",
|
|
249
|
+
"reflect": false,
|
|
250
|
+
"defaultValue": "\"\""
|
|
251
|
+
},
|
|
230
252
|
"ribbon": {
|
|
231
253
|
"type": "string",
|
|
232
254
|
"mutable": false,
|
|
@@ -153,7 +153,7 @@ export class ZBreadcrumb {
|
|
|
153
153
|
if (item.hasTooltip) {
|
|
154
154
|
this.popoverEllipsisOpen = false;
|
|
155
155
|
}
|
|
156
|
-
}, innerHTML: mobile ? `<z-icon fill="color-link-primary" name="chevron-left"></z-icon
|
|
156
|
+
}, innerHTML: mobile ? `<z-icon fill="color-link-primary" name="chevron-left"></z-icon>${item.text}` : item.text })));
|
|
157
157
|
}
|
|
158
158
|
renderBreadcrumb() {
|
|
159
159
|
return (h("nav", { ref: (val) => (this.wrapElement = val), "aria-label": "Breadcrumb", class: {
|
|
@@ -50,7 +50,15 @@ export class ZSkipToContent {
|
|
|
50
50
|
"skip-to-content-visible": this.visible,
|
|
51
51
|
} }, this.links.map((link, i) => {
|
|
52
52
|
const id = `skip-to-content-${i}`;
|
|
53
|
-
return (h("
|
|
53
|
+
return (h("div", { class: "link-container" }, h("a", { id: id, class: {
|
|
54
|
+
"body-1-sb": true,
|
|
55
|
+
"z-link": true,
|
|
56
|
+
"z-link-underline": true,
|
|
57
|
+
"z-link-white": this.variant === ThemeVariant.DARK,
|
|
58
|
+
"z-link-black": this.variant !== ThemeVariant.DARK,
|
|
59
|
+
"link-visible": id == this.visibleLink,
|
|
60
|
+
"link-invisible": id != this.visibleLink,
|
|
61
|
+
}, "aria-label": link.ariaLabel || link.label, href: link.href, onFocus: () => (this.visibleLink = id), onClick: () => this.handleLinkClick(), onKeyUp: (e) => handleKeyboardSubmit(e, this.handleLinkClick.bind(this)) }, link.label)));
|
|
54
62
|
})));
|
|
55
63
|
}
|
|
56
64
|
static get is() { return "z-skip-to-content"; }
|
|
@@ -7,6 +7,13 @@
|
|
|
7
7
|
background-color: #24f4ff;
|
|
8
8
|
font-family: var(--font-family-sans);
|
|
9
9
|
font-weight: var(--font-rg);
|
|
10
|
+
text-align: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
:host > .link-container {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
height: 100%;
|
|
16
|
+
align-items: center;
|
|
10
17
|
}
|
|
11
18
|
|
|
12
19
|
:host.skip-to-content-visible,
|
|
@@ -15,18 +22,13 @@
|
|
|
15
22
|
display: block;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
|
-
:host > z-link {
|
|
19
|
-
display: block;
|
|
20
|
-
text-align: center;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host > z-link.link-invisible {
|
|
25
|
+
:host > .link-container > a.z-link.link-invisible {
|
|
24
26
|
overflow: hidden;
|
|
25
27
|
width: 0;
|
|
26
28
|
height: 0;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
:host > z-link.link-visible {
|
|
31
|
+
:host > .link-container > a.z-link.link-visible {
|
|
30
32
|
width: initial;
|
|
31
33
|
height: initial;
|
|
32
34
|
}
|
|
@@ -44,37 +46,36 @@
|
|
|
44
46
|
|
|
45
47
|
/* Tablet breakpoint */
|
|
46
48
|
@media (min-width: 768px) {
|
|
47
|
-
:host
|
|
48
|
-
text-align:
|
|
49
|
+
:host {
|
|
50
|
+
text-align: start;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
/* Desktop breakpoint */
|
|
53
55
|
@media (min-width: 1152px) {
|
|
54
|
-
:host >
|
|
55
|
-
display: inline-block;
|
|
56
|
+
:host > .link-container {
|
|
56
57
|
padding: 0 calc(var(--space-unit) * 3);
|
|
57
58
|
border-right: 1px solid var(--bg-grey-800);
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
:host > z-link.link-invisible {
|
|
61
|
+
:host > .link-container > a.z-link.link-invisible {
|
|
61
62
|
overflow: initial;
|
|
62
63
|
width: initial;
|
|
63
64
|
height: initial;
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
:host >
|
|
67
|
+
:host > .link-container:first-child {
|
|
67
68
|
padding-left: 0;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
:host >
|
|
71
|
-
:host.dark >
|
|
72
|
-
:host.light >
|
|
71
|
+
:host > .link-container:last-child,
|
|
72
|
+
:host.dark > .link-container:last-child,
|
|
73
|
+
:host.light > .link-container:last-child {
|
|
73
74
|
padding-right: 0;
|
|
74
75
|
border-right: none;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
:host.dark >
|
|
78
|
+
:host.dark > .link-container {
|
|
78
79
|
border-right: 1px solid var(--bg-white);
|
|
79
80
|
}
|
|
80
81
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
|
|
2
|
-
import { r as randomId } from './utils-
|
|
2
|
+
import { r as randomId } from './utils-4d2d99d9.js';
|
|
3
3
|
import './index-49dfba34.js';
|
|
4
4
|
import './index-cfd94e05.js';
|
|
5
5
|
|