@zanichelli/albe-web-components 19.2.6 → 19.2.8-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 (266) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/cjs/index-D_S5lGcb.js +4 -4
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{utils-Ctc6JP2n.js → utils-BY7xrW7W.js} +6 -0
  6. package/dist/cjs/web-components-library.cjs.js +1 -1
  7. package/dist/cjs/z-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/z-app-header_12.cjs.entry.js +141 -211
  9. package/dist/cjs/z-book-card-deprecated.cjs.entry.js +1 -1
  10. package/dist/cjs/z-breadcrumb.cjs.entry.js +1 -1
  11. package/dist/cjs/z-color-picker.cjs.entry.js +1 -1
  12. package/dist/cjs/z-combobox.cjs.entry.js +7 -5
  13. package/dist/cjs/z-menu.cjs.entry.js +1 -1
  14. package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  15. package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  16. package/dist/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  17. package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  18. package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  19. package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
  20. package/dist/cjs/z-myz-card-list.cjs.entry.js +1 -1
  21. package/dist/cjs/z-myz-card_4.cjs.entry.js +4 -4
  22. package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
  23. package/dist/cjs/z-myz-list.cjs.entry.js +1 -1
  24. package/dist/cjs/z-otp.cjs.entry.js +2 -2
  25. package/dist/cjs/z-popover.cjs.entry.js +1 -1
  26. package/dist/cjs/z-select.cjs.entry.js +4 -8
  27. package/dist/cjs/z-skip-to-content.cjs.entry.js +2 -2
  28. package/dist/cjs/z-slideshow.cjs.entry.js +1 -1
  29. package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
  30. package/dist/cjs/z-stepper.cjs.entry.js +1 -1
  31. package/dist/cjs/z-table.cjs.entry.js +1 -1
  32. package/dist/cjs/z-td.cjs.entry.js +3 -3
  33. package/dist/cjs/z-th.cjs.entry.js +5 -3
  34. package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  35. package/dist/cjs/z-toast-notification.cjs.entry.js +95 -34
  36. package/dist/cjs/z-toggle-button.cjs.entry.js +2 -2
  37. package/dist/cjs/z-toggle-switch.cjs.entry.js +4 -4
  38. package/dist/cjs/z-tool.cjs.entry.js +3 -3
  39. package/dist/cjs/z-toolbar.cjs.entry.js +1 -1
  40. package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
  41. package/dist/cjs/z-tr.cjs.entry.js +1 -1
  42. package/dist/collection/components/css-components/z-scrollbar/styles.css +40 -0
  43. package/dist/collection/components/table/cells/{z-td/styles.css → z-table-cells.css} +0 -1
  44. package/dist/collection/components/table/cells/z-td/index.js +3 -3
  45. package/dist/collection/components/table/cells/z-th/index.js +3 -3
  46. package/dist/collection/components/table/cells/z-th/styles.css +0 -72
  47. package/dist/collection/components/z-app-header/index.js +21 -2
  48. package/dist/collection/components/z-app-header/index.stories.js +25 -9
  49. package/dist/collection/components/z-combobox/index.js +5 -5
  50. package/dist/collection/components/z-combobox/styles.css +0 -12
  51. package/dist/collection/components/z-input/index.js +51 -32
  52. package/dist/collection/components/z-input/styles-checkbox-radio.css +130 -0
  53. package/dist/collection/components/z-input/styles-general.css +166 -0
  54. package/dist/collection/components/z-input/styles-text.css +87 -0
  55. package/dist/collection/components/z-input/styles-textarea.css +19 -0
  56. package/dist/collection/components/z-searchbar/index.js +133 -193
  57. package/dist/collection/components/z-searchbar/index.stories.js +12 -16
  58. package/dist/collection/components/z-searchbar/styles.css +87 -201
  59. package/dist/collection/components/z-select/index.js +4 -8
  60. package/dist/collection/components/z-skip-to-content/index.js +1 -1
  61. package/dist/collection/components/z-stepper/index.js +1 -1
  62. package/dist/collection/components/z-stepper-item/index.js +1 -1
  63. package/dist/collection/components/z-toast-notification/index.js +3 -3
  64. package/dist/collection/components/z-toast-notification-list/index.js +1 -1
  65. package/dist/collection/components/z-toggle-button/index.js +2 -2
  66. package/dist/collection/components/z-toggle-switch/index.js +3 -3
  67. package/dist/collection/components/z-tool/index.js +2 -2
  68. package/dist/collection/components/z-toolbar/index.js +1 -1
  69. package/dist/collection/components/z-tooltip/index.js +1 -1
  70. package/dist/collection/snowflakes/myz/card/z-myz-card/index.js +1 -1
  71. package/dist/collection/snowflakes/myz/card/z-myz-card-alert/index.js +1 -1
  72. package/dist/collection/snowflakes/myz/card/z-myz-card-body/index.js +1 -1
  73. package/dist/collection/snowflakes/myz/card/z-myz-card-cover/index.js +1 -1
  74. package/dist/collection/snowflakes/myz/card/z-myz-card-dictionary/index.js +1 -1
  75. package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +1 -1
  76. package/dist/collection/snowflakes/myz/card/z-myz-card-footer-sections/index.js +1 -1
  77. package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
  78. package/dist/collection/snowflakes/myz/card/z-myz-card-icon/index.js +1 -1
  79. package/dist/collection/snowflakes/myz/card/z-myz-card-info/index.js +1 -1
  80. package/dist/collection/snowflakes/myz/card/z-myz-card-list/index.js +1 -1
  81. package/dist/collection/snowflakes/myz/list/z-myz-list/index.js +1 -1
  82. package/dist/collection/snowflakes/myz/list/z-myz-list-item/index.js +1 -1
  83. package/dist/collection/snowflakes/myz/z-alert/index.js +1 -1
  84. package/dist/collection/snowflakes/myz/z-otp/index.js +2 -2
  85. package/dist/collection/utils/utils.js +5 -0
  86. package/dist/components/index13.js +1 -1
  87. package/dist/components/index17.js +1 -1
  88. package/dist/components/index22.js +1 -1
  89. package/dist/components/index23.js +1 -1
  90. package/dist/components/index24.js +1 -1
  91. package/dist/components/index25.js +1 -1
  92. package/dist/components/index26.js +1 -1
  93. package/dist/components/index27.js +1 -1
  94. package/dist/components/index4.js +1 -1
  95. package/dist/components/index7.js +1 -1
  96. package/dist/components/utils.js +1 -1
  97. package/dist/components/z-app-header.js +1 -1
  98. package/dist/components/z-combobox.js +1 -1
  99. package/dist/components/z-myz-card-alert.js +1 -1
  100. package/dist/components/z-myz-card-dictionary.js +1 -1
  101. package/dist/components/z-myz-card-footer-sections.js +1 -1
  102. package/dist/components/z-myz-card-footer.js +1 -1
  103. package/dist/components/z-myz-card-icon.js +1 -1
  104. package/dist/components/z-myz-card-info.js +1 -1
  105. package/dist/components/z-myz-card-list.js +1 -1
  106. package/dist/components/z-myz-list.js +1 -1
  107. package/dist/components/z-otp.js +1 -1
  108. package/dist/components/z-select.js +1 -1
  109. package/dist/components/z-skip-to-content.js +1 -1
  110. package/dist/components/z-slideshow.js +1 -1
  111. package/dist/components/z-stepper-item.js +1 -1
  112. package/dist/components/z-stepper.js +1 -1
  113. package/dist/components/z-td.js +1 -1
  114. package/dist/components/z-th.js +1 -1
  115. package/dist/components/z-toast-notification-list.js +1 -1
  116. package/dist/components/z-toast-notification.js +1 -1
  117. package/dist/components/z-toggle-button.js +1 -1
  118. package/dist/components/z-toggle-switch.js +1 -1
  119. package/dist/components/z-tool.js +1 -1
  120. package/dist/components/z-toolbar.js +1 -1
  121. package/dist/esm/index-DPdXlnVe.js +4 -4
  122. package/dist/esm/index.js +1 -1
  123. package/dist/esm/loader.js +1 -1
  124. package/dist/esm/{utils-0PByxJyN.js → utils-BEzZQwOB.js} +7 -2
  125. package/dist/esm/web-components-library.js +1 -1
  126. package/dist/esm/z-alert.entry.js +1 -1
  127. package/dist/esm/z-app-header_12.entry.js +142 -212
  128. package/dist/esm/z-book-card-deprecated.entry.js +1 -1
  129. package/dist/esm/z-breadcrumb.entry.js +1 -1
  130. package/dist/esm/z-color-picker.entry.js +1 -1
  131. package/dist/esm/z-combobox.entry.js +7 -5
  132. package/dist/esm/z-menu.entry.js +1 -1
  133. package/dist/esm/z-myz-card-alert.entry.js +1 -1
  134. package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
  135. package/dist/esm/z-myz-card-footer-sections.entry.js +1 -1
  136. package/dist/esm/z-myz-card-footer.entry.js +1 -1
  137. package/dist/esm/z-myz-card-icon.entry.js +1 -1
  138. package/dist/esm/z-myz-card-info.entry.js +2 -2
  139. package/dist/esm/z-myz-card-list.entry.js +1 -1
  140. package/dist/esm/z-myz-card_4.entry.js +4 -4
  141. package/dist/esm/z-myz-list-item.entry.js +2 -2
  142. package/dist/esm/z-myz-list.entry.js +1 -1
  143. package/dist/esm/z-otp.entry.js +2 -2
  144. package/dist/esm/z-popover.entry.js +1 -1
  145. package/dist/esm/z-select.entry.js +4 -8
  146. package/dist/esm/z-skip-to-content.entry.js +2 -2
  147. package/dist/esm/z-slideshow.entry.js +1 -1
  148. package/dist/esm/z-stepper-item.entry.js +1 -1
  149. package/dist/esm/z-stepper.entry.js +1 -1
  150. package/dist/esm/z-table.entry.js +1 -1
  151. package/dist/esm/z-td.entry.js +3 -3
  152. package/dist/esm/z-th.entry.js +5 -3
  153. package/dist/esm/z-toast-notification-list.entry.js +1 -1
  154. package/dist/esm/z-toast-notification.entry.js +95 -34
  155. package/dist/esm/z-toggle-button.entry.js +2 -2
  156. package/dist/esm/z-toggle-switch.entry.js +4 -4
  157. package/dist/esm/z-tool.entry.js +3 -3
  158. package/dist/esm/z-toolbar.entry.js +1 -1
  159. package/dist/esm/z-tooltip.entry.js +1 -1
  160. package/dist/esm/z-tr.entry.js +1 -1
  161. package/dist/types/components/z-app-header/index.d.ts +4 -0
  162. package/dist/types/components/z-app-header/index.stories.d.ts +7 -0
  163. package/dist/types/components/z-input/index.d.ts +6 -4
  164. package/dist/types/components/z-searchbar/index.d.ts +26 -28
  165. package/dist/types/components/z-searchbar/index.stories.d.ts +4 -0
  166. package/dist/types/components/z-select/index.d.ts +0 -1
  167. package/dist/types/components.d.ts +46 -17
  168. package/dist/types/utils/utils.d.ts +2 -0
  169. package/dist/web-components-library/index.esm.js +1 -1
  170. package/dist/web-components-library/{p-19d3a16b.entry.js → p-0105149a.entry.js} +1 -1
  171. package/dist/web-components-library/p-0da8eae7.entry.js +1 -0
  172. package/dist/web-components-library/{p-5fa910e4.entry.js → p-13e7f751.entry.js} +1 -1
  173. package/dist/web-components-library/{p-45866f64.entry.js → p-1580db58.entry.js} +1 -1
  174. package/dist/web-components-library/{p-eed4e897.entry.js → p-20d94cce.entry.js} +1 -1
  175. package/dist/web-components-library/{p-2ce3ac48.entry.js → p-271dfd9c.entry.js} +1 -1
  176. package/dist/web-components-library/{p-e2d94c86.entry.js → p-2abf765d.entry.js} +1 -1
  177. package/dist/web-components-library/{p-5b9cacd7.entry.js → p-2df6d169.entry.js} +1 -1
  178. package/dist/web-components-library/{p-de0b7109.entry.js → p-313fc91d.entry.js} +1 -1
  179. package/dist/web-components-library/p-41584e90.entry.js +1 -0
  180. package/dist/web-components-library/p-4a434f6e.entry.js +1 -0
  181. package/dist/web-components-library/{p-7a9d19b8.entry.js → p-4d1b3d16.entry.js} +1 -1
  182. package/dist/web-components-library/p-53670be4.entry.js +1 -0
  183. package/dist/web-components-library/{p-538a1bd2.entry.js → p-5d20fc3d.entry.js} +1 -1
  184. package/dist/web-components-library/p-61992f12.entry.js +1 -0
  185. package/dist/web-components-library/{p-d11d39f5.entry.js → p-62d2247e.entry.js} +1 -1
  186. package/dist/web-components-library/{p-7d9477ed.entry.js → p-64c025f6.entry.js} +1 -1
  187. package/dist/web-components-library/{p-364b0ca4.entry.js → p-658f022d.entry.js} +1 -1
  188. package/dist/web-components-library/{p-6fb8a984.entry.js → p-660737b0.entry.js} +1 -1
  189. package/dist/web-components-library/p-7371a543.entry.js +2 -0
  190. package/dist/web-components-library/{p-f94c360f.entry.js → p-788eaac7.entry.js} +1 -1
  191. package/dist/web-components-library/{p-c6ae9241.entry.js → p-88a3ba7c.entry.js} +1 -1
  192. package/{www/build/p-c6920758.entry.js → dist/web-components-library/p-89daaeb5.entry.js} +1 -1
  193. package/dist/web-components-library/p-B0bOjMSb.js +1 -0
  194. package/dist/web-components-library/{p-f5bbcaa6.entry.js → p-a4f673f8.entry.js} +1 -1
  195. package/{www/build/p-4ae7df7f.entry.js → dist/web-components-library/p-b01ff8e6.entry.js} +1 -1
  196. package/dist/web-components-library/{p-2d6a4515.entry.js → p-b6223d7e.entry.js} +1 -1
  197. package/dist/web-components-library/{p-7835fdda.entry.js → p-b9343431.entry.js} +1 -1
  198. package/dist/web-components-library/{p-c539ae57.entry.js → p-c42ddd93.entry.js} +1 -1
  199. package/{www/build/p-eadf2552.entry.js → dist/web-components-library/p-c4e7bd16.entry.js} +1 -1
  200. package/dist/web-components-library/{p-3f996a63.entry.js → p-c944a943.entry.js} +1 -1
  201. package/dist/web-components-library/{p-19f5fdd3.entry.js → p-cd33f4b1.entry.js} +1 -1
  202. package/dist/web-components-library/{p-a40ae683.entry.js → p-ce3bbaf2.entry.js} +1 -1
  203. package/dist/web-components-library/p-d121122f.entry.js +1 -0
  204. package/dist/web-components-library/p-dc5ab2cc.entry.js +1 -0
  205. package/dist/web-components-library/{p-91503030.entry.js → p-ef5018bb.entry.js} +1 -1
  206. package/dist/web-components-library/web-components-library.esm.js +1 -1
  207. package/package.json +5 -4
  208. package/www/build/index.esm.js +1 -1
  209. package/www/build/{p-19d3a16b.entry.js → p-0105149a.entry.js} +1 -1
  210. package/www/build/p-0da8eae7.entry.js +1 -0
  211. package/www/build/{p-5fa910e4.entry.js → p-13e7f751.entry.js} +1 -1
  212. package/www/build/{p-45866f64.entry.js → p-1580db58.entry.js} +1 -1
  213. package/www/build/{p-eed4e897.entry.js → p-20d94cce.entry.js} +1 -1
  214. package/www/build/{p-2ce3ac48.entry.js → p-271dfd9c.entry.js} +1 -1
  215. package/www/build/{p-e2d94c86.entry.js → p-2abf765d.entry.js} +1 -1
  216. package/www/build/{p-5b9cacd7.entry.js → p-2df6d169.entry.js} +1 -1
  217. package/www/build/{p-de0b7109.entry.js → p-313fc91d.entry.js} +1 -1
  218. package/www/build/p-41584e90.entry.js +1 -0
  219. package/www/build/p-4a434f6e.entry.js +1 -0
  220. package/www/build/{p-7a9d19b8.entry.js → p-4d1b3d16.entry.js} +1 -1
  221. package/www/build/p-53670be4.entry.js +1 -0
  222. package/www/build/{p-538a1bd2.entry.js → p-5d20fc3d.entry.js} +1 -1
  223. package/www/build/p-61992f12.entry.js +1 -0
  224. package/www/build/{p-d11d39f5.entry.js → p-62d2247e.entry.js} +1 -1
  225. package/www/build/{p-7d9477ed.entry.js → p-64c025f6.entry.js} +1 -1
  226. package/www/build/{p-364b0ca4.entry.js → p-658f022d.entry.js} +1 -1
  227. package/www/build/{p-6fb8a984.entry.js → p-660737b0.entry.js} +1 -1
  228. package/www/build/p-7371a543.entry.js +2 -0
  229. package/www/build/{p-f94c360f.entry.js → p-788eaac7.entry.js} +1 -1
  230. package/www/build/{p-c6ae9241.entry.js → p-88a3ba7c.entry.js} +1 -1
  231. package/{dist/web-components-library/p-c6920758.entry.js → www/build/p-89daaeb5.entry.js} +1 -1
  232. package/www/build/p-B0bOjMSb.js +1 -0
  233. package/www/build/{p-f5bbcaa6.entry.js → p-a4f673f8.entry.js} +1 -1
  234. package/{dist/web-components-library/p-4ae7df7f.entry.js → www/build/p-b01ff8e6.entry.js} +1 -1
  235. package/www/build/{p-2d6a4515.entry.js → p-b6223d7e.entry.js} +1 -1
  236. package/www/build/{p-804ab9a4.js → p-b82f3aad.js} +1 -1
  237. package/www/build/{p-7835fdda.entry.js → p-b9343431.entry.js} +1 -1
  238. package/www/build/{p-c539ae57.entry.js → p-c42ddd93.entry.js} +1 -1
  239. package/{dist/web-components-library/p-eadf2552.entry.js → www/build/p-c4e7bd16.entry.js} +1 -1
  240. package/www/build/{p-3f996a63.entry.js → p-c944a943.entry.js} +1 -1
  241. package/www/build/{p-19f5fdd3.entry.js → p-cd33f4b1.entry.js} +1 -1
  242. package/www/build/{p-a40ae683.entry.js → p-ce3bbaf2.entry.js} +1 -1
  243. package/www/build/p-d121122f.entry.js +1 -0
  244. package/www/build/p-dc5ab2cc.entry.js +1 -0
  245. package/www/build/{p-91503030.entry.js → p-ef5018bb.entry.js} +1 -1
  246. package/www/build/web-components-library.esm.js +1 -1
  247. package/www/index.html +1 -1
  248. package/dist/collection/components/z-input/styles.css +0 -406
  249. package/dist/web-components-library/p-32440f4c.entry.js +0 -1
  250. package/dist/web-components-library/p-550ee6c3.entry.js +0 -1
  251. package/dist/web-components-library/p-8fd25c59.entry.js +0 -2
  252. package/dist/web-components-library/p-D4yqZKyM.js +0 -1
  253. package/dist/web-components-library/p-a9f848ef.entry.js +0 -1
  254. package/dist/web-components-library/p-ab50e989.entry.js +0 -1
  255. package/dist/web-components-library/p-ae69bb7d.entry.js +0 -1
  256. package/dist/web-components-library/p-f3436721.entry.js +0 -1
  257. package/dist/web-components-library/p-fc15a666.entry.js +0 -1
  258. package/www/build/p-32440f4c.entry.js +0 -1
  259. package/www/build/p-550ee6c3.entry.js +0 -1
  260. package/www/build/p-8fd25c59.entry.js +0 -2
  261. package/www/build/p-D4yqZKyM.js +0 -1
  262. package/www/build/p-a9f848ef.entry.js +0 -1
  263. package/www/build/p-ab50e989.entry.js +0 -1
  264. package/www/build/p-ae69bb7d.entry.js +0 -1
  265. package/www/build/p-f3436721.entry.js +0 -1
  266. package/www/build/p-fc15a666.entry.js +0 -1
@@ -1,75 +1,3 @@
1
- :host {
2
- position: relative;
3
- display: flex;
4
- max-width: 100%;
5
- align-items: center;
6
- padding: calc(var(--z-table--cells-padding, calc(var(--space-unit) * 2)));
7
- background-color: var(--color-surface01);
8
- gap: calc(var(--space-unit) * 2) var(--space-unit);
9
- }
10
-
11
- :host,
12
- * {
13
- box-sizing: border-box;
14
- }
15
-
16
- :host([sticky]) {
17
- position: sticky;
18
- z-index: 1;
19
- top: 0;
20
- left: 0;
21
- box-shadow: 8px 0 16px -8px var(--shadow-color-base);
22
- }
23
-
24
- :host([menu-open]) {
25
- z-index: 2;
26
- }
27
-
28
- .cell--content {
29
- display: flex;
30
- width: 100%;
31
- height: 100%;
32
- align-items: center;
33
- }
34
-
35
- :host([show-menu]) .cell--content {
36
- column-gap: var(--space-unit);
37
- }
38
-
39
- .cell--menu-container {
40
- margin-left: auto;
41
- }
42
-
43
- :host(:not([show-menu])) .cell--menu-container {
44
- opacity: 0;
45
- pointer-events: none;
46
- }
47
-
48
- :host(:is([show-menu], [menu-open])) .cell--menu-container,
49
- :host([show-menu]) .cell--menu-container:focus-within {
50
- z-index: 1;
51
- opacity: 1;
52
- pointer-events: all;
53
- }
54
-
55
- :host .cell-popover {
56
- z-index: 100;
57
- }
58
-
59
- @media (min-width: 768px) and (hover: hover) {
60
- :host([show-menu="hover"]) .cell--menu-container {
61
- opacity: 0;
62
- pointer-events: none;
63
- }
64
-
65
- :host([show-menu="hover"]:hover) .cell--menu-container {
66
- z-index: 1;
67
- opacity: 1;
68
- pointer-events: all;
69
- }
70
- }
71
-
72
-
73
1
  :host {
74
2
  z-index: 1;
75
3
  padding: 0;
@@ -198,7 +198,7 @@ export class ZAppHeader {
198
198
  if (this.searchPageUrl && (this.isMobile || this.isTablet)) {
199
199
  return (h("z-button", { class: "search-page-button", variant: ButtonVariant.SECONDARY, href: this.searchPageUrl, icon: "search", size: ControlSize.X_SMALL }));
200
200
  }
201
- return (h("z-searchbar", { value: this.searchString, placeholder: this.searchPlaceholder, showSearchButton: true, searchButtonIconOnly: this.isMobile || this.isTablet, size: ControlSize.X_SMALL, variant: ButtonVariant.SECONDARY, preventSubmit: this.searchString.length < 3, onSearchTyping: (e) => (this.searchString = e.detail) }));
201
+ return (h("z-searchbar", { value: this.searchString, placeholder: this.searchPlaceholder, showSearchButton: true, searchButtonIconOnly: this.isMobile || this.isTablet, searchButtonLabel: this.isMobile || this.isTablet ? undefined : this.searchButtonLabel, size: ControlSize.X_SMALL, variant: ButtonVariant.SECONDARY, preventSubmit: this.searchString.length < 3, onSearchTyping: (e) => (this.searchString = e.detail) }));
202
202
  }
203
203
  renderProductLogos() {
204
204
  return (h(Fragment, null, this.enableZLogo && (h("span", { class: "z-logo" }, h("img", { alt: "Logo Zanichelli" }))), this.hostElement.querySelector("[slot='product-logo']") && (h("span", { class: "product-logo" }, h("slot", { name: "product-logo" })))));
@@ -280,7 +280,7 @@ export class ZAppHeader {
280
280
  }
281
281
  render() {
282
282
  const hasTopSubtitle = this.hasSlot("top-subtitle");
283
- return (h(Host, { key: 'dc030db81c271ed36850fb287d29ace79851d4a1', "menu-length": this.menuLength }, h("div", { key: '49d34b66c216a92c80eb9216fa52e48add4cee0a', class: { "heading-panel": true, "has-menubar": this.menuLength > 0 && !this.enableOffcanvas }, ref: (el) => (this.container = el) }, h("div", { key: '29639ab6d0620491c69651139ddf8311e2177122', class: { "heading-container": true, "has-top-subtitle": hasTopSubtitle } }, ((!this.enableSearch && this.isMobile) || !this.isMobile) && (h("div", { key: 'bc685fb828a89777bec6dcc5bc754534f83361cd', class: { "top-subtitle": true, "has-product-logo": hasTopSubtitle && this.hasSlot("product-logo") } }, h("slot", { key: 'cb2b1468f4b34d11dbf444f2cde0c7cce86cbd1e', name: "top-subtitle" }))), h("div", { key: '80036c45fcbd3d490b85f653efb35010b1639b6f', class: "heading-title" }, h("slot", { key: 'bc4a0397893534c0dac99e081ef0ba5d6db2ecd3', name: "menu-button" }, this.renderMenuButton()), !this._stuck && this.renderProductLogos(), h("slot", { key: 'a72c2c657ae430e0cc6b134e843fec1c983e7777', name: "title" }), this.enableSearch && !this.isMobile && this.renderSeachbar()), this.enableSearch && this.isMobile && this.renderSeachbar()), h("nav", { key: 'b620b02b62b99b13e6b4c0c1be0997d3af448aeb', class: "menu-container", "aria-label": this.title || undefined }, this.canShowMenu && (h("div", { key: '6c1887c703734a0e1ab4b77b821dad2e9bc0c3df', role: "menubar", "aria-label": this.title || undefined }, h("slot", { key: '2daaf3501852cab84cf2b3a85a770553dc70a101', name: "menu", onSlotchange: this.collectMenuElements }))))), this.renderOffcanvas(), this._stuck && this.renderStuck()));
283
+ return (h(Host, { key: 'dba00e6ba8614f38c6382a42420430ee44d61757', "menu-length": this.menuLength }, h("div", { key: '14462adce8a9cb03fe571a4eea4c1356d77d49d5', class: { "heading-panel": true, "has-menubar": this.menuLength > 0 && !this.enableOffcanvas }, ref: (el) => (this.container = el) }, h("div", { key: '18f406f950a9f2946d5c1c74e5c3a52c9f139069', class: { "heading-container": true, "has-top-subtitle": hasTopSubtitle } }, ((!this.enableSearch && this.isMobile) || !this.isMobile) && (h("div", { key: '1e74736f45625644289425d0e5cc6c825c6ac2b9', class: { "top-subtitle": true, "has-product-logo": hasTopSubtitle && this.hasSlot("product-logo") } }, h("slot", { key: '747325238cde4fb40d8448c58e4b6483ca049f28', name: "top-subtitle" }))), h("div", { key: '8d5159eabc8cddbb3fdc2227be62b5b1f318b1d4', class: "heading-title" }, h("slot", { key: '64c48e48e13c50d367fb52ed509d25cacbbc85da', name: "menu-button" }, this.renderMenuButton()), !this._stuck && this.renderProductLogos(), h("slot", { key: '990a282a81bd96d2524d3fbfff1dabce807824d9', name: "title" }), this.enableSearch && !this.isMobile && this.renderSeachbar()), this.enableSearch && this.isMobile && this.renderSeachbar()), h("nav", { key: '0048e85cccd48f1a9e587dc40bfc54ebf6c603bc', class: "menu-container", "aria-label": this.title || undefined }, this.canShowMenu && (h("div", { key: '41423d5aa2004b61c6d9ef0342013598e4e59d55', role: "menubar", "aria-label": this.title || undefined }, h("slot", { key: '4e12bbc0d9a8b54ecec94b1b12ad456ebcdb5bec', name: "menu", onSlotchange: this.collectMenuElements }))))), this.renderOffcanvas(), this._stuck && this.renderStuck()));
284
284
  }
285
285
  static get is() { return "z-app-header"; }
286
286
  static get encapsulation() { return "shadow"; }
@@ -376,6 +376,25 @@ export class ZAppHeader {
376
376
  "attribute": "search-placeholder",
377
377
  "defaultValue": "\"Cerca\""
378
378
  },
379
+ "searchButtonLabel": {
380
+ "type": "string",
381
+ "mutable": false,
382
+ "complexType": {
383
+ "original": "string",
384
+ "resolved": "string",
385
+ "references": {}
386
+ },
387
+ "required": false,
388
+ "optional": true,
389
+ "docs": {
390
+ "tags": [],
391
+ "text": "Label of the search button."
392
+ },
393
+ "getter": false,
394
+ "setter": false,
395
+ "reflect": false,
396
+ "attribute": "search-button-label"
397
+ },
379
398
  "searchString": {
380
399
  "type": "string",
381
400
  "mutable": true,
@@ -17,6 +17,8 @@ const StoryMeta = {
17
17
  "--app-header-content-max-width": "100%",
18
18
  "enableSearch": false,
19
19
  "searchPageUrl": "",
20
+ "searchPlaceholder": "Digita qui quello che vuoi",
21
+ "searchButtonLabel": "Cliccami",
20
22
  "enableZLogo": false,
21
23
  "enableOffcanvas": false,
22
24
  },
@@ -98,7 +100,7 @@ const menuTemplate = () => {
98
100
  export const Title = {
99
101
  parameters: {
100
102
  controls: {
101
- exclude: ["enableOffcanvas"],
103
+ exclude: ["enableOffcanvas", "searchPlaceholder", "searchButtonLabel"],
102
104
  },
103
105
  },
104
106
  render: (args) => html `<z-app-header
@@ -113,7 +115,7 @@ export const Title = {
113
115
  export const ProductLogo = {
114
116
  parameters: {
115
117
  controls: {
116
- exclude: ["enableOffcanvas"],
118
+ exclude: ["enableOffcanvas", "searchPlaceholder", "searchButtonLabel"],
117
119
  },
118
120
  },
119
121
  render: (args) => html `<z-app-header
@@ -132,7 +134,7 @@ export const ProductLogo = {
132
134
  export const TopTitle = {
133
135
  parameters: {
134
136
  controls: {
135
- exclude: ["enableOffcanvas", "enableZLogo"],
137
+ exclude: ["enableOffcanvas", "enableZLogo", "searchPlaceholder", "searchButtonLabel"],
136
138
  },
137
139
  },
138
140
  render: (args) => html `<z-app-header
@@ -147,7 +149,7 @@ export const TopTitle = {
147
149
  export const TopTitleWithProductLogo = {
148
150
  parameters: {
149
151
  controls: {
150
- exclude: ["enableOffcanvas", "enableZLogo"],
152
+ exclude: ["enableOffcanvas", "enableZLogo", "searchPlaceholder", "searchButtonLabel"],
151
153
  },
152
154
  },
153
155
  render: (args) => html `<z-app-header
@@ -167,7 +169,7 @@ export const TopTitleWithProductLogo = {
167
169
  export const CustomMenuButton = {
168
170
  parameters: {
169
171
  controls: {
170
- exclude: ["enableOffcanvas"],
172
+ exclude: ["enableOffcanvas", "searchPlaceholder", "searchButtonLabel"],
171
173
  },
172
174
  },
173
175
  render: (args) => html `<z-app-header
@@ -183,7 +185,7 @@ export const CustomMenuButton = {
183
185
  export const MenuWithTopTitle = {
184
186
  parameters: {
185
187
  controls: {
186
- exclude: ["enableZLogo"],
188
+ exclude: ["enableZLogo", "searchPlaceholder", "searchButtonLabel"],
187
189
  },
188
190
  },
189
191
  render: (args) => html `<z-app-header
@@ -200,7 +202,7 @@ export const MenuWithTopTitle = {
200
202
  export const MenuWithTopTitleAndProductLogo = {
201
203
  parameters: {
202
204
  controls: {
203
- exclude: ["enableZLogo"],
205
+ exclude: ["enableZLogo", "searchPlaceholder", "searchButtonLabel"],
204
206
  },
205
207
  },
206
208
  render: (args) => html `<z-app-header
@@ -222,7 +224,14 @@ export const MenuWithTopTitleAndProductLogo = {
222
224
  export const LongTitle = {
223
225
  parameters: {
224
226
  controls: {
225
- exclude: ["enableOffcanvas", "enableZLogo", "enableSearch", "searchPageUrl"],
227
+ exclude: [
228
+ "enableOffcanvas",
229
+ "enableZLogo",
230
+ "enableSearch",
231
+ "searchPageUrl",
232
+ "searchPlaceholder",
233
+ "searchButtonLabel",
234
+ ],
226
235
  },
227
236
  },
228
237
  render: (args) => html `<z-app-header style="--app-header-content-max-width: ${args["--app-header-content-max-width"]}">
@@ -235,6 +244,11 @@ export const OffcanvasMenu = {
235
244
  args: {
236
245
  enableOffcanvas: true,
237
246
  },
247
+ parameters: {
248
+ controls: {
249
+ exclude: ["searchPlaceholder", "searchButtonLabel"],
250
+ },
251
+ },
238
252
  render: (args) => html `<z-app-header
239
253
  .enableOffcanvas=${args.enableOffcanvas}
240
254
  .enableSearch=${args.enableSearch}
@@ -261,7 +275,7 @@ export const Stuck = {
261
275
  },
262
276
  },
263
277
  controls: {
264
- exclude: ["enableOffcanvas"],
278
+ exclude: ["enableOffcanvas", "searchPlaceholder", "searchButtonLabel"],
265
279
  },
266
280
  },
267
281
  render: (args) => html `<z-app-header
@@ -292,6 +306,8 @@ export const SearchPageButton = {
292
306
  render: (args) => html `<z-app-header
293
307
  enable-search
294
308
  .enableZLogo=${args.enableZLogo}
309
+ .searchPlaceholder=${args.searchPlaceholder}
310
+ .searchButtonLabel=${args.searchButtonLabel}
295
311
  search-page-url="https://www.zanichelli.it"
296
312
  style="--app-header-content-max-width: ${args["--app-header-content-max-width"]}"
297
313
  >
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { ControlSize, InputType, KeyboardCode, ListDividerType, ListSize } from "../../beans";
3
- import { getPlainText, randomId } from "../../utils/utils";
3
+ import { encodeString, getPlainText, randomId } from "../../utils/utils";
4
4
  export class ZCombobox {
5
5
  watchItems() {
6
6
  this.itemsList = typeof this.items === "string" ? JSON.parse(this.items) : this.items;
@@ -60,7 +60,7 @@ export class ZCombobox {
60
60
  }
61
61
  }
62
62
  getOptionId(itemId) {
63
- return `${this.inputid}-option-${itemId}`;
63
+ return `${this.inputid}-option-${encodeString(itemId)}`;
64
64
  }
65
65
  getCheckAllOptionId() {
66
66
  return `${this.inputid}-check-all`;
@@ -294,18 +294,18 @@ export class ZCombobox {
294
294
  return (h("z-list-element", { class: "check-all-wrapper", role: "presentation", htmlTabindex: -1, dividerType: ListDividerType.ELEMENT, dividerColor: "gray800", size: this.getControlToListSize(), disabled: !!isDisabled }, h("span", { class: "option-wrap", role: "presentation", onClick: () => this.checkOption(optionId) }, h("z-icon", { name: allChecked ? "checkbox-checked" : "checkbox", class: this.focusedItemId === optionId ? "focused" : "" }), h("span", { id: optionId, role: isDisabled ? "presentation" : "option", "aria-selected": allChecked ? "true" : "false" }, allChecked ? this.uncheckalltext : this.checkalltext))));
295
295
  }
296
296
  render() {
297
- return (h("div", { key: 'f65a92eded2c6cd7d4bb42ddc5f667806a4f5582', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
297
+ return (h("div", { key: '71d248786dcd29eb5bc03bbb1d9997f4bc7d46c2', "data-action": `combo-${this.inputid}`, class: { open: this.isopen, fixed: this.isfixed, disabled: this.disabled }, id: this.inputid }, this.renderHeader(), !this.disabled && this.renderContent()));
298
298
  }
299
299
  static get is() { return "z-combobox"; }
300
300
  static get encapsulation() { return "shadow"; }
301
301
  static get originalStyleUrls() {
302
302
  return {
303
- "$": ["styles.css"]
303
+ "$": ["../css-components/z-label/styles.css", "styles.css"]
304
304
  };
305
305
  }
306
306
  static get styleUrls() {
307
307
  return {
308
- "$": ["styles.css"]
308
+ "$": ["../css-components/z-label/styles.css", "styles.css"]
309
309
  };
310
310
  }
311
311
  static get properties() {
@@ -1,15 +1,3 @@
1
- .z-label {
2
- display: block;
3
- padding-bottom: var(--space-unit);
4
- color: var(--color-default-text);
5
- font-family: var(--font-family-sans);
6
- font-size: var(--font-size-1);
7
- font-weight: var(--font-sb);
8
- text-align: left;
9
- text-transform: uppercase;
10
- }
11
-
12
-
13
1
  :host {
14
2
  display: block;
15
3
  min-width: 290px;
@@ -145,16 +145,16 @@ export class ZInput {
145
145
  pattern: this.pattern,
146
146
  };
147
147
  }
148
- getRoleAttribute() {
149
- return this.role ? { role: this.role } : {};
150
- }
151
148
  inputHasMessage() {
152
149
  if (boolean(this.message) === false || boolean(this.message) === true) {
153
150
  return false;
154
151
  }
155
152
  return true;
156
153
  }
157
- getAriaAttrubutes() {
154
+ getAriaAttributes() {
155
+ return Object.assign(Object.assign(Object.assign({}, (this.role ? { role: this.role } : {})), (this.htmlAriaDescribedBy ? { "aria-describedby": this.htmlAriaDescribedBy } : {})), (this.htmlAriaLabelledby ? { "aria-labelledby": this.htmlAriaLabelledby } : {}));
156
+ }
157
+ getTextAriaAttributes() {
158
158
  const expanded = this.htmlAriaExpanded ? { "aria-expanded": this.htmlAriaExpanded } : {};
159
159
  const controls = this.htmlAriaControls ? { "aria-controls": this.htmlAriaControls } : {};
160
160
  const autocomplete = this.htmlAriaAutocomplete ? { "aria-autocomplete": this.htmlAriaAutocomplete } : {};
@@ -165,7 +165,7 @@ export class ZInput {
165
165
  ? { "aria-describedby": this.htmlAriaDescribedBy || `${this.htmlid}-message` }
166
166
  : {};
167
167
  const ariaInvalid = this.status === InputStatus.ERROR ? { "aria-invalid": "true" } : {};
168
- return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, expanded), controls), autocomplete), activedescendant), ariaDescribedby), ariaInvalid);
168
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getAriaAttributes()), expanded), controls), autocomplete), activedescendant), ariaDescribedby), ariaInvalid);
169
169
  }
170
170
  getFocusBlurAttributes() {
171
171
  return {
@@ -175,7 +175,7 @@ export class ZInput {
175
175
  }
176
176
  renderInputText(type = InputType.TEXT) {
177
177
  const ariaLabel = this.ariaLabel ? { "aria-label": this.ariaLabel } : {};
178
- 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());
178
+ const attr = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, this.getTextAttributes()), this.getNumberAttributes(type)), this.getPatternAttribute(type)), ariaLabel), this.getTextAriaAttributes()), this.getFocusBlurAttributes());
179
179
  if (this.icon || type === InputType.PASSWORD) {
180
180
  Object.assign(attr.class, { "has-icon": true });
181
181
  }
@@ -225,8 +225,8 @@ export class ZInput {
225
225
  /* START textarea */
226
226
  renderTextarea() {
227
227
  const attributes = this.getTextAttributes();
228
- const ariaAttributes = this.getAriaAttrubutes();
229
- return (h(Fragment, null, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": !!attributes.readonly }) }, h("textarea", Object.assign({}, attributes, ariaAttributes, { class: Object.assign(Object.assign({}, attributes.class), { "z-scrollbar": true }), "aria-label": this.ariaLabel || undefined }, this.getRoleAttribute()))), this.renderMessage()));
228
+ const ariaAttributes = this.getTextAriaAttributes();
229
+ return (h(Fragment, null, this.renderLabel(), h("div", { class: Object.assign(Object.assign({}, attributes.class), { "textarea-wrapper": true, "readonly": !!attributes.readonly }) }, h("textarea", Object.assign({}, attributes, ariaAttributes, { class: Object.assign(Object.assign({}, attributes.class), { "z-scrollbar": true }), "aria-label": this.ariaLabel || undefined }))), this.renderMessage()));
230
230
  }
231
231
  /* END textarea */
232
232
  handleCheck(ev) {
@@ -235,7 +235,7 @@ export class ZInput {
235
235
  }
236
236
  /* START checkbox */
237
237
  renderCheckbox() {
238
- 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: {
238
+ 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.getAriaAttributes(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
239
239
  "checkbox-label": true,
240
240
  "after": this.labelPosition === LabelPosition.RIGHT,
241
241
  "before": this.labelPosition === LabelPosition.LEFT,
@@ -244,7 +244,7 @@ export class ZInput {
244
244
  /* END checkbox */
245
245
  /* START radio */
246
246
  renderRadio() {
247
- 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: {
247
+ 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.getAriaAttributes(), this.getFocusBlurAttributes())), h("label", { htmlFor: this.htmlid, class: {
248
248
  "radio-label": true,
249
249
  "after": this.labelPosition === LabelPosition.RIGHT,
250
250
  "before": this.labelPosition === LabelPosition.LEFT,
@@ -266,18 +266,18 @@ export class ZInput {
266
266
  default:
267
267
  input = this.renderInputText(this.type);
268
268
  }
269
- return h(Host, { key: 'e3f830979b2d6306b19c5a0357ca48b42d142a74' }, input);
269
+ return h(Host, { key: 'dfc768f25706d7b3abd219948f378ca9b733eafa' }, input);
270
270
  }
271
271
  static get is() { return "z-input"; }
272
272
  static get encapsulation() { return "scoped"; }
273
273
  static get originalStyleUrls() {
274
274
  return {
275
- "$": ["styles.css"]
275
+ "$": ["styles-general.css", "styles-text.css", "styles-textarea.css", "styles-checkbox-radio.css"]
276
276
  };
277
277
  }
278
278
  static get styleUrls() {
279
279
  return {
280
- "$": ["styles.css"]
280
+ "$": ["styles-general.css", "styles-text.css", "styles-textarea.css", "styles-checkbox-radio.css"]
281
281
  };
282
282
  }
283
283
  static get properties() {
@@ -463,6 +463,44 @@ export class ZInput {
463
463
  "reflect": false,
464
464
  "attribute": "html-aria-activedescendant"
465
465
  },
466
+ "htmlAriaDescribedBy": {
467
+ "type": "string",
468
+ "mutable": false,
469
+ "complexType": {
470
+ "original": "string",
471
+ "resolved": "string",
472
+ "references": {}
473
+ },
474
+ "required": false,
475
+ "optional": true,
476
+ "docs": {
477
+ "tags": [],
478
+ "text": "the input aria-describedby (optional)"
479
+ },
480
+ "getter": false,
481
+ "setter": false,
482
+ "reflect": false,
483
+ "attribute": "html-aria-described-by"
484
+ },
485
+ "htmlAriaLabelledby": {
486
+ "type": "string",
487
+ "mutable": false,
488
+ "complexType": {
489
+ "original": "string",
490
+ "resolved": "string",
491
+ "references": {}
492
+ },
493
+ "required": false,
494
+ "optional": true,
495
+ "docs": {
496
+ "tags": [],
497
+ "text": "the input aria-labelledby (optional)"
498
+ },
499
+ "getter": false,
500
+ "setter": false,
501
+ "reflect": false,
502
+ "attribute": "html-aria-labelledby"
503
+ },
466
504
  "value": {
467
505
  "type": "string",
468
506
  "mutable": true,
@@ -646,25 +684,6 @@ export class ZInput {
646
684
  "attribute": "message",
647
685
  "defaultValue": "true"
648
686
  },
649
- "htmlAriaDescribedBy": {
650
- "type": "string",
651
- "mutable": false,
652
- "complexType": {
653
- "original": "string",
654
- "resolved": "string",
655
- "references": {}
656
- },
657
- "required": false,
658
- "optional": true,
659
- "docs": {
660
- "tags": [],
661
- "text": "input helper message id (optional): available for text, password, number, email, textarea - if set, it will be used to populate the aria-describedby attribute, otherwise the attribute (if present) will be populated with an auto-generated value"
662
- },
663
- "getter": false,
664
- "setter": false,
665
- "reflect": false,
666
- "attribute": "html-aria-described-by"
667
- },
668
687
  "labelPosition": {
669
688
  "type": "string",
670
689
  "mutable": false,
@@ -0,0 +1,130 @@
1
+ .radio-wrapper,
2
+ .checkbox-wrapper {
3
+ position: relative;
4
+ display: inline-flex;
5
+ flex-direction: row;
6
+ align-items: center;
7
+ color: var(--color-default-text);
8
+ fill: var(--color-primary01);
9
+ font-family: var(--font-family-sans);
10
+ }
11
+
12
+ .radio-wrapper:hover,
13
+ .checkbox-wrapper:hover {
14
+ color: var(--color-hover-primary);
15
+ fill: var(--color-hover-primary-icon);
16
+ }
17
+
18
+ .radio-wrapper > input,
19
+ .checkbox-wrapper > input {
20
+ position: absolute;
21
+ z-index: -1;
22
+ opacity: 0;
23
+ pointer-events: none;
24
+ }
25
+
26
+ .radio-wrapper .radio-label,
27
+ .checkbox-wrapper .checkbox-label {
28
+ display: inline-flex;
29
+ align-items: center;
30
+ margin: 0;
31
+ color: inherit;
32
+ font-family: inherit;
33
+ font-size: inherit;
34
+ font-weight: inherit;
35
+ line-height: 1;
36
+ text-transform: inherit;
37
+ }
38
+
39
+ .radio-wrapper input:not(:disabled) + .radio-label,
40
+ .checkbox-wrapper input:not(:disabled) + .checkbox-label {
41
+ cursor: pointer;
42
+ }
43
+
44
+ .radio-wrapper .radio-label z-icon,
45
+ .checkbox-wrapper .checkbox-label z-icon {
46
+ cursor: pointer;
47
+ fill: inherit;
48
+ }
49
+
50
+ :host([size="small"]) .radio-wrapper .radio-label z-icon,
51
+ :host([size="small"]) .checkbox-wrapper .checkbox-label z-icon {
52
+ --z-icon-width: 16px;
53
+ --z-icon-height: 16px;
54
+ }
55
+
56
+ :host([size="small"]) .radio-wrapper .radio-label,
57
+ :host([size="small"]) .checkbox-wrapper .checkbox-label {
58
+ font-size: var(--font-size-2);
59
+ }
60
+
61
+ :host([size="x-small"]) .radio-wrapper .radio-label z-icon,
62
+ :host([size="x-small"]) .checkbox-wrapper .checkbox-label z-icon {
63
+ --z-icon-width: 14px;
64
+ --z-icon-height: 14px;
65
+ }
66
+
67
+ :host([size="x-small"]) .radio-wrapper .radio-label,
68
+ :host([size="x-small"]) .checkbox-wrapper .checkbox-label {
69
+ font-size: var(--font-size-1);
70
+ }
71
+
72
+ .radio-wrapper .radio-label.after,
73
+ .checkbox-wrapper .checkbox-label.after {
74
+ flex-direction: row;
75
+ }
76
+
77
+ .radio-wrapper .radio-label.before,
78
+ .checkbox-wrapper .checkbox-label.before {
79
+ flex-direction: row-reverse;
80
+ }
81
+
82
+ .radio-wrapper .radio-label.after > span,
83
+ .checkbox-wrapper .checkbox-label.after > span {
84
+ margin-left: var(--space-unit);
85
+ }
86
+
87
+ .radio-wrapper .radio-label.before > span,
88
+ .checkbox-wrapper .checkbox-label.before > span {
89
+ margin-right: var(--space-unit);
90
+ }
91
+
92
+ :host([size="small"]) .radio-wrapper .radio-label.after > span,
93
+ :host([size="small"]) .checkbox-wrapper .checkbox-label.after > span,
94
+ :host([size="x-small"]) .radio-wrapper .radio-label.after > span,
95
+ :host([size="x-small"]) .checkbox-wrapper .checkbox-label.after > span {
96
+ margin-left: calc(var(--space-unit) * 0.5);
97
+ }
98
+
99
+ :host([size="small"]) .radio-wrapper .radio-label.before > span,
100
+ :host([size="small"]) .checkbox-wrapper .checkbox-label.before > span,
101
+ :host([size="x-small"]) .radio-wrapper .radio-label.before > span,
102
+ :host([size="x-small"]) .checkbox-wrapper .checkbox-label.before > span {
103
+ margin-right: calc(var(--space-unit) * 0.5);
104
+ }
105
+
106
+ /* focus */
107
+ .radio-wrapper > input:focus:focus-visible + .radio-label > z-icon {
108
+ border-radius: 50%;
109
+ }
110
+
111
+ .checkbox-wrapper > input:focus:focus-visible + .checkbox-label > z-icon {
112
+ border-radius: var(--border-radius-small);
113
+ }
114
+
115
+ .radio-wrapper > input:focus:focus-visible + .radio-label > z-icon,
116
+ .checkbox-wrapper > input:focus:focus-visible + .checkbox-label > z-icon {
117
+ box-shadow: var(--shadow-focus-primary);
118
+ }
119
+
120
+ /* disabled */
121
+ .radio-wrapper > input:disabled + .radio-label,
122
+ .checkbox-wrapper > input:disabled + .checkbox-label {
123
+ color: var(--color-disabled03);
124
+ }
125
+
126
+ .radio-wrapper > input:disabled + .radio-label > z-icon,
127
+ .checkbox-wrapper > input:disabled + .checkbox-label > z-icon {
128
+ cursor: default;
129
+ fill: var(--color-disabled01);
130
+ }