@six-group/ui-library 0.0.0-insider.573d2eb → 0.0.0-insider.582a2ec

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 (501) hide show
  1. package/dist/cjs/icon-4irykc7V.js +17 -0
  2. package/dist/cjs/icon-4irykc7V.js.map +1 -0
  3. package/dist/cjs/index-C8rK7OAe.js +16 -8
  4. package/dist/cjs/index.cjs.js +3 -0
  5. package/dist/cjs/index.cjs.js.map +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js +25 -0
  8. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js.map +1 -0
  9. package/dist/cjs/six-breadcrumbs-item.entry.cjs.js.map +1 -0
  10. package/dist/cjs/six-breadcrumbs.cjs.entry.js +73 -0
  11. package/dist/cjs/six-breadcrumbs.cjs.entry.js.map +1 -0
  12. package/dist/cjs/six-breadcrumbs.entry.cjs.js.map +1 -0
  13. package/dist/cjs/six-button.six-spinner.entry.cjs.js.map +1 -0
  14. package/dist/cjs/{six-button.cjs.entry.js → six-button_2.cjs.entry.js} +55 -4
  15. package/dist/cjs/six-button_2.cjs.entry.js.map +1 -0
  16. package/dist/cjs/six-card.cjs.entry.js +1 -1
  17. package/dist/cjs/six-checkbox_2.cjs.entry.js +4 -4
  18. package/dist/cjs/six-date.cjs.entry.js +38 -33
  19. package/dist/cjs/six-date.cjs.entry.js.map +1 -1
  20. package/dist/cjs/six-date.entry.cjs.js.map +1 -1
  21. package/dist/cjs/six-datepicker.cjs.entry.js +3 -3
  22. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  23. package/dist/cjs/six-datepicker.entry.cjs.js.map +1 -1
  24. package/dist/cjs/six-details.cjs.entry.js +3 -3
  25. package/dist/cjs/six-dropdown.six-menu.entry.cjs.js.map +1 -1
  26. package/dist/cjs/six-dropdown_2.cjs.entry.js +16 -9
  27. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  28. package/dist/cjs/six-error-page.cjs.entry.js +1 -1
  29. package/dist/cjs/six-error.cjs.entry.js +1 -1
  30. package/dist/cjs/six-file-list.cjs.entry.js +1 -1
  31. package/dist/cjs/six-file-upload.cjs.entry.js +9 -5
  32. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-file-upload.entry.cjs.js.map +1 -1
  34. package/dist/cjs/six-footer.cjs.entry.js +1 -1
  35. package/dist/cjs/six-group-label.cjs.entry.js +1 -1
  36. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +2 -2
  37. package/dist/cjs/six-header-item.cjs.entry.js +1 -1
  38. package/dist/cjs/six-header-menu-button.cjs.entry.js +1 -1
  39. package/dist/cjs/six-header.cjs.entry.js +2 -2
  40. package/dist/cjs/six-icon-button.cjs.entry.js +3 -3
  41. package/dist/cjs/six-icon.cjs.entry.js +15 -6
  42. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-icon.entry.cjs.js.map +1 -1
  44. package/dist/cjs/six-layout-grid.cjs.entry.js +1 -1
  45. package/dist/cjs/six-main-container.cjs.entry.js +1 -1
  46. package/dist/cjs/six-menu-divider.cjs.entry.js +1 -1
  47. package/dist/cjs/six-menu-label.cjs.entry.js +1 -1
  48. package/dist/cjs/six-picto.cjs.entry.js +1 -1
  49. package/dist/cjs/six-progress-bar.cjs.entry.js +3 -3
  50. package/dist/cjs/six-progress-ring.cjs.entry.js +1 -1
  51. package/dist/cjs/six-radio.cjs.entry.js +2 -2
  52. package/dist/cjs/six-range.cjs.entry.js +2 -2
  53. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  54. package/dist/cjs/six-range.entry.cjs.js.map +1 -1
  55. package/dist/cjs/six-rating.cjs.entry.js +126 -0
  56. package/dist/cjs/six-rating.cjs.entry.js.map +1 -0
  57. package/dist/cjs/six-rating.entry.cjs.js.map +1 -0
  58. package/dist/cjs/six-root.cjs.entry.js +1 -1
  59. package/dist/cjs/six-sidebar-item.cjs.entry.js +2 -2
  60. package/dist/cjs/six-sidebar.cjs.entry.js +2 -2
  61. package/dist/cjs/six-switch.cjs.entry.js +2 -2
  62. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-switch.entry.cjs.js.map +1 -1
  64. package/dist/cjs/six-tab-panel.cjs.entry.js +1 -1
  65. package/dist/cjs/six-tab.cjs.entry.js +3 -3
  66. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  67. package/dist/cjs/six-tab.entry.cjs.js.map +1 -1
  68. package/dist/cjs/six-tag.cjs.entry.js +2 -2
  69. package/dist/cjs/six-textarea.cjs.entry.js +2 -2
  70. package/dist/cjs/six-tile.cjs.entry.js +5 -5
  71. package/dist/cjs/six-timepicker.cjs.entry.js +18 -10
  72. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-timepicker.entry.cjs.js.map +1 -1
  74. package/dist/cjs/six-tooltip.cjs.entry.js +2 -2
  75. package/dist/cjs/ui-library.cjs.js +1 -1
  76. package/dist/collection/collection-manifest.json +3 -0
  77. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.css +27 -0
  78. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js +109 -0
  79. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js.map +1 -0
  80. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.css +61 -0
  81. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js +123 -0
  82. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js.map +1 -0
  83. package/dist/collection/components/six-button/six-button.js +2 -2
  84. package/dist/collection/components/six-card/six-card.js +1 -1
  85. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  86. package/dist/collection/components/six-date/iso-date.js +32 -0
  87. package/dist/collection/components/six-date/iso-date.js.map +1 -1
  88. package/dist/collection/components/six-date/six-date.js +7 -34
  89. package/dist/collection/components/six-date/six-date.js.map +1 -1
  90. package/dist/collection/components/six-datepicker/six-datepicker.js +4 -4
  91. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  92. package/dist/collection/components/six-details/six-details.js +3 -3
  93. package/dist/collection/components/six-dropdown/six-dropdown.js +33 -6
  94. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  95. package/dist/collection/components/six-error/six-error.js +1 -1
  96. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  97. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  98. package/dist/collection/components/six-file-upload/six-file-upload.js +9 -5
  99. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  100. package/dist/collection/components/six-footer/six-footer.js +1 -1
  101. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  102. package/dist/collection/components/six-header/six-header.js +2 -2
  103. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +2 -2
  104. package/dist/collection/components/six-header-item/six-header-item.js +1 -1
  105. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +1 -1
  106. package/dist/collection/components/six-icon/six-icon.css +46 -29
  107. package/dist/collection/components/six-icon/six-icon.js +39 -5
  108. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  109. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  110. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  111. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  112. package/dist/collection/components/six-menu/six-menu.js +3 -3
  113. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  114. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  115. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  116. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  117. package/dist/collection/components/six-picto/six-picto.js +1 -1
  118. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  119. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  120. package/dist/collection/components/six-radio/six-radio.js +2 -2
  121. package/dist/collection/components/six-range/six-range.js +2 -2
  122. package/dist/collection/components/six-rating/six-rating.css +125 -0
  123. package/dist/collection/components/six-rating/six-rating.js +432 -0
  124. package/dist/collection/components/six-rating/six-rating.js.map +1 -0
  125. package/dist/collection/components/six-root/six-root.js +1 -1
  126. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  127. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  128. package/dist/collection/components/six-spinner/six-spinner.css +6 -20
  129. package/dist/collection/components/six-switch/six-switch.js +2 -2
  130. package/dist/collection/components/six-tab/six-tab.js +22 -3
  131. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  132. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  133. package/dist/collection/components/six-tag/six-tag.js +2 -2
  134. package/dist/collection/components/six-textarea/six-textarea.js +2 -2
  135. package/dist/collection/components/six-tile/six-tile.js +5 -5
  136. package/dist/collection/components/six-timepicker/six-timepicker.js +18 -10
  137. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  138. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  139. package/dist/collection/files/material-symbols-outlined-latin-fill-normal.woff2 +0 -0
  140. package/dist/collection/files/material-symbols-outlined-latin-full-normal.woff2 +0 -0
  141. package/dist/collection/files/material-symbols-outlined-latin-grad-normal.woff2 +0 -0
  142. package/dist/collection/files/material-symbols-outlined-latin-opsz-normal.woff2 +0 -0
  143. package/dist/collection/files/material-symbols-outlined-latin-standard-normal.woff2 +0 -0
  144. package/dist/collection/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  145. package/dist/collection/files/material-symbols-rounded-latin-fill-normal.woff2 +0 -0
  146. package/dist/collection/files/material-symbols-rounded-latin-full-normal.woff2 +0 -0
  147. package/dist/collection/files/material-symbols-rounded-latin-grad-normal.woff2 +0 -0
  148. package/dist/collection/files/material-symbols-rounded-latin-opsz-normal.woff2 +0 -0
  149. package/dist/collection/files/material-symbols-rounded-latin-standard-normal.woff2 +0 -0
  150. package/dist/collection/files/material-symbols-rounded-latin-wght-normal.woff2 +0 -0
  151. package/dist/collection/files/material-symbols-sharp-latin-fill-normal.woff2 +0 -0
  152. package/dist/collection/files/material-symbols-sharp-latin-full-normal.woff2 +0 -0
  153. package/dist/collection/files/material-symbols-sharp-latin-grad-normal.woff2 +0 -0
  154. package/dist/collection/files/material-symbols-sharp-latin-opsz-normal.woff2 +0 -0
  155. package/dist/collection/files/material-symbols-sharp-latin-standard-normal.woff2 +0 -0
  156. package/dist/collection/files/material-symbols-sharp-latin-wght-normal.woff2 +0 -0
  157. package/dist/collection/index.js +1 -0
  158. package/dist/collection/index.js.map +1 -1
  159. package/dist/collection/utils/icon.js +10 -0
  160. package/dist/collection/utils/icon.js.map +1 -0
  161. package/dist/components/index.js +7 -0
  162. package/dist/components/index.js.map +1 -1
  163. package/dist/components/{p-BR2t7cws.js → p-BFxDUwBI.js} +3 -3
  164. package/dist/components/{p-BR2t7cws.js.map → p-BFxDUwBI.js.map} +1 -1
  165. package/dist/components/{p-Cfyrva2T.js → p-BKl-wAjt.js} +5 -5
  166. package/dist/components/{p-Cfyrva2T.js.map → p-BKl-wAjt.js.map} +1 -1
  167. package/dist/components/{p-BUN8hFmL.js → p-BLoBZxyR.js} +5 -5
  168. package/dist/components/p-BLoBZxyR.js.map +1 -0
  169. package/dist/components/{p-CWKq6Dyt.js → p-BLocui1Z.js} +3 -3
  170. package/dist/components/{p-CWKq6Dyt.js.map → p-BLocui1Z.js.map} +1 -1
  171. package/dist/components/{p-BB2rei7y.js → p-BTKXuKvc.js} +3 -3
  172. package/dist/components/p-BTKXuKvc.js.map +1 -0
  173. package/dist/components/{p-DsGIkEDB.js → p-C-TgkYhI.js} +4 -4
  174. package/dist/components/{p-DsGIkEDB.js.map → p-C-TgkYhI.js.map} +1 -1
  175. package/dist/components/p-C84iXIFp.js +71 -0
  176. package/dist/components/p-C84iXIFp.js.map +1 -0
  177. package/dist/components/{p-DYlDF9Rw.js → p-CH82uB3t.js} +3 -3
  178. package/dist/components/{p-DYlDF9Rw.js.map → p-CH82uB3t.js.map} +1 -1
  179. package/dist/components/{p-Cosz73fX.js → p-CSfxA66i.js} +6 -6
  180. package/dist/components/{p-Cosz73fX.js.map → p-CSfxA66i.js.map} +1 -1
  181. package/dist/components/{p-CSL17OWk.js → p-CXsF3egB.js} +9 -9
  182. package/dist/components/{p-CSL17OWk.js.map → p-CXsF3egB.js.map} +1 -1
  183. package/dist/components/{p-DnLdSdN5.js → p-C_slMKPO.js} +24 -16
  184. package/dist/components/p-C_slMKPO.js.map +1 -0
  185. package/dist/components/{p-9aUb96SZ.js → p-Cn6eoiRl.js} +22 -14
  186. package/dist/components/p-Cn6eoiRl.js.map +1 -0
  187. package/dist/components/{p-DyYwMIDQ.js → p-DQrAnsWb.js} +3 -3
  188. package/dist/components/{p-DyYwMIDQ.js.map → p-DQrAnsWb.js.map} +1 -1
  189. package/dist/components/{p-Cs1jspzx.js → p-DrZr0hMT.js} +6 -6
  190. package/dist/components/{p-Cs1jspzx.js.map → p-DrZr0hMT.js.map} +1 -1
  191. package/dist/components/{p-C28WDWgL.js → p-SZP6K3B0.js} +7 -7
  192. package/dist/components/{p-C28WDWgL.js.map → p-SZP6K3B0.js.map} +1 -1
  193. package/dist/components/{p-Cs6mMfx-.js → p-jflTvJ8E.js} +4 -4
  194. package/dist/components/{p-Cs6mMfx-.js.map → p-jflTvJ8E.js.map} +1 -1
  195. package/dist/components/six-alert.js +2 -2
  196. package/dist/components/six-avatar.js +1 -1
  197. package/dist/components/six-breadcrumbs-item.d.ts +11 -0
  198. package/dist/components/six-breadcrumbs-item.js +58 -0
  199. package/dist/components/six-breadcrumbs-item.js.map +1 -0
  200. package/dist/components/six-breadcrumbs.d.ts +11 -0
  201. package/dist/components/six-breadcrumbs.js +97 -0
  202. package/dist/components/six-breadcrumbs.js.map +1 -0
  203. package/dist/components/six-button.js +1 -1
  204. package/dist/components/six-card.js +1 -1
  205. package/dist/components/six-checkbox.js +1 -1
  206. package/dist/components/six-date.js +42 -37
  207. package/dist/components/six-date.js.map +1 -1
  208. package/dist/components/six-datepicker.js +8 -8
  209. package/dist/components/six-datepicker.js.map +1 -1
  210. package/dist/components/six-details.js +1 -1
  211. package/dist/components/six-dialog.js +2 -2
  212. package/dist/components/six-drawer.js +2 -2
  213. package/dist/components/six-dropdown.js +1 -1
  214. package/dist/components/six-error-page.js +2 -2
  215. package/dist/components/six-error.js +1 -1
  216. package/dist/components/six-file-list-item.js +1 -1
  217. package/dist/components/six-file-list.js +1 -1
  218. package/dist/components/six-file-upload.js +12 -8
  219. package/dist/components/six-file-upload.js.map +1 -1
  220. package/dist/components/six-footer.js +1 -1
  221. package/dist/components/six-group-label.js +2 -2
  222. package/dist/components/six-header-dropdown-item.js +9 -9
  223. package/dist/components/six-header-item.js +1 -1
  224. package/dist/components/six-header-menu-button.js +3 -3
  225. package/dist/components/six-header.js +2 -2
  226. package/dist/components/six-icon-button.js +1 -1
  227. package/dist/components/six-icon.js +1 -1
  228. package/dist/components/six-input.js +1 -1
  229. package/dist/components/six-item-picker.js +1 -1
  230. package/dist/components/six-layout-grid.js +1 -1
  231. package/dist/components/six-main-container.js +1 -1
  232. package/dist/components/six-menu-divider.js +1 -1
  233. package/dist/components/six-menu-item.js +1 -1
  234. package/dist/components/six-menu-label.js +1 -1
  235. package/dist/components/six-menu.js +1 -1
  236. package/dist/components/six-picto.js +1 -1
  237. package/dist/components/six-progress-bar.js +3 -3
  238. package/dist/components/six-progress-ring.js +1 -1
  239. package/dist/components/six-radio.js +2 -2
  240. package/dist/components/six-range.js +3 -3
  241. package/dist/components/six-range.js.map +1 -1
  242. package/dist/components/six-rating.d.ts +11 -0
  243. package/dist/components/six-rating.js +173 -0
  244. package/dist/components/six-rating.js.map +1 -0
  245. package/dist/components/six-root.js +3 -3
  246. package/dist/components/six-search-field.js +3 -3
  247. package/dist/components/six-select.js +10 -10
  248. package/dist/components/six-sidebar-item-group.js +2 -2
  249. package/dist/components/six-sidebar-item.js +3 -3
  250. package/dist/components/six-sidebar.js +2 -2
  251. package/dist/components/six-spinner.js +1 -1
  252. package/dist/components/six-stage-indicator.js +1 -1
  253. package/dist/components/six-switch.js +3 -3
  254. package/dist/components/six-switch.js.map +1 -1
  255. package/dist/components/six-tab-group.js +2 -2
  256. package/dist/components/six-tab-panel.js +1 -1
  257. package/dist/components/six-tab.js +6 -5
  258. package/dist/components/six-tab.js.map +1 -1
  259. package/dist/components/six-tag.js +5 -5
  260. package/dist/components/six-textarea.js +3 -3
  261. package/dist/components/six-tile.js +8 -8
  262. package/dist/components/six-timepicker.js +1 -1
  263. package/dist/components/six-tooltip.js +1 -1
  264. package/dist/components.json +7242 -6341
  265. package/dist/esm/icon-DqHJRLQQ.js +14 -0
  266. package/dist/esm/icon-DqHJRLQQ.js.map +1 -0
  267. package/dist/esm/index-JoG9I7EO.js +16 -8
  268. package/dist/esm/index.js +1 -0
  269. package/dist/esm/index.js.map +1 -1
  270. package/dist/esm/loader.js +1 -1
  271. package/dist/esm/six-breadcrumbs-item.entry.js +23 -0
  272. package/dist/esm/six-breadcrumbs-item.entry.js.map +1 -0
  273. package/dist/esm/six-breadcrumbs.entry.js +71 -0
  274. package/dist/esm/six-breadcrumbs.entry.js.map +1 -0
  275. package/dist/esm/six-button.six-spinner.entry.js.map +1 -0
  276. package/dist/esm/{six-button.entry.js → six-button_2.entry.js} +55 -5
  277. package/dist/esm/six-button_2.entry.js.map +1 -0
  278. package/dist/esm/six-card.entry.js +1 -1
  279. package/dist/esm/six-checkbox_2.entry.js +4 -4
  280. package/dist/esm/six-date.entry.js +38 -33
  281. package/dist/esm/six-date.entry.js.map +1 -1
  282. package/dist/esm/six-datepicker.entry.js +3 -3
  283. package/dist/esm/six-datepicker.entry.js.map +1 -1
  284. package/dist/esm/six-details.entry.js +3 -3
  285. package/dist/esm/six-dropdown.six-menu.entry.js.map +1 -1
  286. package/dist/esm/six-dropdown_2.entry.js +16 -9
  287. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  288. package/dist/esm/six-error-page.entry.js +1 -1
  289. package/dist/esm/six-error.entry.js +1 -1
  290. package/dist/esm/six-file-list.entry.js +1 -1
  291. package/dist/esm/six-file-upload.entry.js +9 -5
  292. package/dist/esm/six-file-upload.entry.js.map +1 -1
  293. package/dist/esm/six-footer.entry.js +1 -1
  294. package/dist/esm/six-group-label.entry.js +1 -1
  295. package/dist/esm/six-header-dropdown-item.entry.js +2 -2
  296. package/dist/esm/six-header-item.entry.js +1 -1
  297. package/dist/esm/six-header-menu-button.entry.js +1 -1
  298. package/dist/esm/six-header.entry.js +2 -2
  299. package/dist/esm/six-icon-button.entry.js +3 -3
  300. package/dist/esm/six-icon.entry.js +15 -6
  301. package/dist/esm/six-icon.entry.js.map +1 -1
  302. package/dist/esm/six-layout-grid.entry.js +1 -1
  303. package/dist/esm/six-main-container.entry.js +1 -1
  304. package/dist/esm/six-menu-divider.entry.js +1 -1
  305. package/dist/esm/six-menu-label.entry.js +1 -1
  306. package/dist/esm/six-picto.entry.js +1 -1
  307. package/dist/esm/six-progress-bar.entry.js +3 -3
  308. package/dist/esm/six-progress-ring.entry.js +1 -1
  309. package/dist/esm/six-radio.entry.js +2 -2
  310. package/dist/esm/six-range.entry.js +2 -2
  311. package/dist/esm/six-range.entry.js.map +1 -1
  312. package/dist/esm/six-rating.entry.js +124 -0
  313. package/dist/esm/six-rating.entry.js.map +1 -0
  314. package/dist/esm/six-root.entry.js +1 -1
  315. package/dist/esm/six-sidebar-item.entry.js +2 -2
  316. package/dist/esm/six-sidebar.entry.js +2 -2
  317. package/dist/esm/six-switch.entry.js +2 -2
  318. package/dist/esm/six-switch.entry.js.map +1 -1
  319. package/dist/esm/six-tab-panel.entry.js +1 -1
  320. package/dist/esm/six-tab.entry.js +3 -3
  321. package/dist/esm/six-tab.entry.js.map +1 -1
  322. package/dist/esm/six-tag.entry.js +2 -2
  323. package/dist/esm/six-textarea.entry.js +2 -2
  324. package/dist/esm/six-tile.entry.js +5 -5
  325. package/dist/esm/six-timepicker.entry.js +18 -10
  326. package/dist/esm/six-timepicker.entry.js.map +1 -1
  327. package/dist/esm/six-tooltip.entry.js +2 -2
  328. package/dist/esm/ui-library.js +1 -1
  329. package/dist/types/components/six-breadcrumbs/six-breadcrumbs.d.ts +20 -0
  330. package/dist/types/components/six-breadcrumbs-item/six-breadcrumbs-item.d.ts +27 -0
  331. package/dist/types/components/six-date/iso-date.d.ts +2 -0
  332. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  333. package/dist/types/components/six-dropdown/six-dropdown.d.ts +5 -0
  334. package/dist/types/components/six-file-upload/six-file-upload.d.ts +1 -1
  335. package/dist/types/components/six-icon/six-icon.d.ts +16 -0
  336. package/dist/types/components/six-rating/six-rating.d.ts +52 -0
  337. package/dist/types/components/six-tab/six-tab.d.ts +2 -0
  338. package/dist/types/components.d.ts +304 -4
  339. package/dist/types/index.d.ts +1 -0
  340. package/dist/types/types.d.ts +1 -0
  341. package/dist/types/utils/icon.d.ts +5 -0
  342. package/dist/ui-library/files/material-symbols-outlined-latin-fill-normal.woff2 +0 -0
  343. package/dist/ui-library/files/material-symbols-outlined-latin-full-normal.woff2 +0 -0
  344. package/dist/ui-library/files/material-symbols-outlined-latin-grad-normal.woff2 +0 -0
  345. package/dist/ui-library/files/material-symbols-outlined-latin-opsz-normal.woff2 +0 -0
  346. package/dist/ui-library/files/material-symbols-outlined-latin-standard-normal.woff2 +0 -0
  347. package/dist/ui-library/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  348. package/dist/ui-library/files/material-symbols-rounded-latin-fill-normal.woff2 +0 -0
  349. package/dist/ui-library/files/material-symbols-rounded-latin-full-normal.woff2 +0 -0
  350. package/dist/ui-library/files/material-symbols-rounded-latin-grad-normal.woff2 +0 -0
  351. package/dist/ui-library/files/material-symbols-rounded-latin-opsz-normal.woff2 +0 -0
  352. package/dist/ui-library/files/material-symbols-rounded-latin-standard-normal.woff2 +0 -0
  353. package/dist/ui-library/files/material-symbols-rounded-latin-wght-normal.woff2 +0 -0
  354. package/dist/ui-library/files/material-symbols-sharp-latin-fill-normal.woff2 +0 -0
  355. package/dist/ui-library/files/material-symbols-sharp-latin-full-normal.woff2 +0 -0
  356. package/dist/ui-library/files/material-symbols-sharp-latin-grad-normal.woff2 +0 -0
  357. package/dist/ui-library/files/material-symbols-sharp-latin-opsz-normal.woff2 +0 -0
  358. package/dist/ui-library/files/material-symbols-sharp-latin-standard-normal.woff2 +0 -0
  359. package/dist/ui-library/files/material-symbols-sharp-latin-wght-normal.woff2 +0 -0
  360. package/dist/ui-library/index.esm.js +1 -1
  361. package/dist/ui-library/index.esm.js.map +1 -1
  362. package/dist/ui-library/p-05ca516d.entry.js +2 -0
  363. package/dist/ui-library/{p-a43843d6.entry.js → p-06c6b189.entry.js} +2 -2
  364. package/dist/ui-library/{p-850aff56.entry.js → p-12a2cc6b.entry.js} +2 -2
  365. package/dist/ui-library/p-22f924a1.entry.js +2 -0
  366. package/dist/ui-library/{p-285666de.entry.js → p-26219330.entry.js} +2 -2
  367. package/dist/ui-library/p-27baf557.entry.js +2 -0
  368. package/dist/ui-library/p-27baf557.entry.js.map +1 -0
  369. package/dist/ui-library/{p-fe7d3665.entry.js → p-29994dc3.entry.js} +2 -2
  370. package/dist/ui-library/{p-f4dd7b57.entry.js → p-29aac7ea.entry.js} +2 -2
  371. package/dist/ui-library/p-29aac7ea.entry.js.map +1 -0
  372. package/dist/ui-library/p-38c51fd1.entry.js +2 -0
  373. package/dist/ui-library/p-38c51fd1.entry.js.map +1 -0
  374. package/dist/ui-library/{p-f6423fca.entry.js → p-3c1285ad.entry.js} +2 -2
  375. package/dist/ui-library/{p-5b52d097.entry.js → p-3d9e03b5.entry.js} +2 -2
  376. package/dist/ui-library/{p-1cfa2df4.entry.js → p-4d9785bd.entry.js} +2 -2
  377. package/dist/ui-library/p-4decf969.entry.js +2 -0
  378. package/dist/ui-library/p-4decf969.entry.js.map +1 -0
  379. package/dist/ui-library/{p-174dd242.entry.js → p-664ddbab.entry.js} +2 -2
  380. package/dist/ui-library/{p-362ff192.entry.js → p-66b94978.entry.js} +2 -2
  381. package/dist/ui-library/{p-371ef302.entry.js → p-66d616e8.entry.js} +2 -2
  382. package/dist/ui-library/{p-336610a9.entry.js → p-68cb0eaa.entry.js} +2 -2
  383. package/dist/ui-library/p-68cb0eaa.entry.js.map +1 -0
  384. package/dist/ui-library/{p-811ce2a0.entry.js → p-6cd4fbd8.entry.js} +2 -2
  385. package/dist/ui-library/{p-8884a48b.entry.js → p-70388108.entry.js} +2 -2
  386. package/dist/ui-library/p-72d3f332.entry.js +2 -0
  387. package/dist/ui-library/p-72d3f332.entry.js.map +1 -0
  388. package/dist/ui-library/{p-18e755bc.entry.js → p-7f7413db.entry.js} +2 -2
  389. package/dist/ui-library/p-7f7413db.entry.js.map +1 -0
  390. package/dist/ui-library/{p-3d49deae.entry.js → p-8c2edb7f.entry.js} +2 -2
  391. package/dist/ui-library/{p-65e53a1b.entry.js → p-984a1f6d.entry.js} +2 -2
  392. package/dist/ui-library/{p-14f79bfc.entry.js → p-9deca0d0.entry.js} +2 -2
  393. package/dist/ui-library/p-DqHJRLQQ.js +2 -0
  394. package/dist/ui-library/p-DqHJRLQQ.js.map +1 -0
  395. package/dist/ui-library/{p-b6244904.entry.js → p-a6d7d618.entry.js} +2 -2
  396. package/dist/ui-library/p-a7f9c92d.entry.js +2 -0
  397. package/dist/ui-library/{p-09de2bda.entry.js.map → p-a7f9c92d.entry.js.map} +1 -1
  398. package/dist/ui-library/{p-01243b2e.entry.js → p-a9a5485a.entry.js} +2 -2
  399. package/dist/ui-library/p-a9a5485a.entry.js.map +1 -0
  400. package/dist/ui-library/{p-a4b523ed.entry.js → p-aaea0f73.entry.js} +2 -2
  401. package/dist/ui-library/{p-ee980a0f.entry.js → p-bea434d1.entry.js} +2 -2
  402. package/dist/ui-library/p-bea434d1.entry.js.map +1 -0
  403. package/dist/ui-library/{p-0eb90caf.entry.js → p-cc7202c3.entry.js} +2 -2
  404. package/dist/ui-library/p-cc7202c3.entry.js.map +1 -0
  405. package/dist/ui-library/{p-25ff87fe.entry.js → p-ccc7e227.entry.js} +2 -2
  406. package/dist/ui-library/{p-cea7f777.entry.js → p-d81265f4.entry.js} +2 -2
  407. package/dist/ui-library/{p-9ec79195.entry.js → p-da5f40ed.entry.js} +2 -2
  408. package/dist/ui-library/p-dc694314.entry.js +2 -0
  409. package/dist/ui-library/p-dc694314.entry.js.map +1 -0
  410. package/dist/ui-library/{p-29d79fe3.entry.js → p-df2b8f01.entry.js} +2 -2
  411. package/dist/ui-library/p-e100aff2.entry.js +2 -0
  412. package/dist/ui-library/p-e56c5237.entry.js +2 -0
  413. package/dist/ui-library/p-e56c5237.entry.js.map +1 -0
  414. package/dist/ui-library/{p-ea61b009.entry.js → p-e8e5445e.entry.js} +2 -2
  415. package/dist/ui-library/p-fc2d893f.entry.js +2 -0
  416. package/dist/ui-library/p-fcd3305f.entry.js +2 -0
  417. package/dist/ui-library/{p-e85be7d2.entry.js.map → p-fcd3305f.entry.js.map} +1 -1
  418. package/dist/ui-library/p-fd97bc8a.entry.js +2 -0
  419. package/dist/ui-library/p-fd97bc8a.entry.js.map +1 -0
  420. package/dist/ui-library/{p-dc2109d2.entry.js → p-fe2ef0a4.entry.js} +2 -2
  421. package/dist/ui-library/six-breadcrumbs-item.entry.esm.js.map +1 -0
  422. package/dist/ui-library/six-breadcrumbs.entry.esm.js.map +1 -0
  423. package/dist/ui-library/six-button.six-spinner.entry.esm.js.map +1 -0
  424. package/dist/ui-library/six-date.entry.esm.js.map +1 -1
  425. package/dist/ui-library/six-datepicker.entry.esm.js.map +1 -1
  426. package/dist/ui-library/six-dropdown.six-menu.entry.esm.js.map +1 -1
  427. package/dist/ui-library/six-file-upload.entry.esm.js.map +1 -1
  428. package/dist/ui-library/six-icon.entry.esm.js.map +1 -1
  429. package/dist/ui-library/six-range.entry.esm.js.map +1 -1
  430. package/dist/ui-library/six-rating.entry.esm.js.map +1 -0
  431. package/dist/ui-library/six-switch.entry.esm.js.map +1 -1
  432. package/dist/ui-library/six-tab.entry.esm.js.map +1 -1
  433. package/dist/ui-library/six-timepicker.entry.esm.js.map +1 -1
  434. package/dist/ui-library/ui-library.css +1 -1
  435. package/dist/ui-library/ui-library.esm.js +1 -1
  436. package/package.json +20 -3
  437. package/dist/cjs/six-button.cjs.entry.js.map +0 -1
  438. package/dist/cjs/six-button.entry.cjs.js.map +0 -1
  439. package/dist/cjs/six-spinner.cjs.entry.js +0 -58
  440. package/dist/cjs/six-spinner.cjs.entry.js.map +0 -1
  441. package/dist/cjs/six-spinner.entry.cjs.js.map +0 -1
  442. package/dist/components/p-9aUb96SZ.js.map +0 -1
  443. package/dist/components/p-BB2rei7y.js.map +0 -1
  444. package/dist/components/p-BSHZAiyG.js +0 -52
  445. package/dist/components/p-BSHZAiyG.js.map +0 -1
  446. package/dist/components/p-BUN8hFmL.js.map +0 -1
  447. package/dist/components/p-DnLdSdN5.js.map +0 -1
  448. package/dist/esm/six-button.entry.js.map +0 -1
  449. package/dist/esm/six-spinner.entry.js +0 -56
  450. package/dist/esm/six-spinner.entry.js.map +0 -1
  451. package/dist/ui-library/p-01243b2e.entry.js.map +0 -1
  452. package/dist/ui-library/p-09de2bda.entry.js +0 -2
  453. package/dist/ui-library/p-0eb90caf.entry.js.map +0 -1
  454. package/dist/ui-library/p-18e755bc.entry.js.map +0 -1
  455. package/dist/ui-library/p-2a82de6c.entry.js +0 -2
  456. package/dist/ui-library/p-2a82de6c.entry.js.map +0 -1
  457. package/dist/ui-library/p-2fb16281.entry.js +0 -2
  458. package/dist/ui-library/p-2fb16281.entry.js.map +0 -1
  459. package/dist/ui-library/p-31c5f8fa.entry.js +0 -2
  460. package/dist/ui-library/p-336610a9.entry.js.map +0 -1
  461. package/dist/ui-library/p-3dc98466.entry.js +0 -2
  462. package/dist/ui-library/p-3dc98466.entry.js.map +0 -1
  463. package/dist/ui-library/p-494546c8.entry.js +0 -2
  464. package/dist/ui-library/p-4f52c56f.entry.js +0 -2
  465. package/dist/ui-library/p-4f52c56f.entry.js.map +0 -1
  466. package/dist/ui-library/p-c47f11e4.entry.js +0 -2
  467. package/dist/ui-library/p-c47f11e4.entry.js.map +0 -1
  468. package/dist/ui-library/p-c90a59fc.entry.js +0 -2
  469. package/dist/ui-library/p-d36ec323.entry.js +0 -2
  470. package/dist/ui-library/p-e85be7d2.entry.js +0 -2
  471. package/dist/ui-library/p-ee980a0f.entry.js.map +0 -1
  472. package/dist/ui-library/p-f4dd7b57.entry.js.map +0 -1
  473. package/dist/ui-library/six-button.entry.esm.js.map +0 -1
  474. package/dist/ui-library/six-spinner.entry.esm.js.map +0 -1
  475. /package/dist/ui-library/{p-31c5f8fa.entry.js.map → p-05ca516d.entry.js.map} +0 -0
  476. /package/dist/ui-library/{p-a43843d6.entry.js.map → p-06c6b189.entry.js.map} +0 -0
  477. /package/dist/ui-library/{p-850aff56.entry.js.map → p-12a2cc6b.entry.js.map} +0 -0
  478. /package/dist/ui-library/{p-c90a59fc.entry.js.map → p-22f924a1.entry.js.map} +0 -0
  479. /package/dist/ui-library/{p-285666de.entry.js.map → p-26219330.entry.js.map} +0 -0
  480. /package/dist/ui-library/{p-fe7d3665.entry.js.map → p-29994dc3.entry.js.map} +0 -0
  481. /package/dist/ui-library/{p-f6423fca.entry.js.map → p-3c1285ad.entry.js.map} +0 -0
  482. /package/dist/ui-library/{p-5b52d097.entry.js.map → p-3d9e03b5.entry.js.map} +0 -0
  483. /package/dist/ui-library/{p-1cfa2df4.entry.js.map → p-4d9785bd.entry.js.map} +0 -0
  484. /package/dist/ui-library/{p-174dd242.entry.js.map → p-664ddbab.entry.js.map} +0 -0
  485. /package/dist/ui-library/{p-362ff192.entry.js.map → p-66b94978.entry.js.map} +0 -0
  486. /package/dist/ui-library/{p-371ef302.entry.js.map → p-66d616e8.entry.js.map} +0 -0
  487. /package/dist/ui-library/{p-811ce2a0.entry.js.map → p-6cd4fbd8.entry.js.map} +0 -0
  488. /package/dist/ui-library/{p-8884a48b.entry.js.map → p-70388108.entry.js.map} +0 -0
  489. /package/dist/ui-library/{p-3d49deae.entry.js.map → p-8c2edb7f.entry.js.map} +0 -0
  490. /package/dist/ui-library/{p-65e53a1b.entry.js.map → p-984a1f6d.entry.js.map} +0 -0
  491. /package/dist/ui-library/{p-14f79bfc.entry.js.map → p-9deca0d0.entry.js.map} +0 -0
  492. /package/dist/ui-library/{p-b6244904.entry.js.map → p-a6d7d618.entry.js.map} +0 -0
  493. /package/dist/ui-library/{p-a4b523ed.entry.js.map → p-aaea0f73.entry.js.map} +0 -0
  494. /package/dist/ui-library/{p-25ff87fe.entry.js.map → p-ccc7e227.entry.js.map} +0 -0
  495. /package/dist/ui-library/{p-cea7f777.entry.js.map → p-d81265f4.entry.js.map} +0 -0
  496. /package/dist/ui-library/{p-9ec79195.entry.js.map → p-da5f40ed.entry.js.map} +0 -0
  497. /package/dist/ui-library/{p-29d79fe3.entry.js.map → p-df2b8f01.entry.js.map} +0 -0
  498. /package/dist/ui-library/{p-494546c8.entry.js.map → p-e100aff2.entry.js.map} +0 -0
  499. /package/dist/ui-library/{p-ea61b009.entry.js.map → p-e8e5445e.entry.js.map} +0 -0
  500. /package/dist/ui-library/{p-d36ec323.entry.js.map → p-fc2d893f.entry.js.map} +0 -0
  501. /package/dist/ui-library/{p-dc2109d2.entry.js.map → p-fe2ef0a4.entry.js.map} +0 -0
@@ -0,0 +1,432 @@
1
+ import { h } from "@stencil/core";
2
+ import FormControl from "../../functional-components/form-control/form-control";
3
+ import { hasSlot } from "../../utils/slot";
4
+ export class SixRating {
5
+ constructor() {
6
+ /** The rating's name attribute. */
7
+ this.name = '';
8
+ /** The rating's value attribute. */
9
+ this.value = 0;
10
+ /** Set to true to disable the rating. */
11
+ this.disabled = false;
12
+ /** Set to true to show an asterisk beneath the label. */
13
+ this.required = false;
14
+ /** The label text. */
15
+ this.label = '';
16
+ /** The error message shown, if `invalid` is set to true. */
17
+ this.errorText = '';
18
+ /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */
19
+ this.invalid = false;
20
+ /** Maximum number of stars. Default is 5 */
21
+ this.max = 5;
22
+ /** Size of the stars */
23
+ this.size = 'medium';
24
+ /** If its readonly */
25
+ this.readonly = false;
26
+ /** The rating's help text. Alternatively, you can use the help-text slot. */
27
+ this.helpText = '';
28
+ // --
29
+ this.hasFocus = false;
30
+ this.hasLabelSlot = false;
31
+ this.hasErrorSlot = false;
32
+ this.hoveredValue = this.value;
33
+ this.ratingId = `rating-${++SixRating.id}`;
34
+ this.labelId = `rating-label-${SixRating.id}`;
35
+ this.errorTextId = `input-error-text-${SixRating.id}`;
36
+ this.handleSlotChange = () => {
37
+ this.hasLabelSlot = hasSlot(this.el, 'label');
38
+ this.hasErrorSlot = hasSlot(this.el, 'error-text');
39
+ };
40
+ this.handleBlur = () => {
41
+ this.hasFocus = false;
42
+ this.sixBlur.emit(this.value);
43
+ };
44
+ this.handleFocus = () => {
45
+ this.hasFocus = true;
46
+ this.sixFocus.emit();
47
+ };
48
+ this.handleKeyDown = (event) => {
49
+ if (event.key === 'ArrowLeft') {
50
+ event.preventDefault();
51
+ if (this.hoveredValue > 0) {
52
+ this.hoveredValue = this.hoveredValue - 1;
53
+ this.value = this.hoveredValue;
54
+ }
55
+ }
56
+ if (event.key === 'ArrowRight') {
57
+ event.preventDefault();
58
+ if (this.hoveredValue < this.max) {
59
+ this.hoveredValue = this.hoveredValue + 1;
60
+ }
61
+ }
62
+ };
63
+ }
64
+ handleValueChange() {
65
+ this.sixChange.emit(this.value);
66
+ }
67
+ connectedCallback() {
68
+ var _a;
69
+ (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.addEventListener('slotchange', this.handleSlotChange);
70
+ }
71
+ disconnectedCallback() {
72
+ var _a;
73
+ (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('slotchange', this.handleSlotChange);
74
+ }
75
+ renderStars() {
76
+ return Array.from({ length: this.max }, (_, i) => {
77
+ const handleEvent = (event) => {
78
+ if (this.readonly || this.disabled) {
79
+ return;
80
+ }
81
+ switch (event.type) {
82
+ case 'mouseover':
83
+ this.hoveredValue = i + 1;
84
+ break;
85
+ case 'mouseout':
86
+ this.hoveredValue = this.value;
87
+ break;
88
+ case 'click':
89
+ this.value = this.hoveredValue;
90
+ break;
91
+ }
92
+ };
93
+ return (h("six-icon", { class: {
94
+ 'six-rating__star': true,
95
+ 'six-rating__star--filled': i < this.hoveredValue,
96
+ }, filled: true, size: this.size, onMouseOver: handleEvent, onMouseOut: handleEvent, onClick: handleEvent }, "star_rate"));
97
+ });
98
+ }
99
+ render() {
100
+ return (h(FormControl, { key: '9ba64e8020d50b0685551b163bbdc9fe5ffcc473', inputId: this.ratingId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, helpText: this.helpText, hasErrorTextSlot: this.hasErrorSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: 'c7e8bd81467b9dc1eef04266502e43ca91192732', part: "base", class: {
101
+ 'six-rating': true,
102
+ 'six-rating--readonly': this.readonly,
103
+ 'six-rating--disabled': this.disabled,
104
+ }, role: "slider", "aria-label": this.label, "aria-disabled": this.disabled ? 'true' : 'false', "aria-readonly": this.readonly ? 'true' : 'false', "aria-valuenow": this.value, "aria-valuemin": 0, "aria-valuemax": this.max, tabindex: this.disabled ? '-1' : '0', onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown }, this.renderStars(), h("input", { key: 'c7f6e028073845efed162b0c13942375941f5549', part: "input", id: this.ratingId, type: "hidden", max: this.max, min: 0, name: this.name, value: this.value, disabled: this.disabled, required: this.required, role: "slider", "aria-labelledby": this.labelId }))));
105
+ }
106
+ static get is() { return "six-rating"; }
107
+ static get encapsulation() { return "shadow"; }
108
+ static get originalStyleUrls() {
109
+ return {
110
+ "$": ["six-rating.scss"]
111
+ };
112
+ }
113
+ static get styleUrls() {
114
+ return {
115
+ "$": ["six-rating.css"]
116
+ };
117
+ }
118
+ static get properties() {
119
+ return {
120
+ "name": {
121
+ "type": "string",
122
+ "attribute": "name",
123
+ "mutable": false,
124
+ "complexType": {
125
+ "original": "string",
126
+ "resolved": "string",
127
+ "references": {}
128
+ },
129
+ "required": false,
130
+ "optional": false,
131
+ "docs": {
132
+ "tags": [],
133
+ "text": "The rating's name attribute."
134
+ },
135
+ "getter": false,
136
+ "setter": false,
137
+ "reflect": false,
138
+ "defaultValue": "''"
139
+ },
140
+ "value": {
141
+ "type": "number",
142
+ "attribute": "value",
143
+ "mutable": true,
144
+ "complexType": {
145
+ "original": "number",
146
+ "resolved": "number",
147
+ "references": {}
148
+ },
149
+ "required": false,
150
+ "optional": false,
151
+ "docs": {
152
+ "tags": [],
153
+ "text": "The rating's value attribute."
154
+ },
155
+ "getter": false,
156
+ "setter": false,
157
+ "reflect": false,
158
+ "defaultValue": "0"
159
+ },
160
+ "disabled": {
161
+ "type": "boolean",
162
+ "attribute": "disabled",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "boolean",
166
+ "resolved": "boolean",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": false,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "Set to true to disable the rating."
174
+ },
175
+ "getter": false,
176
+ "setter": false,
177
+ "reflect": false,
178
+ "defaultValue": "false"
179
+ },
180
+ "required": {
181
+ "type": "boolean",
182
+ "attribute": "required",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "boolean",
186
+ "resolved": "boolean",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": "Set to true to show an asterisk beneath the label."
194
+ },
195
+ "getter": false,
196
+ "setter": false,
197
+ "reflect": false,
198
+ "defaultValue": "false"
199
+ },
200
+ "label": {
201
+ "type": "string",
202
+ "attribute": "label",
203
+ "mutable": false,
204
+ "complexType": {
205
+ "original": "string",
206
+ "resolved": "string",
207
+ "references": {}
208
+ },
209
+ "required": false,
210
+ "optional": false,
211
+ "docs": {
212
+ "tags": [],
213
+ "text": "The label text."
214
+ },
215
+ "getter": false,
216
+ "setter": false,
217
+ "reflect": false,
218
+ "defaultValue": "''"
219
+ },
220
+ "errorText": {
221
+ "type": "string",
222
+ "attribute": "error-text",
223
+ "mutable": false,
224
+ "complexType": {
225
+ "original": "string | string[]",
226
+ "resolved": "string | string[]",
227
+ "references": {}
228
+ },
229
+ "required": false,
230
+ "optional": false,
231
+ "docs": {
232
+ "tags": [],
233
+ "text": "The error message shown, if `invalid` is set to true."
234
+ },
235
+ "getter": false,
236
+ "setter": false,
237
+ "reflect": false,
238
+ "defaultValue": "''"
239
+ },
240
+ "errorTextCount": {
241
+ "type": "number",
242
+ "attribute": "error-text-count",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "number",
246
+ "resolved": "number | undefined",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": true,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1"
254
+ },
255
+ "getter": false,
256
+ "setter": false,
257
+ "reflect": false
258
+ },
259
+ "invalid": {
260
+ "type": "boolean",
261
+ "attribute": "invalid",
262
+ "mutable": false,
263
+ "complexType": {
264
+ "original": "boolean",
265
+ "resolved": "boolean",
266
+ "references": {}
267
+ },
268
+ "required": false,
269
+ "optional": false,
270
+ "docs": {
271
+ "tags": [],
272
+ "text": "If this property is set to true and an error message is provided by `errorText`, the error message is displayed."
273
+ },
274
+ "getter": false,
275
+ "setter": false,
276
+ "reflect": true,
277
+ "defaultValue": "false"
278
+ },
279
+ "max": {
280
+ "type": "number",
281
+ "attribute": "max",
282
+ "mutable": false,
283
+ "complexType": {
284
+ "original": "number",
285
+ "resolved": "number",
286
+ "references": {}
287
+ },
288
+ "required": false,
289
+ "optional": false,
290
+ "docs": {
291
+ "tags": [],
292
+ "text": "Maximum number of stars. Default is 5"
293
+ },
294
+ "getter": false,
295
+ "setter": false,
296
+ "reflect": false,
297
+ "defaultValue": "5"
298
+ },
299
+ "size": {
300
+ "type": "string",
301
+ "attribute": "size",
302
+ "mutable": false,
303
+ "complexType": {
304
+ "original": "'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge'",
305
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"xLarge\" | \"xSmall\" | \"xxLarge\" | \"xxxLarge\"",
306
+ "references": {}
307
+ },
308
+ "required": false,
309
+ "optional": false,
310
+ "docs": {
311
+ "tags": [],
312
+ "text": "Size of the stars"
313
+ },
314
+ "getter": false,
315
+ "setter": false,
316
+ "reflect": true,
317
+ "defaultValue": "'medium'"
318
+ },
319
+ "readonly": {
320
+ "type": "boolean",
321
+ "attribute": "readonly",
322
+ "mutable": false,
323
+ "complexType": {
324
+ "original": "boolean",
325
+ "resolved": "boolean",
326
+ "references": {}
327
+ },
328
+ "required": false,
329
+ "optional": false,
330
+ "docs": {
331
+ "tags": [],
332
+ "text": "If its readonly"
333
+ },
334
+ "getter": false,
335
+ "setter": false,
336
+ "reflect": false,
337
+ "defaultValue": "false"
338
+ },
339
+ "helpText": {
340
+ "type": "string",
341
+ "attribute": "help-text",
342
+ "mutable": false,
343
+ "complexType": {
344
+ "original": "string",
345
+ "resolved": "string",
346
+ "references": {}
347
+ },
348
+ "required": false,
349
+ "optional": false,
350
+ "docs": {
351
+ "tags": [],
352
+ "text": "The rating's help text. Alternatively, you can use the help-text slot."
353
+ },
354
+ "getter": false,
355
+ "setter": false,
356
+ "reflect": false,
357
+ "defaultValue": "''"
358
+ }
359
+ };
360
+ }
361
+ static get states() {
362
+ return {
363
+ "hasFocus": {},
364
+ "hasLabelSlot": {},
365
+ "hasErrorSlot": {},
366
+ "hoveredValue": {}
367
+ };
368
+ }
369
+ static get events() {
370
+ return [{
371
+ "method": "sixBlur",
372
+ "name": "six-rating-blur",
373
+ "bubbles": true,
374
+ "cancelable": true,
375
+ "composed": true,
376
+ "docs": {
377
+ "tags": [],
378
+ "text": "Emitted when the control loses focus."
379
+ },
380
+ "complexType": {
381
+ "original": "number",
382
+ "resolved": "number",
383
+ "references": {}
384
+ }
385
+ }, {
386
+ "method": "sixChange",
387
+ "name": "six-rating-change",
388
+ "bubbles": true,
389
+ "cancelable": true,
390
+ "composed": true,
391
+ "docs": {
392
+ "tags": [],
393
+ "text": "Emitted when the control's checked state changes."
394
+ },
395
+ "complexType": {
396
+ "original": "number",
397
+ "resolved": "number",
398
+ "references": {}
399
+ }
400
+ }, {
401
+ "method": "sixFocus",
402
+ "name": "six-rating-focus",
403
+ "bubbles": true,
404
+ "cancelable": true,
405
+ "composed": true,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": "Emitted when the control gains focus."
409
+ },
410
+ "complexType": {
411
+ "original": "EmptyPayload",
412
+ "resolved": "undefined",
413
+ "references": {
414
+ "EmptyPayload": {
415
+ "location": "import",
416
+ "path": "../../utils/types",
417
+ "id": "src/utils/types.ts::EmptyPayload"
418
+ }
419
+ }
420
+ }
421
+ }];
422
+ }
423
+ static get elementRef() { return "el"; }
424
+ static get watchers() {
425
+ return [{
426
+ "propName": "value",
427
+ "methodName": "handleValueChange"
428
+ }];
429
+ }
430
+ }
431
+ SixRating.id = 0;
432
+ //# sourceMappingURL=six-rating.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"six-rating.js","sourceRoot":"","sources":["../../../src/components/six-rating/six-rating.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/F,OAAO,WAAW,MAAM,uDAAuD,CAAC;AAEhF,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C,MAAM,OAAO,SAAS;IALtB;QAQE,mCAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9Ic,YAAE,GAAW,CAAC,AAAZ,CAAa","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { EmptyPayload } from '../../utils/types';\nimport { hasSlot } from '../../utils/slot';\n\n@Component({\n tag: 'six-rating',\n styleUrl: 'six-rating.scss',\n shadow: true,\n})\nexport class SixRating {\n @Element() el!: HTMLSixRatingElement;\n\n /** The rating's name attribute. */\n @Prop() name = '';\n\n /** The rating's value attribute. */\n @Prop({ mutable: true }) value: number = 0;\n\n /** Set to true to disable the rating. */\n @Prop() disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The label text. */\n @Prop() label: string = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** Maximum number of stars. Default is 5 */\n @Prop() max: number = 5;\n\n /** Size of the stars */\n @Prop({ reflect: true }) size: 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge' = 'medium';\n\n /** If its readonly */\n @Prop() readonly: boolean = false;\n\n /** The rating's help text. Alternatively, you can use the help-text slot. */\n @Prop() helpText = '';\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-rating-blur' }) sixBlur!: EventEmitter<number>;\n\n /** Emitted when the control's checked state changes. */\n @Event({ eventName: 'six-rating-change' }) sixChange!: EventEmitter<number>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-rating-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n // --\n\n @State() hasFocus = false;\n @State() hasLabelSlot = false;\n @State() hasErrorSlot = false;\n @State() hoveredValue = this.value;\n\n private static id: number = 0;\n\n private ratingId = `rating-${++SixRating.id}`;\n private labelId = `rating-label-${SixRating.id}`;\n private errorTextId = `input-error-text-${SixRating.id}`;\n\n @Watch('value')\n handleValueChange() {\n this.sixChange.emit(this.value);\n }\n\n connectedCallback() {\n this.el.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n }\n\n disconnectedCallback() {\n this.el.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n }\n\n private handleSlotChange = () => {\n this.hasLabelSlot = hasSlot(this.el, 'label');\n this.hasErrorSlot = hasSlot(this.el, 'error-text');\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit(this.value);\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n if (this.hoveredValue > 0) {\n this.hoveredValue = this.hoveredValue - 1;\n this.value = this.hoveredValue;\n }\n }\n\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n if (this.hoveredValue < this.max) {\n this.hoveredValue = this.hoveredValue + 1;\n }\n }\n };\n\n private renderStars() {\n return Array.from({ length: this.max }, (_, i) => {\n const handleEvent = (event: Event) => {\n if (this.readonly || this.disabled) {\n return;\n }\n switch (event.type) {\n case 'mouseover':\n this.hoveredValue = i + 1;\n break;\n case 'mouseout':\n this.hoveredValue = this.value;\n break;\n case 'click':\n this.value = this.hoveredValue;\n break;\n }\n };\n\n return (\n <six-icon\n class={{\n 'six-rating__star': true,\n 'six-rating__star--filled': i < this.hoveredValue,\n }}\n filled\n size={this.size}\n onMouseOver={handleEvent}\n onMouseOut={handleEvent}\n onClick={handleEvent}\n >\n star_rate\n </six-icon>\n );\n });\n }\n\n render() {\n return (\n <FormControl\n inputId={this.ratingId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n errorTextId={this.errorTextId}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n helpText={this.helpText}\n hasErrorTextSlot={this.hasErrorSlot}\n size=\"medium\"\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <div\n part=\"base\"\n class={{\n 'six-rating': true,\n 'six-rating--readonly': this.readonly,\n 'six-rating--disabled': this.disabled,\n }}\n role=\"slider\"\n aria-label={this.label}\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-readonly={this.readonly ? 'true' : 'false'}\n aria-valuenow={this.value}\n aria-valuemin={0}\n aria-valuemax={this.max}\n tabindex={this.disabled ? '-1' : '0'}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n onKeyDown={this.handleKeyDown}\n >\n {this.renderStars()}\n\n <input\n part=\"input\"\n id={this.ratingId}\n type=\"hidden\"\n max={this.max}\n min={0}\n name={this.name}\n value={this.value}\n disabled={this.disabled}\n required={this.required}\n role=\"slider\"\n aria-labelledby={this.labelId}\n />\n </div>\n </FormControl>\n );\n }\n}\n"]}
@@ -20,7 +20,7 @@ export class SixRoot {
20
20
  this.version = '';
21
21
  }
22
22
  render() {
23
- return (h("host", { key: '005ad5514d4137e97a862fd2a09151013e6250d0', class: "six-root" }, h("header", { key: '4cde9e57f125b9ea179608c36b311d33449ab9d3', part: "header" }, this.stage && h("six-stage-indicator", { key: '9c8d9ce4ae9d7652249fd3e2bbb39431830e6813', stage: this.stage }, this.version), h("slot", { key: 'dd414f2b13ec59e96ebe1e1df8f2fb71de113a60', name: "header" })), h("nav", { key: 'b9abf9d3eae12e6c492b64aada73bd7101a4edb1', class: "six-root__left-sidebar", part: "left-sidebar" }, h("slot", { key: 'd664769001501f55dd65a0c772fa6df6742ffe4c', name: "left-sidebar" })), h("main", { key: '4fb77beeed3e16ccb53a6d486d1307893d16aac3', part: "main" }, h("div", { key: '587d43eedf0a41c790b184c54f41941ea12fdd37', class: { 'six-root__container': true, 'six-root__container--padded': this.padded }, part: "container" }, h("slot", { key: '66473b0c3e44effb55ce262b27f2980b668b4335', name: "main" })), h("div", { key: 'b4dcc58d0fe42bcee91f2d0586e07f026b70bf5f', class: "six-root__footer" }, h("slot", { key: 'bf3efc6011d2cfbdd121973d77b7eba58c12c440', name: "footer" }))), h("nav", { key: '88683d098fd1c75bf35b9ecb9aaf2d2e1b8f6715', class: "six-root__right-sidebar", part: "right-sidebar" }, h("slot", { key: '3e38e0f3d3c0c66075c27f305d0460f52bbf725c', name: "right-sidebar" }))));
23
+ return (h("host", { key: '045dca1aa5b75c3b3c600bd569d73747ebd21c38', class: "six-root" }, h("header", { key: '19430d1e5f9060152c795ed4548b4774a43f34e8', part: "header" }, this.stage && h("six-stage-indicator", { key: '7d79552068cca2510da31c67134160da554d94c4', stage: this.stage }, this.version), h("slot", { key: '661db283a073f9772eb4bb6a9ea0fb9c3492193c', name: "header" })), h("nav", { key: 'ac94418c7b7fca25aa4b99725bab442dbd3b1536', class: "six-root__left-sidebar", part: "left-sidebar" }, h("slot", { key: '98995975b462b8954fb40da95602cd6198c7ca18', name: "left-sidebar" })), h("main", { key: 'bf5be0209eea18096e1e6f18dcb0e5ad9fef73c0', part: "main" }, h("div", { key: '25b4d0cbc135d54ff2576f853f3ff3dd8fec0d3b', class: { 'six-root__container': true, 'six-root__container--padded': this.padded }, part: "container" }, h("slot", { key: '497b196c44123903a2024931f6ac860d728e4880', name: "main" })), h("div", { key: '6807b1db1e0da24e73a239ee9ef51ad3115eee52', class: "six-root__footer" }, h("slot", { key: 'af2cef1fbbcdfa6fbf267a2bc88b25e3fe7ddb42', name: "footer" }))), h("nav", { key: 'ab71c8248a17f4fe4db6667ea1fb401528372ac1', class: "six-root__right-sidebar", part: "right-sidebar" }, h("slot", { key: 'ed718d2e22f2607f6c6b7a1b689b5b3a55fa2e79', name: "right-sidebar" }))));
24
24
  }
25
25
  static get is() { return "six-root"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -176,7 +176,7 @@ export class SixSidebar {
176
176
  this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();
177
177
  }
178
178
  render() {
179
- return (h("host", { key: '38d2d55b73e862c71ef3912fac01f6abd43a3b7c', class: "six-sidebar" }, h("div", { key: 'b8a7a32d48016310f943b42d03f1c4a44ff5bca4', class: {
179
+ return (h("host", { key: '1aae217047bea8e29e86256812a8a67a6eff4ce9', class: "six-sidebar" }, h("div", { key: 'd9d70f022ffaeae09003dfc130b40707ad9e3512', class: {
180
180
  sidebar__container: true,
181
181
  'sidebar--visible': this.isVisible,
182
182
  'sidebar--open': this.open,
@@ -185,7 +185,7 @@ export class SixSidebar {
185
185
  }, style: {
186
186
  width: this.width,
187
187
  [`margin-${this.position}`]: this.open ? '0' : `calc(1rem - ${this.width})`,
188
- }, ref: (el) => (this.sidebar = el), "aria-hidden": this.open ? 'false' : 'true', onTransitionEnd: this.handleTransitionEnd }, h("slot", { key: 'a13e1cd44a68fa3ad15a94ccc56ec7c09f689e4c' }))));
188
+ }, ref: (el) => (this.sidebar = el), "aria-hidden": this.open ? 'false' : 'true', onTransitionEnd: this.handleTransitionEnd }, h("slot", { key: 'd88754017cf07b12181cce2e10788291ad487257' }))));
189
189
  }
190
190
  static get is() { return "six-sidebar"; }
191
191
  static get encapsulation() { return "shadow"; }
@@ -18,11 +18,11 @@ export class SixSidebarItem {
18
18
  }
19
19
  render() {
20
20
  const Tag = this.href != null ? 'a' : 'div';
21
- return (h(Tag, { key: 'd36654ad6af78000c79191da18b9af02d582dde1', class: {
21
+ return (h(Tag, { key: '09bcf26c2b9c30bb05820fdba6300ac0d3863df7', class: {
22
22
  'sidebar-item': true,
23
23
  'sidebar-item--selected': this.selected,
24
24
  'sidebar-item--disabled': this.disabled,
25
- }, role: "menuitem", href: this.href, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, this.icon && h("six-icon", { key: '8664269ee064fa6abd7529ddf92bfcd62e1fe83d', class: "six-sidebar-item__icon" }, this.icon), h("slot", { key: '528d1bd9d6b2e329292a90b7f21412f441dce27b' })));
25
+ }, role: "menuitem", href: this.href, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, this.icon && h("six-icon", { key: '6aa594d78879a9ed4ba9a885b2ed66ec43009831', class: "six-sidebar-item__icon" }, this.icon), h("slot", { key: 'df8b8f32bbb75ba84d7b3c8b476ad62b32f749c5' })));
26
26
  }
27
27
  static get is() { return "six-sidebar-item"; }
28
28
  static get encapsulation() { return "shadow"; }
@@ -27,6 +27,7 @@
27
27
  --indicator-color: var(--six-progress-indicator-color);
28
28
  --stroke-width: 2px;
29
29
  display: inline-flex;
30
+ font-size: 40px;
30
31
  }
31
32
 
32
33
  .spinner {
@@ -49,28 +50,13 @@
49
50
  }
50
51
  }
51
52
  .six-spinner {
52
- width: auto;
53
- height: auto;
54
- position: relative;
55
- }
56
- .six-spinner .six-spinner__container {
57
- margin: 0;
58
- transform: translateX(0);
59
- }
60
- .six-spinner .six-spinner__container svg {
61
- transform: translateX(0);
62
- }
63
- .six-spinner__container {
64
- position: relative;
65
- margin: 0 auto;
66
- top: calc(50% - 20px);
67
- z-index: 1;
53
+ display: inline-block;
54
+ width: 1em;
55
+ height: 1em;
56
+ line-height: 0;
68
57
  }
69
- .six-spinner__container, .six-spinner__container svg {
70
- width: 40px;
71
- height: 40px;
58
+ .six-spinner__container svg {
72
59
  display: block;
73
- transform: translateX(40px);
74
60
  }
75
61
  .six-spinner path {
76
62
  stroke-dashoffset: 70px;
@@ -112,12 +112,12 @@ export class SixSwitch {
112
112
  (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.blur();
113
113
  }
114
114
  render() {
115
- return (h(FormControl, { key: 'a358f086b57322b8e3225f4775b09506e766c968', inputId: this.switchId, label: this.label, labelId: this.labelId, hasLabelSlot: false, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { key: '7b87b1d45026bb79c0c1ce5c0cf2e969ee0d0ca7', part: "base", htmlFor: this.switchId, class: {
115
+ return (h(FormControl, { key: '71e5bbeaf0a8aaa048395e5141d5a5e0f280fd05', inputId: this.switchId, label: this.label, labelId: this.labelId, hasLabelSlot: false, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { key: '0cbcf106597f7be0403b34f0e3d471f1f41796a7', part: "base", htmlFor: this.switchId, class: {
116
116
  switch: true,
117
117
  'switch--checked': this.checked,
118
118
  'switch--disabled': this.disabled,
119
119
  'switch--focused': this.hasFocus,
120
- }, onMouseDown: this.handleMouseDown }, h("span", { key: '35bd92fabfb1b177a048789e9f0f9d68499b7bd0', part: "control", class: "switch__control" }, h("span", { key: '0c85de3b5d75b3d083554931a5648be5ba26f7fc', part: "thumb", class: "switch__thumb" }), h("input", { key: '5c807156b356962f347820301050cd096ba67330', ref: (el) => (this.inputElement = el), id: this.switchId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown })), h("span", { key: '923235545aec3ccb5c04aec3316fd8e5a2d027e2', part: "label", id: this.labelId, class: "switch__label" }, h("slot", { key: '53e2689b7efaac1a93954d02eb7d6b1cdadc8c73' })))));
120
+ }, onMouseDown: this.handleMouseDown }, h("span", { key: 'b4540e2a6458235cf02412951aa1810bc53300e6', part: "control", class: "switch__control" }, h("span", { key: 'b2e8dc036a5b16fd58120f3afe48e58249cd4469', part: "thumb", class: "switch__thumb" }), h("input", { key: 'b0a4aba9eff684d6f2f4f523a4ca17c2d03e50bc', ref: (el) => (this.inputElement = el), id: this.switchId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown })), h("span", { key: 'bd308defa59c8c4a144a67bb461309af8627a4bf', part: "label", id: this.labelId, class: "switch__label" }, h("slot", { key: 'a63507b9c7b7faeceb2babb993966840747d62ae' })))));
121
121
  }
122
122
  static get is() { return "six-switch"; }
123
123
  static get encapsulation() { return "shadow"; }
@@ -40,12 +40,12 @@ export class SixTab {
40
40
  this.sixClose.emit();
41
41
  }
42
42
  render() {
43
- var _a;
43
+ var _a, _b;
44
44
  const tabGroup = this.host.closest('six-tab-group');
45
45
  const placement = (_a = tabGroup === null || tabGroup === void 0 ? void 0 : tabGroup.placement) !== null && _a !== void 0 ? _a : 'top';
46
46
  return (
47
47
  // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels
48
- h(Host, { key: '6b59af3a0794c9ea26b362fa1ea1c0d7513babea', id: this.host.id || this.componentId }, h("div", { key: '145b15cdb916d93ecb67a966fd558e37500db17c', part: "base", ref: (el) => (this.tab = el), class: {
48
+ h(Host, { key: 'cf68989c61bf87898620dd39ffa5f92907bd2585', id: this.host.id || this.componentId }, h("div", { key: '987c14cf6a61901bdcec0f9029d28f23417f9527', part: "base", ref: (el) => (this.tab = el), class: {
49
49
  tab: true,
50
50
  // Placements
51
51
  'tab--top': placement === 'top',
@@ -56,7 +56,7 @@ export class SixTab {
56
56
  'tab--active': this.active,
57
57
  'tab--closable': this.closable,
58
58
  'tab--disabled': this.disabled,
59
- }, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', tabindex: this.disabled || !this.active ? '-1' : '0', title: this.host.innerHTML }, h("slot", { key: '2a63428f882a98381746e578c98421cf7d065a16' }), this.closable && (h("six-icon-button", { key: 'dc0dbb47462d86dfae7b6806b667d6af69094f31', name: "close", size: "xSmall", exportparts: "base:close-button", class: "tab__close-button", onClick: this.handleCloseClick, tabIndex: -1, "aria-hidden": "true" }))), h("div", { key: '62bb67bb6a95d732e0961f349ada6f7d78a2e3a1', part: this.active ? 'active-tab-indicator' : '', class: {
59
+ }, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', tabindex: this.disabled || !this.active ? '-1' : '0', title: (_b = this.hoverContent) !== null && _b !== void 0 ? _b : this.host.innerHTML }, h("slot", { key: 'dd6314fa392b9e4a853f50abb5c671c38a764d5f' }), this.closable && (h("six-icon-button", { key: '473fab356355da098555b0699c9ff2a08c778d1d', name: "close", size: "xSmall", exportparts: "base:close-button", class: "tab__close-button", onClick: this.handleCloseClick, tabIndex: -1, "aria-hidden": "true" }))), h("div", { key: '9a662684f5471aea35cfe07072341495e6a20236', part: this.active ? 'active-tab-indicator' : '', class: {
60
60
  tab__indicator: true,
61
61
  'tab__indicator--active': this.active,
62
62
  // Placements
@@ -140,6 +140,25 @@ export class SixTab {
140
140
  "reflect": false,
141
141
  "defaultValue": "false"
142
142
  },
143
+ "hoverContent": {
144
+ "type": "string",
145
+ "attribute": "hover-content",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "string",
149
+ "resolved": "string | undefined",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": true,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "The content to display when the user hovers over the tab's title. Useful if the tab's title has html content in it"
157
+ },
158
+ "getter": false,
159
+ "setter": false,
160
+ "reflect": false
161
+ },
143
162
  "disabled": {
144
163
  "type": "boolean",
145
164
  "attribute": "disabled",