@zanichelli/albe-web-components 16.4.1 → 17.0.0-RC1

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 (774) hide show
  1. package/CHANGELOG.md +0 -2
  2. package/dist/cjs/{index-22bdf239.js → index-33b64381.js} +3 -3
  3. package/dist/cjs/{index-22bdf239.js.map → index-33b64381.js.map} +1 -1
  4. package/dist/cjs/{index-b26fbd76.js → index-5fe3e314.js} +2 -2
  5. package/dist/cjs/{index-b26fbd76.js.map → index-5fe3e314.js.map} +1 -1
  6. package/dist/cjs/{index-01778132.js → index-675adf8b.js} +2 -2
  7. package/dist/cjs/{index-01778132.js.map → index-675adf8b.js.map} +1 -1
  8. package/dist/cjs/{index-6726b7d2.js → index-8662ab0e.js} +5 -5
  9. package/dist/cjs/{index-6726b7d2.js.map → index-8662ab0e.js.map} +1 -1
  10. package/dist/cjs/index-96af6326.js +12 -4
  11. package/dist/cjs/{index-97f9a3a0.js → index-acf58aff.js} +3 -3
  12. package/dist/cjs/{index-97f9a3a0.js.map → index-acf58aff.js.map} +1 -1
  13. package/dist/cjs/{index-ef486baa.js → index-cfab5bb3.js} +2 -2
  14. package/dist/cjs/{index-ef486baa.js.map → index-cfab5bb3.js.map} +1 -1
  15. package/dist/cjs/{index-daad5eae.js → index-f5ebcaa2.js} +14 -4
  16. package/dist/cjs/index-f5ebcaa2.js.map +1 -0
  17. package/dist/cjs/index.cjs.js +14 -2
  18. package/dist/cjs/index.cjs.js.map +1 -1
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/{utils-4a30b263.js → utils-c95c97b8.js} +2 -2
  21. package/dist/cjs/{utils-4a30b263.js.map → utils-c95c97b8.js.map} +1 -1
  22. package/dist/cjs/{utils-24df887f.js → utils-d08d4b80.js} +2 -2
  23. package/dist/cjs/{utils-24df887f.js.map → utils-d08d4b80.js.map} +1 -1
  24. package/dist/cjs/web-components-library.cjs.js +1 -1
  25. package/dist/cjs/z-accordion.cjs.entry.js +2 -2
  26. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  27. package/dist/cjs/z-anchor-navigation.cjs.entry.js +2 -2
  28. package/dist/cjs/z-app-header-deprecated.cjs.entry.js +2 -2
  29. package/dist/cjs/z-app-header_12.cjs.entry.js +15 -25
  30. package/dist/cjs/z-app-header_12.cjs.entry.js.map +1 -1
  31. package/dist/cjs/z-aria-alert.cjs.entry.js +2 -2
  32. package/dist/cjs/z-avatar.cjs.entry.js +3 -3
  33. package/dist/cjs/z-book-card-app.cjs.entry.js +41 -0
  34. package/dist/cjs/z-book-card-app.cjs.entry.js.map +1 -0
  35. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +138 -0
  36. package/dist/cjs/z-book-card-deprecated.cjs.entry.js.map +1 -0
  37. package/dist/cjs/z-book-card.cjs.entry.js +98 -94
  38. package/dist/cjs/z-book-card.cjs.entry.js.map +1 -1
  39. package/dist/cjs/z-breadcrumb.cjs.entry.js +4 -4
  40. package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
  41. package/dist/cjs/z-card.cjs.entry.js +1 -1
  42. package/dist/cjs/z-carousel.cjs.entry.js +1 -1
  43. package/dist/cjs/z-chip.cjs.entry.js +3 -3
  44. package/dist/cjs/z-combobox.cjs.entry.js +3 -3
  45. package/dist/cjs/z-cover-hero.cjs.entry.js +3 -3
  46. package/dist/cjs/z-date-picker.cjs.entry.js +3 -3
  47. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +13 -7
  48. package/dist/cjs/z-dragdrop-area_2.cjs.entry.js.map +1 -1
  49. package/dist/cjs/z-file-upload.cjs.entry.js +3 -3
  50. package/dist/cjs/z-file.cjs.entry.js +2 -2
  51. package/dist/cjs/z-ghost-loading.cjs.entry.js +1 -1
  52. package/dist/cjs/z-info-box.cjs.entry.js +1 -1
  53. package/dist/cjs/z-info-reveal.cjs.entry.js +2 -2
  54. package/dist/cjs/z-logo.cjs.entry.js +1 -1
  55. package/dist/cjs/z-menu-deprecated.cjs.entry.js +1 -1
  56. package/dist/cjs/z-menu-section-deprecated.cjs.entry.js +1 -1
  57. package/dist/cjs/z-menu-section.cjs.entry.js +2 -2
  58. package/dist/cjs/z-menu.cjs.entry.js +2 -2
  59. package/dist/cjs/z-myz-card-alert.cjs.entry.js +2 -2
  60. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +2 -2
  61. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  62. package/dist/cjs/z-myz-card-footer.cjs.entry.js +2 -2
  63. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  64. package/dist/cjs/z-myz-card-info.cjs.entry.js +3 -3
  65. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  66. package/dist/cjs/z-myz-card_4.cjs.entry.js +5 -5
  67. package/dist/cjs/z-myz-list-item.cjs.entry.js +3 -3
  68. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  69. package/dist/cjs/z-navigation-tabs.cjs.entry.js +3 -3
  70. package/dist/cjs/z-notification.cjs.entry.js +1 -1
  71. package/dist/cjs/z-otp.cjs.entry.js +3 -3
  72. package/dist/cjs/z-pagination.cjs.entry.js +1 -1
  73. package/dist/cjs/z-panel-elem.cjs.entry.js +2 -2
  74. package/dist/cjs/z-popover.cjs.entry.js +2 -2
  75. package/dist/cjs/z-range-picker.cjs.entry.js +5 -5
  76. package/dist/cjs/z-section-title.cjs.entry.js +2 -2
  77. package/dist/cjs/z-select.cjs.entry.js +3 -3
  78. package/dist/cjs/z-skip-to-content.cjs.entry.js +3 -3
  79. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  80. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  81. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  82. package/dist/cjs/z-table.cjs.entry.js +9 -9
  83. package/dist/cjs/z-tbody.cjs.entry.js +1 -1
  84. package/dist/cjs/z-td.cjs.entry.js +2 -2
  85. package/dist/cjs/z-tfoot.cjs.entry.js +1 -1
  86. package/dist/cjs/z-th.cjs.entry.js +2 -2
  87. package/dist/cjs/z-thead.cjs.entry.js +1 -1
  88. package/dist/cjs/z-toast-notification-list.cjs.entry.js +2 -2
  89. package/dist/cjs/z-toast-notification.cjs.entry.js +2 -2
  90. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  91. package/dist/cjs/z-toggle-switch.cjs.entry.js +5 -5
  92. package/dist/cjs/z-tooltip.cjs.entry.js +2 -2
  93. package/dist/cjs/z-tr.cjs.entry.js +5 -5
  94. package/dist/cjs/z-visually-hidden.cjs.entry.js +1 -1
  95. package/dist/collection/beans/index.js +13 -3
  96. package/dist/collection/beans/index.js.map +1 -1
  97. package/dist/collection/collection-manifest.json +5 -3
  98. package/dist/collection/components/book-card/z-book-card/index.js +498 -0
  99. package/dist/collection/components/book-card/z-book-card/index.js.map +1 -0
  100. package/dist/collection/components/book-card/z-book-card/index.stories.js +149 -0
  101. package/dist/collection/components/book-card/z-book-card/index.stories.js.map +1 -0
  102. package/dist/collection/components/book-card/z-book-card/styles.css +201 -0
  103. package/dist/collection/components/book-card/z-book-card-app/index.js +124 -0
  104. package/dist/collection/components/book-card/z-book-card-app/index.js.map +1 -0
  105. package/dist/collection/components/book-card/z-book-card-app/index.stories.js +29 -0
  106. package/dist/collection/components/book-card/z-book-card-app/index.stories.js.map +1 -0
  107. package/dist/collection/components/book-card/z-book-card-app/styles.css +56 -0
  108. package/dist/collection/components/css-components/z-link/styles.css +174 -0
  109. package/dist/collection/components/date-picker/z-date-picker/index.js +1 -1
  110. package/dist/collection/components/date-picker/z-range-picker/index.js +3 -3
  111. package/dist/collection/components/deprecated/z-app-header-deprecated/index.js +1 -1
  112. package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/index.js +16 -16
  113. package/dist/collection/components/deprecated/z-book-card-deprecated/index.js.map +1 -0
  114. package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/index.stories.js +24 -24
  115. package/dist/collection/components/deprecated/z-book-card-deprecated/index.stories.js.map +1 -0
  116. package/dist/collection/components/deprecated/z-menu-deprecated/index.js +1 -1
  117. package/dist/collection/components/deprecated/z-menu-section-deprecated/index.js +1 -1
  118. package/dist/collection/components/file-upload/z-dragdrop-area/index.js +2 -2
  119. package/dist/collection/components/file-upload/z-file/index.js +1 -1
  120. package/dist/collection/components/file-upload/z-file-upload/index.js +1 -1
  121. package/dist/collection/components/list/z-list/index.js +1 -1
  122. package/dist/collection/components/list/z-list-element/index.js +1 -1
  123. package/dist/collection/components/list/z-list-group/index.js +2 -2
  124. package/dist/collection/components/table/cells/z-td/index.js +1 -1
  125. package/dist/collection/components/table/cells/z-th/index.js +1 -1
  126. package/dist/collection/components/table/z-table/index.js +1 -1
  127. package/dist/collection/components/table/z-tbody/index.js +1 -1
  128. package/dist/collection/components/table/z-tfoot/index.js +1 -1
  129. package/dist/collection/components/table/z-thead/index.js +1 -1
  130. package/dist/collection/components/table/z-tr/index.js +1 -1
  131. package/dist/collection/components/z-accordion/index.js +1 -1
  132. package/dist/collection/components/z-anchor-navigation/index.js +1 -1
  133. package/dist/collection/components/z-app-header/index.js +1 -1
  134. package/dist/collection/components/z-aria-alert/index.js +1 -1
  135. package/dist/collection/components/z-avatar/index.js +2 -2
  136. package/dist/collection/components/z-breadcrumb/index.js +2 -2
  137. package/dist/collection/components/z-button-sort/index.js +1 -1
  138. package/dist/collection/components/z-chip/index.js +2 -2
  139. package/dist/collection/components/z-combobox/index.js +1 -1
  140. package/dist/collection/components/z-cover-hero/index.js +2 -2
  141. package/dist/collection/components/z-divider/index.js +1 -1
  142. package/dist/collection/components/z-ghost-loading/index.js +1 -1
  143. package/dist/collection/components/z-icon/index.js +1 -1
  144. package/dist/collection/components/z-info-box/index.js +1 -1
  145. package/dist/collection/components/z-info-reveal/index.js +1 -1
  146. package/dist/collection/components/z-input/index.js +1 -1
  147. package/dist/collection/components/z-input-message/index.js +1 -1
  148. package/dist/collection/components/z-logo/index.js +1 -1
  149. package/dist/collection/components/z-menu-section/index.js +1 -1
  150. package/dist/collection/components/z-modal/index.js +10 -4
  151. package/dist/collection/components/z-modal/index.js.map +1 -1
  152. package/dist/collection/components/z-navigation-tabs/index.js +2 -2
  153. package/dist/collection/components/z-notification/index.js +1 -1
  154. package/dist/collection/components/z-offcanvas/index.js +1 -1
  155. package/dist/collection/components/z-panel-elem/index.js +2 -2
  156. package/dist/collection/components/z-popover/index.js +1 -1
  157. package/dist/collection/components/z-searchbar/index.js +1 -1
  158. package/dist/collection/components/z-section-title/index.js +1 -1
  159. package/dist/collection/components/z-select/index.js +1 -1
  160. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  161. package/dist/collection/components/z-stepper/index.js +1 -1
  162. package/dist/collection/components/z-stepper-item/index.js +1 -1
  163. package/dist/collection/components/z-tag/index.js +2 -2
  164. package/dist/collection/components/z-toast-notification/index.js +1 -1
  165. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  166. package/dist/collection/components/z-toggle-button/index.js +2 -2
  167. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  168. package/dist/collection/components/z-tooltip/index.js +1 -1
  169. package/dist/collection/components/z-visually-hidden/index.js +1 -1
  170. package/dist/collection/constants/iconset.js +0 -10
  171. package/dist/collection/constants/iconset.js.map +1 -1
  172. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  173. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  174. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  175. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  176. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  177. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  178. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  179. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  180. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  181. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  182. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  183. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  184. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  185. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  186. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  187. package/dist/collection/tokens/typography.css +681 -0
  188. package/dist/components/iconset.js +0 -10
  189. package/dist/components/iconset.js.map +1 -1
  190. package/dist/components/index.d.ts +5 -1
  191. package/dist/components/index.js +3 -1
  192. package/dist/components/index.js.map +1 -1
  193. package/dist/components/index10.js +58 -308
  194. package/dist/components/index10.js.map +1 -1
  195. package/dist/components/index11.js +314 -36
  196. package/dist/components/index11.js.map +1 -1
  197. package/dist/components/index12.js +38 -27
  198. package/dist/components/index12.js.map +1 -1
  199. package/dist/components/index13.js +23 -146
  200. package/dist/components/index13.js.map +1 -1
  201. package/dist/components/index14.js +141 -36
  202. package/dist/components/index14.js.map +1 -1
  203. package/dist/components/index15.js +39 -989
  204. package/dist/components/index15.js.map +1 -1
  205. package/dist/components/index16.js +1000 -38
  206. package/dist/components/index16.js.map +1 -1
  207. package/dist/components/index17.js +42 -10
  208. package/dist/components/index17.js.map +1 -1
  209. package/dist/components/index18.js +10 -22
  210. package/dist/components/index18.js.map +1 -1
  211. package/dist/components/index19.js +16 -33
  212. package/dist/components/index19.js.map +1 -1
  213. package/dist/components/index2.js +14 -4
  214. package/dist/components/index2.js.map +1 -1
  215. package/dist/components/index20.js +39 -43
  216. package/dist/components/index20.js.map +1 -1
  217. package/dist/components/index21.js +44 -81
  218. package/dist/components/index21.js.map +1 -1
  219. package/dist/components/index22.js +63 -301
  220. package/dist/components/index22.js.map +1 -1
  221. package/dist/components/index23.js +286 -347
  222. package/dist/components/index23.js.map +1 -1
  223. package/dist/components/index24.js +376 -19
  224. package/dist/components/index24.js.map +1 -1
  225. package/dist/components/index25.js +45 -0
  226. package/dist/components/index25.js.map +1 -0
  227. package/dist/components/index3.js +1 -1
  228. package/dist/components/index5.js +2 -2
  229. package/dist/components/index6.js +1 -1
  230. package/dist/components/index7.js +2 -2
  231. package/dist/components/index8.js +1 -1
  232. package/dist/components/index9.js +1 -1
  233. package/dist/components/z-accordion.js +2 -2
  234. package/dist/components/z-anchor-navigation.js +1 -1
  235. package/dist/components/z-app-header-deprecated.js +9 -9
  236. package/dist/components/z-app-header.js +9 -9
  237. package/dist/components/z-aria-alert.js +1 -1
  238. package/dist/components/z-avatar.js +2 -2
  239. package/dist/components/z-book-card-app.d.ts +11 -0
  240. package/dist/components/z-book-card-app.js +73 -0
  241. package/dist/components/z-book-card-app.js.map +1 -0
  242. package/dist/components/z-book-card-deprecated.d.ts +11 -0
  243. package/dist/components/z-book-card-deprecated.js +175 -0
  244. package/dist/components/z-book-card-deprecated.js.map +1 -0
  245. package/dist/components/z-book-card.js +128 -106
  246. package/dist/components/z-book-card.js.map +1 -1
  247. package/dist/components/z-breadcrumb.js +6 -6
  248. package/dist/components/z-button-sort.js +1 -1
  249. package/dist/components/z-combobox.js +6 -6
  250. package/dist/components/z-cover-hero.js +2 -2
  251. package/dist/components/z-date-picker.js +3 -3
  252. package/dist/components/z-file-upload.js +2 -2
  253. package/dist/components/z-file.js +2 -2
  254. package/dist/components/z-info-box.js +1 -1
  255. package/dist/components/z-info-reveal.js +1 -88
  256. package/dist/components/z-info-reveal.js.map +1 -1
  257. package/dist/components/z-input-message.js +1 -1
  258. package/dist/components/z-input.js +1 -1
  259. package/dist/components/z-list-element.js +1 -1
  260. package/dist/components/z-list-group.js +1 -1
  261. package/dist/components/z-list.js +1 -1
  262. package/dist/components/z-logo.js +1 -1
  263. package/dist/components/z-menu-deprecated.js +1 -1
  264. package/dist/components/z-menu-section-deprecated.js +1 -1
  265. package/dist/components/z-menu-section.js +1 -1
  266. package/dist/components/z-modal.js +1 -1
  267. package/dist/components/z-myz-card-alert.js +1 -1
  268. package/dist/components/z-myz-card-body.js +1 -1
  269. package/dist/components/z-myz-card-cover.js +1 -1
  270. package/dist/components/z-myz-card-dictionary.js +5 -5
  271. package/dist/components/z-myz-card-footer-sections.js +1 -1
  272. package/dist/components/z-myz-card-footer.js +1 -1
  273. package/dist/components/z-myz-card-header.js +1 -1
  274. package/dist/components/z-myz-card-icon.js +1 -1
  275. package/dist/components/z-myz-card-info.js +2 -2
  276. package/dist/components/z-myz-card-list.js +1 -1
  277. package/dist/components/z-myz-card.js +1 -1
  278. package/dist/components/z-myz-list-item.js +1 -1
  279. package/dist/components/z-myz-list.js +2 -2
  280. package/dist/components/z-navigation-tabs.js +2 -2
  281. package/dist/components/z-notification.js +1 -1
  282. package/dist/components/z-offcanvas.js +1 -1
  283. package/dist/components/z-otp.js +3 -3
  284. package/dist/components/z-pagination.js +2 -2
  285. package/dist/components/z-panel-elem.js +2 -2
  286. package/dist/components/z-popover.js +1 -1
  287. package/dist/components/z-range-picker.js +5 -5
  288. package/dist/components/z-searchbar.js +1 -1
  289. package/dist/components/z-section-title.js +1 -1
  290. package/dist/components/z-select.js +7 -7
  291. package/dist/components/z-skip-to-content.js +1 -1
  292. package/dist/components/z-stepper-item.js +1 -1
  293. package/dist/components/z-stepper.js +1 -1
  294. package/dist/components/z-table.js +1 -1
  295. package/dist/components/z-tag.js +1 -1
  296. package/dist/components/z-tbody.js +1 -1
  297. package/dist/components/z-td.js +2 -2
  298. package/dist/components/z-tfoot.js +1 -1
  299. package/dist/components/z-th.js +2 -2
  300. package/dist/components/z-thead.js +1 -1
  301. package/dist/components/z-toast-notification-list.js +1 -1
  302. package/dist/components/z-toast-notification.js +1 -1
  303. package/dist/components/z-toggle-button.js +2 -2
  304. package/dist/components/z-toggle-switch.js +3 -3
  305. package/dist/components/z-tooltip.js +2 -2
  306. package/dist/components/z-tr.js +1 -1
  307. package/dist/components/z-visually-hidden.js +1 -1
  308. package/dist/esm/{index-7b64c875.js → index-350c25c9.js} +5 -5
  309. package/dist/esm/{index-7b64c875.js.map → index-350c25c9.js.map} +1 -1
  310. package/dist/esm/{index-09ff70db.js → index-3f261ba1.js} +2 -2
  311. package/dist/esm/{index-09ff70db.js.map → index-3f261ba1.js.map} +1 -1
  312. package/dist/esm/{index-fe4fc8da.js → index-53b72ad2.js} +2 -2
  313. package/dist/esm/{index-fe4fc8da.js.map → index-53b72ad2.js.map} +1 -1
  314. package/dist/esm/{index-8e5c830a.js → index-608103c2.js} +2 -2
  315. package/dist/esm/{index-8e5c830a.js.map → index-608103c2.js.map} +1 -1
  316. package/dist/esm/{index-681cc2b7.js → index-a93175b6.js} +3 -3
  317. package/dist/esm/{index-681cc2b7.js.map → index-a93175b6.js.map} +1 -1
  318. package/dist/esm/index-c8ceadeb.js +12 -4
  319. package/dist/esm/{index-19b24f63.js → index-cdaab374.js} +3 -3
  320. package/dist/esm/{index-19b24f63.js.map → index-cdaab374.js.map} +1 -1
  321. package/dist/esm/{index-a63060e9.js → index-ee40e66b.js} +15 -5
  322. package/dist/esm/index-ee40e66b.js.map +1 -0
  323. package/dist/esm/index.js +2 -2
  324. package/dist/esm/loader.js +1 -1
  325. package/dist/esm/{utils-5e595d4f.js → utils-a31c16d9.js} +2 -2
  326. package/dist/esm/{utils-5e595d4f.js.map → utils-a31c16d9.js.map} +1 -1
  327. package/dist/esm/{utils-305762b5.js → utils-ed82ce58.js} +2 -2
  328. package/dist/esm/{utils-305762b5.js.map → utils-ed82ce58.js.map} +1 -1
  329. package/dist/esm/web-components-library.js +1 -1
  330. package/dist/esm/z-accordion.entry.js +2 -2
  331. package/dist/esm/z-alert.entry.js +1 -1
  332. package/dist/esm/z-anchor-navigation.entry.js +2 -2
  333. package/dist/esm/z-app-header-deprecated.entry.js +2 -2
  334. package/dist/esm/z-app-header_12.entry.js +15 -25
  335. package/dist/esm/z-app-header_12.entry.js.map +1 -1
  336. package/dist/esm/z-aria-alert.entry.js +2 -2
  337. package/dist/esm/z-avatar.entry.js +3 -3
  338. package/dist/esm/z-book-card-app.entry.js +37 -0
  339. package/dist/esm/z-book-card-app.entry.js.map +1 -0
  340. package/dist/esm/z-book-card-deprecated.entry.js +134 -0
  341. package/dist/esm/z-book-card-deprecated.entry.js.map +1 -0
  342. package/dist/esm/z-book-card.entry.js +99 -95
  343. package/dist/esm/z-book-card.entry.js.map +1 -1
  344. package/dist/esm/z-breadcrumb.entry.js +4 -4
  345. package/dist/esm/z-button-sort.entry.js +1 -1
  346. package/dist/esm/z-card.entry.js +1 -1
  347. package/dist/esm/z-carousel.entry.js +1 -1
  348. package/dist/esm/z-chip.entry.js +3 -3
  349. package/dist/esm/z-combobox.entry.js +3 -3
  350. package/dist/esm/z-cover-hero.entry.js +3 -3
  351. package/dist/esm/z-date-picker.entry.js +3 -3
  352. package/dist/esm/z-dragdrop-area_2.entry.js +13 -7
  353. package/dist/esm/z-dragdrop-area_2.entry.js.map +1 -1
  354. package/dist/esm/z-file-upload.entry.js +3 -3
  355. package/dist/esm/z-file.entry.js +2 -2
  356. package/dist/esm/z-ghost-loading.entry.js +1 -1
  357. package/dist/esm/z-info-box.entry.js +1 -1
  358. package/dist/esm/z-info-reveal.entry.js +2 -2
  359. package/dist/esm/z-logo.entry.js +1 -1
  360. package/dist/esm/z-menu-deprecated.entry.js +1 -1
  361. package/dist/esm/z-menu-section-deprecated.entry.js +1 -1
  362. package/dist/esm/z-menu-section.entry.js +2 -2
  363. package/dist/esm/z-menu.entry.js +2 -2
  364. package/dist/esm/z-myz-card-alert.entry.js +2 -2
  365. package/dist/esm/z-myz-card-dictionary.entry.js +2 -2
  366. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  367. package/dist/esm/z-myz-card-footer.entry.js +2 -2
  368. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  369. package/dist/esm/z-myz-card-info.entry.js +3 -3
  370. package/dist/esm/z-myz-card-list.entry.js +1 -1
  371. package/dist/esm/z-myz-card_4.entry.js +5 -5
  372. package/dist/esm/z-myz-list-item.entry.js +3 -3
  373. package/dist/esm/z-myz-list.entry.js +1 -1
  374. package/dist/esm/z-navigation-tabs.entry.js +3 -3
  375. package/dist/esm/z-notification.entry.js +1 -1
  376. package/dist/esm/z-otp.entry.js +3 -3
  377. package/dist/esm/z-pagination.entry.js +1 -1
  378. package/dist/esm/z-panel-elem.entry.js +2 -2
  379. package/dist/esm/z-popover.entry.js +2 -2
  380. package/dist/esm/z-range-picker.entry.js +5 -5
  381. package/dist/esm/z-section-title.entry.js +2 -2
  382. package/dist/esm/z-select.entry.js +3 -3
  383. package/dist/esm/z-skip-to-content.entry.js +3 -3
  384. package/dist/esm/z-slideshow.entry.js +2 -2
  385. package/dist/esm/z-stepper-item.entry.js +1 -1
  386. package/dist/esm/z-stepper.entry.js +1 -1
  387. package/dist/esm/z-table.entry.js +9 -9
  388. package/dist/esm/z-tbody.entry.js +1 -1
  389. package/dist/esm/z-td.entry.js +2 -2
  390. package/dist/esm/z-tfoot.entry.js +1 -1
  391. package/dist/esm/z-th.entry.js +2 -2
  392. package/dist/esm/z-thead.entry.js +1 -1
  393. package/dist/esm/z-toast-notification-list.entry.js +2 -2
  394. package/dist/esm/z-toast-notification.entry.js +2 -2
  395. package/dist/esm/z-toggle-button.entry.js +2 -2
  396. package/dist/esm/z-toggle-switch.entry.js +5 -5
  397. package/dist/esm/z-tooltip.entry.js +2 -2
  398. package/dist/esm/z-tr.entry.js +5 -5
  399. package/dist/esm/z-visually-hidden.entry.js +1 -1
  400. package/dist/types/beans/index.d.ts +16 -0
  401. package/dist/types/components/book-card/z-book-card/index.d.ts +68 -0
  402. package/dist/types/components/book-card/z-book-card/index.stories.d.ts +77 -0
  403. package/dist/types/components/book-card/z-book-card-app/index.d.ts +25 -0
  404. package/dist/types/components/book-card/z-book-card-app/index.stories.d.ts +22 -0
  405. package/dist/types/components/{z-book-card → deprecated/z-book-card-deprecated}/index.d.ts +6 -6
  406. package/dist/types/components/{z-book-card → deprecated/z-book-card-deprecated}/index.stories.d.ts +9 -9
  407. package/dist/types/components/z-modal/index.d.ts +1 -0
  408. package/dist/types/components.d.ts +234 -14
  409. package/dist/types/constants/iconset.d.ts +0 -20
  410. package/dist/web-components-library/index.esm.js +1 -1
  411. package/dist/web-components-library/index.esm.js.map +1 -1
  412. package/dist/web-components-library/p-01b73978.entry.js +2 -0
  413. package/dist/web-components-library/{p-9a48e70b.entry.js → p-03fff274.entry.js} +2 -2
  414. package/dist/web-components-library/{p-ab45ba6d.js → p-05f6053f.js} +2 -2
  415. package/{www/build/p-0778e75d.entry.js → dist/web-components-library/p-0623cb0c.entry.js} +2 -2
  416. package/dist/web-components-library/{p-910fd48c.entry.js → p-09f6f502.entry.js} +2 -2
  417. package/dist/web-components-library/p-0cd10649.entry.js +2 -0
  418. package/dist/web-components-library/{p-90908f36.js → p-10607a39.js} +2 -2
  419. package/{www/build/p-63488a2b.entry.js → dist/web-components-library/p-11977cf4.entry.js} +2 -2
  420. package/{www/build/p-b7af7fa4.entry.js → dist/web-components-library/p-14cb6906.entry.js} +2 -2
  421. package/dist/web-components-library/p-15cb27a5.entry.js +2 -0
  422. package/{www/build/p-a9805b32.entry.js → dist/web-components-library/p-1630e240.entry.js} +2 -2
  423. package/dist/web-components-library/{p-e0a0bfb2.entry.js → p-1c243d34.entry.js} +2 -2
  424. package/dist/web-components-library/{p-140b5d8f.entry.js → p-201742d8.entry.js} +2 -2
  425. package/dist/web-components-library/p-2dd5e7f6.entry.js +2 -0
  426. package/dist/web-components-library/{p-13366542.js → p-2eddce0d.js} +2 -2
  427. package/dist/web-components-library/{p-0b100bd7.entry.js → p-2fbfd156.entry.js} +2 -2
  428. package/dist/web-components-library/{p-6ed39f10.entry.js → p-36935fa0.entry.js} +2 -2
  429. package/dist/web-components-library/{p-8b24d801.entry.js → p-38e8c15d.entry.js} +2 -2
  430. package/dist/web-components-library/p-3aa8d377.js +2 -0
  431. package/dist/web-components-library/p-4bf0a07d.entry.js +2 -0
  432. package/{www/build/p-48b2e967.entry.js → dist/web-components-library/p-5226fa9e.entry.js} +2 -2
  433. package/dist/web-components-library/p-554f3de2.entry.js +2 -0
  434. package/dist/web-components-library/{p-ceb4403d.entry.js → p-563e86c0.entry.js} +2 -2
  435. package/{www/build/p-e38df1a4.entry.js → dist/web-components-library/p-56f76e8b.entry.js} +3 -3
  436. package/dist/web-components-library/{p-f7ef289b.entry.js → p-57a479e2.entry.js} +2 -2
  437. package/dist/web-components-library/{p-be2405e2.entry.js → p-5b677d6c.entry.js} +2 -2
  438. package/{www/build/p-3618e227.entry.js → dist/web-components-library/p-5f220178.entry.js} +2 -2
  439. package/dist/web-components-library/{p-273f3c53.entry.js → p-6a5429eb.entry.js} +2 -2
  440. package/dist/web-components-library/{p-6e92df75.entry.js → p-6af64b62.entry.js} +2 -2
  441. package/dist/web-components-library/{p-03cd1ead.entry.js → p-6c24917e.entry.js} +2 -2
  442. package/dist/web-components-library/p-7073453b.entry.js +2 -0
  443. package/dist/web-components-library/p-7073453b.entry.js.map +1 -0
  444. package/dist/web-components-library/{p-350f84c5.entry.js → p-72463e1e.entry.js} +2 -2
  445. package/dist/web-components-library/{p-eb3985d0.entry.js → p-7af2be0f.entry.js} +2 -2
  446. package/dist/web-components-library/p-7b2938cf.js +2 -0
  447. package/dist/web-components-library/{p-0c489c4b.entry.js → p-7c4d7591.entry.js} +2 -2
  448. package/dist/web-components-library/p-88ce9c5e.entry.js +2 -0
  449. package/dist/web-components-library/{p-228db53f.entry.js → p-8aa0f4d0.entry.js} +2 -2
  450. package/dist/web-components-library/{p-db340bc6.entry.js → p-8abbecc6.entry.js} +2 -2
  451. package/{www/build/p-b1039f3d.entry.js → dist/web-components-library/p-8afbf9c1.entry.js} +2 -2
  452. package/dist/web-components-library/p-8cbc8d17.entry.js +2 -0
  453. package/dist/web-components-library/p-8cbc8d17.entry.js.map +1 -0
  454. package/{www/build/p-c62825e1.js → dist/web-components-library/p-8ed50cbe.js} +2 -2
  455. package/{www/build/p-d847bfcd.entry.js → dist/web-components-library/p-8f9ee669.entry.js} +2 -2
  456. package/dist/web-components-library/p-94ac3a8e.js +2 -0
  457. package/{www/build/p-b222df41.entry.js → dist/web-components-library/p-a0512ae0.entry.js} +2 -2
  458. package/{www/build/p-a4aaffd3.entry.js → dist/web-components-library/p-a1d6f996.entry.js} +2 -2
  459. package/dist/web-components-library/p-a23151fa.entry.js +2 -0
  460. package/dist/web-components-library/{p-ec740313.entry.js.map → p-a23151fa.entry.js.map} +1 -1
  461. package/{www/build/p-03e85eac.entry.js → dist/web-components-library/p-a75e11fd.entry.js} +2 -2
  462. package/{www/build/p-417ed850.entry.js → dist/web-components-library/p-a95bf077.entry.js} +3 -3
  463. package/dist/web-components-library/{p-f3037ac9.entry.js → p-aad8da85.entry.js} +2 -2
  464. package/dist/web-components-library/p-ac953072.entry.js +2 -0
  465. package/dist/web-components-library/p-ad2d1d63.entry.js +2 -0
  466. package/dist/web-components-library/p-b34993de.js +2 -0
  467. package/dist/web-components-library/p-b34993de.js.map +1 -0
  468. package/dist/web-components-library/{p-c451b4d7.entry.js → p-b3bb1d8e.entry.js} +2 -2
  469. package/dist/web-components-library/p-b6ef8bc3.entry.js +2 -0
  470. package/dist/web-components-library/p-b6ef8bc3.entry.js.map +1 -0
  471. package/dist/web-components-library/{p-ecae1a7a.entry.js → p-b7c2d03b.entry.js} +2 -2
  472. package/dist/web-components-library/p-b82f7ecc.entry.js +2 -0
  473. package/dist/web-components-library/p-b8a14060.entry.js +2 -0
  474. package/dist/web-components-library/p-b8a14060.entry.js.map +1 -0
  475. package/dist/web-components-library/p-ba289415.entry.js +2 -0
  476. package/dist/web-components-library/{p-eb5a148f.entry.js → p-be082561.entry.js} +2 -2
  477. package/{www/build/p-985e61f5.entry.js → dist/web-components-library/p-bfd756c2.entry.js} +2 -2
  478. package/dist/web-components-library/p-bfd756c2.entry.js.map +1 -0
  479. package/dist/web-components-library/{p-456f984f.js → p-cab91789.js} +2 -2
  480. package/dist/web-components-library/{p-b6ea478b.entry.js → p-cb7f0092.entry.js} +2 -2
  481. package/dist/web-components-library/{p-571f1e1d.entry.js → p-cda77971.entry.js} +2 -2
  482. package/{www/build/p-51f5e5e6.entry.js → dist/web-components-library/p-cf0f4b17.entry.js} +2 -2
  483. package/dist/web-components-library/p-df10fbaa.entry.js +2 -0
  484. package/dist/web-components-library/{p-d13520c2.entry.js → p-e0c8a601.entry.js} +2 -2
  485. package/dist/web-components-library/{p-7c20b8f6.entry.js → p-e83dc145.entry.js} +2 -2
  486. package/{www/build/p-db04ba75.entry.js → dist/web-components-library/p-ea74101f.entry.js} +2 -2
  487. package/{www/build/p-b3272516.entry.js → dist/web-components-library/p-ed091723.entry.js} +2 -2
  488. package/dist/web-components-library/p-eda4a138.entry.js +2 -0
  489. package/dist/web-components-library/{p-ef8a7250.entry.js → p-f160f987.entry.js} +2 -2
  490. package/dist/web-components-library/{p-38d5e74f.entry.js → p-f3cecece.entry.js} +2 -2
  491. package/dist/web-components-library/{p-09552f18.entry.js → p-f64c0f65.entry.js} +2 -2
  492. package/{www/build/p-47137e39.entry.js → dist/web-components-library/p-f90de798.entry.js} +2 -2
  493. package/dist/web-components-library/web-components-library.esm.js +1 -1
  494. package/dist/web-components-library/web-components-library.esm.js.map +1 -1
  495. package/package.json +1 -1
  496. package/react/components.d.ts +2 -0
  497. package/react/components.js +4 -2
  498. package/react/components.js.map +1 -1
  499. package/www/build/index.esm.js +1 -1
  500. package/www/build/index.esm.js.map +1 -1
  501. package/www/build/p-01b73978.entry.js +2 -0
  502. package/www/build/{p-9a48e70b.entry.js → p-03fff274.entry.js} +2 -2
  503. package/www/build/{p-ab45ba6d.js → p-05f6053f.js} +2 -2
  504. package/{dist/web-components-library/p-0778e75d.entry.js → www/build/p-0623cb0c.entry.js} +2 -2
  505. package/www/build/{p-910fd48c.entry.js → p-09f6f502.entry.js} +2 -2
  506. package/www/build/p-0cd10649.entry.js +2 -0
  507. package/www/build/{p-90908f36.js → p-10607a39.js} +2 -2
  508. package/{dist/web-components-library/p-63488a2b.entry.js → www/build/p-11977cf4.entry.js} +2 -2
  509. package/{dist/web-components-library/p-b7af7fa4.entry.js → www/build/p-14cb6906.entry.js} +2 -2
  510. package/www/build/p-15cb27a5.entry.js +2 -0
  511. package/{dist/web-components-library/p-a9805b32.entry.js → www/build/p-1630e240.entry.js} +2 -2
  512. package/www/build/p-19e60f95.js +2 -0
  513. package/www/build/{p-e0a0bfb2.entry.js → p-1c243d34.entry.js} +2 -2
  514. package/www/build/{p-140b5d8f.entry.js → p-201742d8.entry.js} +2 -2
  515. package/www/build/p-2dd5e7f6.entry.js +2 -0
  516. package/www/build/{p-13366542.js → p-2eddce0d.js} +2 -2
  517. package/www/build/{p-0b100bd7.entry.js → p-2fbfd156.entry.js} +2 -2
  518. package/www/build/{p-6ed39f10.entry.js → p-36935fa0.entry.js} +2 -2
  519. package/www/build/{p-8b24d801.entry.js → p-38e8c15d.entry.js} +2 -2
  520. package/www/build/p-3aa8d377.js +2 -0
  521. package/www/build/p-4bf0a07d.entry.js +2 -0
  522. package/{dist/web-components-library/p-48b2e967.entry.js → www/build/p-5226fa9e.entry.js} +2 -2
  523. package/www/build/p-554f3de2.entry.js +2 -0
  524. package/www/build/{p-ceb4403d.entry.js → p-563e86c0.entry.js} +2 -2
  525. package/{dist/web-components-library/p-e38df1a4.entry.js → www/build/p-56f76e8b.entry.js} +3 -3
  526. package/www/build/{p-f7ef289b.entry.js → p-57a479e2.entry.js} +2 -2
  527. package/www/build/{p-be2405e2.entry.js → p-5b677d6c.entry.js} +2 -2
  528. package/{dist/web-components-library/p-3618e227.entry.js → www/build/p-5f220178.entry.js} +2 -2
  529. package/www/build/{p-273f3c53.entry.js → p-6a5429eb.entry.js} +2 -2
  530. package/www/build/{p-6e92df75.entry.js → p-6af64b62.entry.js} +2 -2
  531. package/www/build/{p-03cd1ead.entry.js → p-6c24917e.entry.js} +2 -2
  532. package/www/build/p-7073453b.entry.js +2 -0
  533. package/www/build/p-7073453b.entry.js.map +1 -0
  534. package/www/build/{p-350f84c5.entry.js → p-72463e1e.entry.js} +2 -2
  535. package/www/build/{p-eb3985d0.entry.js → p-7af2be0f.entry.js} +2 -2
  536. package/www/build/p-7b2938cf.js +2 -0
  537. package/www/build/{p-0c489c4b.entry.js → p-7c4d7591.entry.js} +2 -2
  538. package/www/build/p-88ce9c5e.entry.js +2 -0
  539. package/www/build/{p-228db53f.entry.js → p-8aa0f4d0.entry.js} +2 -2
  540. package/www/build/{p-db340bc6.entry.js → p-8abbecc6.entry.js} +2 -2
  541. package/{dist/web-components-library/p-b1039f3d.entry.js → www/build/p-8afbf9c1.entry.js} +2 -2
  542. package/www/build/p-8cbc8d17.entry.js +2 -0
  543. package/www/build/p-8cbc8d17.entry.js.map +1 -0
  544. package/{dist/web-components-library/p-c62825e1.js → www/build/p-8ed50cbe.js} +2 -2
  545. package/{dist/web-components-library/p-d847bfcd.entry.js → www/build/p-8f9ee669.entry.js} +2 -2
  546. package/www/build/p-94ac3a8e.js +2 -0
  547. package/{dist/web-components-library/p-b222df41.entry.js → www/build/p-a0512ae0.entry.js} +2 -2
  548. package/{dist/web-components-library/p-a4aaffd3.entry.js → www/build/p-a1d6f996.entry.js} +2 -2
  549. package/www/build/p-a23151fa.entry.js +2 -0
  550. package/www/build/{p-ec740313.entry.js.map → p-a23151fa.entry.js.map} +1 -1
  551. package/{dist/web-components-library/p-03e85eac.entry.js → www/build/p-a75e11fd.entry.js} +2 -2
  552. package/{dist/web-components-library/p-417ed850.entry.js → www/build/p-a95bf077.entry.js} +3 -3
  553. package/www/build/{p-f3037ac9.entry.js → p-aad8da85.entry.js} +2 -2
  554. package/www/build/p-ac953072.entry.js +2 -0
  555. package/www/build/p-ad2d1d63.entry.js +2 -0
  556. package/www/build/p-b34993de.js +2 -0
  557. package/www/build/p-b34993de.js.map +1 -0
  558. package/www/build/{p-c451b4d7.entry.js → p-b3bb1d8e.entry.js} +2 -2
  559. package/www/build/p-b6ef8bc3.entry.js +2 -0
  560. package/www/build/p-b6ef8bc3.entry.js.map +1 -0
  561. package/www/build/{p-ecae1a7a.entry.js → p-b7c2d03b.entry.js} +2 -2
  562. package/www/build/p-b82f7ecc.entry.js +2 -0
  563. package/www/build/p-b8a14060.entry.js +2 -0
  564. package/www/build/p-b8a14060.entry.js.map +1 -0
  565. package/www/build/p-ba289415.entry.js +2 -0
  566. package/www/build/{p-eb5a148f.entry.js → p-be082561.entry.js} +2 -2
  567. package/{dist/web-components-library/p-985e61f5.entry.js → www/build/p-bfd756c2.entry.js} +2 -2
  568. package/www/build/p-bfd756c2.entry.js.map +1 -0
  569. package/www/build/{p-456f984f.js → p-cab91789.js} +2 -2
  570. package/www/build/{p-b6ea478b.entry.js → p-cb7f0092.entry.js} +2 -2
  571. package/www/build/{p-571f1e1d.entry.js → p-cda77971.entry.js} +2 -2
  572. package/{dist/web-components-library/p-51f5e5e6.entry.js → www/build/p-cf0f4b17.entry.js} +2 -2
  573. package/www/build/p-df10fbaa.entry.js +2 -0
  574. package/www/build/{p-d13520c2.entry.js → p-e0c8a601.entry.js} +2 -2
  575. package/www/build/{p-7c20b8f6.entry.js → p-e83dc145.entry.js} +2 -2
  576. package/{dist/web-components-library/p-db04ba75.entry.js → www/build/p-ea74101f.entry.js} +2 -2
  577. package/{dist/web-components-library/p-b3272516.entry.js → www/build/p-ed091723.entry.js} +2 -2
  578. package/www/build/p-eda4a138.entry.js +2 -0
  579. package/www/build/{p-ef8a7250.entry.js → p-f160f987.entry.js} +2 -2
  580. package/www/build/{p-38d5e74f.entry.js → p-f3cecece.entry.js} +2 -2
  581. package/www/build/{p-09552f18.entry.js → p-f64c0f65.entry.js} +2 -2
  582. package/{dist/web-components-library/p-47137e39.entry.js → www/build/p-f90de798.entry.js} +2 -2
  583. package/www/build/web-components-library.esm.js +1 -1
  584. package/www/build/web-components-library.esm.js.map +1 -1
  585. package/www/index.html +1 -1
  586. package/www/pages/book-cards.html +75 -573
  587. package/dist/cjs/index-daad5eae.js.map +0 -1
  588. package/dist/collection/components/z-book-card/index.js.map +0 -1
  589. package/dist/collection/components/z-book-card/index.stories.js.map +0 -1
  590. package/dist/esm/index-a63060e9.js.map +0 -1
  591. package/dist/web-components-library/p-06b8521b.entry.js +0 -2
  592. package/dist/web-components-library/p-11df2c0a.entry.js +0 -2
  593. package/dist/web-components-library/p-11df2c0a.entry.js.map +0 -1
  594. package/dist/web-components-library/p-16719dff.entry.js +0 -2
  595. package/dist/web-components-library/p-17d2d60b.entry.js +0 -2
  596. package/dist/web-components-library/p-1c24255c.js +0 -2
  597. package/dist/web-components-library/p-1c24255c.js.map +0 -1
  598. package/dist/web-components-library/p-291319ed.entry.js +0 -2
  599. package/dist/web-components-library/p-32d603b8.js +0 -2
  600. package/dist/web-components-library/p-3d97dedf.entry.js +0 -2
  601. package/dist/web-components-library/p-6297dfaa.entry.js +0 -2
  602. package/dist/web-components-library/p-6b759395.entry.js +0 -2
  603. package/dist/web-components-library/p-6b791915.entry.js +0 -2
  604. package/dist/web-components-library/p-8855aef4.js +0 -2
  605. package/dist/web-components-library/p-8d443cac.entry.js +0 -2
  606. package/dist/web-components-library/p-985e61f5.entry.js.map +0 -1
  607. package/dist/web-components-library/p-9c36d574.entry.js +0 -2
  608. package/dist/web-components-library/p-a167bdd5.js +0 -2
  609. package/dist/web-components-library/p-af7e5773.entry.js +0 -2
  610. package/dist/web-components-library/p-b20bfb34.entry.js +0 -2
  611. package/dist/web-components-library/p-b20bfb34.entry.js.map +0 -1
  612. package/dist/web-components-library/p-ec740313.entry.js +0 -2
  613. package/dist/web-components-library/p-fb2eb3c0.entry.js +0 -2
  614. package/dist/web-components-library/p-febc4982.entry.js +0 -2
  615. package/www/build/p-06b8521b.entry.js +0 -2
  616. package/www/build/p-11df2c0a.entry.js +0 -2
  617. package/www/build/p-11df2c0a.entry.js.map +0 -1
  618. package/www/build/p-16719dff.entry.js +0 -2
  619. package/www/build/p-17d2d60b.entry.js +0 -2
  620. package/www/build/p-1c24255c.js +0 -2
  621. package/www/build/p-1c24255c.js.map +0 -1
  622. package/www/build/p-1fcf4111.js +0 -2
  623. package/www/build/p-291319ed.entry.js +0 -2
  624. package/www/build/p-32d603b8.js +0 -2
  625. package/www/build/p-3d97dedf.entry.js +0 -2
  626. package/www/build/p-6297dfaa.entry.js +0 -2
  627. package/www/build/p-6b759395.entry.js +0 -2
  628. package/www/build/p-6b791915.entry.js +0 -2
  629. package/www/build/p-8855aef4.js +0 -2
  630. package/www/build/p-8d443cac.entry.js +0 -2
  631. package/www/build/p-985e61f5.entry.js.map +0 -1
  632. package/www/build/p-9c36d574.entry.js +0 -2
  633. package/www/build/p-a167bdd5.js +0 -2
  634. package/www/build/p-af7e5773.entry.js +0 -2
  635. package/www/build/p-b20bfb34.entry.js +0 -2
  636. package/www/build/p-b20bfb34.entry.js.map +0 -1
  637. package/www/build/p-ec740313.entry.js +0 -2
  638. package/www/build/p-fb2eb3c0.entry.js +0 -2
  639. package/www/build/p-febc4982.entry.js +0 -2
  640. /package/dist/collection/components/{z-book-card → deprecated/z-book-card-deprecated}/styles.css +0 -0
  641. /package/dist/web-components-library/{p-06b8521b.entry.js.map → p-01b73978.entry.js.map} +0 -0
  642. /package/dist/web-components-library/{p-9a48e70b.entry.js.map → p-03fff274.entry.js.map} +0 -0
  643. /package/dist/web-components-library/{p-ab45ba6d.js.map → p-05f6053f.js.map} +0 -0
  644. /package/dist/web-components-library/{p-0778e75d.entry.js.map → p-0623cb0c.entry.js.map} +0 -0
  645. /package/dist/web-components-library/{p-910fd48c.entry.js.map → p-09f6f502.entry.js.map} +0 -0
  646. /package/dist/web-components-library/{p-291319ed.entry.js.map → p-0cd10649.entry.js.map} +0 -0
  647. /package/dist/web-components-library/{p-90908f36.js.map → p-10607a39.js.map} +0 -0
  648. /package/dist/web-components-library/{p-63488a2b.entry.js.map → p-11977cf4.entry.js.map} +0 -0
  649. /package/dist/web-components-library/{p-b7af7fa4.entry.js.map → p-14cb6906.entry.js.map} +0 -0
  650. /package/dist/web-components-library/{p-16719dff.entry.js.map → p-15cb27a5.entry.js.map} +0 -0
  651. /package/dist/web-components-library/{p-a9805b32.entry.js.map → p-1630e240.entry.js.map} +0 -0
  652. /package/dist/web-components-library/{p-e0a0bfb2.entry.js.map → p-1c243d34.entry.js.map} +0 -0
  653. /package/dist/web-components-library/{p-140b5d8f.entry.js.map → p-201742d8.entry.js.map} +0 -0
  654. /package/dist/web-components-library/{p-17d2d60b.entry.js.map → p-2dd5e7f6.entry.js.map} +0 -0
  655. /package/dist/web-components-library/{p-13366542.js.map → p-2eddce0d.js.map} +0 -0
  656. /package/dist/web-components-library/{p-0b100bd7.entry.js.map → p-2fbfd156.entry.js.map} +0 -0
  657. /package/dist/web-components-library/{p-6ed39f10.entry.js.map → p-36935fa0.entry.js.map} +0 -0
  658. /package/dist/web-components-library/{p-8b24d801.entry.js.map → p-38e8c15d.entry.js.map} +0 -0
  659. /package/dist/web-components-library/{p-32d603b8.js.map → p-3aa8d377.js.map} +0 -0
  660. /package/dist/web-components-library/{p-6297dfaa.entry.js.map → p-4bf0a07d.entry.js.map} +0 -0
  661. /package/dist/web-components-library/{p-48b2e967.entry.js.map → p-5226fa9e.entry.js.map} +0 -0
  662. /package/dist/web-components-library/{p-6b759395.entry.js.map → p-554f3de2.entry.js.map} +0 -0
  663. /package/dist/web-components-library/{p-ceb4403d.entry.js.map → p-563e86c0.entry.js.map} +0 -0
  664. /package/dist/web-components-library/{p-e38df1a4.entry.js.map → p-56f76e8b.entry.js.map} +0 -0
  665. /package/dist/web-components-library/{p-f7ef289b.entry.js.map → p-57a479e2.entry.js.map} +0 -0
  666. /package/dist/web-components-library/{p-be2405e2.entry.js.map → p-5b677d6c.entry.js.map} +0 -0
  667. /package/dist/web-components-library/{p-3618e227.entry.js.map → p-5f220178.entry.js.map} +0 -0
  668. /package/dist/web-components-library/{p-273f3c53.entry.js.map → p-6a5429eb.entry.js.map} +0 -0
  669. /package/dist/web-components-library/{p-6e92df75.entry.js.map → p-6af64b62.entry.js.map} +0 -0
  670. /package/dist/web-components-library/{p-03cd1ead.entry.js.map → p-6c24917e.entry.js.map} +0 -0
  671. /package/dist/web-components-library/{p-350f84c5.entry.js.map → p-72463e1e.entry.js.map} +0 -0
  672. /package/dist/web-components-library/{p-eb3985d0.entry.js.map → p-7af2be0f.entry.js.map} +0 -0
  673. /package/dist/web-components-library/{p-8855aef4.js.map → p-7b2938cf.js.map} +0 -0
  674. /package/dist/web-components-library/{p-0c489c4b.entry.js.map → p-7c4d7591.entry.js.map} +0 -0
  675. /package/dist/web-components-library/{p-6b791915.entry.js.map → p-88ce9c5e.entry.js.map} +0 -0
  676. /package/dist/web-components-library/{p-228db53f.entry.js.map → p-8aa0f4d0.entry.js.map} +0 -0
  677. /package/dist/web-components-library/{p-db340bc6.entry.js.map → p-8abbecc6.entry.js.map} +0 -0
  678. /package/dist/web-components-library/{p-b1039f3d.entry.js.map → p-8afbf9c1.entry.js.map} +0 -0
  679. /package/dist/web-components-library/{p-c62825e1.js.map → p-8ed50cbe.js.map} +0 -0
  680. /package/dist/web-components-library/{p-d847bfcd.entry.js.map → p-8f9ee669.entry.js.map} +0 -0
  681. /package/dist/web-components-library/{p-a167bdd5.js.map → p-94ac3a8e.js.map} +0 -0
  682. /package/dist/web-components-library/{p-b222df41.entry.js.map → p-a0512ae0.entry.js.map} +0 -0
  683. /package/dist/web-components-library/{p-a4aaffd3.entry.js.map → p-a1d6f996.entry.js.map} +0 -0
  684. /package/dist/web-components-library/{p-03e85eac.entry.js.map → p-a75e11fd.entry.js.map} +0 -0
  685. /package/dist/web-components-library/{p-417ed850.entry.js.map → p-a95bf077.entry.js.map} +0 -0
  686. /package/dist/web-components-library/{p-f3037ac9.entry.js.map → p-aad8da85.entry.js.map} +0 -0
  687. /package/dist/web-components-library/{p-9c36d574.entry.js.map → p-ac953072.entry.js.map} +0 -0
  688. /package/dist/web-components-library/{p-8d443cac.entry.js.map → p-ad2d1d63.entry.js.map} +0 -0
  689. /package/dist/web-components-library/{p-c451b4d7.entry.js.map → p-b3bb1d8e.entry.js.map} +0 -0
  690. /package/dist/web-components-library/{p-ecae1a7a.entry.js.map → p-b7c2d03b.entry.js.map} +0 -0
  691. /package/dist/web-components-library/{p-3d97dedf.entry.js.map → p-b82f7ecc.entry.js.map} +0 -0
  692. /package/dist/web-components-library/{p-febc4982.entry.js.map → p-ba289415.entry.js.map} +0 -0
  693. /package/dist/web-components-library/{p-eb5a148f.entry.js.map → p-be082561.entry.js.map} +0 -0
  694. /package/dist/web-components-library/{p-456f984f.js.map → p-cab91789.js.map} +0 -0
  695. /package/dist/web-components-library/{p-b6ea478b.entry.js.map → p-cb7f0092.entry.js.map} +0 -0
  696. /package/dist/web-components-library/{p-571f1e1d.entry.js.map → p-cda77971.entry.js.map} +0 -0
  697. /package/dist/web-components-library/{p-51f5e5e6.entry.js.map → p-cf0f4b17.entry.js.map} +0 -0
  698. /package/dist/web-components-library/{p-fb2eb3c0.entry.js.map → p-df10fbaa.entry.js.map} +0 -0
  699. /package/dist/web-components-library/{p-d13520c2.entry.js.map → p-e0c8a601.entry.js.map} +0 -0
  700. /package/dist/web-components-library/{p-7c20b8f6.entry.js.map → p-e83dc145.entry.js.map} +0 -0
  701. /package/dist/web-components-library/{p-db04ba75.entry.js.map → p-ea74101f.entry.js.map} +0 -0
  702. /package/dist/web-components-library/{p-b3272516.entry.js.map → p-ed091723.entry.js.map} +0 -0
  703. /package/dist/web-components-library/{p-af7e5773.entry.js.map → p-eda4a138.entry.js.map} +0 -0
  704. /package/dist/web-components-library/{p-ef8a7250.entry.js.map → p-f160f987.entry.js.map} +0 -0
  705. /package/dist/web-components-library/{p-38d5e74f.entry.js.map → p-f3cecece.entry.js.map} +0 -0
  706. /package/dist/web-components-library/{p-09552f18.entry.js.map → p-f64c0f65.entry.js.map} +0 -0
  707. /package/dist/web-components-library/{p-47137e39.entry.js.map → p-f90de798.entry.js.map} +0 -0
  708. /package/www/build/{p-06b8521b.entry.js.map → p-01b73978.entry.js.map} +0 -0
  709. /package/www/build/{p-9a48e70b.entry.js.map → p-03fff274.entry.js.map} +0 -0
  710. /package/www/build/{p-ab45ba6d.js.map → p-05f6053f.js.map} +0 -0
  711. /package/www/build/{p-0778e75d.entry.js.map → p-0623cb0c.entry.js.map} +0 -0
  712. /package/www/build/{p-910fd48c.entry.js.map → p-09f6f502.entry.js.map} +0 -0
  713. /package/www/build/{p-291319ed.entry.js.map → p-0cd10649.entry.js.map} +0 -0
  714. /package/www/build/{p-90908f36.js.map → p-10607a39.js.map} +0 -0
  715. /package/www/build/{p-63488a2b.entry.js.map → p-11977cf4.entry.js.map} +0 -0
  716. /package/www/build/{p-b7af7fa4.entry.js.map → p-14cb6906.entry.js.map} +0 -0
  717. /package/www/build/{p-16719dff.entry.js.map → p-15cb27a5.entry.js.map} +0 -0
  718. /package/www/build/{p-a9805b32.entry.js.map → p-1630e240.entry.js.map} +0 -0
  719. /package/www/build/{p-e0a0bfb2.entry.js.map → p-1c243d34.entry.js.map} +0 -0
  720. /package/www/build/{p-140b5d8f.entry.js.map → p-201742d8.entry.js.map} +0 -0
  721. /package/www/build/{p-17d2d60b.entry.js.map → p-2dd5e7f6.entry.js.map} +0 -0
  722. /package/www/build/{p-13366542.js.map → p-2eddce0d.js.map} +0 -0
  723. /package/www/build/{p-0b100bd7.entry.js.map → p-2fbfd156.entry.js.map} +0 -0
  724. /package/www/build/{p-6ed39f10.entry.js.map → p-36935fa0.entry.js.map} +0 -0
  725. /package/www/build/{p-8b24d801.entry.js.map → p-38e8c15d.entry.js.map} +0 -0
  726. /package/www/build/{p-32d603b8.js.map → p-3aa8d377.js.map} +0 -0
  727. /package/www/build/{p-6297dfaa.entry.js.map → p-4bf0a07d.entry.js.map} +0 -0
  728. /package/www/build/{p-48b2e967.entry.js.map → p-5226fa9e.entry.js.map} +0 -0
  729. /package/www/build/{p-6b759395.entry.js.map → p-554f3de2.entry.js.map} +0 -0
  730. /package/www/build/{p-ceb4403d.entry.js.map → p-563e86c0.entry.js.map} +0 -0
  731. /package/www/build/{p-e38df1a4.entry.js.map → p-56f76e8b.entry.js.map} +0 -0
  732. /package/www/build/{p-f7ef289b.entry.js.map → p-57a479e2.entry.js.map} +0 -0
  733. /package/www/build/{p-be2405e2.entry.js.map → p-5b677d6c.entry.js.map} +0 -0
  734. /package/www/build/{p-3618e227.entry.js.map → p-5f220178.entry.js.map} +0 -0
  735. /package/www/build/{p-273f3c53.entry.js.map → p-6a5429eb.entry.js.map} +0 -0
  736. /package/www/build/{p-6e92df75.entry.js.map → p-6af64b62.entry.js.map} +0 -0
  737. /package/www/build/{p-03cd1ead.entry.js.map → p-6c24917e.entry.js.map} +0 -0
  738. /package/www/build/{p-350f84c5.entry.js.map → p-72463e1e.entry.js.map} +0 -0
  739. /package/www/build/{p-eb3985d0.entry.js.map → p-7af2be0f.entry.js.map} +0 -0
  740. /package/www/build/{p-8855aef4.js.map → p-7b2938cf.js.map} +0 -0
  741. /package/www/build/{p-0c489c4b.entry.js.map → p-7c4d7591.entry.js.map} +0 -0
  742. /package/www/build/{p-6b791915.entry.js.map → p-88ce9c5e.entry.js.map} +0 -0
  743. /package/www/build/{p-228db53f.entry.js.map → p-8aa0f4d0.entry.js.map} +0 -0
  744. /package/www/build/{p-db340bc6.entry.js.map → p-8abbecc6.entry.js.map} +0 -0
  745. /package/www/build/{p-b1039f3d.entry.js.map → p-8afbf9c1.entry.js.map} +0 -0
  746. /package/www/build/{p-c62825e1.js.map → p-8ed50cbe.js.map} +0 -0
  747. /package/www/build/{p-d847bfcd.entry.js.map → p-8f9ee669.entry.js.map} +0 -0
  748. /package/www/build/{p-a167bdd5.js.map → p-94ac3a8e.js.map} +0 -0
  749. /package/www/build/{p-b222df41.entry.js.map → p-a0512ae0.entry.js.map} +0 -0
  750. /package/www/build/{p-a4aaffd3.entry.js.map → p-a1d6f996.entry.js.map} +0 -0
  751. /package/www/build/{p-03e85eac.entry.js.map → p-a75e11fd.entry.js.map} +0 -0
  752. /package/www/build/{p-417ed850.entry.js.map → p-a95bf077.entry.js.map} +0 -0
  753. /package/www/build/{p-f3037ac9.entry.js.map → p-aad8da85.entry.js.map} +0 -0
  754. /package/www/build/{p-9c36d574.entry.js.map → p-ac953072.entry.js.map} +0 -0
  755. /package/www/build/{p-8d443cac.entry.js.map → p-ad2d1d63.entry.js.map} +0 -0
  756. /package/www/build/{p-c451b4d7.entry.js.map → p-b3bb1d8e.entry.js.map} +0 -0
  757. /package/www/build/{p-ecae1a7a.entry.js.map → p-b7c2d03b.entry.js.map} +0 -0
  758. /package/www/build/{p-3d97dedf.entry.js.map → p-b82f7ecc.entry.js.map} +0 -0
  759. /package/www/build/{p-febc4982.entry.js.map → p-ba289415.entry.js.map} +0 -0
  760. /package/www/build/{p-eb5a148f.entry.js.map → p-be082561.entry.js.map} +0 -0
  761. /package/www/build/{p-456f984f.js.map → p-cab91789.js.map} +0 -0
  762. /package/www/build/{p-b6ea478b.entry.js.map → p-cb7f0092.entry.js.map} +0 -0
  763. /package/www/build/{p-571f1e1d.entry.js.map → p-cda77971.entry.js.map} +0 -0
  764. /package/www/build/{p-51f5e5e6.entry.js.map → p-cf0f4b17.entry.js.map} +0 -0
  765. /package/www/build/{p-fb2eb3c0.entry.js.map → p-df10fbaa.entry.js.map} +0 -0
  766. /package/www/build/{p-d13520c2.entry.js.map → p-e0c8a601.entry.js.map} +0 -0
  767. /package/www/build/{p-7c20b8f6.entry.js.map → p-e83dc145.entry.js.map} +0 -0
  768. /package/www/build/{p-db04ba75.entry.js.map → p-ea74101f.entry.js.map} +0 -0
  769. /package/www/build/{p-b3272516.entry.js.map → p-ed091723.entry.js.map} +0 -0
  770. /package/www/build/{p-af7e5773.entry.js.map → p-eda4a138.entry.js.map} +0 -0
  771. /package/www/build/{p-ef8a7250.entry.js.map → p-f160f987.entry.js.map} +0 -0
  772. /package/www/build/{p-38d5e74f.entry.js.map → p-f3cecece.entry.js.map} +0 -0
  773. /package/www/build/{p-09552f18.entry.js.map → p-f64c0f65.entry.js.map} +0 -0
  774. /package/www/build/{p-47137e39.entry.js.map → p-f90de798.entry.js.map} +0 -0
@@ -13,8 +13,12 @@ export { ZAriaAlert as ZAriaAlert } from '../types/components/z-aria-alert/index
13
13
  export { defineCustomElement as defineCustomElementZAriaAlert } from './z-aria-alert';
14
14
  export { ZAvatar as ZAvatar } from '../types/components/z-avatar/index';
15
15
  export { defineCustomElement as defineCustomElementZAvatar } from './z-avatar';
16
- export { ZBookCard as ZBookCard } from '../types/components/z-book-card/index';
16
+ export { ZBookCard as ZBookCard } from '../types/components/book-card/z-book-card/index';
17
17
  export { defineCustomElement as defineCustomElementZBookCard } from './z-book-card';
18
+ export { ZBookCardApp as ZBookCardApp } from '../types/components/book-card/z-book-card-app/index';
19
+ export { defineCustomElement as defineCustomElementZBookCardApp } from './z-book-card-app';
20
+ export { ZBookCardDeprecated as ZBookCardDeprecated } from '../types/components/deprecated/z-book-card-deprecated/index';
21
+ export { defineCustomElement as defineCustomElementZBookCardDeprecated } from './z-book-card-deprecated';
18
22
  export { ZBreadcrumb as ZBreadcrumb } from '../types/components/z-breadcrumb/index';
19
23
  export { defineCustomElement as defineCustomElementZBreadcrumb } from './z-breadcrumb';
20
24
  export { ZButton as ZButton } from '../types/components/z-button/index';
@@ -1,6 +1,6 @@
1
1
  export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
2
  import { c as colorFromId } from './utils.js';
3
- export { Y as AccordionVariant, o as AlertType, A as AvatarSize, X as BookCardVariant, V as BreadcrumbHomepageVariant, U as BreadcrumbPathStyle, d as ButtonSize, c as ButtonType, B as ButtonVariant, C as CardVariant, Q as CarouselArrowsPosition, R as CarouselProgressMode, e as ControlSize, M as CoverHeroContentPosition, J as CoverHeroVariant, p as Device, h as DividerOrientation, D as DividerSize, j as ExpandableListButtonAlign, E as ExpandableListStyle, H as InfoRevealPosition, f as InputStatus, I as InputType, g as KeyboardCode, K as KeyboardKeyCode, k as LabelPosition, L as LicenseType, l as ListDividerType, i as ListSize, m as ListType, b as NavigationTabsKeyboardEvents, N as NavigationTabsOrientation, a as NavigationTabsSize, n as NotificationType, O as OffCanvasVariant, P as PopoverPosition, S as SortDirection, T as ThemeVariant, q as ToastNotification, s as ToastNotificationPosition, r as ToastNotificationTransition, u as TransitionDirection, W as VisibilityCondition, t as ZAriaAlertMode, w as ZChipType, y as ZDatePickerMode, z as ZDatePickerModeValue, F as ZDatePickerPosition, v as ZFileUploadType, G as ZRangePickerMode, x as ZSectionTitleDividerPosition, Z as ZTableRowExpandedType } from './index2.js';
3
+ export { $ as AccordionVariant, o as AlertType, A as AvatarSize, Y as BookCardDeprecatedVariant, _ as BookCardTagStatus, X as BookCardVariant, V as BreadcrumbHomepageVariant, U as BreadcrumbPathStyle, d as ButtonSize, c as ButtonType, B as ButtonVariant, C as CardVariant, Q as CarouselArrowsPosition, R as CarouselProgressMode, e as ControlSize, M as CoverHeroContentPosition, J as CoverHeroVariant, p as Device, h as DividerOrientation, D as DividerSize, j as ExpandableListButtonAlign, E as ExpandableListStyle, H as InfoRevealPosition, f as InputStatus, I as InputType, g as KeyboardCode, K as KeyboardKeyCode, k as LabelPosition, L as LicenseType, l as ListDividerType, i as ListSize, m as ListType, b as NavigationTabsKeyboardEvents, N as NavigationTabsOrientation, a as NavigationTabsSize, n as NotificationType, O as OffCanvasVariant, P as PopoverPosition, S as SortDirection, T as ThemeVariant, q as ToastNotification, s as ToastNotificationPosition, r as ToastNotificationTransition, u as TransitionDirection, W as VisibilityCondition, t as ZAriaAlertMode, w as ZChipType, y as ZDatePickerMode, z as ZDatePickerModeValue, F as ZDatePickerPosition, v as ZFileUploadType, G as ZRangePickerMode, x as ZSectionTitleDividerPosition, Z as ZTableRowExpandedType } from './index2.js';
4
4
  export { ZAccordion, defineCustomElement as defineCustomElementZAccordion } from './z-accordion.js';
5
5
  export { ZAlert, defineCustomElement as defineCustomElementZAlert } from './z-alert.js';
6
6
  export { ZAnchorNavigation, defineCustomElement as defineCustomElementZAnchorNavigation } from './z-anchor-navigation.js';
@@ -9,6 +9,8 @@ export { ZAppHeaderDeprecated, defineCustomElement as defineCustomElementZAppHea
9
9
  export { ZAriaAlert, defineCustomElement as defineCustomElementZAriaAlert } from './z-aria-alert.js';
10
10
  export { ZAvatar, defineCustomElement as defineCustomElementZAvatar } from './z-avatar.js';
11
11
  export { ZBookCard, defineCustomElement as defineCustomElementZBookCard } from './z-book-card.js';
12
+ export { ZBookCardApp, defineCustomElement as defineCustomElementZBookCardApp } from './z-book-card-app.js';
13
+ export { ZBookCardDeprecated, defineCustomElement as defineCustomElementZBookCardDeprecated } from './z-book-card-deprecated.js';
12
14
  export { ZBreadcrumb, defineCustomElement as defineCustomElementZBreadcrumb } from './z-breadcrumb.js';
13
15
  export { ZButton, defineCustomElement as defineCustomElementZButton } from './z-button.js';
14
16
  export { ZButtonSort, defineCustomElement as defineCustomElementZButtonSort } from './z-button-sort.js';
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEM,KAAK,GAAG;IACZ,WAAW;;;;;","names":[],"sources":["src/index.ts"],"sourcesContent":["import {colorFromId} from \"./utils/utils\";\n\nconst UTILS = {\n colorFromId,\n};\n\nexport * from \"./beans\";\nexport * from \"./components\";\nexport {UTILS as Utils};\n"],"version":3}
1
+ {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEM,KAAK,GAAG;IACZ,WAAW;;;;;","names":[],"sources":["src/index.ts"],"sourcesContent":["import {colorFromId} from \"./utils/utils\";\n\nconst UTILS = {\n colorFromId,\n};\n\nexport * from \"./beans\";\nexport * from \"./components\";\nexport {UTILS as Utils};\n"],"version":3}
@@ -1,335 +1,85 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { k as LabelPosition, e as ControlSize, I as InputType } from './index2.js';
3
- import { r as randomId, b as boolean } from './utils.js';
4
- import { d as defineCustomElement$2 } from './index9.js';
5
- import { d as defineCustomElement$1 } from './index11.js';
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { H as InfoRevealPosition, e as ControlSize } from './index2.js';
3
+ import { d as defineCustomElement$1 } from './index9.js';
6
4
 
7
- const stylesCss = ".sc-z-input-h{display:inline-block;width:inherit}input.sc-z-input::-ms-clear,input.sc-z-input::-ms-reveal{display:none}.sc-z-input-h input.sc-z-input::-ms-clear,.sc-z-input-h input.sc-z-input::-ms-reveal{display:none}input.sc-z-input,textarea.sc-z-input,.textarea-wrapper.sc-z-input{box-sizing:border-box;border:var(--border-size-small) solid var(--gray700);background:var(--color-input-field01);border-radius:var(--border-radius-small);color:var(--gray900);fill:var(--gray900);font-family:var(--font-family-sans);font-size:var(--font-size-3);font-weight:var(--font-rg);outline:none}[size=\"small\"].sc-z-input-h input.sc-z-input,[size=\"small\"].sc-z-input-h textarea.sc-z-input,[size=\"small\"].sc-z-input-h .textarea-wrapper.sc-z-input,[size=\"x-small\"].sc-z-input-h input.sc-z-input,[size=\"x-small\"].sc-z-input-h textarea.sc-z-input,[size=\"x-small\"].sc-z-input-h .textarea-wrapper.sc-z-input{font-size:var(--font-size-2)}.cursor-select.sc-z-input-h input.sc-z-input{cursor:pointer}.sc-z-input-h:not(.active-select) input.sc-z-input:focus:focus-visible,.sc-z-input-h:not([readonly=\"true\"]) .textarea-wrapper.sc-z-input:focus-within{box-shadow:var(--shadow-focus-primary)}input.sc-z-input:focus:focus-visible,textarea.sc-z-input:focus:focus-visible{color:var(--color-input-field02)}.active-select.sc-z-input-h input.sc-z-input{border:var(--border-size-small) solid var(--color-primary01)}.cursor-select.sc-z-input-h input.sc-z-input:focus:focus-visible{box-shadow:var(--shadow-focus-primary)}.sc-z-input-h input[readonly].sc-z-input:focus:focus-visible{box-shadow:none}.filled.sc-z-input{border-color:var(--color-surface05)}.input-success.sc-z-input{border-color:var(--color-success01);background:var(--color-success-inverse);fill:var(--color-success01)}.input-error.sc-z-input{border-color:var(--color-error01);background:var(--color-error-inverse);fill:var(--color-error01)}.input-warning.sc-z-input{border-color:var(--color-warning01);background:var(--color-warning-inverse);fill:var(--color-warning01)}input.sc-z-input:not([readonly]):hover,.textarea-wrapper.sc-z-input:hover{outline:var(--border-size-medium) solid var(--gray700);outline-offset:-2px}.sc-z-input-h:not(.active-select) input[readonly].sc-z-input,.readonly.sc-z-input{border-color:var(--color-disabled01);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) .textarea-wrapper.sc-z-input,[disabled].sc-z-input-h:not([disabled=\"false\"]) z-icon.sc-z-input{border-color:var(--color-disabled01);box-shadow:none;color:var(--color-disabled03);fill:var(--color-disabled01);pointer-events:none}[disabled].sc-z-input-h:not([disabled=\"false\"]) input.sc-z-input:hover{border-width:var(--border-size-small)}input.sc-z-input::placeholder,textarea.sc-z-input::placeholder{color:var(--color-text05)}.sc-z-input::-webkit-textarea-placeholder{color:var(--color-text05)}.sc-z-input:-ms-textarea-placeholder{color:var(--color-text05)}.sc-z-input::placeholder{color:var(--color-text05)}label.input-label.sc-z-input{display:block;padding-bottom:var(--space-unit);color:var(--color-default-text);font-family:var(--font-family-sans);font-size:var(--font-size-1);font-weight:var(--font-sb);text-align:left;text-transform:uppercase}[disabled].sc-z-input-h:not([disabled=\"false\"]) label.input-label.sc-z-input{color:var(--color-disabled03)}.text-wrapper.sc-z-input>div.sc-z-input{position:relative;z-index:1;fill:var(--gray900)}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{width:100%;height:calc(var(--space-unit) * 5.5);box-sizing:border-box;padding:0 calc(var(--space-unit) * 1.5);margin:0}[size=\"small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4.5)}[size=\"x-small\"].sc-z-input-h .text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input{height:calc(var(--space-unit) * 4)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.sc-z-input,.text-wrapper.sc-z-input>div.sc-z-input>input.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 5.25)}.text-wrapper.sc-z-input>div.sc-z-input>input.has-icon.has-clear-icon.sc-z-input{padding-right:calc(var(--space-unit) * 8)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input{position:absolute;z-index:2;top:50%;right:calc(var(--space-unit) * 1.5);display:flex;pointer-events:none;transform:translateY(-50%)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input{padding:0;border:0;background:none;color:inherit;font:inherit;pointer-events:initial}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input+button.icon-button.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.hidden.sc-z-input{display:none}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.reset-icon.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.toggle-password-icon.sc-z-input{cursor:pointer}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.sc-z-input{--z-icon-width:18px;--z-icon-height:18px;display:block}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.small.sc-z-input,.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input>z-icon.x-small.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}.text-wrapper.sc-z-input .icons-wrapper.sc-z-input>button.icon-button.sc-z-input:focus{box-shadow:var(--shadow-focus-primary);outline:none !important}.text-wrapper.sc-z-input>div.sc-z-input>input.sc-z-input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;-webkit-text-fill-color:currentcolor}.textarea-wrapper.sc-z-input{padding:calc(var(--space-unit) * 1.5);scrollbar-color:var(--color-primary01) transparent}textarea.sc-z-input::-webkit-scrollbar{width:10px;background:linear-gradient(to right, transparent 0 3px, var(--gray200) 3px 7px, transparent 7px 10px);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-track{background-color:transparent}textarea.sc-z-input::-webkit-scrollbar-thumb{width:10px;background-color:var(--color-primary01);border-radius:var(--border-radius)}textarea.sc-z-input::-webkit-scrollbar-thumb:hover{background-color:var(--color-hover-primary)}textarea.sc-z-input{width:100%;min-height:132px;padding:0;border:none;margin:0;resize:none}.radio-wrapper.sc-z-input,.checkbox-wrapper.sc-z-input{position:relative;display:inline-flex;flex-direction:row;align-items:center;color:var(--color-default-text);fill:var(--color-primary01);font-family:var(--font-family-sans)}.radio-wrapper.sc-z-input:hover,.checkbox-wrapper.sc-z-input:hover{color:var(--color-hover-primary);fill:currentcolor}.radio-wrapper.sc-z-input>input.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input{position:absolute;z-index:-1;opacity:0;pointer-events:none}.radio-wrapper.sc-z-input .radio-label.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{display:inline-flex;align-items:center;margin:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1;text-transform:inherit}.radio-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input input.sc-z-input:not(:disabled)+.checkbox-label.sc-z-input{cursor:pointer}.radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{cursor:pointer;fill:inherit}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:16px;--z-icon-height:16px}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-2)}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input z-icon.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input z-icon.sc-z-input{--z-icon-width:14px;--z-icon-height:14px}[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.sc-z-input{font-size:var(--font-size-1)}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input{flex-direction:row}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input{flex-direction:row-reverse}.radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:var(--space-unit)}.radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,.checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:var(--space-unit)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.after.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.after.sc-z-input>span.sc-z-input{margin-left:calc(var(--space-unit) * 0.5)}[size=\"small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .radio-wrapper.sc-z-input .radio-label.before.sc-z-input>span.sc-z-input,[size=\"x-small\"].sc-z-input-h .checkbox-wrapper.sc-z-input .checkbox-label.before.sc-z-input>span.sc-z-input{margin-right:calc(var(--space-unit) * 0.5)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input{border-radius:50%}.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{border-radius:var(--border-radius-small)}.radio-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:focus:focus-visible+.checkbox-label.sc-z-input>z-icon.sc-z-input{box-shadow:var(--shadow-focus-primary)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input{color:var(--color-disabled03)}.radio-wrapper.sc-z-input>input.sc-z-input:disabled+.radio-label.sc-z-input>z-icon.sc-z-input,.checkbox-wrapper.sc-z-input>input.sc-z-input:disabled+.checkbox-label.sc-z-input>z-icon.sc-z-input{cursor:default;fill:var(--color-disabled01)}";
8
- const ZInputStyle0 = stylesCss;
5
+ const stylesCss = ":host{--z-info-reveal-panel-width:384px;--trigger-size:44px;position:relative}:host *{box-sizing:border-box}button{--trigger-icon-size:calc(var(--trigger-size) / 2);display:flex;align-items:center;justify-content:center;padding:0;border:none;background-color:transparent;cursor:pointer;font-family:inherit;letter-spacing:inherit}button:focus:focus-visible{box-shadow:var(--shadow-focus-primary);outline:none}.z-info-reveal-trigger{min-width:var(--trigger-size);height:var(--trigger-size);padding:calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);background-color:var(--color-surface05);border-radius:var(--border-radius);color:var(--color-text-inverse);column-gap:var(--space-unit);font-weight:var(--font-sb);line-height:1rem}:host([size=\"big\"]) .z-info-reveal-trigger{font-size:var(--font-size-2)}:host([size=\"small\"]) .z-info-reveal-trigger{--trigger-size:36px;font-size:var(--font-size-2)}:host([size=\"x-small\"]) .z-info-reveal-trigger{--trigger-size:32px;padding:var(--space-unit);font-size:var(--font-size-1)}:host>.z-info-reveal-trigger z-icon{--z-icon-width:var(--trigger-icon-size);--z-icon-height:var(--trigger-icon-size);display:flex;fill:var(--color-inverse-icon)}:host([size=\"small\"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:18px}:host([size=\"x-small\"])>.z-info-reveal-trigger z-icon{--trigger-icon-size:16px}.z-info-reveal-panel{position:absolute;display:flex;width:var(--z-info-reveal-panel-width);height:fit-content;align-items:flex-start;padding:calc(var(--space-unit) * 1.5);background-color:var(--color-surface05);border-radius:var(--border-radius);box-shadow:var(--shadow-4);color:var(--color-text-inverse);column-gap:var(--space-unit)}.z-info-reveal-panel[hidden]{display:none}:host([position=\"top_left\"]) .z-info-reveal-panel,:host([position=\"top_right\"]) .z-info-reveal-panel{top:0}:host([position=\"bottom_left\"]) .z-info-reveal-panel,:host([position=\"bottom_right\"]) .z-info-reveal-panel{bottom:0}:host([position=\"top_right\"]) .z-info-reveal-panel,:host([position=\"bottom_right\"]) .z-info-reveal-panel{right:0}:host([position=\"top_left\"]) .z-info-reveal-panel,:host([position=\"bottom_left\"]) .z-info-reveal-panel{left:0}.z-info-reveal-panel .z-info-reveal-close{margin-left:auto}.z-info-reveal-panel z-icon{fill:var(--color-inverse-icon)}@media (max-width: 767px){.z-info-reveal-panel{position:fixed;top:auto !important;bottom:auto !important;left:var(--grid-margin) !important;width:calc(100% - (var(--grid-margin) * 2)) !important;max-width:none !important;margin-top:calc(var(--trigger-size) * -1)}}";
6
+ const ZInfoRevealStyle0 = stylesCss;
9
7
 
10
- const ZInput = /*@__PURE__*/ proxyCustomElement(class ZInput extends HTMLElement {
8
+ const ZInfoReveal = /*@__PURE__*/ proxyCustomElement(class ZInfoReveal extends HTMLElement {
11
9
  constructor() {
12
10
  super();
13
11
  this.__registerHost();
14
- this.inputChange = createEvent(this, "inputChange", 7);
15
- this.startTyping = createEvent(this, "startTyping", 7);
16
- this.stopTyping = createEvent(this, "stopTyping", 7);
17
- this.inputCheck = createEvent(this, "inputCheck", 7);
18
- this.inputFocus = createEvent(this, "inputFocus", 7);
19
- this.inputBlur = createEvent(this, "inputBlur", 7);
20
- this.typingtimeout = 300;
21
- this.htmlid = `id-${randomId()}`;
22
- this.type = undefined;
23
- this.name = undefined;
12
+ this.__attachShadow();
13
+ this.icon = "informationsource";
14
+ this.position = InfoRevealPosition.BOTTOM_RIGHT;
24
15
  this.label = undefined;
25
- this.ariaLabel = "";
26
- this.ariaExpanded = "";
27
- this.ariaControls = undefined;
28
- this.ariaAutocomplete = undefined;
29
- this.ariaActivedescendant = undefined;
30
- this.value = undefined;
31
- this.disabled = false;
32
- this.readonly = false;
33
- this.required = false;
34
- this.checked = false;
35
- this.placeholder = undefined;
36
- this.htmltitle = undefined;
37
- this.status = undefined;
38
- this.message = true;
39
- this.labelPosition = LabelPosition.RIGHT;
40
- this.autocomplete = undefined;
41
- this.role = "";
42
- this.hasclearicon = true;
43
- this.icon = undefined;
44
- this.min = undefined;
45
- this.minlength = undefined;
46
- this.max = undefined;
47
- this.maxlength = undefined;
48
- this.step = undefined;
49
- this.pattern = undefined;
16
+ this.ariaLabel = "Apri pannello informazioni";
50
17
  this.size = ControlSize.BIG;
51
- this.isTyping = false;
52
- this.passwordHidden = true;
18
+ this.open = false;
53
19
  }
54
- inputCheckListener(e) {
55
- const data = e.detail;
56
- switch (this.type) {
57
- case InputType.RADIO:
58
- if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {
59
- this.checked = false;
60
- }
61
- break;
62
- }
63
- }
64
- /** get checked status */
65
- async isChecked() {
66
- switch (this.type) {
67
- case InputType.CHECKBOX:
68
- case InputType.RADIO:
69
- return this.checked;
70
- default:
71
- console.warn("`isChecked` method is only available for type `checkbox` and `radio`");
72
- return false;
73
- }
74
- }
75
- emitInputChange(value) {
76
- if (!this.isTyping) {
77
- this.emitStartTyping();
78
- }
79
- let validity;
80
- if (this.type === InputType.TEXTAREA) {
81
- validity = this.getValidity("textarea");
82
- }
83
- else {
84
- validity = this.getValidity("input");
85
- }
86
- this.value = value;
87
- this.inputChange.emit({ value, validity });
88
- clearTimeout(this.timer);
89
- this.timer = setTimeout(() => {
90
- this.emitStopTyping(this.value, validity);
91
- }, this.typingtimeout);
92
- }
93
- emitStartTyping() {
94
- this.isTyping = true;
95
- this.startTyping.emit();
96
- }
97
- emitStopTyping(value, validity) {
98
- this.isTyping = false;
99
- this.stopTyping.emit({
100
- value: value,
101
- validity: validity,
102
- });
103
- }
104
- emitInputCheck(checked) {
105
- this.inputCheck.emit({
106
- id: this.htmlid,
107
- checked: checked,
108
- type: this.type,
109
- name: this.name,
110
- value: this.value,
111
- validity: this.getValidity("input"),
112
- });
113
- }
114
- emitInputFocus() {
115
- this.inputFocus.emit({ id: this.htmlid });
116
- }
117
- emitInputBlur() {
118
- this.inputBlur.emit({ id: this.htmlid });
119
- }
120
- getValidity(type) {
121
- const input = this.hostElement.querySelector(type);
122
- return input.validity;
123
- }
124
- /* START text/password/email/number */
125
- getTextAttributes() {
126
- return {
127
- id: this.htmlid,
128
- name: this.name,
129
- placeholder: this.placeholder,
130
- value: this.value,
131
- disabled: this.disabled,
132
- readonly: this.readonly,
133
- required: this.required,
134
- title: this.htmltitle,
135
- minlength: this.minlength,
136
- maxlength: this.maxlength,
137
- class: {
138
- [`input-${this.status}`]: !!this.status,
139
- filled: !!this.value,
140
- },
141
- autocomplete: this.autocomplete,
142
- onInput: (e) => this.emitInputChange(e.target.value),
143
- };
144
- }
145
- getNumberAttributes(type) {
146
- if (type != InputType.NUMBER) {
147
- return;
148
- }
149
- return {
150
- min: this.min,
151
- max: this.max,
152
- step: this.step,
153
- };
154
- }
155
- getPatternAttribute(type) {
156
- if (type != InputType.PASSWORD &&
157
- type != InputType.TEXT &&
158
- type != InputType.TEL &&
159
- type != InputType.SEARCH &&
160
- type != InputType.URL &&
161
- type != InputType.EMAIL) {
162
- return;
163
- }
164
- return {
165
- pattern: this.pattern,
166
- };
167
- }
168
- getRoleAttribute() {
169
- return this.role ? { role: this.role } : {};
170
- }
171
- getAriaAttrubutes() {
172
- const expanded = this.ariaExpanded ? { "aria-expanded": this.ariaExpanded } : {};
173
- const controls = this.ariaControls ? { "aria-controls": this.ariaControls } : {};
174
- const autocomplete = this.ariaAutocomplete ? { "aria-autocomplete": this.ariaAutocomplete } : {};
175
- const activedescendant = this.ariaActivedescendant ? { "aria-activedescendant": this.ariaActivedescendant } : {};
176
- return Object.assign(Object.assign(Object.assign(Object.assign({}, expanded), controls), autocomplete), activedescendant);
177
- }
178
- getFocusBlurAttributes() {
179
- return {
180
- onFocus: () => this.emitInputFocus(),
181
- onBlur: () => this.emitInputBlur(),
182
- };
183
- }
184
- renderInputText(type = InputType.TEXT) {
185
- const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
186
- const attr = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type)), ariaLabel), this.getRoleAttribute()), this.getAriaAttrubutes()), this.getFocusBlurAttributes());
187
- if (this.icon || type === InputType.PASSWORD) {
188
- Object.assign(attr.class, { "has-icon": true });
189
- }
190
- if (this.hasclearicon && type != InputType.NUMBER) {
191
- Object.assign(attr.class, { "has-clear-icon": true });
192
- }
193
- return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", null, h("input", Object.assign({ type: type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type }, attr, { ref: (el) => (this.inputRef = el) })), this.renderIcons()), this.renderMessage()));
194
- }
195
- renderLabel() {
196
- if (!this.label) {
197
- return;
198
- }
199
- return (h("label", { class: "input-label body-5-sb", id: `${this.htmlid}_label`, htmlFor: this.htmlid }, this.label));
200
- }
201
- renderIcons() {
202
- return (h("span", { class: "icons-wrapper" }, this.renderResetIcon(), this.renderIcon()));
203
- }
204
- renderIcon() {
205
- if (this.type === InputType.PASSWORD) {
206
- return this.renderShowHidePassword();
207
- }
208
- if (!this.icon) {
20
+ /**
21
+ * Adjust the position of the info panel to prevent exiting the viewport.
22
+ */
23
+ adjustPanelPosition() {
24
+ if (!this.open || !this.panel) {
209
25
  return;
210
26
  }
211
- return (h("button", { type: "button", class: "icon-button input-icon", tabIndex: -1, "aria-hidden": "true" }, h("z-icon", { name: this.icon, class: this.size })));
212
- }
213
- renderResetIcon() {
214
- let hidden = false;
215
- if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {
216
- hidden = true;
217
- }
218
- return (h("button", { type: "button", class: `icon-button reset-icon ${hidden ? "hidden" : ""}`, "aria-label": "cancella il contenuto dell'input", onClick: () => {
219
- this.inputRef.value = "";
220
- this.emitInputChange("");
221
- } }, h("z-icon", { name: "multiply", class: this.size })));
222
- }
223
- renderShowHidePassword() {
224
- return (h("button", { type: "button", class: "icon-button toggle-password-icon", disabled: this.disabled, "aria-label": this.passwordHidden ? "mostra password" : "nascondi password", onClick: () => (this.passwordHidden = !this.passwordHidden) }, h("z-icon", { name: this.passwordHidden ? "view-filled" : "view-off-filled", class: this.size })));
225
- }
226
- renderMessage() {
227
- if (boolean(this.message) === false) {
228
- return;
27
+ const rect = this.host.getBoundingClientRect();
28
+ const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue("--grid-margin"), 10);
29
+ const pageWidth = document.documentElement.offsetWidth;
30
+ // Available space for the info panel to grow towards the edge of the page, based on the `position` prop.
31
+ const availableSpace = Math.round((this.position.includes("left") ? pageWidth - rect.left : rect.right) - gridMargin);
32
+ this.panel.style.maxWidth = `${availableSpace}px`;
33
+ }
34
+ /**
35
+ * Toggle the open state of the info panel.
36
+ */
37
+ togglePanel() {
38
+ this.open = !this.open;
39
+ }
40
+ /**
41
+ * Close the info panel.
42
+ */
43
+ closePanel() {
44
+ this.open = false;
45
+ }
46
+ handleEscapeKey(event) {
47
+ if (event.key === "Escape" && this.open) {
48
+ this.closePanel();
229
49
  }
230
- return (h("z-input-message", { message: boolean(this.message) === true ? undefined : this.message, status: this.status, class: this.size }));
231
- }
232
- /* END text/password/email/number */
233
- /* START textarea */
234
- renderTextarea() {
235
- const attributes = this.getTextAttributes();
236
- const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
237
- return (h("div", { class: "text-wrapper" }, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": attributes.readonly }) }, h("textarea", Object.assign({}, attributes, ariaLabel, this.getRoleAttribute()))), this.renderMessage()));
238
- }
239
- /* END textarea */
240
- handleCheck(ev) {
241
- this.checked = ev.target.checked;
242
- this.emitInputCheck(this.checked);
243
50
  }
244
- /* START checkbox */
245
- renderCheckbox() {
246
- return (h("div", { class: "checkbox-wrapper" }, h("input", Object.assign({ id: this.htmlid, type: "checkbox", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, required: this.required, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
247
- "checkbox-label": true,
248
- "after": this.labelPosition === LabelPosition.RIGHT,
249
- "before": this.labelPosition === LabelPosition.LEFT,
250
- } }, h("z-icon", { name: this.checked ? "checkbox-checked" : "checkbox", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
251
- }
252
- /* END checkbox */
253
- /* START radio */
254
- renderRadio() {
255
- return (h("div", { class: "radio-wrapper" }, h("input", Object.assign({ id: this.htmlid, type: "radio", name: this.name, checked: this.checked, disabled: this.disabled, readonly: this.readonly, onChange: this.handleCheck.bind(this), value: this.value }, this.getRoleAttribute(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
256
- "radio-label": true,
257
- "after": this.labelPosition === LabelPosition.RIGHT,
258
- "before": this.labelPosition === LabelPosition.LEFT,
259
- } }, h("z-icon", { name: this.checked ? "radio-button-checked" : "radio-button", "aria-hidden": "true", class: this.size }), this.label && h("span", { innerHTML: this.label }))));
260
- }
261
- /* END radio */
262
51
  render() {
263
- let input;
264
- switch (this.type) {
265
- case InputType.TEXTAREA:
266
- input = this.renderTextarea();
267
- break;
268
- case InputType.CHECKBOX:
269
- input = this.renderCheckbox();
270
- break;
271
- case InputType.RADIO:
272
- input = this.renderRadio();
273
- break;
274
- default:
275
- input = this.renderInputText(this.type);
276
- }
277
- return h(Host, { key: 'f59312821e115fe3cc9d55b867ddc9976f484639' }, input);
278
- }
279
- get hostElement() { return this; }
280
- static get style() { return ZInputStyle0; }
281
- }, [2, "z-input", {
282
- "htmlid": [1],
283
- "type": [1],
284
- "name": [1],
52
+ return (h(Host, { key: 'bcb05d866c119c9f686911ebfd5d6b30fc1072d4', open: this.open }, h("button", { key: '503e35952223d6daa164bba815f94fb33880c310', class: "z-info-reveal-trigger", type: "button", onClick: this.togglePanel.bind(this), "aria-label": !this.label ? this.ariaLabel : undefined, "aria-expanded": this.open ? "true" : "false", "aria-controls": "z-info-reveal-panel" }, this.icon && h("z-icon", { key: '1debca6ca34d6b9aede20b049b770a0d051f6e71', name: this.icon }), this.label && h("span", { key: '5a6ea3fa133179716e87af19b3e734a24dda8989', class: "z-info-reveal-label" }, this.label)), h("div", { key: '0ddfd54fe95e877d15cf88b525ef6f80bf042ce2', class: "z-info-reveal-panel", id: "z-info-reveal-panel", ref: (el) => (this.panel = el), hidden: !this.open }, h("slot", { key: '309ce5208cf50f612b2b267e572d7461e65dffbe' }), h("button", { key: 'fbbfaffbe9b050db008338b8369d3b945fc887b3', class: "z-info-reveal-close", type: "button", onClick: this.closePanel.bind(this), "aria-label": "Chiudi pannello informazioni" }, h("z-icon", { key: 'b704c1f4df7271d8bb293517701953a00d1f8b5e', name: "multiply" })))));
53
+ }
54
+ get host() { return this; }
55
+ static get watchers() { return {
56
+ "position": ["adjustPanelPosition"],
57
+ "open": ["adjustPanelPosition"]
58
+ }; }
59
+ static get style() { return ZInfoRevealStyle0; }
60
+ }, [1, "z-info-reveal", {
61
+ "icon": [1],
62
+ "position": [513],
285
63
  "label": [1],
286
64
  "ariaLabel": [1, "aria-label"],
287
- "ariaExpanded": [1, "aria-expanded"],
288
- "ariaControls": [1, "aria-controls"],
289
- "ariaAutocomplete": [1, "aria-autocomplete"],
290
- "ariaActivedescendant": [1, "aria-activedescendant"],
291
- "value": [1025],
292
- "disabled": [516],
293
- "readonly": [4],
294
- "required": [4],
295
- "checked": [1028],
296
- "placeholder": [1],
297
- "htmltitle": [1],
298
- "status": [1],
299
- "message": [8],
300
- "labelPosition": [1, "label-position"],
301
- "autocomplete": [1],
302
- "role": [1],
303
- "hasclearicon": [4],
304
- "icon": [1],
305
- "min": [2],
306
- "minlength": [2],
307
- "max": [2],
308
- "maxlength": [2],
309
- "step": [2],
310
- "pattern": [1],
311
65
  "size": [513],
312
- "isTyping": [32],
313
- "passwordHidden": [32],
314
- "isChecked": [64]
315
- }, [[4, "inputCheck", "inputCheckListener"]]]);
66
+ "open": [32]
67
+ }, [[9, "resize", "adjustPanelPosition"], [10, "keydown", "handleEscapeKey"]], {
68
+ "position": ["adjustPanelPosition"],
69
+ "open": ["adjustPanelPosition"]
70
+ }]);
316
71
  function defineCustomElement() {
317
72
  if (typeof customElements === "undefined") {
318
73
  return;
319
74
  }
320
- const components = ["z-input", "z-icon", "z-input-message"];
75
+ const components = ["z-info-reveal", "z-icon"];
321
76
  components.forEach(tagName => { switch (tagName) {
322
- case "z-input":
77
+ case "z-info-reveal":
323
78
  if (!customElements.get(tagName)) {
324
- customElements.define(tagName, ZInput);
79
+ customElements.define(tagName, ZInfoReveal);
325
80
  }
326
81
  break;
327
82
  case "z-icon":
328
- if (!customElements.get(tagName)) {
329
- defineCustomElement$2();
330
- }
331
- break;
332
- case "z-input-message":
333
83
  if (!customElements.get(tagName)) {
334
84
  defineCustomElement$1();
335
85
  }
@@ -337,6 +87,6 @@ function defineCustomElement() {
337
87
  } });
338
88
  }
339
89
 
340
- export { ZInput as Z, defineCustomElement as d };
90
+ export { ZInfoReveal as Z, defineCustomElement as d };
341
91
 
342
92
  //# sourceMappingURL=index10.js.map
@@ -1 +1 @@
1
- {"file":"index10.js","mappings":";;;;;;AAAA,MAAM,SAAS,GAAG,wuVAAwuV,CAAC;AAC3vV,qBAAe,SAAS;;MCUX,MAAM;;;;;;;;;;QAmIT,kBAAa,GAAG,GAAG,CAAC;sBA9HnB,MAAM,QAAQ,EAAE,EAAE;;;;yBAgBf,EAAE;4BAIC,EAAE;;;;;wBAoBI,KAAK;wBAIL,KAAK;wBAIL,KAAK;uBAIN,KAAK;;;;uBAgBI,IAAI;6BAID,aAAa,CAAC,KAAK;;oBAQ5C,EAAE;4BAIgB,IAAI;;;;;;;;oBAgCR,WAAW,CAAC,GAAG;wBAGzB,KAAK;8BAGC,IAAI;;IASrB,kBAAkB,CAAC,CAAc;QAC/B,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,QAAQ,IAAI,CAAC,IAAI;YACf,KAAK,SAAS,CAAC,KAAK;gBAClB,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,MAAM,EAAE;oBACvF,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;iBACtB;gBACD,MAAM;SACT;KACF;;IAID,MAAM,SAAS;QACb,QAAQ,IAAI,CAAC,IAAI;YACf,KAAK,SAAS,CAAC,QAAQ,CAAC;YACxB,KAAK,SAAS,CAAC,KAAK;gBAClB,OAAO,IAAI,CAAC,OAAO,CAAC;YACtB;gBACE,OAAO,CAAC,IAAI,CAAC,sEAAsE,CAAC,CAAC;gBAErF,OAAO,KAAK,CAAC;SAChB;K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input/index.tsx"],"sourcesContent":["@import \"styles-general.css\";\n@import \"styles-text.css\";\n@import \"styles-textarea.css\";\n@import \"styles-checkbox-radio.css\";\n","import {Component, Element, Event, EventEmitter, Listen, Method, Prop, State, h} from \"@stencil/core\";\nimport {Host, JSXBase} from \"@stencil/core/internal\";\nimport {ControlSize, InputStatus, InputType, LabelPosition} from \"../../beans\";\nimport {boolean, randomId} from \"../../utils/utils\";\n\n@Component({\n tag: \"z-input\",\n styleUrl: \"styles.css\",\n shadow: false,\n scoped: true,\n})\nexport class ZInput {\n @Element() hostElement: HTMLZInputElement;\n\n /** the id of the input element */\n @Prop()\n htmlid = `id-${randomId()}`;\n\n /** input types */\n @Prop()\n type: InputType;\n\n /** the input name */\n @Prop()\n name?: string;\n\n /** the input label */\n @Prop()\n label?: string;\n\n /** the input aria-label */\n @Prop()\n ariaLabel = \"\";\n\n /** the input aria-expaded: available for text, password, number, email */\n @Prop()\n ariaExpanded = \"\";\n\n /** the input aria-controls (optional): available for text, password, number, email */\n @Prop()\n ariaControls?: string;\n\n /** the input aria-autocomplete (optional): available for text, password, number, email */\n @Prop()\n ariaAutocomplete?: string;\n\n /** the input aria-activedescendant (optional): available for text, password, number, email */\n @Prop()\n ariaActivedescendant?: string;\n\n /** the input value */\n @Prop({mutable: true})\n value?: string;\n\n /** the input is disabled */\n @Prop({reflect: true})\n disabled?: boolean = false;\n\n /** the input is readonly */\n @Prop()\n readonly?: boolean = false;\n\n /** the input is required (optional): available for text, password, number, email, textarea, checkbox */\n @Prop()\n required?: boolean = false;\n\n /** checked: available for checkbox, radio */\n @Prop({mutable: true})\n checked?: boolean = false;\n\n /** the input placeholder (optional) */\n @Prop()\n placeholder?: string;\n\n /** the input html title (optional) */\n @Prop()\n htmltitle?: string;\n\n /** the input status (optional): available for text, password, number, email, textarea */\n @Prop()\n status?: InputStatus;\n\n /** input helper message (optional): available for text, password, number, email, textarea - if set to `false` message won't be displayed */\n @Prop()\n message?: string | boolean = true;\n\n /** the input label position: available for checkbox, radio */\n @Prop()\n labelPosition?: LabelPosition = LabelPosition.RIGHT;\n\n /** the input has autocomplete option (optional): available for text, password, number, email */\n @Prop()\n autocomplete?: string;\n\n /** the input role */\n @Prop()\n role = \"\";\n\n /** render clear icon when typing (optional): available for text */\n @Prop()\n hasclearicon?: boolean = true;\n\n /** render icon (optional): available for text */\n @Prop()\n icon?: string;\n\n /** min number value (optional): available for number */\n @Prop()\n min?: number;\n\n /** Min length value (optional): available for text */\n @Prop()\n minlength?: number;\n\n /** max number value (optional): available for number */\n @Prop()\n max?: number;\n\n /** Max length value (optional): available for text */\n @Prop()\n maxlength?: number;\n\n /** step number value (optional): available for number */\n @Prop()\n step?: number;\n\n /** pattern value (optional): available for tel, text, search, url, email, password*/\n @Prop()\n pattern?: string;\n\n /** Available sizes: `big`, `small` and `x-small`. Defaults to `big`. */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n @State()\n isTyping = false;\n\n @State()\n passwordHidden = true;\n\n private timer;\n\n private typingtimeout = 300;\n\n private inputRef: HTMLInputElement;\n\n @Listen(\"inputCheck\", {target: \"document\"})\n inputCheckListener(e: CustomEvent): void {\n const data = e.detail;\n switch (this.type) {\n case InputType.RADIO:\n if (data.type === InputType.RADIO && data.name === this.name && data.id !== this.htmlid) {\n this.checked = false;\n }\n break;\n }\n }\n\n /** get checked status */\n @Method()\n async isChecked(): Promise<boolean> {\n switch (this.type) {\n case InputType.CHECKBOX:\n case InputType.RADIO:\n return this.checked;\n default:\n console.warn(\"`isChecked` method is only available for type `checkbox` and `radio`\");\n\n return false;\n }\n }\n\n /** Emitted on input value change, returns value, validity */\n @Event()\n inputChange: EventEmitter;\n\n private emitInputChange(value: string): void {\n if (!this.isTyping) {\n this.emitStartTyping();\n }\n\n let validity: ValidityState;\n if (this.type === InputType.TEXTAREA) {\n validity = this.getValidity(\"textarea\");\n } else {\n validity = this.getValidity(\"input\");\n }\n this.value = value;\n this.inputChange.emit({value, validity});\n\n clearTimeout(this.timer);\n this.timer = setTimeout(() => {\n this.emitStopTyping(this.value, validity);\n }, this.typingtimeout);\n }\n\n /** Emitted when user starts typing */\n @Event()\n startTyping: EventEmitter;\n\n private emitStartTyping(): void {\n this.isTyping = true;\n this.startTyping.emit();\n }\n\n /** Emitted when user stops typing, returns value, validity */\n @Event()\n stopTyping: EventEmitter;\n\n private emitStopTyping(value: string, validity: ValidityState): void {\n this.isTyping = false;\n this.stopTyping.emit({\n value: value,\n validity: validity,\n });\n }\n\n /** Emitted on checkbox check/uncheck, returns id, checked, type, name, value, validity */\n @Event()\n inputCheck: EventEmitter;\n\n private emitInputCheck(checked: boolean): void {\n this.inputCheck.emit({\n id: this.htmlid,\n checked: checked,\n type: this.type,\n name: this.name,\n value: this.value,\n validity: this.getValidity(\"input\"),\n });\n }\n\n /** Emitted on input focus */\n @Event()\n inputFocus: EventEmitter;\n\n private emitInputFocus(): void {\n this.inputFocus.emit({id: this.htmlid});\n }\n\n /** Emitted on input blur */\n @Event()\n inputBlur: EventEmitter;\n\n private emitInputBlur(): void {\n this.inputBlur.emit({id: this.htmlid});\n }\n\n private getValidity(type: string): ValidityState {\n const input = this.hostElement.querySelector(type) as HTMLInputElement;\n\n return input.validity;\n }\n\n /* START text/password/email/number */\n\n private getTextAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n id: this.htmlid,\n name: this.name,\n placeholder: this.placeholder,\n value: this.value,\n disabled: this.disabled,\n readonly: this.readonly,\n required: this.required,\n title: this.htmltitle,\n minlength: this.minlength,\n maxlength: this.maxlength,\n class: {\n [`input-${this.status}`]: !!this.status,\n filled: !!this.value,\n },\n autocomplete: this.autocomplete,\n onInput: (e: InputEvent) => this.emitInputChange((e.target as HTMLInputElement).value),\n };\n }\n\n private getNumberAttributes(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (type != InputType.NUMBER) {\n return;\n }\n\n return {\n min: this.min,\n max: this.max,\n step: this.step,\n };\n }\n\n private getPatternAttribute(type: InputType): JSXBase.InputHTMLAttributes<HTMLInputElement> {\n if (\n type != InputType.PASSWORD &&\n type != InputType.TEXT &&\n type != InputType.TEL &&\n type != InputType.SEARCH &&\n type != InputType.URL &&\n type != InputType.EMAIL\n ) {\n return;\n }\n\n return {\n pattern: this.pattern,\n };\n }\n\n private getRoleAttribute(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return this.role ? {role: this.role} : {};\n }\n\n private getAriaAttrubutes(): Record<string, unknown> {\n const expanded = this.ariaExpanded ? {\"aria-expanded\": this.ariaExpanded} : {};\n const controls = this.ariaControls ? {\"aria-controls\": this.ariaControls} : {};\n const autocomplete = this.ariaAutocomplete ? {\"aria-autocomplete\": this.ariaAutocomplete} : {};\n const activedescendant = this.ariaActivedescendant ? {\"aria-activedescendant\": this.ariaActivedescendant} : {};\n\n return {\n ...expanded,\n ...controls,\n ...autocomplete,\n ...activedescendant,\n };\n }\n\n private getFocusBlurAttributes(): JSXBase.InputHTMLAttributes<HTMLInputElement | HTMLTextAreaElement> {\n return {\n onFocus: () => this.emitInputFocus(),\n onBlur: () => this.emitInputBlur(),\n };\n }\n\n private renderInputText(type: InputType = InputType.TEXT): HTMLDivElement {\n const ariaLabel = this.ariaLabel ? {\"aria-label\": this.ariaLabel} : {};\n const attr = {\n ...this.getTextAttributes(),\n ...this.getNumberAttributes(type),\n ...this.getPatternAttribute(type),\n ...ariaLabel,\n ...this.getRoleAttribute(),\n ...this.getAriaAttrubutes(),\n ...this.getFocusBlurAttributes(),\n };\n if (this.icon || type === InputType.PASSWORD) {\n Object.assign(attr.class, {\"has-icon\": true});\n }\n if (this.hasclearicon && type != InputType.NUMBER) {\n Object.assign(attr.class, {\"has-clear-icon\": true});\n }\n\n return (\n <div class=\"text-wrapper\">\n {this.renderLabel()}\n <div>\n <input\n type={type === InputType.PASSWORD && !this.passwordHidden ? InputType.TEXT : type}\n {...attr}\n ref={(el) => (this.inputRef = el)}\n />\n {this.renderIcons()}\n </div>\n {this.renderMessage()}\n </div>\n );\n }\n\n private renderLabel(): HTMLLabelElement {\n if (!this.label) {\n return;\n }\n\n return (\n <label\n class=\"input-label body-5-sb\"\n id={`${this.htmlid}_label`}\n htmlFor={this.htmlid}\n >\n {this.label}\n </label>\n );\n }\n\n private renderIcons(): HTMLSpanElement {\n return (\n <span class=\"icons-wrapper\">\n {this.renderResetIcon()}\n {this.renderIcon()}\n </span>\n );\n }\n\n private renderIcon(): HTMLButtonElement {\n if (this.type === InputType.PASSWORD) {\n return this.renderShowHidePassword();\n }\n\n if (!this.icon) {\n return;\n }\n\n return (\n <button\n type=\"button\"\n class=\"icon-button input-icon\"\n tabIndex={-1}\n aria-hidden=\"true\"\n >\n <z-icon\n name={this.icon}\n class={this.size}\n />\n </button>\n );\n }\n\n private renderResetIcon(): HTMLButtonElement {\n let hidden = false;\n if (!this.hasclearicon || !this.value || this.disabled || this.readonly || this.type == InputType.NUMBER) {\n hidden = true;\n }\n\n return (\n <button\n type=\"button\"\n class={`icon-button reset-icon ${hidden ? \"hidden\" : \"\"}`}\n aria-label=\"cancella il contenuto dell'input\"\n onClick={() => {\n this.inputRef.value = \"\";\n this.emitInputChange(\"\");\n }}\n >\n <z-icon\n name=\"multiply\"\n class={this.size}\n />\n </button>\n );\n }\n\n private renderShowHidePassword(): HTMLButtonElement {\n return (\n <button\n type=\"button\"\n class=\"icon-button toggle-password-icon\"\n disabled={this.disabled}\n aria-label={this.passwordHidden ? \"mostra password\" : \"nascondi password\"}\n onClick={() => (this.passwordHidden = !this.passwordHidden)}\n >\n <z-icon\n name={this.passwordHidden ? \"view-filled\" : \"view-off-filled\"}\n class={this.size}\n />\n </button>\n );\n }\n\n private renderMessage(): HTMLZInputMessageElement {\n if (boolean(this.message) === false) {\n return;\n }\n\n return (\n <z-input-message\n message={boolean(this.message) === true ? undefined : (this.message as string)}\n status={this.status}\n class={this.size}\n />\n );\n }\n\n /* END text/password/email/number */\n\n /* START textarea */\n\n private renderTextarea(): HTMLDivElement {\n const attributes = this.getTextAttributes();\n const ariaLabel = this.ariaLabel ? {\"aria-label\": this.ariaLabel} : {};\n\n return (\n <div class=\"text-wrapper\">\n {this.renderLabel()}\n <div\n class={{\n ...(attributes.class as Record<string, boolean>),\n \"textarea-wrapper\": true,\n \"readonly\": attributes.readonly as boolean,\n }}\n >\n <textarea\n {...attributes}\n {...ariaLabel}\n {...this.getRoleAttribute()}\n ></textarea>\n </div>\n {this.renderMessage()}\n </div>\n );\n }\n\n /* END textarea */\n\n private handleCheck(ev: Event): void {\n this.checked = (ev.target as HTMLInputElement).checked;\n this.emitInputCheck(this.checked);\n }\n\n /* START checkbox */\n private renderCheckbox(): HTMLDivElement {\n return (\n <div class=\"checkbox-wrapper\">\n <input\n id={this.htmlid}\n type=\"checkbox\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n required={this.required}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getRoleAttribute()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"checkbox-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"checkbox-checked\" : \"checkbox\"}\n aria-hidden=\"true\"\n class={this.size}\n />\n {this.label && <span innerHTML={this.label}></span>}\n </label>\n </div>\n );\n }\n\n /* END checkbox */\n\n /* START radio */\n private renderRadio(): HTMLDivElement {\n return (\n <div class=\"radio-wrapper\">\n <input\n id={this.htmlid}\n type=\"radio\"\n name={this.name}\n checked={this.checked}\n disabled={this.disabled}\n readonly={this.readonly}\n onChange={this.handleCheck.bind(this)}\n value={this.value}\n {...this.getRoleAttribute()}\n {...this.getFocusBlurAttributes()}\n />\n\n <label\n htmlFor={this.htmlid}\n class={{\n \"radio-label\": true,\n \"after\": this.labelPosition === LabelPosition.RIGHT,\n \"before\": this.labelPosition === LabelPosition.LEFT,\n }}\n >\n <z-icon\n name={this.checked ? \"radio-button-checked\" : \"radio-button\"}\n aria-hidden=\"true\"\n class={this.size}\n />\n {this.label && <span innerHTML={this.label} />}\n </label>\n </div>\n );\n }\n /* END radio */\n\n render(): HTMLInputElement | HTMLDivElement {\n let input;\n switch (this.type) {\n case InputType.TEXTAREA:\n input = this.renderTextarea();\n break;\n case InputType.CHECKBOX:\n input = this.renderCheckbox();\n break;\n case InputType.RADIO:\n input = this.renderRadio();\n break;\n default:\n input = this.renderInputText(this.type);\n }\n\n return <Host>{input}</Host>;\n }\n}\n"],"version":3}
1
+ {"file":"index10.js","mappings":";;;;AAAA,MAAM,SAAS,GAAG,4gFAA4gF,CAAC;AAC/hF,0BAAe,SAAS;;MCaX,WAAW;;;;;oBAGd,mBAAmB;wBAQK,kBAAkB,CAAC,YAAY;;yBAQnD,4BAA4B;oBAInB,WAAW,CAAC,GAAG;oBAI7B,KAAK;;;;;IAYZ,mBAAmB;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YAC7B,OAAO;SACR;QAED,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC/C,MAAM,UAAU,GAAG,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC,eAAe,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9G,MAAM,SAAS,GAAG,QAAQ,CAAC,eAAe,CAAC,WAAW,CAAC;;QAEvD,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAC/B,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,IAAI,UAAU,CACnF,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,cAAc,IAAI,CAAC;KACnD;;;;IAKO,WA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z-info-reveal/styles.css?tag=z-info-reveal&encapsulation=shadow","src/components/z-info-reveal/index.tsx"],"sourcesContent":[":host {\n --z-info-reveal-panel-width: 384px; /* defaults half the size of the mobile breakpoint */\n --trigger-size: 44px;\n\n position: relative;\n}\n\n:host * {\n box-sizing: border-box;\n}\n\nbutton {\n --trigger-icon-size: calc(var(--trigger-size) / 2);\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n background-color: transparent;\n cursor: pointer;\n font-family: inherit;\n letter-spacing: inherit;\n}\n\nbutton:focus:focus-visible {\n box-shadow: var(--shadow-focus-primary);\n outline: none;\n}\n\n.z-info-reveal-trigger {\n min-width: var(--trigger-size);\n height: var(--trigger-size);\n padding: calc((var(--trigger-size) - var(--trigger-icon-size)) / 2);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n font-weight: var(--font-sb);\n line-height: 1rem;\n}\n\n:host([size=\"big\"]) .z-info-reveal-trigger {\n font-size: var(--font-size-2);\n}\n\n:host([size=\"small\"]) .z-info-reveal-trigger {\n --trigger-size: 36px;\n\n font-size: var(--font-size-2);\n}\n\n:host([size=\"x-small\"]) .z-info-reveal-trigger {\n --trigger-size: 32px;\n\n padding: var(--space-unit);\n font-size: var(--font-size-1);\n}\n\n:host > .z-info-reveal-trigger z-icon {\n --z-icon-width: var(--trigger-icon-size);\n --z-icon-height: var(--trigger-icon-size);\n\n display: flex;\n fill: var(--color-inverse-icon);\n}\n\n:host([size=\"small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 18px;\n}\n\n:host([size=\"x-small\"]) > .z-info-reveal-trigger z-icon {\n --trigger-icon-size: 16px;\n}\n\n.z-info-reveal-panel {\n position: absolute;\n display: flex;\n width: var(--z-info-reveal-panel-width);\n height: fit-content;\n align-items: flex-start;\n padding: calc(var(--space-unit) * 1.5);\n background-color: var(--color-surface05);\n border-radius: var(--border-radius);\n box-shadow: var(--shadow-4);\n color: var(--color-text-inverse);\n column-gap: var(--space-unit);\n}\n\n.z-info-reveal-panel[hidden] {\n display: none;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"top_right\"]) .z-info-reveal-panel {\n top: 0;\n}\n\n:host([position=\"bottom_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n bottom: 0;\n}\n\n:host([position=\"top_right\"]) .z-info-reveal-panel,\n:host([position=\"bottom_right\"]) .z-info-reveal-panel {\n right: 0;\n}\n\n:host([position=\"top_left\"]) .z-info-reveal-panel,\n:host([position=\"bottom_left\"]) .z-info-reveal-panel {\n left: 0;\n}\n\n.z-info-reveal-panel .z-info-reveal-close {\n margin-left: auto;\n}\n\n.z-info-reveal-panel z-icon {\n fill: var(--color-inverse-icon);\n}\n\n@media (max-width: 767px) {\n .z-info-reveal-panel {\n position: fixed;\n top: auto !important;\n bottom: auto !important;\n left: var(--grid-margin) !important;\n width: calc(100% - (var(--grid-margin) * 2)) !important;\n max-width: none !important;\n margin-top: calc(var(--trigger-size) * -1);\n }\n}\n","import {Component, Element, Host, Listen, Prop, State, Watch, h} from \"@stencil/core\";\nimport {ControlSize, InfoRevealPosition} from \"../../beans\";\n\n/**\n * Info reveal component.\n *\n * @slot - content of the info panel.\n * @cssprop --z-info-reveal-panel-width - Width of the info panel.\n */\n@Component({\n tag: \"z-info-reveal\",\n styleUrl: \"styles.css\",\n shadow: true,\n})\nexport class ZInfoReveal {\n /** Name of the icon for the trigger button */\n @Prop()\n icon? = \"informationsource\";\n\n /**\n * The position of the z-info-reveal in the page. This helps to correctly place the info panel.\n * The panel will grow in the opposite direction of the position.\n * For example, with the default position `BOTTOM_RIGHT`, the panel will grow vertically upwards and horizontally to the left.\n */\n @Prop({reflect: true})\n position?: InfoRevealPosition = InfoRevealPosition.BOTTOM_RIGHT;\n\n /** Label of the trigger button. */\n @Prop()\n label?: string;\n\n /** Aria label of the trigger button. It will be only used when `label` prop is empty. */\n @Prop()\n ariaLabel = \"Apri pannello informazioni\";\n\n /** Size of the trigger button */\n @Prop({reflect: true})\n size?: ControlSize = ControlSize.BIG;\n\n /** Whether the info panel is open. */\n @State()\n open = false;\n\n @Element() host: HTMLZInfoRevealElement;\n\n private panel: HTMLDivElement;\n\n /**\n * Adjust the position of the info panel to prevent exiting the viewport.\n */\n @Watch(\"position\")\n @Watch(\"open\")\n @Listen(\"resize\", {target: \"window\", passive: true})\n adjustPanelPosition(): void {\n if (!this.open || !this.panel) {\n return;\n }\n\n const rect = this.host.getBoundingClientRect();\n const gridMargin = parseInt(getComputedStyle(document.documentElement).getPropertyValue(\"--grid-margin\"), 10);\n const pageWidth = document.documentElement.offsetWidth;\n // Available space for the info panel to grow towards the edge of the page, based on the `position` prop.\n const availableSpace = Math.round(\n (this.position.includes(\"left\") ? pageWidth - rect.left : rect.right) - gridMargin\n );\n this.panel.style.maxWidth = `${availableSpace}px`;\n }\n\n /**\n * Toggle the open state of the info panel.\n */\n private togglePanel(): void {\n this.open = !this.open;\n }\n\n /**\n * Close the info panel.\n */\n private closePanel(): void {\n this.open = false;\n }\n\n @Listen(\"keydown\", {target: \"window\", capture: true})\n handleEscapeKey(event: KeyboardEvent): void {\n if (event.key === \"Escape\" && this.open) {\n this.closePanel();\n }\n }\n\n render(): HTMLZInfoRevealElement {\n return (\n <Host open={this.open}>\n <button\n class=\"z-info-reveal-trigger\"\n type=\"button\"\n onClick={this.togglePanel.bind(this)}\n aria-label={!this.label ? this.ariaLabel : undefined}\n aria-expanded={this.open ? \"true\" : \"false\"}\n aria-controls=\"z-info-reveal-panel\"\n >\n {this.icon && <z-icon name={this.icon} />}\n {this.label && <span class=\"z-info-reveal-label\">{this.label}</span>}\n </button>\n <div\n class=\"z-info-reveal-panel\"\n id=\"z-info-reveal-panel\"\n ref={(el) => (this.panel = el)}\n hidden={!this.open}\n >\n <slot></slot>\n <button\n class=\"z-info-reveal-close\"\n type=\"button\"\n onClick={this.closePanel.bind(this)}\n aria-label=\"Chiudi pannello informazioni\"\n >\n <z-icon name=\"multiply\" />\n </button>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}