@zanichelli/albe-web-components 18.6.2 → 18.6.3-RC

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 (182) hide show
  1. package/dist/cjs/{index-c48948bf.js → index-0d3de93e.js} +2 -2
  2. package/dist/cjs/{index-c48948bf.js.map → index-0d3de93e.js.map} +1 -1
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-93961cb6.js → utils-3dc316f8.js} +56 -1
  6. package/dist/cjs/utils-3dc316f8.js.map +1 -0
  7. package/dist/cjs/web-components-library.cjs.js +1 -1
  8. package/dist/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  9. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -1
  10. package/dist/cjs/z-app-header_12.cjs.entry.js +1 -1
  11. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
  12. package/dist/cjs/z-breadcrumb.cjs.entry.js +1 -1
  13. package/dist/cjs/z-card.cjs.entry.js +1 -1
  14. package/dist/cjs/z-card.cjs.entry.js.map +1 -1
  15. package/dist/cjs/z-combobox.cjs.entry.js +1 -1
  16. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  17. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  18. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  19. package/dist/cjs/z-popover.cjs.entry.js +232 -264
  20. package/dist/cjs/z-popover.cjs.entry.js.map +1 -1
  21. package/dist/cjs/z-select.cjs.entry.js +4 -6
  22. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  23. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  24. package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
  25. package/dist/cjs/z-table.cjs.entry.js +2 -2
  26. package/dist/cjs/z-toggle-switch.cjs.entry.js +1 -1
  27. package/dist/cjs/z-tr.cjs.entry.js +2 -2
  28. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  29. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -1
  30. package/dist/collection/components/z-card/styles.css +4 -0
  31. package/dist/collection/components/z-popover/index.js +236 -268
  32. package/dist/collection/components/z-popover/index.js.map +1 -1
  33. package/dist/collection/components/z-popover/index.stories.js +92 -45
  34. package/dist/collection/components/z-popover/index.stories.js.map +1 -1
  35. package/dist/collection/components/z-popover/styles.css +4 -14
  36. package/dist/collection/components/z-select/index.js +4 -6
  37. package/dist/collection/components/z-select/index.js.map +1 -1
  38. package/dist/collection/utils/utils.js +53 -0
  39. package/dist/collection/utils/utils.js.map +1 -1
  40. package/dist/components/index23.js +234 -266
  41. package/dist/components/index23.js.map +1 -1
  42. package/dist/components/index24.js +1 -1
  43. package/dist/components/utils.js +55 -2
  44. package/dist/components/utils.js.map +1 -1
  45. package/dist/components/z-anchor-navigation.js +1 -1
  46. package/dist/components/z-anchor-navigation.js.map +1 -1
  47. package/dist/components/z-card.js +1 -1
  48. package/dist/components/z-card.js.map +1 -1
  49. package/dist/components/z-select.js +4 -6
  50. package/dist/components/z-select.js.map +1 -1
  51. package/dist/esm/{index-10473b87.js → index-328b69a7.js} +2 -2
  52. package/dist/esm/{index-10473b87.js.map → index-328b69a7.js.map} +1 -1
  53. package/dist/esm/index.js +1 -1
  54. package/dist/esm/loader.js +1 -1
  55. package/dist/esm/{utils-c8abef2f.js → utils-6e2be2b6.js} +55 -2
  56. package/dist/esm/utils-6e2be2b6.js.map +1 -0
  57. package/dist/esm/web-components-library.js +1 -1
  58. package/dist/esm/z-anchor-navigation.entry.js +1 -1
  59. package/dist/esm/z-anchor-navigation.entry.js.map +1 -1
  60. package/dist/esm/z-app-header_12.entry.js +1 -1
  61. package/dist/esm/z-book-card-deprecated.entry.js +1 -1
  62. package/dist/esm/z-breadcrumb.entry.js +1 -1
  63. package/dist/esm/z-card.entry.js +1 -1
  64. package/dist/esm/z-card.entry.js.map +1 -1
  65. package/dist/esm/z-combobox.entry.js +1 -1
  66. package/dist/esm/z-menu.entry.js +1 -1
  67. package/dist/esm/z-myz-card-info.entry.js +1 -1
  68. package/dist/esm/z-myz-list-item.entry.js +1 -1
  69. package/dist/esm/z-popover.entry.js +233 -265
  70. package/dist/esm/z-popover.entry.js.map +1 -1
  71. package/dist/esm/z-select.entry.js +4 -6
  72. package/dist/esm/z-select.entry.js.map +1 -1
  73. package/dist/esm/z-skip-to-content.entry.js +1 -1
  74. package/dist/esm/z-slideshow.entry.js +1 -1
  75. package/dist/esm/z-table.entry.js +2 -2
  76. package/dist/esm/z-toggle-switch.entry.js +1 -1
  77. package/dist/esm/z-tr.entry.js +2 -2
  78. package/dist/types/components/z-popover/index.d.ts +47 -45
  79. package/dist/types/components/z-popover/index.stories.d.ts +18 -7
  80. package/dist/types/components.d.ts +13 -17
  81. package/dist/types/utils/utils.d.ts +17 -0
  82. package/dist/web-components-library/index.esm.js +1 -1
  83. package/dist/web-components-library/{p-8b93bc6d.entry.js → p-01302e57.entry.js} +2 -2
  84. package/dist/web-components-library/{p-14f0bdf4.entry.js → p-1ad8810a.entry.js} +2 -2
  85. package/{www/build/p-c2ba8a6c.entry.js → dist/web-components-library/p-2e0923bd.entry.js} +2 -2
  86. package/dist/web-components-library/p-3284e37b.entry.js +2 -0
  87. package/dist/web-components-library/{p-61f76cab.js → p-43bc482a.js} +2 -2
  88. package/{www/build/p-2fb52cd0.entry.js → dist/web-components-library/p-539f99db.entry.js} +2 -2
  89. package/dist/web-components-library/p-625e2cee.js +2 -0
  90. package/dist/web-components-library/p-625e2cee.js.map +1 -0
  91. package/dist/web-components-library/p-62e1d867.entry.js +2 -0
  92. package/dist/web-components-library/p-62e1d867.entry.js.map +1 -0
  93. package/dist/web-components-library/p-63d220da.entry.js +2 -0
  94. package/dist/web-components-library/{p-8d5e3396.entry.js.map → p-63d220da.entry.js.map} +1 -1
  95. package/dist/web-components-library/{p-c8814ae1.entry.js → p-7916e0f7.entry.js} +2 -2
  96. package/{www/build/p-f5efb3fc.entry.js → dist/web-components-library/p-8bd4a2aa.entry.js} +2 -2
  97. package/dist/web-components-library/{p-c962e854.entry.js → p-8dec332e.entry.js} +2 -2
  98. package/dist/web-components-library/{p-72a7eb26.entry.js → p-966cbf03.entry.js} +2 -2
  99. package/{www/build/p-30575221.entry.js → dist/web-components-library/p-a0ed0c63.entry.js} +2 -2
  100. package/{www/build/p-e41442e0.entry.js → dist/web-components-library/p-b7b972c0.entry.js} +2 -2
  101. package/{www/build/p-e41442e0.entry.js.map → dist/web-components-library/p-b7b972c0.entry.js.map} +1 -1
  102. package/dist/web-components-library/{p-25935be3.entry.js → p-bc2f94d9.entry.js} +2 -2
  103. package/dist/web-components-library/{p-57b8bd19.entry.js → p-db9b7eb5.entry.js} +2 -2
  104. package/dist/web-components-library/p-db9b7eb5.entry.js.map +1 -0
  105. package/dist/web-components-library/p-df04a63e.entry.js +2 -0
  106. package/dist/web-components-library/p-df04a63e.entry.js.map +1 -0
  107. package/dist/web-components-library/web-components-library.esm.js +1 -1
  108. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  109. package/package.json +1 -1
  110. package/www/build/index.esm.js +1 -1
  111. package/www/build/{p-8b93bc6d.entry.js → p-01302e57.entry.js} +2 -2
  112. package/www/build/{p-14f0bdf4.entry.js → p-1ad8810a.entry.js} +2 -2
  113. package/{dist/web-components-library/p-c2ba8a6c.entry.js → www/build/p-2e0923bd.entry.js} +2 -2
  114. package/www/build/p-3284e37b.entry.js +2 -0
  115. package/www/build/{p-61f76cab.js → p-43bc482a.js} +2 -2
  116. package/{dist/web-components-library/p-2fb52cd0.entry.js → www/build/p-539f99db.entry.js} +2 -2
  117. package/www/build/p-625e2cee.js +2 -0
  118. package/www/build/p-625e2cee.js.map +1 -0
  119. package/www/build/p-62e1d867.entry.js +2 -0
  120. package/www/build/p-62e1d867.entry.js.map +1 -0
  121. package/www/build/p-63d220da.entry.js +2 -0
  122. package/www/build/{p-8d5e3396.entry.js.map → p-63d220da.entry.js.map} +1 -1
  123. package/www/build/{p-c8814ae1.entry.js → p-7916e0f7.entry.js} +2 -2
  124. package/{dist/web-components-library/p-f5efb3fc.entry.js → www/build/p-8bd4a2aa.entry.js} +2 -2
  125. package/www/build/{p-c962e854.entry.js → p-8dec332e.entry.js} +2 -2
  126. package/www/build/{p-72a7eb26.entry.js → p-966cbf03.entry.js} +2 -2
  127. package/{dist/web-components-library/p-30575221.entry.js → www/build/p-a0ed0c63.entry.js} +2 -2
  128. package/{dist/web-components-library/p-e41442e0.entry.js → www/build/p-b7b972c0.entry.js} +2 -2
  129. package/{dist/web-components-library/p-e41442e0.entry.js.map → www/build/p-b7b972c0.entry.js.map} +1 -1
  130. package/www/build/{p-25935be3.entry.js → p-bc2f94d9.entry.js} +2 -2
  131. package/www/build/{p-0cb573a8.js → p-c2d3e81c.js} +1 -1
  132. package/www/build/{p-57b8bd19.entry.js → p-db9b7eb5.entry.js} +2 -2
  133. package/www/build/p-db9b7eb5.entry.js.map +1 -0
  134. package/www/build/p-df04a63e.entry.js +2 -0
  135. package/www/build/p-df04a63e.entry.js.map +1 -0
  136. package/www/build/web-components-library.esm.js +1 -1
  137. package/www/build/web-components-library.esm.js.map +1 -1
  138. package/www/index.html +1 -1
  139. package/dist/cjs/utils-93961cb6.js.map +0 -1
  140. package/dist/esm/utils-c8abef2f.js.map +0 -1
  141. package/dist/web-components-library/p-37f271c8.entry.js +0 -2
  142. package/dist/web-components-library/p-37f271c8.entry.js.map +0 -1
  143. package/dist/web-components-library/p-57b8bd19.entry.js.map +0 -1
  144. package/dist/web-components-library/p-69a1a67a.entry.js +0 -2
  145. package/dist/web-components-library/p-8d5e3396.entry.js +0 -2
  146. package/dist/web-components-library/p-a06fbbc0.js +0 -2
  147. package/dist/web-components-library/p-a06fbbc0.js.map +0 -1
  148. package/dist/web-components-library/p-da30a6cb.entry.js +0 -2
  149. package/dist/web-components-library/p-da30a6cb.entry.js.map +0 -1
  150. package/www/build/p-37f271c8.entry.js +0 -2
  151. package/www/build/p-37f271c8.entry.js.map +0 -1
  152. package/www/build/p-57b8bd19.entry.js.map +0 -1
  153. package/www/build/p-69a1a67a.entry.js +0 -2
  154. package/www/build/p-8d5e3396.entry.js +0 -2
  155. package/www/build/p-a06fbbc0.js +0 -2
  156. package/www/build/p-a06fbbc0.js.map +0 -1
  157. package/www/build/p-da30a6cb.entry.js +0 -2
  158. package/www/build/p-da30a6cb.entry.js.map +0 -1
  159. /package/dist/web-components-library/{p-8b93bc6d.entry.js.map → p-01302e57.entry.js.map} +0 -0
  160. /package/dist/web-components-library/{p-14f0bdf4.entry.js.map → p-1ad8810a.entry.js.map} +0 -0
  161. /package/dist/web-components-library/{p-c2ba8a6c.entry.js.map → p-2e0923bd.entry.js.map} +0 -0
  162. /package/dist/web-components-library/{p-69a1a67a.entry.js.map → p-3284e37b.entry.js.map} +0 -0
  163. /package/dist/web-components-library/{p-61f76cab.js.map → p-43bc482a.js.map} +0 -0
  164. /package/dist/web-components-library/{p-2fb52cd0.entry.js.map → p-539f99db.entry.js.map} +0 -0
  165. /package/dist/web-components-library/{p-c8814ae1.entry.js.map → p-7916e0f7.entry.js.map} +0 -0
  166. /package/dist/web-components-library/{p-f5efb3fc.entry.js.map → p-8bd4a2aa.entry.js.map} +0 -0
  167. /package/dist/web-components-library/{p-c962e854.entry.js.map → p-8dec332e.entry.js.map} +0 -0
  168. /package/dist/web-components-library/{p-72a7eb26.entry.js.map → p-966cbf03.entry.js.map} +0 -0
  169. /package/dist/web-components-library/{p-30575221.entry.js.map → p-a0ed0c63.entry.js.map} +0 -0
  170. /package/dist/web-components-library/{p-25935be3.entry.js.map → p-bc2f94d9.entry.js.map} +0 -0
  171. /package/www/build/{p-8b93bc6d.entry.js.map → p-01302e57.entry.js.map} +0 -0
  172. /package/www/build/{p-14f0bdf4.entry.js.map → p-1ad8810a.entry.js.map} +0 -0
  173. /package/www/build/{p-c2ba8a6c.entry.js.map → p-2e0923bd.entry.js.map} +0 -0
  174. /package/www/build/{p-69a1a67a.entry.js.map → p-3284e37b.entry.js.map} +0 -0
  175. /package/www/build/{p-61f76cab.js.map → p-43bc482a.js.map} +0 -0
  176. /package/www/build/{p-2fb52cd0.entry.js.map → p-539f99db.entry.js.map} +0 -0
  177. /package/www/build/{p-c8814ae1.entry.js.map → p-7916e0f7.entry.js.map} +0 -0
  178. /package/www/build/{p-f5efb3fc.entry.js.map → p-8bd4a2aa.entry.js.map} +0 -0
  179. /package/www/build/{p-c962e854.entry.js.map → p-8dec332e.entry.js.map} +0 -0
  180. /package/www/build/{p-72a7eb26.entry.js.map → p-966cbf03.entry.js.map} +0 -0
  181. /package/www/build/{p-30575221.entry.js.map → p-a0ed0c63.entry.js.map} +0 -0
  182. /package/www/build/{p-25935be3.entry.js.map → p-bc2f94d9.entry.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-anchor-navigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AACvE,OAAO,EAAC,aAAa,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AAMH,MAAM,OAAO,iBAAiB;;8BAMX,KAAK;2BASR,IAAI;8BAMD,SAAS;2BAOZ,KAAK;yBAMP,KAAK;;IAOjB;;OAEG;IACK,UAAU;QAChB,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CACpE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAClE,CAAC;QACF,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,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EAAE,CAAC;gBAC/B,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, h, Host, Prop, State} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize} from \"../../beans\";\n\n/**\n * Anchor navigation component.\n * @slot - Anchor navigation items. Use `<a>` elements inside. If you need an extra action element, use a wrapper around it and the anchor.\n * @example\n * ```\n * <z-anchor-navigation>\n * <div>\n * <a href=\"#section-id\">Section name</a>\n * <button type=\"button\">\n * <z-icon name=\"share\" />\n * </button>\n * </div>\n * </z-anchor-navigation>\n * ```\n */\n@Component({\n tag: \"z-anchor-navigation\",\n styleUrl: \"styles.css\",\n shadow: false,\n})\nexport class ZAnchorNavigation {\n /**\n * If enabled, the text of each anchor will be hidden unless\n * for the current one or the one the user is hovering.\n */\n @Prop({reflect: true})\n hideUnselected = false;\n\n /**\n * Enables automatic inference of the current item, listening for hash change\n * and checking the `href` of the slotted anchors.\n * When disabled, the highlight of current item must be handled manually by setting the `data-current`\n * attribute to the correct slotted items and the `aria-current` attribute to the anchors.\n */\n @Prop()\n autoCurrent = true;\n\n /**\n * Sets the label of the button displayed on mobile viewport when the anchor navigation is collapsed\n */\n @Prop()\n collapsedLabel = \"salta a\";\n\n /**\n * Explicitly collapse anchor navigation.\n * If false will collapse automatically only on mobile.\n */\n @Prop({reflect: true})\n isCollapsed = false;\n\n /**\n * Whether the mobile list is collapsed.\n */\n @State()\n collapsed = false;\n\n @Element() host: HTMLZAnchorNavigationElement;\n\n /** Reference to the nav element. */\n private nav: HTMLElement;\n\n /**\n * Set `aria-current` attribute to the anchors.\n */\n private setCurrent(): void {\n const currentElement = Array.from(this.nav.querySelectorAll(\"a\")).find(\n (anchor) => anchor.href === this.host.ownerDocument.location.href\n );\n Array.from(this.nav.children).forEach((item) => {\n const anchor = item instanceof HTMLAnchorElement ? item : item.querySelector(\"a\");\n const isCurrent = anchor === currentElement;\n anchor.setAttribute(\"aria-current\", isCurrent.toString());\n item.toggleAttribute(\"data-current\", isCurrent);\n });\n }\n\n /**\n * Toggle collapsed state.\n */\n private toggleCollapsed(): void {\n this.collapsed = !this.collapsed;\n }\n\n componentDidLoad(): void {\n if (this.autoCurrent) {\n window.addEventListener(\"hashchange\", this.setCurrent.bind(this));\n this.setCurrent();\n }\n }\n\n disconnectedCallback(): void {\n window.removeEventListener(\"hashchange\", this.setCurrent);\n }\n\n render(): HTMLZAnchorNavigationElement {\n return (\n <Host collapsed={this.collapsed}>\n <z-button\n class=\"toggle\"\n size={ControlSize.SMALL}\n variant={ButtonVariant.SECONDARY}\n icon={this.collapsed ? \"chevron-up\" : \"chevron-down\"}\n onClick={this.toggleCollapsed.bind(this)}\n >\n {this.collapsedLabel}\n </z-button>\n <nav ref={(el) => (this.nav = el)}>\n <slot></slot>\n </nav>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-anchor-navigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AACvE,OAAO,EAAC,aAAa,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AAMH,MAAM,OAAO,iBAAiB;;8BAMX,KAAK;2BASR,IAAI;8BAMD,SAAS;2BAOZ,KAAK;yBAMP,KAAK;;IAOjB;;OAEG;IACK,UAAU;QAChB,MAAM,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CACpE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC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,CAAC,IAAI,CAAC,IAAI,CAAC,IAEvC,IAAI,CAAC,cAAc,CACX;YACX,4DAAK,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;gBAC/B,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Element, h, Host, Prop, State} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize} from \"../../beans\";\n\n/**\n * Anchor navigation component.\n * @slot - Anchor navigation items. Use `<a>` elements inside. If you need an extra action element, use a wrapper around it and the anchor.\n * @example\n * ```\n * <z-anchor-navigation>\n * <div>\n * <a href=\"#section-id\">Section name</a>\n * <button type=\"button\">\n * <z-icon name=\"share\" />\n * </button>\n * </div>\n * </z-anchor-navigation>\n * ```\n */\n@Component({\n tag: \"z-anchor-navigation\",\n styleUrl: \"styles.css\",\n shadow: false,\n})\nexport class ZAnchorNavigation {\n /**\n * If enabled, the text of each anchor will be hidden unless\n * for the current one or the one the user is hovering.\n */\n @Prop({reflect: true})\n hideUnselected = false;\n\n /**\n * Enables automatic inference of the current item, listening for hash change\n * and checking the `href` of the slotted anchors.\n * When disabled, the highlight of current item must be handled manually by setting the `data-current`\n * attribute to the correct slotted items and the `aria-current` attribute to the anchors.\n */\n @Prop()\n autoCurrent = true;\n\n /**\n * Sets the label of the button displayed on mobile viewport when the anchor navigation is collapsed\n */\n @Prop()\n collapsedLabel = \"salta a\";\n\n /**\n * Explicitly collapse anchor navigation.\n * If false will collapse automatically only on mobile.\n */\n @Prop({reflect: true})\n isCollapsed = false;\n\n /**\n * Whether the mobile list is collapsed.\n */\n @State()\n collapsed = false;\n\n @Element() host: HTMLZAnchorNavigationElement;\n\n /** Reference to the nav element. */\n private nav: HTMLElement;\n\n /**\n * Set `aria-current` attribute to the anchors.\n */\n private setCurrent(): void {\n const currentElement = Array.from(this.nav.querySelectorAll(\"a\")).find(\n (anchor) => anchor.href === this.host.ownerDocument.location.href\n );\n Array.from(this.nav.children).forEach((item) => {\n const anchor = item instanceof HTMLAnchorElement ? item : item.querySelector(\"a\");\n const isCurrent = anchor === currentElement;\n anchor.setAttribute(\"aria-current\", isCurrent.toString());\n item.toggleAttribute(\"data-current\", isCurrent);\n });\n }\n\n /**\n * Toggle collapsed state.\n */\n private toggleCollapsed(): void {\n this.collapsed = !this.collapsed;\n }\n\n componentDidLoad(): void {\n if (this.autoCurrent) {\n window.addEventListener(\"hashchange\", this.setCurrent.bind(this));\n this.setCurrent();\n }\n }\n\n disconnectedCallback(): void {\n window.removeEventListener(\"hashchange\", this.setCurrent);\n }\n\n render(): HTMLZAnchorNavigationElement {\n return (\n <Host\n collapsed={this.collapsed}\n class=\"z-scrollbar\"\n >\n <z-button\n class=\"toggle\"\n size={ControlSize.SMALL}\n variant={ButtonVariant.SECONDARY}\n icon={this.collapsed ? \"chevron-up\" : \"chevron-down\"}\n onClick={this.toggleCollapsed.bind(this)}\n >\n {this.collapsedLabel}\n </z-button>\n <nav ref={(el) => (this.nav = el)}>\n <slot></slot>\n </nav>\n </Host>\n );\n }\n}\n"]}
@@ -161,6 +161,10 @@ Unfortunately the `aspect-ratio` property is still experimental */
161
161
  border-radius: var(--z-card--text-border-radius);
162
162
  }
163
163
 
164
+ :host([variant="text"]) [slot="text"]::before {
165
+ border-radius: var(--z-card--text-border-radius);
166
+ }
167
+
164
168
  :host([show-shadow]) > .content,
165
169
  :host([variant="border"]) > .content,
166
170
  :host([variant="shadow"]) > .content {