@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.
Files changed (181) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/index-e3299e0a.js +16 -20
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/web-components-library.cjs.js +1 -1
  5. package/dist/cjs/z-app-header_11.cjs.entry.js +1056 -0
  6. package/dist/cjs/z-book-card.cjs.entry.js +5 -1
  7. package/dist/cjs/z-breadcrumb.cjs.entry.js +1 -1
  8. package/dist/cjs/z-date-picker.cjs.entry.js +477 -0
  9. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +1016 -0
  10. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +4 -4
  11. package/dist/cjs/z-navigation-tab.cjs.entry.js +4 -4
  12. package/dist/cjs/z-navigation-tabs.cjs.entry.js +36 -44
  13. package/dist/cjs/z-panel-elem.cjs.entry.js +6 -2
  14. package/dist/cjs/z-select.cjs.entry.js +333 -0
  15. package/dist/cjs/z-skip-to-content.cjs.entry.js +10 -2
  16. package/dist/collection/collection-manifest.json +1 -4
  17. package/dist/collection/components/modal/z-modal/styles.css +2 -6
  18. package/dist/collection/components/navigation/tabs/navigation-tab.css +2 -1
  19. package/dist/collection/components/navigation/tabs/z-navigation-tab/index.js +19 -8
  20. package/dist/collection/components/navigation/tabs/z-navigation-tab-link/index.js +19 -8
  21. package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.js +35 -43
  22. package/dist/collection/components/navigation/tabs/z-navigation-tabs/index.stories.js +11 -0
  23. package/dist/collection/components/navigation/tabs/z-navigation-tabs/styles.css +2 -2
  24. package/dist/collection/components/panel/z-panel-elem/index.js +6 -2
  25. package/dist/collection/components/panel/z-panel-elem/styles.css +9 -2
  26. package/dist/collection/components/z-book-card/index.js +23 -1
  27. package/dist/collection/components/z-breadcrumb/index.js +1 -1
  28. package/dist/collection/components/z-skip-to-content/index.js +9 -1
  29. package/dist/collection/components/z-skip-to-content/styles.css +18 -17
  30. package/dist/esm/{index-8528dee0.js → index-1b2e3e53.js} +1 -1
  31. package/dist/esm/index-a2ca4b97.js +16 -20
  32. package/dist/esm/{index-5b83b0b1.js → index-d3dfe710.js} +1 -1
  33. package/dist/esm/index.js +1 -1
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/{utils-6c83dfcb.js → utils-4d2d99d9.js} +1 -1
  36. package/dist/esm/web-components-library.js +1 -1
  37. package/dist/esm/z-app-header_11.entry.js +1042 -0
  38. package/dist/esm/z-book-card.entry.js +6 -2
  39. package/dist/esm/z-breadcrumb.entry.js +2 -2
  40. package/dist/esm/z-chip.entry.js +1 -1
  41. package/dist/esm/z-combobox.entry.js +1 -1
  42. package/dist/esm/z-date-picker.entry.js +473 -0
  43. package/dist/esm/z-dragdrop-area_2.entry.js +1011 -0
  44. package/dist/esm/z-file-upload.entry.js +1 -1
  45. package/dist/esm/z-myz-card-info.entry.js +1 -1
  46. package/dist/esm/z-myz-list-item.entry.js +1 -1
  47. package/dist/esm/z-navigation-tab-link.entry.js +5 -5
  48. package/dist/esm/z-navigation-tab.entry.js +5 -5
  49. package/dist/esm/z-navigation-tabs.entry.js +36 -44
  50. package/dist/esm/z-panel-elem.entry.js +6 -2
  51. package/dist/esm/z-pocket_3.entry.js +1 -1
  52. package/dist/esm/z-select.entry.js +329 -0
  53. package/dist/esm/z-skip-to-content.entry.js +11 -3
  54. package/dist/esm/z-slideshow.entry.js +1 -1
  55. package/dist/esm/z-table-deprecated.entry.js +2 -2
  56. package/dist/esm/z-table-header.entry.js +2 -2
  57. package/dist/esm/z-table.entry.js +2 -2
  58. package/dist/esm/z-toggle-switch.entry.js +1 -1
  59. package/dist/esm/z-tr.entry.js +2 -2
  60. package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +11 -5
  61. package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +11 -7
  62. package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +4 -4
  63. package/dist/types/components/z-book-card/index.d.ts +4 -0
  64. package/dist/types/components.d.ts +28 -120
  65. package/dist/types/{components/navigation → deprecated}/z-link/index.d.ts +1 -1
  66. package/dist/web-components-library/index.esm.js +1 -1
  67. package/dist/web-components-library/p-06d2f371.entry.js +1 -0
  68. package/dist/web-components-library/p-09be4e46.entry.js +1 -0
  69. package/dist/web-components-library/p-113762ff.entry.js +1 -0
  70. package/dist/web-components-library/p-1976afea.entry.js +1 -0
  71. package/dist/web-components-library/{p-7eb6d043.entry.js → p-1cbd8a5f.entry.js} +1 -1
  72. package/dist/web-components-library/{p-c99acff4.entry.js → p-2d0ac109.entry.js} +1 -1
  73. package/dist/web-components-library/p-2d600a28.entry.js +1 -0
  74. package/dist/web-components-library/{p-dca0db1b.entry.js → p-2f013f10.entry.js} +1 -1
  75. package/dist/web-components-library/p-36487afc.entry.js +1 -0
  76. package/dist/web-components-library/{p-13ac8bd3.entry.js → p-37e8194f.entry.js} +1 -1
  77. package/dist/web-components-library/p-386bdb7f.entry.js +1 -0
  78. package/dist/web-components-library/p-3e61bad0.entry.js +1 -0
  79. package/dist/web-components-library/{p-327b7b79.js → p-65dd23d7.js} +1 -1
  80. package/dist/web-components-library/{p-b3093245.entry.js → p-69bde29c.entry.js} +1 -1
  81. package/dist/web-components-library/p-6b6453ba.entry.js +1 -0
  82. package/dist/web-components-library/{p-aa8b0c95.entry.js → p-8b2bf3b4.entry.js} +1 -1
  83. package/dist/web-components-library/p-9829f5bd.entry.js +16 -0
  84. package/dist/web-components-library/{p-432a2f5b.entry.js → p-a6a09ce6.entry.js} +1 -1
  85. package/{www/build/p-7f43e400.entry.js → dist/web-components-library/p-c1f20cec.entry.js} +1 -1
  86. package/dist/web-components-library/p-c97d133c.entry.js +1 -0
  87. package/dist/web-components-library/{p-c8bd65d9.entry.js → p-cb07de86.entry.js} +1 -1
  88. package/dist/web-components-library/{p-eb9fa72b.js → p-d7668580.js} +1 -1
  89. package/dist/web-components-library/p-dd17b462.entry.js +1 -0
  90. package/dist/web-components-library/{p-91447194.js → p-dd3e0b4e.js} +1 -1
  91. package/dist/web-components-library/p-f5b5f897.entry.js +1 -0
  92. package/dist/web-components-library/p-fef8f2e1.entry.js +1 -0
  93. package/dist/web-components-library/web-components-library.css +1 -1
  94. package/dist/web-components-library/web-components-library.esm.js +1 -1
  95. package/package.json +2 -2
  96. package/react/components.d.ts +0 -3
  97. package/react/components.js +2 -5
  98. package/react/components.js.map +1 -1
  99. package/www/build/index.esm.js +1 -1
  100. package/www/build/p-06d2f371.entry.js +1 -0
  101. package/www/build/p-09be4e46.entry.js +1 -0
  102. package/www/build/p-113762ff.entry.js +1 -0
  103. package/www/build/p-1976afea.entry.js +1 -0
  104. package/www/build/{p-7eb6d043.entry.js → p-1cbd8a5f.entry.js} +1 -1
  105. package/www/build/{p-c99acff4.entry.js → p-2d0ac109.entry.js} +1 -1
  106. package/www/build/p-2d600a28.entry.js +1 -0
  107. package/www/build/{p-dca0db1b.entry.js → p-2f013f10.entry.js} +1 -1
  108. package/www/build/p-36487afc.entry.js +1 -0
  109. package/www/build/{p-13ac8bd3.entry.js → p-37e8194f.entry.js} +1 -1
  110. package/www/build/p-386bdb7f.entry.js +1 -0
  111. package/www/build/p-3e61bad0.entry.js +1 -0
  112. package/www/build/{p-327b7b79.js → p-65dd23d7.js} +1 -1
  113. package/www/build/{p-b3093245.entry.js → p-69bde29c.entry.js} +1 -1
  114. package/www/build/p-6b6453ba.entry.js +1 -0
  115. package/www/build/{p-aa8b0c95.entry.js → p-8b2bf3b4.entry.js} +1 -1
  116. package/www/build/p-9829f5bd.entry.js +16 -0
  117. package/www/build/{p-432a2f5b.entry.js → p-a6a09ce6.entry.js} +1 -1
  118. package/www/build/p-ac088d9a.css +2 -0
  119. package/{dist/web-components-library/p-7f43e400.entry.js → www/build/p-c1f20cec.entry.js} +1 -1
  120. package/www/build/p-c97d133c.entry.js +1 -0
  121. package/www/build/{p-c8bd65d9.entry.js → p-cb07de86.entry.js} +1 -1
  122. package/www/build/{p-eb9fa72b.js → p-d7668580.js} +1 -1
  123. package/www/build/p-d8829c48.js +1 -0
  124. package/www/build/p-dd17b462.entry.js +1 -0
  125. package/www/build/{p-91447194.js → p-dd3e0b4e.js} +1 -1
  126. package/www/build/p-f5b5f897.entry.js +1 -0
  127. package/www/build/p-fef8f2e1.entry.js +1 -0
  128. package/www/build/web-components-library.css +1 -1
  129. package/www/build/web-components-library.esm.js +1 -1
  130. package/www/index.html +1 -59
  131. package/dist/cjs/z-app-header_14.cjs.entry.js +0 -2828
  132. package/dist/cjs/z-body.cjs.entry.js +0 -18
  133. package/dist/cjs/z-dragdrop-area.cjs.entry.js +0 -37
  134. package/dist/cjs/z-heading.cjs.entry.js +0 -18
  135. package/dist/cjs/z-typography.cjs.entry.js +0 -30
  136. package/dist/collection/deprecated/typography/z-body/index.js +0 -68
  137. package/dist/collection/deprecated/typography/z-heading/index.js +0 -68
  138. package/dist/collection/deprecated/typography/z-typography/index.js +0 -91
  139. package/dist/collection/deprecated/typography/z-typography/styles.css +0 -65
  140. package/dist/esm/z-app-header_14.entry.js +0 -2811
  141. package/dist/esm/z-body.entry.js +0 -14
  142. package/dist/esm/z-dragdrop-area.entry.js +0 -33
  143. package/dist/esm/z-heading.entry.js +0 -14
  144. package/dist/esm/z-typography.entry.js +0 -26
  145. package/dist/types/deprecated/typography/z-body/index.d.ts +0 -9
  146. package/dist/types/deprecated/typography/z-heading/index.d.ts +0 -9
  147. package/dist/types/deprecated/typography/z-typography/index.d.ts +0 -11
  148. package/dist/web-components-library/p-052c06ac.entry.js +0 -1
  149. package/dist/web-components-library/p-3ee4aa12.entry.js +0 -1
  150. package/dist/web-components-library/p-438f017e.entry.js +0 -1
  151. package/dist/web-components-library/p-4423b00c.entry.js +0 -1
  152. package/dist/web-components-library/p-466c3c0b.entry.js +0 -1
  153. package/dist/web-components-library/p-52b084fb.entry.js +0 -1
  154. package/dist/web-components-library/p-5ac6109d.entry.js +0 -1
  155. package/dist/web-components-library/p-625d603e.entry.js +0 -1
  156. package/dist/web-components-library/p-76c2c26d.entry.js +0 -1
  157. package/dist/web-components-library/p-b2420056.entry.js +0 -1
  158. package/dist/web-components-library/p-bbeb69ae.entry.js +0 -1
  159. package/dist/web-components-library/p-c1de287b.entry.js +0 -1
  160. package/dist/web-components-library/p-d147e995.entry.js +0 -1
  161. package/dist/web-components-library/p-e78ce8ec.entry.js +0 -1
  162. package/dist/web-components-library/p-f01f4e9b.entry.js +0 -16
  163. package/www/build/p-052c06ac.entry.js +0 -1
  164. package/www/build/p-39b528a6.js +0 -129
  165. package/www/build/p-3ee4aa12.entry.js +0 -1
  166. package/www/build/p-438f017e.entry.js +0 -1
  167. package/www/build/p-4423b00c.entry.js +0 -1
  168. package/www/build/p-466c3c0b.entry.js +0 -1
  169. package/www/build/p-52b084fb.entry.js +0 -1
  170. package/www/build/p-5a0a4f69.css +0 -1653
  171. package/www/build/p-5ac6109d.entry.js +0 -1
  172. package/www/build/p-625d603e.entry.js +0 -1
  173. package/www/build/p-76c2c26d.entry.js +0 -1
  174. package/www/build/p-b2420056.entry.js +0 -1
  175. package/www/build/p-bbeb69ae.entry.js +0 -1
  176. package/www/build/p-c1de287b.entry.js +0 -1
  177. package/www/build/p-d147e995.entry.js +0 -1
  178. package/www/build/p-e78ce8ec.entry.js +0 -1
  179. package/www/build/p-f01f4e9b.entry.js +0 -16
  180. /package/dist/collection/{components/navigation → deprecated}/z-link/index.js +0 -0
  181. /package/dist/collection/{components/navigation → deprecated}/z-link/styles.css +0 -0
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a2ca4b97.js';
2
2
  import { w as ZFileUploadType, p as Device, D as DividerSize } from './index-03c8b0f0.js';
3
- import { e as getDevice } from './utils-6c83dfcb.js';
3
+ import { g as getDevice } from './utils-4d2d99d9.js';
4
4
  import './breakpoints-9b81eb1b.js';
5
5
 
6
6
  const stylesCss = ":host{color:var(--color-text01);font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>.container{display:flex;flex-direction:column}:host .modal-wrapper{display:flex;align-items:center;justify-content:center}:host .modal-wrapper>.files-wrapper{display:flex;flex-direction:column;margin:calc(var(--space-unit) * 4);gap:var(--space-unit)}:host .text-container{display:flex;flex-direction:column;margin:auto}:host .text-container .body-1{text-align:center}:host .text-container .upload-link{color:var(--color-link-primary);cursor:pointer}:host .text-container .upload-link-text{margin-bottom:var(--space-unit)}input#file-elem{display:none}#title{display:inline-block;margin-bottom:var(--space-unit)}:host>.container>z-button{display:inline-block;margin-top:calc(var(--space-unit) * 3)}:host>.container>.files-container.hidden{display:none}:host>.container>.files-container>.heading-4-sb{display:inline-block;margin:calc(var(--space-unit) * 3) 0}:host>.container>.files-container>.files-wrapper{display:flex;flex-wrap:wrap;column-gap:calc(var(--space-unit) * 2);row-gap:calc(var(--space-unit) * 2)}:host>.container>.files-container>z-divider{margin-top:calc(var(--space-unit) * 3);margin-bottom:0}@media only screen and (min-width: 768px){:host>.container>z-button{align-self:flex-start}}";
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
2
2
  import { P as PopoverPosition } from './index-03c8b0f0.js';
3
- import { a as handleKeyboardSubmit } from './utils-6c83dfcb.js';
3
+ import { a as handleKeyboardSubmit } from './utils-4d2d99d9.js';
4
4
  import './breakpoints-9b81eb1b.js';
5
5
 
6
6
  const stylesCss = ":host{width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{position:relative;display:grid;width:calc(100% + calc(var(--space-unit) * 2));height:402px;box-sizing:border-box;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);border:var(--border-size-small) solid var(--color-primary01);margin-left:calc(-1 * var(--space-unit));background:var(--color-surface01);border-radius:0;box-shadow:0 2px 4px 0 rgb(66 69 72 / 35%)}:host>div>z-icon{position:absolute;top:var(--space-unit);right:var(--space-unit);cursor:pointer;fill:var(--color-primary01)}:host>div>div.cta-wrapper{display:flex;flex-flow:column nowrap;align-self:end;justify-content:space-between}:host>div>div.content-wrapper{position:relative;overflow:hidden;align-self:stretch}:host>div>div.content-wrapper>section{box-sizing:border-box;padding:var(--space-unit) 0;border-bottom:var(--border-size-small) solid var(--color-surface04);color:var(--color-surface05);font-size:14px;line-height:20px}:host>div>div.content-wrapper>section:last-child{border-bottom:none}:host>div>div.content-wrapper>section.info-wrapper{position:relative;overflow:hidden;box-sizing:border-box}:host>div>div.content-wrapper>section.info-wrapper.hidden::after{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg, rgb(255 0 0 / 0%), rgb(255 0 0 / 0%) 60%, white);content:\"\";pointer-events:none}:host>div>div.content-wrapper>section>span.license-heading{display:flex;justify-content:space-between}:host>div>div.content-wrapper>section>span.license-heading>span.expired{color:var(--color-secondary02);font-size:12px;font-weight:600}:host>div>div.content-wrapper>section>span.license-heading>span.expiring{color:var(--color-warning01);font-size:12px;font-weight:600}:host>div>div.content-wrapper>z-popover{position:absolute;top:0;left:calc(var(--space-unit) * 4)}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
2
- import { a as handleKeyboardSubmit } from './utils-6c83dfcb.js';
2
+ import { a as handleKeyboardSubmit } from './utils-4d2d99d9.js';
3
3
  import './index-03c8b0f0.js';
4
4
  import './breakpoints-9b81eb1b.js';
5
5
 
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-a2ca4b97.js';
2
2
  import { N as NavigationTabsOrientation, a as NavigationTabsSize } from './index-03c8b0f0.js';
3
3
  import { I as ICONS } from './icons-4b57811d.js';
4
4
 
5
- const navigationTabCss = "z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{box-shadow:inset var(--shadow-focus-primary)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:\"\"}z-navigation-tab[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"horizontal\"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation=\"horizontal\"] z-icon,z-navigation-tab-link[orientation=\"horizontal\"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size=\"small\"]>*,z-navigation-tab-link[size=\"small\"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]>*,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[size=\"small\"][orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]:hover>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size=\"small\"]:not([orientation=\"vertical\"]) z-icon,z-navigation-tab-link[size=\"small\"]:not([orientation=\"vertical\"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation=\"vertical\"]>*,z-navigation-tab-link[orientation=\"vertical\"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation=\"vertical\"]:hover:not([disabled])>*::after,z-navigation-tab[orientation=\"vertical\"][selected]>*::after,z-navigation-tab-link[orientation=\"vertical\"]:hover>*::after,z-navigation-tab-link[orientation=\"vertical\"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}";
5
+ const navigationTabCss = "z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 4px 3px var(--color-highlight)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:\"\"}z-navigation-tab[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"horizontal\"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation=\"horizontal\"] z-icon,z-navigation-tab-link[orientation=\"horizontal\"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size=\"small\"]>*,z-navigation-tab-link[size=\"small\"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]>*,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[size=\"small\"][orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]:hover>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size=\"small\"]:not([orientation=\"vertical\"]) z-icon,z-navigation-tab-link[size=\"small\"]:not([orientation=\"vertical\"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation=\"vertical\"]>*,z-navigation-tab-link[orientation=\"vertical\"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation=\"vertical\"]:hover:not([disabled])>*::after,z-navigation-tab[orientation=\"vertical\"][selected]>*::after,z-navigation-tab-link[orientation=\"vertical\"]:hover>*::after,z-navigation-tab-link[orientation=\"vertical\"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}";
6
6
 
7
7
  const ZNavigationTabLink = class {
8
8
  constructor(hostRef) {
@@ -29,9 +29,9 @@ const ZNavigationTabLink = class {
29
29
  * Scroll into view to center the tab.
30
30
  */
31
31
  scrollToTab({ target: button }) {
32
- const scrollOptions = this.orientation === NavigationTabsOrientation.HORIZONTAL
32
+ const scrollOptions = (this.orientation === NavigationTabsOrientation.HORIZONTAL
33
33
  ? { block: "nearest", inline: "center" }
34
- : { block: "center", inline: "nearest" };
34
+ : { block: "center", inline: "nearest" });
35
35
  button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
36
36
  }
37
37
  onClick() {
@@ -56,7 +56,7 @@ const ZNavigationTabLink = class {
56
56
  return h("z-icon", { name: icon });
57
57
  }
58
58
  render() {
59
- return (h("a", { role: "tab", id: this.tabId, href: !this.disabled && this.href, title: this.htmlTitle, target: this.target, onFocus: this.scrollToTab.bind(this), "aria-selected": this.selected ? "true" : "false", "aria-controls": this.ariaControls, tabindex: this.selected ? "0" : "-1" }, this.icon && this.renderIcon(), this.orientation === "horizontal" && this.label));
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)));
60
60
  }
61
61
  static get watchers() { return {
62
62
  "selected": ["onSelected"]
@@ -1,8 +1,8 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-a2ca4b97.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-a2ca4b97.js';
2
2
  import { N as NavigationTabsOrientation, a as NavigationTabsSize } from './index-03c8b0f0.js';
3
3
  import { I as ICONS } from './icons-4b57811d.js';
4
4
 
5
- const navigationTabCss = "z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{box-shadow:inset var(--shadow-focus-primary)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:\"\"}z-navigation-tab[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"horizontal\"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation=\"horizontal\"] z-icon,z-navigation-tab-link[orientation=\"horizontal\"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size=\"small\"]>*,z-navigation-tab-link[size=\"small\"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]>*,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[size=\"small\"][orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]:hover>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size=\"small\"]:not([orientation=\"vertical\"]) z-icon,z-navigation-tab-link[size=\"small\"]:not([orientation=\"vertical\"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation=\"vertical\"]>*,z-navigation-tab-link[orientation=\"vertical\"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation=\"vertical\"]:hover:not([disabled])>*::after,z-navigation-tab[orientation=\"vertical\"][selected]>*::after,z-navigation-tab-link[orientation=\"vertical\"]:hover>*::after,z-navigation-tab-link[orientation=\"vertical\"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}";
5
+ const navigationTabCss = "z-navigation-tab>button,z-navigation-tab-link>a{position:relative;z-index:0;display:inline-flex;width:auto;align-items:center;justify-content:center;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);border:none;margin:0;background-color:unset;border-radius:var(--border-no-radius);color:var(--color-primary01);cursor:pointer;fill:currentcolor;font-family:var(--font-family-sans);font-size:inherit;letter-spacing:inherit;line-height:inherit;outline:none;text-align:center;white-space:nowrap}z-navigation-tab-link>a{text-decoration:none}z-navigation-tab *,z-navigation-tab-link *,z-navigation-tab *::before,z-navigation-tab *::after,z-navigation-tab-link *::before,z-navigation-tab-link *::after{box-sizing:border-box}z-navigation-tab>*:focus:focus-visible,z-navigation-tab-link>*:focus:focus-visible{z-index:1;box-shadow:inset 0 0 4px 3px var(--color-highlight)}z-navigation-tab:not([disabled]):hover>*,z-navigation-tab[selected]>*,z-navigation-tab-link:not([disabled]):hover>*,z-navigation-tab-link[selected]>*{color:var(--color-hover-secondary);fill:currentcolor}z-navigation-tab:not([disabled]):hover>*::after,z-navigation-tab[selected]>*::after,z-navigation-tab-link:not([disabled]):hover>*::after,z-navigation-tab-link[selected]>*::after{position:absolute;background-color:var(--color-hover-secondary);content:\"\"}z-navigation-tab[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab-link[orientation=\"horizontal\"][selected]>*::after{bottom:0;left:0;width:100%;height:var(--border-size-large)}z-navigation-tab z-icon,z-navigation-tab-link z-icon{--z-icon-width:calc(var(--space-unit) * 2);--z-icon-height:calc(var(--space-unit) * 2);display:flex;margin:0}z-navigation-tab[orientation=\"horizontal\"] z-icon,z-navigation-tab-link[orientation=\"horizontal\"] z-icon{margin-right:var(--space-unit)}z-navigation-tab:not([disabled]):hover>*{background-color:var(--color-background)}z-navigation-tab[disabled]>*{color:var(--gray500);cursor:not-allowed;fill:currentcolor;pointer-events:all}z-navigation-tab[size=\"small\"]>*,z-navigation-tab-link[size=\"small\"]>*{font-size:var(--font-size-2);letter-spacing:0.16px;line-height:1.4}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]>*,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]>*{padding:var(--space-unit) calc(var(--space-unit) * 2)}z-navigation-tab[size=\"small\"][orientation=\"horizontal\"]:not([disabled]):hover>*::after,z-navigation-tab[size=\"small\"][orientation=\"horizontal\"][selected]>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"]:hover>*::after,z-navigation-tab-link[size=\"small\"][orientation=\"horizontal\"][selected]>*::after{height:var(--border-size-medium)}z-navigation-tab[size=\"small\"]:not([orientation=\"vertical\"]) z-icon,z-navigation-tab-link[size=\"small\"]:not([orientation=\"vertical\"]) z-icon{--z-icon-width:14px;--z-icon-height:14px}z-navigation-tab[orientation=\"vertical\"]>*,z-navigation-tab-link[orientation=\"vertical\"]>*{padding:calc(var(--space-unit) * 3) calc(var(--space-unit) * 2)}z-navigation-tab[orientation=\"vertical\"]:hover:not([disabled])>*::after,z-navigation-tab[orientation=\"vertical\"][selected]>*::after,z-navigation-tab-link[orientation=\"vertical\"]:hover>*::after,z-navigation-tab-link[orientation=\"vertical\"][selected]>*::after{top:0;right:0;width:var(--border-size-large);height:100%}";
6
6
 
7
7
  const ZNavigationTab = class {
8
8
  constructor(hostRef) {
@@ -29,9 +29,9 @@ const ZNavigationTab = class {
29
29
  * Scroll into view to center the tab.
30
30
  */
31
31
  scrollToTab({ target: button }) {
32
- const scrollOptions = this.orientation === NavigationTabsOrientation.HORIZONTAL
32
+ const scrollOptions = (this.orientation === NavigationTabsOrientation.HORIZONTAL
33
33
  ? { block: "nearest", inline: "center" }
34
- : { block: "center", inline: "nearest" };
34
+ : { block: "center", inline: "nearest" });
35
35
  button.scrollIntoView(Object.assign({ behavior: "smooth" }, scrollOptions));
36
36
  }
37
37
  onClick() {
@@ -58,7 +58,7 @@ const ZNavigationTab = class {
58
58
  return h("z-icon", { name: icon });
59
59
  }
60
60
  render() {
61
- return (h("button", { role: "tab", id: this.tabId, disabled: this.disabled, title: this.htmlTitle, onFocus: this.scrollToTab.bind(this), "aria-selected": this.selected ? "true" : "false", "aria-controls": this.ariaControls, tabindex: this.selected ? "0" : "-1" }, this.icon && this.renderIcon(), this.orientation === NavigationTabsOrientation.HORIZONTAL && this.label));
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)));
62
62
  }
63
63
  static get watchers() { return {
64
64
  "selected": ["onSelected"]
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-a2ca4b97.js';
2
2
  import { N as NavigationTabsOrientation, a as NavigationTabsSize, g as KeyboardCode, b as NavigationTabsKeyboardEvents } from './index-03c8b0f0.js';
3
3
 
4
- const stylesCss = ":host{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host *,::slotted(*){box-sizing:border-box}::-webkit-scrollbar{display:none}.navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background:var(--color-white);border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px rgb(66 69 72 / 40%);cursor:pointer;fill:var(--color-primary01);outline:none}.navigation-button:focus:focus-visible{box-shadow:inset var(--shadow-focus-primary);fill:var(--color-primary01)}.navigation-button:disabled{display:none}nav{display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}:host([orientation=\"horizontal\"]) nav{width:100%}:host([orientation=\"horizontal\"]) .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}:host([orientation=\"horizontal\"]) .navigation-button:first-child{left:0}:host([orientation=\"horizontal\"]) .navigation-button:last-child{right:0}:host([orientation=\"vertical\"]){width:fit-content;flex-direction:column}:host([orientation=\"vertical\"]) nav{height:100%;flex-direction:column;align-items:stretch}:host([orientation=\"vertical\"]) .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}:host([orientation=\"vertical\"]) .navigation-button:first-child{top:0}:host([orientation=\"vertical\"]) .navigation-button:last-child{bottom:0}:host([size=\"small\"][orientation=\"vertical\"]) .navigation-button{height:calc(var(--space-unit) * 4)}";
4
+ const stylesCss = ":host{position:relative;z-index:0;display:flex;overflow:hidden;flex-direction:row;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host *,::slotted(*){box-sizing:border-box}::-webkit-scrollbar{display:none}.navigation-button{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;padding:0;border:none;margin:0;background:var(--color-white);border-radius:var(--border-no-radius);box-shadow:0 0 4px 1px (--shadow-color-base);cursor:pointer;fill:var(--color-primary01);outline:none}.navigation-button:focus:focus-visible{box-shadow:inset 0 0 4px 3px var(--color-highlight);fill:var(--color-primary01)}.navigation-button:disabled{display:none}nav{display:flex;overflow:auto;align-items:center;justify-content:flex-start;scroll-behavior:smooth;scrollbar-width:none}:host([orientation=\"horizontal\"]) nav{width:100%}:host([orientation=\"horizontal\"]) .navigation-button{top:0;width:calc(var(--space-unit) * 4);height:100%}:host([orientation=\"horizontal\"]) .navigation-button:first-child{left:0}:host([orientation=\"horizontal\"]) .navigation-button:last-child{right:0}:host([orientation=\"vertical\"]){width:fit-content;flex-direction:column}:host([orientation=\"vertical\"]) nav{height:100%;flex-direction:column;align-items:stretch}:host([orientation=\"vertical\"]) .navigation-button{left:0;width:100%;height:calc(var(--space-unit) * 4)}:host([orientation=\"vertical\"]) .navigation-button:first-child{top:0}:host([orientation=\"vertical\"]) .navigation-button:last-child{bottom:0}:host([size=\"small\"][orientation=\"vertical\"]) .navigation-button{height:calc(var(--space-unit) * 4)}";
5
5
 
6
6
  const ZNavigationTabs = class {
7
7
  constructor(hostRef) {
@@ -27,22 +27,23 @@ const ZNavigationTabs = class {
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
- const children = Array.from(this.host.children);
35
- children.forEach((child) => {
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
- const children = Array.from(this.host.children);
44
- children.forEach((child) => {
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 @@ const ZNavigationTabs = class {
73
74
  * @param {CustomEvent} event `selected` event triggered by a child tab
74
75
  */
75
76
  onTabSelected(event) {
76
- const tab = event.target;
77
- const children = Array.from(this.host.children);
78
- children.forEach((child, i) => {
79
- if (child !== tab) {
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 @@ const ZNavigationTabs = class {
103
103
  });
104
104
  }
105
105
  /**
106
- * move focus though tabs using keyboad arrows.
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 children = Array.from(this.host.children);
110
+ const tabs = this.tabs;
110
111
  if (e.key === KeyboardCode.TAB) {
111
- children.forEach((child, i) => {
112
- var _a, _b;
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
- children[this.tabFocus].querySelector('[role="tab"]').setAttribute("tabindex", "-1");
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 >= children.length) {
130
+ if (this.tabFocus >= tabs.length) {
130
131
  this.tabFocus = 0;
131
132
  }
132
133
  // Move backward
@@ -135,50 +136,41 @@ const ZNavigationTabs = class {
135
136
  (e.key === NavigationTabsKeyboardEvents.UP && this.orientation == NavigationTabsOrientation.VERTICAL)) {
136
137
  this.tabFocus--;
137
138
  if (this.tabFocus < 0) {
138
- this.tabFocus = children.length - 1;
139
+ this.tabFocus = tabs.length - 1;
139
140
  }
140
141
  }
141
- //ignore disabled tabs
142
- if (children[this.tabFocus].querySelector('[role="tab"]').hasAttribute("disabled")) {
142
+ // ignore disabled tabs
143
+ if (tabs[this.tabFocus].disabled) {
143
144
  this.navigateThroughTabs(e);
144
145
  }
145
146
  else {
146
- children[this.tabFocus].querySelector('[role="tab"]').setAttribute("tabindex", "0");
147
- children[this.tabFocus].querySelector('[role="tab"]').focus();
147
+ tabs[this.tabFocus].children[0].tabIndex = 0;
148
+ tabs[this.tabFocus].children[0].focus();
148
149
  }
149
150
  }
150
151
  /**
151
- * move focus though tabs using keyboad arrows.
152
+ * Check if a keyboard event was triggered by an arrow key.
152
153
  */
153
154
  isArrowNavigation(e) {
154
- return !!Object.keys(NavigationTabsKeyboardEvents).find((key) => NavigationTabsKeyboardEvents[key] === e.key);
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.setTabindex();
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
  }
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-a2ca4b97.js';
2
2
 
3
- const stylesCss = ":host{width:inherit;font-family:var(--dashboard-font);font-weight:var(--font-rg)}.panel-elem-container{width:100%}.panel-elem-icon{margin:auto calc(var(--space-unit) * 3)}.panel-elem-icon img{display:block;max-width:96px;height:32px;margin:auto;object-fit:contain}.panel-elem-link{margin:var(--space-unit) auto 0;border-radius:var(--border-no-radius);font-size:12px;text-align:center}.panel-elem-link>z-link{font-weight:var(--font-sb)}.panel-elem-desc{padding-top:var(--space-unit);margin:0;letter-spacing:0.16px;text-align:center}";
3
+ const stylesCss = ".sc-z-panel-elem-h{width:inherit;font-family:var(--dashboard-font);font-weight:var(--font-rg)}.panel-elem-container.sc-z-panel-elem{width:100%}.panel-elem-icon.sc-z-panel-elem{margin:auto calc(var(--space-unit) * 3)}.panel-elem-icon.sc-z-panel-elem img.sc-z-panel-elem{display:block;max-width:96px;height:32px;margin:auto;object-fit:contain}.panel-elem-link.sc-z-panel-elem{display:flex;align-items:center;justify-content:center;margin:var(--space-unit) auto 0;border-radius:var(--border-no-radius);font-size:12px}.panel-elem-link.sc-z-panel-elem>a.z-link.sc-z-panel-elem{padding:calc(var(--space-unit) * 0.5) 0;font-weight:var(--font-sb)}.panel-elem-desc.sc-z-panel-elem{padding-top:var(--space-unit);margin:0;letter-spacing:0.16px;text-align:center}a.sc-z-panel-elem>z-icon.sc-z-panel-elem{margin-right:var(--space-unit)}";
4
4
 
5
5
  const ZPanelElem = class {
6
6
  constructor(hostRef) {
@@ -18,7 +18,11 @@ const ZPanelElem = class {
18
18
  }
19
19
  render() {
20
20
  const elemId = this.elemid ? this.elemid : "";
21
- 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("z-link", { href: this.url, icon: this.linkicon, isdisabled: this.isdisabled, target: this.target, htmlid: elemId + "link_id" }, this.linklabel)), this.descrSlotName && (h("div", { class: "panel-elem-desc body-long-01" }, h("slot", { name: this.descrSlotName })))));
21
+ 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: {
22
+ "z-link": true,
23
+ "z-link-disabled": this.isdisabled,
24
+ "z-link-icon": true,
25
+ }, 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 })))));
22
26
  }
23
27
  };
24
28
  ZPanelElem.style = stylesCss;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a2ca4b97.js';
2
2
  import { q as PocketStatus } from './index-03c8b0f0.js';
3
- import { a as handleKeyboardSubmit } from './utils-6c83dfcb.js';
3
+ import { a as handleKeyboardSubmit } from './utils-4d2d99d9.js';
4
4
  import { h as hammer } from './hammer-c3266b17.js';
5
5
  import './breakpoints-9b81eb1b.js';
6
6
  import './_commonjsHelpers-9943807e.js';