@zanichelli/albe-web-components 18.7.7-RC1 → 18.8.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 (549) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/cjs/index-96af6326.js +4 -0
  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-alert.cjs.entry.js +1 -1
  6. package/dist/cjs/z-app-header_12.cjs.entry.js +18 -18
  7. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  8. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/z-avatar.cjs.entry.js +2 -2
  10. package/dist/cjs/z-book-card.cjs.entry.js +15 -14
  11. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  12. package/dist/{components/placeholder-cover.js → cjs/z-book-cover.cjs.entry.js} +26 -2
  13. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
  14. package/dist/cjs/z-breadcrumb.cjs.entry.js +2 -2
  15. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  16. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  17. package/dist/cjs/z-combobox.cjs.entry.js +26 -41
  18. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -1
  19. package/dist/cjs/z-cover-hero.cjs.entry.js +2 -2
  20. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +4 -4
  21. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  22. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  23. package/dist/cjs/z-info-reveal.cjs.entry.js +1 -1
  24. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  25. package/dist/cjs/z-menu-section.cjs.entry.js +1 -1
  26. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  28. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  29. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  30. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/z-myz-card-info.cjs.entry.js +1 -1
  32. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  33. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  34. package/dist/cjs/z-myz-list-item.cjs.entry.js +1 -1
  35. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  36. package/dist/cjs/z-navigation-tabs.cjs.entry.js +2 -2
  37. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  38. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  39. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  40. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  41. package/dist/cjs/z-result-card.cjs.entry.js +6 -14
  42. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -1
  43. package/dist/cjs/z-select.cjs.entry.js +2 -2
  44. package/dist/cjs/z-select.cjs.entry.js.map +1 -1
  45. package/dist/cjs/z-skip-to-content.cjs.entry.js +1 -1
  46. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  47. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  48. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  49. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  50. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  51. package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
  52. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  53. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  54. package/dist/collection/collection-manifest.json +2 -1
  55. package/dist/collection/components/book-card/z-book-card/index.js +66 -29
  56. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -1
  57. package/dist/collection/components/book-card/z-book-card/index.stories.js +11 -13
  58. package/dist/collection/components/book-card/z-book-card/index.stories.js.map +1 -1
  59. package/dist/collection/components/book-card/z-book-card/styles.css +35 -67
  60. package/dist/collection/components/z-app-header/index.js +2 -1
  61. package/dist/collection/components/z-app-header/index.js.map +1 -1
  62. package/dist/collection/components/z-app-header/index.stories.js +16 -0
  63. package/dist/collection/components/z-app-header/index.stories.js.map +1 -1
  64. package/dist/collection/components/z-app-header/styles.css +2 -1
  65. package/dist/collection/components/z-aria-alert/index.js +1 -1
  66. package/dist/collection/components/z-avatar/index.js +2 -2
  67. package/dist/collection/components/z-book-cover/index.js +113 -0
  68. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  69. package/dist/collection/components/z-book-cover/index.stories.js +31 -0
  70. package/dist/collection/components/z-book-cover/index.stories.js.map +1 -0
  71. package/dist/collection/components/z-book-cover/styles.css +95 -0
  72. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  73. package/dist/collection/components/z-button-sort/index.js +1 -1
  74. package/dist/collection/components/z-chip/index.js +2 -2
  75. package/dist/collection/components/z-combobox/index.js +25 -40
  76. package/dist/collection/components/z-combobox/index.js.map +1 -1
  77. package/dist/collection/components/z-combobox/styles.css +0 -8
  78. package/dist/collection/components/z-cover-hero/index.js +2 -2
  79. package/dist/collection/components/z-divider/index.js +1 -1
  80. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  81. package/dist/collection/components/z-info-box/index.js +1 -1
  82. package/dist/collection/components/z-info-reveal/index.js +1 -1
  83. package/dist/collection/components/z-input/index.js +17 -19
  84. package/dist/collection/components/z-input/index.js.map +1 -1
  85. package/dist/collection/components/z-input-message/index.js +1 -1
  86. package/dist/collection/components/z-logo/index.js +1 -1
  87. package/dist/collection/components/z-menu-section/index.js +1 -1
  88. package/dist/collection/components/z-modal/index.js +4 -4
  89. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  90. package/dist/collection/components/z-notification/index.js +1 -1
  91. package/dist/collection/components/z-offcanvas/index.js +21 -1
  92. package/dist/collection/components/z-offcanvas/index.js.map +1 -1
  93. package/dist/collection/components/z-offcanvas/index.stories.js +12 -0
  94. package/dist/collection/components/z-offcanvas/index.stories.js.map +1 -1
  95. package/dist/collection/components/z-offcanvas/styles.css +5 -4
  96. package/dist/collection/components/z-panel-elem/index.js +2 -2
  97. package/dist/collection/components/z-popover/index.js +1 -1
  98. package/dist/collection/components/{result-card/z-result-card → z-result-card}/index.js +10 -18
  99. package/dist/collection/components/z-result-card/index.js.map +1 -0
  100. package/dist/collection/components/{result-card/z-result-card → z-result-card}/styles.css +39 -108
  101. package/dist/collection/components/z-result-card/z-result-card.stories.js.map +1 -0
  102. package/dist/collection/components/z-searchbar/index.js +1 -1
  103. package/dist/collection/components/z-select/index.js +2 -2
  104. package/dist/collection/components/z-select/index.js.map +1 -1
  105. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  106. package/dist/collection/components/z-stepper/index.js +1 -1
  107. package/dist/collection/components/z-stepper-item/index.js +1 -1
  108. package/dist/collection/components/z-toast-notification/index.js +1 -1
  109. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  110. package/dist/collection/components/z-toggle-button/index.js +2 -2
  111. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  112. package/dist/collection/components/z-tooltip/index.js +1 -1
  113. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  114. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  115. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  116. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  117. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  118. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  119. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  120. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  121. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  122. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  123. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  124. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  125. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  126. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  127. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  128. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  129. package/dist/components/index.d.ts +3 -1
  130. package/dist/components/index.js +1 -0
  131. package/dist/components/index.js.map +1 -1
  132. package/dist/components/index10.js +24 -65
  133. package/dist/components/index10.js.map +1 -1
  134. package/dist/components/index11.js +58 -308
  135. package/dist/components/index11.js.map +1 -1
  136. package/dist/components/index12.js +311 -37
  137. package/dist/components/index12.js.map +1 -1
  138. package/dist/components/index13.js +40 -27
  139. package/dist/components/index13.js.map +1 -1
  140. package/dist/components/index14.js +23 -151
  141. package/dist/components/index14.js.map +1 -1
  142. package/dist/components/index15.js +144 -37
  143. package/dist/components/index15.js.map +1 -1
  144. package/dist/components/index16.js +42 -1008
  145. package/dist/components/index16.js.map +1 -1
  146. package/dist/components/index17.js +1012 -37
  147. package/dist/components/index17.js.map +1 -1
  148. package/dist/components/index18.js +42 -10
  149. package/dist/components/index18.js.map +1 -1
  150. package/dist/components/index19.js +10 -22
  151. package/dist/components/index19.js.map +1 -1
  152. package/dist/components/index20.js +16 -33
  153. package/dist/components/index20.js.map +1 -1
  154. package/dist/components/index21.js +39 -43
  155. package/dist/components/index21.js.map +1 -1
  156. package/dist/components/index22.js +44 -81
  157. package/dist/components/index22.js.map +1 -1
  158. package/dist/components/index23.js +60 -430
  159. package/dist/components/index23.js.map +1 -1
  160. package/dist/components/index24.js +415 -341
  161. package/dist/components/index24.js.map +1 -1
  162. package/dist/components/index25.js +376 -19
  163. package/dist/components/index25.js.map +1 -1
  164. package/dist/components/index26.js +45 -0
  165. package/dist/components/index26.js.map +1 -0
  166. package/dist/components/index3.js +1 -1
  167. package/dist/components/index4.js +23 -60
  168. package/dist/components/index4.js.map +1 -1
  169. package/dist/components/index5.js +53 -27
  170. package/dist/components/index5.js.map +1 -1
  171. package/dist/components/index6.js +34 -18
  172. package/dist/components/index6.js.map +1 -1
  173. package/dist/components/index7.js +18 -41
  174. package/dist/components/index7.js.map +1 -1
  175. package/dist/components/index8.js +41 -11
  176. package/dist/components/index8.js.map +1 -1
  177. package/dist/components/index9.js +10 -28
  178. package/dist/components/index9.js.map +1 -1
  179. package/dist/components/z-accordion.js +1 -1
  180. package/dist/components/z-anchor-navigation.js +2 -2
  181. package/dist/components/z-app-header-deprecated.js +11 -11
  182. package/dist/components/z-app-header.js +13 -13
  183. package/dist/components/z-app-header.js.map +1 -1
  184. package/dist/components/z-aria-alert.js +1 -1
  185. package/dist/components/z-avatar.js +2 -2
  186. package/dist/components/z-book-card-app.js +2 -2
  187. package/dist/components/z-book-card-deprecated.js +1 -1
  188. package/dist/components/z-book-card.js +26 -17
  189. package/dist/components/z-book-card.js.map +1 -1
  190. package/dist/components/z-book-cover.d.ts +11 -0
  191. package/dist/components/z-book-cover.js +8 -0
  192. package/dist/components/z-book-cover.js.map +1 -0
  193. package/dist/components/z-breadcrumb.js +8 -8
  194. package/dist/components/z-button-sort.js +2 -2
  195. package/dist/components/z-button.js +1 -1
  196. package/dist/components/z-card.js +1 -1
  197. package/dist/components/z-carousel.js +3 -3
  198. package/dist/components/z-chip.js +1 -1
  199. package/dist/components/z-combobox.js +32 -47
  200. package/dist/components/z-combobox.js.map +1 -1
  201. package/dist/components/z-cover-hero.js +2 -2
  202. package/dist/components/z-date-picker.js +3 -3
  203. package/dist/components/z-divider.js +1 -1
  204. package/dist/components/z-dragdrop-area.js +1 -1
  205. package/dist/components/z-file-upload.js +4 -4
  206. package/dist/components/z-file.js +3 -3
  207. package/dist/components/z-ghost-loading.js +1 -1
  208. package/dist/components/z-icon.js +1 -1
  209. package/dist/components/z-info-box.js +2 -2
  210. package/dist/components/z-info-reveal.js +1 -1
  211. package/dist/components/z-input-message.js +1 -1
  212. package/dist/components/z-input.js +1 -1
  213. package/dist/components/z-list-element.js +1 -1
  214. package/dist/components/z-list-group.js +1 -1
  215. package/dist/components/z-list.js +1 -1
  216. package/dist/components/z-logo.js +1 -1
  217. package/dist/components/z-menu-deprecated.js +1 -1
  218. package/dist/components/z-menu-section-deprecated.js +1 -1
  219. package/dist/components/z-menu-section.js +2 -2
  220. package/dist/components/z-menu.js +1 -1
  221. package/dist/components/z-modal.js +1 -1
  222. package/dist/components/z-myz-card-alert.js +2 -2
  223. package/dist/components/z-myz-card-body.js +1 -1
  224. package/dist/components/z-myz-card-cover.js +1 -1
  225. package/dist/components/z-myz-card-dictionary.js +7 -7
  226. package/dist/components/z-myz-card-footer-sections.js +1 -1
  227. package/dist/components/z-myz-card-footer.js +1 -1
  228. package/dist/components/z-myz-card-header.js +1 -1
  229. package/dist/components/z-myz-card-icon.js +2 -2
  230. package/dist/components/z-myz-card-info.js +3 -3
  231. package/dist/components/z-myz-card-list.js +1 -1
  232. package/dist/components/z-myz-card.js +1 -1
  233. package/dist/components/z-myz-list-item.js +1 -1
  234. package/dist/components/z-myz-list.js +3 -3
  235. package/dist/components/z-navigation-tabs.js +3 -3
  236. package/dist/components/z-notification.js +2 -2
  237. package/dist/components/z-offcanvas.js +1 -1
  238. package/dist/components/z-otp.js +4 -4
  239. package/dist/components/z-pagination.js +4 -4
  240. package/dist/components/z-panel-elem.js +3 -3
  241. package/dist/components/z-popover.js +1 -1
  242. package/dist/components/z-range-picker.js +3 -3
  243. package/dist/components/z-result-card.js +14 -16
  244. package/dist/components/z-result-card.js.map +1 -1
  245. package/dist/components/z-searchbar.js +1 -1
  246. package/dist/components/z-section-title.js +1 -1
  247. package/dist/components/z-select.js +10 -10
  248. package/dist/components/z-select.js.map +1 -1
  249. package/dist/components/z-skip-to-content.js +1 -1
  250. package/dist/components/z-slideshow.js +1 -1
  251. package/dist/components/z-stepper-item.js +2 -2
  252. package/dist/components/z-stepper.js +1 -1
  253. package/dist/components/z-table.js +1 -1
  254. package/dist/components/z-tag.js +1 -1
  255. package/dist/components/z-td.js +3 -3
  256. package/dist/components/z-th.js +3 -3
  257. package/dist/components/z-toast-notification-list.js +1 -1
  258. package/dist/components/z-toast-notification.js +2 -2
  259. package/dist/components/z-toggle-button.js +3 -3
  260. package/dist/components/z-toggle-switch.js +4 -4
  261. package/dist/components/z-tooltip.js +2 -2
  262. package/dist/components/z-tr.js +2 -2
  263. package/dist/components/z-tree-list.js +4 -4
  264. package/dist/components/z-visually-hidden.js +1 -1
  265. package/dist/esm/index-c8ceadeb.js +4 -0
  266. package/dist/esm/loader.js +1 -1
  267. package/dist/esm/web-components-library.js +1 -1
  268. package/dist/esm/z-alert.entry.js +1 -1
  269. package/dist/esm/z-app-header_12.entry.js +18 -18
  270. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  271. package/dist/esm/z-aria-alert.entry.js +1 -1
  272. package/dist/esm/z-avatar.entry.js +2 -2
  273. package/dist/esm/z-book-card.entry.js +15 -14
  274. package/dist/esm/z-book-card.entry.js.map +1 -1
  275. package/dist/{cjs/placeholder-cover-b679e768.js → esm/z-book-cover.entry.js} +21 -3
  276. package/dist/esm/z-book-cover.entry.js.map +1 -0
  277. package/dist/esm/z-breadcrumb.entry.js +2 -2
  278. package/dist/esm/z-button-sort.entry.js +1 -1
  279. package/dist/esm/z-chip.entry.js +2 -2
  280. package/dist/esm/z-combobox.entry.js +26 -41
  281. package/dist/esm/z-combobox.entry.js.map +1 -1
  282. package/dist/esm/z-cover-hero.entry.js +2 -2
  283. package/dist/esm/z-dragdrop-area_2.entry.js +4 -4
  284. package/dist/esm/z-ghost-loading.entry.js +1 -1
  285. package/dist/esm/z-info-box.entry.js +1 -1
  286. package/dist/esm/z-info-reveal.entry.js +1 -1
  287. package/dist/esm/z-logo.entry.js +1 -1
  288. package/dist/esm/z-menu-section.entry.js +1 -1
  289. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  290. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  291. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  292. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  293. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  294. package/dist/esm/z-myz-card-info.entry.js +1 -1
  295. package/dist/esm/z-myz-card-list.entry.js +1 -1
  296. package/dist/esm/z-myz-card_4.entry.js +4 -4
  297. package/dist/esm/z-myz-list-item.entry.js +1 -1
  298. package/dist/esm/z-myz-list.entry.js +1 -1
  299. package/dist/esm/z-navigation-tabs.entry.js +2 -2
  300. package/dist/esm/z-notification.entry.js +1 -1
  301. package/dist/esm/z-otp.entry.js +2 -2
  302. package/dist/esm/z-panel-elem.entry.js +2 -2
  303. package/dist/esm/z-popover.entry.js +1 -1
  304. package/dist/esm/z-result-card.entry.js +6 -14
  305. package/dist/esm/z-result-card.entry.js.map +1 -1
  306. package/dist/esm/z-select.entry.js +2 -2
  307. package/dist/esm/z-select.entry.js.map +1 -1
  308. package/dist/esm/z-skip-to-content.entry.js +1 -1
  309. package/dist/esm/z-stepper-item.entry.js +1 -1
  310. package/dist/esm/z-stepper.entry.js +1 -1
  311. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  312. package/dist/esm/z-toast-notification.entry.js +1 -1
  313. package/dist/esm/z-toggle-button.entry.js +2 -2
  314. package/dist/esm/z-toggle-switch.entry.js +3 -3
  315. package/dist/esm/z-tooltip.entry.js +1 -1
  316. package/dist/esm/z-visually-hidden.entry.js +1 -1
  317. package/dist/types/components/book-card/z-book-card/index.d.ts +20 -16
  318. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +2 -35
  319. package/dist/types/components/z-app-header/index.d.ts +1 -0
  320. package/dist/types/components/z-app-header/index.stories.d.ts +8 -0
  321. package/dist/types/components/z-book-cover/index.d.ts +23 -0
  322. package/dist/types/components/z-book-cover/index.stories.d.ts +21 -0
  323. package/dist/types/components/z-combobox/index.d.ts +1 -0
  324. package/dist/types/components/z-input/index.d.ts +4 -4
  325. package/dist/types/components/z-offcanvas/index.d.ts +2 -0
  326. package/dist/types/components/z-offcanvas/index.stories.d.ts +9 -0
  327. package/dist/types/components/{result-card/z-result-card → z-result-card}/index.d.ts +8 -26
  328. package/dist/types/components.d.ts +185 -76
  329. package/{www/build/p-8117a929.entry.js → dist/web-components-library/p-01f941c2.entry.js} +2 -2
  330. package/dist/web-components-library/{p-0756fe6f.entry.js → p-028dd72a.entry.js} +2 -2
  331. package/{www/build/p-e160545f.entry.js → dist/web-components-library/p-0990d475.entry.js} +2 -2
  332. package/{www/build/p-e160545f.entry.js.map → dist/web-components-library/p-0990d475.entry.js.map} +1 -1
  333. package/dist/web-components-library/{p-6ca0ee2f.entry.js → p-0a49dd1c.entry.js} +2 -2
  334. package/dist/web-components-library/{p-09ba466b.entry.js → p-240de9aa.entry.js} +2 -2
  335. package/dist/web-components-library/{p-f1c55eda.entry.js → p-28534fb5.entry.js} +2 -2
  336. package/{www/build/p-966cbf03.entry.js → dist/web-components-library/p-28d83c86.entry.js} +2 -2
  337. package/dist/web-components-library/{p-cbab66f7.entry.js → p-2bdac94e.entry.js} +2 -2
  338. package/dist/web-components-library/{p-e8419614.entry.js → p-2ffdfbb1.entry.js} +2 -2
  339. package/dist/web-components-library/p-31bd2a1c.entry.js +2 -0
  340. package/dist/web-components-library/p-31bd2a1c.entry.js.map +1 -0
  341. package/dist/web-components-library/{p-8c52635e.entry.js → p-4551b0df.entry.js} +2 -2
  342. package/dist/web-components-library/{p-e639e1bc.entry.js → p-460b2068.entry.js} +2 -2
  343. package/{www/build/p-0eab3c09.entry.js → dist/web-components-library/p-46ea0b2e.entry.js} +3 -3
  344. package/dist/web-components-library/{p-689b0280.entry.js → p-4a257653.entry.js} +2 -2
  345. package/dist/web-components-library/{p-8dec332e.entry.js → p-4aaf0172.entry.js} +2 -2
  346. package/dist/web-components-library/{p-d6d3a92a.entry.js → p-4affbb99.entry.js} +2 -2
  347. package/dist/web-components-library/{p-caa491ca.entry.js → p-5989465b.entry.js} +2 -2
  348. package/dist/web-components-library/{p-d8aa6afa.entry.js → p-5a1f98a2.entry.js} +2 -2
  349. package/{www/build/p-d0d54d42.entry.js → dist/web-components-library/p-5c5882c6.entry.js} +2 -2
  350. package/dist/web-components-library/{p-01302e57.entry.js → p-5f94986f.entry.js} +2 -2
  351. package/dist/web-components-library/p-6cff173f.entry.js +2 -0
  352. package/dist/web-components-library/{p-97608d16.entry.js.map → p-6cff173f.entry.js.map} +1 -1
  353. package/dist/web-components-library/p-6cffbabc.entry.js +2 -0
  354. package/{www/build/p-ac585bcd.entry.js.map → dist/web-components-library/p-6cffbabc.entry.js.map} +1 -1
  355. package/dist/web-components-library/{p-1ad8810a.entry.js → p-7194003a.entry.js} +2 -2
  356. package/{www/build/p-2b8eb0c2.entry.js → dist/web-components-library/p-78146cef.entry.js} +2 -2
  357. package/dist/web-components-library/{p-4fbcf534.entry.js → p-7a4f6a5b.entry.js} +2 -2
  358. package/dist/web-components-library/{p-6793061a.entry.js → p-7ceddb7a.entry.js} +2 -2
  359. package/dist/web-components-library/{p-4c730d4a.entry.js → p-86160fe3.entry.js} +2 -2
  360. package/dist/web-components-library/{p-63c1bde5.entry.js → p-863fd1c4.entry.js} +2 -2
  361. package/dist/web-components-library/p-8fc213c2.entry.js +2 -0
  362. package/dist/web-components-library/p-8fc213c2.entry.js.map +1 -0
  363. package/dist/web-components-library/{p-5cf3a797.entry.js → p-943db3a8.entry.js} +2 -2
  364. package/dist/web-components-library/{p-dc5ba112.entry.js → p-94916bdf.entry.js} +2 -2
  365. package/dist/web-components-library/p-a2e87cec.entry.js +2 -0
  366. package/dist/web-components-library/{p-badd98ad.entry.js → p-ac477ae7.entry.js} +2 -2
  367. package/dist/web-components-library/p-af5e8524.entry.js +2 -0
  368. package/dist/web-components-library/{p-7916e0f7.entry.js → p-b3f1b5c1.entry.js} +2 -2
  369. package/dist/web-components-library/{p-962c7f6b.entry.js → p-ceeb3e2a.entry.js} +2 -2
  370. package/dist/web-components-library/p-d60684d5.entry.js +2 -0
  371. package/dist/web-components-library/p-d60684d5.entry.js.map +1 -0
  372. package/dist/web-components-library/{p-cb1de7b4.entry.js → p-dc086eb5.entry.js} +2 -2
  373. package/dist/web-components-library/p-deb7f8d7.entry.js +2 -0
  374. package/dist/web-components-library/{p-6273db7f.entry.js → p-e0b88075.entry.js} +2 -2
  375. package/dist/web-components-library/p-e4bb1256.entry.js +2 -0
  376. package/dist/web-components-library/p-e4bb1256.entry.js.map +1 -0
  377. package/dist/web-components-library/{p-e231e811.entry.js → p-f487290e.entry.js} +2 -2
  378. package/dist/web-components-library/p-f4bac89b.entry.js +2 -0
  379. package/dist/web-components-library/p-f4bac89b.entry.js.map +1 -0
  380. package/dist/web-components-library/web-components-library.esm.js +1 -1
  381. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  382. package/package.json +2 -3
  383. package/react/components.d.ts +1 -0
  384. package/react/components.js +3 -2
  385. package/react/components.js.map +1 -1
  386. package/{dist/web-components-library/p-8117a929.entry.js → www/build/p-01f941c2.entry.js} +2 -2
  387. package/www/build/{p-0756fe6f.entry.js → p-028dd72a.entry.js} +2 -2
  388. package/{dist/web-components-library/p-e160545f.entry.js → www/build/p-0990d475.entry.js} +2 -2
  389. package/{dist/web-components-library/p-e160545f.entry.js.map → www/build/p-0990d475.entry.js.map} +1 -1
  390. package/www/build/{p-6ca0ee2f.entry.js → p-0a49dd1c.entry.js} +2 -2
  391. package/www/build/{p-09ba466b.entry.js → p-240de9aa.entry.js} +2 -2
  392. package/www/build/{p-f1c55eda.entry.js → p-28534fb5.entry.js} +2 -2
  393. package/{dist/web-components-library/p-966cbf03.entry.js → www/build/p-28d83c86.entry.js} +2 -2
  394. package/www/build/{p-cbab66f7.entry.js → p-2bdac94e.entry.js} +2 -2
  395. package/www/build/{p-e8419614.entry.js → p-2ffdfbb1.entry.js} +2 -2
  396. package/www/build/p-31bd2a1c.entry.js +2 -0
  397. package/www/build/p-31bd2a1c.entry.js.map +1 -0
  398. package/www/build/{p-8c52635e.entry.js → p-4551b0df.entry.js} +2 -2
  399. package/www/build/{p-e639e1bc.entry.js → p-460b2068.entry.js} +2 -2
  400. package/{dist/web-components-library/p-0eab3c09.entry.js → www/build/p-46ea0b2e.entry.js} +3 -3
  401. package/www/build/{p-689b0280.entry.js → p-4a257653.entry.js} +2 -2
  402. package/www/build/{p-8dec332e.entry.js → p-4aaf0172.entry.js} +2 -2
  403. package/www/build/{p-d6d3a92a.entry.js → p-4affbb99.entry.js} +2 -2
  404. package/www/build/{p-caa491ca.entry.js → p-5989465b.entry.js} +2 -2
  405. package/www/build/{p-d8aa6afa.entry.js → p-5a1f98a2.entry.js} +2 -2
  406. package/{dist/web-components-library/p-d0d54d42.entry.js → www/build/p-5c5882c6.entry.js} +2 -2
  407. package/www/build/{p-01302e57.entry.js → p-5f94986f.entry.js} +2 -2
  408. package/www/build/p-6cff173f.entry.js +2 -0
  409. package/www/build/{p-97608d16.entry.js.map → p-6cff173f.entry.js.map} +1 -1
  410. package/www/build/p-6cffbabc.entry.js +2 -0
  411. package/{dist/web-components-library/p-ac585bcd.entry.js.map → www/build/p-6cffbabc.entry.js.map} +1 -1
  412. package/www/build/{p-1ad8810a.entry.js → p-7194003a.entry.js} +2 -2
  413. package/{dist/web-components-library/p-2b8eb0c2.entry.js → www/build/p-78146cef.entry.js} +2 -2
  414. package/www/build/{p-4fbcf534.entry.js → p-7a4f6a5b.entry.js} +2 -2
  415. package/www/build/{p-6793061a.entry.js → p-7ceddb7a.entry.js} +2 -2
  416. package/www/build/{p-4c730d4a.entry.js → p-86160fe3.entry.js} +2 -2
  417. package/www/build/{p-63c1bde5.entry.js → p-863fd1c4.entry.js} +2 -2
  418. package/www/build/p-8fc213c2.entry.js +2 -0
  419. package/www/build/p-8fc213c2.entry.js.map +1 -0
  420. package/www/build/{p-5cf3a797.entry.js → p-943db3a8.entry.js} +2 -2
  421. package/www/build/{p-dc5ba112.entry.js → p-94916bdf.entry.js} +2 -2
  422. package/www/build/p-a2e87cec.entry.js +2 -0
  423. package/www/build/{p-badd98ad.entry.js → p-ac477ae7.entry.js} +2 -2
  424. package/www/build/p-af5e8524.entry.js +2 -0
  425. package/www/build/{p-7916e0f7.entry.js → p-b3f1b5c1.entry.js} +2 -2
  426. package/www/build/p-b716b49c.js +2 -0
  427. package/www/build/{p-962c7f6b.entry.js → p-ceeb3e2a.entry.js} +2 -2
  428. package/www/build/p-d60684d5.entry.js +2 -0
  429. package/www/build/p-d60684d5.entry.js.map +1 -0
  430. package/www/build/{p-cb1de7b4.entry.js → p-dc086eb5.entry.js} +2 -2
  431. package/www/build/p-deb7f8d7.entry.js +2 -0
  432. package/www/build/{p-6273db7f.entry.js → p-e0b88075.entry.js} +2 -2
  433. package/www/build/p-e4bb1256.entry.js +2 -0
  434. package/www/build/p-e4bb1256.entry.js.map +1 -0
  435. package/www/build/{p-e231e811.entry.js → p-f487290e.entry.js} +2 -2
  436. package/www/build/p-f4bac89b.entry.js +2 -0
  437. package/www/build/p-f4bac89b.entry.js.map +1 -0
  438. package/www/build/web-components-library.esm.js +1 -1
  439. package/www/build/web-components-library.esm.js.map +1 -1
  440. package/www/index.html +1 -1
  441. package/dist/cjs/placeholder-cover-b679e768.js.map +0 -1
  442. package/dist/collection/components/result-card/z-result-card/index.js.map +0 -1
  443. package/dist/collection/components/result-card/z-result-card/z-result-card.stories.js.map +0 -1
  444. package/dist/components/placeholder-cover.js.map +0 -1
  445. package/dist/esm/placeholder-cover-9346be8f.js +0 -5
  446. package/dist/esm/placeholder-cover-9346be8f.js.map +0 -1
  447. package/dist/web-components-library/p-165d5acc.entry.js +0 -2
  448. package/dist/web-components-library/p-165d5acc.entry.js.map +0 -1
  449. package/dist/web-components-library/p-310c2215.entry.js +0 -2
  450. package/dist/web-components-library/p-310c2215.entry.js.map +0 -1
  451. package/dist/web-components-library/p-3ed25564.entry.js +0 -2
  452. package/dist/web-components-library/p-67edb420.entry.js +0 -2
  453. package/dist/web-components-library/p-74819cbe.entry.js +0 -2
  454. package/dist/web-components-library/p-8d55127c.entry.js +0 -2
  455. package/dist/web-components-library/p-8d55127c.entry.js.map +0 -1
  456. package/dist/web-components-library/p-8d923a1d.js +0 -2
  457. package/dist/web-components-library/p-8d923a1d.js.map +0 -1
  458. package/dist/web-components-library/p-97608d16.entry.js +0 -2
  459. package/dist/web-components-library/p-abd17b10.entry.js +0 -2
  460. package/dist/web-components-library/p-abd17b10.entry.js.map +0 -1
  461. package/dist/web-components-library/p-ac585bcd.entry.js +0 -2
  462. package/www/build/p-165d5acc.entry.js +0 -2
  463. package/www/build/p-165d5acc.entry.js.map +0 -1
  464. package/www/build/p-310c2215.entry.js +0 -2
  465. package/www/build/p-310c2215.entry.js.map +0 -1
  466. package/www/build/p-3ed25564.entry.js +0 -2
  467. package/www/build/p-67edb420.entry.js +0 -2
  468. package/www/build/p-74819cbe.entry.js +0 -2
  469. package/www/build/p-8d55127c.entry.js +0 -2
  470. package/www/build/p-8d55127c.entry.js.map +0 -1
  471. package/www/build/p-8d923a1d.js +0 -2
  472. package/www/build/p-8d923a1d.js.map +0 -1
  473. package/www/build/p-97608d16.entry.js +0 -2
  474. package/www/build/p-abd17b10.entry.js +0 -2
  475. package/www/build/p-abd17b10.entry.js.map +0 -1
  476. package/www/build/p-ac585bcd.entry.js +0 -2
  477. package/www/build/p-f9314f48.js +0 -2
  478. /package/dist/collection/components/{result-card/z-result-card → z-result-card}/z-result-card.stories.js +0 -0
  479. /package/dist/types/components/{result-card/z-result-card → z-result-card}/z-result-card.stories.d.ts +0 -0
  480. /package/dist/web-components-library/{p-8117a929.entry.js.map → p-01f941c2.entry.js.map} +0 -0
  481. /package/dist/web-components-library/{p-0756fe6f.entry.js.map → p-028dd72a.entry.js.map} +0 -0
  482. /package/dist/web-components-library/{p-6ca0ee2f.entry.js.map → p-0a49dd1c.entry.js.map} +0 -0
  483. /package/dist/web-components-library/{p-09ba466b.entry.js.map → p-240de9aa.entry.js.map} +0 -0
  484. /package/dist/web-components-library/{p-f1c55eda.entry.js.map → p-28534fb5.entry.js.map} +0 -0
  485. /package/dist/web-components-library/{p-966cbf03.entry.js.map → p-28d83c86.entry.js.map} +0 -0
  486. /package/dist/web-components-library/{p-cbab66f7.entry.js.map → p-2bdac94e.entry.js.map} +0 -0
  487. /package/dist/web-components-library/{p-e8419614.entry.js.map → p-2ffdfbb1.entry.js.map} +0 -0
  488. /package/dist/web-components-library/{p-8c52635e.entry.js.map → p-4551b0df.entry.js.map} +0 -0
  489. /package/dist/web-components-library/{p-e639e1bc.entry.js.map → p-460b2068.entry.js.map} +0 -0
  490. /package/dist/web-components-library/{p-0eab3c09.entry.js.map → p-46ea0b2e.entry.js.map} +0 -0
  491. /package/dist/web-components-library/{p-689b0280.entry.js.map → p-4a257653.entry.js.map} +0 -0
  492. /package/dist/web-components-library/{p-8dec332e.entry.js.map → p-4aaf0172.entry.js.map} +0 -0
  493. /package/dist/web-components-library/{p-d6d3a92a.entry.js.map → p-4affbb99.entry.js.map} +0 -0
  494. /package/dist/web-components-library/{p-caa491ca.entry.js.map → p-5989465b.entry.js.map} +0 -0
  495. /package/dist/web-components-library/{p-d8aa6afa.entry.js.map → p-5a1f98a2.entry.js.map} +0 -0
  496. /package/dist/web-components-library/{p-d0d54d42.entry.js.map → p-5c5882c6.entry.js.map} +0 -0
  497. /package/dist/web-components-library/{p-01302e57.entry.js.map → p-5f94986f.entry.js.map} +0 -0
  498. /package/dist/web-components-library/{p-1ad8810a.entry.js.map → p-7194003a.entry.js.map} +0 -0
  499. /package/dist/web-components-library/{p-2b8eb0c2.entry.js.map → p-78146cef.entry.js.map} +0 -0
  500. /package/dist/web-components-library/{p-4fbcf534.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
  501. /package/dist/web-components-library/{p-6793061a.entry.js.map → p-7ceddb7a.entry.js.map} +0 -0
  502. /package/dist/web-components-library/{p-4c730d4a.entry.js.map → p-86160fe3.entry.js.map} +0 -0
  503. /package/dist/web-components-library/{p-63c1bde5.entry.js.map → p-863fd1c4.entry.js.map} +0 -0
  504. /package/dist/web-components-library/{p-5cf3a797.entry.js.map → p-943db3a8.entry.js.map} +0 -0
  505. /package/dist/web-components-library/{p-dc5ba112.entry.js.map → p-94916bdf.entry.js.map} +0 -0
  506. /package/dist/web-components-library/{p-67edb420.entry.js.map → p-a2e87cec.entry.js.map} +0 -0
  507. /package/dist/web-components-library/{p-badd98ad.entry.js.map → p-ac477ae7.entry.js.map} +0 -0
  508. /package/dist/web-components-library/{p-3ed25564.entry.js.map → p-af5e8524.entry.js.map} +0 -0
  509. /package/dist/web-components-library/{p-7916e0f7.entry.js.map → p-b3f1b5c1.entry.js.map} +0 -0
  510. /package/dist/web-components-library/{p-962c7f6b.entry.js.map → p-ceeb3e2a.entry.js.map} +0 -0
  511. /package/dist/web-components-library/{p-cb1de7b4.entry.js.map → p-dc086eb5.entry.js.map} +0 -0
  512. /package/dist/web-components-library/{p-74819cbe.entry.js.map → p-deb7f8d7.entry.js.map} +0 -0
  513. /package/dist/web-components-library/{p-6273db7f.entry.js.map → p-e0b88075.entry.js.map} +0 -0
  514. /package/dist/web-components-library/{p-e231e811.entry.js.map → p-f487290e.entry.js.map} +0 -0
  515. /package/www/build/{p-8117a929.entry.js.map → p-01f941c2.entry.js.map} +0 -0
  516. /package/www/build/{p-0756fe6f.entry.js.map → p-028dd72a.entry.js.map} +0 -0
  517. /package/www/build/{p-6ca0ee2f.entry.js.map → p-0a49dd1c.entry.js.map} +0 -0
  518. /package/www/build/{p-09ba466b.entry.js.map → p-240de9aa.entry.js.map} +0 -0
  519. /package/www/build/{p-f1c55eda.entry.js.map → p-28534fb5.entry.js.map} +0 -0
  520. /package/www/build/{p-966cbf03.entry.js.map → p-28d83c86.entry.js.map} +0 -0
  521. /package/www/build/{p-cbab66f7.entry.js.map → p-2bdac94e.entry.js.map} +0 -0
  522. /package/www/build/{p-e8419614.entry.js.map → p-2ffdfbb1.entry.js.map} +0 -0
  523. /package/www/build/{p-8c52635e.entry.js.map → p-4551b0df.entry.js.map} +0 -0
  524. /package/www/build/{p-e639e1bc.entry.js.map → p-460b2068.entry.js.map} +0 -0
  525. /package/www/build/{p-0eab3c09.entry.js.map → p-46ea0b2e.entry.js.map} +0 -0
  526. /package/www/build/{p-689b0280.entry.js.map → p-4a257653.entry.js.map} +0 -0
  527. /package/www/build/{p-8dec332e.entry.js.map → p-4aaf0172.entry.js.map} +0 -0
  528. /package/www/build/{p-d6d3a92a.entry.js.map → p-4affbb99.entry.js.map} +0 -0
  529. /package/www/build/{p-caa491ca.entry.js.map → p-5989465b.entry.js.map} +0 -0
  530. /package/www/build/{p-d8aa6afa.entry.js.map → p-5a1f98a2.entry.js.map} +0 -0
  531. /package/www/build/{p-d0d54d42.entry.js.map → p-5c5882c6.entry.js.map} +0 -0
  532. /package/www/build/{p-01302e57.entry.js.map → p-5f94986f.entry.js.map} +0 -0
  533. /package/www/build/{p-1ad8810a.entry.js.map → p-7194003a.entry.js.map} +0 -0
  534. /package/www/build/{p-2b8eb0c2.entry.js.map → p-78146cef.entry.js.map} +0 -0
  535. /package/www/build/{p-4fbcf534.entry.js.map → p-7a4f6a5b.entry.js.map} +0 -0
  536. /package/www/build/{p-6793061a.entry.js.map → p-7ceddb7a.entry.js.map} +0 -0
  537. /package/www/build/{p-4c730d4a.entry.js.map → p-86160fe3.entry.js.map} +0 -0
  538. /package/www/build/{p-63c1bde5.entry.js.map → p-863fd1c4.entry.js.map} +0 -0
  539. /package/www/build/{p-5cf3a797.entry.js.map → p-943db3a8.entry.js.map} +0 -0
  540. /package/www/build/{p-dc5ba112.entry.js.map → p-94916bdf.entry.js.map} +0 -0
  541. /package/www/build/{p-67edb420.entry.js.map → p-a2e87cec.entry.js.map} +0 -0
  542. /package/www/build/{p-badd98ad.entry.js.map → p-ac477ae7.entry.js.map} +0 -0
  543. /package/www/build/{p-3ed25564.entry.js.map → p-af5e8524.entry.js.map} +0 -0
  544. /package/www/build/{p-7916e0f7.entry.js.map → p-b3f1b5c1.entry.js.map} +0 -0
  545. /package/www/build/{p-962c7f6b.entry.js.map → p-ceeb3e2a.entry.js.map} +0 -0
  546. /package/www/build/{p-cb1de7b4.entry.js.map → p-dc086eb5.entry.js.map} +0 -0
  547. /package/www/build/{p-74819cbe.entry.js.map → p-deb7f8d7.entry.js.map} +0 -0
  548. /package/www/build/{p-6273db7f.entry.js.map → p-e0b88075.entry.js.map} +0 -0
  549. /package/www/build/{p-e231e811.entry.js.map → p-f487290e.entry.js.map} +0 -0
@@ -174,7 +174,7 @@ export class ZMenuSection {
174
174
  this.onItemsChange();
175
175
  }
176
176
  render() {
177
- return (h(Host, { key: '4dce34f277ab3c8c41171a15a02fd174c45742cd', open: this.open }, h("button", { key: 'b6c535e87dbb5af8808d7a19556ad116cbcca72b', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, h("slot", { key: 'fbbba483ca5fe6d45440c01a89f061565ce641aa', onSlotchange: this.onLabelSlotChange }), this.hasItems && h("z-icon", { key: 'b4c67b7cada94580b4f5853aaa8cbb9818bece74', name: this.open ? "chevron-up" : "chevron-down" })), h("div", { key: '711c085b5d74affb2c23ebd1acdd774b5903e7e5', class: "items", role: "menu", hidden: !this.open }, h("slot", { key: 'a2fe12f235f6b23a96f2bd3a8a18f3a095fcff2d', name: "section", onSlotchange: this.onItemsChange }))));
177
+ return (h(Host, { key: '4fbaa9a39d87fd247d605d32e81f37293671d95b', open: this.open }, h("button", { key: '25b5f34bb741671781fddabe18694a92d19c06c9', ref: (el) => (this.label = el), class: "label", "aria-haspopup": `${!!this.hasItems}`, "aria-expanded": `${!!this.open}`, role: "menuitem", tabindex: this.htmlTabindex, onClick: this.onLabelClick, onKeyDown: this.onLabelKeydown }, h("slot", { key: '9ed5d1309acb2f8a17a583e7a96eddc8741da7c2', onSlotchange: this.onLabelSlotChange }), this.hasItems && h("z-icon", { key: '1677b363b4894c04bee3cae53a604baad136236a', name: this.open ? "chevron-up" : "chevron-down" })), h("div", { key: '74f37c1f2850cca5bf7fe756107c6984f3a7dd13', class: "items", role: "menu", hidden: !this.open }, h("slot", { key: '8382266ea2f2a3c04beab0d6304a459a5f56a48b', name: "section", onSlotchange: this.onItemsChange }))));
178
178
  }
179
179
  static get is() { return "z-menu-section"; }
180
180
  static get encapsulation() { return "shadow"; }
@@ -123,16 +123,16 @@ export class ZModal {
123
123
  e.preventDefault();
124
124
  }
125
125
  render() {
126
- return (h("dialog", { key: 'eebc09ed6ac159c725b0614bd7ca030699b05b9f', class: {
126
+ return (h("dialog", { key: 'ff8e8cf9ce5684a8ca081ab2aec3ef1c8824b6ae', class: {
127
127
  "modal-dialog": !this.scrollInside,
128
- }, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onCancel: (e) => this.handleEscape(e) }, h("div", { key: 'a422d0d13979d51cd4b48f30077962b7b1cf91d3', class: {
128
+ }, "aria-labelledby": "modal-title", "aria-describedby": "modal-content", role: this.alertdialog ? "alertdialog" : undefined, ref: (el) => (this.dialog = el), onClose: () => this.emitModalClose(), onCancel: (e) => this.handleEscape(e) }, h("div", { key: '94c33c53083aafc4607fcb4b9c099c7d02c035b4', class: {
129
129
  "modal-container": true,
130
130
  "modal-container-scroll-inside": this.scrollInside,
131
131
  "modal-container-scroll-outside": !this.scrollInside,
132
- }, id: this.modalid }, h("header", { key: 'f605cdc8fd3af1f94fca27de5d4eb088769d592c', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: '77d079642e8797ecd131f42dde419964b315858e' }, this.modaltitle && h("h1", { key: '1cf2c6917e03b6a9198ed86e03414191f01ae760', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: 'dd6b44a5c67c1cb3a76252aa172d12a639d63153', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: '8d91575e38810d7b93cb75807d985ffc5689ea67', class: {
132
+ }, id: this.modalid }, h("header", { key: '0e17ec7ccaa1376b9cdabde14355fc6dcbec4f26', onClick: this.emitModalHeaderActive.bind(this) }, h("div", { key: '09a5a59ca386289939c61e29f79d201454d41165' }, this.modaltitle && h("h1", { key: '0cf7deea5e044b358882ae0e7bfe4502de1318f5', id: "modal-title" }, this.modaltitle), this.closeButtonSlot()), this.modalsubtitle && (h("div", { key: '2fde62ccc507d999ccd4fd83aa369128e97b9b0c', class: "subtitle", id: "modal-subtitle" }, this.modalsubtitle))), h("div", { key: 'e778555f2d7d88a965e454ee1231004da8d293e7', class: {
133
133
  "modal-content-scroll-inside": this.scrollInside,
134
134
  "modal-content-scroll-outside": !this.scrollInside,
135
- }, id: "modal-content" }, h("slot", { key: '3ff48549ece0ec01d7ff6714dbae41998cd64bc2', name: "modalContent" }))), h("div", { key: '08004938884c7984cbf535653e82ce775c559d48', class: {
135
+ }, id: "modal-content" }, h("slot", { key: 'acee4bb3444264df0b26a465c52f2ee282ccca76', name: "modalContent" }))), h("div", { key: '9abb8e64380030960d5669bec37a7f2f64d78693', class: {
136
136
  "modal-background": true,
137
137
  "modal-background-scroll-outside": !this.scrollInside,
138
138
  }, "data-action": "modalBackground", "data-modal": this.modalid, onClick: () => {
@@ -221,10 +221,10 @@ export class ZNavigationTabs {
221
221
  (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
222
222
  }
223
223
  render() {
224
- return (h(Host, { key: '5216c71c53d3263870b4d64749554c36dadfdb8c', class: {
224
+ return (h(Host, { key: '69bc5562051734e576c1dbb2af850ef01a70a693', class: {
225
225
  "interactive-2": this.size === NavigationTabsSize.SMALL,
226
226
  "interactive-1": this.size !== NavigationTabsSize.SMALL,
227
- }, scrollable: this.canNavigate }, h("button", { key: 'b59fcef70ff51453d679678caabae7f69a3a91d9', class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabIndex: -1, disabled: !this.canNavigatePrev, "aria-label": "Mostra elementi precedenti", hidden: !this.canNavigate }, h("z-icon", { key: '2f2a9f0630c6f7c340132bfde3c90c2392ea3f07', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 })), h("nav", { key: 'f8e06aaadd56dfd9e1ab068a4a0d5633083b2ca9', role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.nav = el !== null && el !== void 0 ? el : this.nav), onScroll: this.checkScrollEnabled.bind(this), "aria-orientation": this.orientation }, h("slot", { key: '8f1062acbb5616c395cac371d8737660f69c5326' })), h("button", { key: '28342d0ad1c43119862b148b550c57c352d6a07c', class: "navigation-button", onClick: this.navigateForward.bind(this), tabIndex: -1, disabled: !this.canNavigateNext, "aria-label": "Mostra elementi successivi", hidden: !this.canNavigate }, h("z-icon", { key: 'e975d966cdc0f0f52345bca3cb842cd0672783b8', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 }))));
227
+ }, scrollable: this.canNavigate }, h("button", { key: 'c851af9053873ea70d1dee5216bb680deea111f0', class: "navigation-button", onClick: this.navigateBackwards.bind(this), tabIndex: -1, disabled: !this.canNavigatePrev, "aria-label": "Mostra elementi precedenti", hidden: !this.canNavigate }, h("z-icon", { key: '6a69b89400fea7a87fd18d8d59e183b85aa0c87f', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-left" : "chevron-up", width: 16, height: 16 })), h("nav", { key: '997e215eecc0454b96e0034fece50be22cb1eef0', role: "tablist", "aria-label": this.ariaLabel, ref: (el) => (this.nav = el !== null && el !== void 0 ? el : this.nav), onScroll: this.checkScrollEnabled.bind(this), "aria-orientation": this.orientation }, h("slot", { key: '8a214ee36e66badda0a8825fbe7c2268ff0fc6df' })), h("button", { key: '627501af784136a1eff68c0e002812144062128e', class: "navigation-button", onClick: this.navigateForward.bind(this), tabIndex: -1, disabled: !this.canNavigateNext, "aria-label": "Mostra elementi successivi", hidden: !this.canNavigate }, h("z-icon", { key: '68728de5a048363fd186c4a26cc8872fd4b0253e', name: this.orientation === NavigationTabsOrientation.HORIZONTAL ? "chevron-right" : "chevron-down", width: 16, height: 16 }))));
228
228
  }
229
229
  static get is() { return "z-navigation-tabs"; }
230
230
  static get originalStyleUrls() {
@@ -25,7 +25,7 @@ export class ZNotification {
25
25
  }
26
26
  render() {
27
27
  var _a;
28
- return (h(Host, { key: '1476969ad9cd71af738c1032fa1b426a31faef9f' }, this.contenticonname && (h("z-icon", { key: '449b25859ae4f501b42d4c4cd0c26cd9dcb1935e', class: "status-icon", name: this.contenticonname, width: 16, height: 16 })), h("div", { key: '5b8feced4f05c6e14e6ac7e9a06096db6fd93997', class: "content-container" }, h("div", { key: 'ec6a27aebcc0d60efdb5fd3cb29cc7fddc441331', class: "content-text" }, h("slot", { key: 'd66a3fbf761e5460f0d52c5111b07166c59fa7f4' })), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) && (h("button", { key: '73f5c71a14294c230342ef7382f9ae3fa2b330ce', class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext))), this.showclose && (h("button", { key: 'a0be489166ad16faa182adac379ce08ca06317ed', class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, h("z-icon", { key: '254d0f36a6ee1a356506db703658053959020070', name: "multiply-circle", width: 16, height: 16 })))));
28
+ return (h(Host, { key: 'aac3e6385d2f77e80c9933e666770e3da17c21a5' }, this.contenticonname && (h("z-icon", { key: '1ba77acd6db4e01ac47ae605c4ab05a345999462', class: "status-icon", name: this.contenticonname, width: 16, height: 16 })), h("div", { key: '9df24bcba7a1f49c803f339a0ac5ddafc08c03c9', class: "content-container" }, h("div", { key: 'bd1a76905a9c14fa77a1704a127a65a8ba9adab8', class: "content-text" }, h("slot", { key: 'b126d399950149b0d4cd94d3c2480678d7f91a97' })), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) && (h("button", { key: '63f56578ed42e720c20b57424c1d824729279e36', class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext))), this.showclose && (h("button", { key: '81ccf6858d6b559a23b1c9266d8af55e7bd3a2f2', class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, h("z-icon", { key: '96c95d07ef561d4b900acefaef90e00d85dc3904', name: "multiply-circle", width: 16, height: 16 })))));
29
29
  }
30
30
  static get is() { return "z-notification"; }
31
31
  static get encapsulation() { return "shadow"; }
@@ -12,6 +12,7 @@ export class ZOffcanvas {
12
12
  this.open = false;
13
13
  this.transitiondirection = TransitionDirection.LEFT;
14
14
  this.skipLoadAnimation = false;
15
+ this.showBackdrop = true;
15
16
  this.skipAnimation = false;
16
17
  }
17
18
  /**
@@ -66,7 +67,8 @@ export class ZOffcanvas {
66
67
  this.open = false;
67
68
  }
68
69
  render() {
69
- return (h(Host, { key: '0c9caef91e7fc366aeb0bceb20902f220b153dca', "skip-animation": this.skipAnimation, "aria-hidden": !this.open ? "true" : null }, h("div", { key: 'f3fd979c181a32a8c647f3f6eac1603658696629', class: "canvas-container", role: "presentation", ref: (el) => (this.canvasContainer = el) }, h("div", { key: '80493b2714dcfc795c8820c4a6d5e865f0bbb715', class: "canvas-content z-scrollbar", role: "presentation" }, h("slot", { key: '2512d43345e106c728c782f91e93973a5f55bfe7', name: "canvasContent" }))), (this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) && (h("div", { key: '939b5ea940e96fbcec87ff7e48b6ba578ff0848e', class: "canvas-background", onClick: () => (this.open = false) }))));
70
+ return (h(Host, { key: '52ce71415709ffe342802b789448fe168eef9d3d', "skip-animation": this.skipAnimation, "aria-hidden": !this.open ? "true" : null }, h("div", { key: '93173c6176acd24a8f02541b5becd3dfd7f98ac3', class: "canvas-container", role: "presentation", ref: (el) => (this.canvasContainer = el) }, h("div", { key: '82b36a24cbf7856d8f8ee17952e0cf733529f7ae', class: "canvas-content z-scrollbar", role: "presentation" }, h("slot", { key: 'e5281598686c2d0de459045ceaa81c1c31dbcd22', name: "canvasContent" }))), (this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) &&
71
+ this.showBackdrop && (h("div", { key: 'b912144f9bf525114394cd03f84f38f810c8cb29', class: "backdrop", onClick: () => (this.open = false) }))));
70
72
  }
71
73
  static get is() { return "z-offcanvas"; }
72
74
  static get encapsulation() { return "scoped"; }
@@ -168,6 +170,24 @@ export class ZOffcanvas {
168
170
  "attribute": "skip-load-animation",
169
171
  "reflect": false,
170
172
  "defaultValue": "false"
173
+ },
174
+ "showBackdrop": {
175
+ "type": "boolean",
176
+ "mutable": false,
177
+ "complexType": {
178
+ "original": "boolean",
179
+ "resolved": "boolean",
180
+ "references": {}
181
+ },
182
+ "required": false,
183
+ "optional": false,
184
+ "docs": {
185
+ "tags": [],
186
+ "text": "Whether to show the backdrop when the offcanvas is open. Default: true"
187
+ },
188
+ "attribute": "show-backdrop",
189
+ "reflect": false,
190
+ "defaultValue": "true"
171
191
  }
172
192
  };
173
193
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-offcanvas/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AAClG,OAAO,EAAC,gBAAgB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAElE;;;;;GAKG;AAOH,MAAM,OAAO,UAAU;;uBASQ,gBAAgB,CAAC,WAAW;oBAIlD,KAAK;mCAOgC,mBAAmB,CAAC,IAAI;iCAQhD,KAAK;6BAQD,KAAK;;IAI7B;;OAEG;IAGH,SAAS,CAAC,KAAY;QACpB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,OAAO;QACT,CAAC;QAED,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,KAAK,CAAC,eAAe,EAAE,CAAC;IAC1B,CAAC;I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;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,uEACa,IAAI,CAAC,aAAa,iBACrB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;YAEvC,4DACE,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,cAAc,EACnB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;gBAExC,4DACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc;oBAEnB,6DAAM,IAAI,EAAC,eAAe,GAAQ,CAC9B,CACF;YACL,CAAC,IAAI,CAAC,OAAO,IAAI,gBAAgB,CAAC,OAAO,IAAI,IAAI,CAAC,mBAAmB,KAAK,mBAAmB,CAAC,EAAE,CAAC,IAAI,CACpG,4DACE,KAAK,EAAC,mBAAmB,EACzB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,GAC7B,CACR,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Event, EventEmitter, h, Host, Listen, Prop, State, Watch} from \"@stencil/core\";\nimport {OffCanvasVariant, TransitionDirection} from \"../../beans\";\n\n/**\n * @slot canvasContent - Slot for the offcanvas content.\n * @cssprop --z-offcanvas--top-space - Top offset of the offcanvas, for `overlay` variant. Useful when there is some fixed element above the offcanvas. Default: `0`.\n * @cssprop --z-offcanvas--container-width - Width of the offcanvas for `left` and `right` direction. Default: `375px`.\n * @cssprop --z-offcanvas--container-height - Height of the offcanvas for `up` direction. Default: `90%`.\n */\n@Component({\n tag: \"z-offcanvas\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZOffcanvas {\n /**\n * Offcanvas variant.\n * - `overlay`: The offcanvas covers the page content putting an overlay.\n * - `pushcontent`: The offcanvas isn't absolutely positioned and \"pushes\" the page content.\n * > NB: `pushcontent` variant may need some extra style tuning of the context around the component to work properly.\n * Also, the `pushcontent` variant doesn't have the open/close transition.\n */\n @Prop({reflect: true})\n variant?: OffCanvasVariant = OffCanvasVariant.PUSHCONTENT;\n\n /** Whether the offcanvas is open. Default: false */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * Open the content transitioning to a specified direction.\n * The `up` direction always show the `overlay`, also when the variant is `pushcontent`.\n */\n @Prop({reflect: true})\n transitiondirection?: TransitionDirection = TransitionDirection.LEFT;\n\n /**\n * Skip the opening transition when the offcanvas is already open at the first render.\n * @deprecated This prop is not needed anymore, the component will automatically skip the transition\n * when it starts with `open` set to `true`. Only exists for Typescript backward compatibility.\n */\n @Prop()\n skipLoadAnimation = false;\n\n /** emitted when `open` prop changes */\n @Event()\n canvasOpenStatusChanged: EventEmitter;\n\n /** Used to skip the opening transition when the offcanvas is already open at the first render. */\n @State()\n private skipAnimation = false;\n\n private canvasContainer: HTMLElement;\n\n /**\n * Stop the event default behavior and propagation when the offcanvas is closed.\n */\n @Listen(\"click\", {capture: true})\n @Listen(\"focusin\", {capture: true})\n stopEvent(event: Event): void {\n if (this.open) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n }\n\n /**\n * Hide the body overflow when the offcanvas is open.\n */\n @Watch(\"variant\")\n private handlePageOverflow(): void {\n const overflow =\n this.variant === OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP\n ? \"overflow-y\"\n : \"overflow-x\";\n\n document.body.style[overflow] = this.open ? \"hidden\" : \"\";\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n this.canvasOpenStatusChanged.emit(this.open);\n\n if (!this.open) {\n // when the offcanvas is closing, wait for the transitionend event to end before handling the body overflow\n const listenerCallback = (): void => {\n this.handlePageOverflow();\n this.canvasContainer.removeEventListener(\"transitionend\", listenerCallback);\n };\n\n this.canvasContainer?.addEventListener(\"transitionend\", listenerCallback);\n } else {\n this.handlePageOverflow();\n }\n }\n\n componentWillLoad(): void {\n if (this.open) {\n this.skipAnimation = true;\n }\n }\n\n componentDidLoad(): void {\n this.handlePageOverflow();\n }\n\n componentDidRender(): void {\n this.skipAnimation = false;\n }\n\n connectedCallback(): void {\n this.handlePageOverflow();\n }\n\n disconnectedCallback(): void {\n this.open = false;\n }\n\n render(): HTMLZOffcanvasElement {\n return (\n <Host\n skip-animation={this.skipAnimation}\n aria-hidden={!this.open ? \"true\" : null}\n >\n <div\n class=\"canvas-container\"\n role=\"presentation\"\n ref={(el) => (this.canvasContainer = el)}\n >\n <div\n class=\"canvas-content z-scrollbar\"\n role=\"presentation\"\n >\n <slot name=\"canvasContent\"></slot>\n </div>\n </div>\n {(this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) && (\n <div\n class=\"canvas-background\"\n onClick={() => (this.open = false)}\n ></div>\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-offcanvas/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;AAClG,OAAO,EAAC,gBAAgB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAElE;;;;;GAKG;AAOH,MAAM,OAAO,UAAU;;uBASQ,gBAAgB,CAAC,WAAW;oBAIlD,KAAK;mCAOgC,mBAAmB,CAAC,IAAI;iCAQhD,KAAK;4BAIV,IAAI;6BAQK,KAAK;;IAI7B;;OAEG;IAGH,SAAS,CAAC,KAAY;QACpB,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,OAAO;QACT,CAAC;QAED,KAAK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5B,CAAC;IAED,oBAAoB;QAClB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;IACpB,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,uEACa,IAAI,CAAC,aAAa,iBACrB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;YAEvC,4DACE,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,cAAc,EACnB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;gBAExC,4DACE,KAAK,EAAC,4BAA4B,EAClC,IAAI,EAAC,cAAc;oBAEnB,6DAAM,IAAI,EAAC,eAAe,GAAQ,CAC9B,CACF;YACL,CAAC,IAAI,CAAC,OAAO,IAAI,gBAAgB,CAAC,OAAO,IAAI,IAAI,CAAC,mBAAmB,KAAK,mBAAmB,CAAC,EAAE,CAAC;gBAChG,IAAI,CAAC,YAAY,IAAI,CACnB,4DACE,KAAK,EAAC,UAAU,EAChB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,GAC7B,CACR,CACE,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, Event, EventEmitter, h, Host, Listen, Prop, State, Watch} from \"@stencil/core\";\nimport {OffCanvasVariant, TransitionDirection} from \"../../beans\";\n\n/**\n * @slot canvasContent - Slot for the offcanvas content.\n * @cssprop --z-offcanvas--top-space - Top offset of the offcanvas, for `overlay` variant. Useful when there is some fixed element above the offcanvas. Default: `0`.\n * @cssprop --z-offcanvas--container-width - Width of the offcanvas for `left` and `right` direction. Default: `375px`.\n * @cssprop --z-offcanvas--container-height - Height of the offcanvas for `up` direction. Default: `90%`.\n */\n@Component({\n tag: \"z-offcanvas\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZOffcanvas {\n /**\n * Offcanvas variant.\n * - `overlay`: The offcanvas covers the page content putting an overlay.\n * - `pushcontent`: The offcanvas isn't absolutely positioned and \"pushes\" the page content.\n * > NB: `pushcontent` variant may need some extra style tuning of the context around the component to work properly.\n * Also, the `pushcontent` variant doesn't have the open/close transition.\n */\n @Prop({reflect: true})\n variant?: OffCanvasVariant = OffCanvasVariant.PUSHCONTENT;\n\n /** Whether the offcanvas is open. Default: false */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * Open the content transitioning to a specified direction.\n * The `up` direction always show the `overlay`, also when the variant is `pushcontent`.\n */\n @Prop({reflect: true})\n transitiondirection?: TransitionDirection = TransitionDirection.LEFT;\n\n /**\n * Skip the opening transition when the offcanvas is already open at the first render.\n * @deprecated This prop is not needed anymore, the component will automatically skip the transition\n * when it starts with `open` set to `true`. Only exists for Typescript backward compatibility.\n */\n @Prop()\n skipLoadAnimation = false;\n\n /** Whether to show the backdrop when the offcanvas is open. Default: true */\n @Prop()\n showBackdrop = true;\n\n /** emitted when `open` prop changes */\n @Event()\n canvasOpenStatusChanged: EventEmitter;\n\n /** Used to skip the opening transition when the offcanvas is already open at the first render. */\n @State()\n private skipAnimation = false;\n\n private canvasContainer: HTMLElement;\n\n /**\n * Stop the event default behavior and propagation when the offcanvas is closed.\n */\n @Listen(\"click\", {capture: true})\n @Listen(\"focusin\", {capture: true})\n stopEvent(event: Event): void {\n if (this.open) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n }\n\n /**\n * Hide the body overflow when the offcanvas is open.\n */\n @Watch(\"variant\")\n private handlePageOverflow(): void {\n const overflow =\n this.variant === OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP\n ? \"overflow-y\"\n : \"overflow-x\";\n\n document.body.style[overflow] = this.open ? \"hidden\" : \"\";\n }\n\n @Watch(\"open\")\n onOpenChanged(): void {\n this.canvasOpenStatusChanged.emit(this.open);\n\n if (!this.open) {\n // when the offcanvas is closing, wait for the transitionend event to end before handling the body overflow\n const listenerCallback = (): void => {\n this.handlePageOverflow();\n this.canvasContainer.removeEventListener(\"transitionend\", listenerCallback);\n };\n\n this.canvasContainer?.addEventListener(\"transitionend\", listenerCallback);\n } else {\n this.handlePageOverflow();\n }\n }\n\n componentWillLoad(): void {\n if (this.open) {\n this.skipAnimation = true;\n }\n }\n\n componentDidLoad(): void {\n this.handlePageOverflow();\n }\n\n componentDidRender(): void {\n this.skipAnimation = false;\n }\n\n connectedCallback(): void {\n this.handlePageOverflow();\n }\n\n disconnectedCallback(): void {\n this.open = false;\n }\n\n render(): HTMLZOffcanvasElement {\n return (\n <Host\n skip-animation={this.skipAnimation}\n aria-hidden={!this.open ? \"true\" : null}\n >\n <div\n class=\"canvas-container\"\n role=\"presentation\"\n ref={(el) => (this.canvasContainer = el)}\n >\n <div\n class=\"canvas-content z-scrollbar\"\n role=\"presentation\"\n >\n <slot name=\"canvasContent\"></slot>\n </div>\n </div>\n {(this.variant == OffCanvasVariant.OVERLAY || this.transitiondirection === TransitionDirection.UP) &&\n this.showBackdrop && (\n <div\n class=\"backdrop\"\n onClick={() => (this.open = false)}\n ></div>\n )}\n </Host>\n );\n }\n}\n"]}
@@ -27,9 +27,18 @@ const StoryMeta = {
27
27
  },
28
28
  options: Object.values(TransitionDirection),
29
29
  },
30
+ showBackdrop: {
31
+ control: {
32
+ if: {
33
+ arg: "variant",
34
+ eq: OffCanvasVariant.OVERLAY,
35
+ },
36
+ },
37
+ },
30
38
  },
31
39
  args: {
32
40
  "open": true,
41
+ "showBackdrop": true,
33
42
  "--z-offcanvas--top-space": "0px",
34
43
  "--z-offcanvas--container-width": "375px",
35
44
  },
@@ -42,6 +51,7 @@ export const OverlayTransitionDirectionRight = {
42
51
  .variant=${OffCanvasVariant.OVERLAY}
43
52
  .open=${args.open}
44
53
  .transitiondirection=${TransitionDirection.RIGHT}
54
+ .showBackdrop=${args.showBackdrop}
45
55
  style="--z-offcanvas--top-space: ${args["--z-offcanvas--top-space"]}; --z-offcanvas--container-width: ${args["--z-offcanvas--container-width"]}"
46
56
  >
47
57
  <div slot="canvasContent">
@@ -64,6 +74,7 @@ export const OverlayTransitionDirectionLeft = {
64
74
  .variant=${OffCanvasVariant.OVERLAY}
65
75
  .open=${args.open}
66
76
  .transitiondirection=${TransitionDirection.LEFT}
77
+ .showBackdrop=${args.showBackdrop}
67
78
  style="--z-offcanvas--top-space: ${args["--z-offcanvas--top-space"]}; --z-offcanvas--container-width: ${args["--z-offcanvas--container-width"]}"
68
79
  >
69
80
  <div slot="canvasContent">
@@ -91,6 +102,7 @@ export const TransitionDirectionUp = {
91
102
  .open=${args.open}
92
103
  .variant=${OffCanvasVariant.OVERLAY}
93
104
  .transitiondirection=${TransitionDirection.UP}
105
+ .showBackdrop=${args.showBackdrop}
94
106
  style="--z-offcanvas--container-height: ${args["--z-offcanvas--container-height"]}"
95
107
  >
96
108
  <div slot="canvasContent">
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-offcanvas/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAC,gBAAgB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAElE,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAK7B,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;QACpB,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,MAAM,EAAE,KAAK;gBACb,YAAY,EAAE,OAAO;aACtB;SACF;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,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AAE,0BAA0B,EAAE,gCAAgC,CAAC;SAC1G;KACF;IACD,IAAI,EAAE;QACJ,iCAAiC,EAAE,KAAK;KACzC;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;;UAGE,SAAS;;;gBAGH,IAAI,CAAC,IAAI;mBACN,gBAAgB,CAAC,OAAO;+BACZ,mBAAmB,CAAC,EAAE;kDACH,IAAI,CAAC,iCAAiC,CAAC;;;eAG1E,SAAS;;;WAGb;CACM,CAAC;AAElB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,UAAU,EAAE;QACV,QAAQ,EAAE;YACR,OAAO,EAAE,CAAC,SAAS,EAAE,0BAA0B,CAAC;SACjD;KACF;IACD,IAAI,EAAE;QACJ,mBAAmB,EAAE,mBAAmB,CAAC,KAAK;KAC/C;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;iCACyB,IAAI,CAAC,mBAAmB;;;;gBAIzC,IAAI,CAAC,IAAI;mBACN,gBAAgB,CAAC,WAAW;+BAChB,IAAI,CAAC,mBAAmB;iDACN,IAAI,CAAC,gCAAgC,CAAC;;;;;;;;;UAS7E,SAAS;;WAER;CACM,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {ZOffcanvas} from \".\";\nimport {OffCanvasVariant, TransitionDirection} from \"../../beans\";\nimport {CSSVarsArguments} from \"../../utils/storybook-utils\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\ntype ZOffcanvasStoriesArgs = ZOffcanvas &\n CSSVarsArguments<\"z-offcanvas--top-space\" | \"--z-offcanvas--container-width\" | \"--z-offcanvas--container-height\">;\n\nconst StoryMeta = {\n title: \"ZOffcanvas\",\n component: \"z-offcanvas\",\n parameters: {\n layout: \"fullscreen\",\n docs: {\n story: {\n inline: false,\n iframeHeight: \"600px\",\n },\n },\n },\n argTypes: {\n variant: {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(OffCanvasVariant),\n },\n transitiondirection: {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(TransitionDirection),\n },\n },\n args: {\n \"open\": true,\n \"--z-offcanvas--top-space\": \"0px\",\n \"--z-offcanvas--container-width\": \"375px\",\n },\n} satisfies Meta<ZOffcanvasStoriesArgs>;\nexport default StoryMeta;\n\ntype Story = StoryObj<ZOffcanvasStoriesArgs>;\n\nconst DEMO_TEXT =\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam non urna ac urna aliquet lacinia eu ac augue. Nullam consectetur rutrum ultrices. Cras eros ex, cursus nec nisi sed, porttitor fringilla metus. Etiam eleifend fringilla quam et tincidunt. Cras gravida, tortor at consectetur iaculis, lacus eros sagittis magna, ac iaculis orci augue in dolor. Nullam nibh orci, maximus vel tempor sit amet, scelerisque eget velit. Quisque dignissim non dolor iaculis scelerisque. Cras at lectus arcu. Morbi dignissim fermentum magna, sed interdum leo condimentum et. Sed vitae consectetur leo, vel placerat turpis. Donec sagittis rutrum felis, eu consequat tortor efficitur in. Vivamus non nunc vehicula, laoreet lorem id, molestie eros. Etiam ornare at turpis ut suscipit. Nulla non diam eget lorem hendrerit imperdiet. Integer maximus quam non ligula lacinia pharetra. Mauris ullamcorper ligula nec elit pellentesque, a pellentesque mauris tristique. Maecenas tortor enim, rutrum ornare tincidunt sed, tempor vitae urna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce feugiat egestas mollis. In eleifend neque quis tellus bibendum sodales. Curabitur mattis, magna maximus volutpat dapibus, velit nibh dictum elit, eu sodales leo elit vel odio. Quisque sit amet lorem molestie sapien interdum faucibus. Nunc in ex nisi. In hac habitasse platea dictumst. Maecenas dictum, nunc at finibus dapibus, nunc ligula congue odio, in hendrerit dui mauris vel magna. Vivamus sapien dui, eleifend auctor ornare vitae, aliquet in mi. Ut eget risus ex. Vivamus pharetra tellus in volutpat faucibus. Suspendisse interdum sapien ut dui molestie ullamcorper. Ut iaculis, nunc tincidunt posuere convallis, metus lorem mattis mi, nec ullamcorper mi ligula sit amet leo. Fusce at lectus risus. Aliquam tempor sollicitudin ullamcorper. Quisque eget dignissim purus. Nullam convallis purus a sem varius tincidunt ut in dui. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur fermentum rutrum nibh, nec vulputate nisi mollis in. Nullam venenatis metus nulla, at rhoncus neque gravida non. Nam vehicula mollis nunc nec faucibus. Phasellus eu turpis purus. Proin aliquam, ipsum non rutrum tincidunt, erat metus laoreet augue, facilisis ultricies magna tellus sed neque. Suspendisse quis tristique lorem. Pellentesque diam urna, congue et massa in, laoreet aliquet nibh.mybutton Ut vitae ligula eu elit ornare gravida. Vivamus ultricies, augue in fermentum tempus, purus ligula aliquet sapien, viverra condimentum tortor ante et est. Vivamus ex urna, gravida a enim auctor, ultrices ornare turpis. Quisque at lacus massa. Nulla facilisi. Ut id quam at ante sagittis posuere vitae sit amet sem. Fusce suscipit ante pellentesque felis facilisis tincidunt.\";\n\nexport const OverlayTransitionDirectionRight = {\n render: (args) =>\n html`<div id=\"offcanvas-story-container\">\n <z-offcanvas\n .variant=${OffCanvasVariant.OVERLAY}\n .open=${args.open}\n .transitiondirection=${TransitionDirection.RIGHT}\n style=\"--z-offcanvas--top-space: ${args[\"--z-offcanvas--top-space\"]}; --z-offcanvas--container-width: ${args[\n \"--z-offcanvas--container-width\"\n ]}\"\n >\n <div slot=\"canvasContent\">\n <p>${DEMO_TEXT}</p>\n </div>\n </z-offcanvas>\n <div class=\"offcanvas-story-content\">\n <div class=\"heading-2-sb\">Page content</div>\n ${DEMO_TEXT}\n </div>\n </div>`,\n} satisfies Story;\n\nexport const OverlayTransitionDirectionLeft = {\n render: (args) =>\n html`<div id=\"offcanvas-story-container\">\n <div class=\"offcanvas-story-content\">\n <div class=\"heading-2-sb\">Page content</div>\n ${DEMO_TEXT}\n </div>\n <z-offcanvas\n .variant=${OffCanvasVariant.OVERLAY}\n .open=${args.open}\n .transitiondirection=${TransitionDirection.LEFT}\n style=\"--z-offcanvas--top-space: ${args[\"--z-offcanvas--top-space\"]}; --z-offcanvas--container-width: ${args[\n \"--z-offcanvas--container-width\"\n ]}\"\n >\n <div slot=\"canvasContent\">\n <p>${DEMO_TEXT}</p>\n </div>\n </z-offcanvas>\n ${args.transitiondirection === \"right\" ? html`<div class=\"offcanvas-story-content\"></div>` : \"\"}\n </div>`,\n} satisfies Story;\n\nexport const TransitionDirectionUp = {\n parameters: {\n controls: {\n exclude: [\"variant\", \"transitiondirection\", \"--z-offcanvas--top-space\", \"--z-offcanvas--container-width\"],\n },\n },\n args: {\n \"--z-offcanvas--container-height\": \"90%\",\n },\n render: (args) =>\n html`<div id=\"offcanvas-story-container\">\n <div class=\"offcanvas-story-content\">\n <div class=\"heading-2-sb\">Page content</div>\n ${DEMO_TEXT}\n </div>\n <z-offcanvas\n .open=${args.open}\n .variant=${OffCanvasVariant.OVERLAY}\n .transitiondirection=${TransitionDirection.UP}\n style=\"--z-offcanvas--container-height: ${args[\"--z-offcanvas--container-height\"]}\"\n >\n <div slot=\"canvasContent\">\n <p>${DEMO_TEXT}</p>\n </div>\n </z-offcanvas>\n </div>`,\n} satisfies Story;\n\nexport const PushContent = {\n parameters: {\n controls: {\n exclude: [\"variant\", \"--z-offcanvas--top-space\"],\n },\n },\n args: {\n transitiondirection: TransitionDirection.RIGHT,\n },\n render: (args) =>\n html`<div\n class=\"pushcontent-story ${args.transitiondirection}\"\n id=\"offcanvas-story-container\"\n >\n <z-offcanvas\n .open=${args.open}\n .variant=${OffCanvasVariant.PUSHCONTENT}\n .transitiondirection=${args.transitiondirection}\n style=\"--z-offcanvas--container-width: ${args[\"--z-offcanvas--container-width\"]}\"\n >\n <div slot=\"canvasContent\">\n <p>Offcanvas content</p>\n </div>\n </z-offcanvas>\n\n <div class=\"offcanvas-story-content\">\n <div class=\"heading-2-sb\">Page content</div>\n ${DEMO_TEXT}\n </div>\n </div>`,\n} satisfies Story;\n"]}
1
+ {"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../../../src/components/z-offcanvas/index.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAC,gBAAgB,EAAE,mBAAmB,EAAC,MAAM,aAAa,CAAC;AAElE,OAAO,SAAS,CAAC;AACjB,OAAO,qBAAqB,CAAC;AAK7B,MAAM,SAAS,GAAG;IAChB,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;QACpB,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,MAAM,EAAE,KAAK;gBACb,YAAY,EAAE,OAAO;aACtB;SACF;KACF;IACD,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,IAAI,EAAE,cAAc;aACrB;YACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC;SACzC;QACD,mBAAmB,EAAE;YACnB,OAAO,EAAE;gBACP,IAAI,EAAE,cAAc;aACrB;YACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC;SAC5C;QACD,YAAY,EAAE;YACZ,OAAO,EAAE;gBACP,EAAE,EAAE;oBACF,GAAG,EAAE,SAAS;oBACd,EAAE,EAAE,gBAAgB,CAAC,OAAO;iBAC7B;aACF;SACF;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;QACZ,cAAc,EAAE,IAAI;QACpB,0BAA0B,EAAE,KAAK;QACjC,gCAAgC,EAAE,OAAO;KAC1C;CACoC,CAAC;AACxC,eAAe,SAAS,CAAC;AAIzB,MAAM,SAAS,GACb,8wFAA8wF,CAAC;AAEjxF,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;;mBAEW,gBAAgB,CAAC,OAAO;gBAC3B,IAAI,CAAC,IAAI;+BACM,mBAA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KAAK;KAC/C;IACD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CACf,IAAI,CAAA;iCACyB,IAAI,CAAC,mBAAmB;;;;gBAIzC,IAAI,CAAC,IAAI;mBACN,gBAAgB,CAAC,WAAW;+BAChB,IAAI,CAAC,mBAAmB;iDACN,IAAI,CAAC,gCAAgC,CAAC;;;;;;;;;UAS7E,SAAS;;WAER;CACM,CAAC","sourcesContent":["import {Meta, StoryObj} from \"@storybook/web-components\";\nimport {html} from \"lit\";\nimport {ZOffcanvas} from \".\";\nimport {OffCanvasVariant, TransitionDirection} from \"../../beans\";\nimport {CSSVarsArguments} from \"../../utils/storybook-utils\";\nimport \"./index\";\nimport \"./index.stories.css\";\n\ntype ZOffcanvasStoriesArgs = ZOffcanvas &\n CSSVarsArguments<\"z-offcanvas--top-space\" | \"--z-offcanvas--container-width\" | \"--z-offcanvas--container-height\">;\n\nconst StoryMeta = {\n title: \"ZOffcanvas\",\n component: \"z-offcanvas\",\n parameters: {\n layout: \"fullscreen\",\n docs: {\n story: {\n inline: false,\n iframeHeight: \"600px\",\n },\n },\n },\n argTypes: {\n variant: {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(OffCanvasVariant),\n },\n transitiondirection: {\n control: {\n type: \"inline-radio\",\n },\n options: Object.values(TransitionDirection),\n },\n showBackdrop: {\n control: {\n if: {\n arg: \"variant\",\n eq: OffCanvasVariant.OVERLAY,\n },\n },\n },\n },\n args: {\n \"open\": true,\n \"showBackdrop\": true,\n \"--z-offcanvas--top-space\": \"0px\",\n \"--z-offcanvas--container-width\": \"375px\",\n },\n} satisfies Meta<ZOffcanvasStoriesArgs>;\nexport default StoryMeta;\n\ntype Story = StoryObj<ZOffcanvasStoriesArgs>;\n\nconst DEMO_TEXT =\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam non urna ac urna aliquet lacinia eu ac augue. Nullam consectetur rutrum ultrices. Cras eros ex, cursus nec nisi sed, porttitor fringilla metus. Etiam eleifend fringilla quam et tincidunt. Cras gravida, tortor at consectetur iaculis, lacus eros sagittis magna, ac iaculis orci augue in dolor. Nullam nibh orci, maximus vel tempor sit amet, scelerisque eget velit. Quisque dignissim non dolor iaculis scelerisque. Cras at lectus arcu. Morbi dignissim fermentum magna, sed interdum leo condimentum et. Sed vitae consectetur leo, vel placerat turpis. Donec sagittis rutrum felis, eu consequat tortor efficitur in. Vivamus non nunc vehicula, laoreet lorem id, molestie eros. Etiam ornare at turpis ut suscipit. Nulla non diam eget lorem hendrerit imperdiet. Integer maximus quam non ligula lacinia pharetra. Mauris ullamcorper ligula nec elit pellentesque, a pellentesque mauris tristique. Maecenas tortor enim, rutrum ornare tincidunt sed, tempor vitae urna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce feugiat egestas mollis. In eleifend neque quis tellus bibendum sodales. Curabitur mattis, magna maximus volutpat dapibus, velit nibh dictum elit, eu sodales leo elit vel odio. Quisque sit amet lorem molestie sapien interdum faucibus. Nunc in ex nisi. In hac habitasse platea dictumst. Maecenas dictum, nunc at finibus dapibus, nunc ligula congue odio, in hendrerit dui mauris vel magna. Vivamus sapien dui, eleifend auctor ornare vitae, aliquet in mi. Ut eget risus ex. Vivamus pharetra tellus in volutpat faucibus. Suspendisse interdum sapien ut dui molestie ullamcorper. Ut iaculis, nunc tincidunt posuere convallis, metus lorem mattis mi, nec ullamcorper mi ligula sit amet leo. Fusce at lectus risus. Aliquam tempor sollicitudin ullamcorper. Quisque eget dignissim purus. Nullam convallis purus a sem varius tincidunt ut in dui. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Curabitur fermentum rutrum nibh, nec vulputate nisi mollis in. Nullam venenatis metus nulla, at rhoncus neque gravida non. Nam vehicula mollis nunc nec faucibus. Phasellus eu turpis purus. Proin aliquam, ipsum non rutrum tincidunt, erat metus laoreet augue, facilisis ultricies magna tellus sed neque. Suspendisse quis tristique lorem. Pellentesque diam urna, congue et massa in, laoreet aliquet nibh.mybutton Ut vitae ligula eu elit ornare gravida. Vivamus ultricies, augue in fermentum tempus, purus ligula aliquet sapien, viverra condimentum tortor ante et est. Vivamus ex urna, gravida a enim auctor, ultrices ornare turpis. Quisque at lacus massa. Nulla facilisi. Ut id quam at ante sagittis posuere vitae sit amet sem. Fusce suscipit ante pellentesque felis facilisis tincidunt.\";\n\nexport const OverlayTransitionDirectionRight = {\n render: (args) =>\n html`<div id=\"offcanvas-story-container\">\n <z-offcanvas\n .variant=${OffCanvasVariant.OVERLAY}\n .open=${args.open}\n .transitiondirection=${TransitionDirection.RIGHT}\n .showBackdrop=${args.showBackdrop}\n style=\"--z-offcanvas--top-space: ${args[\"--z-offcanvas--top-space\"]}; --z-offcanvas--container-width: ${args[\n \"--z-offcanvas--container-width\"\n ]}\"\n >\n <div slot=\"canvasContent\">\n <p>${DEMO_TEXT}</p>\n </div>\n </z-offcanvas>\n <div class=\"offcanvas-story-content\">\n <div class=\"heading-2-sb\">Page content</div>\n ${DEMO_TEXT}\n </div>\n </div>`,\n} satisfies Story;\n\nexport const OverlayTransitionDirectionLeft = {\n render: (args) =>\n html`<div id=\"offcanvas-story-container\">\n <div class=\"offcanvas-story-content\">\n <div class=\"heading-2-sb\">Page content</div>\n ${DEMO_TEXT}\n </div>\n <z-offcanvas\n .variant=${OffCanvasVariant.OVERLAY}\n .open=${args.open}\n .transitiondirection=${TransitionDirection.LEFT}\n .showBackdrop=${args.showBackdrop}\n style=\"--z-offcanvas--top-space: ${args[\"--z-offcanvas--top-space\"]}; --z-offcanvas--container-width: ${args[\n \"--z-offcanvas--container-width\"\n ]}\"\n >\n <div slot=\"canvasContent\">\n <p>${DEMO_TEXT}</p>\n </div>\n </z-offcanvas>\n ${args.transitiondirection === \"right\" ? html`<div class=\"offcanvas-story-content\"></div>` : \"\"}\n </div>`,\n} satisfies Story;\n\nexport const TransitionDirectionUp = {\n parameters: {\n controls: {\n exclude: [\"variant\", \"transitiondirection\", \"--z-offcanvas--top-space\", \"--z-offcanvas--container-width\"],\n },\n },\n args: {\n \"--z-offcanvas--container-height\": \"90%\",\n },\n render: (args) =>\n html`<div id=\"offcanvas-story-container\">\n <div class=\"offcanvas-story-content\">\n <div class=\"heading-2-sb\">Page content</div>\n ${DEMO_TEXT}\n </div>\n <z-offcanvas\n .open=${args.open}\n .variant=${OffCanvasVariant.OVERLAY}\n .transitiondirection=${TransitionDirection.UP}\n .showBackdrop=${args.showBackdrop}\n style=\"--z-offcanvas--container-height: ${args[\"--z-offcanvas--container-height\"]}\"\n >\n <div slot=\"canvasContent\">\n <p>${DEMO_TEXT}</p>\n </div>\n </z-offcanvas>\n </div>`,\n} satisfies Story;\n\nexport const PushContent = {\n parameters: {\n controls: {\n exclude: [\"variant\", \"--z-offcanvas--top-space\"],\n },\n },\n args: {\n transitiondirection: TransitionDirection.RIGHT,\n },\n render: (args) =>\n html`<div\n class=\"pushcontent-story ${args.transitiondirection}\"\n id=\"offcanvas-story-container\"\n >\n <z-offcanvas\n .open=${args.open}\n .variant=${OffCanvasVariant.PUSHCONTENT}\n .transitiondirection=${args.transitiondirection}\n style=\"--z-offcanvas--container-width: ${args[\"--z-offcanvas--container-width\"]}\"\n >\n <div slot=\"canvasContent\">\n <p>Offcanvas content</p>\n </div>\n </z-offcanvas>\n\n <div class=\"offcanvas-story-content\">\n <div class=\"heading-2-sb\">Page content</div>\n ${DEMO_TEXT}\n </div>\n </div>`,\n} satisfies Story;\n"]}
@@ -17,6 +17,7 @@
17
17
  min-width: 100%;
18
18
  height: 100%;
19
19
  background: var(--color-surface01);
20
+ transform: translateX(0);
20
21
  transition: transform 0.4s ease-out;
21
22
  }
22
23
 
@@ -73,7 +74,7 @@
73
74
  transition: none;
74
75
  }
75
76
 
76
- .canvas-background {
77
+ .backdrop {
77
78
  z-index: 1000;
78
79
  width: 100%;
79
80
  height: 100%;
@@ -83,7 +84,7 @@
83
84
  transition: opacity 0.4s ease-out;
84
85
  }
85
86
 
86
- :host([open]) > .canvas-background {
87
+ :host([open]) > .backdrop {
87
88
  opacity: 0.7;
88
89
  pointer-events: unset;
89
90
  }
@@ -102,8 +103,8 @@
102
103
  }
103
104
 
104
105
  .canvas-container {
105
- width: max(var(--z-offcanvas--container-width, 375px), 375px);
106
- min-width: 375px;
106
+ width: var(--z-offcanvas--container-width, 375px);
107
+ min-width: var(--z-offcanvas--container-width, 375px);
107
108
  }
108
109
 
109
110
  :host([transitiondirection="up"]) > .canvas-container {
@@ -16,12 +16,12 @@ export class ZPanelElem {
16
16
  }
17
17
  render() {
18
18
  const elemId = this.elemid ? this.elemid : "";
19
- return (h("div", { key: '90afba46bcde1bd3bd27b35c6e5db38ce9071aee', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: 'd9493560e96ad743ae3ee52be6c9205b6014b8da', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: '5bd7c14c0083b9fed6e320a4ef4652018abf2762', src: this.imgurl, alt: this.imgalt }))), h("div", { key: '4cbebd354b6b3b56304970aedb0e94e084d49a9f', class: "panel-elem-link" }, h("a", { key: '195ec2e77eac163c65cf746faa114f39618d2abc', class: {
19
+ return (h("div", { key: '7ccde7a594052fb877c381d8f2db8df80d64e96e', class: "panel-elem-container" }, (this.imgurl || this.imgalt) && (h("div", { key: 'f925fb70d03baa4a8a7f96006c515c9116785ff7', "aria-hidden": "true", class: "panel-elem-icon" }, h("img", { key: 'b0349cf006ded4cc02f686e1ea1adfbd76550fb8', src: this.imgurl, alt: this.imgalt }))), h("div", { key: 'c9393757ba1c849c8558dc668189f6f27b232e94', class: "panel-elem-link" }, h("a", { key: '7c552ae67030c9bf12a6e52e8d8f6f82df88b4a2', class: {
20
20
  "z-link": true,
21
21
  "z-link-disabled": this.isdisabled,
22
22
  "z-link-icon": true,
23
23
  "z-link-blue": true,
24
- }, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: 'c11c35e5bff66d382b309fece4bec295abb1a0d4', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: '319374f4955314400344ce558486c6afa36ca4f2', class: "panel-elem-desc" }, h("slot", { key: '7e7dcf38991bc7f67ab164e4bac9d20026fa29d9', name: this.descrSlotName })))));
24
+ }, id: elemId + "link_id", href: this.url, target: this.target }, h("z-icon", { key: 'f72a6a2634b41803ea7eaf8d51ba3439f095457a', height: 14, width: 14, name: this.linkicon }), this.linklabel)), this.descrSlotName && (h("div", { key: '6cd08ffd2e65f13d500f88682724f4f762c1f118', class: "panel-elem-desc" }, h("slot", { key: '01f55703602ee64f92eed8bc918ac5032927850c', name: this.descrSlotName })))));
25
25
  }
26
26
  static get is() { return "z-panel-elem"; }
27
27
  static get encapsulation() { return "scoped"; }
@@ -424,7 +424,7 @@ export class ZPopover {
424
424
  cancelAnimationFrame(this.animationFrameRequestId);
425
425
  }
426
426
  render() {
427
- return (h(Host, { key: '2a5248b521455e8682038aaf42ca9020b6ffb68d', "current-position": this.currentPosition }, h("slot", { key: '4993c751c45e1ff683dc341f9445a30ff2647d44' })));
427
+ return (h(Host, { key: 'aeb6c7ccabc279af16d9a957e732ad611612589f', "current-position": this.currentPosition }, h("slot", { key: '77fecb1bbfa49e1a8f97c078e7cef01a03420d9c' })));
428
428
  }
429
429
  static get is() { return "z-popover"; }
430
430
  static get encapsulation() { return "shadow"; }
@@ -1,5 +1,4 @@
1
1
  import { Host, h } from "@stencil/core";
2
- import defaultFallbackCover from "../../../assets/images/png/placeholder-cover.png";
3
2
  /**
4
3
  * @slot tags - slot containing the descriptors for the opera variant
5
4
  * @slot volumes - slot containing the volume count to be displayed in the opera variant
@@ -12,24 +11,17 @@ export class ZResultCard {
12
11
  this.setTooltipTitle(this.subtitleRef);
13
12
  };
14
13
  this.renderTitle = () => {
15
- const title = this.titleHtmlTag ? `<${this.titleHtmlTag}>${this.cardTitle}</${this.titleHtmlTag}>` : this.cardTitle;
16
- return (h("div", { class: { "card-title": true, "info-card-title": this.isInfoCard }, ref: (el) => (this.titleRef = el), innerHTML: title }));
14
+ const TitleTag = this.titleHtmlTag || "div";
15
+ return (h(TitleTag, { class: "card-title", ref: (el) => (this.titleRef = el) }, this.cardTitle));
17
16
  };
18
17
  this.renderSubtitle = () => {
19
- return (h("span", { class: { "card-subtitle": true, "info-card-subtitle": this.isInfoCard }, ref: (el) => (this.subtitleRef = el) }, this.cardSubtitle));
18
+ return (h("span", { class: "card-subtitle", ref: (el) => (this.subtitleRef = el) }, this.cardSubtitle));
20
19
  };
21
20
  this.renderOperaCard = () => {
22
- return (h(Host, { tabIndex: 0 }, h("div", { class: `z-cover-container ${this.hasMultipleCovers ? "has-multiple" : ""}` }, h("div", { class: "z-cover-stack" }, this.hasMultipleCovers && (h("div", null, h("div", { class: "z-cover-shadow z-shadow-2" }), h("div", { class: "z-cover-shadow z-shadow-1" }))), h("div", { class: "z-cover-img" }, h("img", { src: this.cover || this.fallbackCover || defaultFallbackCover, alt: "", onError: () => {
23
- if (this.fallbackCover) {
24
- this.cover = this.fallbackCover;
25
- }
26
- else {
27
- this.cover = defaultFallbackCover;
28
- }
29
- } })))), h("div", { class: "info-container" }, this.authors && (h("span", { class: "authors-label", ref: (el) => (this.authorsRef = el) }, this.authors)), this.renderTitle(), this.renderSubtitle(), h("div", { class: "tags-container" }, h("slot", { name: "tags" })), h("div", { class: "volumes-label" }, h("slot", { name: "volumes" })))));
21
+ return (h(Host, null, h("z-book-cover", { cover: this.cover, fallbackCover: this.fallbackCover, multiple: this.hasMultipleCovers, bordered: true }), h("div", { class: "info-container" }, this.authors && (h("span", { class: "authors-label", ref: (el) => (this.authorsRef = el) }, this.authors)), this.renderTitle(), this.renderSubtitle(), h("div", { class: "tags-container" }, h("slot", { name: "tags" })), h("div", { class: "volumes-label" }, h("slot", { name: "volumes" })))));
30
22
  };
31
23
  this.renderInfoCard = () => {
32
- return (h(Host, { tabIndex: 0, class: "info-card" }, h("div", { class: "info-icon-column" }, h("div", { class: "info-icon-container" }, h("z-icon", { class: "info-icon", name: "link", width: 18, height: 18 }))), h("div", { class: "info-container" }, this.renderTitle(), this.renderSubtitle())));
24
+ return (h(Host, { class: "info-card" }, h("div", { class: "info-icon-container" }, h("z-icon", { class: "info-icon", name: "link" })), h("div", { class: "info-container" }, this.renderTitle(), this.renderSubtitle())));
33
25
  };
34
26
  this.cardTitle = undefined;
35
27
  this.cardSubtitle = undefined;
@@ -157,7 +149,7 @@ export class ZResultCard {
157
149
  "optional": true,
158
150
  "docs": {
159
151
  "tags": [],
160
- "text": "The URL of the cover image.\nThis is used to display the cover image of the opera."
152
+ "text": "The URL of the cover image of the opera."
161
153
  },
162
154
  "attribute": "cover",
163
155
  "reflect": false
@@ -174,7 +166,7 @@ export class ZResultCard {
174
166
  "optional": true,
175
167
  "docs": {
176
168
  "tags": [],
177
- "text": "[optional] Fallback cover URL"
169
+ "text": "[optional] Fallback cover URL."
178
170
  },
179
171
  "attribute": "fallback-cover",
180
172
  "reflect": false
@@ -191,7 +183,7 @@ export class ZResultCard {
191
183
  "optional": false,
192
184
  "docs": {
193
185
  "tags": [],
194
- "text": "Indicates whether the card has multiple covers.\nThis is used to apply specific styles when there are multiple covers."
186
+ "text": "Whether to show a stack of covers to represent multiple books."
195
187
  },
196
188
  "attribute": "has-multiple-covers",
197
189
  "reflect": false,
@@ -209,7 +201,7 @@ export class ZResultCard {
209
201
  "optional": false,
210
202
  "docs": {
211
203
  "tags": [],
212
- "text": "Indicates whether the card is an info page.\nThis can be used to apply specific styles or behaviors for info pages."
204
+ "text": "Enables the \"info\" variant of the card."
213
205
  },
214
206
  "attribute": "is-info-card",
215
207
  "reflect": false,
@@ -227,7 +219,7 @@ export class ZResultCard {
227
219
  "optional": true,
228
220
  "docs": {
229
221
  "tags": [],
230
- "text": "[optional]\nUse for insert heading when needed."
222
+ "text": "[optional] Set a specific heading level as html tag for the title."
231
223
  },
232
224
  "attribute": "title-html-tag",
233
225
  "reflect": false
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/z-result-card/index.tsx"],"names":[],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slot tags - slot containing the descriptors for the opera variant\n * @slot volumes - slot containing the volume count to be displayed in the opera variant\n */\n@Component({\n tag: \"z-result-card\",\n styleUrls: [\"styles.css\"],\n shadow: true,\n})\nexport class ZResultCard {\n @Element() hostElement: HTMLZResultCardElement;\n\n /** The title of the card. */\n @Prop()\n cardTitle: string;\n\n /** The subtitle of the card. */\n @Prop()\n cardSubtitle: string;\n\n /** The authors of the opera. */\n @Prop()\n authors?: string;\n\n /** The URL of the cover image of the opera. */\n @Prop()\n cover?: string;\n\n /** [optional] Fallback cover URL. */\n @Prop()\n fallbackCover?: string;\n\n /** Whether to show a stack of covers to represent multiple books. */\n @Prop()\n hasMultipleCovers = false;\n\n /** Enables the \"info\" variant of the card. */\n @Prop()\n isInfoCard = false;\n\n /** [optional] Set a specific heading level as html tag for the title. */\n @Prop()\n titleHtmlTag?: string;\n\n private authorsRef: HTMLElement;\n\n private titleRef: HTMLElement;\n\n private subtitleRef: HTMLElement;\n\n private setTooltipTitle(el: HTMLElement): void {\n if (!el) {\n return;\n }\n\n // Check if element uses line-clamp\n const style = window.getComputedStyle(el);\n const hasLineClamp = style.getPropertyValue(\"-webkit-line-clamp\") !== \"none\";\n\n let isTruncated;\n if (hasLineClamp) {\n // For elements with line-clamp, check if content height exceeds line-clamp height\n const lineHeight = parseInt(style.lineHeight);\n const maxLines = parseInt(style.getPropertyValue(\"-webkit-line-clamp\"));\n const maxHeight = lineHeight * maxLines;\n\n isTruncated = el.scrollHeight > maxHeight;\n } else {\n // Original check for elements without line-clamp\n isTruncated = el.scrollWidth > el.clientWidth || el.scrollHeight > el.clientHeight;\n }\n\n if (isTruncated) {\n el.setAttribute(\"title\", el.textContent.trim());\n } else {\n el.removeAttribute(\"title\");\n }\n }\n\n componentDidRender(): void {\n this.setTooltipTitle(this.authorsRef);\n this.setTooltipTitle(this.titleRef);\n this.setTooltipTitle(this.subtitleRef);\n }\n\n private resizeHandler = (): void => {\n this.setTooltipTitle(this.authorsRef);\n this.setTooltipTitle(this.titleRef);\n this.setTooltipTitle(this.subtitleRef);\n };\n\n componentDidLoad(): void {\n window.addEventListener(\"resize\", this.resizeHandler);\n }\n\n disconnectedCallback(): void {\n window.removeEventListener(\"resize\", this.resizeHandler);\n }\n\n private renderTitle = (): HTMLElement => {\n const TitleTag = this.titleHtmlTag || \"div\";\n\n return (\n <TitleTag\n class=\"card-title\"\n ref={(el) => (this.titleRef = el as HTMLElement)}\n >\n {this.cardTitle}\n </TitleTag>\n );\n };\n\n private renderSubtitle = (): HTMLSpanElement => {\n return (\n <span\n class=\"card-subtitle\"\n ref={(el) => (this.subtitleRef = el as HTMLElement)}\n >\n {this.cardSubtitle}\n </span>\n );\n };\n\n private renderOperaCard = (): HTMLZResultCardElement => {\n return (\n <Host>\n <z-book-cover\n cover={this.cover}\n fallbackCover={this.fallbackCover}\n multiple={this.hasMultipleCovers}\n bordered={true}\n ></z-book-cover>\n <div class=\"info-container\">\n {this.authors && (\n <span\n class=\"authors-label\"\n ref={(el) => (this.authorsRef = el as HTMLElement)}\n >\n {this.authors}\n </span>\n )}\n {this.renderTitle()}\n {this.renderSubtitle()}\n <div class=\"tags-container\">\n <slot name=\"tags\"></slot>\n </div>\n <div class=\"volumes-label\">\n <slot name=\"volumes\"></slot>\n </div>\n </div>\n </Host>\n );\n };\n\n private renderInfoCard = (): HTMLZResultCardElement => {\n return (\n <Host class=\"info-card\">\n <div class=\"info-icon-container\">\n <z-icon\n class=\"info-icon\"\n name=\"link\"\n />\n </div>\n <div class=\"info-container\">\n {this.renderTitle()}\n {this.renderSubtitle()}\n </div>\n </Host>\n );\n };\n\n render(): HTMLZResultCardElement {\n return this.isInfoCard ? this.renderInfoCard() : this.renderOperaCard();\n }\n}\n"]}