@zanichelli/albe-web-components 19.3.0-rc1 → 19.3.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 (1492) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/dist/cjs/_commonjsHelpers-CFO10eej.js +3 -0
  3. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  4. package/dist/cjs/breakpoints-B7vFm-3T.js +3 -0
  5. package/dist/cjs/breakpoints-B7vFm-3T.js.map +1 -0
  6. package/dist/cjs/iconset-Cz-UsfoU.js +1030 -0
  7. package/dist/cjs/iconset-Cz-UsfoU.js.map +1 -0
  8. package/dist/cjs/index-Cn7FFDHr.js +415 -0
  9. package/dist/cjs/index-Cn7FFDHr.js.map +1 -0
  10. package/dist/cjs/index-DY2I5wAY.js +2727 -0
  11. package/dist/cjs/index-DY2I5wAY.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +10 -3
  13. package/dist/cjs/index.cjs.js.map +1 -0
  14. package/dist/cjs/loader.cjs.js +5 -2
  15. package/dist/cjs/loader.cjs.js.map +1 -0
  16. package/dist/cjs/reactive-controller-CxJYkamG.js +1446 -0
  17. package/dist/cjs/reactive-controller-CxJYkamG.js.map +1 -0
  18. package/dist/cjs/utils-By4U4KkV.js +2721 -0
  19. package/dist/cjs/utils-By4U4KkV.js.map +1 -0
  20. package/dist/cjs/utils-kQZHfpti.js +919 -0
  21. package/dist/cjs/utils-kQZHfpti.js.map +1 -0
  22. package/dist/cjs/web-components-library.cjs.js +5 -2
  23. package/dist/cjs/web-components-library.cjs.js.map +1 -0
  24. package/dist/cjs/z-accordion.cjs.entry.js +6 -3
  25. package/dist/cjs/z-accordion.cjs.entry.js.map +1 -0
  26. package/dist/cjs/z-alert.cjs.entry.js +5 -2
  27. package/dist/cjs/z-alert.cjs.entry.js.map +1 -0
  28. package/dist/cjs/z-anchor-navigation.cjs.entry.js +7 -4
  29. package/dist/cjs/z-anchor-navigation.cjs.entry.js.map +1 -0
  30. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +6 -3
  31. package/dist/cjs/z-app-header-deprecated.cjs.entry.js.map +1 -0
  32. package/dist/cjs/z-app-header_12.cjs.entry.js +101 -135
  33. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -0
  34. package/dist/cjs/z-aria-alert.cjs.entry.js +6 -3
  35. package/dist/cjs/z-aria-alert.cjs.entry.js.map +1 -0
  36. package/dist/cjs/z-avatar.cjs.entry.js +7 -4
  37. package/dist/cjs/z-avatar.cjs.entry.js.map +1 -0
  38. package/dist/cjs/z-book-card-app.cjs.entry.js +6 -3
  39. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
  40. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +7 -4
  41. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  42. package/dist/cjs/z-book-card.cjs.entry.js +6 -3
  43. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -0
  44. package/dist/cjs/z-book-cover.cjs.entry.js +5 -2
  45. package/dist/cjs/z-book-cover.cjs.entry.js.map +1 -0
  46. package/dist/cjs/z-breadcrumb.cjs.entry.js +8 -5
  47. package/dist/cjs/z-breadcrumb.cjs.entry.js.map +1 -0
  48. package/dist/cjs/z-button-sort.cjs.entry.js +5 -2
  49. package/dist/cjs/z-button-sort.cjs.entry.js.map +1 -0
  50. package/dist/cjs/z-card.cjs.entry.js +5 -2
  51. package/dist/cjs/z-card.cjs.entry.js.map +1 -0
  52. package/dist/cjs/z-carousel.cjs.entry.js +6 -3
  53. package/dist/cjs/z-carousel.cjs.entry.js.map +1 -0
  54. package/dist/cjs/z-chip.cjs.entry.js +7 -4
  55. package/dist/cjs/z-chip.cjs.entry.js.map +1 -0
  56. package/dist/cjs/z-color-picker.cjs.entry.js +7 -4
  57. package/dist/cjs/z-color-picker.cjs.entry.js.map +1 -0
  58. package/dist/cjs/z-combobox.cjs.entry.js +21 -15
  59. package/dist/cjs/z-combobox.cjs.entry.js.map +1 -0
  60. package/dist/cjs/z-cover-hero.cjs.entry.js +7 -4
  61. package/dist/cjs/z-cover-hero.cjs.entry.js.map +1 -0
  62. package/dist/cjs/z-date-picker.cjs.entry.js +7 -4
  63. package/dist/cjs/z-date-picker.cjs.entry.js.map +1 -0
  64. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +25 -41
  65. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -0
  66. package/dist/cjs/z-file-upload.cjs.entry.js +7 -4
  67. package/dist/cjs/z-file-upload.cjs.entry.js.map +1 -0
  68. package/dist/cjs/z-file.cjs.entry.js +6 -3
  69. package/dist/cjs/z-file.cjs.entry.js.map +1 -0
  70. package/dist/cjs/z-ghost-loading.cjs.entry.js +5 -2
  71. package/dist/cjs/z-ghost-loading.cjs.entry.js.map +1 -0
  72. package/dist/cjs/z-info-box.cjs.entry.js +5 -2
  73. package/dist/cjs/z-info-box.cjs.entry.js.map +1 -0
  74. package/dist/cjs/z-info-reveal.cjs.entry.js +6 -3
  75. package/dist/cjs/z-info-reveal.cjs.entry.js.map +1 -0
  76. package/dist/cjs/z-input-range.cjs.entry.js +145 -0
  77. package/dist/cjs/z-input-range.cjs.entry.js.map +1 -0
  78. package/dist/cjs/z-logo.cjs.entry.js +6 -3
  79. package/dist/cjs/z-logo.cjs.entry.js.map +1 -0
  80. package/dist/cjs/z-menu-deprecated.cjs.entry.js +6 -3
  81. package/dist/cjs/z-menu-deprecated.cjs.entry.js.map +1 -0
  82. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +5 -2
  83. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js.map +1 -0
  84. package/dist/cjs/z-menu-section.cjs.entry.js +6 -3
  85. package/dist/cjs/z-menu-section.cjs.entry.js.map +1 -0
  86. package/dist/cjs/z-menu.cjs.entry.js +6 -3
  87. package/dist/cjs/z-menu.cjs.entry.js.map +1 -0
  88. package/dist/cjs/z-myz-card-alert.cjs.entry.js +6 -3
  89. package/dist/cjs/z-myz-card-alert.cjs.entry.js.map +1 -0
  90. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +6 -3
  91. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js.map +1 -0
  92. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +5 -2
  93. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js.map +1 -0
  94. package/dist/cjs/z-myz-card-footer.cjs.entry.js +6 -3
  95. package/dist/cjs/z-myz-card-footer.cjs.entry.js.map +1 -0
  96. package/dist/cjs/z-myz-card-icon.cjs.entry.js +5 -2
  97. package/dist/cjs/z-myz-card-icon.cjs.entry.js.map +1 -0
  98. package/dist/cjs/z-myz-card-info.cjs.entry.js +7 -4
  99. package/dist/cjs/z-myz-card-info.cjs.entry.js.map +1 -0
  100. package/dist/cjs/z-myz-card-list.cjs.entry.js +5 -2
  101. package/dist/cjs/z-myz-card-list.cjs.entry.js.map +1 -0
  102. package/dist/cjs/z-myz-card_4.cjs.entry.js +9 -6
  103. package/dist/cjs/z-myz-card_4.cjs.entry.js.map +1 -0
  104. package/dist/cjs/z-myz-list-item.cjs.entry.js +7 -4
  105. package/dist/cjs/z-myz-list-item.cjs.entry.js.map +1 -0
  106. package/dist/cjs/z-myz-list.cjs.entry.js +5 -2
  107. package/dist/cjs/z-myz-list.cjs.entry.js.map +1 -0
  108. package/dist/cjs/z-navigation-tabs.cjs.entry.js +7 -4
  109. package/dist/cjs/z-navigation-tabs.cjs.entry.js.map +1 -0
  110. package/dist/cjs/z-notification.cjs.entry.js +5 -2
  111. package/dist/cjs/z-notification.cjs.entry.js.map +1 -0
  112. package/dist/cjs/z-otp.cjs.entry.js +7 -4
  113. package/dist/cjs/z-otp.cjs.entry.js.map +1 -0
  114. package/dist/cjs/z-pagination.cjs.entry.js +5 -2
  115. package/dist/cjs/z-pagination.cjs.entry.js.map +1 -0
  116. package/dist/cjs/z-panel-elem.cjs.entry.js +6 -3
  117. package/dist/cjs/z-panel-elem.cjs.entry.js.map +1 -0
  118. package/dist/cjs/z-popover.cjs.entry.js +7 -4
  119. package/dist/cjs/z-popover.cjs.entry.js.map +1 -0
  120. package/dist/cjs/z-range-picker.cjs.entry.js +9 -6
  121. package/dist/cjs/z-range-picker.cjs.entry.js.map +1 -0
  122. package/dist/cjs/z-result-card.cjs.entry.js +5 -2
  123. package/dist/cjs/z-result-card.cjs.entry.js.map +1 -0
  124. package/dist/cjs/z-section-title.cjs.entry.js +6 -3
  125. package/dist/cjs/z-section-title.cjs.entry.js.map +1 -0
  126. package/dist/cjs/z-select.cjs.entry.js +13 -14
  127. package/dist/cjs/z-select.cjs.entry.js.map +1 -0
  128. package/dist/cjs/z-skip-to-content.cjs.entry.js +7 -4
  129. package/dist/cjs/z-skip-to-content.cjs.entry.js.map +1 -0
  130. package/dist/cjs/z-slideshow.cjs.entry.js +6 -3
  131. package/dist/cjs/z-slideshow.cjs.entry.js.map +1 -0
  132. package/dist/cjs/z-stepper-item.cjs.entry.js +5 -2
  133. package/dist/cjs/z-stepper-item.cjs.entry.js.map +1 -0
  134. package/dist/cjs/z-stepper.cjs.entry.js +5 -2
  135. package/dist/cjs/z-stepper.cjs.entry.js.map +1 -0
  136. package/dist/cjs/z-table.cjs.entry.js +7 -4
  137. package/dist/cjs/z-table.cjs.entry.js.map +1 -0
  138. package/dist/cjs/z-tbody.cjs.entry.js +5 -2
  139. package/dist/cjs/z-tbody.cjs.entry.js.map +1 -0
  140. package/dist/cjs/z-td.cjs.entry.js +6 -3
  141. package/dist/cjs/z-td.cjs.entry.js.map +1 -0
  142. package/dist/cjs/z-tfoot.cjs.entry.js +5 -2
  143. package/dist/cjs/z-tfoot.cjs.entry.js.map +1 -0
  144. package/dist/cjs/z-th.cjs.entry.js +6 -3
  145. package/dist/cjs/z-th.cjs.entry.js.map +1 -0
  146. package/dist/cjs/z-thead.cjs.entry.js +5 -2
  147. package/dist/cjs/z-thead.cjs.entry.js.map +1 -0
  148. package/dist/cjs/z-toast-notification-list.cjs.entry.js +6 -3
  149. package/dist/cjs/z-toast-notification-list.cjs.entry.js.map +1 -0
  150. package/dist/cjs/z-toast-notification.cjs.entry.js +8 -5
  151. package/dist/cjs/z-toast-notification.cjs.entry.js.map +1 -0
  152. package/dist/cjs/z-toggle-button.cjs.entry.js +6 -3
  153. package/dist/cjs/z-toggle-button.cjs.entry.js.map +1 -0
  154. package/dist/cjs/z-toggle-switch.cjs.entry.js +9 -6
  155. package/dist/cjs/z-toggle-switch.cjs.entry.js.map +1 -0
  156. package/dist/cjs/z-tool.cjs.entry.js +8 -5
  157. package/dist/cjs/z-tool.cjs.entry.js.map +1 -0
  158. package/dist/cjs/z-toolbar.cjs.entry.js +6 -3
  159. package/dist/cjs/z-toolbar.cjs.entry.js.map +1 -0
  160. package/dist/cjs/z-tooltip.cjs.entry.js +6 -3
  161. package/dist/cjs/z-tooltip.cjs.entry.js.map +1 -0
  162. package/dist/cjs/z-tr.cjs.entry.js +8 -5
  163. package/dist/cjs/z-tr.cjs.entry.js.map +1 -0
  164. package/dist/cjs/z-tree-list.cjs.entry.js +6 -3
  165. package/dist/cjs/z-tree-list.cjs.entry.js.map +1 -0
  166. package/dist/cjs/z-visually-hidden.cjs.entry.js +5 -2
  167. package/dist/cjs/z-visually-hidden.cjs.entry.js.map +1 -0
  168. package/dist/collection/beans/index.js +6 -0
  169. package/dist/collection/beans/index.js.map +1 -0
  170. package/dist/collection/collection-manifest.json +12 -11
  171. package/dist/collection/components/book-card/z-book-card/index.js +2 -8
  172. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  173. package/dist/collection/components/book-card/z-book-card/styles.css +9 -0
  174. package/dist/collection/components/book-card/z-book-card-app/index.js +2 -3
  175. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
  176. package/dist/collection/components/book-card/z-book-card-app/styles.css +4 -0
  177. package/dist/collection/components/date-picker/utils.js +1 -0
  178. package/dist/collection/components/date-picker/utils.js.map +1 -0
  179. package/dist/collection/components/date-picker/z-date-picker/index.js +2 -1
  180. package/dist/collection/components/date-picker/z-date-picker/index.js.map +1 -0
  181. package/dist/collection/components/date-picker/z-range-picker/index.js +4 -3
  182. package/dist/collection/components/date-picker/z-range-picker/index.js.map +1 -0
  183. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +2 -54
  184. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js.map +1 -0
  185. package/dist/collection/components/deprecated/z-app-header-deprecated/styles.css +49 -0
  186. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js +2 -5
  187. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  188. package/dist/collection/components/deprecated/z-book-card-deprecated/styles.css +6 -0
  189. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +2 -2
  190. package/dist/collection/components/deprecated/z-menu-deprecated/index.js.map +1 -0
  191. package/dist/collection/components/deprecated/z-menu-deprecated/styles.css +5 -2
  192. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +2 -1
  193. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js.map +1 -0
  194. package/dist/collection/components/deprecated/z-section-title/index.js +2 -2
  195. package/dist/collection/components/deprecated/z-section-title/index.js.map +1 -0
  196. package/dist/collection/components/deprecated/z-section-title/styles.css +3 -0
  197. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +3 -2
  198. package/dist/collection/components/file-upload/z-dragdrop-area/index.js.map +1 -0
  199. package/dist/collection/components/file-upload/z-file/index.js +2 -1
  200. package/dist/collection/components/file-upload/z-file/index.js.map +1 -0
  201. package/dist/collection/components/file-upload/z-file-upload/index.js +3 -2
  202. package/dist/collection/components/file-upload/z-file-upload/index.js.map +1 -0
  203. package/dist/collection/components/index.js +1 -0
  204. package/dist/collection/components/index.js.map +1 -0
  205. package/dist/collection/components/list/z-list/index.js +2 -1
  206. package/dist/collection/components/list/z-list/index.js.map +1 -0
  207. package/dist/collection/components/list/z-list-element/index.js +2 -1
  208. package/dist/collection/components/list/z-list-element/index.js.map +1 -0
  209. package/dist/collection/components/list/z-list-group/index.js +3 -2
  210. package/dist/collection/components/list/z-list-group/index.js.map +1 -0
  211. package/dist/collection/components/list/z-tree-list/index.js +2 -1
  212. package/dist/collection/components/list/z-tree-list/index.js.map +1 -0
  213. package/dist/collection/components/table/cells/z-td/index.js +2 -1
  214. package/dist/collection/components/table/cells/z-td/index.js.map +1 -0
  215. package/dist/collection/components/table/cells/z-th/index.js +2 -1
  216. package/dist/collection/components/table/cells/z-th/index.js.map +1 -0
  217. package/dist/collection/components/table/z-table/index.js +2 -2
  218. package/dist/collection/components/table/z-table/index.js.map +1 -0
  219. package/dist/collection/components/table/z-table/styles.css +3 -0
  220. package/dist/collection/components/table/z-tbody/index.js +2 -1
  221. package/dist/collection/components/table/z-tbody/index.js.map +1 -0
  222. package/dist/collection/components/table/z-tfoot/index.js +2 -1
  223. package/dist/collection/components/table/z-tfoot/index.js.map +1 -0
  224. package/dist/collection/components/table/z-thead/index.js +2 -1
  225. package/dist/collection/components/table/z-thead/index.js.map +1 -0
  226. package/dist/collection/components/table/z-tr/index.js +2 -1
  227. package/dist/collection/components/table/z-tr/index.js.map +1 -0
  228. package/dist/collection/components/table/z-tr/styles.css +2 -2
  229. package/dist/collection/components/z-accordion/index.js +4 -11
  230. package/dist/collection/components/z-accordion/index.js.map +1 -0
  231. package/dist/collection/components/z-accordion/styles.css +12 -0
  232. package/dist/collection/components/z-anchor-navigation/index.js +4 -3
  233. package/dist/collection/components/z-anchor-navigation/index.js.map +1 -0
  234. package/dist/collection/components/z-app-header/index.js +22 -8
  235. package/dist/collection/components/z-app-header/index.js.map +1 -0
  236. package/dist/collection/components/z-app-header/styles.css +12 -12
  237. package/dist/collection/components/z-aria-alert/index.js +2 -1
  238. package/dist/collection/components/z-aria-alert/index.js.map +1 -0
  239. package/dist/collection/components/z-avatar/index.js +3 -2
  240. package/dist/collection/components/z-avatar/index.js.map +1 -0
  241. package/dist/collection/components/z-book-cover/index.js +2 -5
  242. package/dist/collection/components/z-book-cover/index.js.map +1 -0
  243. package/dist/collection/components/z-book-cover/styles.css +6 -0
  244. package/dist/collection/components/z-breadcrumb/index.js +3 -2
  245. package/dist/collection/components/z-breadcrumb/index.js.map +1 -0
  246. package/dist/collection/components/z-button/index.js +3 -2
  247. package/dist/collection/components/z-button/index.js.map +1 -0
  248. package/dist/collection/components/z-button-sort/index.js +2 -1
  249. package/dist/collection/components/z-button-sort/index.js.map +1 -0
  250. package/dist/collection/components/z-card/index.js +2 -8
  251. package/dist/collection/components/z-card/index.js.map +1 -0
  252. package/dist/collection/components/z-card/styles.css +9 -0
  253. package/dist/collection/components/z-carousel/index.js +1 -2
  254. package/dist/collection/components/z-carousel/index.js.map +1 -0
  255. package/dist/collection/components/z-carousel/styles.css +7 -3
  256. package/dist/collection/components/z-chip/index.js +3 -2
  257. package/dist/collection/components/z-chip/index.js.map +1 -0
  258. package/dist/collection/components/z-color-picker/index.js +2 -1
  259. package/dist/collection/components/z-color-picker/index.js.map +1 -0
  260. package/dist/collection/components/z-combobox/index.js +17 -13
  261. package/dist/collection/components/z-combobox/index.js.map +1 -0
  262. package/dist/collection/components/z-cover-hero/index.js +3 -5
  263. package/dist/collection/components/z-cover-hero/index.js.map +1 -0
  264. package/dist/collection/components/z-cover-hero/styles.css +5 -0
  265. package/dist/collection/components/z-divider/index.js +2 -1
  266. package/dist/collection/components/z-divider/index.js.map +1 -0
  267. package/dist/collection/components/z-ghost-loading/index.js +2 -1
  268. package/dist/collection/components/z-ghost-loading/index.js.map +1 -0
  269. package/dist/collection/components/z-icon/index.js +32 -2
  270. package/dist/collection/components/z-icon/index.js.map +1 -0
  271. package/dist/collection/components/z-info-box/index.js +2 -1
  272. package/dist/collection/components/z-info-box/index.js.map +1 -0
  273. package/dist/collection/components/z-info-reveal/index.js +2 -5
  274. package/dist/collection/components/z-info-reveal/index.js.map +1 -0
  275. package/dist/collection/components/z-info-reveal/styles.css +7 -1
  276. package/dist/collection/components/z-input/index.js +51 -30
  277. package/dist/collection/components/z-input/index.js.map +1 -0
  278. package/dist/collection/components/z-input/styles-checkbox-radio.css +2 -0
  279. package/dist/collection/components/z-input/styles-text.css +5 -0
  280. package/dist/collection/components/z-input-message/index.js +2 -1
  281. package/dist/collection/components/z-input-message/index.js.map +1 -0
  282. package/dist/collection/components/z-input-range/index.js +438 -0
  283. package/dist/collection/components/z-input-range/index.js.map +1 -0
  284. package/dist/collection/components/z-input-range/styles.css +262 -0
  285. package/dist/collection/components/z-logo/index.js +2 -1
  286. package/dist/collection/components/z-logo/index.js.map +1 -0
  287. package/dist/collection/components/z-logo/styles.css +5 -0
  288. package/dist/collection/components/z-menu/index.js +1 -1
  289. package/dist/collection/components/z-menu/index.js.map +1 -0
  290. package/dist/collection/components/z-menu/styles.css +3 -0
  291. package/dist/collection/components/z-menu-section/index.js +2 -1
  292. package/dist/collection/components/z-menu-section/index.js.map +1 -0
  293. package/dist/collection/components/z-modal/index.js +17 -37
  294. package/dist/collection/components/z-modal/index.js.map +1 -0
  295. package/dist/collection/components/z-modal/styles.css +5 -2
  296. package/dist/collection/components/z-navigation-tabs/index.js +3 -4
  297. package/dist/collection/components/z-navigation-tabs/index.js.map +1 -0
  298. package/dist/collection/components/z-navigation-tabs/styles.css +4 -0
  299. package/dist/collection/components/z-notification/index.js +2 -4
  300. package/dist/collection/components/z-notification/index.js.map +1 -0
  301. package/dist/collection/components/z-notification/styles.css +5 -0
  302. package/dist/collection/components/z-offcanvas/index.js +43 -119
  303. package/dist/collection/components/z-offcanvas/index.js.map +1 -0
  304. package/dist/collection/components/z-offcanvas/styles.css +6 -0
  305. package/dist/collection/components/z-pagination/index.js +1 -2
  306. package/dist/collection/components/z-pagination/index.js.map +1 -0
  307. package/dist/collection/components/z-pagination/styles.css +6 -0
  308. package/dist/collection/components/z-panel-elem/index.js +3 -2
  309. package/dist/collection/components/z-panel-elem/index.js.map +1 -0
  310. package/dist/collection/components/z-popover/index.js +2 -6
  311. package/dist/collection/components/z-popover/index.js.map +1 -0
  312. package/dist/collection/components/z-popover/styles.css +6 -0
  313. package/dist/collection/components/z-result-card/index.js +1 -0
  314. package/dist/collection/components/z-result-card/index.js.map +1 -0
  315. package/dist/collection/components/z-result-card/styles.css +8 -5
  316. package/dist/collection/components/z-searchbar/index.js +4 -8
  317. package/dist/collection/components/z-searchbar/index.js.map +1 -0
  318. package/dist/collection/components/z-searchbar/styles.css +5 -0
  319. package/dist/collection/components/z-select/index.js +9 -12
  320. package/dist/collection/components/z-select/index.js.map +1 -0
  321. package/dist/collection/components/z-skip-to-content/index.js +2 -1
  322. package/dist/collection/components/z-skip-to-content/index.js.map +1 -0
  323. package/dist/collection/components/z-stepper/index.js +2 -1
  324. package/dist/collection/components/z-stepper/index.js.map +1 -0
  325. package/dist/collection/components/z-stepper-item/index.js +2 -1
  326. package/dist/collection/components/z-stepper-item/index.js.map +1 -0
  327. package/dist/collection/components/z-tag/index.js +3 -4
  328. package/dist/collection/components/z-tag/index.js.map +1 -0
  329. package/dist/collection/components/z-tag/styles.css +5 -0
  330. package/dist/collection/components/z-toast-notification/index.js +4 -3
  331. package/dist/collection/components/z-toast-notification/index.js.map +1 -0
  332. package/dist/collection/components/z-toast-notification-list/index.js +2 -1
  333. package/dist/collection/components/z-toast-notification-list/index.js.map +1 -0
  334. package/dist/collection/components/z-toggle-button/index.js +3 -2
  335. package/dist/collection/components/z-toggle-button/index.js.map +1 -0
  336. package/dist/collection/components/z-toggle-switch/index.js +4 -3
  337. package/dist/collection/components/z-toggle-switch/index.js.map +1 -0
  338. package/dist/collection/components/z-tool/index.js +4 -3
  339. package/dist/collection/components/z-tool/index.js.map +1 -0
  340. package/dist/collection/components/z-toolbar/index.js +2 -2
  341. package/dist/collection/components/z-toolbar/index.js.map +1 -0
  342. package/dist/collection/components/z-toolbar/styles.css +4 -0
  343. package/dist/collection/components/z-tooltip/index.js +2 -5
  344. package/dist/collection/components/z-tooltip/index.js.map +1 -0
  345. package/dist/collection/components/z-tooltip/styles.css +6 -0
  346. package/dist/collection/components/z-visually-hidden/index.js +2 -1
  347. package/dist/collection/components/z-visually-hidden/index.js.map +1 -0
  348. package/dist/collection/constants/breakpoints.js +1 -0
  349. package/dist/collection/constants/breakpoints.js.map +1 -0
  350. package/dist/collection/constants/icons.js +1 -0
  351. package/dist/collection/constants/icons.js.map +1 -0
  352. package/dist/collection/constants/iconset.js +7 -6
  353. package/dist/collection/constants/iconset.js.map +1 -0
  354. package/dist/collection/index.js +1 -0
  355. package/dist/collection/index.js.map +1 -0
  356. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +3 -2
  357. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js.map +1 -0
  358. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +2 -1
  359. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js.map +1 -0
  360. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +2 -1
  361. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js.map +1 -0
  362. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +2 -1
  363. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js.map +1 -0
  364. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +2 -1
  365. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js.map +1 -0
  366. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +2 -1
  367. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js.map +1 -0
  368. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +2 -1
  369. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js.map +1 -0
  370. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +2 -1
  371. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js.map +1 -0
  372. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +2 -1
  373. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js.map +1 -0
  374. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +3 -2
  375. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js.map +1 -0
  376. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +2 -1
  377. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js.map +1 -0
  378. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +2 -1
  379. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js.map +1 -0
  380. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +2 -1
  381. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js.map +1 -0
  382. package/dist/collection/snowflakes/myz/z-alert/index.js +2 -1
  383. package/dist/collection/snowflakes/myz/z-alert/index.js.map +1 -0
  384. package/dist/collection/snowflakes/myz/z-otp/index.js +3 -2
  385. package/dist/collection/snowflakes/myz/z-otp/index.js.map +1 -0
  386. package/dist/collection/snowflakes/myz/z-slideshow/index.js +1 -0
  387. package/dist/collection/snowflakes/myz/z-slideshow/index.js.map +1 -0
  388. package/dist/collection/utils/focus-trap-controller.js +100 -0
  389. package/dist/collection/utils/focus-trap-controller.js.map +1 -0
  390. package/dist/collection/utils/reactive-controller.js +46 -0
  391. package/dist/collection/utils/reactive-controller.js.map +1 -0
  392. package/dist/collection/utils/storybook-utils.js +8 -0
  393. package/dist/collection/utils/storybook-utils.js.map +1 -0
  394. package/dist/collection/utils/utils.js +65 -1
  395. package/dist/collection/utils/utils.js.map +1 -0
  396. package/dist/components/_commonjsHelpers.js +2 -1
  397. package/dist/components/_commonjsHelpers.js.map +1 -0
  398. package/dist/components/breakpoints.js +2 -1
  399. package/dist/components/breakpoints.js.map +1 -0
  400. package/dist/components/iconset.js +2 -1
  401. package/dist/components/iconset.js.map +1 -0
  402. package/dist/components/index.d.ts +2 -0
  403. package/dist/components/index.js +2 -1
  404. package/dist/components/index.js.map +1 -0
  405. package/dist/components/index10.js +2 -1
  406. package/dist/components/index10.js.map +1 -0
  407. package/dist/components/index11.js +2 -1
  408. package/dist/components/index11.js.map +1 -0
  409. package/dist/components/index12.js +2 -1
  410. package/dist/components/index12.js.map +1 -0
  411. package/dist/components/index13.js +2 -1
  412. package/dist/components/index13.js.map +1 -0
  413. package/dist/components/index14.js +2 -1
  414. package/dist/components/index14.js.map +1 -0
  415. package/dist/components/index15.js +2 -1
  416. package/dist/components/index15.js.map +1 -0
  417. package/dist/components/index16.js +2 -1
  418. package/dist/components/index16.js.map +1 -0
  419. package/dist/components/index17.js +2 -1
  420. package/dist/components/index17.js.map +1 -0
  421. package/dist/components/index18.js +2 -1
  422. package/dist/components/index18.js.map +1 -0
  423. package/dist/components/index19.js +2 -1
  424. package/dist/components/index19.js.map +1 -0
  425. package/dist/components/index2.js +2 -1
  426. package/dist/components/index2.js.map +1 -0
  427. package/dist/components/index20.js +2 -1
  428. package/dist/components/index20.js.map +1 -0
  429. package/dist/components/index21.js +2 -1
  430. package/dist/components/index21.js.map +1 -0
  431. package/dist/components/index22.js +2 -1
  432. package/dist/components/index22.js.map +1 -0
  433. package/dist/components/index23.js +2 -1
  434. package/dist/components/index23.js.map +1 -0
  435. package/dist/components/index24.js +2 -1
  436. package/dist/components/index24.js.map +1 -0
  437. package/dist/components/index25.js +2 -1
  438. package/dist/components/index25.js.map +1 -0
  439. package/dist/components/index26.js +2 -1
  440. package/dist/components/index26.js.map +1 -0
  441. package/dist/components/index27.js +2 -1
  442. package/dist/components/index27.js.map +1 -0
  443. package/dist/components/index3.js +2 -1
  444. package/dist/components/index3.js.map +1 -0
  445. package/dist/components/index4.js +2 -1
  446. package/dist/components/index4.js.map +1 -0
  447. package/dist/components/index5.js +2 -1
  448. package/dist/components/index5.js.map +1 -0
  449. package/dist/components/index6.js +2 -1
  450. package/dist/components/index6.js.map +1 -0
  451. package/dist/components/index7.js +2 -1
  452. package/dist/components/index7.js.map +1 -0
  453. package/dist/components/index8.js +2 -1
  454. package/dist/components/index8.js.map +1 -0
  455. package/dist/components/index9.js +2 -1
  456. package/dist/components/index9.js.map +1 -0
  457. package/dist/components/reactive-controller.js +6 -0
  458. package/dist/components/reactive-controller.js.map +1 -0
  459. package/dist/components/utils.js +7 -1
  460. package/dist/components/utils.js.map +1 -0
  461. package/dist/components/utils2.js +2 -1
  462. package/dist/components/utils2.js.map +1 -0
  463. package/dist/components/z-accordion.js +2 -1
  464. package/dist/components/z-accordion.js.map +1 -0
  465. package/dist/components/z-alert.js +2 -1
  466. package/dist/components/z-alert.js.map +1 -0
  467. package/dist/components/z-anchor-navigation.js +2 -1
  468. package/dist/components/z-anchor-navigation.js.map +1 -0
  469. package/dist/components/z-app-header-deprecated.js +2 -1
  470. package/dist/components/z-app-header-deprecated.js.map +1 -0
  471. package/dist/components/z-app-header.js +2 -1
  472. package/dist/components/z-app-header.js.map +1 -0
  473. package/dist/components/z-aria-alert.js +2 -1
  474. package/dist/components/z-aria-alert.js.map +1 -0
  475. package/dist/components/z-avatar.js +2 -1
  476. package/dist/components/z-avatar.js.map +1 -0
  477. package/dist/components/z-book-card-app.js +2 -1
  478. package/dist/components/z-book-card-app.js.map +1 -0
  479. package/dist/components/z-book-card-deprecated.js +2 -1
  480. package/dist/components/z-book-card-deprecated.js.map +1 -0
  481. package/dist/components/z-book-card.js +2 -1
  482. package/dist/components/z-book-card.js.map +1 -0
  483. package/dist/components/z-book-cover.js +2 -1
  484. package/dist/components/z-book-cover.js.map +1 -0
  485. package/dist/components/z-breadcrumb.js +2 -1
  486. package/dist/components/z-breadcrumb.js.map +1 -0
  487. package/dist/components/z-button-sort.js +2 -1
  488. package/dist/components/z-button-sort.js.map +1 -0
  489. package/dist/components/z-button.js +2 -1
  490. package/dist/components/z-button.js.map +1 -0
  491. package/dist/components/z-card.js +2 -1
  492. package/dist/components/z-card.js.map +1 -0
  493. package/dist/components/z-carousel.js +2 -1
  494. package/dist/components/z-carousel.js.map +1 -0
  495. package/dist/components/z-chip.js +2 -1
  496. package/dist/components/z-chip.js.map +1 -0
  497. package/dist/components/z-color-picker.js +2 -1
  498. package/dist/components/z-color-picker.js.map +1 -0
  499. package/dist/components/z-combobox.js +2 -1
  500. package/dist/components/z-combobox.js.map +1 -0
  501. package/dist/components/z-cover-hero.js +2 -1
  502. package/dist/components/z-cover-hero.js.map +1 -0
  503. package/dist/components/z-date-picker.js +3 -2
  504. package/dist/components/z-date-picker.js.map +1 -0
  505. package/dist/components/z-divider.js +2 -1
  506. package/dist/components/z-divider.js.map +1 -0
  507. package/dist/components/z-dragdrop-area.js +2 -1
  508. package/dist/components/z-dragdrop-area.js.map +1 -0
  509. package/dist/components/z-file-upload.js +2 -1
  510. package/dist/components/z-file-upload.js.map +1 -0
  511. package/dist/components/z-file.js +2 -1
  512. package/dist/components/z-file.js.map +1 -0
  513. package/dist/components/z-ghost-loading.js +2 -1
  514. package/dist/components/z-ghost-loading.js.map +1 -0
  515. package/dist/components/z-icon.js +2 -1
  516. package/dist/components/z-icon.js.map +1 -0
  517. package/dist/components/z-info-box.js +2 -1
  518. package/dist/components/z-info-box.js.map +1 -0
  519. package/dist/components/z-info-reveal.js +2 -1
  520. package/dist/components/z-info-reveal.js.map +1 -0
  521. package/dist/components/z-input-message.js +2 -1
  522. package/dist/components/z-input-message.js.map +1 -0
  523. package/dist/components/z-input-range.d.ts +11 -0
  524. package/dist/components/z-input-range.js +2 -0
  525. package/dist/components/z-input-range.js.map +1 -0
  526. package/dist/components/z-input.js +2 -1
  527. package/dist/components/z-input.js.map +1 -0
  528. package/dist/components/z-list-element.js +2 -1
  529. package/dist/components/z-list-element.js.map +1 -0
  530. package/dist/components/z-list-group.js +2 -1
  531. package/dist/components/z-list-group.js.map +1 -0
  532. package/dist/components/z-list.js +2 -1
  533. package/dist/components/z-list.js.map +1 -0
  534. package/dist/components/z-logo.js +2 -1
  535. package/dist/components/z-logo.js.map +1 -0
  536. package/dist/components/z-menu-deprecated.js +2 -1
  537. package/dist/components/z-menu-deprecated.js.map +1 -0
  538. package/dist/components/z-menu-section-deprecated.js +2 -1
  539. package/dist/components/z-menu-section-deprecated.js.map +1 -0
  540. package/dist/components/z-menu-section.js +2 -1
  541. package/dist/components/z-menu-section.js.map +1 -0
  542. package/dist/components/z-menu.js +2 -1
  543. package/dist/components/z-menu.js.map +1 -0
  544. package/dist/components/z-modal.js +2 -1
  545. package/dist/components/z-modal.js.map +1 -0
  546. package/dist/components/z-myz-card-alert.js +2 -1
  547. package/dist/components/z-myz-card-alert.js.map +1 -0
  548. package/dist/components/z-myz-card-body.js +2 -1
  549. package/dist/components/z-myz-card-body.js.map +1 -0
  550. package/dist/components/z-myz-card-cover.js +2 -1
  551. package/dist/components/z-myz-card-cover.js.map +1 -0
  552. package/dist/components/z-myz-card-dictionary.js +2 -1
  553. package/dist/components/z-myz-card-dictionary.js.map +1 -0
  554. package/dist/components/z-myz-card-footer-sections.js +2 -1
  555. package/dist/components/z-myz-card-footer-sections.js.map +1 -0
  556. package/dist/components/z-myz-card-footer.js +2 -1
  557. package/dist/components/z-myz-card-footer.js.map +1 -0
  558. package/dist/components/z-myz-card-header.js +2 -1
  559. package/dist/components/z-myz-card-header.js.map +1 -0
  560. package/dist/components/z-myz-card-icon.js +2 -1
  561. package/dist/components/z-myz-card-icon.js.map +1 -0
  562. package/dist/components/z-myz-card-info.js +2 -1
  563. package/dist/components/z-myz-card-info.js.map +1 -0
  564. package/dist/components/z-myz-card-list.js +2 -1
  565. package/dist/components/z-myz-card-list.js.map +1 -0
  566. package/dist/components/z-myz-card.js +2 -1
  567. package/dist/components/z-myz-card.js.map +1 -0
  568. package/dist/components/z-myz-list-item.js +2 -1
  569. package/dist/components/z-myz-list-item.js.map +1 -0
  570. package/dist/components/z-myz-list.js +2 -1
  571. package/dist/components/z-myz-list.js.map +1 -0
  572. package/dist/components/z-navigation-tabs.js +2 -1
  573. package/dist/components/z-navigation-tabs.js.map +1 -0
  574. package/dist/components/z-notification.js +2 -1
  575. package/dist/components/z-notification.js.map +1 -0
  576. package/dist/components/z-offcanvas.js +2 -1
  577. package/dist/components/z-offcanvas.js.map +1 -0
  578. package/dist/components/z-otp.js +2 -1
  579. package/dist/components/z-otp.js.map +1 -0
  580. package/dist/components/z-pagination.js +2 -1
  581. package/dist/components/z-pagination.js.map +1 -0
  582. package/dist/components/z-panel-elem.js +2 -1
  583. package/dist/components/z-panel-elem.js.map +1 -0
  584. package/dist/components/z-popover.js +2 -1
  585. package/dist/components/z-popover.js.map +1 -0
  586. package/dist/components/z-range-picker.js +2 -1
  587. package/dist/components/z-range-picker.js.map +1 -0
  588. package/dist/components/z-result-card.js +2 -1
  589. package/dist/components/z-result-card.js.map +1 -0
  590. package/dist/components/z-searchbar.js +2 -1
  591. package/dist/components/z-searchbar.js.map +1 -0
  592. package/dist/components/z-section-title.js +2 -1
  593. package/dist/components/z-section-title.js.map +1 -0
  594. package/dist/components/z-select.js +2 -1
  595. package/dist/components/z-select.js.map +1 -0
  596. package/dist/components/z-skip-to-content.js +2 -1
  597. package/dist/components/z-skip-to-content.js.map +1 -0
  598. package/dist/components/z-slideshow.js +2 -1
  599. package/dist/components/z-slideshow.js.map +1 -0
  600. package/dist/components/z-stepper-item.js +2 -1
  601. package/dist/components/z-stepper-item.js.map +1 -0
  602. package/dist/components/z-stepper.js +2 -1
  603. package/dist/components/z-stepper.js.map +1 -0
  604. package/dist/components/z-table.js +2 -1
  605. package/dist/components/z-table.js.map +1 -0
  606. package/dist/components/z-tag.js +2 -1
  607. package/dist/components/z-tag.js.map +1 -0
  608. package/dist/components/z-tbody.js +2 -1
  609. package/dist/components/z-tbody.js.map +1 -0
  610. package/dist/components/z-td.js +2 -1
  611. package/dist/components/z-td.js.map +1 -0
  612. package/dist/components/z-tfoot.js +2 -1
  613. package/dist/components/z-tfoot.js.map +1 -0
  614. package/dist/components/z-th.js +2 -1
  615. package/dist/components/z-th.js.map +1 -0
  616. package/dist/components/z-thead.js +2 -1
  617. package/dist/components/z-thead.js.map +1 -0
  618. package/dist/components/z-toast-notification-list.js +2 -1
  619. package/dist/components/z-toast-notification-list.js.map +1 -0
  620. package/dist/components/z-toast-notification.js +8 -2
  621. package/dist/components/z-toast-notification.js.map +1 -0
  622. package/dist/components/z-toggle-button.js +2 -1
  623. package/dist/components/z-toggle-button.js.map +1 -0
  624. package/dist/components/z-toggle-switch.js +2 -1
  625. package/dist/components/z-toggle-switch.js.map +1 -0
  626. package/dist/components/z-tool.js +2 -1
  627. package/dist/components/z-tool.js.map +1 -0
  628. package/dist/components/z-toolbar.js +2 -1
  629. package/dist/components/z-toolbar.js.map +1 -0
  630. package/dist/components/z-tooltip.js +2 -1
  631. package/dist/components/z-tooltip.js.map +1 -0
  632. package/dist/components/z-tr.js +2 -1
  633. package/dist/components/z-tr.js.map +1 -0
  634. package/dist/components/z-tree-list.js +2 -1
  635. package/dist/components/z-tree-list.js.map +1 -0
  636. package/dist/components/z-visually-hidden.js +2 -1
  637. package/dist/components/z-visually-hidden.js.map +1 -0
  638. package/dist/esm/_commonjsHelpers-B85MJLTf.js +3 -0
  639. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  640. package/dist/esm/breakpoints-Q-tWjk7P.js +3 -0
  641. package/dist/esm/breakpoints-Q-tWjk7P.js.map +1 -0
  642. package/dist/esm/iconset-AwzX9V8L.js +1027 -0
  643. package/dist/esm/iconset-AwzX9V8L.js.map +1 -0
  644. package/dist/esm/index-B3nR3-Jw.js +413 -0
  645. package/dist/esm/index-B3nR3-Jw.js.map +1 -0
  646. package/dist/esm/index-BEHxru6n.js +2697 -0
  647. package/dist/esm/index-BEHxru6n.js.map +1 -0
  648. package/dist/esm/index.js +6 -3
  649. package/dist/esm/index.js.map +1 -0
  650. package/dist/esm/loader.js +6 -3
  651. package/dist/esm/loader.js.map +1 -0
  652. package/dist/esm/reactive-controller-DXvzHFid.js +1443 -0
  653. package/dist/esm/reactive-controller-DXvzHFid.js.map +1 -0
  654. package/dist/esm/utils-C9lc3rtK.js +896 -0
  655. package/dist/esm/utils-C9lc3rtK.js.map +1 -0
  656. package/dist/esm/utils-DP4zBIll.js +2715 -0
  657. package/dist/esm/utils-DP4zBIll.js.map +1 -0
  658. package/dist/esm/web-components-library.js +6 -3
  659. package/dist/esm/web-components-library.js.map +1 -0
  660. package/dist/esm/z-accordion.entry.js +6 -3
  661. package/dist/esm/z-accordion.entry.js.map +1 -0
  662. package/dist/esm/z-alert.entry.js +5 -2
  663. package/dist/esm/z-alert.entry.js.map +1 -0
  664. package/dist/esm/z-anchor-navigation.entry.js +7 -4
  665. package/dist/esm/z-anchor-navigation.entry.js.map +1 -0
  666. package/dist/esm/z-app-header-deprecated.entry.js +6 -3
  667. package/dist/esm/z-app-header-deprecated.entry.js.map +1 -0
  668. package/dist/esm/z-app-header_12.entry.js +101 -135
  669. package/dist/esm/z-app-header_12.entry.js.map +1 -0
  670. package/dist/esm/z-aria-alert.entry.js +6 -3
  671. package/dist/esm/z-aria-alert.entry.js.map +1 -0
  672. package/dist/esm/z-avatar.entry.js +7 -4
  673. package/dist/esm/z-avatar.entry.js.map +1 -0
  674. package/dist/esm/z-book-card-app.entry.js +6 -3
  675. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  676. package/dist/esm/z-book-card-deprecated.entry.js +7 -4
  677. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  678. package/dist/esm/z-book-card.entry.js +6 -3
  679. package/dist/esm/z-book-card.entry.js.map +1 -0
  680. package/dist/esm/z-book-cover.entry.js +5 -2
  681. package/dist/esm/z-book-cover.entry.js.map +1 -0
  682. package/dist/esm/z-breadcrumb.entry.js +8 -5
  683. package/dist/esm/z-breadcrumb.entry.js.map +1 -0
  684. package/dist/esm/z-button-sort.entry.js +5 -2
  685. package/dist/esm/z-button-sort.entry.js.map +1 -0
  686. package/dist/esm/z-card.entry.js +5 -2
  687. package/dist/esm/z-card.entry.js.map +1 -0
  688. package/dist/esm/z-carousel.entry.js +6 -3
  689. package/dist/esm/z-carousel.entry.js.map +1 -0
  690. package/dist/esm/z-chip.entry.js +7 -4
  691. package/dist/esm/z-chip.entry.js.map +1 -0
  692. package/dist/esm/z-color-picker.entry.js +7 -4
  693. package/dist/esm/z-color-picker.entry.js.map +1 -0
  694. package/dist/esm/z-combobox.entry.js +21 -15
  695. package/dist/esm/z-combobox.entry.js.map +1 -0
  696. package/dist/esm/z-cover-hero.entry.js +7 -4
  697. package/dist/esm/z-cover-hero.entry.js.map +1 -0
  698. package/dist/esm/z-date-picker.entry.js +7 -4
  699. package/dist/esm/z-date-picker.entry.js.map +1 -0
  700. package/dist/esm/z-dragdrop-area_2.entry.js +25 -41
  701. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -0
  702. package/dist/esm/z-file-upload.entry.js +7 -4
  703. package/dist/esm/z-file-upload.entry.js.map +1 -0
  704. package/dist/esm/z-file.entry.js +6 -3
  705. package/dist/esm/z-file.entry.js.map +1 -0
  706. package/dist/esm/z-ghost-loading.entry.js +5 -2
  707. package/dist/esm/z-ghost-loading.entry.js.map +1 -0
  708. package/dist/esm/z-info-box.entry.js +5 -2
  709. package/dist/esm/z-info-box.entry.js.map +1 -0
  710. package/dist/esm/z-info-reveal.entry.js +6 -3
  711. package/dist/esm/z-info-reveal.entry.js.map +1 -0
  712. package/dist/esm/z-input-range.entry.js +143 -0
  713. package/dist/esm/z-input-range.entry.js.map +1 -0
  714. package/dist/esm/z-logo.entry.js +6 -3
  715. package/dist/esm/z-logo.entry.js.map +1 -0
  716. package/dist/esm/z-menu-deprecated.entry.js +6 -3
  717. package/dist/esm/z-menu-deprecated.entry.js.map +1 -0
  718. package/dist/esm/z-menu-section-deprecated.entry.js +5 -2
  719. package/dist/esm/z-menu-section-deprecated.entry.js.map +1 -0
  720. package/dist/esm/z-menu-section.entry.js +6 -3
  721. package/dist/esm/z-menu-section.entry.js.map +1 -0
  722. package/dist/esm/z-menu.entry.js +6 -3
  723. package/dist/esm/z-menu.entry.js.map +1 -0
  724. package/dist/esm/z-myz-card-alert.entry.js +6 -3
  725. package/dist/esm/z-myz-card-alert.entry.js.map +1 -0
  726. package/dist/esm/z-myz-card-dictionary.entry.js +6 -3
  727. package/dist/esm/z-myz-card-dictionary.entry.js.map +1 -0
  728. package/dist/esm/z-myz-card-footer-sections.entry.js +5 -2
  729. package/dist/esm/z-myz-card-footer-sections.entry.js.map +1 -0
  730. package/dist/esm/z-myz-card-footer.entry.js +6 -3
  731. package/dist/esm/z-myz-card-footer.entry.js.map +1 -0
  732. package/dist/esm/z-myz-card-icon.entry.js +5 -2
  733. package/dist/esm/z-myz-card-icon.entry.js.map +1 -0
  734. package/dist/esm/z-myz-card-info.entry.js +7 -4
  735. package/dist/esm/z-myz-card-info.entry.js.map +1 -0
  736. package/dist/esm/z-myz-card-list.entry.js +5 -2
  737. package/dist/esm/z-myz-card-list.entry.js.map +1 -0
  738. package/dist/esm/z-myz-card_4.entry.js +9 -6
  739. package/dist/esm/z-myz-card_4.entry.js.map +1 -0
  740. package/dist/esm/z-myz-list-item.entry.js +7 -4
  741. package/dist/esm/z-myz-list-item.entry.js.map +1 -0
  742. package/dist/esm/z-myz-list.entry.js +5 -2
  743. package/dist/esm/z-myz-list.entry.js.map +1 -0
  744. package/dist/esm/z-navigation-tabs.entry.js +7 -4
  745. package/dist/esm/z-navigation-tabs.entry.js.map +1 -0
  746. package/dist/esm/z-notification.entry.js +5 -2
  747. package/dist/esm/z-notification.entry.js.map +1 -0
  748. package/dist/esm/z-otp.entry.js +7 -4
  749. package/dist/esm/z-otp.entry.js.map +1 -0
  750. package/dist/esm/z-pagination.entry.js +5 -2
  751. package/dist/esm/z-pagination.entry.js.map +1 -0
  752. package/dist/esm/z-panel-elem.entry.js +6 -3
  753. package/dist/esm/z-panel-elem.entry.js.map +1 -0
  754. package/dist/esm/z-popover.entry.js +7 -4
  755. package/dist/esm/z-popover.entry.js.map +1 -0
  756. package/dist/esm/z-range-picker.entry.js +9 -6
  757. package/dist/esm/z-range-picker.entry.js.map +1 -0
  758. package/dist/esm/z-result-card.entry.js +5 -2
  759. package/dist/esm/z-result-card.entry.js.map +1 -0
  760. package/dist/esm/z-section-title.entry.js +6 -3
  761. package/dist/esm/z-section-title.entry.js.map +1 -0
  762. package/dist/esm/z-select.entry.js +13 -14
  763. package/dist/esm/z-select.entry.js.map +1 -0
  764. package/dist/esm/z-skip-to-content.entry.js +7 -4
  765. package/dist/esm/z-skip-to-content.entry.js.map +1 -0
  766. package/dist/esm/z-slideshow.entry.js +6 -3
  767. package/dist/esm/z-slideshow.entry.js.map +1 -0
  768. package/dist/esm/z-stepper-item.entry.js +5 -2
  769. package/dist/esm/z-stepper-item.entry.js.map +1 -0
  770. package/dist/esm/z-stepper.entry.js +5 -2
  771. package/dist/esm/z-stepper.entry.js.map +1 -0
  772. package/dist/esm/z-table.entry.js +7 -4
  773. package/dist/esm/z-table.entry.js.map +1 -0
  774. package/dist/esm/z-tbody.entry.js +5 -2
  775. package/dist/esm/z-tbody.entry.js.map +1 -0
  776. package/dist/esm/z-td.entry.js +6 -3
  777. package/dist/esm/z-td.entry.js.map +1 -0
  778. package/dist/esm/z-tfoot.entry.js +5 -2
  779. package/dist/esm/z-tfoot.entry.js.map +1 -0
  780. package/dist/esm/z-th.entry.js +6 -3
  781. package/dist/esm/z-th.entry.js.map +1 -0
  782. package/dist/esm/z-thead.entry.js +5 -2
  783. package/dist/esm/z-thead.entry.js.map +1 -0
  784. package/dist/esm/z-toast-notification-list.entry.js +6 -3
  785. package/dist/esm/z-toast-notification-list.entry.js.map +1 -0
  786. package/dist/esm/z-toast-notification.entry.js +8 -5
  787. package/dist/esm/z-toast-notification.entry.js.map +1 -0
  788. package/dist/esm/z-toggle-button.entry.js +6 -3
  789. package/dist/esm/z-toggle-button.entry.js.map +1 -0
  790. package/dist/esm/z-toggle-switch.entry.js +9 -6
  791. package/dist/esm/z-toggle-switch.entry.js.map +1 -0
  792. package/dist/esm/z-tool.entry.js +8 -5
  793. package/dist/esm/z-tool.entry.js.map +1 -0
  794. package/dist/esm/z-toolbar.entry.js +6 -3
  795. package/dist/esm/z-toolbar.entry.js.map +1 -0
  796. package/dist/esm/z-tooltip.entry.js +6 -3
  797. package/dist/esm/z-tooltip.entry.js.map +1 -0
  798. package/dist/esm/z-tr.entry.js +8 -5
  799. package/dist/esm/z-tr.entry.js.map +1 -0
  800. package/dist/esm/z-tree-list.entry.js +6 -3
  801. package/dist/esm/z-tree-list.entry.js.map +1 -0
  802. package/dist/esm/z-visually-hidden.entry.js +5 -2
  803. package/dist/esm/z-visually-hidden.entry.js.map +1 -0
  804. package/dist/types/beans/index.d.ts +4 -0
  805. package/dist/types/components/book-card/z-book-card/index.d.ts +0 -7
  806. package/dist/types/components/book-card/z-book-card-app/index.d.ts +0 -2
  807. package/dist/types/components/deprecated/z-app-header-deprecated/index.d.ts +0 -53
  808. package/dist/types/components/deprecated/z-book-card-deprecated/index.d.ts +0 -4
  809. package/dist/types/components/deprecated/z-menu-deprecated/index.d.ts +0 -1
  810. package/dist/types/components/deprecated/z-section-title/index.d.ts +0 -1
  811. package/dist/types/components/table/z-table/index.d.ts +0 -1
  812. package/dist/types/components/z-accordion/index.d.ts +2 -10
  813. package/dist/types/components/z-anchor-navigation/index.d.ts +1 -1
  814. package/dist/types/components/z-app-header/index.d.ts +4 -6
  815. package/dist/types/components/z-book-cover/index.d.ts +0 -4
  816. package/dist/types/components/z-button/index.d.ts +1 -1
  817. package/dist/types/components/z-card/index.d.ts +1 -8
  818. package/dist/types/components/z-carousel/index.d.ts +0 -2
  819. package/dist/types/components/z-combobox/index.d.ts +1 -0
  820. package/dist/types/components/z-cover-hero/index.d.ts +0 -3
  821. package/dist/types/components/z-icon/index.d.ts +13 -0
  822. package/dist/types/components/z-info-reveal/index.d.ts +0 -4
  823. package/dist/types/components/z-input/index.d.ts +6 -4
  824. package/dist/types/components/z-input-range/index.d.ts +83 -0
  825. package/dist/types/components/z-menu/index.d.ts +0 -1
  826. package/dist/types/components/z-modal/index.d.ts +4 -11
  827. package/dist/types/components/z-navigation-tabs/index.d.ts +0 -2
  828. package/dist/types/components/z-notification/index.d.ts +0 -3
  829. package/dist/types/components/z-offcanvas/index.d.ts +12 -37
  830. package/dist/types/components/z-pagination/index.d.ts +0 -2
  831. package/dist/types/components/z-popover/index.d.ts +0 -5
  832. package/dist/types/components/z-searchbar/index.d.ts +0 -5
  833. package/dist/types/components/z-select/index.d.ts +0 -1
  834. package/dist/types/components/z-tag/index.d.ts +0 -2
  835. package/dist/types/components/z-toolbar/index.d.ts +0 -1
  836. package/dist/types/components/z-tooltip/index.d.ts +0 -4
  837. package/dist/types/components.d.ts +213 -606
  838. package/dist/types/constants/iconset.d.ts +4 -4
  839. package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +1 -1
  840. package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +1 -1
  841. package/dist/types/utils/focus-trap-controller.d.ts +53 -0
  842. package/dist/types/utils/reactive-controller.d.ts +39 -0
  843. package/dist/types/utils/storybook-utils.d.ts +7 -2
  844. package/dist/types/utils/utils.d.ts +12 -0
  845. package/dist/web-components-library/index.esm.js +2 -1
  846. package/dist/web-components-library/index.esm.js.map +1 -0
  847. package/dist/web-components-library/p-0a10c7d7.entry.js +2 -0
  848. package/dist/web-components-library/p-0a10c7d7.entry.js.map +1 -0
  849. package/dist/web-components-library/p-0de3e2fa.entry.js +2 -0
  850. package/dist/web-components-library/p-0de3e2fa.entry.js.map +1 -0
  851. package/dist/web-components-library/p-0eb833b6.entry.js +2 -0
  852. package/dist/web-components-library/p-0eb833b6.entry.js.map +1 -0
  853. package/dist/web-components-library/p-17a9c2b3.entry.js +2 -0
  854. package/dist/web-components-library/p-17a9c2b3.entry.js.map +1 -0
  855. package/dist/web-components-library/p-235a1c1d.entry.js +2 -0
  856. package/dist/web-components-library/p-235a1c1d.entry.js.map +1 -0
  857. package/dist/web-components-library/p-286690fd.entry.js +2 -0
  858. package/dist/web-components-library/p-286690fd.entry.js.map +1 -0
  859. package/dist/web-components-library/p-288c1f55.entry.js +2 -0
  860. package/dist/web-components-library/p-288c1f55.entry.js.map +1 -0
  861. package/dist/web-components-library/p-2b05eaef.entry.js +2 -0
  862. package/dist/web-components-library/p-2b05eaef.entry.js.map +1 -0
  863. package/dist/web-components-library/p-2c63a798.entry.js +2 -0
  864. package/dist/web-components-library/p-2c63a798.entry.js.map +1 -0
  865. package/dist/web-components-library/p-315ac39c.entry.js +2 -0
  866. package/dist/web-components-library/p-315ac39c.entry.js.map +1 -0
  867. package/dist/web-components-library/p-35653b5e.entry.js +2 -0
  868. package/dist/web-components-library/p-35653b5e.entry.js.map +1 -0
  869. package/dist/web-components-library/p-38e4e01f.entry.js +2 -0
  870. package/dist/web-components-library/p-38e4e01f.entry.js.map +1 -0
  871. package/dist/web-components-library/p-3b3e1ffb.entry.js +2 -0
  872. package/dist/web-components-library/p-3b3e1ffb.entry.js.map +1 -0
  873. package/dist/web-components-library/p-3b7f5d80.entry.js +2 -0
  874. package/dist/web-components-library/p-3b7f5d80.entry.js.map +1 -0
  875. package/dist/web-components-library/p-40694478.entry.js +2 -0
  876. package/dist/web-components-library/p-40694478.entry.js.map +1 -0
  877. package/dist/web-components-library/p-440e5b62.entry.js +2 -0
  878. package/dist/web-components-library/p-440e5b62.entry.js.map +1 -0
  879. package/dist/web-components-library/p-44410388.entry.js +2 -0
  880. package/dist/web-components-library/p-44410388.entry.js.map +1 -0
  881. package/dist/web-components-library/p-508eb530.entry.js +2 -0
  882. package/dist/web-components-library/p-508eb530.entry.js.map +1 -0
  883. package/dist/web-components-library/p-50a09bf1.entry.js +2 -0
  884. package/dist/web-components-library/p-50a09bf1.entry.js.map +1 -0
  885. package/dist/web-components-library/p-54f98f8e.entry.js +2 -0
  886. package/dist/web-components-library/p-54f98f8e.entry.js.map +1 -0
  887. package/dist/web-components-library/p-5a0424cd.entry.js +2 -0
  888. package/dist/web-components-library/p-5a0424cd.entry.js.map +1 -0
  889. package/dist/web-components-library/p-5ba350d8.entry.js +2 -0
  890. package/dist/web-components-library/p-5ba350d8.entry.js.map +1 -0
  891. package/dist/web-components-library/p-643aaedc.entry.js +2 -0
  892. package/dist/web-components-library/p-643aaedc.entry.js.map +1 -0
  893. package/dist/web-components-library/p-654cbe9f.entry.js +2 -0
  894. package/dist/web-components-library/p-654cbe9f.entry.js.map +1 -0
  895. package/dist/web-components-library/p-6fc4fd53.entry.js +2 -0
  896. package/dist/web-components-library/p-6fc4fd53.entry.js.map +1 -0
  897. package/dist/web-components-library/p-72356b43.entry.js +2 -0
  898. package/dist/web-components-library/p-72356b43.entry.js.map +1 -0
  899. package/dist/web-components-library/p-723c700f.entry.js +2 -0
  900. package/dist/web-components-library/p-723c700f.entry.js.map +1 -0
  901. package/dist/web-components-library/p-72da35ee.entry.js +2 -0
  902. package/dist/web-components-library/p-72da35ee.entry.js.map +1 -0
  903. package/dist/web-components-library/p-7313202f.entry.js +2 -0
  904. package/dist/web-components-library/p-7313202f.entry.js.map +1 -0
  905. package/dist/web-components-library/p-73ed9922.entry.js +2 -0
  906. package/dist/web-components-library/p-73ed9922.entry.js.map +1 -0
  907. package/dist/web-components-library/p-779a7476.entry.js +2 -0
  908. package/dist/web-components-library/p-779a7476.entry.js.map +1 -0
  909. package/dist/web-components-library/p-7a25961e.entry.js +2 -0
  910. package/dist/web-components-library/p-7a25961e.entry.js.map +1 -0
  911. package/dist/web-components-library/p-7dfb5290.entry.js +2 -0
  912. package/dist/web-components-library/p-7dfb5290.entry.js.map +1 -0
  913. package/dist/web-components-library/p-7fff6cfd.entry.js +2 -0
  914. package/dist/web-components-library/p-7fff6cfd.entry.js.map +1 -0
  915. package/dist/web-components-library/p-8041306f.entry.js +2 -0
  916. package/dist/web-components-library/p-8041306f.entry.js.map +1 -0
  917. package/dist/web-components-library/p-8046cab0.entry.js +2 -0
  918. package/dist/web-components-library/p-8046cab0.entry.js.map +1 -0
  919. package/dist/web-components-library/p-82c43c62.entry.js +2 -0
  920. package/dist/web-components-library/p-82c43c62.entry.js.map +1 -0
  921. package/dist/web-components-library/p-82e04f79.entry.js +2 -0
  922. package/dist/web-components-library/p-82e04f79.entry.js.map +1 -0
  923. package/dist/web-components-library/p-87a5a352.entry.js +2 -0
  924. package/dist/web-components-library/p-87a5a352.entry.js.map +1 -0
  925. package/dist/web-components-library/p-8b0c232c.entry.js +2 -0
  926. package/dist/web-components-library/p-8b0c232c.entry.js.map +1 -0
  927. package/dist/web-components-library/p-8b1f745c.entry.js +2 -0
  928. package/dist/web-components-library/p-8b1f745c.entry.js.map +1 -0
  929. package/dist/web-components-library/p-8bd0e3e2.entry.js +2 -0
  930. package/dist/web-components-library/p-8bd0e3e2.entry.js.map +1 -0
  931. package/dist/web-components-library/p-8ca86be7.entry.js +2 -0
  932. package/dist/web-components-library/p-8ca86be7.entry.js.map +1 -0
  933. package/dist/web-components-library/p-8ce8d90d.entry.js +2 -0
  934. package/dist/web-components-library/p-8ce8d90d.entry.js.map +1 -0
  935. package/dist/web-components-library/p-927d9062.entry.js +2 -0
  936. package/dist/web-components-library/p-927d9062.entry.js.map +1 -0
  937. package/dist/web-components-library/p-931f2a16.entry.js +2 -0
  938. package/dist/web-components-library/p-931f2a16.entry.js.map +1 -0
  939. package/dist/web-components-library/p-960cd1d9.entry.js +2 -0
  940. package/dist/web-components-library/p-960cd1d9.entry.js.map +1 -0
  941. package/dist/web-components-library/p-9f0e91f5.entry.js +2 -0
  942. package/dist/web-components-library/p-9f0e91f5.entry.js.map +1 -0
  943. package/dist/web-components-library/p-AwzX9V8L.js +2 -0
  944. package/dist/web-components-library/p-AwzX9V8L.js.map +1 -0
  945. package/dist/web-components-library/p-B3nR3-Jw.js +2 -0
  946. package/dist/web-components-library/p-B3nR3-Jw.js.map +1 -0
  947. package/dist/web-components-library/p-B85MJLTf.js +2 -1
  948. package/dist/web-components-library/p-B85MJLTf.js.map +1 -0
  949. package/dist/web-components-library/p-BEHxru6n.js +3 -0
  950. package/dist/web-components-library/p-BEHxru6n.js.map +1 -0
  951. package/dist/web-components-library/p-Bx6o9v2_.js +2 -0
  952. package/dist/web-components-library/p-Bx6o9v2_.js.map +1 -0
  953. package/dist/web-components-library/p-C8pbzcmM.js +7 -0
  954. package/dist/web-components-library/p-C8pbzcmM.js.map +1 -0
  955. package/dist/web-components-library/p-CscBC1Z4.js +6 -0
  956. package/dist/web-components-library/p-CscBC1Z4.js.map +1 -0
  957. package/dist/web-components-library/p-Q-tWjk7P.js +2 -1
  958. package/dist/web-components-library/p-Q-tWjk7P.js.map +1 -0
  959. package/dist/web-components-library/p-a1db3939.entry.js +2 -0
  960. package/dist/web-components-library/p-a1db3939.entry.js.map +1 -0
  961. package/dist/web-components-library/p-a6f29ff5.entry.js +2 -0
  962. package/dist/web-components-library/p-a6f29ff5.entry.js.map +1 -0
  963. package/dist/web-components-library/p-a8e42a7c.entry.js +2 -0
  964. package/dist/web-components-library/p-a8e42a7c.entry.js.map +1 -0
  965. package/dist/web-components-library/p-a8fe9ae0.entry.js +2 -0
  966. package/dist/web-components-library/p-a8fe9ae0.entry.js.map +1 -0
  967. package/dist/web-components-library/p-ab64e360.entry.js +2 -0
  968. package/dist/web-components-library/p-ab64e360.entry.js.map +1 -0
  969. package/dist/web-components-library/p-acba8f34.entry.js +2 -0
  970. package/dist/web-components-library/p-acba8f34.entry.js.map +1 -0
  971. package/dist/web-components-library/p-ace68b04.entry.js +2 -0
  972. package/dist/web-components-library/p-ace68b04.entry.js.map +1 -0
  973. package/dist/web-components-library/p-ad88d4a5.entry.js +2 -0
  974. package/dist/web-components-library/p-ad88d4a5.entry.js.map +1 -0
  975. package/dist/web-components-library/p-ae8d5494.entry.js +2 -0
  976. package/dist/web-components-library/p-ae8d5494.entry.js.map +1 -0
  977. package/dist/web-components-library/p-af8fec68.entry.js +17 -0
  978. package/dist/web-components-library/p-af8fec68.entry.js.map +1 -0
  979. package/dist/web-components-library/p-b4140668.entry.js +2 -0
  980. package/dist/web-components-library/p-b4140668.entry.js.map +1 -0
  981. package/dist/web-components-library/p-bff500a3.entry.js +2 -0
  982. package/dist/web-components-library/p-bff500a3.entry.js.map +1 -0
  983. package/dist/web-components-library/p-d09060af.entry.js +2 -0
  984. package/dist/web-components-library/p-d09060af.entry.js.map +1 -0
  985. package/dist/web-components-library/p-da213c6e.entry.js +2 -0
  986. package/dist/web-components-library/p-da213c6e.entry.js.map +1 -0
  987. package/dist/web-components-library/p-e4622c5d.entry.js +2 -0
  988. package/dist/web-components-library/p-e4622c5d.entry.js.map +1 -0
  989. package/dist/web-components-library/p-e7e98d15.entry.js +2 -0
  990. package/dist/web-components-library/p-e7e98d15.entry.js.map +1 -0
  991. package/dist/web-components-library/p-e87e13b0.entry.js +2 -0
  992. package/dist/web-components-library/p-e87e13b0.entry.js.map +1 -0
  993. package/dist/web-components-library/p-e9212c7a.entry.js +2 -0
  994. package/dist/web-components-library/p-e9212c7a.entry.js.map +1 -0
  995. package/dist/web-components-library/p-e9722221.entry.js +8 -0
  996. package/dist/web-components-library/p-e9722221.entry.js.map +1 -0
  997. package/dist/web-components-library/p-e9ed3594.entry.js +2 -0
  998. package/dist/web-components-library/p-e9ed3594.entry.js.map +1 -0
  999. package/dist/web-components-library/p-eb5e4333.entry.js +2 -0
  1000. package/dist/web-components-library/p-eb5e4333.entry.js.map +1 -0
  1001. package/dist/web-components-library/p-ee711acf.entry.js +2 -0
  1002. package/dist/web-components-library/p-ee711acf.entry.js.map +1 -0
  1003. package/dist/web-components-library/p-fa4e8b1b.entry.js +2 -0
  1004. package/dist/web-components-library/p-fa4e8b1b.entry.js.map +1 -0
  1005. package/dist/web-components-library/p-fe279683.entry.js +2 -0
  1006. package/dist/web-components-library/p-fe279683.entry.js.map +1 -0
  1007. package/dist/web-components-library/web-components-library.esm.js +2 -1
  1008. package/dist/web-components-library/web-components-library.esm.js.map +1 -0
  1009. package/package.json +17 -17
  1010. package/react/components.d.ts +1 -0
  1011. package/react/components.js +3 -2
  1012. package/readme.md +8 -19
  1013. package/www/build/index.esm.js +2 -1
  1014. package/www/build/index.esm.js.map +1 -0
  1015. package/www/build/p-0a10c7d7.entry.js +2 -0
  1016. package/www/build/p-0a10c7d7.entry.js.map +1 -0
  1017. package/www/build/p-0de3e2fa.entry.js +2 -0
  1018. package/www/build/p-0de3e2fa.entry.js.map +1 -0
  1019. package/www/build/p-0eb833b6.entry.js +2 -0
  1020. package/www/build/p-0eb833b6.entry.js.map +1 -0
  1021. package/www/build/p-17a9c2b3.entry.js +2 -0
  1022. package/www/build/p-17a9c2b3.entry.js.map +1 -0
  1023. package/www/build/p-235a1c1d.entry.js +2 -0
  1024. package/www/build/p-235a1c1d.entry.js.map +1 -0
  1025. package/www/build/p-286690fd.entry.js +2 -0
  1026. package/www/build/p-286690fd.entry.js.map +1 -0
  1027. package/www/build/p-288c1f55.entry.js +2 -0
  1028. package/www/build/p-288c1f55.entry.js.map +1 -0
  1029. package/www/build/p-2b05eaef.entry.js +2 -0
  1030. package/www/build/p-2b05eaef.entry.js.map +1 -0
  1031. package/www/build/p-2c63a798.entry.js +2 -0
  1032. package/www/build/p-2c63a798.entry.js.map +1 -0
  1033. package/www/build/p-315ac39c.entry.js +2 -0
  1034. package/www/build/p-315ac39c.entry.js.map +1 -0
  1035. package/www/build/p-35653b5e.entry.js +2 -0
  1036. package/www/build/p-35653b5e.entry.js.map +1 -0
  1037. package/www/build/p-38e4e01f.entry.js +2 -0
  1038. package/www/build/p-38e4e01f.entry.js.map +1 -0
  1039. package/www/build/p-3b3e1ffb.entry.js +2 -0
  1040. package/www/build/p-3b3e1ffb.entry.js.map +1 -0
  1041. package/www/build/p-3b7f5d80.entry.js +2 -0
  1042. package/www/build/p-3b7f5d80.entry.js.map +1 -0
  1043. package/www/build/p-40694478.entry.js +2 -0
  1044. package/www/build/p-40694478.entry.js.map +1 -0
  1045. package/www/build/p-440e5b62.entry.js +2 -0
  1046. package/www/build/p-440e5b62.entry.js.map +1 -0
  1047. package/www/build/p-44410388.entry.js +2 -0
  1048. package/www/build/p-44410388.entry.js.map +1 -0
  1049. package/www/build/p-508eb530.entry.js +2 -0
  1050. package/www/build/p-508eb530.entry.js.map +1 -0
  1051. package/www/build/p-50a09bf1.entry.js +2 -0
  1052. package/www/build/p-50a09bf1.entry.js.map +1 -0
  1053. package/www/build/p-54f98f8e.entry.js +2 -0
  1054. package/www/build/p-54f98f8e.entry.js.map +1 -0
  1055. package/www/build/p-5a0424cd.entry.js +2 -0
  1056. package/www/build/p-5a0424cd.entry.js.map +1 -0
  1057. package/www/build/p-5ba350d8.entry.js +2 -0
  1058. package/www/build/p-5ba350d8.entry.js.map +1 -0
  1059. package/www/build/p-643aaedc.entry.js +2 -0
  1060. package/www/build/p-643aaedc.entry.js.map +1 -0
  1061. package/www/build/p-654cbe9f.entry.js +2 -0
  1062. package/www/build/p-654cbe9f.entry.js.map +1 -0
  1063. package/www/build/p-6fc4fd53.entry.js +2 -0
  1064. package/www/build/p-6fc4fd53.entry.js.map +1 -0
  1065. package/www/build/p-72356b43.entry.js +2 -0
  1066. package/www/build/p-72356b43.entry.js.map +1 -0
  1067. package/www/build/p-723c700f.entry.js +2 -0
  1068. package/www/build/p-723c700f.entry.js.map +1 -0
  1069. package/www/build/p-72da35ee.entry.js +2 -0
  1070. package/www/build/p-72da35ee.entry.js.map +1 -0
  1071. package/www/build/p-7313202f.entry.js +2 -0
  1072. package/www/build/p-7313202f.entry.js.map +1 -0
  1073. package/www/build/p-73ed9922.entry.js +2 -0
  1074. package/www/build/p-73ed9922.entry.js.map +1 -0
  1075. package/www/build/p-779a7476.entry.js +2 -0
  1076. package/www/build/p-779a7476.entry.js.map +1 -0
  1077. package/www/build/p-7a25961e.entry.js +2 -0
  1078. package/www/build/p-7a25961e.entry.js.map +1 -0
  1079. package/www/build/p-7dfb5290.entry.js +2 -0
  1080. package/www/build/p-7dfb5290.entry.js.map +1 -0
  1081. package/www/build/p-7fff6cfd.entry.js +2 -0
  1082. package/www/build/p-7fff6cfd.entry.js.map +1 -0
  1083. package/www/build/p-8041306f.entry.js +2 -0
  1084. package/www/build/p-8041306f.entry.js.map +1 -0
  1085. package/www/build/p-8046cab0.entry.js +2 -0
  1086. package/www/build/p-8046cab0.entry.js.map +1 -0
  1087. package/www/build/p-82c43c62.entry.js +2 -0
  1088. package/www/build/p-82c43c62.entry.js.map +1 -0
  1089. package/www/build/p-82e04f79.entry.js +2 -0
  1090. package/www/build/p-82e04f79.entry.js.map +1 -0
  1091. package/www/build/p-87a5a352.entry.js +2 -0
  1092. package/www/build/p-87a5a352.entry.js.map +1 -0
  1093. package/www/build/p-8b0c232c.entry.js +2 -0
  1094. package/www/build/p-8b0c232c.entry.js.map +1 -0
  1095. package/www/build/p-8b1f745c.entry.js +2 -0
  1096. package/www/build/p-8b1f745c.entry.js.map +1 -0
  1097. package/www/build/p-8bd0e3e2.entry.js +2 -0
  1098. package/www/build/p-8bd0e3e2.entry.js.map +1 -0
  1099. package/www/build/p-8ca86be7.entry.js +2 -0
  1100. package/www/build/p-8ca86be7.entry.js.map +1 -0
  1101. package/www/build/p-8ce8d90d.entry.js +2 -0
  1102. package/www/build/p-8ce8d90d.entry.js.map +1 -0
  1103. package/www/build/p-927d9062.entry.js +2 -0
  1104. package/www/build/p-927d9062.entry.js.map +1 -0
  1105. package/www/build/p-931f2a16.entry.js +2 -0
  1106. package/www/build/p-931f2a16.entry.js.map +1 -0
  1107. package/www/build/p-960cd1d9.entry.js +2 -0
  1108. package/www/build/p-960cd1d9.entry.js.map +1 -0
  1109. package/www/build/p-9f0e91f5.entry.js +2 -0
  1110. package/www/build/p-9f0e91f5.entry.js.map +1 -0
  1111. package/www/build/p-AwzX9V8L.js +2 -0
  1112. package/www/build/p-AwzX9V8L.js.map +1 -0
  1113. package/www/build/p-B3nR3-Jw.js +2 -0
  1114. package/www/build/p-B3nR3-Jw.js.map +1 -0
  1115. package/www/build/p-B85MJLTf.js +2 -1
  1116. package/www/build/p-B85MJLTf.js.map +1 -0
  1117. package/www/build/p-BEHxru6n.js +3 -0
  1118. package/www/build/p-BEHxru6n.js.map +1 -0
  1119. package/www/build/p-Bx6o9v2_.js +2 -0
  1120. package/www/build/p-Bx6o9v2_.js.map +1 -0
  1121. package/www/build/p-C8pbzcmM.js +7 -0
  1122. package/www/build/p-C8pbzcmM.js.map +1 -0
  1123. package/www/build/p-CscBC1Z4.js +6 -0
  1124. package/www/build/p-CscBC1Z4.js.map +1 -0
  1125. package/www/build/p-Q-tWjk7P.js +2 -1
  1126. package/www/build/p-Q-tWjk7P.js.map +1 -0
  1127. package/www/build/p-a1db3939.entry.js +2 -0
  1128. package/www/build/p-a1db3939.entry.js.map +1 -0
  1129. package/www/build/p-a6f29ff5.entry.js +2 -0
  1130. package/www/build/p-a6f29ff5.entry.js.map +1 -0
  1131. package/www/build/p-a8e42a7c.entry.js +2 -0
  1132. package/www/build/p-a8e42a7c.entry.js.map +1 -0
  1133. package/www/build/p-a8fe9ae0.entry.js +2 -0
  1134. package/www/build/p-a8fe9ae0.entry.js.map +1 -0
  1135. package/www/build/p-ab64e360.entry.js +2 -0
  1136. package/www/build/p-ab64e360.entry.js.map +1 -0
  1137. package/www/build/p-acba8f34.entry.js +2 -0
  1138. package/www/build/p-acba8f34.entry.js.map +1 -0
  1139. package/www/build/p-ace68b04.entry.js +2 -0
  1140. package/www/build/p-ace68b04.entry.js.map +1 -0
  1141. package/www/build/p-ad88d4a5.entry.js +2 -0
  1142. package/www/build/p-ad88d4a5.entry.js.map +1 -0
  1143. package/www/build/p-ae8d5494.entry.js +2 -0
  1144. package/www/build/p-ae8d5494.entry.js.map +1 -0
  1145. package/www/build/p-af8fec68.entry.js +17 -0
  1146. package/www/build/p-af8fec68.entry.js.map +1 -0
  1147. package/www/build/p-b289ae9e.js +2 -0
  1148. package/www/build/p-b4140668.entry.js +2 -0
  1149. package/www/build/p-b4140668.entry.js.map +1 -0
  1150. package/www/build/p-bff500a3.entry.js +2 -0
  1151. package/www/build/p-bff500a3.entry.js.map +1 -0
  1152. package/www/build/p-d09060af.entry.js +2 -0
  1153. package/www/build/p-d09060af.entry.js.map +1 -0
  1154. package/www/build/p-da213c6e.entry.js +2 -0
  1155. package/www/build/p-da213c6e.entry.js.map +1 -0
  1156. package/www/build/p-e4622c5d.entry.js +2 -0
  1157. package/www/build/p-e4622c5d.entry.js.map +1 -0
  1158. package/www/build/p-e7e98d15.entry.js +2 -0
  1159. package/www/build/p-e7e98d15.entry.js.map +1 -0
  1160. package/www/build/p-e87e13b0.entry.js +2 -0
  1161. package/www/build/p-e87e13b0.entry.js.map +1 -0
  1162. package/www/build/p-e9212c7a.entry.js +2 -0
  1163. package/www/build/p-e9212c7a.entry.js.map +1 -0
  1164. package/www/build/p-e9722221.entry.js +8 -0
  1165. package/www/build/p-e9722221.entry.js.map +1 -0
  1166. package/www/build/p-e9ed3594.entry.js +2 -0
  1167. package/www/build/p-e9ed3594.entry.js.map +1 -0
  1168. package/www/build/p-eb5e4333.entry.js +2 -0
  1169. package/www/build/p-eb5e4333.entry.js.map +1 -0
  1170. package/www/build/p-ee711acf.entry.js +2 -0
  1171. package/www/build/p-ee711acf.entry.js.map +1 -0
  1172. package/www/build/p-fa4e8b1b.entry.js +2 -0
  1173. package/www/build/p-fa4e8b1b.entry.js.map +1 -0
  1174. package/www/build/p-fe279683.entry.js +2 -0
  1175. package/www/build/p-fe279683.entry.js.map +1 -0
  1176. package/www/build/web-components-library.esm.js +2 -1
  1177. package/www/build/web-components-library.esm.js.map +1 -0
  1178. package/www/index.html +1 -1
  1179. package/dist/cjs/iconset-oiCBBbd2.js +0 -1027
  1180. package/dist/cjs/index-D_S5lGcb.js +0 -2683
  1181. package/dist/cjs/index-wGaSHN1_.js +0 -407
  1182. package/dist/cjs/utils-C5_wGVkJ.js +0 -2718
  1183. package/dist/cjs/utils-Ctc6JP2n.js +0 -259
  1184. package/dist/collection/__mocks__/fileMock.js +0 -1
  1185. package/dist/collection/components/book-card/z-book-card/index.stories.js +0 -175
  1186. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +0 -40
  1187. package/dist/collection/components/css-components/z-fab/index.stories.js +0 -103
  1188. package/dist/collection/components/css-components/z-label/index.stories.js +0 -9
  1189. package/dist/collection/components/css-components/z-link/index.stories.js +0 -73
  1190. package/dist/collection/components/css-components/z-scrollbar/index.stories.js +0 -72
  1191. package/dist/collection/components/date-picker/z-date-picker/index.stories.js +0 -111
  1192. package/dist/collection/components/date-picker/z-range-picker/index.stories.js +0 -109
  1193. package/dist/collection/components/deprecated/z-app-header-deprecated/index.stories.js +0 -636
  1194. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js +0 -383
  1195. package/dist/collection/components/deprecated/z-menu-deprecated/index.stories.js +0 -128
  1196. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.stories.js +0 -40
  1197. package/dist/collection/components/deprecated/z-section-title/index.stories.js +0 -56
  1198. package/dist/collection/components/file-upload/z-file/index.stories.js +0 -16
  1199. package/dist/collection/components/file-upload/z-file-upload/index.stories.js +0 -139
  1200. package/dist/collection/components/list/z-list/index.stories.js +0 -184
  1201. package/dist/collection/components/list/z-list-element/index.stories.js +0 -127
  1202. package/dist/collection/components/list/z-list-group/index.stories.js +0 -120
  1203. package/dist/collection/components/list/z-tree-list/index.stories.js +0 -119
  1204. package/dist/collection/components/table/z-table/index.stories.js +0 -282
  1205. package/dist/collection/components/z-accordion/index.stories.js +0 -164
  1206. package/dist/collection/components/z-anchor-navigation/index.stories.js +0 -350
  1207. package/dist/collection/components/z-app-header/index.stories.js +0 -318
  1208. package/dist/collection/components/z-aria-alert/index.stories.js +0 -75
  1209. package/dist/collection/components/z-avatar/index.stories.js +0 -50
  1210. package/dist/collection/components/z-book-cover/index.stories.js +0 -30
  1211. package/dist/collection/components/z-breadcrumb/index.stories.js +0 -67
  1212. package/dist/collection/components/z-button/index.stories.js +0 -103
  1213. package/dist/collection/components/z-button-sort/index.stories.js +0 -30
  1214. package/dist/collection/components/z-card/index.stories.js +0 -302
  1215. package/dist/collection/components/z-carousel/index.stories.js +0 -128
  1216. package/dist/collection/components/z-chip/index.stories.js +0 -69
  1217. package/dist/collection/components/z-color-picker/index.stories.js +0 -33
  1218. package/dist/collection/components/z-combobox/index.stories.js +0 -77
  1219. package/dist/collection/components/z-cover-hero/index.stories.js +0 -255
  1220. package/dist/collection/components/z-divider/index.stories.js +0 -44
  1221. package/dist/collection/components/z-ghost-loading/index.stories.js +0 -21
  1222. package/dist/collection/components/z-icon/index.stories.js +0 -70
  1223. package/dist/collection/components/z-info-box/index.stories.js +0 -19
  1224. package/dist/collection/components/z-info-reveal/index.stories.js +0 -58
  1225. package/dist/collection/components/z-input/index.stories.js +0 -293
  1226. package/dist/collection/components/z-input-message/index.stories.js +0 -36
  1227. package/dist/collection/components/z-logo/index.stories.js +0 -25
  1228. package/dist/collection/components/z-menu/index.stories.js +0 -122
  1229. package/dist/collection/components/z-menu-section/index.stories.js +0 -40
  1230. package/dist/collection/components/z-modal/index.stories.js +0 -201
  1231. package/dist/collection/components/z-navigation-tabs/index.stories.js +0 -190
  1232. package/dist/collection/components/z-notification/index.stories.js +0 -174
  1233. package/dist/collection/components/z-offcanvas/index.stories.js +0 -143
  1234. package/dist/collection/components/z-pagination/index.stories.js +0 -117
  1235. package/dist/collection/components/z-panel-elem/index.stories.js +0 -25
  1236. package/dist/collection/components/z-popover/index.stories.js +0 -282
  1237. package/dist/collection/components/z-result-card/z-result-card.stories.js +0 -147
  1238. package/dist/collection/components/z-searchbar/index.stories.js +0 -332
  1239. package/dist/collection/components/z-select/index.stories.js +0 -359
  1240. package/dist/collection/components/z-skip-to-content/index.stories.js +0 -40
  1241. package/dist/collection/components/z-stepper/index.stories.js +0 -108
  1242. package/dist/collection/components/z-stepper-item/index.stories.js +0 -58
  1243. package/dist/collection/components/z-tag/index.stories.js +0 -63
  1244. package/dist/collection/components/z-toast-notification/index.stories.js +0 -176
  1245. package/dist/collection/components/z-toast-notification-list/index.stories.js +0 -147
  1246. package/dist/collection/components/z-toggle-button/index.stories.js +0 -22
  1247. package/dist/collection/components/z-toggle-switch/index.stories.js +0 -26
  1248. package/dist/collection/components/z-tool/index.stories.js +0 -146
  1249. package/dist/collection/components/z-toolbar/index.stories.js +0 -317
  1250. package/dist/collection/components/z-tooltip/index.stories.js +0 -122
  1251. package/dist/collection/components/z-visually-hidden/index.stories.js +0 -27
  1252. package/dist/collection/snowflakes/myz/card/z-myz-card/index.stories.js +0 -72
  1253. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.stories.js +0 -24
  1254. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.stories.js +0 -24
  1255. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.stories.js +0 -128
  1256. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.stories.js +0 -28
  1257. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.stories.js +0 -16
  1258. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.stories.js +0 -22
  1259. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.stories.js +0 -22
  1260. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.stories.js +0 -18
  1261. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.stories.js +0 -14
  1262. package/dist/collection/snowflakes/myz/list/z-myz-list/index.stories.js +0 -18
  1263. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.stories.js +0 -28
  1264. package/dist/collection/snowflakes/myz/z-alert/index.stories.js +0 -30
  1265. package/dist/collection/snowflakes/myz/z-otp/index.stories.js +0 -32
  1266. package/dist/collection/snowflakes/myz/z-slideshow/index.stories.js +0 -16
  1267. package/dist/esm/iconset-CjHS9zeM.js +0 -1024
  1268. package/dist/esm/index-BKCj6NR2.js +0 -405
  1269. package/dist/esm/index-DPdXlnVe.js +0 -2653
  1270. package/dist/esm/utils-DYd3kO0P.js +0 -244
  1271. package/dist/esm/utils-DuuLzXZj.js +0 -2712
  1272. package/dist/types/__mocks__/fileMock.d.ts +0 -2
  1273. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +0 -50
  1274. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +0 -39
  1275. package/dist/types/components/css-components/z-fab/index.stories.d.ts +0 -63
  1276. package/dist/types/components/css-components/z-label/index.stories.d.ts +0 -9
  1277. package/dist/types/components/css-components/z-link/index.stories.d.ts +0 -45
  1278. package/dist/types/components/css-components/z-scrollbar/index.stories.d.ts +0 -57
  1279. package/dist/types/components/date-picker/z-date-picker/index.stories.d.ts +0 -33
  1280. package/dist/types/components/date-picker/z-range-picker/index.stories.d.ts +0 -51
  1281. package/dist/types/components/deprecated/z-app-header-deprecated/index.stories.d.ts +0 -120
  1282. package/dist/types/components/deprecated/z-book-card-deprecated/index.stories.d.ts +0 -106
  1283. package/dist/types/components/deprecated/z-menu-deprecated/index.stories.d.ts +0 -27
  1284. package/dist/types/components/deprecated/z-menu-section-deprecated/index.stories.d.ts +0 -16
  1285. package/dist/types/components/deprecated/z-section-title/index.stories.d.ts +0 -41
  1286. package/dist/types/components/file-upload/z-file/index.stories.d.ts +0 -14
  1287. package/dist/types/components/file-upload/z-file-upload/index.stories.d.ts +0 -58
  1288. package/dist/types/components/list/z-list/index.stories.d.ts +0 -62
  1289. package/dist/types/components/list/z-list-element/index.stories.d.ts +0 -77
  1290. package/dist/types/components/list/z-list-group/index.stories.d.ts +0 -47
  1291. package/dist/types/components/list/z-tree-list/index.stories.d.ts +0 -25
  1292. package/dist/types/components/table/z-table/index.stories.d.ts +0 -98
  1293. package/dist/types/components/z-accordion/index.stories.d.ts +0 -142
  1294. package/dist/types/components/z-anchor-navigation/index.stories.d.ts +0 -34
  1295. package/dist/types/components/z-app-header/index.stories.d.ts +0 -128
  1296. package/dist/types/components/z-aria-alert/index.stories.d.ts +0 -26
  1297. package/dist/types/components/z-avatar/index.stories.d.ts +0 -42
  1298. package/dist/types/components/z-book-cover/index.stories.d.ts +0 -21
  1299. package/dist/types/components/z-breadcrumb/index.stories.d.ts +0 -52
  1300. package/dist/types/components/z-button/index.stories.d.ts +0 -79
  1301. package/dist/types/components/z-button-sort/index.stories.d.ts +0 -22
  1302. package/dist/types/components/z-card/index.stories.d.ts +0 -75
  1303. package/dist/types/components/z-carousel/index.stories.d.ts +0 -100
  1304. package/dist/types/components/z-chip/index.stories.d.ts +0 -46
  1305. package/dist/types/components/z-color-picker/index.stories.d.ts +0 -33
  1306. package/dist/types/components/z-combobox/index.stories.d.ts +0 -58
  1307. package/dist/types/components/z-cover-hero/index.stories.d.ts +0 -113
  1308. package/dist/types/components/z-divider/index.stories.d.ts +0 -37
  1309. package/dist/types/components/z-ghost-loading/index.stories.d.ts +0 -9
  1310. package/dist/types/components/z-icon/index.stories.d.ts +0 -56
  1311. package/dist/types/components/z-info-box/index.stories.d.ts +0 -12
  1312. package/dist/types/components/z-info-reveal/index.stories.d.ts +0 -42
  1313. package/dist/types/components/z-input/index.stories.d.ts +0 -126
  1314. package/dist/types/components/z-input-message/index.stories.d.ts +0 -33
  1315. package/dist/types/components/z-logo/index.stories.d.ts +0 -18
  1316. package/dist/types/components/z-menu/index.stories.d.ts +0 -26
  1317. package/dist/types/components/z-menu-section/index.stories.d.ts +0 -16
  1318. package/dist/types/components/z-modal/index.stories.d.ts +0 -37
  1319. package/dist/types/components/z-navigation-tabs/index.stories.d.ts +0 -78
  1320. package/dist/types/components/z-notification/index.stories.d.ts +0 -77
  1321. package/dist/types/components/z-offcanvas/index.stories.d.ts +0 -76
  1322. package/dist/types/components/z-pagination/index.stories.d.ts +0 -102
  1323. package/dist/types/components/z-panel-elem/index.stories.d.ts +0 -18
  1324. package/dist/types/components/z-popover/index.stories.d.ts +0 -82
  1325. package/dist/types/components/z-result-card/z-result-card.stories.d.ts +0 -12
  1326. package/dist/types/components/z-searchbar/index.stories.d.ts +0 -163
  1327. package/dist/types/components/z-select/index.stories.d.ts +0 -84
  1328. package/dist/types/components/z-skip-to-content/index.stories.d.ts +0 -31
  1329. package/dist/types/components/z-stepper/index.stories.d.ts +0 -25
  1330. package/dist/types/components/z-stepper-item/index.stories.d.ts +0 -34
  1331. package/dist/types/components/z-tag/index.stories.d.ts +0 -39
  1332. package/dist/types/components/z-toast-notification/index.stories.d.ts +0 -96
  1333. package/dist/types/components/z-toast-notification-list/index.stories.d.ts +0 -87
  1334. package/dist/types/components/z-toggle-button/index.stories.d.ts +0 -16
  1335. package/dist/types/components/z-toggle-switch/index.stories.d.ts +0 -22
  1336. package/dist/types/components/z-tool/index.stories.d.ts +0 -70
  1337. package/dist/types/components/z-toolbar/index.stories.d.ts +0 -52
  1338. package/dist/types/components/z-tooltip/index.stories.d.ts +0 -40
  1339. package/dist/types/components/z-visually-hidden/index.stories.d.ts +0 -9
  1340. package/dist/web-components-library/p-087956fa.entry.js +0 -1
  1341. package/dist/web-components-library/p-10e5e16e.entry.js +0 -1
  1342. package/dist/web-components-library/p-13e7f751.entry.js +0 -1
  1343. package/dist/web-components-library/p-14b804f9.entry.js +0 -1
  1344. package/dist/web-components-library/p-1580db58.entry.js +0 -1
  1345. package/dist/web-components-library/p-15825811.entry.js +0 -1
  1346. package/dist/web-components-library/p-1993b0ad.entry.js +0 -1
  1347. package/dist/web-components-library/p-1a95491d.entry.js +0 -1
  1348. package/dist/web-components-library/p-1d023220.entry.js +0 -1
  1349. package/dist/web-components-library/p-21c85e04.entry.js +0 -1
  1350. package/dist/web-components-library/p-23b46642.entry.js +0 -1
  1351. package/dist/web-components-library/p-299f0f85.entry.js +0 -1
  1352. package/dist/web-components-library/p-29dde955.entry.js +0 -1
  1353. package/dist/web-components-library/p-2c036e17.entry.js +0 -1
  1354. package/dist/web-components-library/p-2d4c01c3.entry.js +0 -1
  1355. package/dist/web-components-library/p-2dabe353.entry.js +0 -1
  1356. package/dist/web-components-library/p-2df6d169.entry.js +0 -1
  1357. package/dist/web-components-library/p-2ef82e17.entry.js +0 -1
  1358. package/dist/web-components-library/p-324933f6.entry.js +0 -1
  1359. package/dist/web-components-library/p-37e84b71.entry.js +0 -1
  1360. package/dist/web-components-library/p-3c53e451.entry.js +0 -1
  1361. package/dist/web-components-library/p-3ea03d34.entry.js +0 -1
  1362. package/dist/web-components-library/p-41584e90.entry.js +0 -1
  1363. package/dist/web-components-library/p-50e10a10.entry.js +0 -1
  1364. package/dist/web-components-library/p-52899754.entry.js +0 -1
  1365. package/dist/web-components-library/p-53670be4.entry.js +0 -1
  1366. package/dist/web-components-library/p-583b8152.entry.js +0 -1
  1367. package/dist/web-components-library/p-5a05dc1e.entry.js +0 -1
  1368. package/dist/web-components-library/p-5d20fc3d.entry.js +0 -1
  1369. package/dist/web-components-library/p-622466f9.entry.js +0 -1
  1370. package/dist/web-components-library/p-658f022d.entry.js +0 -1
  1371. package/dist/web-components-library/p-6bd35edf.entry.js +0 -1
  1372. package/dist/web-components-library/p-7226f07a.entry.js +0 -1
  1373. package/dist/web-components-library/p-7371a543.entry.js +0 -2
  1374. package/dist/web-components-library/p-77bf39a4.entry.js +0 -1
  1375. package/dist/web-components-library/p-788eaac7.entry.js +0 -1
  1376. package/dist/web-components-library/p-7bf7539a.entry.js +0 -1
  1377. package/dist/web-components-library/p-81eb43fd.entry.js +0 -1
  1378. package/dist/web-components-library/p-8261c869.entry.js +0 -1
  1379. package/dist/web-components-library/p-83da1031.entry.js +0 -1
  1380. package/dist/web-components-library/p-85cac60d.entry.js +0 -1
  1381. package/dist/web-components-library/p-88a3ba7c.entry.js +0 -1
  1382. package/dist/web-components-library/p-8a8df4f4.entry.js +0 -1
  1383. package/dist/web-components-library/p-8b026993.entry.js +0 -1
  1384. package/dist/web-components-library/p-8d7e2e16.entry.js +0 -1
  1385. package/dist/web-components-library/p-8de064a4.entry.js +0 -1
  1386. package/dist/web-components-library/p-8f4a04aa.entry.js +0 -1
  1387. package/dist/web-components-library/p-B8WJfd4z.js +0 -1
  1388. package/dist/web-components-library/p-BKCj6NR2.js +0 -1
  1389. package/dist/web-components-library/p-CPsEG702.js +0 -1
  1390. package/dist/web-components-library/p-CjHS9zeM.js +0 -1
  1391. package/dist/web-components-library/p-DPdXlnVe.js +0 -2
  1392. package/dist/web-components-library/p-a4f673f8.entry.js +0 -1
  1393. package/dist/web-components-library/p-aa4fc3d3.entry.js +0 -1
  1394. package/dist/web-components-library/p-aa72d766.entry.js +0 -1
  1395. package/dist/web-components-library/p-ad2cd7fc.entry.js +0 -1
  1396. package/dist/web-components-library/p-b6223d7e.entry.js +0 -1
  1397. package/dist/web-components-library/p-b851f20b.entry.js +0 -1
  1398. package/dist/web-components-library/p-b9343431.entry.js +0 -1
  1399. package/dist/web-components-library/p-be354b22.entry.js +0 -1
  1400. package/dist/web-components-library/p-c42ddd93.entry.js +0 -1
  1401. package/dist/web-components-library/p-c4e7bd16.entry.js +0 -1
  1402. package/dist/web-components-library/p-c944a943.entry.js +0 -1
  1403. package/dist/web-components-library/p-cd33f4b1.entry.js +0 -1
  1404. package/dist/web-components-library/p-cdd88182.entry.js +0 -16
  1405. package/dist/web-components-library/p-d3053434.entry.js +0 -1
  1406. package/dist/web-components-library/p-d63665c1.entry.js +0 -1
  1407. package/dist/web-components-library/p-dabccb20.entry.js +0 -1
  1408. package/dist/web-components-library/p-dc5ab2cc.entry.js +0 -1
  1409. package/dist/web-components-library/p-dfd43710.entry.js +0 -1
  1410. package/dist/web-components-library/p-e1d0a6e3.entry.js +0 -1
  1411. package/dist/web-components-library/p-e48497f0.entry.js +0 -1
  1412. package/dist/web-components-library/p-ec4940ce.entry.js +0 -1
  1413. package/dist/web-components-library/p-eddc2d19.entry.js +0 -1
  1414. package/dist/web-components-library/p-ef5018bb.entry.js +0 -1
  1415. package/dist/web-components-library/p-f7e46ef2.entry.js +0 -1
  1416. package/www/build/p-087956fa.entry.js +0 -1
  1417. package/www/build/p-10e5e16e.entry.js +0 -1
  1418. package/www/build/p-13e7f751.entry.js +0 -1
  1419. package/www/build/p-14b804f9.entry.js +0 -1
  1420. package/www/build/p-1580db58.entry.js +0 -1
  1421. package/www/build/p-15825811.entry.js +0 -1
  1422. package/www/build/p-1993b0ad.entry.js +0 -1
  1423. package/www/build/p-1a95491d.entry.js +0 -1
  1424. package/www/build/p-1d023220.entry.js +0 -1
  1425. package/www/build/p-21c85e04.entry.js +0 -1
  1426. package/www/build/p-23b46642.entry.js +0 -1
  1427. package/www/build/p-299f0f85.entry.js +0 -1
  1428. package/www/build/p-29dde955.entry.js +0 -1
  1429. package/www/build/p-2c036e17.entry.js +0 -1
  1430. package/www/build/p-2d4c01c3.entry.js +0 -1
  1431. package/www/build/p-2dabe353.entry.js +0 -1
  1432. package/www/build/p-2df6d169.entry.js +0 -1
  1433. package/www/build/p-2ef82e17.entry.js +0 -1
  1434. package/www/build/p-324933f6.entry.js +0 -1
  1435. package/www/build/p-37e84b71.entry.js +0 -1
  1436. package/www/build/p-3c53e451.entry.js +0 -1
  1437. package/www/build/p-3ea03d34.entry.js +0 -1
  1438. package/www/build/p-41584e90.entry.js +0 -1
  1439. package/www/build/p-50e10a10.entry.js +0 -1
  1440. package/www/build/p-52899754.entry.js +0 -1
  1441. package/www/build/p-53670be4.entry.js +0 -1
  1442. package/www/build/p-583b8152.entry.js +0 -1
  1443. package/www/build/p-5a05dc1e.entry.js +0 -1
  1444. package/www/build/p-5d20fc3d.entry.js +0 -1
  1445. package/www/build/p-622466f9.entry.js +0 -1
  1446. package/www/build/p-658f022d.entry.js +0 -1
  1447. package/www/build/p-6bd35edf.entry.js +0 -1
  1448. package/www/build/p-7226f07a.entry.js +0 -1
  1449. package/www/build/p-7371a543.entry.js +0 -2
  1450. package/www/build/p-77bf39a4.entry.js +0 -1
  1451. package/www/build/p-788eaac7.entry.js +0 -1
  1452. package/www/build/p-7bf7539a.entry.js +0 -1
  1453. package/www/build/p-81eb43fd.entry.js +0 -1
  1454. package/www/build/p-8261c869.entry.js +0 -1
  1455. package/www/build/p-83da1031.entry.js +0 -1
  1456. package/www/build/p-85cac60d.entry.js +0 -1
  1457. package/www/build/p-88a3ba7c.entry.js +0 -1
  1458. package/www/build/p-8a8df4f4.entry.js +0 -1
  1459. package/www/build/p-8b026993.entry.js +0 -1
  1460. package/www/build/p-8d7e2e16.entry.js +0 -1
  1461. package/www/build/p-8de064a4.entry.js +0 -1
  1462. package/www/build/p-8f4a04aa.entry.js +0 -1
  1463. package/www/build/p-B8WJfd4z.js +0 -1
  1464. package/www/build/p-BKCj6NR2.js +0 -1
  1465. package/www/build/p-CPsEG702.js +0 -1
  1466. package/www/build/p-CjHS9zeM.js +0 -1
  1467. package/www/build/p-DPdXlnVe.js +0 -2
  1468. package/www/build/p-a4f673f8.entry.js +0 -1
  1469. package/www/build/p-aa4fc3d3.entry.js +0 -1
  1470. package/www/build/p-aa72d766.entry.js +0 -1
  1471. package/www/build/p-ad2cd7fc.entry.js +0 -1
  1472. package/www/build/p-b6223d7e.entry.js +0 -1
  1473. package/www/build/p-b851f20b.entry.js +0 -1
  1474. package/www/build/p-b9343431.entry.js +0 -1
  1475. package/www/build/p-be354b22.entry.js +0 -1
  1476. package/www/build/p-c42ddd93.entry.js +0 -1
  1477. package/www/build/p-c4e7bd16.entry.js +0 -1
  1478. package/www/build/p-c5c5a64f.js +0 -1
  1479. package/www/build/p-c944a943.entry.js +0 -1
  1480. package/www/build/p-cd33f4b1.entry.js +0 -1
  1481. package/www/build/p-cdd88182.entry.js +0 -16
  1482. package/www/build/p-d3053434.entry.js +0 -1
  1483. package/www/build/p-d63665c1.entry.js +0 -1
  1484. package/www/build/p-dabccb20.entry.js +0 -1
  1485. package/www/build/p-dc5ab2cc.entry.js +0 -1
  1486. package/www/build/p-dfd43710.entry.js +0 -1
  1487. package/www/build/p-e1d0a6e3.entry.js +0 -1
  1488. package/www/build/p-e48497f0.entry.js +0 -1
  1489. package/www/build/p-ec4940ce.entry.js +0 -1
  1490. package/www/build/p-eddc2d19.entry.js +0 -1
  1491. package/www/build/p-ef5018bb.entry.js +0 -1
  1492. package/www/build/p-f7e46ef2.entry.js +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","typographyCss","ZInputRange","constructor","hostRef","this","disabled","htmlId","randomId","max","min","showEdges","step","value","currentValue","showValueTooltip","needsNativeValueSync","ariaLabel","_a","htmlAriaLabel","orientation","Orientation","VERTICAL","label","undefined","tooltipPosition","valuePosition","PopoverPosition","LEFT","TOP","updateCurrentValue","nextValue","Number","isNaN","internals","setFormValue","toString","getCurrentRatio","range","ratio","Math","updateProgress","progress","host","style","setProperty","_b","syncCurrentValueFromNativeInput","inputRef","valueAsNumber","onInput","event","stopPropagation","rangeInput","emit","onChange","rangeChange","onConstraintsChange","componentDidLoad","componentDidRender","render","h","Host","key","class","htmlFor","ref","el","type","id","onFocus","onBlur","tooltipGuideRef","position","bindTo","open","closable"],"sources":["src/components/z-input-range/styles.css?tag=z-input-range&encapsulation=shadow","src/tokens/typography.css?tag=z-input-range&encapsulation=shadow","src/components/z-input-range/index.tsx"],"sourcesContent":[":host,\n* {\n box-sizing: border-box;\n}\n\n:host {\n /* Internal CSS variable used to store the progress of the input range as a percentage.\n Needed to color the progress in the runnable track of the input (only Firefox natively provides a pseudo-element to do that: `::-moz-range-progress`).\n The value is updated by the component. */\n --progress: 0%;\n\n /* Internal CSS variable used to store the ratio of the current value to the total range, used for positioning the tooltip guide.\n The value is updated by the component. */\n --progress-ratio: 0;\n --z-input-range-thumb-size: calc(var(--space-unit) * 3);\n\n display: flex;\n width: fit-content;\n height: fit-content;\n flex-direction: column;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host([size=\"small\"]) {\n --z-input-range-thumb-size: calc(var(--space-unit) * 2);\n}\n\n:host([size=\"x-small\"]) {\n --z-input-range-thumb-size: calc(var(--space-unit) * 1.5);\n}\n\n:host([orientation=\"vertical\"]) {\n height: 100%;\n flex-direction: row;\n}\n\n.input-container {\n /* Thickness of the track. It is calculated as one-third of the thumb size. */\n --z-input-range-track-size: calc(var(--z-input-range-thumb-size) / 3);\n\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n}\n\nlabel.z-label {\n padding: 0;\n margin-bottom: calc(var(--space-unit) * 1.5);\n}\n\n:host([orientation=\"vertical\"]) label.z-label {\n display: none;\n}\n\ninput[type=\"range\"] {\n --main-color: var(--color-primary01);\n\n width: 100%;\n height: var(--z-input-range-thumb-size);\n padding: 0;\n margin: 0;\n appearance: none;\n background: transparent;\n writing-mode: horizontal-tb;\n}\n\ninput[type=\"range\"]:hover,\ninput[type=\"range\"]:hover ~ z-tooltip {\n --main-color: var(--color-hover-primary);\n}\n\ninput[type=\"range\"]:focus:focus-visible {\n outline: none;\n}\n\ninput[type=\"range\"]:disabled,\ninput[type=\"range\"]:disabled ~ z-tooltip {\n --main-color: var(--color-form-disabled03);\n\n cursor: default;\n}\n\ninput[type=\"range\"]::-webkit-slider-runnable-track {\n width: 100%;\n height: var(--z-input-range-track-size);\n border: none;\n appearance: none;\n background:\n linear-gradient(var(--main-color), var(--main-color)) 0 / var(--progress) 100% no-repeat,\n var(--color-surface03);\n border-radius: var(--border-radius);\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"] {\n width: var(--z-input-range-thumb-size);\n height: 100%;\n direction: rtl;\n writing-mode: vertical-lr;\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-webkit-slider-runnable-track {\n width: var(--z-input-range-track-size);\n height: 100%;\n background:\n linear-gradient(var(--main-color), var(--main-color)) 0 100% / 100% var(--progress) no-repeat,\n var(--color-surface03);\n}\n\ninput[type=\"range\"]::-webkit-slider-thumb {\n width: var(--z-input-range-thumb-size);\n height: var(--z-input-range-thumb-size);\n box-sizing: border-box;\n border: calc(var(--z-input-range-thumb-size) / 4.8) solid var(--main-color);\n margin-top: calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);\n appearance: none;\n background-color: var(--color-surface01);\n border-radius: 50%;\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-webkit-slider-thumb {\n margin-top: 0;\n margin-left: calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);\n}\n\ninput[type=\"range\"]:not(:disabled)::-webkit-slider-runnable-track {\n cursor: pointer;\n}\n\ninput[type=\"range\"]:not(:disabled)::-webkit-slider-thumb {\n cursor: grab;\n}\n\ninput[type=\"range\"]:focus:not(:active)::-webkit-slider-thumb {\n box-shadow: var(--shadow-focus-primary);\n}\n\ninput[type=\"range\"]:active:not(:disabled)::-webkit-slider-thumb {\n cursor: grabbing;\n}\n\n/* --- Firefox styles --- */\n\n/* All styles must be duplicated, because using comma-separated selectors\n(like `input[type=\"range\"]::-webkit-slider-thumb, input[type=\"range\"]::-moz-range-thumb`) would break webkit styles...\n*/\ninput[type=\"range\"]::-moz-range-track {\n width: 100%;\n height: var(--z-input-range-track-size);\n border: none;\n appearance: none;\n background: var(--color-surface03);\n border-radius: var(--border-radius);\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-moz-range-track {\n width: var(--z-input-range-track-size);\n height: 100%;\n}\n\ninput[type=\"range\"]::-moz-range-progress {\n height: var(--z-input-range-track-size);\n border: none;\n background: var(--main-color);\n border-radius: var(--border-radius);\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-moz-range-progress {\n width: var(--z-input-range-track-size);\n height: auto;\n}\n\ninput[type=\"range\"]::-moz-range-thumb {\n width: var(--z-input-range-thumb-size);\n height: var(--z-input-range-thumb-size);\n box-sizing: border-box;\n border: calc(var(--z-input-range-thumb-size) / 4.8) solid var(--main-color);\n margin-top: calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);\n appearance: none;\n background-color: var(--color-surface01);\n border-radius: 50%;\n}\n\n:host([orientation=\"vertical\"]) input[type=\"range\"]::-moz-range-thumb {\n margin-top: 0;\n margin-left: calc((var(--z-input-range-track-size) - var(--z-input-range-thumb-size)) / 2);\n}\n\ninput[type=\"range\"]:not(:disabled)::-moz-range-track,\ninput[type=\"range\"]:not(:disabled)::-moz-range-progress {\n cursor: pointer;\n}\n\ninput[type=\"range\"]:not(:disabled)::-moz-range-thumb {\n cursor: grab;\n}\n\ninput[type=\"range\"]:active:not(:disabled)::-moz-range-thumb {\n cursor: grabbing;\n}\n\ninput[type=\"range\"]:focus:not(:active)::-moz-range-thumb {\n box-shadow: var(--shadow-focus-primary);\n}\n\n/* --- End of Firefox styles --- */\n\n.tooltip-guide {\n --progress-position: calc(\n (var(--progress-ratio) * (100% - var(--z-input-range-thumb-size))) + (var(--z-input-range-thumb-size) / 2)\n );\n\n position: absolute;\n z-index: -1;\n top: 0;\n\n /* `--progress` is good for painting the filled track, but not enough for representing the thumb center.\n * The thumb center cannot go from 0 to 100%:\n * at min it sits at thumbSize/2, and at max it sits at width - thumbSize/2.\n * So we map a normalized ratio (0..1) over the usable travel distance\n * (width - thumbSize), then add thumbSize/2 to get the correct center coordinate.\n */\n left: var(--progress-position);\n width: var(--z-input-range-thumb-size);\n height: var(--z-input-range-thumb-size);\n background: transparent;\n pointer-events: none;\n transform: translateX(-50%);\n}\n\n:host([orientation=\"vertical\"]) .tooltip-guide {\n top: auto;\n bottom: var(--progress-position);\n left: 0;\n transform: translateY(50%);\n}\n\nz-tooltip {\n --main-color: var(--color-primary01);\n --z-tooltip-theme--surface: var(--main-color);\n --z-tooltip-theme--text: var(--color-text-inverse);\n --z-tooltip-padding: calc(var(--space-unit) / 2);\n}\n\nz-tooltip .current-value {\n min-width: calc(var(--space-unit) * 3.5);\n}\n\n.edges {\n display: flex;\n justify-content: space-between;\n}\n\n.edges :is(.min, .max) {\n min-width: var(--z-input-range-thumb-size); /* visually align single digit values to the center of the thumb */\n text-align: center;\n}\n\n:host([orientation=\"vertical\"]) .edges {\n display: none;\n}\n",":root {\n /* font-family */\n --font-family-sans: \"IBM Plex Sans\", sans-serif;\n --font-family-serif: \"IBM Plex Serif\", serif;\n\n /* font-weight */\n --font-lt: 300;\n --font-rg: 400;\n --font-sb: 600;\n --font-bd: 700;\n\n /* font-size type scale */\n --font-size-1: 0.75rem; /* 12px */\n --font-size-2: 0.875rem; /* 14px */\n --font-size-3: 1rem; /* assuming 16px */\n --font-size-4: 1.125rem; /* 18px */\n --font-size-5: 1.25rem; /* 20px */\n --font-size-6: 1.5rem; /* 24px */\n --font-size-7: 1.75rem; /* 28px */\n --font-size-8: 2rem; /* 32px */\n --font-size-9: 2.25rem; /* 36px */\n --font-size-10: 2.625rem; /* 42px */\n --font-size-11: 3rem; /* 48px */\n --font-size-12: 3.375rem; /* 54px */\n --font-size-13: 3.75rem; /* 60px */\n --font-size-14: 4.25rem; /* 68px */\n --font-size-15: 4.75rem; /* 76px */\n --font-size-16: 5.25rem; /* 84px */\n --font-size-17: 5.75rem; /* 92px */\n\n /* cssprops to use with `font` shorthand property */\n --section-title-1: var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);\n --section-title-2: var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);\n --section-title-3: var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);\n --section-title-4: var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);\n --section-title-5: var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);\n --section-title-6: var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif);\n}\n\n/* Typography classes */\n.heading-1,\n.heading-1-sb,\n.heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n}\n\n.heading-2,\n.heading-2-sb,\n.heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n}\n\n.heading-3,\n.heading-3-sb,\n.heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n}\n\n.heading-4,\n.heading-4-sb,\n.heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n.body-1,\n.body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n.body-2,\n.body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.body-3,\n.body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.body-4,\n.body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n}\n\n.body-5,\n.body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n.interactive-1,\n.interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.interactive-2,\n.interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n}\n\n.interactive-3,\n.interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n.helper,\n.helper-sb {\n font-size: var(--font-size-1);\n font-style: italic;\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n/* section title */\n.section-title-1 {\n font: var(--section-title-1);\n}\n\n.section-title-2 {\n font: var(--section-title-2);\n}\n\n.section-title-3 {\n font: var(--section-title-3);\n}\n\n.section-title-4 {\n font: var(--section-title-4);\n}\n\n.section-title-5 {\n font: var(--section-title-5);\n}\n\n.section-title-6 {\n font: var(--section-title-6);\n}\n\n/* heading-1/2 for desktop and wide viewports */\n@media (min-width: 1152px) {\n .heading-1,\n .heading-1-sb,\n .heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .heading-2,\n .heading-2-sb,\n .heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n}\n\n/* viewport classes */\n@media (max-width: 767px) {\n .mobile-heading-1,\n .mobile-heading-1-sb,\n .mobile-heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .mobile-heading-2,\n .mobile-heading-2-sb,\n .mobile-heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .mobile-heading-3,\n .mobile-heading-3-sb,\n .mobile-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .mobile-heading-4,\n .mobile-heading-4-sb,\n .mobile-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .mobile-body-1,\n .mobile-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .mobile-body-2,\n .mobile-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-body-3,\n .mobile-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-body-4,\n .mobile-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .mobile-body-5,\n .mobile-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .mobile-interactive-1,\n .mobile-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-interactive-2,\n .mobile-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .mobile-interactive-3,\n .mobile-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .mobile-section-title-1 {\n font: var(--section-title-1);\n }\n\n .mobile-section-title-2 {\n font: var(--section-title-2);\n }\n\n .mobile-section-title-3 {\n font: var(--section-title-3);\n }\n\n .mobile-section-title-4 {\n font: var(--section-title-4);\n }\n\n .mobile-section-title-5 {\n font: var(--section-title-5);\n }\n\n .mobile-section-title-6 {\n font: var(--section-title-6);\n }\n\n .mobile-heading-1-lt,\n .mobile-heading-2-lt,\n .mobile-heading-3-lt,\n .mobile-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .mobile-heading-1-sb,\n .mobile-heading-2-sb,\n .mobile-heading-3-sb,\n .mobile-heading-4-sb,\n .mobile-body-1-sb,\n .mobile-body-2-sb,\n .mobile-body-3-sb,\n .mobile-body-4-sb,\n .mobile-body-5-sb,\n .mobile-interactive-1-sb,\n .mobile-interactive-2-sb,\n .mobile-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 768px) and (max-width: 1151px) {\n .tablet-heading-1,\n .tablet-heading-1-sb,\n .tablet-heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .tablet-heading-2,\n .tablet-heading-2-sb,\n .tablet-heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .tablet-heading-3,\n .tablet-heading-3-sb,\n .tablet-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .tablet-heading-4,\n .tablet-heading-4-sb,\n .tablet-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .tablet-body-1,\n .tablet-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .tablet-body-2,\n .tablet-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-body-3,\n .tablet-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-body-4,\n .tablet-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .tablet-body-5,\n .tablet-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .tablet-interactive-1,\n .tablet-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-interactive-2,\n .tablet-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .tablet-interactive-3,\n .tablet-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .tablet-section-title-1 {\n font: var(--section-title-1);\n }\n\n .tablet-section-title-2 {\n font: var(--section-title-2);\n }\n\n .tablet-section-title-3 {\n font: var(--section-title-3);\n }\n\n .tablet-section-title-4 {\n font: var(--section-title-4);\n }\n\n .tablet-section-title-5 {\n font: var(--section-title-5);\n }\n\n .tablet-section-title-6 {\n font: var(--section-title-6);\n }\n\n .tablet-heading-1-lt,\n .tablet-heading-2-lt,\n .tablet-heading-3-lt,\n .tablet-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .tablet-heading-1-sb,\n .tablet-heading-2-sb,\n .tablet-heading-3-sb,\n .tablet-heading-4-sb,\n .tablet-body-1-sb,\n .tablet-body-2-sb,\n .tablet-body-3-sb,\n .tablet-body-4-sb,\n .tablet-body-5-sb,\n .tablet-interactive-1-sb,\n .tablet-interactive-2-sb,\n .tablet-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 1152px) and (max-width: 1365px) {\n .desktop-heading-1,\n .desktop-heading-1-sb,\n .desktop-heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .desktop-heading-2,\n .desktop-heading-2-sb,\n .desktop-heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .desktop-heading-3,\n .desktop-heading-3-sb,\n .desktop-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .desktop-heading-4,\n .desktop-heading-4-sb,\n .desktop-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .desktop-body-1,\n .desktop-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .desktop-body-2,\n .desktop-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-body-3,\n .desktop-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-body-4,\n .desktop-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .desktop-body-5,\n .desktop-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .desktop-interactive-1,\n .desktop-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-interactive-2,\n .desktop-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .desktop-interactive-3,\n .desktop-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .desktop-section-title-1 {\n font: var(--section-title-1);\n }\n\n .desktop-section-title-2 {\n font: var(--section-title-2);\n }\n\n .desktop-section-title-3 {\n font: var(--section-title-3);\n }\n\n .desktop-section-title-4 {\n font: var(--section-title-4);\n }\n\n .desktop-section-title-5 {\n font: var(--section-title-5);\n }\n\n .desktop-section-title-6 {\n font: var(--section-title-6);\n }\n\n .desktop-heading-1-lt,\n .desktop-heading-2-lt,\n .desktop-heading-3-lt,\n .desktop-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .desktop-heading-1-sb,\n .desktop-heading-2-sb,\n .desktop-heading-3-sb,\n .desktop-heading-4-sb,\n .desktop-body-1-sb,\n .desktop-body-2-sb,\n .desktop-body-3-sb,\n .desktop-body-4-sb,\n .desktop-body-5-sb,\n .desktop-interactive-1-sb,\n .desktop-interactive-2-sb,\n .desktop-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 1366px) {\n .wide-heading-1,\n .wide-heading-1-sb,\n .wide-heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .wide-heading-2,\n .wide-heading-2-sb,\n .wide-heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .wide-heading-3,\n .wide-heading-3-sb,\n .wide-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .wide-heading-4,\n .wide-heading-4-sb,\n .wide-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .wide-body-1,\n .wide-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .wide-body-2,\n .wide-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-body-3,\n .wide-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-body-4,\n .wide-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .wide-body-5,\n .wide-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .wide-interactive-1,\n .wide-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-interactive-2,\n .wide-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .wide-interactive-3,\n .wide-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .wide-section-title-1 {\n font: var(--section-title-1);\n }\n\n .wide-section-title-2 {\n font: var(--section-title-2);\n }\n\n .wide-section-title-3 {\n font: var(--section-title-3);\n }\n\n .wide-section-title-4 {\n font: var(--section-title-4);\n }\n\n .wide-section-title-5 {\n font: var(--section-title-5);\n }\n\n .wide-section-title-6 {\n font: var(--section-title-6);\n }\n\n .wide-heading-1-lt,\n .wide-heading-2-lt,\n .wide-heading-3-lt,\n .wide-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .wide-heading-1-sb,\n .wide-heading-2-sb,\n .wide-heading-3-sb,\n .wide-heading-4-sb,\n .wide-body-1-sb,\n .wide-body-2-sb,\n .wide-body-3-sb,\n .wide-body-4-sb,\n .wide-body-5-sb,\n .wide-interactive-1-sb,\n .wide-interactive-2-sb,\n .wide-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n/* font-weight variants */\n.heading-1-lt,\n.heading-2-lt,\n.heading-3-lt,\n.heading-4-lt {\n font-weight: var(--font-lt);\n}\n\n.heading-1-sb,\n.heading-2-sb,\n.heading-3-sb,\n.heading-4-sb,\n.body-1-sb,\n.body-2-sb,\n.body-3-sb,\n.body-4-sb,\n.body-5-sb,\n.interactive-1-sb,\n.interactive-2-sb,\n.interactive-3-sb,\n.helper-sb {\n font-weight: var(--font-sb);\n}\n","import {\n AttachInternals,\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {ControlSize, Orientation, PopoverPosition} from \"../../beans\";\nimport {randomId} from \"../../utils/utils\";\n\n/**\n * Input range component.\n */\n@Component({\n tag: \"z-input-range\",\n styleUrls: [\"styles.css\", \"../../tokens/typography.css\"],\n shadow: true,\n formAssociated: true,\n})\nexport class ZInputRange implements ComponentInterface {\n @Element() host: HTMLZInputRangeElement;\n\n @AttachInternals() internals: ElementInternals;\n\n /** Whether the input range is disabled. */\n @Prop()\n disabled = false;\n\n /**\n * The aria label of the input range. for accessibility.\n * Not necessary if the `label` prop is set.\n */\n @Prop()\n htmlAriaLabel: string;\n\n /** ID of the input range. */\n @Prop()\n htmlId = `z-input-range-${randomId()}`;\n\n /**\n * The label of the input range.\n * When `orientation` is set to `vertical`, the label is not visible but used as `aria-label`, unless `htmlAriaLabel` is provided.\n */\n @Prop()\n label: string;\n\n /** The greatest value in the range of permitted values. */\n @Prop()\n max = 100;\n\n /** The lowest value in the range of permitted values. */\n @Prop()\n min = 0;\n\n /** The orientation of the input range. */\n @Prop({reflect: true})\n orientation: Orientation;\n\n /** Whether to show `min` and `max` values of the input range. Only visible with the `horizontal` orientation. */\n @Prop()\n showEdges = false;\n\n /** The size of the input range. Default: `ControlSize.BIG` */\n @Prop({reflect: true})\n size: ControlSize.BIG;\n\n /** The step value for the input range. */\n @Prop()\n step = 1;\n\n /** The value of the input range. */\n @Prop()\n value = 0;\n\n /**\n * The position of the tooltip displaying the current value.\n * Defaults to `top` for horizontal orientation and `left` for vertical orientation.\n * May be necessary to adjust this prop when the input range is close to the edges of the screen,\n * to prevent the tooltip from showing out of the screen or in an unintended position due to auto adjustment.\n * For example, for a horizontal input range close to the top of the screen, you may want to set this prop to `bottom`.\n */\n @Prop()\n valuePosition: PopoverPosition.TOP | PopoverPosition.BOTTOM | PopoverPosition.LEFT | PopoverPosition.RIGHT;\n\n /** Emitted when the value of the input range is being changed (`input` native event). */\n @Event()\n rangeInput: EventEmitter<number>;\n\n /** Emitted when the value of the input range has changed (`change` native event). */\n @Event()\n rangeChange: EventEmitter<number>;\n\n /** The current value of the input range synchronized with the native input element. */\n @State()\n currentValue = this.value;\n\n /**\n * Whether to show the tooltip displaying the current value.\n * The tooltip is shown only when the input range is focused or while the user is changing the value.\n */\n @State()\n showValueTooltip = false;\n\n /**\n * Whether the native input value needs to be synced with the component state.\n * This is necessary when the `step` prop changes, as the browser may round the value,\n * so we need to update the component state accordingly.\n */\n private needsNativeValueSync = false;\n\n private inputRef: HTMLInputElement;\n\n private tooltipGuideRef: HTMLSpanElement;\n\n private get ariaLabel(): string | undefined {\n return this.htmlAriaLabel ?? (this.orientation === Orientation.VERTICAL ? this.label : undefined);\n }\n\n private get tooltipPosition(): typeof this.valuePosition {\n return (\n this.valuePosition ?? (this.orientation === Orientation.VERTICAL ? PopoverPosition.LEFT : PopoverPosition.TOP)\n );\n }\n\n private updateCurrentValue(nextValue: number): void {\n if (Number.isNaN(nextValue) || nextValue === this.currentValue) {\n return;\n }\n\n this.currentValue = nextValue;\n this.internals.setFormValue(this.currentValue.toString());\n }\n\n /** Calculates the current ratio of the input range value. */\n private getCurrentRatio(): number {\n const range = this.max - this.min;\n if (range <= 0) {\n return 0;\n }\n\n const ratio = (this.currentValue - this.min) / range;\n\n return Math.min(1, Math.max(0, ratio));\n }\n\n /** Updates the CSS variables used to color the track progress and tooltip guide position. */\n private updateProgress(): void {\n const ratio = this.getCurrentRatio();\n const progress = ratio * 100;\n\n this.host?.style.setProperty(\"--progress-ratio\", `${ratio}`);\n this.host?.style.setProperty(\"--progress\", `${progress}%`);\n }\n\n /**\n * Syncs current value from native input after render-time browser coercions:\n * when `step` changes, the browser may round the value, so we need to update the component state accordingly.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/range#step\n */\n private syncCurrentValueFromNativeInput(): void {\n if (!this.inputRef) {\n return;\n }\n\n this.updateCurrentValue(this.inputRef.valueAsNumber);\n this.updateProgress();\n }\n\n private onInput(event: InputEvent): void {\n event.stopPropagation();\n this.syncCurrentValueFromNativeInput();\n this.rangeInput.emit(this.currentValue);\n }\n\n private onChange(event: Event): void {\n event.stopPropagation();\n this.syncCurrentValueFromNativeInput();\n this.rangeChange.emit(this.currentValue);\n }\n\n @Watch(\"min\")\n @Watch(\"max\")\n @Watch(\"step\")\n @Watch(\"value\")\n onConstraintsChange(): void {\n this.needsNativeValueSync = true;\n }\n\n componentDidLoad() {\n this.needsNativeValueSync = true;\n this.syncCurrentValueFromNativeInput();\n }\n\n componentDidRender() {\n if (!this.needsNativeValueSync) {\n return;\n }\n\n this.syncCurrentValueFromNativeInput();\n this.needsNativeValueSync = false;\n }\n\n render() {\n return (\n <Host>\n {this.label && (\n <label\n class=\"z-label\"\n htmlFor={this.htmlId}\n >\n {this.label}\n </label>\n )}\n <div class=\"input-container body-3\">\n <input\n ref={(el) => (this.inputRef = el)}\n type=\"range\"\n aria-label={this.ariaLabel}\n id={this.htmlId}\n disabled={this.disabled}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.currentValue}\n onInput={(event) => this.onInput(event)}\n onChange={(event) => this.onChange(event)}\n onFocus={() => (this.showValueTooltip = true)}\n onBlur={() => (this.showValueTooltip = false)}\n />\n <div\n class=\"tooltip-guide\"\n ref={(el) => (this.tooltipGuideRef = el)}\n ></div>\n <z-tooltip\n position={this.tooltipPosition}\n bindTo={this.tooltipGuideRef}\n open={this.showValueTooltip}\n closable={false}\n >\n <div class=\"current-value\">{this.currentValue}</div>\n </z-tooltip>\n </div>\n {this.showEdges && (\n <div class=\"edges body-3\">\n <span class=\"min\">{this.min}</span>\n <span class=\"max\">{this.max}</span>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,c as t,h as s}from"./p-BEHxru6n.js";import{h as a}from"./p-C8pbzcmM.js";import"./p-B3nR3-Jw.js";import"./p-Q-tWjk7P.js";const e=()=>`:host li{all:unset;all:reset;width:100%;line-height:14px;list-style-type:none}:host li>span{display:flex;padding:calc(var(--space-unit) * 2) 0;color:var(--color-default-text);fill:var(--color-default-icon);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-rg);letter-spacing:0.23px;line-height:14px}:host(.small) li>span{padding:calc(var(--space-unit) * 1.5) 0;font-size:var(--font-size-2)}:host(.x-small) li>span{padding:var(--space-unit) 0;font-size:var(--font-size-2)}:host(.small) li>span>z-icon,:host(.x-small) li>span>z-icon{--z-icon-width:16px;--z-icon-height:16px;--z-icon-right-margin:calc(var(--space-unit) * 0.5);padding:0}:host li>span.border{border-bottom:2px solid var(--color-surface03)}:host li span:hover,a:hover{color:var(--color-primary01);fill:var(--color-primary01)}a,a:visited,a:active{color:inherit;fill:inherit;text-decoration:none}:host li span z-icon{width:calc(var(--space-unit) * 2);height:calc(var(--space-unit) * 2);padding:0 calc(var(--space-unit) * 1.5) 0 0;background-repeat:no-repeat;background-size:contain;color:var(--color-primary01);fill:var(--color-primary01)}`;const o=class{emitZListItemLinkClick(i,t){this.zListItemLinkClick.emit({e:i,linkId:t})}emitZListItemClick(i,t){this.zListItemClick.emit({e:i,listitemid:t})}constructor(s){i(this,s);this.zListItemLinkClick=t(this,"zListItemLinkClick",7);this.zListItemClick=t(this,"zListItemClick",7);this.linktarget="_self";this.underlined=true;this.emitZListItemLinkClick=this.emitZListItemLinkClick.bind(this);this.emitZListItemClick=this.emitZListItemClick.bind(this)}render(){const i=this.listitemid?`link_${this.listitemid}`:"";return s("li",{key:"5364c5d28f9c27c67edb4e0bdcb1149f82ced9b6",role:"button",id:this.listitemid,"data-action":this.action,onClick:i=>this.emitZListItemClick(i,this.listitemid),onKeyPress:i=>a(i,this.emitZListItemClick,this.listitemid)},s("span",{key:"beb568968c53a442f27900b428f0fe5d0ac2703d",class:this.underlined&&"border"},this.icon&&s("z-icon",{key:"60bb559247dc40d349b83469baf081dcd1a23fae",name:this.icon}),this.link?s("a",{href:this.link?this.link:null,target:this.linktarget,id:i,onClick:t=>this.emitZListItemLinkClick(t,i),onKeyPress:t=>a(t,this.emitZListItemLinkClick,i),role:this.link?"link":"button",tabindex:"0"},this.text):s("span",{innerHTML:this.text}),s("slot",{key:"2c8731d7877f7675d388f8be3eb833a8fcc75bd0"})))}};o.style=e();export{o as z_myz_list_item};
2
+ //# sourceMappingURL=p-315ac39c.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMyzListItem","emitZListItemLinkClick","e","linkId","this","zListItemLinkClick","emit","emitZListItemClick","listitemid","zListItemClick","constructor","hostRef","linktarget","underlined","bind","render","h","key","role","id","action","onClick","onKeyPress","ev","handleKeyboardSubmit","class","icon","name","link","href","target","tabindex","text","innerHTML"],"sources":["src/snowflakes/myz/list/z-myz-list-item/styles.css?tag=z-myz-list-item&encapsulation=shadow","src/snowflakes/myz/list/z-myz-list-item/index.tsx"],"sourcesContent":[":host li {\n all: unset;\n all: reset;\n width: 100%;\n line-height: 14px;\n list-style-type: none;\n}\n\n:host li > span {\n display: flex;\n padding: calc(var(--space-unit) * 2) 0;\n color: var(--color-default-text);\n fill: var(--color-default-icon);\n font-family: var(--font-family-sans);\n font-size: 16px;\n font-weight: var(--font-rg);\n letter-spacing: 0.23px;\n line-height: 14px;\n}\n\n:host(.small) li > span {\n padding: calc(var(--space-unit) * 1.5) 0;\n font-size: var(--font-size-2);\n}\n\n:host(.x-small) li > span {\n padding: var(--space-unit) 0;\n font-size: var(--font-size-2);\n}\n\n:host(.small) li > span > z-icon,\n:host(.x-small) li > span > z-icon {\n --z-icon-width: 16px;\n --z-icon-height: 16px;\n --z-icon-right-margin: calc(var(--space-unit) * 0.5);\n\n padding: 0;\n}\n\n:host li > span.border {\n border-bottom: 2px solid var(--color-surface03);\n}\n\n:host li span:hover,\na:hover {\n color: var(--color-primary01);\n fill: var(--color-primary01);\n}\n\na,\na:visited,\na:active {\n color: inherit;\n fill: inherit;\n text-decoration: none;\n}\n\n:host li span z-icon {\n width: calc(var(--space-unit) * 2);\n height: calc(var(--space-unit) * 2);\n padding: 0 calc(var(--space-unit) * 1.5) 0 0;\n background-repeat: no-repeat;\n background-size: contain;\n color: var(--color-primary01);\n fill: var(--color-primary01);\n}\n","import {Component, ComponentInterface, Event, EventEmitter, Prop, h} from \"@stencil/core\";\nimport {handleKeyboardSubmit} from \"../../../../utils/utils\";\n\n@Component({\n tag: \"z-myz-list-item\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzListItem implements ComponentInterface {\n /** content text */\n @Prop()\n text: string;\n\n /** link url (optional) */\n @Prop()\n link?: string;\n\n /** link target (optional) */\n @Prop()\n linktarget?: string = \"_self\";\n\n /** icon name (optional) */\n @Prop()\n icon?: string;\n\n /** id (optional) */\n @Prop()\n listitemid?: string;\n\n /** data-action attribute (optional) */\n @Prop()\n action?: string;\n\n /** underlined style flag */\n @Prop()\n underlined = true;\n\n /** emitted on list item link click, returns linkId */\n @Event()\n zListItemLinkClick: EventEmitter;\n\n private emitZListItemLinkClick(e: MouseEvent, linkId): void {\n this.zListItemLinkClick.emit({e, linkId});\n }\n\n /** emitted on list item click, returns listitemid */\n @Event()\n zListItemClick: EventEmitter;\n\n private emitZListItemClick(e: MouseEvent, listitemid): void {\n this.zListItemClick.emit({e, listitemid});\n }\n\n constructor() {\n this.emitZListItemLinkClick = this.emitZListItemLinkClick.bind(this);\n this.emitZListItemClick = this.emitZListItemClick.bind(this);\n }\n\n render(): HTMLLIElement {\n const linkId = this.listitemid ? `link_${this.listitemid}` : \"\";\n\n return (\n <li\n role=\"button\"\n id={this.listitemid}\n data-action={this.action}\n onClick={(e: MouseEvent) => this.emitZListItemClick(e, this.listitemid)}\n onKeyPress={(ev: KeyboardEvent) => handleKeyboardSubmit(ev, this.emitZListItemClick, this.listitemid)}\n >\n <span class={this.underlined && \"border\"}>\n {this.icon && <z-icon name={this.icon} />}\n {this.link ? (\n <a\n href={this.link ? this.link : null}\n target={this.linktarget}\n id={linkId}\n onClick={(e: MouseEvent) => this.emitZListItemLinkClick(e, linkId)}\n onKeyPress={(ev: KeyboardEvent) => handleKeyboardSubmit(ev, this.emitZListItemLinkClick, linkId)}\n role={this.link ? \"link\" : \"button\"}\n tabindex=\"0\"\n >\n {this.text}\n </a>\n ) : (\n <span innerHTML={this.text}></span>\n )}\n <slot />\n </span>\n </li>\n );\n }\n}\n"],"mappings":"sIAAA,MAAMA,EAAY,IAAM,smC,MCQXC,EAAY,MAiCf,sBAAAC,CAAuBC,EAAeC,GAC5CC,KAAKC,mBAAmBC,KAAK,CAACJ,IAAGC,U,CAO3B,kBAAAI,CAAmBL,EAAeM,GACxCJ,KAAKK,eAAeH,KAAK,CAACJ,IAAGM,c,CAG/B,WAAAE,CAAAC,G,gHAlCAP,KAAAQ,WAAsB,QAgBtBR,KAAAS,WAAa,KAmBXT,KAAKH,uBAAyBG,KAAKH,uBAAuBa,KAAKV,MAC/DA,KAAKG,mBAAqBH,KAAKG,mBAAmBO,KAAKV,KACxD,CAED,MAAAW,GACE,MAAMZ,EAASC,KAAKI,WAAa,QAAQJ,KAAKI,aAAe,GAE7D,OACEQ,EAAA,MAAAC,IAAA,2CACEC,KAAK,SACLC,GAAIf,KAAKI,WAAU,cACNJ,KAAKgB,OAClBC,QAAUnB,GAAkBE,KAAKG,mBAAmBL,EAAGE,KAAKI,YAC5Dc,WAAaC,GAAsBC,EAAqBD,EAAInB,KAAKG,mBAAoBH,KAAKI,aAE1FQ,EAAA,QAAAC,IAAA,2CAAMQ,MAAOrB,KAAKS,YAAc,UAC7BT,KAAKsB,MAAQV,EAAA,UAAAC,IAAA,2CAAQU,KAAMvB,KAAKsB,OAChCtB,KAAKwB,KACJZ,EAAA,KACEa,KAAMzB,KAAKwB,KAAOxB,KAAKwB,KAAO,KAC9BE,OAAQ1B,KAAKQ,WACbO,GAAIhB,EACJkB,QAAUnB,GAAkBE,KAAKH,uBAAuBC,EAAGC,GAC3DmB,WAAaC,GAAsBC,EAAqBD,EAAInB,KAAKH,uBAAwBE,GACzFe,KAAMd,KAAKwB,KAAO,OAAS,SAC3BG,SAAS,KAER3B,KAAK4B,MAGRhB,EAAA,QAAMiB,UAAW7B,KAAK4B,OAExBhB,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as t,h as r}from"./p-BEHxru6n.js";import{o as a}from"./p-B3nR3-Jw.js";const i=()=>`:host{position:absolute;z-index:2;top:0;left:0;width:100%;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>z-alert{height:calc(var(--space-unit) * 6)}.relative-container{position:relative;display:grid;align-items:center;padding:0;grid-column-gap:var(--space-unit);grid-template-columns:18px auto 46px;grid-template-rows:1fr;outline:none}.relative-container::-moz-focus-inner{border:0}.alert-external-wrapper.remove-alert{border:var(--border-size-medium) solid var(--color-background);border-top:none}:host div.add-alert{background:var(--color-inverse-success)}:host div.remove-alert{background:var(--color-inverse-warning)}:host div>.content-text{color:var(--color-surface05);font-size:14px;letter-spacing:0.16px;line-height:20px}:host div>.content-action{height:20px;color:var(--color-primary01);cursor:pointer;font-size:12px;font-weight:var(--font-sb);letter-spacing:0.32px;line-height:20px}:host div>z-icon{justify-self:center}`;const o=class{constructor(r){e(this,r);this.undoAction=t(this,"undoAction",7)}emitUndoAction(){this.undoAction.emit({actionType:this.type})}handleSpaceKeyPress(e){if(e.keyCode==32||e.keyCode==13){e.preventDefault();this.emitUndoAction()}}handleActionButtonClick(e){e.preventDefault();this.emitUndoAction()}retrieveClass(){let e="";switch(this.type){case"add":e="add-alert";break;case"remove":e="remove-alert";break;default:e="";break}return e}getAlertType(){switch(this.type){case"add":return a.SUCCESS;case"remove":return a.WARNING;default:return null}}render(){return r("div",{key:"201658341ee794792a8b91f6666144ac3163eec1",class:"alert-external-wrapper "+this.retrieveClass()},r("z-alert",{key:"8ac5d12c70817efc8ce85cd298737f7fdcb78acc",type:this.getAlertType()},r("div",{key:"9db78e7bb91568660a416638e5fb12271421d076",class:"relative-container"},r("z-icon",{key:"990bf9d3c3f17b232a9d5b113f48682581c29c44",name:this.iconname,width:18,height:18,class:this.retrieveClass()}),r("span",{key:"33184bd74331a45dcef59b8703b1e679e153c51b",class:"content-text"},this.contenttext),this.actiontext&&!!this.actiontext.trim().length&&r("span",{key:"e906ff2a3220d4d9f6a4534a31c94afa244786ff",role:"button",tabindex:"0",class:"content-action",onClick:e=>{this.handleActionButtonClick(e)},onKeyPress:e=>{this.handleSpaceKeyPress(e)}},this.actiontext))))}};o.style=i();export{o as z_myz_card_alert};
2
+ //# sourceMappingURL=p-35653b5e.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMyzCardAlert","emitUndoAction","this","undoAction","emit","actionType","type","handleSpaceKeyPress","e","keyCode","preventDefault","handleActionButtonClick","retrieveClass","className","getAlertType","AlertType","SUCCESS","WARNING","render","h","key","class","name","iconname","width","height","contenttext","actiontext","trim","length","role","tabindex","onClick","onKeyPress"],"sources":["src/snowflakes/myz/card/z-myz-card-alert/styles.css?tag=z-myz-card-alert&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-alert/index.tsx"],"sourcesContent":[":host {\n position: absolute;\n z-index: 2;\n top: 0;\n left: 0;\n width: 100%;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > z-alert {\n height: calc(var(--space-unit) * 6);\n}\n\n.relative-container {\n position: relative;\n display: grid;\n align-items: center;\n padding: 0;\n grid-column-gap: var(--space-unit);\n grid-template-columns: 18px auto 46px;\n grid-template-rows: 1fr;\n outline: none;\n}\n\n.relative-container::-moz-focus-inner {\n border: 0;\n}\n\n.alert-external-wrapper.remove-alert {\n border: var(--border-size-medium) solid var(--color-background);\n border-top: none;\n}\n\n:host div.add-alert {\n background: var(--color-inverse-success);\n}\n\n:host div.remove-alert {\n background: var(--color-inverse-warning);\n}\n\n:host div > .content-text {\n color: var(--color-surface05);\n font-size: 14px;\n letter-spacing: 0.16px;\n line-height: 20px;\n}\n\n:host div > .content-action {\n height: 20px;\n color: var(--color-primary01);\n cursor: pointer;\n font-size: 12px;\n font-weight: var(--font-sb);\n letter-spacing: 0.32px;\n line-height: 20px;\n}\n\n:host div > z-icon {\n justify-self: center;\n}\n","import {Component, ComponentInterface, Event, EventEmitter, Prop, h} from \"@stencil/core\";\nimport {AlertType} from \"../../../../beans\";\n\n@Component({\n tag: \"z-myz-card-alert\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardAlert implements ComponentInterface {\n /** icon name */\n @Prop()\n iconname: string;\n\n /** content text */\n @Prop()\n contenttext: string;\n\n /** action button text */\n @Prop()\n actiontext?: string;\n\n /** alert variant type */\n @Prop()\n type: string;\n\n /** undo action click/keyboard event, returns actionType */\n @Event()\n undoAction: EventEmitter;\n\n private emitUndoAction(): void {\n this.undoAction.emit({actionType: this.type});\n }\n\n private handleSpaceKeyPress(e: KeyboardEvent): void {\n if (e.keyCode == 32 || e.keyCode == 13) {\n e.preventDefault();\n this.emitUndoAction();\n }\n }\n\n private handleActionButtonClick(e: MouseEvent): void {\n e.preventDefault();\n this.emitUndoAction();\n }\n\n private retrieveClass(): string {\n let className = \"\";\n switch (this.type) {\n case \"add\":\n className = \"add-alert\";\n break;\n case \"remove\":\n className = \"remove-alert\";\n break;\n default:\n className = \"\";\n break;\n }\n\n return className;\n }\n\n private getAlertType(): AlertType {\n switch (this.type) {\n case \"add\":\n return AlertType.SUCCESS;\n case \"remove\":\n return AlertType.WARNING;\n default:\n return null;\n }\n }\n\n render(): HTMLDivElement {\n return (\n <div class={\"alert-external-wrapper \" + this.retrieveClass()}>\n <z-alert type={this.getAlertType()}>\n <div class=\"relative-container\">\n <z-icon\n name={this.iconname}\n width={18}\n height={18}\n class={this.retrieveClass()}\n ></z-icon>\n <span class=\"content-text\">{this.contenttext}</span>\n {this.actiontext && !!this.actiontext.trim().length && (\n <span\n role=\"button\"\n tabindex=\"0\"\n class=\"content-action\"\n onClick={(e: MouseEvent) => {\n this.handleActionButtonClick(e);\n }}\n onKeyPress={(e: KeyboardEvent) => {\n this.handleSpaceKeyPress(e);\n }}\n >\n {this.actiontext}\n </span>\n )}\n </div>\n </z-alert>\n </div>\n );\n }\n}\n"],"mappings":"sFAAA,MAAMA,EAAY,IAAM,y7B,MCQXC,EAAa,M,gEAqBhB,cAAAC,GACNC,KAAKC,WAAWC,KAAK,CAACC,WAAYH,KAAKI,M,CAGjC,mBAAAC,CAAoBC,GAC1B,GAAIA,EAAEC,SAAW,IAAMD,EAAEC,SAAW,GAAI,CACtCD,EAAEE,iBACFR,KAAKD,gB,EAID,uBAAAU,CAAwBH,GAC9BA,EAAEE,iBACFR,KAAKD,gB,CAGC,aAAAW,GACN,IAAIC,EAAY,GAChB,OAAQX,KAAKI,MACX,IAAK,MACHO,EAAY,YACZ,MACF,IAAK,SACHA,EAAY,eACZ,MACF,QACEA,EAAY,GACZ,MAGJ,OAAOA,C,CAGD,YAAAC,GACN,OAAQZ,KAAKI,MACX,IAAK,MACH,OAAOS,EAAUC,QACnB,IAAK,SACH,OAAOD,EAAUE,QACnB,QACE,OAAO,K,CAIb,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAO,0BAA4BnB,KAAKU,iBAC3CO,EAAA,WAAAC,IAAA,2CAASd,KAAMJ,KAAKY,gBAClBK,EAAA,OAAAC,IAAA,2CAAKC,MAAM,sBACTF,EAAA,UAAAC,IAAA,2CACEE,KAAMpB,KAAKqB,SACXC,MAAO,GACPC,OAAQ,GACRJ,MAAOnB,KAAKU,kBAEdO,EAAA,QAAAC,IAAA,2CAAMC,MAAM,gBAAgBnB,KAAKwB,aAChCxB,KAAKyB,cAAgBzB,KAAKyB,WAAWC,OAAOC,QAC3CV,EAAA,QAAAC,IAAA,2CACEU,KAAK,SACLC,SAAS,IACTV,MAAM,iBACNW,QAAUxB,IACRN,KAAKS,wBAAwBH,EAAE,EAEjCyB,WAAazB,IACXN,KAAKK,oBAAoBC,EAAE,GAG5BN,KAAKyB,c","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as e,h as i,H as o,d as n}from"./p-BEHxru6n.js";import{P as s,g as a}from"./p-B3nR3-Jw.js";import{a as r}from"./p-C8pbzcmM.js";import"./p-Q-tWjk7P.js";const h=()=>`:host,*{box-sizing:border-box}.z-tool{--z-tool-size:calc(var(--space-unit) * 5.5);--z-tool-icon-size:calc(var(--space-unit) * 2.5);position:relative;display:inline-flex;width:var(--z-tool-size);height:var(--z-tool-size);align-items:center;justify-content:center;padding:0;border:none;margin:0;background-color:var(--color-surface01);border-radius:var(--border-radius);cursor:pointer}:host(:is([active],[open])) .z-tool{box-shadow:inset 0 0 0 2px var(--color-primary01)}:host([open]) .z-tool{background:var(--color-primary03)}@media (hover: hover){:host(:hover),:host(.z-tool-tooltip-open){z-index:1}:host(:not([disabled])) .z-tool:hover{background-color:var(--color-primary03)}}.z-tool:focus:focus-visible{background-color:var(--color-primary03);outline:none}z-icon{--z-icon-width:var(--z-tool-icon-size);--z-icon-height:var(--z-tool-icon-size);display:block;fill:var(--color-default-icon)}:host([disabled]) .z-tool{color:var(--color-disabled01-icon);cursor:not-allowed}:host([disabled]) z-icon{fill:var(--color-disabled01-icon)}.z-tool-tooltip{--z-tooltip-padding:calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);--z-tooltip-shadow-filter:drop-shadow(0 4px 8px var(--shadow-color-base));position:relative;z-index:2;font-family:var(--font-family-sans);white-space:nowrap}.z-tool-submenu{z-index:3;border-radius:calc(var(--border-radius) + var(--border-size-small))}.z-tool-submenu ::slotted(z-color-picker){border:var(--border-size-small) solid var(--color-surface03);border-radius:var(--border-radius)}@media (max-width: 767px) and (hover: none){.z-tool-tooltip{display:none !important}}`;const l=()=>`:root{--font-family-sans:"IBM Plex Sans", sans-serif;--font-family-serif:"IBM Plex Serif", serif;--font-lt:300;--font-rg:400;--font-sb:600;--font-bd:700;--font-size-1:0.75rem;--font-size-2:0.875rem;--font-size-3:1rem;--font-size-4:1.125rem;--font-size-5:1.25rem;--font-size-6:1.5rem;--font-size-7:1.75rem;--font-size-8:2rem;--font-size-9:2.25rem;--font-size-10:2.625rem;--font-size-11:3rem;--font-size-12:3.375rem;--font-size-13:3.75rem;--font-size-14:4.25rem;--font-size-15:4.75rem;--font-size-16:5.25rem;--font-size-17:5.75rem;--section-title-1:var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);--section-title-2:var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);--section-title-3:var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);--section-title-4:var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);--section-title-5:var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);--section-title-6:var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif)}.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-3,.heading-3-sb,.heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.heading-4,.heading-4-sb,.heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-1,.body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.body-2,.body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.body-3,.body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.body-4,.body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.body-5,.body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.interactive-1,.interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.interactive-2,.interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.interactive-3,.interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.helper,.helper-sb{font-size:var(--font-size-1);font-style:italic;font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.section-title-1{font:var(--section-title-1)}.section-title-2{font:var(--section-title-2)}.section-title-3{font:var(--section-title-3)}.section-title-4{font:var(--section-title-4)}.section-title-5{font:var(--section-title-5)}.section-title-6{font:var(--section-title-6)}@media (min-width: 1152px){.heading-1,.heading-1-sb,.heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.heading-2,.heading-2-sb,.heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}}@media (max-width: 767px){.mobile-heading-1,.mobile-heading-1-sb,.mobile-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.mobile-heading-2,.mobile-heading-2-sb,.mobile-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-3,.mobile-heading-3-sb,.mobile-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.mobile-heading-4,.mobile-heading-4-sb,.mobile-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-1,.mobile-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.mobile-body-2,.mobile-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.mobile-body-3,.mobile-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-body-4,.mobile-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-body-5,.mobile-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-interactive-1,.mobile-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.mobile-interactive-2,.mobile-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.mobile-interactive-3,.mobile-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.mobile-section-title-1{font:var(--section-title-1)}.mobile-section-title-2{font:var(--section-title-2)}.mobile-section-title-3{font:var(--section-title-3)}.mobile-section-title-4{font:var(--section-title-4)}.mobile-section-title-5{font:var(--section-title-5)}.mobile-section-title-6{font:var(--section-title-6)}.mobile-heading-1-lt,.mobile-heading-2-lt,.mobile-heading-3-lt,.mobile-heading-4-lt{font-weight:var(--font-lt)}.mobile-heading-1-sb,.mobile-heading-2-sb,.mobile-heading-3-sb,.mobile-heading-4-sb,.mobile-body-1-sb,.mobile-body-2-sb,.mobile-body-3-sb,.mobile-body-4-sb,.mobile-body-5-sb,.mobile-interactive-1-sb,.mobile-interactive-2-sb,.mobile-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 768px) and (max-width: 1151px){.tablet-heading-1,.tablet-heading-1-sb,.tablet-heading-1-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.tablet-heading-2,.tablet-heading-2-sb,.tablet-heading-2-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-3,.tablet-heading-3-sb,.tablet-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.tablet-heading-4,.tablet-heading-4-sb,.tablet-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-1,.tablet-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.tablet-body-2,.tablet-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.tablet-body-3,.tablet-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-body-4,.tablet-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-body-5,.tablet-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-interactive-1,.tablet-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.tablet-interactive-2,.tablet-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.tablet-interactive-3,.tablet-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.tablet-section-title-1{font:var(--section-title-1)}.tablet-section-title-2{font:var(--section-title-2)}.tablet-section-title-3{font:var(--section-title-3)}.tablet-section-title-4{font:var(--section-title-4)}.tablet-section-title-5{font:var(--section-title-5)}.tablet-section-title-6{font:var(--section-title-6)}.tablet-heading-1-lt,.tablet-heading-2-lt,.tablet-heading-3-lt,.tablet-heading-4-lt{font-weight:var(--font-lt)}.tablet-heading-1-sb,.tablet-heading-2-sb,.tablet-heading-3-sb,.tablet-heading-4-sb,.tablet-body-1-sb,.tablet-body-2-sb,.tablet-body-3-sb,.tablet-body-4-sb,.tablet-body-5-sb,.tablet-interactive-1-sb,.tablet-interactive-2-sb,.tablet-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1152px) and (max-width: 1365px){.desktop-heading-1,.desktop-heading-1-sb,.desktop-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.desktop-heading-2,.desktop-heading-2-sb,.desktop-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.desktop-heading-3,.desktop-heading-3-sb,.desktop-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.desktop-heading-4,.desktop-heading-4-sb,.desktop-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-1,.desktop-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.desktop-body-2,.desktop-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.desktop-body-3,.desktop-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-body-4,.desktop-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-body-5,.desktop-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-interactive-1,.desktop-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.desktop-interactive-2,.desktop-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.desktop-interactive-3,.desktop-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.desktop-section-title-1{font:var(--section-title-1)}.desktop-section-title-2{font:var(--section-title-2)}.desktop-section-title-3{font:var(--section-title-3)}.desktop-section-title-4{font:var(--section-title-4)}.desktop-section-title-5{font:var(--section-title-5)}.desktop-section-title-6{font:var(--section-title-6)}.desktop-heading-1-lt,.desktop-heading-2-lt,.desktop-heading-3-lt,.desktop-heading-4-lt{font-weight:var(--font-lt)}.desktop-heading-1-sb,.desktop-heading-2-sb,.desktop-heading-3-sb,.desktop-heading-4-sb,.desktop-body-1-sb,.desktop-body-2-sb,.desktop-body-3-sb,.desktop-body-4-sb,.desktop-body-5-sb,.desktop-interactive-1-sb,.desktop-interactive-2-sb,.desktop-interactive-3-sb{font-weight:var(--font-sb)}}@media (min-width: 1366px){.wide-heading-1,.wide-heading-1-sb,.wide-heading-1-lt{font-size:var(--font-size-8);font-weight:var(--font-rg);line-height:1.25}.wide-heading-2,.wide-heading-2-sb,.wide-heading-2-lt{font-size:var(--font-size-7);font-weight:var(--font-rg);line-height:1.28}.wide-heading-3,.wide-heading-3-sb,.wide-heading-3-lt{font-size:var(--font-size-6);font-weight:var(--font-rg);line-height:1.333}.wide-heading-4,.wide-heading-4-sb,.wide-heading-4-lt{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-1,.wide-body-1-sb{font-size:var(--font-size-5);font-weight:var(--font-rg);line-height:1.4}.wide-body-2,.wide-body-2-sb{font-size:var(--font-size-4);font-weight:var(--font-rg);line-height:1.5}.wide-body-3,.wide-body-3-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-body-4,.wide-body-4-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-body-5,.wide-body-5-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-interactive-1,.wide-interactive-1-sb{font-size:var(--font-size-3);font-weight:var(--font-rg);line-height:1.5}.wide-interactive-2,.wide-interactive-2-sb{font-size:var(--font-size-2);font-weight:var(--font-rg);letter-spacing:0.16px;line-height:1.4}.wide-interactive-3,.wide-interactive-3-sb{font-size:var(--font-size-1);font-weight:var(--font-rg);letter-spacing:0.32px;line-height:1.333}.wide-section-title-1{font:var(--section-title-1)}.wide-section-title-2{font:var(--section-title-2)}.wide-section-title-3{font:var(--section-title-3)}.wide-section-title-4{font:var(--section-title-4)}.wide-section-title-5{font:var(--section-title-5)}.wide-section-title-6{font:var(--section-title-6)}.wide-heading-1-lt,.wide-heading-2-lt,.wide-heading-3-lt,.wide-heading-4-lt{font-weight:var(--font-lt)}.wide-heading-1-sb,.wide-heading-2-sb,.wide-heading-3-sb,.wide-heading-4-sb,.wide-body-1-sb,.wide-body-2-sb,.wide-body-3-sb,.wide-body-4-sb,.wide-body-5-sb,.wide-interactive-1-sb,.wide-interactive-2-sb,.wide-interactive-3-sb{font-weight:var(--font-sb)}}.heading-1-lt,.heading-2-lt,.heading-3-lt,.heading-4-lt{font-weight:var(--font-lt)}.heading-1-sb,.heading-2-sb,.heading-3-sb,.heading-4-sb,.body-1-sb,.body-2-sb,.body-3-sb,.body-4-sb,.body-5-sb,.interactive-1-sb,.interactive-2-sb,.interactive-3-sb,.helper-sb{font-weight:var(--font-sb)}`;const f=class{constructor(i){t(this,i);this.toggleSubmenu=e(this,"toggleSubmenu",7);this.toggleTooltip=e(this,"toggleTooltip",7);this.tooltipPosition=s.TOP;this.active=false;this.disabled=false;this.open=false;this.tooltipOpen=false;this.hasSlottedContent=false;this.isMobile=false;this.hasNestedOpenTools=false;this.isNested=false;this.handleTooltipOpen=t=>{if(!this.tooltip||this.open||!this.buttonRef.contains(t.target)){return}clearTimeout(this.hoverDelay);this.hoverDelay=setTimeout((()=>{this.tooltipOpen=true}),1e3)};this.handleTooltipClose=t=>{var e;if(!this.tooltip||((e=t.relatedTarget)===null||e===void 0?void 0:e.closest("z-tooltip"))===this.tooltipRef){return}clearTimeout(this.hoverDelay);this.tooltipOpen=false};this.handleClick=()=>{if(this.disabled||!this.hasSlottedContent){return}this.open=!this.open;if(this.open){const t=this.hostElement.querySelector(":scope > z-color-picker");if(t){t.setFocus();return}const e=this.hostElement.querySelector(":scope > z-toolbar z-tool[active]:not(:disabled)")||this.hostElement.querySelector(":scope > z-toolbar z-tool:not(:disabled)");e===null||e===void 0?void 0:e.setFocus()}};this.onTooltipOpenChange=t=>{if(t.target===this.tooltipRef){return}this.tooltipOpen=t.detail.open}}handleOpenChange(){this.toggleSubmenu.emit(this.open)}handleTooltipOpenChange(){this.toggleTooltip.emit(this.tooltipOpen)}handleKeyDown(t){if(!this.open||this.hasNestedOpenTools){return}switch(t.key){case a.ESC:t.stopPropagation();this.open=false;this.setFocus();break;case a.TAB:if(t.shiftKey&&t.target.closest("z-tool:not(:scope)")===this.hostElement){this.open=false}break}}onOutsideClick(t){const e=t.composedPath()[0];if(!this.open||r(this.hostElement,e)||this.hasNestedOpenTools){return}this.open=false}onNestedToolToggle(t){if(t.target===this.hostElement){return}if(t.detail===true){this.hasNestedOpenTools=true;return}this.hasNestedOpenTools=Array.from(this.hostElement.querySelectorAll("z-tool")).some((t=>t.open))}handleColorSelected(t){if(!Array.from(this.hostElement.children).includes(t.target)){return}this.indicatorColor=t.detail;this.open=false;this.setFocus()}handleExternalFocusin(t){const e=t.target;if(!r(this.hostElement,e)){this.open=false}}async setFocus(){if(this.disabled){return}setTimeout((()=>{var t;(t=this.buttonRef)===null||t===void 0?void 0:t.focus()}),50)}async setTabIndex(t){if(!this.buttonRef){return}this.buttonRef.tabIndex=this.disabled?-1:t}async closeTooltip(){clearTimeout(this.hoverDelay);this.tooltipOpen=false}componentWillLoad(){this.hasSlottedContent=this.hostElement.children.length>0;this.isNested=!!this.hostElement.closest("z-tool:not(:scope)");this.mainToolbar=this.hostElement.closest("z-toolbar:not(z-toolbar z-toolbar)");this.hasNestedOpenTools=!!this.hostElement.querySelector("z-tool[open]");this.mql=matchMedia("(max-width: 767px)");this.onMobileViewChange=t=>this.isMobile=t.matches;this.mql.addEventListener("change",this.onMobileViewChange);this.isMobile=this.mql.matches}disconnectedCallback(){var t;clearTimeout(this.hoverDelay);(t=this.mql)===null||t===void 0?void 0:t.removeEventListener("change",this.onMobileViewChange)}render(){return i(o,{key:"877a963cd0017bb4ee4ceee41269a7221c9b5657",class:{"z-tool-tooltip-open":this.tooltipOpen}},i("button",{key:"277956460cb28d4fa82751858e6ec223c60c3742",class:"z-tool",type:"button",ref:t=>this.buttonRef=t,"aria-pressed":this.hasSlottedContent?undefined:this.active?"true":"false","aria-expanded":this.hasSlottedContent?this.open?"true":"false":undefined,"aria-haspopup":this.hasSlottedContent?"true":undefined,"aria-label":this.htmlAriaLabel||this.tooltip||undefined,disabled:this.disabled,onClick:this.handleClick,onMouseEnter:this.handleTooltipOpen,onMouseLeave:this.handleTooltipClose,onFocus:this.handleTooltipOpen,onBlur:this.handleTooltipClose},i("z-icon",{key:"7adc9e77129028185370b067f087190c30ce65b1",ref:t=>this.iconRef=t,name:this.icon,indicatorColor:this.indicatorColor})),this.tooltip&&i("z-tooltip",{key:"1ad7d42bea522fe09f192f6a5437a56aa1c0dfce",class:"z-tool-tooltip",ref:t=>this.tooltipRef=t,bindTo:this.iconRef,open:this.tooltipOpen&&!this.open,position:this.isNested?s.BOTTOM:this.tooltipPosition,dark:true,onMouseLeave:this.handleTooltipClose,onBlur:this.handleTooltipClose,onOpenChange:this.onTooltipOpenChange},i("span",{key:"aa411388fce8b01983fed63a1c27505a53604a8c",class:"body-4"},this.tooltip)),this.hasSlottedContent&&i("z-popover",{key:"018b555d82f0fe05cf1029eabaf645f14f793079",class:"z-tool-submenu",open:this.open,bindTo:this.isMobile&&this.mainToolbar?this.mainToolbar:this.hostElement,center:true,closable:false,position:this.isMobile?s.TOP:s.BOTTOM},i("slot",{key:"cc57b7897e2341151ffa771a0c1d7ed22052faf7"})))}get hostElement(){return n(this)}static get watchers(){return{open:[{handleOpenChange:0}],tooltipOpen:[{handleTooltipOpenChange:0}]}}};f.style=h()+l();export{f as z_tool};
2
+ //# sourceMappingURL=p-38e4e01f.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","typographyCss","ZTool","constructor","hostRef","this","tooltipPosition","PopoverPosition","TOP","active","disabled","open","tooltipOpen","hasSlottedContent","isMobile","hasNestedOpenTools","isNested","handleTooltipOpen","ev","tooltip","buttonRef","contains","target","clearTimeout","hoverDelay","setTimeout","handleTooltipClose","_a","relatedTarget","closest","tooltipRef","handleClick","colorPicker","hostElement","querySelector","setFocus","firstActiveOrEnabledNestedTool","onTooltipOpenChange","event","detail","handleOpenChange","toggleSubmenu","emit","handleTooltipOpenChange","toggleTooltip","handleKeyDown","key","KeyboardCode","ESC","stopPropagation","TAB","shiftKey","onOutsideClick","composedPath","containsElement","onNestedToolToggle","Array","from","querySelectorAll","some","tool","handleColorSelected","children","includes","indicatorColor","handleExternalFocusin","focus","setTabIndex","value","tabIndex","closeTooltip","componentWillLoad","length","mainToolbar","mql","matchMedia","onMobileViewChange","e","matches","addEventListener","disconnectedCallback","removeEventListener","render","h","Host","class","type","ref","el","undefined","htmlAriaLabel","onClick","onMouseEnter","onMouseLeave","onFocus","onBlur","iconRef","name","icon","bindTo","position","BOTTOM","dark","onOpenChange","center","closable"],"sources":["src/components/z-tool/styles.css?tag=z-tool&encapsulation=shadow","src/tokens/typography.css?tag=z-tool&encapsulation=shadow","src/components/z-tool/index.tsx"],"sourcesContent":[":host,\n* {\n box-sizing: border-box;\n}\n\n.z-tool {\n --z-tool-size: calc(var(--space-unit) * 5.5);\n --z-tool-icon-size: calc(var(--space-unit) * 2.5);\n\n position: relative;\n display: inline-flex;\n width: var(--z-tool-size);\n height: var(--z-tool-size);\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n margin: 0;\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n cursor: pointer;\n}\n\n:host(:is([active], [open])) .z-tool {\n box-shadow: inset 0 0 0 2px var(--color-primary01);\n}\n\n:host([open]) .z-tool {\n background: var(--color-primary03);\n}\n\n@media (hover: hover) {\n :host(:hover),\n :host(.z-tool-tooltip-open) {\n /* ensure any open tooltip is shown over sibling elements */\n z-index: 1;\n }\n\n :host(:not([disabled])) .z-tool:hover {\n background-color: var(--color-primary03);\n }\n}\n\n.z-tool:focus:focus-visible {\n background-color: var(--color-primary03);\n outline: none;\n}\n\nz-icon {\n --z-icon-width: var(--z-tool-icon-size);\n --z-icon-height: var(--z-tool-icon-size);\n\n display: block;\n fill: var(--color-default-icon);\n}\n\n:host([disabled]) .z-tool {\n color: var(--color-disabled01-icon);\n cursor: not-allowed;\n}\n\n:host([disabled]) z-icon {\n fill: var(--color-disabled01-icon);\n}\n\n.z-tool-tooltip {\n --z-tooltip-padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);\n --z-tooltip-shadow-filter: drop-shadow(0 4px 8px var(--shadow-color-base));\n\n position: relative;\n z-index: 2;\n font-family: var(--font-family-sans);\n white-space: nowrap;\n}\n\n.z-tool-submenu {\n z-index: 3;\n border-radius: calc(var(--border-radius) + var(--border-size-small));\n}\n\n.z-tool-submenu ::slotted(z-color-picker) {\n border: var(--border-size-small) solid var(--color-surface03);\n border-radius: var(--border-radius);\n}\n\n@media (max-width: 767px) and (hover: none) {\n .z-tool-tooltip {\n display: none !important;\n }\n}\n",":root {\n /* font-family */\n --font-family-sans: \"IBM Plex Sans\", sans-serif;\n --font-family-serif: \"IBM Plex Serif\", serif;\n\n /* font-weight */\n --font-lt: 300;\n --font-rg: 400;\n --font-sb: 600;\n --font-bd: 700;\n\n /* font-size type scale */\n --font-size-1: 0.75rem; /* 12px */\n --font-size-2: 0.875rem; /* 14px */\n --font-size-3: 1rem; /* assuming 16px */\n --font-size-4: 1.125rem; /* 18px */\n --font-size-5: 1.25rem; /* 20px */\n --font-size-6: 1.5rem; /* 24px */\n --font-size-7: 1.75rem; /* 28px */\n --font-size-8: 2rem; /* 32px */\n --font-size-9: 2.25rem; /* 36px */\n --font-size-10: 2.625rem; /* 42px */\n --font-size-11: 3rem; /* 48px */\n --font-size-12: 3.375rem; /* 54px */\n --font-size-13: 3.75rem; /* 60px */\n --font-size-14: 4.25rem; /* 68px */\n --font-size-15: 4.75rem; /* 76px */\n --font-size-16: 5.25rem; /* 84px */\n --font-size-17: 5.75rem; /* 92px */\n\n /* cssprops to use with `font` shorthand property */\n --section-title-1: var(--font-sb) var(--font-size-11) / 1.083 var(--font-family-serif);\n --section-title-2: var(--font-sb) var(--font-size-10) / 1.142 var(--font-family-serif);\n --section-title-3: var(--font-sb) var(--font-size-9) / 1.222 var(--font-family-serif);\n --section-title-4: var(--font-sb) var(--font-size-8) / 1.25 var(--font-family-serif);\n --section-title-5: var(--font-sb) var(--font-size-7) / 1.2857 var(--font-family-serif);\n --section-title-6: var(--font-sb) var(--font-size-6) / 1.333 var(--font-family-serif);\n}\n\n/* Typography classes */\n.heading-1,\n.heading-1-sb,\n.heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n}\n\n.heading-2,\n.heading-2-sb,\n.heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n}\n\n.heading-3,\n.heading-3-sb,\n.heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n}\n\n.heading-4,\n.heading-4-sb,\n.heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n.body-1,\n.body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n}\n\n.body-2,\n.body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.body-3,\n.body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.body-4,\n.body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n}\n\n.body-5,\n.body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n.interactive-1,\n.interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n}\n\n.interactive-2,\n.interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n}\n\n.interactive-3,\n.interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n.helper,\n.helper-sb {\n font-size: var(--font-size-1);\n font-style: italic;\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n}\n\n/* section title */\n.section-title-1 {\n font: var(--section-title-1);\n}\n\n.section-title-2 {\n font: var(--section-title-2);\n}\n\n.section-title-3 {\n font: var(--section-title-3);\n}\n\n.section-title-4 {\n font: var(--section-title-4);\n}\n\n.section-title-5 {\n font: var(--section-title-5);\n}\n\n.section-title-6 {\n font: var(--section-title-6);\n}\n\n/* heading-1/2 for desktop and wide viewports */\n@media (min-width: 1152px) {\n .heading-1,\n .heading-1-sb,\n .heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .heading-2,\n .heading-2-sb,\n .heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n}\n\n/* viewport classes */\n@media (max-width: 767px) {\n .mobile-heading-1,\n .mobile-heading-1-sb,\n .mobile-heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .mobile-heading-2,\n .mobile-heading-2-sb,\n .mobile-heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .mobile-heading-3,\n .mobile-heading-3-sb,\n .mobile-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .mobile-heading-4,\n .mobile-heading-4-sb,\n .mobile-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .mobile-body-1,\n .mobile-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .mobile-body-2,\n .mobile-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-body-3,\n .mobile-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-body-4,\n .mobile-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .mobile-body-5,\n .mobile-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .mobile-interactive-1,\n .mobile-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .mobile-interactive-2,\n .mobile-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .mobile-interactive-3,\n .mobile-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .mobile-section-title-1 {\n font: var(--section-title-1);\n }\n\n .mobile-section-title-2 {\n font: var(--section-title-2);\n }\n\n .mobile-section-title-3 {\n font: var(--section-title-3);\n }\n\n .mobile-section-title-4 {\n font: var(--section-title-4);\n }\n\n .mobile-section-title-5 {\n font: var(--section-title-5);\n }\n\n .mobile-section-title-6 {\n font: var(--section-title-6);\n }\n\n .mobile-heading-1-lt,\n .mobile-heading-2-lt,\n .mobile-heading-3-lt,\n .mobile-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .mobile-heading-1-sb,\n .mobile-heading-2-sb,\n .mobile-heading-3-sb,\n .mobile-heading-4-sb,\n .mobile-body-1-sb,\n .mobile-body-2-sb,\n .mobile-body-3-sb,\n .mobile-body-4-sb,\n .mobile-body-5-sb,\n .mobile-interactive-1-sb,\n .mobile-interactive-2-sb,\n .mobile-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 768px) and (max-width: 1151px) {\n .tablet-heading-1,\n .tablet-heading-1-sb,\n .tablet-heading-1-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .tablet-heading-2,\n .tablet-heading-2-sb,\n .tablet-heading-2-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .tablet-heading-3,\n .tablet-heading-3-sb,\n .tablet-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .tablet-heading-4,\n .tablet-heading-4-sb,\n .tablet-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .tablet-body-1,\n .tablet-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .tablet-body-2,\n .tablet-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-body-3,\n .tablet-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-body-4,\n .tablet-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .tablet-body-5,\n .tablet-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .tablet-interactive-1,\n .tablet-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .tablet-interactive-2,\n .tablet-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .tablet-interactive-3,\n .tablet-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .tablet-section-title-1 {\n font: var(--section-title-1);\n }\n\n .tablet-section-title-2 {\n font: var(--section-title-2);\n }\n\n .tablet-section-title-3 {\n font: var(--section-title-3);\n }\n\n .tablet-section-title-4 {\n font: var(--section-title-4);\n }\n\n .tablet-section-title-5 {\n font: var(--section-title-5);\n }\n\n .tablet-section-title-6 {\n font: var(--section-title-6);\n }\n\n .tablet-heading-1-lt,\n .tablet-heading-2-lt,\n .tablet-heading-3-lt,\n .tablet-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .tablet-heading-1-sb,\n .tablet-heading-2-sb,\n .tablet-heading-3-sb,\n .tablet-heading-4-sb,\n .tablet-body-1-sb,\n .tablet-body-2-sb,\n .tablet-body-3-sb,\n .tablet-body-4-sb,\n .tablet-body-5-sb,\n .tablet-interactive-1-sb,\n .tablet-interactive-2-sb,\n .tablet-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 1152px) and (max-width: 1365px) {\n .desktop-heading-1,\n .desktop-heading-1-sb,\n .desktop-heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .desktop-heading-2,\n .desktop-heading-2-sb,\n .desktop-heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .desktop-heading-3,\n .desktop-heading-3-sb,\n .desktop-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .desktop-heading-4,\n .desktop-heading-4-sb,\n .desktop-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .desktop-body-1,\n .desktop-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .desktop-body-2,\n .desktop-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-body-3,\n .desktop-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-body-4,\n .desktop-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .desktop-body-5,\n .desktop-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .desktop-interactive-1,\n .desktop-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .desktop-interactive-2,\n .desktop-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .desktop-interactive-3,\n .desktop-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .desktop-section-title-1 {\n font: var(--section-title-1);\n }\n\n .desktop-section-title-2 {\n font: var(--section-title-2);\n }\n\n .desktop-section-title-3 {\n font: var(--section-title-3);\n }\n\n .desktop-section-title-4 {\n font: var(--section-title-4);\n }\n\n .desktop-section-title-5 {\n font: var(--section-title-5);\n }\n\n .desktop-section-title-6 {\n font: var(--section-title-6);\n }\n\n .desktop-heading-1-lt,\n .desktop-heading-2-lt,\n .desktop-heading-3-lt,\n .desktop-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .desktop-heading-1-sb,\n .desktop-heading-2-sb,\n .desktop-heading-3-sb,\n .desktop-heading-4-sb,\n .desktop-body-1-sb,\n .desktop-body-2-sb,\n .desktop-body-3-sb,\n .desktop-body-4-sb,\n .desktop-body-5-sb,\n .desktop-interactive-1-sb,\n .desktop-interactive-2-sb,\n .desktop-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n@media (min-width: 1366px) {\n .wide-heading-1,\n .wide-heading-1-sb,\n .wide-heading-1-lt {\n font-size: var(--font-size-8);\n font-weight: var(--font-rg);\n line-height: 1.25;\n }\n\n .wide-heading-2,\n .wide-heading-2-sb,\n .wide-heading-2-lt {\n font-size: var(--font-size-7);\n font-weight: var(--font-rg);\n line-height: 1.28;\n }\n\n .wide-heading-3,\n .wide-heading-3-sb,\n .wide-heading-3-lt {\n font-size: var(--font-size-6);\n font-weight: var(--font-rg);\n line-height: 1.333;\n }\n\n .wide-heading-4,\n .wide-heading-4-sb,\n .wide-heading-4-lt {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .wide-body-1,\n .wide-body-1-sb {\n font-size: var(--font-size-5);\n font-weight: var(--font-rg);\n line-height: 1.4;\n }\n\n .wide-body-2,\n .wide-body-2-sb {\n font-size: var(--font-size-4);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-body-3,\n .wide-body-3-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-body-4,\n .wide-body-4-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .wide-body-5,\n .wide-body-5-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .wide-interactive-1,\n .wide-interactive-1-sb {\n font-size: var(--font-size-3);\n font-weight: var(--font-rg);\n line-height: 1.5;\n }\n\n .wide-interactive-2,\n .wide-interactive-2-sb {\n font-size: var(--font-size-2);\n font-weight: var(--font-rg);\n letter-spacing: 0.16px;\n line-height: 1.4;\n }\n\n .wide-interactive-3,\n .wide-interactive-3-sb {\n font-size: var(--font-size-1);\n font-weight: var(--font-rg);\n letter-spacing: 0.32px;\n line-height: 1.333;\n }\n\n .wide-section-title-1 {\n font: var(--section-title-1);\n }\n\n .wide-section-title-2 {\n font: var(--section-title-2);\n }\n\n .wide-section-title-3 {\n font: var(--section-title-3);\n }\n\n .wide-section-title-4 {\n font: var(--section-title-4);\n }\n\n .wide-section-title-5 {\n font: var(--section-title-5);\n }\n\n .wide-section-title-6 {\n font: var(--section-title-6);\n }\n\n .wide-heading-1-lt,\n .wide-heading-2-lt,\n .wide-heading-3-lt,\n .wide-heading-4-lt {\n font-weight: var(--font-lt);\n }\n\n .wide-heading-1-sb,\n .wide-heading-2-sb,\n .wide-heading-3-sb,\n .wide-heading-4-sb,\n .wide-body-1-sb,\n .wide-body-2-sb,\n .wide-body-3-sb,\n .wide-body-4-sb,\n .wide-body-5-sb,\n .wide-interactive-1-sb,\n .wide-interactive-2-sb,\n .wide-interactive-3-sb {\n font-weight: var(--font-sb);\n }\n}\n\n/* font-weight variants */\n.heading-1-lt,\n.heading-2-lt,\n.heading-3-lt,\n.heading-4-lt {\n font-weight: var(--font-lt);\n}\n\n.heading-1-sb,\n.heading-2-sb,\n.heading-3-sb,\n.heading-4-sb,\n.body-1-sb,\n.body-2-sb,\n.body-3-sb,\n.body-4-sb,\n.body-5-sb,\n.interactive-1-sb,\n.interactive-2-sb,\n.interactive-3-sb,\n.helper-sb {\n font-weight: var(--font-sb);\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Method,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {ColorPickerPalette, KeyboardCode, PopoverPosition} from \"../../beans\";\nimport {ZColorPickerCustomEvent, ZToolCustomEvent, ZTooltipCustomEvent} from \"../../components\";\nimport {IconName} from \"../../constants/iconset\";\nimport {containsElement} from \"../../utils/utils\";\n\n/**\n * ZTool component. Can display an icon, an optional tooltip (mainly for hints about the tool's functionality), and can contain a nested `z-toolbar` as a submenu that opens on click.\n * @slot - Optional slot for nested content (e.g., a secondary `z-toolbar`) that appears when the tool is open/clicked.\n */\n@Component({\n tag: \"z-tool\",\n styleUrls: [\"styles.css\", \"../../tokens/typography.css\"],\n shadow: true,\n})\nexport class ZTool implements ComponentInterface {\n @Element() hostElement: HTMLZToolElement;\n\n /** Tool icon */\n @Prop()\n icon: IconName;\n\n /** Text displayed inside the tooltip. */\n @Prop()\n tooltip?: string;\n\n /** Preferred tooltip position. Defaults to true. */\n @Prop()\n tooltipPosition: PopoverPosition = PopoverPosition.TOP;\n\n /** Accessible label for the tool trigger. Falls back to tooltip content. */\n @Prop()\n htmlAriaLabel?: string;\n\n /** Visual active state. */\n @Prop({reflect: true})\n active = false;\n\n /** Disabled state. */\n @Prop({reflect: true})\n disabled = false;\n\n /** Open state. */\n @Prop({reflect: true, mutable: true})\n open = false;\n\n /**\n * Color to use to fill the icon's color indicator, if it has one.\n * Can be any valid value for the `fill` svg attribute.\n * The value of this prop is passed down to the `z-icon` component inside the tool.\n *\n * If `z-color-picker` component is used inside the tool's slot, its `colorSelected` event is listened\n * to automatically update `indicatorColor` and change the color of the icon indicator accordingly.\n */\n @Prop({mutable: true})\n indicatorColor?: string;\n\n @State()\n tooltipOpen = false;\n\n @State()\n hasSlottedContent = false;\n\n @State()\n isMobile = false;\n\n /** Indicates if the tool has nested open tools. Used to decide whether to auto-close the submenu. */\n @State()\n hasNestedOpenTools = false;\n\n /** Emitted when the open state changes. */\n @Event()\n toggleSubmenu: EventEmitter;\n\n /** Emitted when the tooltip open state changes. */\n @Event()\n toggleTooltip: EventEmitter;\n\n private buttonRef?: HTMLButtonElement;\n\n private iconRef?: HTMLElement;\n\n private tooltipRef?: HTMLZTooltipElement;\n\n private hoverDelay?: ReturnType<typeof setTimeout>;\n\n /** Indicates if the tool is nested inside another tool. */\n private isNested = false;\n\n /** Main `z-toolbar` ancestor element, meant to be the top-level toolbar not nested inside another tool. */\n private mainToolbar?: HTMLZToolbarElement;\n\n /** Media query list for detecting mobile view. */\n private mql?: MediaQueryList;\n\n /** Listener for changes in the mobile view media query. */\n private onMobileViewChange?: (e: MediaQueryListEvent) => void;\n\n /**\n * Opens the tooltip with a delay when the button is hovered or focused, and if the tool's content isn't already visible.\n */\n private handleTooltipOpen = (ev: FocusEvent | MouseEvent): void => {\n if (!this.tooltip || this.open || !this.buttonRef.contains(ev.target as Node)) {\n return;\n }\n\n clearTimeout(this.hoverDelay);\n this.hoverDelay = setTimeout(() => {\n this.tooltipOpen = true;\n }, 1000);\n };\n\n /**\n * Closes the tooltip immediately on button blur or when the mouse leaves the button or the tooltip, clearing any pending hover delay.\n */\n private handleTooltipClose = (ev: FocusEvent | MouseEvent): void => {\n if (!this.tooltip || (ev.relatedTarget as HTMLElement)?.closest(\"z-tooltip\") === this.tooltipRef) {\n return;\n }\n\n clearTimeout(this.hoverDelay);\n this.tooltipOpen = false;\n };\n\n /**\n * Handles click events on the tool's button element.\n * If the tool has slotted content, toggles the open state and focuses the active/selected item in the nested toolbar or color picker,\n * or the first item if no active/selected item is found.\n */\n private handleClick = (): void => {\n if (this.disabled || !this.hasSlottedContent) {\n return;\n }\n\n this.open = !this.open;\n if (this.open) {\n const colorPicker = this.hostElement.querySelector(\":scope > z-color-picker\") as HTMLZColorPickerElement | null;\n if (colorPicker) {\n colorPicker.setFocus();\n\n return;\n }\n\n // Focus the first active tool in the nested toolbar, or the first enabled if no active tool is found.\n const firstActiveOrEnabledNestedTool = (this.hostElement.querySelector(\n \":scope > z-toolbar z-tool[active]:not(:disabled)\"\n ) || this.hostElement.querySelector(\":scope > z-toolbar z-tool:not(:disabled)\")) as HTMLZToolElement | null;\n\n firstActiveOrEnabledNestedTool?.setFocus();\n }\n };\n\n /**\n * Handles `openChange` events from the tooltip popover to keep the `tooltipOpen` state in sync, but only if the event is coming from this tool's tooltip (and not from nested tools' tooltips).\n */\n private onTooltipOpenChange = (event: ZTooltipCustomEvent<{open: boolean}>): void => {\n if ((event.target as HTMLElement) === this.tooltipRef) {\n return;\n }\n\n this.tooltipOpen = event.detail.open;\n };\n\n @Watch(\"open\")\n handleOpenChange(): void {\n this.toggleSubmenu.emit(this.open);\n }\n\n @Watch(\"tooltipOpen\")\n handleTooltipOpenChange(): void {\n this.toggleTooltip.emit(this.tooltipOpen);\n }\n\n /**\n * Handle `ESC` and `shift+TAB` to close the submenu and move focus back to the button.\n */\n @Listen(\"keydown\")\n handleKeyDown(event: KeyboardEvent): void {\n if (!this.open || this.hasNestedOpenTools) {\n return;\n }\n\n switch (event.key) {\n case KeyboardCode.ESC:\n event.stopPropagation();\n this.open = false;\n this.setFocus();\n break;\n case KeyboardCode.TAB:\n if (event.shiftKey && (event.target as Element).closest(\"z-tool:not(:scope)\") === this.hostElement) {\n this.open = false;\n }\n break;\n }\n }\n\n /**\n * Close the popover on clicks outside the component, only if there are no nested open tools.\n * In that case any outside click should close the nested submenu(s) first.\n */\n @Listen(\"click\", {target: \"body\"})\n onOutsideClick(event: MouseEvent): void {\n const target = event.composedPath()[0] as HTMLElement;\n if (!this.open || containsElement(this.hostElement, target) || this.hasNestedOpenTools) {\n return;\n }\n\n this.open = false;\n }\n\n @Listen(\"toggleSubmenu\")\n onNestedToolToggle(ev: ZToolCustomEvent<boolean>): void {\n if (ev.target === this.hostElement) {\n return;\n }\n\n if (ev.detail === true) {\n this.hasNestedOpenTools = true;\n\n return;\n }\n\n this.hasNestedOpenTools = Array.from(this.hostElement.querySelectorAll(\"z-tool\")).some((tool) => tool.open);\n }\n\n /**\n * Handles the `colorSelected` event from a nested `z-color-picker` component.\n * Updates the `indicatorColor` and closes the tool's popover.\n */\n @Listen(\"colorSelected\")\n handleColorSelected(event: ZColorPickerCustomEvent<ColorPickerPalette>): void {\n if (!Array.from(this.hostElement.children).includes(event.target as Element)) {\n return;\n }\n\n this.indicatorColor = event.detail;\n this.open = false;\n this.setFocus();\n }\n\n /**\n * Close the submenu when focus moves outside the tool.\n */\n @Listen(\"focusin\", {target: \"body\", passive: true})\n handleExternalFocusin(ev: FocusEvent): void {\n const target = ev.target as Node;\n if (!containsElement(this.hostElement, target)) {\n this.open = false;\n }\n }\n\n /** Focuses the tool's button element. */\n @Method()\n async setFocus(): Promise<void> {\n if (this.disabled) {\n return;\n }\n\n setTimeout(() => {\n this.buttonRef?.focus();\n }, 50);\n }\n\n /** Sets the tab index of the tool's internal button element. */\n @Method()\n async setTabIndex(value: number): Promise<void> {\n if (!this.buttonRef) {\n return;\n }\n\n this.buttonRef.tabIndex = this.disabled ? -1 : value;\n }\n\n /** Closes the tooltip. */\n @Method()\n async closeTooltip(): Promise<void> {\n clearTimeout(this.hoverDelay);\n this.tooltipOpen = false;\n }\n\n componentWillLoad(): void {\n this.hasSlottedContent = this.hostElement.children.length > 0;\n this.isNested = !!this.hostElement.closest(\"z-tool:not(:scope)\");\n this.mainToolbar = this.hostElement.closest(\"z-toolbar:not(z-toolbar z-toolbar)\");\n this.hasNestedOpenTools = !!this.hostElement.querySelector(\"z-tool[open]\");\n\n this.mql = matchMedia(\"(max-width: 767px)\");\n this.onMobileViewChange = (e: MediaQueryListEvent) => (this.isMobile = e.matches);\n this.mql.addEventListener(\"change\", this.onMobileViewChange);\n this.isMobile = this.mql.matches;\n }\n\n disconnectedCallback(): void {\n clearTimeout(this.hoverDelay);\n this.mql?.removeEventListener(\"change\", this.onMobileViewChange);\n }\n\n render(): HTMLZToolElement {\n return (\n <Host class={{\"z-tool-tooltip-open\": this.tooltipOpen}}>\n <button\n class=\"z-tool\"\n type=\"button\"\n ref={(el) => (this.buttonRef = el)}\n aria-pressed={this.hasSlottedContent ? undefined : this.active ? \"true\" : \"false\"}\n aria-expanded={this.hasSlottedContent ? (this.open ? \"true\" : \"false\") : undefined}\n aria-haspopup={this.hasSlottedContent ? \"true\" : undefined}\n aria-label={this.htmlAriaLabel || this.tooltip || undefined}\n disabled={this.disabled}\n onClick={this.handleClick}\n onMouseEnter={this.handleTooltipOpen}\n onMouseLeave={this.handleTooltipClose}\n onFocus={this.handleTooltipOpen}\n onBlur={this.handleTooltipClose}\n >\n <z-icon\n ref={(el) => (this.iconRef = el)}\n name={this.icon}\n indicatorColor={this.indicatorColor}\n ></z-icon>\n </button>\n {this.tooltip && (\n <z-tooltip\n class=\"z-tool-tooltip\"\n ref={(el) => (this.tooltipRef = el)}\n bindTo={this.iconRef}\n open={this.tooltipOpen && !this.open}\n position={this.isNested ? PopoverPosition.BOTTOM : this.tooltipPosition}\n dark\n onMouseLeave={this.handleTooltipClose}\n onBlur={this.handleTooltipClose}\n onOpenChange={this.onTooltipOpenChange}\n >\n <span class=\"body-4\">{this.tooltip}</span>\n </z-tooltip>\n )}\n {this.hasSlottedContent && (\n <z-popover\n class=\"z-tool-submenu\"\n open={this.open}\n bindTo={this.isMobile && this.mainToolbar ? this.mainToolbar : this.hostElement}\n center\n /* disable auto-close to prevent unwanted close behaviors on mobile,\n when the bound element is the main toolbar */\n closable={false}\n position={this.isMobile ? PopoverPosition.TOP : PopoverPosition.BOTTOM}\n >\n <slot></slot>\n </z-popover>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,c as e,h as s,H as i,d as o}from"./p-BEHxru6n.js";import{g as a}from"./p-B3nR3-Jw.js";const n=()=>`:host{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;font-family:var(--font-family-sans)}:host,::slotted(*),*{box-sizing:border-box}::slotted(a){text-decoration:none}::slotted(*){color:var(--color-default-text);font-family:var(--font-family-sans);font-weight:var(--font-rg)}.label{display:flex;width:100%;align-items:center;padding:var(--space-unit) 0;border:0;border-bottom:var(--border-size-small) solid var(--color-surface03);margin:0;background:transparent;border-radius:0;cursor:pointer;text-align:left}:host(:last-child:not([open])) .label{border-bottom:none}:host(:is([active],[open])) .label,.label:focus:focus-visible,.label:hover{border-color:var(--color-primary01)}.label:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}:host(:is([active],[open])) .label ::slotted(*),.label:focus:focus-visible ::slotted(*),.label:hover ::slotted(*){font-weight:var(--font-bd)}::slotted([data-text]){display:inline-flex;flex-direction:column}::slotted([data-text])::after{overflow:hidden;height:0;content:attr(data-text);content:attr(data-text) / "";font-weight:var(--font-bd);pointer-events:none;user-select:none;visibility:hidden}@media speech{::slotted([data-text])::after{display:none}}.label ::slotted(*){width:100%;margin:0;font-size:var(--font-size-3);line-height:1.5}.label z-icon{margin-left:calc(var(--space-unit) * 4);fill:var(--color-default-icon)}.items{display:flex;width:100%;flex-direction:column;padding:calc(var(--space-unit) / 2);padding-bottom:calc(var(--space-unit) * 1.5)}.items[hidden]{display:none}::slotted([slot="section"]){display:inline-flex;padding:calc(var(--space-unit) / 2);margin:0;font-size:var(--font-size-1);line-height:1.333;outline:none}::slotted([slot="section"]:last-of-type){border:none}::slotted([slot="section"]:focus:focus-visible){box-shadow:var(--shadow-focus-primary);color:var(--color-primary01)}::slotted([slot="section"]:hover),::slotted([slot="section"]:focus:focus-visible),::slotted([slot="section"]:active),::slotted([slot="section"][active]),::slotted([slot="section"][data-active]){color:var(--color-primary01);font-weight:var(--font-bd)}`;const l=class{get focusableItem(){return this.items.find((({tabIndex:t})=>t===0))}toggle(){if(!this.hasItems){return}this.open=!this.open}setItemsA11yAttrs(){if(!this.hasItems){return}this.items.forEach((t=>{t.setAttribute("role","menuitem");t.tabIndex=-1}))}onItemsChange(){this.items=Array.from(this.host.querySelectorAll('[slot="section"]'));this.hasItems=this.items.length>0;this.setItemsA11yAttrs()}onLabelSlotChange(t){const e=t.target.assignedElements()[0];e.dataset.text=e===null||e===void 0?void 0:e.textContent}onLabelClick(){this.toggle();this.setFocus()}onLabelKeydown(t){if(t.key===a.ENTER||t.key===a.SPACE){t.preventDefault();t.stopPropagation();this.toggle();if(this.open){this.focustFirstItem()}}}moveFocus(t,e){t.tabIndex=0;setTimeout((()=>{t.focus()}),100);if(e){e.tabIndex=-1}}focustFirstItem(){this.moveFocus(this.items[0])}async focusLastItem(){this.moveFocus(this.items[this.items.length-1])}async setFocus(){this.htmlTabindex=0;setTimeout((()=>{this.label.focus()}),100)}onOpenChange(){if(!this.open){this.setItemsA11yAttrs();this.closed.emit()}else{this.opened.emit()}}onTabindexChange(){if(!this.label){return}this.label.tabIndex=this.htmlTabindex}onItemsKeydown(t){switch(t.key){case a.ESC:case a.ARROW_LEFT:if(!this.open){break}t.preventDefault();t.stopPropagation();this.moveFocus(this.label,this.focusableItem);this.open=false;break;case a.ARROW_RIGHT:if(this.open){break}t.preventDefault();t.stopPropagation();this.open=true;this.focustFirstItem();break;case a.ARROW_DOWN:{if(!this.open){break}if(document.activeElement===this.host){t.preventDefault();t.stopPropagation();this.focustFirstItem();break}const e=this.items.indexOf(this.focusableItem);const s=this.items[e+1];if(s){t.preventDefault();t.stopPropagation();this.moveFocus(s,this.focusableItem)}else{this.htmlTabindex=0;this.focusableItem.tabIndex=-1}break}case a.ARROW_UP:{if(!this.open||document.activeElement===this.host){break}const e=this.items.indexOf(this.focusableItem);const s=this.items[e-1];t.preventDefault();t.stopPropagation();if(s){this.moveFocus(s,this.focusableItem)}else{this.focusableItem.tabIndex=-1;this.setFocus()}break}}}constructor(s){t(this,s);this.opened=e(this,"opened",7);this.closed=e(this,"closed",7);this.htmlTabindex=-1;this.toggle=this.toggle.bind(this);this.onItemsChange=this.onItemsChange.bind(this);this.onLabelSlotChange=this.onLabelSlotChange.bind(this);this.onLabelClick=this.onLabelClick.bind(this);this.onLabelKeydown=this.onLabelKeydown.bind(this);this.onItemsKeydown=this.onItemsKeydown.bind(this)}connectedCallback(){this.onItemsChange()}render(){return s(i,{key:"fff56aa316372fc2df80738c86be52be59e4deb9",open:this.open},s("button",{key:"89630a6dc1985a9236dd7f7d0fdd2b5e5b8bd580",ref:t=>this.label=t,class:"label","aria-haspopup":`${!!this.hasItems}`,"aria-expanded":`${!!this.open}`,role:"menuitem",tabindex:this.htmlTabindex,onClick:this.onLabelClick,onKeyDown:this.onLabelKeydown},s("slot",{key:"5b131d904e2154fb8c852a734bcc8dd9b421da65",onSlotchange:this.onLabelSlotChange}),this.hasItems&&s("z-icon",{key:"0463aa91e57fa4766c0a11fd3e329752fd770240",name:this.open?"chevron-up":"chevron-down"})),s("div",{key:"f919168a46d3d3ebd7c12fce97d84f029ee938bc",class:"items",role:"menu",hidden:!this.open},s("slot",{key:"e21f494480c18514ff4081b2aa75a8f856f74cc6",name:"section",onSlotchange:this.onItemsChange})))}get host(){return o(this)}static get watchers(){return{open:[{onOpenChange:0}],htmlTabindex:[{onTabindexChange:0}]}}};l.style=n();export{l as z_menu_section};
2
+ //# sourceMappingURL=p-3b3e1ffb.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMenuSection","focusableItem","this","items","find","tabIndex","toggle","hasItems","open","setItemsA11yAttrs","forEach","item","setAttribute","onItemsChange","Array","from","host","querySelectorAll","length","onLabelSlotChange","ev","labelElement","target","assignedElements","dataset","text","textContent","onLabelClick","setFocus","onLabelKeydown","key","KeyboardCode","ENTER","SPACE","preventDefault","stopPropagation","focustFirstItem","moveFocus","receiver","current","setTimeout","focus","focusLastItem","htmlTabindex","label","onOpenChange","closed","emit","opened","onTabindexChange","onItemsKeydown","ESC","ARROW_LEFT","ARROW_RIGHT","ARROW_DOWN","document","activeElement","currentIndex","indexOf","ARROW_UP","constructor","hostRef","bind","connectedCallback","render","h","Host","ref","el","class","role","tabindex","onClick","onKeyDown","onSlotchange","name","hidden"],"sources":["src/components/z-menu-section/styles.css?tag=z-menu-section&encapsulation=shadow","src/components/z-menu-section/index.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: center;\n padding: 0;\n font-family: var(--font-family-sans);\n}\n\n:host,\n::slotted(*),\n* {\n box-sizing: border-box;\n}\n\n::slotted(a) {\n text-decoration: none;\n}\n\n::slotted(*) {\n color: var(--color-default-text);\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n.label {\n display: flex;\n width: 100%;\n align-items: center;\n padding: var(--space-unit) 0;\n border: 0;\n border-bottom: var(--border-size-small) solid var(--color-surface03);\n margin: 0;\n background: transparent;\n border-radius: 0;\n cursor: pointer;\n text-align: left;\n}\n\n:host(:last-child:not([open])) .label {\n border-bottom: none;\n}\n\n:host(:is([active], [open])) .label,\n.label:focus:focus-visible,\n.label:hover {\n border-color: var(--color-primary01);\n}\n\n.label:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n:host(:is([active], [open])) .label ::slotted(*),\n.label:focus:focus-visible ::slotted(*),\n.label:hover ::slotted(*) {\n font-weight: var(--font-bd);\n}\n\n::slotted([data-text]) {\n display: inline-flex;\n flex-direction: column;\n}\n\n/* Trick to prevent layout shifts on font-weight changes.\nThe trick is to put an hidden copy of the text already set to bold,\nso the needed space is correctly calculated before any hover/active state changes the\nfont-weight of the real text.\nThe hidden text has an height of 0px so it can expand the width without changing the height\nwhen placed below the real text using `flex-direction: column`. */\n::slotted([data-text])::after {\n overflow: hidden;\n height: 0;\n content: attr(data-text);\n content: attr(data-text) / \"\";\n font-weight: var(--font-bd);\n pointer-events: none;\n user-select: none;\n visibility: hidden;\n}\n\n@media speech {\n ::slotted([data-text])::after {\n display: none;\n }\n}\n\n.label ::slotted(*) {\n width: 100%;\n margin: 0;\n font-size: var(--font-size-3);\n line-height: 1.5;\n}\n\n.label z-icon {\n margin-left: calc(var(--space-unit) * 4);\n fill: var(--color-default-icon);\n}\n\n.items {\n display: flex;\n width: 100%;\n flex-direction: column;\n padding: calc(var(--space-unit) / 2);\n padding-bottom: calc(var(--space-unit) * 1.5);\n}\n\n.items[hidden] {\n display: none;\n}\n\n::slotted([slot=\"section\"]) {\n display: inline-flex;\n padding: calc(var(--space-unit) / 2);\n margin: 0;\n font-size: var(--font-size-1);\n line-height: 1.333;\n outline: none;\n}\n\n::slotted([slot=\"section\"]:last-of-type) {\n border: none;\n}\n\n::slotted([slot=\"section\"]:focus:focus-visible) {\n box-shadow: var(--shadow-focus-primary);\n color: var(--color-primary01);\n}\n\n::slotted([slot=\"section\"]:hover),\n::slotted([slot=\"section\"]:focus:focus-visible),\n::slotted([slot=\"section\"]:active),\n::slotted([slot=\"section\"][active]),\n::slotted([slot=\"section\"][data-active]) {\n color: var(--color-primary01);\n font-weight: var(--font-bd);\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Method,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {KeyboardCode} from \"../../beans\";\n\n/**\n * A component to create submenus inside the ZMenu.\n * @slot - Label of the menu section.\n * @slot section - Single entry of the menu section. Set the same slot name to different elements to put many of them. Add the `data-active` attribute to a slotted element to highlight it (`active` also works but `data-active` is preferable).\n */\n@Component({\n tag: \"z-menu-section\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMenuSection implements ComponentInterface {\n @Element() host: HTMLZMenuSectionElement;\n\n /** Active state */\n @Prop({reflect: true})\n active?: boolean;\n\n /**\n * Tabindex value to set on the label button.\n * Useful to manage keyboard navigation focus with roving tabindex handled by this component's parent (usually ZMenu).\n */\n @Prop()\n htmlTabindex = -1;\n\n /** The opening state of the section. */\n @Prop({mutable: true})\n open: boolean;\n\n @State()\n hasItems: boolean;\n\n @State()\n items: HTMLElement[];\n\n /** The section has been opened. */\n @Event()\n opened: EventEmitter;\n\n /** The section has been closed. */\n @Event()\n closed: EventEmitter;\n\n private label: HTMLButtonElement;\n\n private get focusableItem(): HTMLElement {\n return this.items.find(({tabIndex}) => tabIndex === 0);\n }\n\n private toggle(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.open = !this.open;\n }\n\n private setItemsA11yAttrs(): void {\n if (!this.hasItems) {\n return;\n }\n\n this.items.forEach((item) => {\n item.setAttribute(\"role\", \"menuitem\");\n item.tabIndex = -1;\n });\n }\n\n private onItemsChange(): void {\n this.items = Array.from(this.host.querySelectorAll('[slot=\"section\"]')) as HTMLElement[];\n this.hasItems = this.items.length > 0;\n this.setItemsA11yAttrs();\n }\n\n /**\n * Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.\n * @param ev Slotchange event\n */\n private onLabelSlotChange(ev: Event): void {\n const labelElement = (ev.target as HTMLSlotElement).assignedElements()[0] as HTMLElement;\n labelElement.dataset.text = labelElement?.textContent;\n }\n\n private onLabelClick(): void {\n this.toggle();\n this.setFocus();\n }\n\n private onLabelKeydown(ev: KeyboardEvent): void {\n if (ev.key === KeyboardCode.ENTER || ev.key === KeyboardCode.SPACE) {\n ev.preventDefault();\n ev.stopPropagation();\n this.toggle();\n if (this.open) {\n this.focustFirstItem();\n }\n }\n }\n\n /**\n * Move focus and adjust the tabindex value of `receiver` and `current` elements,\n * setting -1 to the `current` and 0 to the `receiver`, then focus the `receiver` element.\n */\n private moveFocus(receiver: HTMLElement, current?: HTMLElement): void {\n receiver.tabIndex = 0;\n setTimeout(() => {\n receiver.focus();\n }, 100);\n if (current) {\n current.tabIndex = -1;\n }\n }\n\n private focustFirstItem(): void {\n this.moveFocus(this.items[0]);\n }\n\n /** Focus the last item. */\n @Method()\n async focusLastItem(): Promise<void> {\n this.moveFocus(this.items[this.items.length - 1]);\n }\n\n /** Set tabindex of the label to 0, then focus it. */\n @Method()\n async setFocus(): Promise<void> {\n this.htmlTabindex = 0;\n setTimeout(() => {\n this.label.focus();\n }, 100);\n }\n\n @Watch(\"open\")\n onOpenChange(): void {\n if (!this.open) {\n this.setItemsA11yAttrs();\n this.closed.emit();\n } else {\n this.opened.emit();\n }\n }\n\n @Watch(\"htmlTabindex\")\n onTabindexChange(): void {\n if (!this.label) {\n return;\n }\n\n this.label.tabIndex = this.htmlTabindex;\n }\n\n @Listen(\"keydown\")\n private onItemsKeydown(ev: KeyboardEvent): void {\n switch (ev.key) {\n case KeyboardCode.ESC:\n case KeyboardCode.ARROW_LEFT:\n if (!this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(this.label, this.focusableItem);\n this.open = false;\n break;\n case KeyboardCode.ARROW_RIGHT:\n if (this.open) {\n break;\n }\n ev.preventDefault();\n ev.stopPropagation();\n this.open = true;\n this.focustFirstItem();\n break;\n case KeyboardCode.ARROW_DOWN: {\n if (!this.open) {\n break;\n }\n if (document.activeElement === this.host) {\n ev.preventDefault();\n ev.stopPropagation();\n this.focustFirstItem();\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex + 1];\n if (receiver) {\n ev.preventDefault();\n ev.stopPropagation();\n this.moveFocus(receiver, this.focusableItem);\n } else {\n this.htmlTabindex = 0;\n this.focusableItem.tabIndex = -1;\n }\n break;\n }\n case KeyboardCode.ARROW_UP: {\n if (!this.open || document.activeElement === this.host) {\n break;\n }\n const currentIndex = this.items.indexOf(this.focusableItem);\n const receiver = this.items[currentIndex - 1];\n ev.preventDefault();\n ev.stopPropagation();\n if (receiver) {\n this.moveFocus(receiver, this.focusableItem);\n } else {\n // since there isn't a previous item to focus, give the focus to the label element\n this.focusableItem.tabIndex = -1;\n this.setFocus();\n }\n break;\n }\n }\n }\n\n constructor() {\n this.toggle = this.toggle.bind(this);\n this.onItemsChange = this.onItemsChange.bind(this);\n this.onLabelSlotChange = this.onLabelSlotChange.bind(this);\n this.onLabelClick = this.onLabelClick.bind(this);\n this.onLabelKeydown = this.onLabelKeydown.bind(this);\n this.onItemsKeydown = this.onItemsKeydown.bind(this);\n }\n\n connectedCallback(): void {\n this.onItemsChange();\n }\n\n render(): HTMLZMenuSectionElement {\n return (\n <Host open={this.open}>\n <button\n ref={(el) => (this.label = el)}\n class=\"label\"\n aria-haspopup={`${!!this.hasItems}`}\n aria-expanded={`${!!this.open}`}\n role=\"menuitem\"\n tabindex={this.htmlTabindex}\n onClick={this.onLabelClick}\n onKeyDown={this.onLabelKeydown}\n >\n <slot onSlotchange={this.onLabelSlotChange} />\n {this.hasItems && <z-icon name={this.open ? \"chevron-up\" : \"chevron-down\"} />}\n </button>\n <div\n class=\"items\"\n role=\"menu\"\n hidden={!this.open}\n >\n <slot\n name=\"section\"\n onSlotchange={this.onItemsChange}\n />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as a,h as t,H as i,d as r}from"./p-BEHxru6n.js";import{e as n,B as h,u as o,v as s}from"./p-B3nR3-Jw.js";const p=()=>`:host{--app-header-typography-1-size:24px;--app-header-typography-2-size:28px;--app-header-typography-3-size:32px;--app-header-typography-4-size:36px;--app-header-typography-5-size:42px;--app-header-typography-6-size:48px;--app-header-typography-7-size:54px;--app-header-typography-8-size:60px;--app-header-typography-9-size:68px;--app-header-typography-10-size:76px;--app-header-typography-11-size:84px;--app-header-typography-12-size:92px;--app-header-typography-1-lineheight:1.33;--app-header-typography-2-lineheight:1.29;--app-header-typography-3-lineheight:1.25;--app-header-typography-4-lineheight:1.24;--app-header-typography-5-lineheight:1.24;--app-header-typography-6-lineheight:1.25;--app-header-typography-7-lineheight:1.2;--app-header-typography-8-lineheight:1.26;--app-header-typography-9-lineheight:1.24;--app-header-typography-10-lineheight:1.26;--app-header-typography-11-lineheight:1.2;--app-header-typography-12-lineheight:1.2;--app-header-typography-1-tracking:calc(-0.2 / 1em);--app-header-typography-2-tracking:calc(-0.4 / 1em);--app-header-typography-3-tracking:calc(-0.6 / 1em);--app-header-typography-4-tracking:calc(-0.8 / 1em);--app-header-typography-5-tracking:calc(-1 / 1em);--app-header-typography-6-tracking:calc(-1.2 / 1em);--app-header-typography-7-tracking:calc(-1.4 / 1em);--app-header-typography-8-tracking:calc(-1.6 / 1em);--app-header-typography-9-tracking:calc(-1.8 / 1em);--app-header-typography-10-tracking:calc(-2 / 1em);--app-header-typography-11-tracking:calc(-2.2 / 1em);--app-header-typography-12-tracking:calc(-2.4 / 1em);--app-header-content-max-width:100%;--app-header-height:auto;--app-header-top-offset:48px;--app-header-drawer-trigger-size:calc(var(--space-unit) * 4);--app-header-bg:var(--color-surface01);--app-header-stucked-bg:var(--color-surface01);--app-header-text-color:var(--color-default-text);--app-header-title-font-size:var(--app-header-typography-3-size);--app-header-title-lineheight:var(--app-header-typography-3-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-3-tracking);--app-header-stucked-text-color:var(--color-default-text);position:relative;display:block;height:var(--app-header-height);color:var(--app-header-text-color)}:host,*{box-sizing:border-box}.heading-panel{position:relative;display:flex;width:100%;max-width:var(--app-header-content-max-width);flex-direction:column;flex-grow:0;flex-shrink:0;align-items:baseline;padding:var(--grid-margin);margin:0 auto;background:var(--app-header-bg);gap:calc(var(--space-unit) * 2) calc(var(--space-unit) * 5)}.hero-container+.heading-panel{background:transparent}:host(:empty) .heading-panel{padding:0}.heading-container{position:relative;z-index:1;display:flex;width:100%;max-width:100%;flex:1 auto;flex-direction:column;justify-content:flex-start}.heading-title{display:flex;max-width:100%;flex-direction:row;align-items:flex-start;column-gap:calc(var(--space-unit) * 2)}::slotted([slot="title"]),.heading-stuck .heading-title>*,::slotted([slot="stucked-title"]){margin:0;font-family:"IBM Plex Serif", serif;font-weight:var(--font-bd)}::slotted([slot="title"]){font-size:var(--app-header-title-font-size);letter-spacing:var(--app-header-title-letter-spacing);line-height:var(--app-header-title-lineheight)}.heading-stuck .heading-title>*,::slotted([slot="stucked-title"]){font-size:var(--app-header-typography-3-size);letter-spacing:var(--app-header-typography-3-tracking);line-height:var(--app-header-typography-3-lineheight)}:host(:not([menu-length="0"])) .heading-subtitle{padding-left:calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2))}::slotted([slot="top-subtitle"]),::slotted([slot="subtitle"]){margin:0;font-family:var(--font-family-sans);font-size:20px;font-style:italic;line-height:26px}::slotted([slot="subtitle"]){font-weight:500}::slotted([slot="top-subtitle"]){font-weight:400}.menu-container{display:flex;width:100%;flex:1 auto;flex-flow:row wrap}:host([menu-length="0"]:not([enable-search])) .menu-container,.menu-container:empty{display:none}.menu-container ::slotted([open]){position:relative;z-index:3}z-searchbar{z-index:0;display:flex;width:auto;min-width:calc(var(--space-unit) * 32);flex:1 auto;align-items:center;margin-left:auto}.heading-stuck{position:fixed;z-index:20;top:var(--app-header-top-offset);left:0;width:100%;max-width:100%;animation:slide-stuck-heading-in 250ms ease-out;background:var(--app-header-stucked-bg);box-shadow:var(--shadow-2);color:var(--app-header-stucked-text-color)}.heading-stuck-content{display:flex;max-width:var(--app-header-content-max-width);align-items:center;padding:var(--space-unit) var(--grid-margin);margin:0 auto;column-gap:calc(var(--space-unit) * 2)}.heading-stuck .heading-title{overflow:hidden}.heading-stuck .heading-title>*,.heading-stuck .heading-title ::slotted([slot="stucked-title"]){display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.heading-stuck-content z-button{margin-left:auto}.drawer-trigger{padding:0;border:0;margin:0;appearance:none;background:none;border-radius:0;color:inherit;cursor:pointer}.drawer-trigger z-icon{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);fill:currentcolor}.heading-container :is(.drawer-trigger,z-button.search-page-button){display:flex;height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));align-items:center}.heading-container z-button.search-page-button{margin-left:auto}.drawer-content{display:none}z-offcanvas[open] .drawer-content{display:flex;width:100%;flex:1 auto;flex-direction:column;row-gap:calc(var(--space-unit) * 2.5)}z-offcanvas[open] .drawer-content ::slotted(z-menu){width:100%}.drawer-close{--z-icon-width:var(--app-header-drawer-trigger-size);--z-icon-height:var(--app-header-drawer-trigger-size);padding:0;border:0;margin:var(--space-unit) 0 calc(var(--space-unit) * 2.5);appearance:none;background:transparent;border-radius:0;color:inherit;cursor:pointer;fill:currentcolor;font-size:inherit;outline:none}.drawer-close:focus-visible{box-shadow:var(--shadow-focus-primary)}.hero-container{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}:host([overlay]) .heading-panel .drawer-trigger z-icon,:host([overlay]) .heading-panel .heading-container,:host([overlay]) .heading-panel .menu-container{color:var(--color-white);fill:var(--color-white)}:host([overlay]) .heading-panel .menu-container ::slotted(z-menu){--z-menu-label-color:var(--color-white)}:host([overlay]) .hero-container::after{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%;background:var(--color-black);content:"";opacity:0.5}.hero-container img,.hero-container ::slotted(*){position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:top center;-webkit-user-drag:none}@media (min-width: 768px){:host{--app-header-title-font-size:var(--app-header-typography-6-size);--app-header-title-lineheight:var(--app-header-typography-6-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-6-tracking)}.heading-panel{flex-flow:row wrap;align-items:center;padding-bottom:calc(var(--space-unit) * 2)}.heading-container{margin-right:auto}:host(:is([flow="offcanvas"],[menu-length="0"])) :is(.heading-container,.menu-container){width:auto}:host(:not([flow="offcanvas"])) .heading-subtitle{padding-left:0}.menu-container{flex:initial;align-items:center}:host([menu-length="0"]) .menu-container:not(:empty){height:calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight))}:host(:not([flow="offcanvas"])) .menu-container{gap:var(--space-unit) calc(var(--space-unit) * 5)}:host(:not([flow="offcanvas"])) .heading-container .drawer-trigger{display:none}}@media (min-width: 1152px){:host{--app-header-title-font-size:var(--app-header-typography-7-size);--app-header-title-lineheight:var(--app-header-typography-7-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-7-tracking)}.heading-panel{justify-content:flex-start;padding-bottom:calc(var(--space-unit) * 3)}.heading-container,.menu-container{width:auto}:host([flow="stack"]) .heading-panel{flex-flow:column;align-items:flex-start}:host([flow="stack"]) .menu-container{width:100%}:host(:not([flow="offcanvas"],[menu-length="0"])) .heading-panel{row-gap:calc(var(--space-unit) * 3)}z-searchbar{min-width:calc(var(--space-unit) * 45);flex:initial}}@media (min-width: 1366px){:host{--app-header-title-font-size:var(--app-header-typography-9-size);--app-header-title-lineheight:var(--app-header-typography-9-lineheight);--app-header-title-letter-spacing:var(--app-header-typography-9-tracking)}}@keyframes slide-stuck-heading-in{0%{transform:translate3d(0, -100%, 0)}100%{transform:none}}`;const d=typeof IntersectionObserver!=="undefined";const c=class{constructor(t){e(this,t);this.sticking=a(this,"sticking",7);this.stuck=false;this.overlay=false;this.flow="auto";this.drawerOpen=false;this.enableSearch=false;this.searchPlaceholder="Cerca";this.searchString="";this._stuck=false;this.currentViewport="mobile";this.observer=d&&new IntersectionObserver((([e])=>{this._stuck=!e.isIntersecting}),{threshold:.5});this.openDrawer=this.openDrawer.bind(this);this.closeDrawer=this.closeDrawer.bind(this);this.collectMenuElements=this.collectMenuElements.bind(this)}evaluateViewport(){if(window.innerWidth<768){this.currentViewport="mobile"}else if(window.innerWidth>=768&&window.innerWidth<1152){this.currentViewport="tablet"}else{this.currentViewport="desktop"}}onStuck(){const e=this.scrollParent;if(!e){return}this.sticking.emit(this._stuck)}setMenuFloatingMode(){if(this.menuElements.length===0){return}const e=this.menuElements;e.forEach((e=>{e.open=false;e.floating=!this.drawerOpen;e.verticalContext=this.drawerOpen}))}get title(){const e=this.hostElement.querySelector('[slot="title"]');if(e===null){return""}return e.textContent.trim()}get scrollParent(){const e=this.hostElement.offsetParent;if(e===document.body||e===document.documentElement){return window}return e}get canShowMenu(){return this.flow!=="offcanvas"&&this.currentViewport!=="mobile"&&!this.drawerOpen}get canShowSearchbar(){if(!this.enableSearch){return false}if(this.searchPageUrl){return this.currentViewport==="desktop"}return true}get hasHero(){return!!this.hero||this.hostElement.querySelector("[slot=hero]")!==null}openDrawer(){this.drawerOpen=true}closeDrawer(){this.drawerOpen=false}collectMenuElements(){const e=this.menuElements=this.hostElement.querySelectorAll('[slot="menu"]');this.menuLength=e.length;this.setMenuFloatingMode()}enableStuckObserver(){if(this.observer){this.observer.observe(this.container)}}disableStuckMode(){this._stuck=false;if(this.observer){this.observer.unobserve(this.container)}}onStuckMode(){if(this.stuck){this.enableStuckObserver()}else{this.disableStuckMode()}}renderSearchLinkButton(){if(!this.enableSearch||!this.searchPageUrl||this.currentViewport==="desktop"){return null}return t("z-button",{class:"search-page-button",variant:h.SECONDARY,href:this.searchPageUrl,icon:"search",size:n.X_SMALL})}renderSeachbar(e){return t("z-searchbar",{value:this.searchString,placeholder:this.searchPlaceholder,showSearchButton:true,searchButtonIconOnly:e,size:n.X_SMALL,variant:h.SECONDARY,preventSubmit:this.searchString.length<3,onSearchTyping:e=>this.searchString=e.detail})}componentDidLoad(){this.collectMenuElements();this.onStuckMode();this.evaluateViewport()}render(){return t(i,{key:"aded309a3cb1033c51f95d94de1cd796f643fea0","menu-length":this.menuLength},this.hasHero&&t("div",{key:"78458badadf63a3366eaba9481ed709f7cb455c5",class:"hero-container"},t("slot",{key:"1296c2091f4dd8b2f5215f07ea096772fc700abb",name:"hero"},this.hero&&t("img",{key:"ed06c899fb3e2b7316161555b307033a6821f64a",alt:"",src:this.hero}))),t("div",{key:"d8e275bde97fe5d694a50c33b5b32db7aee7699e",class:"heading-panel",ref:e=>this.container=e},t("div",{key:"ce6fe29fd508558b3d75dba200006dfa31ba5ad9",class:"heading-container"},t("div",{key:"5464ae272a15fcd6a975b62f5d2d6206d6f3f060",class:"heading-subtitle"},t("slot",{key:"53c143c49c40cd3cef1475af920122ca5abd5329",name:"top-subtitle"})),t("div",{key:"0c4c147537d3ece12fd35e4a5ca553aeff2a8f1c",class:"heading-title"},this.menuLength>0&&t("button",{key:"68e24b4435b6ee099f288cb4cb28794834ab1f72",class:"drawer-trigger","aria-label":"Apri menu",onClick:this.openDrawer},t("z-icon",{key:"220a3096e3275ec8e6bee6b715926f891ed09045",name:"burger-menu"})),t("slot",{key:"52e89fe9902914e6daafe61f47de9ea4f02bf93e",name:"title"}),this.renderSearchLinkButton()),t("div",{key:"c1f90edc6ecb0063d53f3ed68ee718fc86397751",class:"heading-subtitle"},t("slot",{key:"84398e5cd8bf522e13b9f29118ba20d46510fbb1",name:"subtitle"}))),(this.canShowMenu||this.canShowSearchbar)&&t("div",{key:"e6d6d1fa5040a7c6d54869fac4c92a19407145fb",class:"menu-container"},this.canShowMenu&&t("slot",{key:"3c442f00807b6a4ff33349709a24b6096bce3b3c",name:"menu",onSlotchange:this.collectMenuElements}),this.canShowSearchbar&&this.renderSeachbar(this.currentViewport!=="desktop"))),t("z-offcanvas",{key:"268fa9a09f449e5e277ed56134cd1a5be9e9713e",variant:s.OVERLAY,transitiondirection:o.RIGHT,open:this.drawerOpen,onCanvasOpenStatusChanged:e=>this.drawerOpen=e.detail},t("button",{key:"be0350100f473da07ac89c22b950c0ff5f2dc14a",class:"drawer-close","aria-label":"Chiudi menu",onClick:this.closeDrawer,slot:"canvasContent","aria-hidden":`${!this.drawerOpen}`,disabled:!this.drawerOpen},t("z-icon",{key:"ebe1a2dd92cb3d010741e8745c5359a852e46253",name:"close"})),t("div",{key:"cb6b380cfddc334c84fae9a045d4b886ff8d3f26",class:"drawer-content",slot:"canvasContent","aria-hidden":`${!this.drawerOpen}`},t("slot",{key:"e120aa846065db5a7c0d9827e7b74a98f7b41f25",name:"menu",onSlotchange:this.collectMenuElements}))),this._stuck&&t("div",{key:"7d0460155469d822b7f608804dc1465f08e28b02",class:"heading-stuck"},t("div",{key:"b570cf1d407aad9a9c2a10af56835f3a3d5f1379",class:"heading-stuck-content"},this.menuLength>0&&t("button",{key:"06929d598cab5b080e0f3b23606ca6e4ee50a113",class:"drawer-trigger","aria-label":"Apri menu",onClick:this.openDrawer},t("z-icon",{key:"807ee08ed6a4db7ca124114007e1a2d52dca75e0",name:"burger-menu"})),t("div",{key:"dfbb47685f209528aa6a70f29b5cb5ca83a4a2e6",class:"heading-title"},t("slot",{key:"aff80bd515be456bc15b5fa91dbc85ce33fe6562",name:"stucked-title"},this.title)),this.renderSearchLinkButton(),this.canShowSearchbar&&this.currentViewport==="desktop"&&this.renderSeachbar(false))))}get hostElement(){return r(this)}static get watchers(){return{_stuck:[{onStuck:0}],drawerOpen:[{setMenuFloatingMode:0}],stuck:[{onStuckMode:0}]}}};c.style=p();export{c as z_app_header_deprecated};
2
+ //# sourceMappingURL=p-3b7f5d80.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","SUPPORT_INTERSECTION_OBSERVER","IntersectionObserver","ZAppHeaderDeprecated","constructor","hostRef","this","stuck","overlay","flow","drawerOpen","enableSearch","searchPlaceholder","searchString","_stuck","currentViewport","observer","entry","isIntersecting","threshold","openDrawer","bind","closeDrawer","collectMenuElements","evaluateViewport","window","innerWidth","onStuck","scrollParent","sticking","emit","setMenuFloatingMode","menuElements","length","elements","forEach","element","open","floating","verticalContext","title","titleElement","hostElement","querySelector","textContent","trim","parent","offsetParent","document","body","documentElement","canShowMenu","canShowSearchbar","searchPageUrl","hasHero","hero","querySelectorAll","menuLength","enableStuckObserver","observe","container","disableStuckMode","unobserve","onStuckMode","renderSearchLinkButton","h","class","variant","ButtonVariant","SECONDARY","href","icon","size","ControlSize","X_SMALL","renderSeachbar","searchButtonIconOnly","value","placeholder","showSearchButton","preventSubmit","onSearchTyping","e","detail","componentDidLoad","render","Host","key","name","alt","src","ref","el","onClick","onSlotchange","OffCanvasVariant","OVERLAY","transitiondirection","TransitionDirection","RIGHT","onCanvasOpenStatusChanged","ev","slot","disabled"],"sources":["src/components/deprecated/z-app-header-deprecated/styles.css?tag=z-app-header-deprecated&encapsulation=shadow","src/components/deprecated/z-app-header-deprecated/index.tsx"],"sourcesContent":[":host {\n /**\n * @prop --app-header-typography-1-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `24px`.\n * @prop --app-header-typography-2-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `28px`.\n * @prop --app-header-typography-3-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `32px`.\n * @prop --app-header-typography-4-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `36px`.\n * @prop --app-header-typography-5-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `42px`.\n * @prop --app-header-typography-6-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `48px`.\n * @prop --app-header-typography-7-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `54px`.\n * @prop --app-header-typography-8-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `60px`.\n * @prop --app-header-typography-9-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `68px`.\n * @prop --app-header-typography-10-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `76px`.\n * @prop --app-header-typography-11-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `84px`.\n * @prop --app-header-typography-12-size: Part of the heading typography's scale. Use it if you have to override the default value. Value: `92px`.\n * @prop --app-header-typography-1-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.33`.\n * @prop --app-header-typography-2-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.29`.\n * @prop --app-header-typography-3-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.\n * @prop --app-header-typography-4-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @prop --app-header-typography-5-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @prop --app-header-typography-6-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.25`.\n * @prop --app-header-typography-7-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @prop --app-header-typography-8-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.\n * @prop --app-header-typography-9-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.24`.\n * @prop --app-header-typography-10-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.26`.\n * @prop --app-header-typography-11-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @prop --app-header-typography-12-lineheight: Part of the heading typography's scale. Use it if you have to override the default value. Value: `1.2`.\n * @prop --app-header-typography-1-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.2 / 1em)`.\n * @prop --app-header-typography-2-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.4 / 1em)`.\n * @prop --app-header-typography-3-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.6 / 1em)`.\n * @prop --app-header-typography-4-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-0.8 / 1em)`.\n * @prop --app-header-typography-5-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1 / 1em)`.\n * @prop --app-header-typography-6-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.2 / 1em)`.\n * @prop --app-header-typography-7-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.4 / 1em)`.\n * @prop --app-header-typography-8-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.6 / 1em)`.\n * @prop --app-header-typography-9-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-1.8 / 1em)`.\n * @prop --app-header-typography-10-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2 / 1em)`.\n * @prop --app-header-typography-11-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.2 / 1em)`.\n * @prop --app-header-typography-12-tracking: Part of the heading typography's scale. Use it if you have to override the default value. Value: `calc(-2.4 / 1em)`.\n * @prop --app-header-content-max-width: Use it to set header's content max width. Useful when the project use a fixed width layout. Defaults to `100%`.\n * @prop --app-header-height: Defaults to `auto`.\n * @prop --app-header-top-offset: Top offset for the stuck header. Useful when there are other fixed elements above the header. Defaults to `48px` (the height of the main topbar).\n * @prop --app-header-drawer-trigger-size: The size of the drawer icon. Defaults to `--space-unit * 4`.\n * @prop --app-header-bg: Header background color. Defaults to `--color-surface01`.\n * @prop --app-header-stucked-bg: Stuck header background color. Defaults to `--color-surface01`.\n * @prop --app-header-text-color: Text color. Useful on `hero` variant to set text color based on the colors of the background image. Defaults to `--color-default-text`.\n * @prop --app-header-title-font-size: Variable to customize the title's font size. NOTE: Only use one of the exported `--app-header-typography-*-size` as a value. Defaults to `--app-header-typography-3-size`.\n * @prop --app-header-title-lineheight: Variable to customize the title's line-height. NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value and use the same level as the one of the font size. Defaults to `--app-header-typography-3-lineheight`.\n * @prop --app-header-title-letter-spacing: Variable to customize the title's letter-spacing. NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value and use the same level as the one of the font size. Defaults to `--app-header-typography-3-tracking`.\n * @prop --app-header-stucked-text-color: Stuck header text color. Defaults to `--color-default-text`.\n */\n --app-header-typography-1-size: 24px;\n --app-header-typography-2-size: 28px;\n --app-header-typography-3-size: 32px;\n --app-header-typography-4-size: 36px;\n --app-header-typography-5-size: 42px;\n --app-header-typography-6-size: 48px;\n --app-header-typography-7-size: 54px;\n --app-header-typography-8-size: 60px;\n --app-header-typography-9-size: 68px;\n --app-header-typography-10-size: 76px;\n --app-header-typography-11-size: 84px;\n --app-header-typography-12-size: 92px;\n --app-header-typography-1-lineheight: 1.33;\n --app-header-typography-2-lineheight: 1.29;\n --app-header-typography-3-lineheight: 1.25;\n --app-header-typography-4-lineheight: 1.24;\n --app-header-typography-5-lineheight: 1.24;\n --app-header-typography-6-lineheight: 1.25;\n --app-header-typography-7-lineheight: 1.2;\n --app-header-typography-8-lineheight: 1.26;\n --app-header-typography-9-lineheight: 1.24;\n --app-header-typography-10-lineheight: 1.26;\n --app-header-typography-11-lineheight: 1.2;\n --app-header-typography-12-lineheight: 1.2;\n --app-header-typography-1-tracking: calc(-0.2 / 1em);\n --app-header-typography-2-tracking: calc(-0.4 / 1em);\n --app-header-typography-3-tracking: calc(-0.6 / 1em);\n --app-header-typography-4-tracking: calc(-0.8 / 1em);\n --app-header-typography-5-tracking: calc(-1 / 1em);\n --app-header-typography-6-tracking: calc(-1.2 / 1em);\n --app-header-typography-7-tracking: calc(-1.4 / 1em);\n --app-header-typography-8-tracking: calc(-1.6 / 1em);\n --app-header-typography-9-tracking: calc(-1.8 / 1em);\n --app-header-typography-10-tracking: calc(-2 / 1em);\n --app-header-typography-11-tracking: calc(-2.2 / 1em);\n --app-header-typography-12-tracking: calc(-2.4 / 1em);\n --app-header-content-max-width: 100%;\n --app-header-height: auto;\n\n /* Variable to set stuck header and drawer's top offset.\n Useful when something is absolutely positioned above the header. */\n --app-header-top-offset: 48px;\n --app-header-drawer-trigger-size: calc(var(--space-unit) * 4);\n\n /* Variable to customize header background color. */\n --app-header-bg: var(--color-surface01);\n\n /* Variable to customize stuck header background color. */\n --app-header-stucked-bg: var(--color-surface01);\n\n /* Variable to customize text and icon color. */\n --app-header-text-color: var(--color-default-text);\n\n /* Variable to customize the title's font size.\n NOTE: Only use one of the exported `--app-header-typography-*-size` as a value. */\n --app-header-title-font-size: var(--app-header-typography-3-size);\n\n /* Variable to customize the title's line-height.\n NOTE: Only use one of the exported `--app-header-typography-*-lineheight` as a value\n and use the same level as the one of the font size. */\n --app-header-title-lineheight: var(--app-header-typography-3-lineheight);\n\n /* Variable to customize the title's letter-spacing.\n NOTE: Only use one of the exported `--app-header-typography-*-tracking` as a value\n and use the same level as the one of the font size. */\n --app-header-title-letter-spacing: var(--app-header-typography-3-tracking);\n\n /* Variable to customize stuck header's text and icon color. */\n --app-header-stucked-text-color: var(--color-default-text);\n\n position: relative;\n display: block;\n height: var(--app-header-height);\n color: var(--app-header-text-color);\n}\n\n:host,\n* {\n box-sizing: border-box;\n}\n\n.heading-panel {\n position: relative;\n display: flex;\n width: 100%;\n max-width: var(--app-header-content-max-width);\n flex-direction: column;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: baseline;\n padding: var(--grid-margin);\n margin: 0 auto;\n background: var(--app-header-bg);\n gap: calc(var(--space-unit) * 2) calc(var(--space-unit) * 5);\n}\n\n.hero-container + .heading-panel {\n background: transparent;\n}\n\n:host(:empty) .heading-panel {\n padding: 0;\n}\n\n.heading-container {\n position: relative;\n z-index: 1;\n display: flex;\n width: 100%;\n max-width: 100%;\n flex: 1 auto;\n flex-direction: column;\n justify-content: flex-start;\n}\n\n.heading-title {\n display: flex;\n max-width: 100%;\n flex-direction: row;\n align-items: flex-start;\n column-gap: calc(var(--space-unit) * 2);\n}\n\n::slotted([slot=\"title\"]),\n.heading-stuck .heading-title > *,\n::slotted([slot=\"stucked-title\"]) {\n margin: 0;\n font-family: \"IBM Plex Serif\", serif;\n font-weight: var(--font-bd);\n}\n\n::slotted([slot=\"title\"]) {\n font-size: var(--app-header-title-font-size);\n letter-spacing: var(--app-header-title-letter-spacing);\n line-height: var(--app-header-title-lineheight);\n}\n\n.heading-stuck .heading-title > *,\n::slotted([slot=\"stucked-title\"]) {\n font-size: var(--app-header-typography-3-size);\n letter-spacing: var(--app-header-typography-3-tracking);\n line-height: var(--app-header-typography-3-lineheight);\n}\n\n:host(:not([menu-length=\"0\"])) .heading-subtitle {\n padding-left: calc(var(--app-header-drawer-trigger-size) + (var(--space-unit) * 2));\n}\n\n::slotted([slot=\"top-subtitle\"]),\n::slotted([slot=\"subtitle\"]) {\n margin: 0;\n font-family: var(--font-family-sans);\n font-size: 20px;\n font-style: italic;\n line-height: 26px;\n}\n\n::slotted([slot=\"subtitle\"]) {\n font-weight: 500;\n}\n\n::slotted([slot=\"top-subtitle\"]) {\n font-weight: 400;\n}\n\n.menu-container {\n display: flex;\n width: 100%;\n flex: 1 auto;\n flex-flow: row wrap;\n}\n\n:host([menu-length=\"0\"]:not([enable-search])) .menu-container,\n.menu-container:empty {\n display: none;\n}\n\n.menu-container ::slotted([open]) {\n position: relative;\n z-index: 3;\n}\n\nz-searchbar {\n z-index: 0;\n display: flex;\n width: auto;\n min-width: calc(var(--space-unit) * 32);\n flex: 1 auto;\n align-items: center;\n margin-left: auto;\n}\n\n.heading-stuck {\n position: fixed;\n z-index: 20;\n top: var(--app-header-top-offset);\n left: 0;\n width: 100%;\n max-width: 100%;\n animation: slide-stuck-heading-in 250ms ease-out;\n background: var(--app-header-stucked-bg);\n box-shadow: var(--shadow-2);\n color: var(--app-header-stucked-text-color);\n}\n\n.heading-stuck-content {\n display: flex;\n max-width: var(--app-header-content-max-width);\n align-items: center;\n padding: var(--space-unit) var(--grid-margin);\n margin: 0 auto;\n column-gap: calc(var(--space-unit) * 2);\n}\n\n.heading-stuck .heading-title {\n overflow: hidden;\n}\n\n.heading-stuck .heading-title > *,\n.heading-stuck .heading-title ::slotted([slot=\"stucked-title\"]) {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.heading-stuck-content z-button {\n margin-left: auto;\n}\n\n.drawer-trigger {\n padding: 0;\n border: 0;\n margin: 0;\n appearance: none;\n background: none;\n border-radius: 0;\n color: inherit;\n cursor: pointer;\n}\n\n.drawer-trigger z-icon {\n --z-icon-width: var(--app-header-drawer-trigger-size);\n --z-icon-height: var(--app-header-drawer-trigger-size);\n\n fill: currentcolor;\n}\n\n/* Simulate the height of the first line of text,\nto correctly align drawer icon and search page button with the title */\n.heading-container :is(.drawer-trigger, z-button.search-page-button) {\n display: flex;\n height: calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));\n align-items: center;\n}\n\n.heading-container z-button.search-page-button {\n margin-left: auto;\n}\n\n.drawer-content {\n display: none;\n}\n\nz-offcanvas[open] .drawer-content {\n display: flex;\n width: 100%;\n flex: 1 auto;\n flex-direction: column;\n row-gap: calc(var(--space-unit) * 2.5);\n}\n\nz-offcanvas[open] .drawer-content ::slotted(z-menu) {\n width: 100%;\n}\n\n.drawer-close {\n --z-icon-width: var(--app-header-drawer-trigger-size);\n --z-icon-height: var(--app-header-drawer-trigger-size);\n\n padding: 0;\n border: 0;\n margin: var(--space-unit) 0 calc(var(--space-unit) * 2.5);\n appearance: none;\n background: transparent;\n border-radius: 0;\n color: inherit;\n cursor: pointer;\n fill: currentcolor;\n font-size: inherit;\n outline: none;\n}\n\n.drawer-close:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n}\n\n.hero-container {\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n:host([overlay]) .heading-panel .drawer-trigger z-icon,\n:host([overlay]) .heading-panel .heading-container,\n:host([overlay]) .heading-panel .menu-container {\n color: var(--color-white);\n fill: var(--color-white);\n}\n\n:host([overlay]) .heading-panel .menu-container ::slotted(z-menu) {\n --z-menu-label-color: var(--color-white);\n}\n\n:host([overlay]) .hero-container::after {\n position: absolute;\n z-index: 0;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: var(--color-black);\n content: \"\";\n opacity: 0.5;\n}\n\n.hero-container img,\n.hero-container ::slotted(*) {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: top center;\n -webkit-user-drag: none;\n}\n\n/* Tablet breakpoint */\n@media (min-width: 768px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-6-size);\n --app-header-title-lineheight: var(--app-header-typography-6-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-6-tracking);\n }\n\n .heading-panel {\n flex-flow: row wrap;\n align-items: center;\n padding-bottom: calc(var(--space-unit) * 2);\n }\n\n .heading-container {\n margin-right: auto;\n }\n\n :host(:is([flow=\"offcanvas\"], [menu-length=\"0\"])) :is(.heading-container, .menu-container) {\n width: auto;\n }\n\n :host(:not([flow=\"offcanvas\"])) .heading-subtitle {\n padding-left: 0;\n }\n\n .menu-container {\n flex: initial;\n align-items: center;\n }\n\n :host([menu-length=\"0\"]) .menu-container:not(:empty) {\n height: calc(var(--app-header-title-font-size) * var(--app-header-title-lineheight));\n }\n\n :host(:not([flow=\"offcanvas\"])) .menu-container {\n gap: var(--space-unit) calc(var(--space-unit) * 5);\n }\n\n :host(:not([flow=\"offcanvas\"])) .heading-container .drawer-trigger {\n display: none;\n }\n}\n\n/* Desktop breakpoint */\n@media (min-width: 1152px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-7-size);\n --app-header-title-lineheight: var(--app-header-typography-7-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-7-tracking);\n }\n\n .heading-panel {\n justify-content: flex-start;\n padding-bottom: calc(var(--space-unit) * 3);\n }\n\n .heading-container,\n .menu-container {\n width: auto;\n }\n\n :host([flow=\"stack\"]) .heading-panel {\n flex-flow: column;\n align-items: flex-start;\n }\n\n :host([flow=\"stack\"]) .menu-container {\n width: 100%;\n }\n\n :host(:not([flow=\"offcanvas\"], [menu-length=\"0\"])) .heading-panel {\n row-gap: calc(var(--space-unit) * 3);\n }\n\n z-searchbar {\n min-width: calc(var(--space-unit) * 45);\n flex: initial;\n }\n}\n\n/* Wide breakpoint */\n@media (min-width: 1366px) {\n :host {\n --app-header-title-font-size: var(--app-header-typography-9-size);\n --app-header-title-lineheight: var(--app-header-typography-9-lineheight);\n --app-header-title-letter-spacing: var(--app-header-typography-9-tracking);\n }\n}\n\n@keyframes slide-stuck-heading-in {\n 0% {\n transform: translate3d(0, -100%, 0);\n }\n\n 100% {\n transform: none;\n }\n}\n","import {\n Component,\n ComponentInterface,\n Element,\n Event,\n EventEmitter,\n Host,\n Listen,\n Prop,\n State,\n Watch,\n h,\n} from \"@stencil/core\";\nimport {ButtonVariant, ControlSize, OffCanvasVariant, TransitionDirection} from \"../../../beans\";\n\nconst SUPPORT_INTERSECTION_OBSERVER = typeof IntersectionObserver !== \"undefined\";\n\n/**\n * @slot title - Slot for the main title\n * @slot subtitle - Slot for the bottom subtitle. It will not appear in stuck header.\n * @slot top-subtitle - Slot for the top subtitle. It will not appear in stuck header.\n * @slot stucked-title - Title for the stuck header. By default it uses the text from the `title` slot.\n */\n@Component({\n tag: \"z-app-header-deprecated\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZAppHeaderDeprecated implements ComponentInterface {\n @Element() hostElement: HTMLZAppHeaderDeprecatedElement;\n\n /**\n * Stuck mode for the header.\n * You can programmatically set it using an IntersectionObserver.\n */\n @Prop({reflect: true})\n stuck = false;\n\n /**\n * Set the hero image source for the header.\n * You can also use a [slot=\"hero\"] node for advanced customization.\n */\n @Prop()\n hero: string;\n\n /**\n * Should place an overlay over the hero image.\n * Useful for legibility purpose.\n */\n @Prop({reflect: true})\n overlay = false;\n\n /**\n * Control menu bar position in the header.\n * - auto: the menu bar is positioned near the title\n * - stack: the menu bar is positioned below the title\n * - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu\n */\n @Prop({reflect: true})\n flow: \"auto\" | \"stack\" | \"offcanvas\" = \"auto\";\n\n /**\n * The opening state of the drawer.\n */\n @Prop({reflect: true})\n drawerOpen = false;\n\n /**\n * Enable the search bar.\n */\n @Prop({reflect: true})\n enableSearch = false;\n\n /**\n * Placeholder text for the search bar.\n */\n @Prop()\n searchPlaceholder = \"Cerca\";\n\n /**\n * Search string for the search bar.\n */\n @Prop({mutable: true})\n searchString = \"\";\n\n /**\n * Url to the search page.\n * Set this prop and `enableSearch` to show a link-button on mobile and tablet viewports, instead of the normal searchbar.\n * The link will also appear on the sticky header.\n */\n @Prop()\n searchPageUrl: string;\n\n /**\n * The stuck state of the bar.\n */\n @State()\n private _stuck = false;\n\n /**\n * Current viewport.\n * Used to change the aspect of the search button (icon only) on mobile and tablet.\n */\n @State()\n private currentViewport: \"mobile\" | \"tablet\" | \"desktop\" = \"mobile\";\n\n /**\n * Current count of menu items.\n */\n @State()\n menuLength: number;\n\n /**\n * Emitted when the `stuck` state of the header changes\n */\n @Event()\n sticking: EventEmitter;\n\n private container?: HTMLDivElement;\n\n private menuElements?: NodeListOf<HTMLElement>;\n\n private observer?: IntersectionObserver =\n SUPPORT_INTERSECTION_OBSERVER &&\n new IntersectionObserver(\n ([entry]) => {\n this._stuck = !entry.isIntersecting;\n },\n {\n threshold: 0.5,\n }\n );\n\n constructor() {\n this.openDrawer = this.openDrawer.bind(this);\n this.closeDrawer = this.closeDrawer.bind(this);\n this.collectMenuElements = this.collectMenuElements.bind(this);\n }\n\n @Listen(\"resize\", {target: \"window\", passive: true})\n evaluateViewport(): void {\n if (window.innerWidth < 768) {\n this.currentViewport = \"mobile\";\n } else if (window.innerWidth >= 768 && window.innerWidth < 1152) {\n this.currentViewport = \"tablet\";\n } else {\n this.currentViewport = \"desktop\";\n }\n }\n\n @Watch(\"_stuck\")\n onStuck(): void {\n const scrollParent = this.scrollParent;\n if (!scrollParent) {\n return;\n }\n\n this.sticking.emit(this._stuck);\n }\n\n @Watch(\"drawerOpen\")\n setMenuFloatingMode(): void {\n if (this.menuElements.length === 0) {\n return;\n }\n\n const elements = this.menuElements;\n elements.forEach((element) => {\n (element as HTMLZMenuDeprecatedElement).open = false;\n (element as HTMLZMenuDeprecatedElement).floating = !this.drawerOpen;\n (element as HTMLZMenuDeprecatedElement).verticalContext = this.drawerOpen;\n });\n }\n\n private get title(): string {\n const titleElement = this.hostElement.querySelector('[slot=\"title\"]');\n if (titleElement === null) {\n return \"\";\n }\n\n return titleElement.textContent.trim();\n }\n\n private get scrollParent(): Window | Element {\n const parent = this.hostElement.offsetParent;\n if (parent === document.body || parent === document.documentElement) {\n return window;\n }\n\n return parent;\n }\n\n private get canShowMenu(): boolean {\n return this.flow !== \"offcanvas\" && this.currentViewport !== \"mobile\" && !this.drawerOpen;\n }\n\n private get canShowSearchbar(): boolean {\n if (!this.enableSearch) {\n return false;\n }\n\n // Always show the searchbar on desktop, even if a searchPageUrl is set\n if (this.searchPageUrl) {\n return this.currentViewport === \"desktop\";\n }\n\n return true;\n }\n\n /**\n * Whether the header has a hero image, either as a prop or as a slot.\n */\n private get hasHero(): boolean {\n return !!this.hero || this.hostElement.querySelector(\"[slot=hero]\") !== null;\n }\n\n private openDrawer(): void {\n this.drawerOpen = true;\n }\n\n private closeDrawer(): void {\n this.drawerOpen = false;\n }\n\n private collectMenuElements(): void {\n const menuElements = (this.menuElements = this.hostElement.querySelectorAll('[slot=\"menu\"]'));\n this.menuLength = menuElements.length;\n this.setMenuFloatingMode();\n }\n\n private enableStuckObserver(): void {\n if (this.observer) {\n this.observer.observe(this.container);\n }\n }\n\n private disableStuckMode(): void {\n this._stuck = false;\n if (this.observer) {\n this.observer.unobserve(this.container);\n }\n }\n\n @Watch(\"stuck\")\n onStuckMode(): void {\n if (this.stuck) {\n this.enableStuckObserver();\n } else {\n this.disableStuckMode();\n }\n }\n\n private renderSearchLinkButton(): HTMLZButtonElement | null {\n if (!this.enableSearch || !this.searchPageUrl || this.currentViewport === \"desktop\") {\n return null;\n }\n\n return (\n <z-button\n class=\"search-page-button\"\n variant={ButtonVariant.SECONDARY}\n href={this.searchPageUrl}\n icon=\"search\"\n size={ControlSize.X_SMALL}\n ></z-button>\n );\n }\n\n private renderSeachbar(searchButtonIconOnly: boolean): HTMLZSearchbarElement {\n return (\n <z-searchbar\n value={this.searchString}\n placeholder={this.searchPlaceholder}\n showSearchButton={true}\n searchButtonIconOnly={searchButtonIconOnly}\n size={ControlSize.X_SMALL}\n variant={ButtonVariant.SECONDARY}\n preventSubmit={this.searchString.length < 3}\n onSearchTyping={(e) => (this.searchString = e.detail)}\n />\n );\n }\n\n componentDidLoad(): void {\n this.collectMenuElements();\n this.onStuckMode();\n this.evaluateViewport();\n }\n\n render(): HTMLZAppHeaderElement {\n return (\n <Host menu-length={this.menuLength}>\n {this.hasHero && (\n <div class=\"hero-container\">\n <slot name=\"hero\">\n {this.hero && (\n <img\n alt=\"\"\n src={this.hero}\n />\n )}\n </slot>\n </div>\n )}\n\n <div\n class=\"heading-panel\"\n ref={(el) => (this.container = el)}\n >\n <div class=\"heading-container\">\n <div class=\"heading-subtitle\">\n <slot name=\"top-subtitle\"></slot>\n </div>\n <div class=\"heading-title\">\n {this.menuLength > 0 && (\n <button\n class=\"drawer-trigger\"\n aria-label=\"Apri menu\"\n onClick={this.openDrawer}\n >\n <z-icon name=\"burger-menu\"></z-icon>\n </button>\n )}\n\n <slot name=\"title\"></slot>\n\n {this.renderSearchLinkButton()}\n </div>\n\n <div class=\"heading-subtitle\">\n <slot name=\"subtitle\"></slot>\n </div>\n </div>\n\n {(this.canShowMenu || this.canShowSearchbar) && (\n <div class=\"menu-container\">\n {this.canShowMenu && (\n <slot\n name=\"menu\"\n onSlotchange={this.collectMenuElements}\n ></slot>\n )}\n\n {this.canShowSearchbar && this.renderSeachbar(this.currentViewport !== \"desktop\")}\n </div>\n )}\n </div>\n\n <z-offcanvas\n variant={OffCanvasVariant.OVERLAY}\n transitiondirection={TransitionDirection.RIGHT}\n open={this.drawerOpen}\n onCanvasOpenStatusChanged={(ev) => (this.drawerOpen = ev.detail)}\n >\n <button\n class=\"drawer-close\"\n aria-label=\"Chiudi menu\"\n onClick={this.closeDrawer}\n slot=\"canvasContent\"\n aria-hidden={`${!this.drawerOpen}`}\n disabled={!this.drawerOpen}\n >\n <z-icon name=\"close\"></z-icon>\n </button>\n\n <div\n class=\"drawer-content\"\n slot=\"canvasContent\"\n aria-hidden={`${!this.drawerOpen}`}\n >\n <slot\n name=\"menu\"\n onSlotchange={this.collectMenuElements}\n ></slot>\n </div>\n </z-offcanvas>\n\n {this._stuck && (\n <div class=\"heading-stuck\">\n <div class=\"heading-stuck-content\">\n {this.menuLength > 0 && (\n <button\n class=\"drawer-trigger\"\n aria-label=\"Apri menu\"\n onClick={this.openDrawer}\n >\n <z-icon name=\"burger-menu\"></z-icon>\n </button>\n )}\n\n <div class=\"heading-title\">\n <slot name=\"stucked-title\">{this.title}</slot>\n </div>\n\n {this.renderSearchLinkButton()}\n {this.canShowSearchbar && this.currentViewport === \"desktop\" && this.renderSeachbar(false)}\n </div>\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r,c as o,h as a}from"./p-BEHxru6n.js";const i=()=>`button{display:flex;height:36px;align-items:center;padding-right:calc(var(--space-unit) * 2);padding-left:0;border:var(--border-size-medium) solid;border-color:transparent;background-color:var(--color-surface01);border-radius:var(--border-radius);box-shadow:var(--shadow-2);color:var(--color-primary01);cursor:pointer;fill:var(--color-primary01);font-family:var(--font-family-sans);font-size:14px;font-weight:var(--font-sb);outline:none;text-transform:uppercase}button::-moz-focus-inner{border:0}button:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}button:focus{box-shadow:var(--shadow-focus-primary)}button:active{border-color:var(--color-pressed-primary);box-shadow:var(--shadow-2);color:var(--color-pressed-primary);fill:var(--color-pressed-primary)}button:disabled{color:var(--color-disabled03);fill:var(--color-disabled03)}z-icon{display:inline-block;margin:0 var(--space-unit) 0 calc(var(--space-unit) * 2);transform:rotate(360deg);transition:all 200ms linear}button.isopen{top:-20px}button.avoid-clicks{pointer-events:none}`;const t=class{constructor(a){r(this,a);this.toggleClick=o(this,"toggleClick",7);this.isdisabled=false;this.opened=false;this.ariaLabel=""}emitToggleClick(){if(this.isdisabled){return}this.opened=!this.opened;this.toggleClick.emit(this.opened)}render(){return a("button",{key:"d0ffc4e5d939520d394a77bcca9fd980cda11503",tabindex:this.avoidclick?"-1":"0",class:{isopen:this.opened,"avoid-clicks":this.avoidclick},disabled:this.isdisabled,"aria-expanded":this.opened?"true":"false","aria-label":this.ariaLabel,onClick:()=>this.emitToggleClick()},a("z-icon",{key:"7307d3b2b6abbbe555e22e7caa11b6e151146f54",name:this.opened?"chevron-down":"chevron-up",width:16,height:16}),this.label)}};t.style=i();export{t as z_toggle_button};
2
+ //# sourceMappingURL=p-40694478.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZToggleButton","constructor","hostRef","this","isdisabled","opened","ariaLabel","emitToggleClick","toggleClick","emit","render","h","key","tabindex","avoidclick","class","isopen","disabled","onClick","name","width","height","label"],"sources":["src/components/z-toggle-button/styles.css?tag=z-toggle-button&encapsulation=shadow","src/components/z-toggle-button/index.tsx"],"sourcesContent":["button {\n display: flex;\n height: 36px;\n align-items: center;\n padding-right: calc(var(--space-unit) * 2);\n padding-left: 0;\n border: var(--border-size-medium) solid;\n border-color: transparent;\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n box-shadow: var(--shadow-2);\n color: var(--color-primary01);\n cursor: pointer;\n fill: var(--color-primary01);\n font-family: var(--font-family-sans);\n font-size: 14px;\n font-weight: var(--font-sb);\n outline: none;\n text-transform: uppercase;\n}\n\nbutton::-moz-focus-inner {\n border: 0;\n}\n\nbutton:hover {\n color: var(--color-hover-primary);\n fill: var(--color-hover-primary);\n}\n\nbutton:focus {\n box-shadow: var(--shadow-focus-primary);\n}\n\nbutton:active {\n border-color: var(--color-pressed-primary);\n box-shadow: var(--shadow-2);\n color: var(--color-pressed-primary);\n fill: var(--color-pressed-primary);\n}\n\nbutton:disabled {\n color: var(--color-disabled03);\n fill: var(--color-disabled03);\n}\n\nz-icon {\n display: inline-block;\n margin: 0 var(--space-unit) 0 calc(var(--space-unit) * 2);\n transform: rotate(360deg);\n transition: all 200ms linear;\n}\n\nbutton.isopen {\n top: -20px;\n}\n\nbutton.avoid-clicks {\n pointer-events: none;\n}\n","import {Component, ComponentInterface, Event, EventEmitter, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-toggle-button\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZToggleButton implements ComponentInterface {\n /** label text */\n @Prop()\n label: string;\n\n /** disabled status flag (optional) */\n @Prop()\n isdisabled?: boolean = false;\n\n /** avoidclick status flag */\n @Prop()\n avoidclick: boolean;\n\n /** open by default (optional) */\n @Prop({mutable: true})\n opened?: boolean = false;\n\n /** aria-label for the button */\n @Prop()\n ariaLabel = \"\";\n\n /** emitted on toggle button click, returns isOpen */\n @Event()\n toggleClick: EventEmitter;\n\n private emitToggleClick(): void {\n if (this.isdisabled) {\n return;\n }\n\n this.opened = !this.opened;\n this.toggleClick.emit(this.opened);\n }\n\n render(): HTMLButtonElement {\n return (\n <button\n tabindex={this.avoidclick ? \"-1\" : \"0\"}\n class={{\n \"isopen\": this.opened,\n \"avoid-clicks\": this.avoidclick,\n }}\n disabled={this.isdisabled}\n aria-expanded={this.opened ? \"true\" : \"false\"}\n aria-label={this.ariaLabel}\n onClick={() => this.emitToggleClick()}\n >\n <z-icon\n name={this.opened ? \"chevron-down\" : \"chevron-up\"}\n width={16}\n height={16}\n />\n {this.label}\n </button>\n );\n }\n}\n"],"mappings":"6CAAA,MAAMA,EAAY,IAAM,kiC,MCOXC,EAAa,MAL1B,WAAAC,CAAAC,G,mDAYEC,KAAAC,WAAuB,MAQvBD,KAAAE,OAAmB,MAInBF,KAAAG,UAAY,EAqCb,CA/BS,eAAAC,GACN,GAAIJ,KAAKC,WAAY,CACnB,M,CAGFD,KAAKE,QAAUF,KAAKE,OACpBF,KAAKK,YAAYC,KAAKN,KAAKE,O,CAG7B,MAAAK,GACE,OACEC,EAAA,UAAAC,IAAA,2CACEC,SAAUV,KAAKW,WAAa,KAAO,IACnCC,MAAO,CACLC,OAAUb,KAAKE,OACf,eAAgBF,KAAKW,YAEvBG,SAAUd,KAAKC,WAAU,gBACVD,KAAKE,OAAS,OAAS,QAAO,aACjCF,KAAKG,UACjBY,QAAS,IAAMf,KAAKI,mBAEpBI,EAAA,UAAAC,IAAA,2CACEO,KAAMhB,KAAKE,OAAS,eAAiB,aACrCe,MAAO,GACPC,OAAQ,KAETlB,KAAKmB,M","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,h as r}from"./p-BEHxru6n.js";import{L as a}from"./p-B3nR3-Jw.js";const t=()=>`:host{--card-overflow:hidden}div{display:flex;overflow:var(--card-overflow);width:auto;width:256px;height:522px;box-sizing:border-box;flex-direction:column;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius)}div.real,div.trial,div.temp{border-color:var(--blue100)}div.faded{border:var(--border-size-medium) solid var(--color-background)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}`;const i=class{constructor(r){e(this,r);this.ispressed=false;this.ishighlighted=false}retrieveClass(){let e="";if(this.cardtype===a.REAL){e+="real"}else if(this.cardtype===a.TRIAL){e+="trial"}else if(this.cardtype===a.TEMP){e+="temp"}if(this.faded){e+=" faded"}else if(this.ispressed){e+=" pressed"}else if(this.ishighlighted){e+=" highlighted"}return e}render(){return r("div",{key:"7268d6cd9e424a3d8134ff4e96bc2ba665988a6c",class:this.retrieveClass(),tabindex:"0"},r("slot",{key:"22c578f464737dcad6536f251e1dbea082a2eb1a"}))}};i.style=t();const o=()=>`:host{width:auto;height:340px}:host>div{position:relative;display:flex;width:auto;height:340px;align-items:center;justify-content:center}`;const d=class{constructor(r){e(this,r)}render(){return r("div",{key:"9a1f8e25043b54dd7ce20167622840c675d8282a"},r("slot",{key:"5b24f58f0ca8db42b6a7e8a112fd0af3af64df96",name:"alert"}),r("slot",{key:"49f082fc29b4edab74ac4dfbd6c77d388eaa22cc",name:"cover"}))}};d.style=o();const s=()=>`img{display:block;max-width:100%;height:340px;margin:auto;object-fit:cover}img.faded{opacity:0.3}`;const c=class{constructor(r){e(this,r)}hadleOnImageError(){this.img=this.defaultimg}render(){return r("img",{key:"74249d6955b0c1db6bbb2e5e77c847378861999f",class:this.faded&&"faded",onError:this.hadleOnImageError.bind(this),alt:this.titolo,src:this.img})}};c.style=s();const l=()=>`header{position:relative;display:flex;width:auto;height:calc(var(--space-unit) * 6);flex-direction:row;align-items:flex-start;justify-content:space-between;border-bottom:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius)}slot[name="aria-heading"]::slotted(*){position:absolute;overflow:hidden !important;width:1px !important;height:1px !important;padding:0 !important;border:0 none !important;margin:-1px !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important}header.real,header.trial,header.temp{border-bottom:var(--border-size-medium) solid var(--blue100);background-color:var(--color-primary03)}.card-title{overflow:hidden;height:calc(var(--space-unit) * 2);padding:calc(var(--space-unit) * 2);margin:0;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:12px;font-weight:var(--font-sb);letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.faded{border-bottom:var(--border-size-medium) solid var(--color-background)}.faded.real,.faded.trial,.faded.temp{border-top:var(--border-size-medium) solid var(--blue100);border-right:var(--border-size-medium) solid var(--blue100);border-left:var(--border-size-medium) solid var(--blue100)}`;const n=class{constructor(r){e(this,r);this.allowTooltip=false}getTitle(){return this.allowTooltip?this.titolo:""}componentDidLoad(){if(this.elementHasEllipsis()){this.allowTooltip=true}}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}retrieveClass(){return{real:this.cardtype===a.REAL,trial:this.cardtype===a.TRIAL,temp:this.cardtype===a.TEMP,faded:this.faded}}render(){return r("header",{key:"c48aea25ec119f8b56bf13004a9bb591d278706f",class:this.retrieveClass()},r("slot",{key:"00aea3e21b5aade39b702d60e87b26ec1cb79904",name:"aria-heading"}),r("span",{key:"ad56e6b17d0aa5e8965ace7bec60757a4e064ea7",class:"card-title",ref:e=>this.ellipsis=e,title:this.getTitle()},this.titolo),r("slot",{key:"0da8178876227c66042f1c6dfe5378264baf519b",name:"icon"}))}};n.style=l();export{i as z_myz_card,d as z_myz_card_body,c as z_myz_card_cover,n as z_myz_card_header};
2
+ //# sourceMappingURL=p-440e5b62.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","ZMyzCardComponent","constructor","hostRef","this","ispressed","ishighlighted","retrieveClass","elemClasses","cardtype","LicenseType","REAL","TRIAL","TEMP","faded","render","h","key","class","tabindex","ZMyzCardBody","name","ZMyzCardCover","hadleOnImageError","img","defaultimg","onError","bind","alt","titolo","src","ZMyzCardHeader","allowTooltip","getTitle","componentDidLoad","elementHasEllipsis","ellipsis","offsetWidth","scrollWidth","real","trial","temp","ref","el","title"],"sources":["src/snowflakes/myz/card/z-myz-card/styles.css?tag=z-myz-card&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card/index.tsx","src/snowflakes/myz/card/z-myz-card-body/styles.css?tag=z-myz-card-body&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-body/index.tsx","src/snowflakes/myz/card/z-myz-card-cover/styles.css?tag=z-myz-card-cover&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-cover/index.tsx","src/snowflakes/myz/card/z-myz-card-header/styles.css?tag=z-myz-card-header&encapsulation=shadow","src/snowflakes/myz/card/z-myz-card-header/index.tsx"],"sourcesContent":[":host {\n --card-overflow: hidden;\n}\n\ndiv {\n display: flex;\n overflow: var(--card-overflow);\n width: auto;\n width: 256px; /* TODO: width must be 100% - must be handled in dashboard */\n height: 522px;\n box-sizing: border-box;\n flex-direction: column;\n border: var(--border-size-medium) solid var(--color-surface03);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius);\n}\n\ndiv.real,\ndiv.trial,\ndiv.temp {\n border-color: var(--blue100);\n}\n\n/* HIDDEN status */\ndiv.faded {\n border: var(--border-size-medium) solid var(--color-background);\n}\n\n/* HIGHLIGHTED status */\ndiv.highlighted {\n box-shadow: var(--shadow-4);\n outline: none;\n}\n\n/* PRESSED status */\ndiv.pressed {\n box-shadow: var(--shadow-8);\n outline: none;\n}\n\ndiv:focus {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n","import {Component, ComponentInterface, h, Prop} from \"@stencil/core\";\nimport {LicenseType} from \"../../../../beans/index\";\n\n/**\n * @slot - generic card slot\n */\n@Component({\n tag: \"z-myz-card\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardComponent implements ComponentInterface {\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** graphic variant (optional) */\n @Prop()\n cardtype?: LicenseType;\n\n /** pressed status */\n @Prop()\n ispressed = false;\n\n /** highlighted status */\n @Prop()\n ishighlighted = false;\n\n private retrieveClass(): string {\n let elemClasses = \"\";\n\n if (this.cardtype === LicenseType.REAL) {\n elemClasses += \"real\";\n } else if (this.cardtype === LicenseType.TRIAL) {\n elemClasses += \"trial\";\n } else if (this.cardtype === LicenseType.TEMP) {\n elemClasses += \"temp\";\n }\n\n if (this.faded) {\n elemClasses += \" faded\";\n } else if (this.ispressed) {\n elemClasses += \" pressed\";\n } else if (this.ishighlighted) {\n elemClasses += \" highlighted\";\n }\n\n return elemClasses;\n }\n\n render(): HTMLDivElement {\n return (\n <div\n class={this.retrieveClass()}\n tabindex=\"0\"\n >\n <slot />\n </div>\n );\n }\n}\n",":host {\n width: auto;\n height: 340px;\n}\n\n:host > div {\n position: relative;\n display: flex;\n width: auto;\n height: 340px;\n align-items: center;\n justify-content: center;\n}\n","import {Component, ComponentInterface, h} from \"@stencil/core\";\n\n/**\n * @slot alert - card alert slot\n * @slot cover - book cover slot\n */\n@Component({\n tag: \"z-myz-card-body\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardBody implements ComponentInterface {\n render(): HTMLDivElement {\n return (\n <div>\n <slot name=\"alert\"></slot>\n <slot name=\"cover\" />\n </div>\n );\n }\n}\n","img {\n display: block;\n max-width: 100%;\n height: 340px;\n margin: auto;\n object-fit: cover;\n}\n\nimg.faded {\n opacity: 0.3;\n}\n","import {Component, ComponentInterface, Prop, h} from \"@stencil/core\";\n\n@Component({\n tag: \"z-myz-card-cover\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardCover implements ComponentInterface {\n /** image source */\n @Prop()\n img: string;\n\n /** cover alt title */\n @Prop()\n titolo: string;\n\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** default error image source */\n @Prop()\n defaultimg: string;\n\n private hadleOnImageError(): void {\n this.img = this.defaultimg;\n }\n\n render(): HTMLImageElement {\n return (\n <img\n class={this.faded && \"faded\"}\n onError={this.hadleOnImageError.bind(this)}\n alt={this.titolo}\n src={this.img}\n />\n );\n }\n}\n","header {\n position: relative;\n display: flex;\n width: auto;\n height: calc(var(--space-unit) * 6);\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n border-bottom: var(--border-size-medium) solid var(--color-surface03);\n background-color: var(--color-surface01);\n border-radius: var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius);\n}\n\nslot[name=\"aria-heading\"]::slotted(*) {\n position: absolute;\n overflow: hidden !important;\n width: 1px !important;\n height: 1px !important;\n padding: 0 !important;\n border: 0 none !important;\n margin: -1px !important;\n clip: rect(0, 0, 0, 0) !important;\n white-space: nowrap !important;\n}\n\nheader.real,\nheader.trial,\nheader.temp {\n border-bottom: var(--border-size-medium) solid var(--blue100);\n background-color: var(--color-primary03);\n}\n\n.card-title {\n overflow: hidden;\n height: calc(var(--space-unit) * 2);\n padding: calc(var(--space-unit) * 2);\n margin: 0;\n color: var(--color-surface05);\n font-family: var(--font-family-sans);\n font-size: 12px;\n font-weight: var(--font-sb);\n letter-spacing: 0.22px;\n line-height: calc(var(--space-unit) * 2);\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n}\n\n.faded {\n border-bottom: var(--border-size-medium) solid var(--color-background);\n}\n\n.faded.real,\n.faded.trial,\n.faded.temp {\n border-top: var(--border-size-medium) solid var(--blue100);\n border-right: var(--border-size-medium) solid var(--blue100);\n border-left: var(--border-size-medium) solid var(--blue100);\n}\n","import {Component, ComponentInterface, Prop, State, h} from \"@stencil/core\";\nimport {JSXBase} from \"@stencil/core/internal\";\nimport {LicenseType} from \"../../../../beans/index\";\n\n/**\n * @slot icon - card header icon slot\n */\n@Component({\n tag: \"z-myz-card-header\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZMyzCardHeader implements ComponentInterface {\n /** volume title */\n @Prop()\n titolo: string;\n\n /** faded status */\n @Prop()\n faded: boolean;\n\n /** card graphic variant (optional) */\n @Prop()\n cardtype?: LicenseType;\n\n @State()\n allowTooltip = false;\n\n private ellipsis?: HTMLElement;\n\n private getTitle(): string {\n return this.allowTooltip ? this.titolo : \"\";\n }\n\n componentDidLoad(): void {\n if (this.elementHasEllipsis()) {\n this.allowTooltip = true;\n }\n }\n\n private elementHasEllipsis(): boolean {\n return this.ellipsis.offsetWidth < this.ellipsis.scrollWidth;\n }\n\n private retrieveClass(): JSXBase.HTMLAttributes[\"class\"] {\n return {\n real: this.cardtype === LicenseType.REAL,\n trial: this.cardtype === LicenseType.TRIAL,\n temp: this.cardtype === LicenseType.TEMP,\n faded: this.faded,\n };\n }\n\n render(): HTMLElement {\n return (\n <header class={this.retrieveClass()}>\n <slot name=\"aria-heading\" />\n <span\n class=\"card-title\"\n ref={(el) => (this.ellipsis = el as HTMLElement)}\n title={this.getTitle()}\n >\n {this.titolo}\n </span>\n <slot name=\"icon\" />\n </header>\n );\n }\n}\n"],"mappings":"+EAAA,MAAMA,EAAY,IAAM,mlB,MCWXC,EAAiB,MAL9B,WAAAC,CAAAC,G,UAgBEC,KAAAC,UAAY,MAIZD,KAAAE,cAAgB,KAkCjB,CAhCS,aAAAC,GACN,IAAIC,EAAc,GAElB,GAAIJ,KAAKK,WAAaC,EAAYC,KAAM,CACtCH,GAAe,M,MACV,GAAIJ,KAAKK,WAAaC,EAAYE,MAAO,CAC9CJ,GAAe,O,MACV,GAAIJ,KAAKK,WAAaC,EAAYG,KAAM,CAC7CL,GAAe,M,CAGjB,GAAIJ,KAAKU,MAAO,CACdN,GAAe,Q,MACV,GAAIJ,KAAKC,UAAW,CACzBG,GAAe,U,MACV,GAAIJ,KAAKE,cAAe,CAC7BE,GAAe,c,CAGjB,OAAOA,C,CAGT,MAAAO,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,MAAOd,KAAKG,gBACZY,SAAS,KAETH,EAAA,QAAAC,IAAA,6C,eCxDR,MAAMjB,EAAY,IAAM,4I,MCWXoB,EAAY,M,yBACvB,MAAAL,GACE,OACEC,EAAA,OAAAC,IAAA,4CACED,EAAA,QAAAC,IAAA,2CAAMI,KAAK,UACXL,EAAA,QAAAC,IAAA,2CAAMI,KAAK,U,eChBnB,MAAMrB,EAAY,IAAM,oG,MCOXsB,EAAa,M,yBAiBhB,iBAAAC,GACNnB,KAAKoB,IAAMpB,KAAKqB,U,CAGlB,MAAAV,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,MAAOd,KAAKU,OAAS,QACrBY,QAAStB,KAAKmB,kBAAkBI,KAAKvB,MACrCwB,IAAKxB,KAAKyB,OACVC,IAAK1B,KAAKoB,K,eClClB,MAAMxB,EAAY,IAAM,23C,MCYX+B,EAAc,MAL3B,WAAA7B,CAAAC,G,UAmBEC,KAAA4B,aAAe,KA0ChB,CAtCS,QAAAC,GACN,OAAO7B,KAAK4B,aAAe5B,KAAKyB,OAAS,E,CAG3C,gBAAAK,GACE,GAAI9B,KAAK+B,qBAAsB,CAC7B/B,KAAK4B,aAAe,I,EAIhB,kBAAAG,GACN,OAAO/B,KAAKgC,SAASC,YAAcjC,KAAKgC,SAASE,W,CAG3C,aAAA/B,GACN,MAAO,CACLgC,KAAMnC,KAAKK,WAAaC,EAAYC,KACpC6B,MAAOpC,KAAKK,WAAaC,EAAYE,MACrC6B,KAAMrC,KAAKK,WAAaC,EAAYG,KACpCC,MAAOV,KAAKU,M,CAIhB,MAAAC,GACE,OACEC,EAAA,UAAAC,IAAA,2CAAQC,MAAOd,KAAKG,iBAClBS,EAAA,QAAAC,IAAA,2CAAMI,KAAK,iBACXL,EAAA,QAAAC,IAAA,2CACEC,MAAM,aACNwB,IAAMC,GAAQvC,KAAKgC,SAAWO,EAC9BC,MAAOxC,KAAK6B,YAEX7B,KAAKyB,QAERb,EAAA,QAAAC,IAAA,2CAAMI,KAAK,S","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as e,d as i}from"./p-BEHxru6n.js";import{p as r}from"./p-B3nR3-Jw.js";import{j as s,g as o,h as n}from"./p-C8pbzcmM.js";import"./p-Q-tWjk7P.js";const a=()=>`:host{display:block;width:inherit;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host>div{display:flex;width:inherit;flex-direction:column}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;z-index:10;top:50%;width:auto;margin:0 var(--space-unit);cursor:pointer;fill:var(--color-primary01);transition:0.6s ease}main .scroll.disabled{opacity:0.5;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;line-height:0px;overflow-y:hidden;transition:all 300ms}footer{display:grid;width:100%;height:56px;align-items:center;border-top:var(--border-size-medium) solid var(--color-background);grid-template:2 / 2;grid-template-areas:"center center" "left right"}footer>div{width:100%;align-items:center}footer .footer-center{grid-area:center}footer .footer-left{grid-area:left}footer .footer-right{grid-area:right}footer .bullet-container{display:flex;min-height:60px;align-items:center;justify-content:center;margin:0 auto}footer .bullet-container .bullet{width:8px;height:8px;margin:var(--space-unit) 2px;background-color:var(--gray200);border-radius:50%;pointer-events:none}footer .bullet-container .bullet.selected{background-color:var(--gray400)}main z-icon:focus,footer .bullet-container .bullet:focus{border-radius:50%;box-shadow:var(--shadow-focus-primary);outline:none !important}@media only screen and (min-width: 768px){footer{height:76px;border-top:var(--border-size-medium) solid var(--color-background);grid-template:1 / 1fr 2fr 1fr;grid-template-areas:"left center right"}footer .bullet-container .bullet{width:10px;height:10px;margin:var(--space-unit) 3px}}@media only screen and (min-width: 1025px){main z-icon.scroll{margin:0 10px}footer .bullet-container .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);cursor:pointer;pointer-events:auto}}`;function l(t){return Array.isArray(t)&&t.every((t=>typeof t==="string"))}const h=class{constructor(e){t(this,e);this.currentSlide=0}watchData(){this.parseLinks()}componentWillLoad(){this.parseLinks();this.setDevice();window.addEventListener("resize",this.handleResize.bind(this))}componentDidRender(){this.setStyle()}handleResize(){this.setDevice();this.setStyle()}parseLinks(){var t;switch(typeof this.data){case"string":{const e=(t=s(this.data))!==null&&t!==void 0?t:[];if(!l(e)){throw new Error("Passed data is invalid")}this.links=e;break}default:this.links=this.data;break}}setStyle(){const t=this.el.shadowRoot.querySelector("#slides");if(!t){return}const e=this.el.shadowRoot.querySelectorAll(".slide");const i=this.el.offsetWidth;const r=i*this.links.length;t.style.width=`${r}px`;t.style.transform=`translate(-${i*this.currentSlide}px)`;e.forEach((t=>{const e=t.querySelector("img");e.style.width=`${i}px`}))}setDevice(){this.device=o()}setCurrentSlide(t){this.currentSlide=t}getBulletDimension(){switch(this.device){case r.MOBILE:return 24;case r.TABLET:return 32;default:return 40}}renderSlides(t){return e("div",{id:"slides"},t.map(((t,i)=>e("div",{id:"slide"+i,class:`slide ${this.currentSlide!==i&&"hide"}`},e("img",{src:t})))))}renderScroll(t){let i=false,r=this.currentSlide;if(t==="left"){i=this.currentSlide===0;r--}else if(t==="right"){i=this.currentSlide===this.links.length-1;r++}return e("z-icon",{class:`scroll ${t} ${i&&"disabled"}`,width:this.getBulletDimension(),height:this.getBulletDimension(),name:`chevron-${t}-circle`,onClick:()=>{if(!i){this.setCurrentSlide(r)}},onKeyUp:t=>!i&&n(t,(()=>{this.setCurrentSlide(r)})),tabindex:0,role:"button"})}renderSlideshowMain(){return e("main",null,this.renderScroll("left"),this.renderSlides(this.links),this.renderScroll("right"))}renderBullet(t){return e("a",{class:`bullet ${this.currentSlide===t&&"selected"}`,onClick:()=>this.setCurrentSlide(t),onKeyUp:e=>n(e,(()=>this.setCurrentSlide(t))),tabindex:0,role:"button"})}renderSlideshowFooter(){return e("footer",null,e("div",{class:"footer-left"},e("slot",{name:"footer-left"})),e("div",{class:"footer-center"},e("div",{class:"bullet-container"},Object.keys(this.links).map((t=>this.renderBullet(parseInt(t)))))),e("div",{class:"footer-right"},e("slot",{name:"footer-right"})))}render(){if(!this.links||!this.links.length){return e("div",null)}return e("div",{id:this.slideshowid},this.renderSlideshowMain(),this.renderSlideshowFooter())}get el(){return i(this)}static get watchers(){return{data:[{watchData:0}]}}};h.style=a();export{h as z_slideshow};
2
+ //# sourceMappingURL=p-44410388.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["stylesCss","isStringArray","data","Array","isArray","every","datum","ZSlideshow","constructor","hostRef","this","currentSlide","watchData","parseLinks","componentWillLoad","setDevice","window","addEventListener","handleResize","bind","componentDidRender","setStyle","parsed","_a","convertJson","Error","links","refSlides","el","shadowRoot","querySelector","allImages","querySelectorAll","width","offsetWidth","fullwidth","length","style","transform","forEach","item","img","device","getDevice","setCurrentSlide","index","getBulletDimension","Device","MOBILE","TABLET","renderSlides","items","h","id","map","i","class","src","renderScroll","direction","disabled","nextSlide","height","name","onClick","onKeyUp","e","handleKeyboardSubmit","tabindex","role","renderSlideshowMain","renderBullet","renderSlideshowFooter","Object","keys","parseInt","render","slideshowid"],"sources":["src/snowflakes/myz/z-slideshow/styles.css?tag=z-slideshow&encapsulation=shadow","src/snowflakes/myz/z-slideshow/index.tsx"],"sourcesContent":[":host {\n display: block;\n width: inherit;\n font-family: var(--font-family-sans);\n font-weight: var(--font-rg);\n}\n\n:host > div {\n display: flex;\n width: inherit;\n flex-direction: column;\n}\n\nmain {\n position: relative;\n overflow: hidden;\n width: 100%;\n}\n\nmain z-icon.scroll {\n position: absolute;\n z-index: 10;\n top: 50%;\n width: auto;\n margin: 0 var(--space-unit);\n cursor: pointer;\n fill: var(--color-primary01);\n transition: 0.6s ease;\n}\n\nmain .scroll.disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n\nmain .scroll.right {\n right: 0;\n}\n\n#slides {\n display: flex;\n flex-wrap: wrap;\n line-height: 0px;\n overflow-y: hidden;\n transition: all 300ms;\n}\n\nfooter {\n display: grid;\n width: 100%;\n height: 56px;\n align-items: center;\n border-top: var(--border-size-medium) solid var(--color-background);\n grid-template: 2 / 2;\n grid-template-areas: \"center center\" \"left right\";\n}\n\nfooter > div {\n width: 100%;\n align-items: center;\n}\n\nfooter .footer-center {\n grid-area: center;\n}\n\nfooter .footer-left {\n grid-area: left;\n}\n\nfooter .footer-right {\n grid-area: right;\n}\n\nfooter .bullet-container {\n display: flex;\n min-height: 60px;\n align-items: center;\n justify-content: center;\n margin: 0 auto;\n}\n\nfooter .bullet-container .bullet {\n width: 8px;\n height: 8px;\n margin: var(--space-unit) 2px;\n background-color: var(--gray200);\n border-radius: 50%;\n pointer-events: none;\n}\n\nfooter .bullet-container .bullet.selected {\n background-color: var(--gray400);\n}\n\nmain z-icon:focus,\nfooter .bullet-container .bullet:focus {\n border-radius: 50%;\n box-shadow: var(--shadow-focus-primary);\n outline: none !important;\n}\n\n/* Tablet breakpoint */\n\n@media only screen and (min-width: 768px) {\n footer {\n height: 76px;\n border-top: var(--border-size-medium) solid var(--color-background);\n grid-template: 1 / 1fr 2fr 1fr;\n grid-template-areas: \"left center right\";\n }\n\n footer .bullet-container .bullet {\n width: 10px;\n height: 10px;\n margin: var(--space-unit) 3px;\n }\n}\n\n/* Desktop breakpoint */\n\n@media only screen and (min-width: 1025px) {\n main z-icon.scroll {\n margin: 0 10px;\n }\n\n footer .bullet-container .bullet {\n width: 16px;\n height: 16px;\n margin: var(--space-unit) calc(var(--space-unit) * 0.5);\n cursor: pointer;\n pointer-events: auto;\n }\n}\n","import {Component, ComponentInterface, Element, Prop, State, Watch, h} from \"@stencil/core\";\nimport {Device} from \"../../../beans\";\nimport {convertJson, getDevice, handleKeyboardSubmit} from \"../../../utils/utils\";\n\n/**\n * Check if data is an array of strings.\n * @param {unknown} data Data to check\n * @returns {boolean}\n */\nfunction isStringArray(data: unknown): data is string[] {\n return Array.isArray(data) && data.every((datum: unknown): datum is string => typeof datum === \"string\");\n}\n\n/**\n * @slot footer-right - right content slot in footer\n * @slot footer-left - left content slot in footer\n */\n@Component({\n tag: \"z-slideshow\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZSlideshow implements ComponentInterface {\n @Element() el: HTMLZSlideshowElement;\n\n /** slideshow id */\n @Prop()\n slideshowid: string;\n\n /** array or JSON stringified images urls */\n @Prop()\n data: string[] | string;\n\n @State()\n device: Device;\n\n @State()\n currentSlide = 0;\n\n private links: string[];\n\n @Watch(\"data\")\n watchData(): void {\n this.parseLinks();\n }\n\n componentWillLoad(): void {\n this.parseLinks();\n\n this.setDevice();\n window.addEventListener(\"resize\", this.handleResize.bind(this));\n }\n\n componentDidRender(): void {\n this.setStyle();\n }\n\n private handleResize(): void {\n this.setDevice();\n this.setStyle();\n }\n\n private parseLinks(): void {\n switch (typeof this.data) {\n case \"string\": {\n const parsed = convertJson(this.data) ?? [];\n if (!isStringArray(parsed)) {\n throw new Error(\"Passed data is invalid\");\n }\n\n this.links = parsed;\n break;\n }\n default:\n this.links = this.data;\n break;\n }\n }\n\n private setStyle(): void {\n const refSlides = this.el.shadowRoot.querySelector(\"#slides\") as HTMLElement;\n if (!refSlides) {\n return;\n }\n\n const allImages = this.el.shadowRoot.querySelectorAll(\".slide\");\n const width = this.el.offsetWidth;\n const fullwidth = width * this.links.length;\n\n refSlides.style.width = `${fullwidth}px`;\n refSlides.style.transform = `translate(-${width * this.currentSlide}px)`;\n allImages.forEach((item: HTMLElement) => {\n const img = item.querySelector(\"img\");\n img.style.width = `${width}px`;\n });\n }\n\n private setDevice(): void {\n this.device = getDevice();\n }\n\n private setCurrentSlide(index: number): void {\n this.currentSlide = index;\n }\n\n private getBulletDimension(): number {\n switch (this.device) {\n case Device.MOBILE:\n return 24;\n case Device.TABLET:\n return 32;\n default:\n return 40;\n }\n }\n\n private renderSlides(items: string[]): HTMLElement {\n return (\n <div id=\"slides\">\n {items.map((item: string, i: number) => (\n <div\n id={\"slide\" + i}\n class={`slide ${this.currentSlide !== i && \"hide\"}`}\n >\n <img src={item} />\n </div>\n ))}\n </div>\n );\n }\n\n private renderScroll(direction: \"left\" | \"right\"): HTMLZIconElement {\n let disabled = false,\n nextSlide = this.currentSlide;\n\n if (direction === \"left\") {\n disabled = this.currentSlide === 0;\n nextSlide--;\n } else if (direction === \"right\") {\n disabled = this.currentSlide === this.links.length - 1;\n nextSlide++;\n }\n\n return (\n <z-icon\n class={`scroll ${direction} ${disabled && \"disabled\"}`}\n width={this.getBulletDimension()}\n height={this.getBulletDimension()}\n name={`chevron-${direction}-circle`}\n onClick={() => {\n if (!disabled) {\n this.setCurrentSlide(nextSlide);\n }\n }}\n onKeyUp={(e: KeyboardEvent) =>\n !disabled &&\n handleKeyboardSubmit(e, () => {\n this.setCurrentSlide(nextSlide);\n })\n }\n tabindex={0}\n role=\"button\"\n />\n );\n }\n\n private renderSlideshowMain(): HTMLElement {\n return (\n <main>\n {this.renderScroll(\"left\")}\n {this.renderSlides(this.links)}\n {this.renderScroll(\"right\")}\n </main>\n );\n }\n\n private renderBullet(i: number): HTMLElement {\n return (\n <a\n class={`bullet ${this.currentSlide === i && \"selected\"}`}\n onClick={() => this.setCurrentSlide(i)}\n onKeyUp={(e: KeyboardEvent) => handleKeyboardSubmit(e, () => this.setCurrentSlide(i))}\n tabindex={0}\n role=\"button\"\n ></a>\n );\n }\n\n private renderSlideshowFooter(): HTMLElement {\n return (\n <footer>\n <div class=\"footer-left\">\n <slot name=\"footer-left\" />\n </div>\n <div class=\"footer-center\">\n <div class=\"bullet-container\">{Object.keys(this.links).map((i) => this.renderBullet(parseInt(i)))}</div>\n </div>\n <div class=\"footer-right\">\n <slot name=\"footer-right\" />\n </div>\n </footer>\n );\n }\n\n render(): HTMLElement {\n if (!this.links || !this.links.length) {\n return <div />;\n }\n\n return (\n <div id={this.slideshowid}>\n {this.renderSlideshowMain()}\n {this.renderSlideshowFooter()}\n </div>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}