@zanichelli/albe-web-components 4.1.0 → 5.0.1

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 (303) hide show
  1. package/dist/cjs/{index-6b6a3299.js → index-5c16dc2b.js} +49 -45
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{utils-8cc414c9.js → utils-15c8b978.js} +1 -1
  5. package/dist/cjs/utils-64ac0753.js +2705 -0
  6. package/dist/cjs/web-components-library.cjs.js +1 -1
  7. package/dist/cjs/z-app-switcher_9.cjs.entry.js +736 -0
  8. package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
  9. package/dist/cjs/z-avatar.cjs.entry.js +1 -1
  10. package/dist/cjs/z-button-deprecated.cjs.entry.js +1 -1
  11. package/dist/cjs/z-button.cjs.entry.js +42 -0
  12. package/dist/cjs/z-card.cjs.entry.js +69 -0
  13. package/dist/cjs/z-carousel.cjs.entry.js +24 -0
  14. package/dist/cjs/z-chip.cjs.entry.js +2 -2
  15. package/dist/cjs/z-combobox.cjs.entry.js +2 -2
  16. package/dist/cjs/z-contextual-menu.cjs.entry.js +18 -7
  17. package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
  18. package/dist/cjs/z-date-picker.cjs.entry.js +10 -2701
  19. package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
  20. package/dist/cjs/z-file.cjs.entry.js +10 -9
  21. package/dist/cjs/z-footer.cjs.entry.js +1 -1
  22. package/dist/cjs/z-ghost-loading.cjs.entry.js +19 -0
  23. package/dist/cjs/z-input-deprecated.cjs.entry.js +2 -2
  24. package/dist/cjs/z-input-label_2.cjs.entry.js +2 -2
  25. package/dist/cjs/z-list-group.cjs.entry.js +1 -1
  26. package/dist/cjs/z-list_2.cjs.entry.js +1 -1
  27. package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
  28. package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
  29. package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
  30. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  31. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  32. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  33. package/dist/cjs/z-myz-card-info.cjs.entry.js +4 -4
  34. package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
  35. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  36. package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
  37. package/dist/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
  38. package/dist/cjs/z-navigation-tab.cjs.entry.js +1 -1
  39. package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  40. package/dist/cjs/z-offcanvas.cjs.entry.js +63 -0
  41. package/dist/cjs/z-otp.cjs.entry.js +1 -1
  42. package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
  43. package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
  44. package/dist/cjs/z-popover-deprecated.cjs.entry.js +132 -0
  45. package/dist/cjs/z-popover.cjs.entry.js +304 -97
  46. package/dist/cjs/z-section-title.cjs.entry.js +1 -1
  47. package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
  48. package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
  49. package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
  50. package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
  51. package/dist/cjs/z-table-header.cjs.entry.js +8 -11
  52. package/dist/cjs/z-table-row.cjs.entry.js +1 -1
  53. package/dist/cjs/z-table.cjs.entry.js +1 -1
  54. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  55. package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
  56. package/dist/cjs/z-toggle-switch.cjs.entry.js +2 -2
  57. package/dist/cjs/z-tooltip-deprecated.cjs.entry.js +274 -0
  58. package/dist/cjs/z-tooltip.cjs.entry.js +8 -251
  59. package/dist/collection/beans/index.js +49 -45
  60. package/dist/collection/collection-manifest.json +4 -1
  61. package/dist/collection/components/buttons/z-button/index.js +5 -7
  62. package/dist/collection/components/buttons/z-button/styles.css +23 -23
  63. package/dist/collection/components/{z-date-picker → date-picker}/styles.css +69 -17
  64. package/dist/collection/components/date-picker/utils.js +76 -0
  65. package/dist/collection/components/{z-date-picker → date-picker/z-date-picker}/index.js +13 -84
  66. package/dist/collection/components/date-picker/z-range-picker/index.js +483 -0
  67. package/dist/collection/components/file-upload/z-file/index.js +13 -13
  68. package/dist/collection/components/file-upload/z-file/styles.css +2 -2
  69. package/dist/collection/components/notification/z-tooltip/index.js +45 -298
  70. package/dist/collection/components/notification/z-tooltip/styles.css +8 -120
  71. package/dist/collection/components/z-contextual-menu/index.js +26 -16
  72. package/dist/collection/components/z-contextual-menu/styles.css +20 -5
  73. package/dist/collection/components/z-popover/index.js +381 -166
  74. package/dist/collection/components/z-popover/styles.css +91 -180
  75. package/dist/collection/components/z-table/z-table-header/index.js +10 -16
  76. package/dist/collection/components/z-table/z-table-header/styles.css +7 -1
  77. package/dist/collection/deprecated/z-popover-deprecated/index.js +294 -0
  78. package/dist/collection/deprecated/z-popover-deprecated/styles.css +236 -0
  79. package/dist/collection/deprecated/z-tooltip-deprecated/index.js +379 -0
  80. package/dist/collection/deprecated/z-tooltip-deprecated/styles.css +128 -0
  81. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +2 -2
  82. package/dist/collection/snowflakes/myz/card/z-myz-card-info/styles.css +1 -1
  83. package/dist/esm/{index-46ca649a.js → index-3786a7ff.js} +50 -46
  84. package/dist/esm/index.js +2 -2
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/esm/utils-a9a836d2.js +2700 -0
  87. package/dist/esm/{utils-5d5963ef.js → utils-d49ae9f0.js} +2 -2
  88. package/dist/esm/web-components-library.js +1 -1
  89. package/dist/esm/z-app-switcher_9.entry.js +724 -0
  90. package/dist/esm/z-aria-alert.entry.js +1 -1
  91. package/dist/esm/z-avatar.entry.js +1 -1
  92. package/dist/esm/z-button-deprecated.entry.js +1 -1
  93. package/dist/esm/z-button.entry.js +38 -0
  94. package/dist/esm/z-card.entry.js +65 -0
  95. package/dist/esm/z-carousel.entry.js +20 -0
  96. package/dist/esm/z-chip.entry.js +2 -2
  97. package/dist/esm/z-combobox.entry.js +2 -2
  98. package/dist/esm/z-contextual-menu.entry.js +19 -8
  99. package/dist/esm/z-cookiebar.entry.js +1 -1
  100. package/dist/esm/z-date-picker.entry.js +9 -2700
  101. package/dist/esm/z-file-upload.entry.js +2 -2
  102. package/dist/esm/z-file.entry.js +10 -9
  103. package/dist/esm/z-footer.entry.js +1 -1
  104. package/dist/esm/z-ghost-loading.entry.js +15 -0
  105. package/dist/esm/z-input-deprecated.entry.js +2 -2
  106. package/dist/esm/z-input-label_2.entry.js +2 -2
  107. package/dist/esm/z-list-group.entry.js +1 -1
  108. package/dist/esm/z-list_2.entry.js +1 -1
  109. package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
  110. package/dist/esm/z-messages-pocket.entry.js +1 -1
  111. package/dist/esm/z-modal-login.entry.js +1 -1
  112. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  113. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  114. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  115. package/dist/esm/z-myz-card-info.entry.js +4 -4
  116. package/dist/esm/z-myz-card_4.entry.js +1 -1
  117. package/dist/esm/z-myz-list-item.entry.js +2 -2
  118. package/dist/esm/z-myz-topbar.entry.js +1 -1
  119. package/dist/esm/z-navigation-tab-link.entry.js +1 -1
  120. package/dist/esm/z-navigation-tab.entry.js +1 -1
  121. package/dist/esm/z-navigation-tabs.entry.js +1 -1
  122. package/dist/esm/z-offcanvas.entry.js +59 -0
  123. package/dist/esm/z-otp.entry.js +1 -1
  124. package/dist/esm/z-pagination-bar.entry.js +2 -2
  125. package/dist/esm/z-pocket_3.entry.js +2 -2
  126. package/dist/esm/z-popover-deprecated.entry.js +128 -0
  127. package/dist/esm/z-popover.entry.js +305 -98
  128. package/dist/esm/z-section-title.entry.js +1 -1
  129. package/dist/esm/z-skip-to-content.entry.js +2 -2
  130. package/dist/esm/z-slideshow.entry.js +2 -2
  131. package/dist/esm/z-status-tag.entry.js +1 -1
  132. package/dist/esm/z-table-cell.entry.js +1 -1
  133. package/dist/esm/z-table-header.entry.js +8 -11
  134. package/dist/esm/z-table-row.entry.js +1 -1
  135. package/dist/esm/z-table.entry.js +1 -1
  136. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  137. package/dist/esm/z-toast-notification.entry.js +1 -1
  138. package/dist/esm/z-toggle-switch.entry.js +2 -2
  139. package/dist/esm/z-tooltip-deprecated.entry.js +270 -0
  140. package/dist/esm/z-tooltip.entry.js +9 -252
  141. package/dist/types/beans/index.d.ts +37 -33
  142. package/dist/types/components/buttons/z-button/index.d.ts +2 -3
  143. package/dist/types/components/date-picker/utils.d.ts +3 -0
  144. package/dist/types/components/{z-date-picker → date-picker/z-date-picker}/index.d.ts +3 -8
  145. package/dist/types/components/date-picker/z-range-picker/index.d.ts +43 -0
  146. package/dist/types/components/file-upload/z-file/index.d.ts +3 -3
  147. package/dist/types/components/notification/z-tooltip/index.d.ts +14 -29
  148. package/dist/types/components/z-contextual-menu/index.d.ts +8 -4
  149. package/dist/types/components/z-popover/index.d.ts +57 -28
  150. package/dist/types/components/z-table/z-table-header/index.d.ts +2 -1
  151. package/dist/types/components.d.ts +189 -10
  152. package/dist/types/deprecated/z-popover-deprecated/index.d.ts +33 -0
  153. package/dist/types/deprecated/z-tooltip-deprecated/index.d.ts +41 -0
  154. package/dist/web-components-library/index.esm.js +1 -1
  155. package/dist/web-components-library/{p-0f17db30.entry.js → p-044edef0.entry.js} +1 -1
  156. package/dist/web-components-library/{p-43329b81.entry.js → p-0487d5f1.entry.js} +1 -1
  157. package/dist/web-components-library/{p-57d1acdc.entry.js → p-0610360b.entry.js} +1 -1
  158. package/dist/web-components-library/p-0bcc78d4.entry.js +1 -0
  159. package/dist/web-components-library/{p-dffdf60a.entry.js → p-0ccda54f.entry.js} +1 -1
  160. package/dist/web-components-library/p-13174553.entry.js +1 -0
  161. package/{www/build/p-df4e963b.entry.js → dist/web-components-library/p-18c0f701.entry.js} +1 -1
  162. package/dist/web-components-library/p-1c2331a4.entry.js +1 -0
  163. package/dist/web-components-library/p-206e5b31.entry.js +1 -0
  164. package/dist/web-components-library/{p-0a0aee35.entry.js → p-248e6c7d.entry.js} +1 -1
  165. package/dist/web-components-library/{p-ccdebe3f.entry.js → p-24f3a39e.entry.js} +1 -1
  166. package/dist/web-components-library/p-25b1a634.entry.js +1 -0
  167. package/dist/web-components-library/{p-8fbc2ce9.entry.js → p-286c4c99.entry.js} +1 -1
  168. package/dist/web-components-library/{p-1727c1c8.entry.js → p-287678e2.entry.js} +1 -1
  169. package/dist/web-components-library/{p-fe927bf4.entry.js → p-2c86d1ea.entry.js} +1 -1
  170. package/dist/web-components-library/{p-de25c7f0.entry.js → p-2d93e9e9.entry.js} +1 -1
  171. package/dist/web-components-library/p-2e0885d6.entry.js +16 -0
  172. package/dist/web-components-library/{p-b15efba3.entry.js → p-33120ebd.entry.js} +1 -1
  173. package/{www/build/p-bfe5693d.entry.js → dist/web-components-library/p-35f7cac2.entry.js} +1 -1
  174. package/dist/web-components-library/{p-d33fea26.entry.js → p-3dc21b58.entry.js} +1 -1
  175. package/dist/web-components-library/p-45d4987c.entry.js +1 -0
  176. package/dist/web-components-library/{p-edb8d2ab.entry.js → p-4906f5a6.entry.js} +1 -1
  177. package/dist/web-components-library/{p-02ea7e49.entry.js → p-49602979.entry.js} +1 -1
  178. package/dist/web-components-library/{p-ba29bc12.entry.js → p-49f8c86b.entry.js} +1 -1
  179. package/dist/web-components-library/{p-292bc0c4.entry.js → p-4a8fe1e0.entry.js} +1 -1
  180. package/{www/build/p-3edbd35c.entry.js → dist/web-components-library/p-5553f117.entry.js} +1 -1
  181. package/dist/web-components-library/p-5789bbe7.entry.js +1 -0
  182. package/dist/web-components-library/{p-4af112a7.entry.js → p-5a2dd46c.entry.js} +1 -1
  183. package/dist/web-components-library/{p-63ccb013.entry.js → p-5c20338f.entry.js} +1 -1
  184. package/dist/web-components-library/p-60e042a0.entry.js +1 -0
  185. package/dist/web-components-library/p-6897ca8c.js +1 -0
  186. package/dist/web-components-library/p-6db40dac.entry.js +1 -0
  187. package/dist/web-components-library/p-71f19680.entry.js +1 -0
  188. package/dist/web-components-library/p-7407a0c3.entry.js +1 -0
  189. package/{www/build/p-9a5ee6c2.entry.js → dist/web-components-library/p-7ce57dfd.entry.js} +1 -1
  190. package/dist/web-components-library/{p-3c111c2a.entry.js → p-80044bc0.entry.js} +1 -1
  191. package/{www/build/p-69ef6ddc.entry.js → dist/web-components-library/p-82217c76.entry.js} +1 -1
  192. package/dist/web-components-library/p-898e37bd.entry.js +1 -0
  193. package/dist/web-components-library/p-8cf3798f.entry.js +1 -0
  194. package/dist/web-components-library/{p-e2102da3.entry.js → p-95414290.entry.js} +1 -1
  195. package/dist/web-components-library/{p-9f9e4266.entry.js → p-987f1f8a.entry.js} +1 -1
  196. package/{www/build/p-1f73a6d8.entry.js → dist/web-components-library/p-99a76b4d.entry.js} +1 -1
  197. package/dist/web-components-library/{p-55ddbfe9.entry.js → p-9b563575.entry.js} +1 -1
  198. package/dist/web-components-library/{p-0e256fdc.entry.js → p-9c81ed70.entry.js} +1 -1
  199. package/dist/web-components-library/{p-d995d9dc.entry.js → p-a4245c8a.entry.js} +1 -1
  200. package/dist/web-components-library/{p-6c6b4e80.entry.js → p-a88f4e49.entry.js} +1 -1
  201. package/dist/web-components-library/p-a98ccf36.entry.js +1 -0
  202. package/dist/web-components-library/{p-5be162d5.entry.js → p-bf3ea7b5.entry.js} +1 -1
  203. package/dist/web-components-library/{p-b9da171f.js → p-d41ca4c3.js} +1 -1
  204. package/{www/build/p-d97a2db9.entry.js → dist/web-components-library/p-e30a093f.entry.js} +1 -1
  205. package/dist/web-components-library/p-e9628876.entry.js +1 -0
  206. package/dist/web-components-library/p-ec0c7a06.entry.js +1 -0
  207. package/dist/web-components-library/{p-9074e1a5.entry.js → p-f9f5ab0b.entry.js} +1 -1
  208. package/dist/web-components-library/p-fb7c83f6.js +1 -0
  209. package/dist/web-components-library/{p-51cdabeb.entry.js → p-fd404599.entry.js} +1 -1
  210. package/dist/web-components-library/web-components-library.esm.js +1 -1
  211. package/package.json +1 -1
  212. package/react/components.d.ts +3 -0
  213. package/react/components.js +5 -2
  214. package/react/components.js.map +1 -1
  215. package/www/build/index.esm.js +1 -1
  216. package/www/build/{p-0f17db30.entry.js → p-044edef0.entry.js} +1 -1
  217. package/www/build/{p-43329b81.entry.js → p-0487d5f1.entry.js} +1 -1
  218. package/www/build/{p-57d1acdc.entry.js → p-0610360b.entry.js} +1 -1
  219. package/www/build/p-0bcc78d4.entry.js +1 -0
  220. package/www/build/{p-dffdf60a.entry.js → p-0ccda54f.entry.js} +1 -1
  221. package/www/build/p-13174553.entry.js +1 -0
  222. package/{dist/web-components-library/p-df4e963b.entry.js → www/build/p-18c0f701.entry.js} +1 -1
  223. package/www/build/p-1c2331a4.entry.js +1 -0
  224. package/www/build/p-206e5b31.entry.js +1 -0
  225. package/www/build/{p-0a0aee35.entry.js → p-248e6c7d.entry.js} +1 -1
  226. package/www/build/{p-ccdebe3f.entry.js → p-24f3a39e.entry.js} +1 -1
  227. package/www/build/p-25b1a634.entry.js +1 -0
  228. package/www/build/{p-8fbc2ce9.entry.js → p-286c4c99.entry.js} +1 -1
  229. package/www/build/{p-1727c1c8.entry.js → p-287678e2.entry.js} +1 -1
  230. package/www/build/{p-fe927bf4.entry.js → p-2c86d1ea.entry.js} +1 -1
  231. package/www/build/{p-de25c7f0.entry.js → p-2d93e9e9.entry.js} +1 -1
  232. package/www/build/p-2e0885d6.entry.js +16 -0
  233. package/www/build/{p-b15efba3.entry.js → p-33120ebd.entry.js} +1 -1
  234. package/{dist/web-components-library/p-bfe5693d.entry.js → www/build/p-35f7cac2.entry.js} +1 -1
  235. package/www/build/{p-d33fea26.entry.js → p-3dc21b58.entry.js} +1 -1
  236. package/www/build/p-45d4987c.entry.js +1 -0
  237. package/www/build/{p-edb8d2ab.entry.js → p-4906f5a6.entry.js} +1 -1
  238. package/www/build/{p-02ea7e49.entry.js → p-49602979.entry.js} +1 -1
  239. package/www/build/{p-ba29bc12.entry.js → p-49f8c86b.entry.js} +1 -1
  240. package/www/build/{p-292bc0c4.entry.js → p-4a8fe1e0.entry.js} +1 -1
  241. package/www/build/{p-88b56b6e.css → p-4c9c83c0.css} +1 -1
  242. package/{dist/web-components-library/p-3edbd35c.entry.js → www/build/p-5553f117.entry.js} +1 -1
  243. package/www/build/p-5789bbe7.entry.js +1 -0
  244. package/www/build/p-58d420a2.js +1 -0
  245. package/www/build/{p-4af112a7.entry.js → p-5a2dd46c.entry.js} +1 -1
  246. package/www/build/{p-63ccb013.entry.js → p-5c20338f.entry.js} +1 -1
  247. package/www/build/p-60e042a0.entry.js +1 -0
  248. package/www/build/p-6897ca8c.js +1 -0
  249. package/www/build/p-6db40dac.entry.js +1 -0
  250. package/www/build/p-71f19680.entry.js +1 -0
  251. package/www/build/p-7407a0c3.entry.js +1 -0
  252. package/{dist/web-components-library/p-9a5ee6c2.entry.js → www/build/p-7ce57dfd.entry.js} +1 -1
  253. package/www/build/{p-3c111c2a.entry.js → p-80044bc0.entry.js} +1 -1
  254. package/{dist/web-components-library/p-69ef6ddc.entry.js → www/build/p-82217c76.entry.js} +1 -1
  255. package/www/build/p-898e37bd.entry.js +1 -0
  256. package/www/build/p-8cf3798f.entry.js +1 -0
  257. package/www/build/{p-e2102da3.entry.js → p-95414290.entry.js} +1 -1
  258. package/www/build/{p-9f9e4266.entry.js → p-987f1f8a.entry.js} +1 -1
  259. package/{dist/web-components-library/p-1f73a6d8.entry.js → www/build/p-99a76b4d.entry.js} +1 -1
  260. package/www/build/{p-55ddbfe9.entry.js → p-9b563575.entry.js} +1 -1
  261. package/www/build/{p-0e256fdc.entry.js → p-9c81ed70.entry.js} +1 -1
  262. package/www/build/{p-d995d9dc.entry.js → p-a4245c8a.entry.js} +1 -1
  263. package/www/build/{p-6c6b4e80.entry.js → p-a88f4e49.entry.js} +1 -1
  264. package/www/build/p-a98ccf36.entry.js +1 -0
  265. package/www/build/{p-5be162d5.entry.js → p-bf3ea7b5.entry.js} +1 -1
  266. package/www/build/{p-b9da171f.js → p-d41ca4c3.js} +1 -1
  267. package/{dist/web-components-library/p-d97a2db9.entry.js → www/build/p-e30a093f.entry.js} +1 -1
  268. package/www/build/p-e9628876.entry.js +1 -0
  269. package/www/build/p-ec0c7a06.entry.js +1 -0
  270. package/www/build/{p-9074e1a5.entry.js → p-f9f5ab0b.entry.js} +1 -1
  271. package/www/build/p-fb7c83f6.js +1 -0
  272. package/www/build/{p-51cdabeb.entry.js → p-fd404599.entry.js} +1 -1
  273. package/www/build/web-components-library.esm.js +1 -1
  274. package/www/index.html +6 -70
  275. package/dist/cjs/z-app-switcher_11.cjs.entry.js +0 -377
  276. package/dist/cjs/z-input_2.cjs.entry.js +0 -228
  277. package/dist/esm/z-app-switcher_11.entry.js +0 -363
  278. package/dist/esm/z-input_2.entry.js +0 -223
  279. package/dist/web-components-library/p-0d29d851.entry.js +0 -1
  280. package/dist/web-components-library/p-0ef6c549.entry.js +0 -1
  281. package/dist/web-components-library/p-20d62443.entry.js +0 -1
  282. package/dist/web-components-library/p-562e2d52.entry.js +0 -1
  283. package/dist/web-components-library/p-5eacbfc7.entry.js +0 -1
  284. package/dist/web-components-library/p-6218514a.entry.js +0 -1
  285. package/dist/web-components-library/p-71accd8e.entry.js +0 -1
  286. package/dist/web-components-library/p-7c6d4440.entry.js +0 -1
  287. package/dist/web-components-library/p-93cddf62.entry.js +0 -1
  288. package/dist/web-components-library/p-9f5d707a.js +0 -1
  289. package/dist/web-components-library/p-a8875b97.entry.js +0 -16
  290. package/dist/web-components-library/p-e2431b92.entry.js +0 -1
  291. package/www/build/p-0d29d851.entry.js +0 -1
  292. package/www/build/p-0ef6c549.entry.js +0 -1
  293. package/www/build/p-20d62443.entry.js +0 -1
  294. package/www/build/p-562e2d52.entry.js +0 -1
  295. package/www/build/p-5eacbfc7.entry.js +0 -1
  296. package/www/build/p-6218514a.entry.js +0 -1
  297. package/www/build/p-71accd8e.entry.js +0 -1
  298. package/www/build/p-7c6d4440.entry.js +0 -1
  299. package/www/build/p-93cddf62.entry.js +0 -1
  300. package/www/build/p-9f5d707a.js +0 -1
  301. package/www/build/p-a8875b97.entry.js +0 -16
  302. package/www/build/p-e2431b92.entry.js +0 -1
  303. package/www/build/p-f01941e6.js +0 -1
@@ -3,271 +3,28 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-84b7063a.js');
6
- const index$1 = require('./index-6b6a3299.js');
6
+ const index$1 = require('./index-5c16dc2b.js');
7
7
 
8
- const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
8
+ const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--z-tooltip-shadow-filter:drop-shadow(0 1px 2px var(--shadow-color-base))}:host([dark]) z-popover{--z-popover-theme--surface:var(--color-surface05)}z-popover{--z-popover-padding:var(--space-unit);--z-popover-theme--surface:var(--z-tooltip-theme--surface);--z-popover-theme--text:var(--z-tooltip-theme--text);--z-popover-shadow-filter:var(--z-tooltip-shadow-filter)}";
9
9
 
10
- const documentElement = document.documentElement;
11
- /**
12
- * Find the closest scrollable parent of a node.
13
- *
14
- * @param {Element} element The node
15
- */
16
- function findScrollableParent(element) {
17
- let parent = element.parentNode;
18
- while (parent && parent !== documentElement) {
19
- const { overflow, overflowX, overflowY } = window.getComputedStyle(parent);
20
- if (overflow === 'hidden' ||
21
- overflowY === 'hidden' ||
22
- overflowX === 'hidden') {
23
- return parent;
24
- }
25
- if ((parent.scrollHeight > parent.clientHeight && overflow !== 'visible' && overflowY !== 'visible') ||
26
- (parent.scrollWidth > parent.clientWidth && overflow !== 'visible' && overflowX !== 'visible')) {
27
- return parent;
28
- }
29
- parent = parent.parentNode;
30
- }
31
- return documentElement;
32
- }
33
- /**
34
- * Calculate computed offset.
35
- * It includes matrix transformations.
36
- * @param element The target element.
37
- * @param targetParentOffset The relative offset parent.
38
- * @return A client rect object.
39
- */
40
- function computeOffset(element, targetParentOffset) {
41
- const rect = element.getBoundingClientRect();
42
- const width = rect.width;
43
- const height = rect.height;
44
- let top = 0;
45
- let left = 0;
46
- let offsetParent = element;
47
- while (offsetParent && offsetParent != targetParentOffset) {
48
- left += offsetParent.offsetLeft;
49
- // document.body sometimes has offsetTop == 0 but still has an
50
- // offset because of children margins!
51
- if (offsetParent === document.body) {
52
- top += offsetParent.getBoundingClientRect().top + window.scrollY;
53
- }
54
- else {
55
- top += offsetParent.offsetTop;
56
- }
57
- if (window.DOMMatrix) {
58
- const style = window.getComputedStyle(offsetParent);
59
- const transform = style.transform || style.webkitTransform;
60
- const domMatrix = new DOMMatrix(transform);
61
- if (domMatrix) {
62
- left += domMatrix.m41;
63
- if (offsetParent !== document.body) {
64
- top += domMatrix.m42;
65
- }
66
- }
67
- }
68
- if (!offsetParent.offsetParent) {
69
- break;
70
- }
71
- offsetParent = offsetParent.offsetParent;
72
- }
73
- let parentWidth;
74
- let parentHeight;
75
- if (offsetParent === document.body) {
76
- parentWidth = window.innerWidth;
77
- parentHeight = window.innerHeight;
78
- }
79
- else {
80
- parentWidth = offsetParent.offsetWidth;
81
- parentHeight = offsetParent.offsetHeight;
82
- }
83
- const right = parentWidth - left - rect.width;
84
- const bottom = parentHeight - top - rect.height;
85
- return { top, right, bottom, left, width, height };
86
- }
87
10
  const ZTooltip = class {
88
11
  constructor(hostRef) {
89
12
  index.registerInstance(this, hostRef);
90
- this.positionChange = index.createEvent(this, "positionChange", 7);
91
13
  /** Tooltip position. */
92
- this.type = index$1.TooltipPosition.AUTO;
14
+ this.position = index$1.PopoverPositions.AUTO;
15
+ /** Enable tooltip dark mode. */
16
+ this.dark = false;
93
17
  /**
94
18
  * The open state of the tooltip.
95
19
  */
96
20
  this.open = false;
97
21
  }
98
- validateType(newValue) {
99
- if (newValue &&
100
- Object
101
- .values(index$1.TooltipPosition)
102
- .every((position) => newValue !== position)) {
103
- this.type = index$1.TooltipPosition.AUTO;
104
- }
105
- }
106
- onPositionChange() {
107
- this.positionChange.emit({ position: this.position });
108
- }
109
- disconnectedCallback() {
110
- cancelAnimationFrame(this.animationFrameRequestId);
111
- }
112
- /**
113
- * Setup tooltip behaviors on opening.
114
- */
115
- onOpen() {
116
- cancelAnimationFrame(this.animationFrameRequestId);
117
- if (this.content) {
118
- return;
119
- }
120
- if (this.open) {
121
- const setPosition = () => {
122
- if (this.open) {
123
- this.setPosition();
124
- this.animationFrameRequestId = requestAnimationFrame(setPosition);
125
- }
126
- };
127
- setPosition();
128
- }
129
- else {
130
- const style = this.host.style;
131
- style.removeProperty("top");
132
- style.removeProperty("right");
133
- style.removeProperty("bottom");
134
- style.removeProperty("left");
135
- }
136
- }
137
- /**
138
- * Set the position of the tooltip.
139
- */
140
- setPosition() {
141
- let element;
142
- if (typeof this.bindTo === "string") {
143
- element = this.host.ownerDocument.querySelector(this.bindTo);
144
- }
145
- else if (this.bindTo) {
146
- element = this.bindTo;
147
- }
148
- else {
149
- element = this.host.parentElement;
150
- }
151
- if (!element) {
152
- return;
153
- }
154
- const scrollContainer = findScrollableParent(element);
155
- const scrollingBoundingRect = scrollContainer.getBoundingClientRect();
156
- const offsetContainer = this.host.offsetParent;
157
- const relativeBoundingRect = offsetContainer ? computeOffset(offsetContainer, scrollContainer) : { top: 0, right: 0, bottom: 0, left: 0 };
158
- const boundingRect = computeOffset(element, scrollContainer);
159
- const top = boundingRect.top - scrollContainer.scrollTop;
160
- const bottom = scrollingBoundingRect.height - (boundingRect.top + boundingRect.height) + scrollContainer.scrollTop;
161
- const left = boundingRect.left - scrollContainer.scrollLeft;
162
- const right = scrollingBoundingRect.width - (boundingRect.left + boundingRect.width) + scrollContainer.scrollLeft;
163
- const overflowBottom = Math.max(0, scrollingBoundingRect.top + scrollingBoundingRect.height - window.innerHeight);
164
- const overflowRight = Math.max(0, scrollingBoundingRect.left + scrollingBoundingRect.width - window.innerWidth);
165
- const availableTop = Math.min(top, top + scrollingBoundingRect.top);
166
- const availableBottom = Math.min(bottom, bottom - overflowBottom);
167
- const availableLeft = Math.min(left, left + scrollingBoundingRect.left);
168
- const availableRight = Math.min(right, right - overflowRight);
169
- const availableHeight = availableTop + availableBottom + boundingRect.height;
170
- const availableWidth = availableLeft + availableRight + boundingRect.width;
171
- let position = this.type;
172
- if (position === index$1.TooltipPosition.AUTO) {
173
- /**
174
- * The `AUTO` position tries to place the tooltip in the "safest" area,
175
- * where there's more space available.
176
- */
177
- const positions = [];
178
- if (availableTop / availableHeight > 0.9) {
179
- positions.unshift(index$1.TooltipPosition.TOP);
180
- }
181
- else if (availableTop / availableHeight > 0.6) {
182
- positions.push(index$1.TooltipPosition.TOP);
183
- }
184
- else if (availableTop / availableHeight < 0.1) {
185
- positions.unshift(index$1.TooltipPosition.BOTTOM);
186
- }
187
- else {
188
- positions.push(index$1.TooltipPosition.BOTTOM);
189
- }
190
- if (availableLeft / availableWidth > 0.6) {
191
- positions.push(index$1.TooltipPosition.LEFT);
192
- }
193
- else if (availableLeft / availableWidth < 0.4) {
194
- positions.push(index$1.TooltipPosition.RIGHT);
195
- }
196
- position = positions.join("_");
197
- }
198
- const style = this.host.style;
199
- if (!this.content) {
200
- style.position = "absolute";
201
- }
202
- const offsetTop = boundingRect.top - relativeBoundingRect.top;
203
- const offsetRight = boundingRect.right - relativeBoundingRect.right;
204
- const offsetBottom = boundingRect.bottom - relativeBoundingRect.bottom;
205
- const offsetLeft = boundingRect.left - relativeBoundingRect.left;
206
- if (position === index$1.TooltipPosition.TOP ||
207
- position === index$1.TooltipPosition.TOP_RIGHT ||
208
- position === index$1.TooltipPosition.TOP_LEFT) {
209
- style.top = "auto";
210
- style.bottom = `${offsetBottom + boundingRect.height}px`;
211
- }
212
- if (position === index$1.TooltipPosition.BOTTOM ||
213
- position === index$1.TooltipPosition.BOTTOM_RIGHT ||
214
- position === index$1.TooltipPosition.BOTTOM_LEFT) {
215
- style.top = `${offsetTop + boundingRect.height}px`;
216
- style.bottom = "auto";
217
- }
218
- if (position === index$1.TooltipPosition.TOP ||
219
- position === index$1.TooltipPosition.BOTTOM) {
220
- style.left = `${offsetLeft +
221
- (boundingRect.width / 2) -
222
- (this.host.clientWidth / 2)}px`;
223
- }
224
- if (position === index$1.TooltipPosition.TOP_RIGHT ||
225
- position === index$1.TooltipPosition.BOTTOM_RIGHT) {
226
- style.right = "auto";
227
- style.left = `${offsetLeft + boundingRect.width}px`;
228
- }
229
- if (position === index$1.TooltipPosition.TOP_LEFT ||
230
- position === index$1.TooltipPosition.BOTTOM_LEFT) {
231
- style.left = "auto";
232
- style.right = `${offsetRight + boundingRect.width}px`;
233
- }
234
- if (position === index$1.TooltipPosition.RIGHT ||
235
- position === index$1.TooltipPosition.LEFT) {
236
- style.top = `${offsetTop +
237
- (boundingRect.height / 2) -
238
- (this.host.clientHeight / 2)}px`;
239
- style.bottom = "auto";
240
- }
241
- if (position === index$1.TooltipPosition.RIGHT) {
242
- style.right = "auto";
243
- style.left = `${offsetLeft + boundingRect.width}px`;
244
- }
245
- if (position === index$1.TooltipPosition.LEFT) {
246
- style.left = "auto";
247
- style.right = `${offsetRight + boundingRect.width}px`;
248
- }
249
- this.position = position;
250
- }
251
- componentWillLoad() {
252
- // Keep backward compatibility
253
- if (this.content) {
254
- this.open = true;
255
- }
256
- this.validateType(this.type);
257
- this.onOpen();
22
+ onPopoverOpenChange() {
23
+ this.open = this.popover.open;
258
24
  }
259
25
  render() {
260
- if (this.content) {
261
- return (index.h(index.Host, { class: "legacy", position: this.type }, this.content));
262
- }
263
- return (index.h(index.Host, { position: this.position }, index.h("slot", null)));
26
+ return index.h("z-popover", { ref: (el) => (this.popover = el), bindTo: this.bindTo, open: this.open, position: this.position, center: true, showArrow: true }, index.h("slot", null));
264
27
  }
265
- get host() { return index.getElement(this); }
266
- static get watchers() { return {
267
- "type": ["validateType"],
268
- "position": ["onPositionChange"],
269
- "open": ["onOpen"]
270
- }; }
271
28
  };
272
29
  ZTooltip.style = stylesCss;
273
30
 
@@ -57,18 +57,55 @@ export var InputStatusEnum;
57
57
  InputStatusEnum["error"] = "error";
58
58
  InputStatusEnum["warning"] = "warning";
59
59
  })(InputStatusEnum || (InputStatusEnum = {}));
60
- export var TooltipPosition;
61
- (function (TooltipPosition) {
62
- TooltipPosition["AUTO"] = "auto";
63
- TooltipPosition["TOP"] = "top";
64
- TooltipPosition["RIGHT"] = "right";
65
- TooltipPosition["BOTTOM"] = "bottom";
66
- TooltipPosition["LEFT"] = "left";
67
- TooltipPosition["TOP_RIGHT"] = "top_right";
68
- TooltipPosition["TOP_LEFT"] = "top_left";
69
- TooltipPosition["BOTTOM_RIGHT"] = "bottom_right";
70
- TooltipPosition["BOTTOM_LEFT"] = "bottom_left";
71
- })(TooltipPosition || (TooltipPosition = {}));
60
+ export var PopoverPositions;
61
+ (function (PopoverPositions) {
62
+ PopoverPositions["AUTO"] = "auto";
63
+ PopoverPositions["TOP"] = "top";
64
+ PopoverPositions["RIGHT"] = "right";
65
+ PopoverPositions["BOTTOM"] = "bottom";
66
+ PopoverPositions["LEFT"] = "left";
67
+ PopoverPositions["TOP_RIGHT"] = "top_right";
68
+ PopoverPositions["TOP_LEFT"] = "top_left";
69
+ PopoverPositions["BOTTOM_RIGHT"] = "bottom_right";
70
+ PopoverPositions["BOTTOM_LEFT"] = "bottom_left";
71
+ PopoverPositions["RIGHT_TOP"] = "right_top";
72
+ PopoverPositions["RIGHT_BOTTOM"] = "right_bottom";
73
+ PopoverPositions["LEFT_TOP"] = "left_top";
74
+ PopoverPositions["LEFT_BOTTOM"] = "left_bottom";
75
+ })(PopoverPositions || (PopoverPositions = {}));
76
+ export var PopoverPosition;
77
+ (function (PopoverPosition) {
78
+ PopoverPosition["after-down"] = "after-down";
79
+ PopoverPosition["after-center"] = "after-center";
80
+ PopoverPosition["after-up"] = "after-up";
81
+ PopoverPosition["below-right"] = "below-right";
82
+ PopoverPosition["below-center"] = "below-center";
83
+ PopoverPosition["below-left"] = "below-left";
84
+ PopoverPosition["before-down"] = "before-down";
85
+ PopoverPosition["before-center"] = "before-center";
86
+ PopoverPosition["before-up"] = "before-up";
87
+ PopoverPosition["above-right"] = "above-right";
88
+ PopoverPosition["above-center"] = "above-center";
89
+ PopoverPosition["above-left"] = "above-left";
90
+ })(PopoverPosition || (PopoverPosition = {}));
91
+ export var PopoverBorderRadius;
92
+ (function (PopoverBorderRadius) {
93
+ PopoverBorderRadius["none"] = "none";
94
+ PopoverBorderRadius["small"] = "small";
95
+ PopoverBorderRadius["medium"] = "medium";
96
+ })(PopoverBorderRadius || (PopoverBorderRadius = {}));
97
+ export var PopoverShadow;
98
+ (function (PopoverShadow) {
99
+ PopoverShadow["shadow-1"] = "shadow-1";
100
+ PopoverShadow["shadow-2"] = "shadow-2";
101
+ PopoverShadow["shadow-3"] = "shadow-3";
102
+ PopoverShadow["shadow-4"] = "shadow-4";
103
+ PopoverShadow["shadow-6"] = "shadow-6";
104
+ PopoverShadow["shadow-8"] = "shadow-8";
105
+ PopoverShadow["shadow-12"] = "shadow-12";
106
+ PopoverShadow["shadow-16"] = "shadow-16";
107
+ PopoverShadow["shadow-24"] = "shadow-24";
108
+ })(PopoverShadow || (PopoverShadow = {}));
72
109
  export var KeyboardKeyCodeEnum;
73
110
  (function (KeyboardKeyCodeEnum) {
74
111
  KeyboardKeyCodeEnum[KeyboardKeyCodeEnum["TAB"] = 9] = "TAB";
@@ -104,39 +141,6 @@ export var ThemeVariant;
104
141
  ThemeVariant["dark"] = "dark";
105
142
  ThemeVariant["light"] = "light";
106
143
  })(ThemeVariant || (ThemeVariant = {}));
107
- export var PopoverPosition;
108
- (function (PopoverPosition) {
109
- PopoverPosition["after-down"] = "after-down";
110
- PopoverPosition["after-center"] = "after-center";
111
- PopoverPosition["after-up"] = "after-up";
112
- PopoverPosition["below-right"] = "below-right";
113
- PopoverPosition["below-center"] = "below-center";
114
- PopoverPosition["below-left"] = "below-left";
115
- PopoverPosition["before-down"] = "before-down";
116
- PopoverPosition["before-center"] = "before-center";
117
- PopoverPosition["before-up"] = "before-up";
118
- PopoverPosition["above-right"] = "above-right";
119
- PopoverPosition["above-center"] = "above-center";
120
- PopoverPosition["above-left"] = "above-left";
121
- })(PopoverPosition || (PopoverPosition = {}));
122
- export var PopoverBorderRadius;
123
- (function (PopoverBorderRadius) {
124
- PopoverBorderRadius["none"] = "none";
125
- PopoverBorderRadius["small"] = "small";
126
- PopoverBorderRadius["medium"] = "medium";
127
- })(PopoverBorderRadius || (PopoverBorderRadius = {}));
128
- export var PopoverShadow;
129
- (function (PopoverShadow) {
130
- PopoverShadow["shadow-1"] = "shadow-1";
131
- PopoverShadow["shadow-2"] = "shadow-2";
132
- PopoverShadow["shadow-3"] = "shadow-3";
133
- PopoverShadow["shadow-4"] = "shadow-4";
134
- PopoverShadow["shadow-6"] = "shadow-6";
135
- PopoverShadow["shadow-8"] = "shadow-8";
136
- PopoverShadow["shadow-12"] = "shadow-12";
137
- PopoverShadow["shadow-16"] = "shadow-16";
138
- PopoverShadow["shadow-24"] = "shadow-24";
139
- })(PopoverShadow || (PopoverShadow = {}));
140
144
  export var DividerSize;
141
145
  (function (DividerSize) {
142
146
  DividerSize["small"] = "small";
@@ -6,6 +6,8 @@
6
6
  "./components/buttons/z-chip/index.js",
7
7
  "./components/buttons/z-toggle-button/index.js",
8
8
  "./components/buttons/z-toggle-switch/index.js",
9
+ "./components/date-picker/z-date-picker/index.js",
10
+ "./components/date-picker/z-range-picker/index.js",
9
11
  "./components/file-upload/z-dragdrop-area/index.js",
10
12
  "./components/file-upload/z-file/index.js",
11
13
  "./components/file-upload/z-file-upload/index.js",
@@ -53,7 +55,6 @@
53
55
  "./components/z-card/index.js",
54
56
  "./components/z-carousel/index.js",
55
57
  "./components/z-contextual-menu/index.js",
56
- "./components/z-date-picker/index.js",
57
58
  "./components/z-divider/index.js",
58
59
  "./components/z-ghost-loading/index.js",
59
60
  "./components/z-offcanvas/index.js",
@@ -81,7 +82,9 @@
81
82
  "./deprecated/z-chip-deprecated/index.js",
82
83
  "./deprecated/z-input-deprecated/index.js",
83
84
  "./deprecated/z-input-label/index.js",
85
+ "./deprecated/z-popover-deprecated/index.js",
84
86
  "./deprecated/z-status-tag/index.js",
87
+ "./deprecated/z-tooltip-deprecated/index.js",
85
88
  "./snowflakes/myz/card/z-myz-card/index.js",
86
89
  "./snowflakes/myz/card/z-myz-card-alert/index.js",
87
90
  "./snowflakes/myz/card/z-myz-card-body/index.js",
@@ -19,10 +19,8 @@ export class ZButton {
19
19
  id: this.htmlid,
20
20
  "aria-label": this.ariaLabel,
21
21
  class: {
22
- container: true,
23
- [this.variant]: true,
24
- [this.size]: true,
25
- "has-text": !!this.hostElement.textContent
22
+ "z-button--container": true,
23
+ "z-button--has-text": !!this.hostElement.textContent.trim()
26
24
  }
27
25
  };
28
26
  }
@@ -77,7 +75,7 @@ export class ZButton {
77
75
  "text": "HTML <a> href attribute. If it is set, it renders an HTML <a> tag."
78
76
  },
79
77
  "attribute": "href",
80
- "reflect": true
78
+ "reflect": false
81
79
  },
82
80
  "target": {
83
81
  "type": "string",
@@ -94,7 +92,7 @@ export class ZButton {
94
92
  "text": "HTML a target attribute."
95
93
  },
96
94
  "attribute": "target",
97
- "reflect": true
95
+ "reflect": false
98
96
  },
99
97
  "htmlid": {
100
98
  "type": "string",
@@ -208,7 +206,7 @@ export class ZButton {
208
206
  "text": "`z-icon` name to use (optional)."
209
207
  },
210
208
  "attribute": "icon",
211
- "reflect": true
209
+ "reflect": false
212
210
  },
213
211
  "size": {
214
212
  "type": "string",
@@ -9,7 +9,7 @@
9
9
  pointer-events: none;
10
10
  }
11
11
 
12
- :host .container {
12
+ :host .z-button--container {
13
13
  box-sizing: border-box;
14
14
  display: inline-flex;
15
15
  align-items: center;
@@ -32,116 +32,116 @@
32
32
  fill: currentColor;
33
33
  }
34
34
 
35
- :host .container.has-text {
35
+ :host .z-button--container:focus:focus-visible {
36
+ box-shadow: var(--shadow-focus-primary);
37
+ }
38
+
39
+ :host .z-button--container.z-button--has-text {
36
40
  min-width: calc(var(--space-unit) * 8);
37
41
  padding: 0 calc(var(--space-unit) * 2);
38
42
  }
39
43
 
40
- :host .container.has-text z-icon {
44
+ :host .z-button--container.z-button--has-text z-icon {
41
45
  --z-icon-right-margin: var(--space-unit);
42
46
  }
43
47
 
44
- :host .big {
48
+ :host([size="big"]) .z-button--container {
45
49
  height: 44px;
46
50
  min-width: 44px;
47
51
  }
48
52
 
49
- :host .small {
53
+ :host([size="small"]) .z-button--container {
50
54
  height: 36px;
51
55
  min-width: 36px;
52
56
  }
53
57
 
54
- :host .x-small {
58
+ :host([size="x-small"]) .z-button--container {
55
59
  height: 32px;
56
60
  min-width: 32px;
57
61
  }
58
62
 
59
- :host .primary {
63
+ :host([variant="primary"]) .z-button--container {
60
64
  background-color: var(--color-primary01);
61
65
  border-color: var(--color-primary01);
62
66
  color: var(--color-text-inverse);
63
67
  }
64
68
 
65
69
  @media (hover: hover) {
66
- :host .primary:hover {
70
+ :host([variant="primary"]) .z-button--container:hover {
67
71
  background-color: var(--color-hover-primary);
68
72
  border-color: var(--color-hover-primary);
69
73
  color: var(--color-text-inverse);
70
74
  }
71
75
  }
72
76
 
73
- :host .container:focus:focus-visible {
74
- box-shadow: var(--shadow-focus-primary);
75
- }
76
-
77
- :host .primary:active {
77
+ :host([variant="primary"]) .z-button--container:active {
78
78
  background-color: var(--color-pressed-primary);
79
79
  border-color: var(--color-pressed-primary);
80
80
  color: var(--color-text-inverse);
81
81
  box-shadow: var(--shadow-2);
82
82
  }
83
83
 
84
- :host([disabled]:not([disabled="false"])) .primary {
84
+ :host([variant="primary"][disabled]:not([disabled="false"])) .z-button--container {
85
85
  background-color: var(--color-disabled01);
86
86
  border-color: var(--color-disabled01);
87
87
  color: var(--color-disabled02);
88
88
  }
89
89
 
90
- :host .secondary {
90
+ :host([variant="secondary"]) .z-button--container {
91
91
  background-color: var(--color-surface01);
92
92
  border-color: var(--color-primary01);
93
93
  color: var(--color-primary01);
94
94
  }
95
95
 
96
96
  @media (hover: hover) {
97
- :host .secondary:hover {
97
+ :host([variant="secondary"]) .z-button--container:hover {
98
98
  background-color: var(--color-surface01);
99
99
  border-color: var(--color-hover-primary);
100
100
  color: var(--color-hover-primary);
101
101
  }
102
102
  }
103
103
 
104
- :host .secondary:active {
104
+ :host([variant="secondary"]) .z-button--container:active {
105
105
  background-color: var(--color-surface01);
106
106
  border-color: var(--color-pressed-primary);
107
107
  color: var(--color-pressed-primary);
108
108
  box-shadow: var(--shadow-2);
109
109
  }
110
110
 
111
- :host([disabled]:not([disabled="false"])) .secondary {
111
+ :host([variant="secondary"][disabled]:not([disabled="false"])) .z-button--container {
112
112
  background-color: var(--color-surface01);
113
113
  border-color: var(--color-disabled01);
114
114
  color: var(--color-disabled02);
115
115
  }
116
116
 
117
- :host .tertiary {
117
+ :host([variant="tertiary"]) .z-button--container {
118
118
  background-color: transparent;
119
119
  border-color: transparent;
120
120
  color: var(--color-primary01);
121
121
  }
122
122
 
123
123
  @media (hover: hover) {
124
- :host .tertiary:hover {
124
+ :host([variant="tertiary"]) .z-button--container:hover {
125
125
  background-color: var(--color-primary03);
126
126
  border-color: var(--color-primary03);
127
127
  color: var(--color-hover-primary);
128
128
  }
129
129
  }
130
130
 
131
- :host .tertiary:focus:focus-visible {
131
+ :host([variant="tertiary"]) .z-button--container:focus:focus-visible {
132
132
  background-color: var(--color-surface01);
133
133
  border-color: var(--color-surface01);
134
134
  color: var(--color-primary01);
135
135
  }
136
136
 
137
- :host .tertiary:active {
137
+ :host([variant="tertiary"]) .z-button--container:active {
138
138
  background-color: var(--color-surface01);
139
139
  border-color: var(--color-surface01);
140
140
  color: var(--color-primary01);
141
141
  box-shadow: var(--shadow-2);
142
142
  }
143
143
 
144
- :host([disabled]:not([disabled="false"])) .tertiary {
144
+ :host([variant="tertiary"][disabled]:not([disabled="false"])) .z-button--container {
145
145
  background-color: transparent;
146
146
  border-color: transparent;
147
147
  color: var(--color-disabled02);