@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
@@ -1,6 +1,7 @@
1
1
  import { r as registerInstance, h } from './index-JoG9I7EO.js';
2
+ import { g as getDefaultIconLibrary } from './icon-DqHJRLQQ.js';
2
3
 
3
- const sixIconCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}:host{display:inline-flex;vertical-align:middle}.material-icons{vertical-align:middle;font-weight:normal;font-style:normal;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:\"liga\";user-select:none}.material-icons-filled{font-family:\"Material Icons\"}.material-icons-outlined{font-family:\"Material Icons Outlined\"}.icon--xsmall{font-size:12px}.icon--small{font-size:18px}.icon--medium{font-size:24px}.icon--large{font-size:36px}.icon--xlarge{font-size:48px}.icon--xxlarge{font-size:72px}.icon--xxxlarge{font-size:96px}.icon--inherit{font-size:1.5em}";
4
+ const sixIconCss = "@charset \"UTF-8\";:host{display:inline-flex;vertical-align:middle}.material-icons,.material-icons-outlined,.material-icons-filled,.material-symbols-outlined,.material-symbols{display:inline-block;vertical-align:middle;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-feature-settings:\"liga\";font-style:normal;font-weight:normal;font-synthesis-weight:none;user-select:none}.material-icons-filled{font-family:\"Material Icons\"}.material-icons-outlined{font-family:\"Material Icons Outlined\"}.material-symbols-outlined,.material-symbols{font-family:\"Material Symbols Outlined Variable\";font-variation-settings:\"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.material-symbols{font-variation-settings:\"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24}.icon{}.icon--xsmall{font-size:12px}.icon--small{font-size:18px}.icon--medium{font-size:24px}.icon--large{font-size:36px}.icon--xlarge{font-size:48px}.icon--xxlarge{font-size:72px}.icon--xxxlarge{font-size:96px}.icon--inherit{font-size:1.5em}";
4
5
 
5
6
  const SixIcon = class {
6
7
  constructor(hostRef) {
@@ -10,11 +11,19 @@ const SixIcon = class {
10
11
  /** If set to true the default material outlined icons are not used. */
11
12
  this.filled = false;
12
13
  }
14
+ isSymbols() {
15
+ var _a;
16
+ const lib = (_a = this.library) !== null && _a !== void 0 ? _a : getDefaultIconLibrary();
17
+ return lib === 'material-symbols';
18
+ }
13
19
  render() {
14
- return (h("i", { key: '748f3396556d9bee11a96c550c4f04b5d4945842', class: {
15
- 'material-icons': true,
16
- 'material-icons-outlined': !this.filled,
17
- 'material-icons-filled': this.filled,
20
+ const isSymbols = this.isSymbols();
21
+ return (h("i", { key: 'd62435a9ab36ae9e211c21deefed88fd9ddee825', class: {
22
+ 'material-icons': !isSymbols,
23
+ 'material-icons-outlined': !isSymbols && !this.filled,
24
+ 'material-icons-filled': !isSymbols && this.filled,
25
+ 'material-symbols-outlined': isSymbols && !this.filled,
26
+ 'material-symbols': isSymbols && this.filled,
18
27
  'icon--xsmall': this.size === 'xSmall',
19
28
  'icon--small': this.size === 'small',
20
29
  'icon--medium': this.size === 'medium',
@@ -23,7 +32,7 @@ const SixIcon = class {
23
32
  'icon--xxlarge': this.size === 'xxLarge',
24
33
  'icon--xxxlarge': this.size === 'xxxLarge',
25
34
  'icon--inherit': this.size === 'inherit',
26
- } }, h("slot", { key: 'd80f49ba0904122e01610b0f23bae0915ee9c6ec' })));
35
+ } }, h("slot", { key: '6c8cf45d02106faae111ce323754573008d2af2a' })));
27
36
  }
28
37
  };
29
38
  SixIcon.style = sixIconCss;
@@ -1 +1 @@
1
- {"version":3,"file":"six-icon.entry.js","sources":["src/components/six-icon/six-icon.scss?tag=six-icon&encapsulation=shadow","src/components/six-icon/six-icon.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-flex;\n vertical-align: middle;\n}\n\n.material-icons {\n vertical-align: middle;\n font-weight: normal;\n font-style: normal;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: normal;\n white-space: nowrap;\n direction: ltr;\n\n /* Support for all WebKit browsers. */\n -webkit-font-smoothing: antialiased;\n /* Support for Safari and Chrome. */\n text-rendering: optimizeLegibility;\n\n /* Support for Firefox. */\n -moz-osx-font-smoothing: grayscale;\n\n /* Support for IE. */\n font-feature-settings: 'liga';\n\n /* Icon name should not be selectable. */\n user-select: none;\n}\n\n.material-icons-filled {\n font-family: 'Material Icons';\n}\n\n.material-icons-outlined {\n font-family: 'Material Icons Outlined';\n}\n\n.icon {\n &--xsmall {\n font-size: 12px;\n }\n\n &--small {\n font-size: 18px;\n }\n\n &--medium {\n font-size: 24px;\n }\n\n &--large {\n font-size: 36px;\n }\n\n &--xlarge {\n font-size: 48px;\n }\n\n &--xxlarge {\n font-size: 72px;\n }\n\n &--xxxlarge {\n font-size: 96px;\n }\n\n &--inherit {\n font-size: 1.5em;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the material icon name.\n */\n\n@Component({\n tag: 'six-icon',\n styleUrls: ['six-icon.scss'],\n shadow: true,\n})\nexport class SixIcon {\n /** The icon's size. */\n @Prop({ reflect: true }) size:\n | 'inherit'\n | 'xSmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xLarge'\n | 'xxLarge'\n | 'xxxLarge' = 'inherit';\n\n /** If set to true the default material outlined icons are not used. */\n @Prop() filled = false;\n\n render() {\n return (\n <i\n class={{\n 'material-icons': true,\n 'material-icons-outlined': !this.filled,\n 'material-icons-filled': this.filled,\n 'icon--xsmall': this.size === 'xSmall',\n 'icon--small': this.size === 'small',\n 'icon--medium': this.size === 'medium',\n 'icon--large': this.size === 'large',\n 'icon--xlarge': this.size === 'xLarge',\n 'icon--xxlarge': this.size === 'xxLarge',\n 'icon--xxxlarge': this.size === 'xxxLarge',\n 'icon--inherit': this.size === 'inherit',\n }}\n >\n <slot></slot>\n </i>\n );\n }\n}\n"],"names":[],"mappings":";;AAAA,MAAM,UAAU,GAAG,s7BAAs7B;;MCc57B,OAAO,GAAA,MAAA;AALpB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAO2B,QAAA,IAAI,CAAA,IAAA,GAQZ,SAAS;;AAGlB,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK;AAuBvB;IArBC,MAAM,GAAA;QACJ,QACE,CACE,CAAA,GAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE;AACL,gBAAA,gBAAgB,EAAE,IAAI;AACtB,gBAAA,yBAAyB,EAAE,CAAC,IAAI,CAAC,MAAM;gBACvC,uBAAuB,EAAE,IAAI,CAAC,MAAM;AACpC,gBAAA,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;AACtC,gBAAA,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;AACpC,gBAAA,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;AACtC,gBAAA,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;AACpC,gBAAA,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;AACtC,gBAAA,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;AACxC,gBAAA,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,UAAU;AAC1C,gBAAA,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;AACzC,aAAA,EAAA,EAED,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACX;;;;;;;"}
1
+ {"version":3,"file":"six-icon.entry.js","sources":["src/components/six-icon/six-icon.scss?tag=six-icon&encapsulation=shadow","src/components/six-icon/six-icon.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n vertical-align: middle;\n}\n\n/* ==========================================================================\n Common icon text baseline\n ========================================================================== */\n\n.material-icons,\n.material-icons-outlined,\n.material-icons-filled,\n.material-symbols-outlined,\n.material-symbols {\n display: inline-block;\n vertical-align: middle;\n letter-spacing: normal;\n word-wrap: normal;\n white-space: nowrap;\n direction: ltr;\n\n /* rendering */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: 'liga';\n font-style: normal;\n font-weight: normal;\n font-synthesis-weight: none;\n user-select: none;\n}\n\n/* ==========================================================================\n Material Icons (classic)\n ========================================================================== */\n\n.material-icons-filled {\n font-family: 'Material Icons';\n}\n\n.material-icons-outlined {\n font-family: 'Material Icons Outlined';\n}\n\n/* ==========================================================================\n Material Symbols (variable font)\n We always use the \"Outlined Variable\" family and drive style via axes.\n (One font for both outlined/filled via FILL axis.)\n ========================================================================== */\n\n.material-symbols-outlined,\n.material-symbols {\n font-family: 'Material Symbols Outlined Variable';\n\n /* Base variations shared by both */\n font-variation-settings:\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* Outlined → FILL 0 */\n.material-symbols-outlined {\n font-variation-settings:\n 'FILL' 0,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* Filled → FILL 1 */\n.material-symbols {\n font-variation-settings:\n 'FILL' 1,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n}\n\n/* ==========================================================================\n Size helpers (unchanged API, a bit more explicit)\n ========================================================================== */\n\n.icon {\n &--xsmall {\n font-size: 12px;\n }\n &--small {\n font-size: 18px;\n }\n &--medium {\n font-size: 24px;\n } /* default in Google’s docs */\n &--large {\n font-size: 36px;\n }\n &--xlarge {\n font-size: 48px;\n }\n &--xxlarge {\n font-size: 72px;\n }\n &--xxxlarge {\n font-size: 96px;\n }\n &--inherit {\n font-size: 1.5em;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { getDefaultIconLibrary, IconLibrary } from '../../utils/icon';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the material icon name.\n */\n\n@Component({\n tag: 'six-icon',\n styleUrls: ['six-icon.scss'],\n shadow: true,\n})\nexport class SixIcon {\n /** The icon's size. */\n @Prop({ reflect: true }) size:\n | 'inherit'\n | 'xSmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xLarge'\n | 'xxLarge'\n | 'xxxLarge' = 'inherit';\n\n /** If set to true the default material outlined icons are not used. */\n @Prop() filled = false;\n\n /**\n * Icon library to use when no `library` prop is provided.\n * By default, all `<six-icon>` instances fall back to the globally configured\n * default library (via `setDefaultIconLibrary()` / `getDefaultIconLibrary()`),\n * which is `\"material-icons\"` unless changed at runtime.\n *\n * This allows teams to switch the default across an entire project without\n * having to set the `library` prop on every `<six-icon>` instance.\n *\n * Icon library for this instance. Overrides the global default.\n * - \"material-icons\" → Material Icons\n * - \"material-symbols\" → Material Symbols\n */\n @Prop({ reflect: true }) library?: IconLibrary;\n\n private isSymbols(): boolean {\n const lib = this.library ?? getDefaultIconLibrary();\n return lib === 'material-symbols';\n }\n\n render() {\n const isSymbols = this.isSymbols();\n return (\n <i\n class={{\n 'material-icons': !isSymbols,\n 'material-icons-outlined': !isSymbols && !this.filled,\n 'material-icons-filled': !isSymbols && this.filled,\n\n 'material-symbols-outlined': isSymbols && !this.filled,\n 'material-symbols': isSymbols && this.filled,\n\n 'icon--xsmall': this.size === 'xSmall',\n 'icon--small': this.size === 'small',\n 'icon--medium': this.size === 'medium',\n 'icon--large': this.size === 'large',\n 'icon--xlarge': this.size === 'xLarge',\n 'icon--xxlarge': this.size === 'xxLarge',\n 'icon--xxxlarge': this.size === 'xxxLarge',\n 'icon--inherit': this.size === 'inherit',\n }}\n >\n <slot></slot>\n </i>\n );\n }\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,UAAU,GAAG,osCAAosC;;MCe1sC,OAAO,GAAA,MAAA;AALpB,IAAA,WAAA,CAAA,OAAA,EAAA;;;AAO2B,QAAA,IAAI,CAAA,IAAA,GAQZ,SAAS;;AAGlB,QAAA,IAAM,CAAA,MAAA,GAAG,KAAK;AAgDvB;IA/BS,SAAS,GAAA;;QACf,MAAM,GAAG,GAAG,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,qBAAqB,EAAE;QACnD,OAAO,GAAG,KAAK,kBAAkB;;IAGnC,MAAM,GAAA;AACJ,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE;QAClC,QACE,CACE,CAAA,GAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAE;gBACL,gBAAgB,EAAE,CAAC,SAAS;AAC5B,gBAAA,yBAAyB,EAAE,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM;AACrD,gBAAA,uBAAuB,EAAE,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM;AAElD,gBAAA,2BAA2B,EAAE,SAAS,IAAI,CAAC,IAAI,CAAC,MAAM;AACtD,gBAAA,kBAAkB,EAAE,SAAS,IAAI,IAAI,CAAC,MAAM;AAE5C,gBAAA,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;AACtC,gBAAA,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;AACpC,gBAAA,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;AACtC,gBAAA,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;AACpC,gBAAA,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;AACtC,gBAAA,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;AACxC,gBAAA,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,UAAU;AAC1C,gBAAA,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;AACzC,aAAA,EAAA,EAED,CAAa,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACX;;;;;;;"}
@@ -16,7 +16,7 @@ const SixLayoutGrid = class {
16
16
  this.handleColumnsChange();
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '1417d46422814262f561148684b74031efff6b3f' }, h("slot", { key: '319d6bdac4fdd3d25e3271e9db5201f3452a3733' })));
19
+ return (h(Host, { key: '93230c50bad422e3bfab05966bdf14e968f0eb73' }, h("slot", { key: 'acfb4f0ea76c788683349870d990a0e0ffc338bb' })));
20
20
  }
21
21
  get host() { return getElement(this); }
22
22
  static get watchers() { return {
@@ -10,7 +10,7 @@ const SixMainContainer = class {
10
10
  this.padded = true;
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: '6a58c3bf1117f6d8ec771b10b9bb5eeca8f75d38' }, h("div", { key: '709e6b3c0f6b915cdb02b6231b8475a32aaef821', part: "left-margin", class: "left-margin" }), h("div", { key: '8bca7342d56b444696b39e3b4e03b69fc7a8724a', part: "content", class: { content: true, 'content--padded': this.padded } }, h("slot", { key: '8cae2e164ec3d6370b2d481bc62f4c2af2b194c5' })), h("div", { key: '5c4a7ecbbaff6cd381ba7a3253ccbc20a72e90cc', part: "right-margin", class: "right-margin" })));
13
+ return (h(Host, { key: '907a3b8ce2b10b71a20f97f0168a43a0ab5cf44c' }, h("div", { key: 'e04d2cc3e6a60870bd943d5ca34ab886180b5b99', part: "left-margin", class: "left-margin" }), h("div", { key: '5d0c9a5a499c49ad95181053df22fcb66f6d3661', part: "content", class: { content: true, 'content--padded': this.padded } }, h("slot", { key: 'a4d5ae36a32f6f2fc2a8ed604899554fe7eb8acc' })), h("div", { key: '63725bee77f3a2e6d5c6bd631684fd8b8c37d4b1', part: "right-margin", class: "right-margin" })));
14
14
  }
15
15
  get host() { return getElement(this); }
16
16
  };
@@ -7,7 +7,7 @@ const SixMenuDivider = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return h("div", { key: '186bd0295f652e28206b3e01a092c0cc67128874', part: "base", class: "menu-divider", role: "separator", "aria-hidden": "true" });
10
+ return h("div", { key: 'e5cfe610c3578305a43cac1d94aabd9d4f3483f8', part: "base", class: "menu-divider", role: "separator", "aria-hidden": "true" });
11
11
  }
12
12
  };
13
13
  SixMenuDivider.style = sixMenuDividerCss;
@@ -7,7 +7,7 @@ const SixMenuLabel = class {
7
7
  registerInstance(this, hostRef);
8
8
  }
9
9
  render() {
10
- return (h("div", { key: 'ac09a02af0b1d088f83877d5065b9b747032be77', part: "base", class: "menu-label" }, h("slot", { key: 'a4f45f90b223d3951bdb5a36b8667d67bcbf1fc7' })));
10
+ return (h("div", { key: '8d796cb82a38cccc46f32ff8ce33d453e7bb7166', part: "base", class: "menu-label" }, h("slot", { key: '551f3905fa1d78d307912f1ba366b3718ae8facf' })));
11
11
  }
12
12
  };
13
13
  SixMenuLabel.style = sixMenuLabelCss;
@@ -13,7 +13,7 @@ const SixPicto = class {
13
13
  render() {
14
14
  var _a;
15
15
  const iconName = (_a = this.host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim();
16
- return (h(Host, { key: 'ed06500ac52374ead53dbb7012ee1b4b07d21b25' }, h("div", { key: '1f134c2254d4c3659e66b1a0c79556fb8131220d', part: "icon", class: {
16
+ return (h(Host, { key: 'bc4d73489e8e09be226f51682e282b1c4c5a2175' }, h("div", { key: 'ee1ff26b654c5ffd678f6928edd3bd44ab4acd15', part: "icon", class: {
17
17
  [`is-size-${this.size}`]: typeof this.size != null || this.size.trim() !== '',
18
18
  [`${iconName}`]: true,
19
19
  } })));
@@ -11,12 +11,12 @@ const SixProgressBar = class {
11
11
  this.indeterminate = false;
12
12
  }
13
13
  render() {
14
- return (h("div", { key: 'e11c3e9f83321a55170e04e84ab63c2e8b9f12a7', part: "base", class: {
14
+ return (h("div", { key: 'd89c7c456819839b638cadc372bf2ab071e73918', part: "base", class: {
15
15
  'progress-bar': true,
16
16
  'progress-bar--indeterminate': this.indeterminate,
17
- }, role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": this.indeterminate ? null : this.percentage }, h("div", { key: '9c8b4a3f5ada54163272cbd7e8cf9e7cb90dc39b', part: "indicator", class: "progress-bar__indicator", style: {
17
+ }, role: "progressbar", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuenow": this.indeterminate ? null : this.percentage }, h("div", { key: 'ce4d45162f0aeb2c5affd3a6aef552c2f4078a1b', part: "indicator", class: "progress-bar__indicator", style: {
18
18
  width: `${this.percentage}%`,
19
- } }, !this.indeterminate && (h("span", { key: '16be9dda6192ecf33efb192b23694cc006ceb4fd', part: "label", class: "progress-bar__label" }, h("slot", { key: '1e102597d1ec71a54fecb87f336aa711fddd8558' }))))));
19
+ } }, !this.indeterminate && (h("span", { key: '911269a53f42a7e94fc1be782f9e903e32650c75', part: "label", class: "progress-bar__label" }, h("slot", { key: '59daab81dd0812c99c32b304479b794d94c6e82e' }))))));
20
20
  }
21
21
  };
22
22
  SixProgressBar.style = sixProgressBarCss;
@@ -29,7 +29,7 @@ const SixProgressRing = class {
29
29
  this.indicator.style.strokeDashoffset = `${offset}`;
30
30
  }
31
31
  render() {
32
- return (h("div", { key: '6f48ef171c32eef14162bb15d53befc7bf30f923', part: "base", class: "progress-ring" }, h("svg", { key: 'b1479eec3a5dbabdb39716484c58396a09db1272', class: "progress-ring__image", width: this.size, height: this.size }, h("circle", { key: 'abb6fd5f35d514fe1580e02fd251774e107da5ce', class: "progress-ring__track", "stroke-width": this.strokeWidth, "stroke-linecap": "round", fill: "transparent", r: this.size / 2 - this.strokeWidth * 2, cx: this.size / 2, cy: this.size / 2 }), h("circle", { key: 'ca3fb1650516df81c8757594a0ce0d62d82febd3', ref: (el) => (this.indicator = el), class: "progress-ring__indicator", "stroke-width": this.strokeWidth, "stroke-linecap": "round", fill: "transparent", r: this.size / 2 - this.strokeWidth * 2, cx: this.size / 2, cy: this.size / 2 })), h("span", { key: 'c9b746f63f7c8bb0b325397d0344f6d82b8e3c0d', part: "label", class: "progress-ring__label" }, h("slot", { key: '905b3a001f4d95c31e80e5d74ecd29d0ec59992a' }))));
32
+ return (h("div", { key: '4b619cac39642c43455886ab94067bfd1a96183c', part: "base", class: "progress-ring" }, h("svg", { key: 'eb438641c5bcc7de1ab356881b8480bc65115f62', class: "progress-ring__image", width: this.size, height: this.size }, h("circle", { key: '63a5359a0f22e0c657a629f50ec9addefd409113', class: "progress-ring__track", "stroke-width": this.strokeWidth, "stroke-linecap": "round", fill: "transparent", r: this.size / 2 - this.strokeWidth * 2, cx: this.size / 2, cy: this.size / 2 }), h("circle", { key: 'ccf1f8120f745cbc060f0a5fb9fed00ef52fa4db', ref: (el) => (this.indicator = el), class: "progress-ring__indicator", "stroke-width": this.strokeWidth, "stroke-linecap": "round", fill: "transparent", r: this.size / 2 - this.strokeWidth * 2, cx: this.size / 2, cy: this.size / 2 })), h("span", { key: '775c0d0707e480496807e2cadb47be1a551cc128', part: "label", class: "progress-ring__label" }, h("slot", { key: '6849d9832eb3845066bb7008a19604668d548ce8' }))));
33
33
  }
34
34
  static get watchers() { return {
35
35
  "percentage": ["handlePercentageChange"]
@@ -102,12 +102,12 @@ const SixRadio = class {
102
102
  return this.getAllRadios().filter((radio) => radio !== this.host);
103
103
  }
104
104
  render() {
105
- return (h("label", { key: 'cdb722e8b78cf02f527d97b3dab6f0679b333c21', part: "base", class: {
105
+ return (h("label", { key: '879cb08317d04deeca8282c8b69e6eb20a9adf07', part: "base", class: {
106
106
  radio: true,
107
107
  'radio--checked': this.checked,
108
108
  'radio--disabled': this.disabled,
109
109
  'radio--focused': this.hasFocus,
110
- }, htmlFor: this.inputId, onKeyDown: this.handleKeyDown, onMouseDown: this.handleMouseDown }, h("span", { key: '9c627a113fe27c340b7f6162d9bde328220c8960', part: "control", class: "radio__control" }, h("span", { key: '2ce65408f6c88cb7396c480eba0cc2dd663a3c85', part: "checked-icon", class: "radio__icon" }, h("svg", { key: 'f4aac67ee8b4a5fb2af26305799b6648e496941e', viewBox: "0 0 16 16" }, h("g", { key: 'f1bc8651eae70a2ede2dcbf5f48f8237d9f883e6', stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { key: '7ffa14023971330ae34e041871c0db912789999a', fill: "currentColor" }, h("circle", { key: '10d6f37d1227677ba8044a8bffd89f8828e54e0d', cx: "8", cy: "8", r: "5" }))))), h("input", { key: '55ae32be4a36646c17d1238e486df0a483db2650', ref: (el) => (this.nativeInput = el), id: this.inputId, type: "radio", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, role: "radio", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus })), h("span", { key: '08128b78c44c561e9dc97f840bacf46059c2483b', part: "label", id: this.labelId, class: "radio__label" }, h("slot", { key: '9dd8bcf11566bd74d7b8e91a71cd276947562426' }))));
110
+ }, htmlFor: this.inputId, onKeyDown: this.handleKeyDown, onMouseDown: this.handleMouseDown }, h("span", { key: '6c2acde83c5a7d3ec9de36b6e73776f7c614b8f4', part: "control", class: "radio__control" }, h("span", { key: 'f741f110abf476e80c54d5ba7e55f9ce7babb68b', part: "checked-icon", class: "radio__icon" }, h("svg", { key: '9635c588916db7dc635a4581e50416d16114ee58', viewBox: "0 0 16 16" }, h("g", { key: '5d33f15ab6063156808d054bd6f736303e8afecc', stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" }, h("g", { key: '25aead7a47efab4b1b86aa50070ba656855bfdf0', fill: "currentColor" }, h("circle", { key: '33364d9740a62291991de71288535fe685593fa1', cx: "8", cy: "8", r: "5" }))))), h("input", { key: '2ba91f62d15618ea3292902137649fdc579e05fa', ref: (el) => (this.nativeInput = el), id: this.inputId, type: "radio", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, role: "radio", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus })), h("span", { key: 'e8d5db9e8b63c6f5c25ef1239291c175257edf90', part: "label", id: this.labelId, class: "radio__label" }, h("slot", { key: '1aed8a157b967b10acbfb960cd725b88fdf83cf3' }))));
111
111
  }
112
112
  get host() { return getElement(this); }
113
113
  static get watchers() { return {
@@ -193,7 +193,7 @@ const SixRange = class {
193
193
  }
194
194
  }
195
195
  render() {
196
- return (h(FormControl, { key: '0f53d7ccd1af680cc40ec8de87960b243c33a3be', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, size: "medium", errorTextId: this.errorTextId, errorText: this.errorText, hasErrorTextSlot: this.hasErrorTextSlot, errorTextCount: this.errorTextCount, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: 'd51cc4d2afde55aed2941878912eb3f741c89cf1', part: "base", class: {
196
+ return (h(FormControl, { key: '9b01de18ce3b59ec8fe5c60edbf94ca2d7911d9d', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, size: "medium", errorTextId: this.errorTextId, errorText: this.errorText, hasErrorTextSlot: this.hasErrorTextSlot, errorTextCount: this.errorTextCount, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: '66581ce24488802b0b81030aa916dfc6880e4498', part: "base", class: {
197
197
  range: true,
198
198
  // States
199
199
  'range--disabled': this.disabled,
@@ -201,7 +201,7 @@ const SixRange = class {
201
201
  'range--tooltip-visible': this.hasTooltip,
202
202
  'range--tooltip-top': this.tooltip === 'top',
203
203
  'range--tooltip-bottom': this.tooltip === 'bottom',
204
- }, onTouchStart: this.handleTouchStart }, h("input", { key: 'bfa94717d2ad6e8b5e7b513aa49697b1232e0502', part: "input", ref: (el) => (this.nativeInput = el), type: "range", class: "range__control", name: this.name, disabled: this.disabled, min: this.min, max: this.max, step: this.step, value: this.value, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.tooltip !== 'none' && (h("output", { key: '4db780c67679a9e6d36ead8ae23e5ba6ead2a5ec', part: "tooltip", ref: (el) => (this.output = el), class: "range__tooltip" }, this.tooltipFormatter(this.value))))));
204
+ }, onTouchStart: this.handleTouchStart }, h("input", { key: '9e6a87ae4004e65bc9861064654bcc1a5babcd07', part: "input", ref: (el) => (this.nativeInput = el), type: "range", class: "range__control", name: this.name, disabled: this.disabled, min: this.min, max: this.max, step: this.step, value: this.value, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur }), this.tooltip !== 'none' && (h("output", { key: '701b765cf0c2e3e3ed3a8ebcb3853a53f389ff3b', part: "tooltip", ref: (el) => (this.output = el), class: "range__tooltip" }, this.tooltipFormatter(this.value))))));
205
205
  }
206
206
  get host() { return getElement(this); }
207
207
  static get watchers() { return {
@@ -1 +1 @@
1
- {"version":3,"file":"six-range.entry.js","sources":["src/components/six-range/six-range.scss?tag=six-range&encapsulation=shadow","src/components/six-range/six-range.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n --thumb-size: 14px;\n --tooltip-offset-y: 10px;\n --track-color: var(--six-color-web-rock-900);\n --thumb-color: var(--six-color-web-rock-900);\n --track-height: 3px;\n\n display: block;\n}\n\n.range {\n position: relative;\n\n .range__control {\n -webkit-appearance: none;\n width: 100%;\n height: var(--six-input-height-medium);\n background: transparent;\n line-height: var(--six-input-height-medium);\n vertical-align: middle;\n\n &::-webkit-slider-runnable-track {\n width: 100%;\n height: var(--track-height);\n border-radius: 3px;\n border: none;\n }\n\n &::-webkit-slider-thumb {\n border: none;\n width: var(--thumb-size);\n height: var(--thumb-size);\n border-radius: 50%;\n background-color: var(--thumb-color);\n -webkit-appearance: none;\n margin-top: calc(var(--thumb-size) / -2 + var(--track-height) / 2);\n transition:\n var(--six-transition-fast) border-color,\n var(--six-transition-fast) background-color,\n var(--six-transition-fast) color,\n var(--six-transition-fast) box-shadow,\n var(--six-transition-fast) transform;\n cursor: pointer;\n }\n\n &:not(:disabled)::-webkit-slider-thumb:hover {\n background-color: var(--thumb-color);\n }\n\n &:not(:disabled):focus::-webkit-slider-thumb {\n background-color: var(--thumb-color);\n }\n\n &:not(:disabled)::-webkit-slider-thumb:active {\n background-color: var(--thumb-color);\n cursor: grabbing;\n }\n\n // Firefox\n &::-moz-focus-outer {\n border: 0;\n }\n\n &::-moz-range-track {\n width: 100%;\n height: var(--track-height);\n background-color: var(--six-progress-track-color);\n border-radius: 3px;\n border: none;\n }\n\n &::-moz-range-progress {\n height: var(--track-height);\n border-radius: 3px;\n background-color: var(--track-color);\n border: none;\n }\n\n &::-moz-range-thumb {\n border: none;\n height: var(--thumb-size);\n width: var(--thumb-size);\n border-radius: 50%;\n background-color: var(--thumb-color);\n transition:\n var(--six-transition-fast) border-color,\n var(--six-transition-fast) background-color,\n var(--six-transition-fast) color,\n var(--six-transition-fast) box-shadow,\n var(--six-transition-fast) transform;\n cursor: pointer;\n }\n\n &:not(:disabled)::-moz-range-thumb:hover {\n background-color: var(--thumb-color);\n }\n\n &:not(:disabled):focus::-moz-range-thumb {\n background-color: var(--thumb-color);\n }\n\n &:not(:disabled)::-moz-range-thumb:active {\n background-color: var(--thumb-color);\n cursor: grabbing;\n }\n\n // States\n &:focus {\n outline: none;\n }\n\n &:disabled {\n &::-webkit-slider-thumb {\n cursor: not-allowed;\n color: var(--six-color-web-rock-300);\n border-color: var(--six-color-web-rock-300);\n background-color: var(--six-color-web-rock-300);\n }\n\n &::-moz-range-thumb {\n cursor: not-allowed;\n color: var(--six-color-web-rock-300);\n border-color: var(--six-color-web-rock-300);\n background-color: var(--six-color-web-rock-300);\n }\n }\n }\n}\n\n// Tooltip\n.range__tooltip {\n position: absolute;\n z-index: var(--six-z-index-tooltip);\n left: 2px;\n border-radius: var(--six-border-radius-medium);\n background-color: var(--six-color-web-rock-900);\n font-family: var(--six-font-family);\n font-size: var(--six-tooltip-font-size);\n font-weight: var(--six-tooltip-font-weight);\n line-height: var(--six-tooltip-line-height);\n color: var(--six-color-white);\n opacity: 0;\n padding: var(--six-spacing-xxx-small) var(--six-spacing-xx-small);\n transition: var(--six-transition-fast) opacity;\n pointer-events: none;\n\n &::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n left: 50%;\n margin-left: calc(-1 * var(--six-tooltip-arrow-size));\n }\n}\n\n.range--tooltip-visible .range__tooltip {\n opacity: 1;\n}\n\n// Tooltip on top\n.range--tooltip-top .range__tooltip {\n top: calc(-1 * var(--thumb-size) - var(--tooltip-offset-y));\n\n &::after {\n border-top: var(--six-tooltip-arrow-size) solid var(--six-color-web-rock-900);\n border-left: var(--six-tooltip-arrow-size) solid transparent;\n border-right: var(--six-tooltip-arrow-size) solid transparent;\n top: 100%;\n }\n}\n\n// Tooltip on bottom\n.range--tooltip-bottom .range__tooltip {\n bottom: calc(-1 * var(--thumb-size) - var(--tooltip-offset-y));\n\n &::after {\n border-bottom: var(--six-tooltip-arrow-size) solid var(--six-color-web-rock-900);\n border-left: var(--six-tooltip-arrow-size) solid transparent;\n border-right: var(--six-tooltip-arrow-size) solid transparent;\n bottom: 100%;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot label - The input's label. Alternatively, you can use the label prop.\n * @slot help-text - Help text that describes how to use the input. Alternatively, you can use the help-text prop.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part input - The native range input.\n * @part tooltip - The range tooltip.\n */\n@Component({\n tag: 'six-range',\n styleUrl: 'six-range.scss',\n shadow: true,\n})\nexport class SixRange {\n private inputId = `input-${++id}`;\n private labelId = `input-label-${id}`;\n private helpTextId = `input-help-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private eventListeners = new EventListeners();\n private resizeObserver?: ResizeObserver;\n\n private output?: HTMLElement;\n private nativeInput?: HTMLInputElement;\n\n @Element() host!: HTMLSixRangeElement;\n\n @State() hasFocus = false;\n @State() hasHelpTextSlot = false;\n @State() hasErrorTextSlot = false;\n @State() hasLabelSlot = false;\n @State() hasTooltip = false;\n\n /** The input's name attribute. */\n @Prop() name = '';\n\n /** The input's value attribute. */\n @Prop({ mutable: true }) value = 0;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The range's help text. Alternatively, you can use the help-text slot. */\n @Prop() helpText = '';\n\n /** Set to true to disable the input. */\n @Prop() disabled = false;\n\n /** The label text. */\n @Prop() label = '';\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 /** The input's min attribute. */\n @Prop() min = 0;\n\n /** The input's max attribute. */\n @Prop() max = 100;\n\n /** The input's step attribute. */\n @Prop() step = 1;\n\n /** The preferred placedment of the tooltip. */\n @Prop() tooltip: 'top' | 'bottom' | 'none' = 'top';\n\n /** A function used to format the tooltip's value. */\n @Prop() tooltipFormatter = (value: number) => value.toString();\n\n /** Emitted when the control's value changes. */\n @Event({ eventName: 'six-range-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-range-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-range-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('label')\n @Watch('errorText')\n @Watch('helpText')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n @Watch('value')\n @Watch('min')\n @Watch('max')\n handleValueChange() {\n this.update();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n }\n\n componentWillLoad() {\n this.update();\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n const nativeInput = this.nativeInput;\n if (nativeInput == null) {\n return;\n }\n this.update();\n this.resizeObserver = new ResizeObserver(() => this.update());\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n componentDidUpdate() {\n const { min, max } = this.getMinMax();\n this.syncTooltip(min, max, this.value);\n }\n\n private getMinMax() {\n const min = Number(this.min) ?? 0;\n const max = Number(this.max) ?? 0;\n return { min, max };\n }\n\n /** Sets focus on the input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the input. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n private handleInput = () => {\n if (this.nativeInput != null) {\n this.update(parseFloat(this.nativeInput.value));\n }\n requestAnimationFrame(() => {\n this.sixChange.emit();\n });\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.hasTooltip = false;\n this.sixBlur.emit();\n if (this.nativeInput != null) {\n this.resizeObserver?.unobserve(this.nativeInput);\n }\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.hasTooltip = true;\n this.sixFocus.emit();\n if (this.nativeInput != null) {\n this.resizeObserver?.observe(this.nativeInput);\n }\n };\n\n private handleSlotChange = () => {\n this.hasHelpTextSlot = hasSlot(this.host, 'help-text');\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorTextSlot = hasSlot(this.host, 'error-text');\n };\n\n private handleTouchStart = () => {\n this.setFocus();\n };\n\n private syncTooltip(min: number, max: number, value: number) {\n if (this.tooltip !== 'none' && this.nativeInput != null && this.output != null) {\n const percent = Math.max(0, (value - min) / (max - min));\n const inputWidth = this.nativeInput.offsetWidth;\n const tooltipWidth = this.output.offsetWidth;\n const thumbSize = getComputedStyle(this.nativeInput).getPropertyValue('--thumb-size');\n const x = `calc(${inputWidth * percent}px - calc(calc(${percent} * ${thumbSize}) - calc(${thumbSize} / 2)))`;\n this.output.style.transform = `translateX(${x})`;\n this.output.style.marginLeft = `-${tooltipWidth / 2}px`;\n }\n }\n\n private isFirefox() {\n return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;\n }\n\n private update(updateValue?: number) {\n if (updateValue != null) {\n this.value = updateValue;\n }\n\n const min = Number(this.min) ?? 0;\n const max = Number(this.max) ?? 0;\n let value;\n const parsedValue = parseFloat(this.value as never);\n if (isNaN(parsedValue)) {\n value = this.getDefaultValue(min, max);\n } else {\n value = parsedValue;\n }\n\n if (this.nativeInput != null) {\n // The value may have constraints, so we set the native control's\n // value and sync it back to ensure it adheres to min, max, and step\n // properly.\n this.nativeInput.value = value.toString();\n this.value = parseFloat(this.nativeInput.value);\n } else {\n this.value = value;\n }\n this.calculateColorRunnableTrack(min, max, this.value);\n this.syncTooltip(min, max, this.value);\n }\n\n /**\n * from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#value\n */\n private getDefaultValue(min: number, max: number): number {\n return max < min ? min : min + (max - min) / 2;\n }\n\n /**\n * For Firefox this functionality is not needed because it is supported by standard CSS.\n */\n private calculateColorRunnableTrack(min: number, max: number, value: number) {\n if (!this.isFirefox() && this.nativeInput != null) {\n const percent = Math.ceil(((value - min) / (max - min)) * 100);\n this.nativeInput.style.background =\n '-webkit-linear-gradient(left, var(--track-color) 0%, var(--track-color) ' +\n percent +\n '%, var(--six-color-web-rock-300) ' +\n percent +\n '%)';\n }\n }\n\n render() {\n return (\n <FormControl\n inputId={this.inputId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n helpTextId={this.helpTextId}\n helpText={this.helpText}\n hasHelpTextSlot={this.hasHelpTextSlot}\n size=\"medium\"\n errorTextId={this.errorTextId}\n errorText={this.errorText}\n hasErrorTextSlot={this.hasErrorTextSlot}\n errorTextCount={this.errorTextCount}\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <div\n part=\"base\"\n class={{\n range: true,\n\n // States\n 'range--disabled': this.disabled,\n 'range--focused': this.hasFocus,\n 'range--tooltip-visible': this.hasTooltip,\n 'range--tooltip-top': this.tooltip === 'top',\n 'range--tooltip-bottom': this.tooltip === 'bottom',\n }}\n onTouchStart={this.handleTouchStart}\n >\n <input\n part=\"input\"\n ref={(el) => (this.nativeInput = el)}\n type=\"range\"\n class=\"range__control\"\n name={this.name}\n disabled={this.disabled}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.value}\n onInput={this.handleInput}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n />\n {this.tooltip !== 'none' && (\n <output part=\"tooltip\" ref={(el) => (this.output = el)} class=\"range__tooltip\">\n {this.tooltipFormatter(this.value)}\n </output>\n )}\n </div>\n </FormControl>\n );\n }\n}\n"],"names":[],"mappings":";;;;;AAAA,MAAM,WAAW,GAAG,0pNAA0pN;;ACM9qN,IAAI,EAAE,GAAG,CAAC;MAqBG,QAAQ,GAAA,MAAA;AALrB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AAMU,QAAA,IAAA,CAAA,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;AACzB,QAAA,IAAA,CAAA,OAAO,GAAG,CAAe,YAAA,EAAA,EAAE,EAAE;AAC7B,QAAA,IAAA,CAAA,UAAU,GAAG,CAAmB,gBAAA,EAAA,EAAE,EAAE;AACpC,QAAA,IAAA,CAAA,WAAW,GAAG,CAAoB,iBAAA,EAAA,EAAE,EAAE;AACtC,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,cAAc,EAAE;AAQpC,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAChB,QAAA,IAAe,CAAA,eAAA,GAAG,KAAK;AACvB,QAAA,IAAgB,CAAA,gBAAA,GAAG,KAAK;AACxB,QAAA,IAAY,CAAA,YAAA,GAAG,KAAK;AACpB,QAAA,IAAU,CAAA,UAAA,GAAG,KAAK;;AAGnB,QAAA,IAAI,CAAA,IAAA,GAAG,EAAE;;AAGQ,QAAA,IAAK,CAAA,KAAA,GAAG,CAAC;;AAG1B,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;;AAGhB,QAAA,IAAQ,CAAA,QAAA,GAAG,EAAE;;AAGb,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;;AAGhB,QAAA,IAAK,CAAA,KA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E,CAAC,EACpC,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,CAAA,EACD,IAAI,CAAC,OAAO,KAAK,MAAM,KACtB,+DAAQ,IAAI,EAAC,SAAS,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,KAAK,EAAC,gBAAgB,EAAA,EAC3E,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAC3B,CACV,CACG,CACM;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"six-range.entry.js","sources":["src/components/six-range/six-range.scss?tag=six-range&encapsulation=shadow","src/components/six-range/six-range.tsx"],"sourcesContent":["@import '../../../src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n --thumb-size: 14px;\n --tooltip-offset-y: 10px;\n --track-color: var(--six-color-web-rock-900);\n --thumb-color: var(--six-color-web-rock-900);\n --track-height: 3px;\n\n display: block;\n}\n\n.range {\n position: relative;\n\n .range__control {\n -webkit-appearance: none;\n width: 100%;\n height: var(--six-input-height-medium);\n background: transparent;\n line-height: var(--six-input-height-medium);\n vertical-align: middle;\n\n &::-webkit-slider-runnable-track {\n width: 100%;\n height: var(--track-height);\n border-radius: 3px;\n border: none;\n }\n\n &::-webkit-slider-thumb {\n border: none;\n width: var(--thumb-size);\n height: var(--thumb-size);\n border-radius: 50%;\n background-color: var(--thumb-color);\n -webkit-appearance: none;\n margin-top: calc(var(--thumb-size) / -2 + var(--track-height) / 2);\n transition:\n var(--six-transition-fast) border-color,\n var(--six-transition-fast) background-color,\n var(--six-transition-fast) color,\n var(--six-transition-fast) box-shadow,\n var(--six-transition-fast) transform;\n cursor: pointer;\n }\n\n &:not(:disabled)::-webkit-slider-thumb:hover {\n background-color: var(--thumb-color);\n }\n\n &:not(:disabled):focus::-webkit-slider-thumb {\n background-color: var(--thumb-color);\n }\n\n &:not(:disabled)::-webkit-slider-thumb:active {\n background-color: var(--thumb-color);\n cursor: grabbing;\n }\n\n // Firefox\n &::-moz-focus-outer {\n border: 0;\n }\n\n &::-moz-range-track {\n width: 100%;\n height: var(--track-height);\n background-color: var(--six-progress-track-color);\n border-radius: 3px;\n border: none;\n }\n\n &::-moz-range-progress {\n height: var(--track-height);\n border-radius: 3px;\n background-color: var(--track-color);\n border: none;\n }\n\n &::-moz-range-thumb {\n border: none;\n height: var(--thumb-size);\n width: var(--thumb-size);\n border-radius: 50%;\n background-color: var(--thumb-color);\n transition:\n var(--six-transition-fast) border-color,\n var(--six-transition-fast) background-color,\n var(--six-transition-fast) color,\n var(--six-transition-fast) box-shadow,\n var(--six-transition-fast) transform;\n cursor: pointer;\n }\n\n &:not(:disabled)::-moz-range-thumb:hover {\n background-color: var(--thumb-color);\n }\n\n &:not(:disabled):focus::-moz-range-thumb {\n background-color: var(--thumb-color);\n }\n\n &:not(:disabled)::-moz-range-thumb:active {\n background-color: var(--thumb-color);\n cursor: grabbing;\n }\n\n // States\n &:focus {\n outline: none;\n }\n\n &:disabled {\n &::-webkit-slider-thumb {\n cursor: not-allowed;\n color: var(--six-color-web-rock-300);\n border-color: var(--six-color-web-rock-300);\n background-color: var(--six-color-web-rock-300);\n }\n\n &::-moz-range-thumb {\n cursor: not-allowed;\n color: var(--six-color-web-rock-300);\n border-color: var(--six-color-web-rock-300);\n background-color: var(--six-color-web-rock-300);\n }\n }\n }\n}\n\n// Tooltip\n.range__tooltip {\n position: absolute;\n z-index: var(--six-z-index-tooltip);\n left: 2px;\n border-radius: var(--six-border-radius-medium);\n background-color: var(--six-color-web-rock-900);\n font-family: var(--six-font-family);\n font-size: var(--six-tooltip-font-size);\n font-weight: var(--six-tooltip-font-weight);\n line-height: var(--six-tooltip-line-height);\n color: var(--six-color-white);\n opacity: 0;\n padding: var(--six-spacing-xxx-small) var(--six-spacing-xx-small);\n transition: var(--six-transition-fast) opacity;\n pointer-events: none;\n\n &::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n left: 50%;\n margin-left: calc(-1 * var(--six-tooltip-arrow-size));\n }\n}\n\n.range--tooltip-visible .range__tooltip {\n opacity: 1;\n}\n\n// Tooltip on top\n.range--tooltip-top .range__tooltip {\n top: calc(-1 * var(--thumb-size) - var(--tooltip-offset-y));\n\n &::after {\n border-top: var(--six-tooltip-arrow-size) solid var(--six-color-web-rock-900);\n border-left: var(--six-tooltip-arrow-size) solid transparent;\n border-right: var(--six-tooltip-arrow-size) solid transparent;\n top: 100%;\n }\n}\n\n// Tooltip on bottom\n.range--tooltip-bottom .range__tooltip {\n bottom: calc(-1 * var(--thumb-size) - var(--tooltip-offset-y));\n\n &::after {\n border-bottom: var(--six-tooltip-arrow-size) solid var(--six-color-web-rock-900);\n border-left: var(--six-tooltip-arrow-size) solid transparent;\n border-right: var(--six-tooltip-arrow-size) solid transparent;\n bottom: 100%;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot label - The input's label. Alternatively, you can use the label prop.\n * @slot help-text - Help text that describes how to use the input. Alternatively, you can use the help-text prop.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part input - The native range input.\n * @part tooltip - The range tooltip.\n */\n@Component({\n tag: 'six-range',\n styleUrl: 'six-range.scss',\n shadow: true,\n})\nexport class SixRange {\n private inputId = `input-${++id}`;\n private labelId = `input-label-${id}`;\n private helpTextId = `input-help-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private eventListeners = new EventListeners();\n private resizeObserver?: ResizeObserver;\n\n private output?: HTMLElement;\n private nativeInput?: HTMLInputElement;\n\n @Element() host!: HTMLSixRangeElement;\n\n @State() hasFocus = false;\n @State() hasHelpTextSlot = false;\n @State() hasErrorTextSlot = false;\n @State() hasLabelSlot = false;\n @State() hasTooltip = false;\n\n /** The input's name attribute. */\n @Prop() name = '';\n\n /** The input's value attribute. */\n @Prop({ mutable: true }) value = 0;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The range's help text. Alternatively, you can use the help-text slot. */\n @Prop() helpText = '';\n\n /** Set to true to disable the input. */\n @Prop() disabled = false;\n\n /** The label text. */\n @Prop() label = '';\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 /** The input's min attribute. */\n @Prop() min = 0;\n\n /** The input's max attribute. */\n @Prop() max = 100;\n\n /** The input's step attribute. */\n @Prop() step = 1;\n\n /** The preferred placedment of the tooltip. */\n @Prop() tooltip: 'top' | 'bottom' | 'none' = 'top';\n\n /** A function used to format the tooltip's value. */\n @Prop() tooltipFormatter = (value: number) => value.toString();\n\n /** Emitted when the control's value changes. */\n @Event({ eventName: 'six-range-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-range-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-range-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('label')\n @Watch('errorText')\n @Watch('helpText')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n @Watch('value')\n @Watch('min')\n @Watch('max')\n handleValueChange() {\n this.update();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n }\n\n componentWillLoad() {\n this.update();\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n const nativeInput = this.nativeInput;\n if (nativeInput == null) {\n return;\n }\n this.update();\n this.resizeObserver = new ResizeObserver(() => this.update());\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n componentDidUpdate() {\n const { min, max } = this.getMinMax();\n this.syncTooltip(min, max, this.value);\n }\n\n private getMinMax() {\n const min = Number(this.min) ?? 0;\n const max = Number(this.max) ?? 0;\n return { min, max };\n }\n\n /** Sets focus on the input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the input. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n private handleInput = () => {\n if (this.nativeInput != null) {\n this.update(parseFloat(this.nativeInput.value));\n }\n requestAnimationFrame(() => {\n this.sixChange.emit();\n });\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.hasTooltip = false;\n this.sixBlur.emit();\n if (this.nativeInput != null) {\n this.resizeObserver?.unobserve(this.nativeInput);\n }\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.hasTooltip = true;\n this.sixFocus.emit();\n if (this.nativeInput != null) {\n this.resizeObserver?.observe(this.nativeInput);\n }\n };\n\n private handleSlotChange = () => {\n this.hasHelpTextSlot = hasSlot(this.host, 'help-text');\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorTextSlot = hasSlot(this.host, 'error-text');\n };\n\n private handleTouchStart = () => {\n this.setFocus();\n };\n\n private syncTooltip(min: number, max: number, value: number) {\n if (this.tooltip !== 'none' && this.nativeInput != null && this.output != null) {\n const percent = Math.max(0, (value - min) / (max - min));\n const inputWidth = this.nativeInput.offsetWidth;\n const tooltipWidth = this.output.offsetWidth;\n const thumbSize = getComputedStyle(this.nativeInput).getPropertyValue('--thumb-size');\n const x = `calc(${inputWidth * percent}px - calc(calc(${percent} * ${thumbSize}) - calc(${thumbSize} / 2)))`;\n this.output.style.transform = `translateX(${x})`;\n this.output.style.marginLeft = `-${tooltipWidth / 2}px`;\n }\n }\n\n private isFirefox() {\n return navigator.userAgent.toLowerCase().indexOf('firefox') > -1;\n }\n\n private update(updateValue?: number) {\n if (updateValue != null) {\n this.value = updateValue;\n }\n\n const min = Number(this.min) ?? 0;\n const max = Number(this.max) ?? 0;\n let value;\n const parsedValue = parseFloat(this.value as never);\n if (isNaN(parsedValue)) {\n value = this.getDefaultValue(min, max);\n } else {\n value = parsedValue;\n }\n\n if (this.nativeInput != null) {\n // The value may have constraints, so we set the native control's\n // value and sync it back to ensure it adheres to min, max, and step\n // properly.\n this.nativeInput.value = value.toString();\n this.value = parseFloat(this.nativeInput.value);\n } else {\n this.value = value;\n }\n this.calculateColorRunnableTrack(min, max, this.value);\n this.syncTooltip(min, max, this.value);\n }\n\n /**\n * from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#value\n */\n private getDefaultValue(min: number, max: number): number {\n return max < min ? min : min + (max - min) / 2;\n }\n\n /**\n * For Firefox this functionality is not needed because it is supported by standard CSS.\n */\n private calculateColorRunnableTrack(min: number, max: number, value: number) {\n if (!this.isFirefox() && this.nativeInput != null) {\n const percent = Math.ceil(((value - min) / (max - min)) * 100);\n this.nativeInput.style.background =\n '-webkit-linear-gradient(left, var(--track-color) 0%, var(--track-color) ' +\n percent +\n '%, var(--six-color-web-rock-300) ' +\n percent +\n '%)';\n }\n }\n\n render() {\n return (\n <FormControl\n inputId={this.inputId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n helpTextId={this.helpTextId}\n helpText={this.helpText}\n hasHelpTextSlot={this.hasHelpTextSlot}\n size=\"medium\"\n errorTextId={this.errorTextId}\n errorText={this.errorText}\n hasErrorTextSlot={this.hasErrorTextSlot}\n errorTextCount={this.errorTextCount}\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <div\n part=\"base\"\n class={{\n range: true,\n\n // States\n 'range--disabled': this.disabled,\n 'range--focused': this.hasFocus,\n 'range--tooltip-visible': this.hasTooltip,\n 'range--tooltip-top': this.tooltip === 'top',\n 'range--tooltip-bottom': this.tooltip === 'bottom',\n }}\n onTouchStart={this.handleTouchStart}\n >\n <input\n part=\"input\"\n ref={(el) => (this.nativeInput = el)}\n type=\"range\"\n class=\"range__control\"\n name={this.name}\n disabled={this.disabled}\n min={this.min}\n max={this.max}\n step={this.step}\n value={this.value}\n onInput={this.handleInput}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n />\n {this.tooltip !== 'none' && (\n <output part=\"tooltip\" ref={(el) => (this.output = el)} class=\"range__tooltip\">\n {this.tooltipFormatter(this.value)}\n </output>\n )}\n </div>\n </FormControl>\n );\n }\n}\n"],"names":[],"mappings":";;;;;AAAA,MAAM,WAAW,GAAG,0pNAA0pN;;ACM9qN,IAAI,EAAE,GAAG,CAAC;MAqBG,QAAQ,GAAA,MAAA;AALrB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;AAMU,QAAA,IAAA,CAAA,OAAO,GAAG,SAAS,EAAE,EAAE,EAAE;AACzB,QAAA,IAAA,CAAA,OAAO,GAAG,CAAe,YAAA,EAAA,EAAE,EAAE;AAC7B,QAAA,IAAA,CAAA,UAAU,GAAG,CAAmB,gBAAA,EAAA,EAAE,EAAE;AACpC,QAAA,IAAA,CAAA,WAAW,GAAG,CAAoB,iBAAA,EAAA,EAAE,EAAE;AACtC,QAAA,IAAA,CAAA,cAAc,GAAG,IAAI,cAAc,EAAE;AAQpC,QAAA,IAAQ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AAE,IAAI;;gBAGX,iBAAiB,EAAE,IAAI,CAAC,QAAQ;gBAChC,gBAAgB,EAAE,IAAI,CAAC,QAAQ;gBAC/B,wBAAwB,EAAE,IAAI,CAAC,UAAU;AACzC,gBAAA,oBAAoB,EAAE,IAAI,CAAC,OAAO,KAAK,KAAK;AAC5C,gBAAA,uBAAuB,EAAE,IAAI,CAAC,OAAO,KAAK,QAAQ;AACnD,aAAA,EACD,YAAY,EAAE,IAAI,CAAC,gBAAgB,EAAA,EAEnC,CAAA,CAAA,OAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,OAAO,EACZ,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,EACpC,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,CAAA,EACD,IAAI,CAAC,OAAO,KAAK,MAAM,KACtB,+DAAQ,IAAI,EAAC,SAAS,EAAC,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,KAAK,EAAC,gBAAgB,EAAA,EAC3E,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAC3B,CACV,CACG,CACM;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,124 @@
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-JoG9I7EO.js';
2
+ import { F as FormControl } from './form-control-DI6V1ZhR.js';
3
+ import { h as hasSlot } from './slot-j3oIB5oT.js';
4
+
5
+ const sixRatingCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.sr-only{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:\"*\";transform:scale(1.1);margin-left:var(--six-spacing-xxx-small);position:absolute}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{--six-rating-color:var(--six-color-web-rock-500);--six-rating-color-active:var(--six-color-warning-700);--six-rating-color-disabled-opacity:0.4;display:block}.six-rating{display:inline-flex;flex-direction:row;user-select:none;cursor:pointer}.six-rating--readonly{cursor:unset}.six-rating--disabled{cursor:not-allowed;opacity:var(--six-rating-color-disabled-opacity)}.six-rating__star{color:var(--six-rating-color)}.six-rating__star--filled{color:var(--six-rating-color-active)}";
6
+
7
+ const SixRating = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.sixBlur = createEvent(this, "six-rating-blur");
11
+ this.sixChange = createEvent(this, "six-rating-change");
12
+ this.sixFocus = createEvent(this, "six-rating-focus");
13
+ /** The rating's name attribute. */
14
+ this.name = '';
15
+ /** The rating's value attribute. */
16
+ this.value = 0;
17
+ /** Set to true to disable the rating. */
18
+ this.disabled = false;
19
+ /** Set to true to show an asterisk beneath the label. */
20
+ this.required = false;
21
+ /** The label text. */
22
+ this.label = '';
23
+ /** The error message shown, if `invalid` is set to true. */
24
+ this.errorText = '';
25
+ /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */
26
+ this.invalid = false;
27
+ /** Maximum number of stars. Default is 5 */
28
+ this.max = 5;
29
+ /** Size of the stars */
30
+ this.size = 'medium';
31
+ /** If its readonly */
32
+ this.readonly = false;
33
+ /** The rating's help text. Alternatively, you can use the help-text slot. */
34
+ this.helpText = '';
35
+ // --
36
+ this.hasFocus = false;
37
+ this.hasLabelSlot = false;
38
+ this.hasErrorSlot = false;
39
+ this.hoveredValue = this.value;
40
+ this.ratingId = `rating-${++SixRating.id}`;
41
+ this.labelId = `rating-label-${SixRating.id}`;
42
+ this.errorTextId = `input-error-text-${SixRating.id}`;
43
+ this.handleSlotChange = () => {
44
+ this.hasLabelSlot = hasSlot(this.el, 'label');
45
+ this.hasErrorSlot = hasSlot(this.el, 'error-text');
46
+ };
47
+ this.handleBlur = () => {
48
+ this.hasFocus = false;
49
+ this.sixBlur.emit(this.value);
50
+ };
51
+ this.handleFocus = () => {
52
+ this.hasFocus = true;
53
+ this.sixFocus.emit();
54
+ };
55
+ this.handleKeyDown = (event) => {
56
+ if (event.key === 'ArrowLeft') {
57
+ event.preventDefault();
58
+ if (this.hoveredValue > 0) {
59
+ this.hoveredValue = this.hoveredValue - 1;
60
+ this.value = this.hoveredValue;
61
+ }
62
+ }
63
+ if (event.key === 'ArrowRight') {
64
+ event.preventDefault();
65
+ if (this.hoveredValue < this.max) {
66
+ this.hoveredValue = this.hoveredValue + 1;
67
+ }
68
+ }
69
+ };
70
+ }
71
+ handleValueChange() {
72
+ this.sixChange.emit(this.value);
73
+ }
74
+ connectedCallback() {
75
+ var _a;
76
+ (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.addEventListener('slotchange', this.handleSlotChange);
77
+ }
78
+ disconnectedCallback() {
79
+ var _a;
80
+ (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('slotchange', this.handleSlotChange);
81
+ }
82
+ renderStars() {
83
+ return Array.from({ length: this.max }, (_, i) => {
84
+ const handleEvent = (event) => {
85
+ if (this.readonly || this.disabled) {
86
+ return;
87
+ }
88
+ switch (event.type) {
89
+ case 'mouseover':
90
+ this.hoveredValue = i + 1;
91
+ break;
92
+ case 'mouseout':
93
+ this.hoveredValue = this.value;
94
+ break;
95
+ case 'click':
96
+ this.value = this.hoveredValue;
97
+ break;
98
+ }
99
+ };
100
+ return (h("six-icon", { class: {
101
+ 'six-rating__star': true,
102
+ 'six-rating__star--filled': i < this.hoveredValue,
103
+ }, filled: true, size: this.size, onMouseOver: handleEvent, onMouseOut: handleEvent, onClick: handleEvent }, "star_rate"));
104
+ });
105
+ }
106
+ render() {
107
+ 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: {
108
+ 'six-rating': true,
109
+ 'six-rating--readonly': this.readonly,
110
+ 'six-rating--disabled': this.disabled,
111
+ }, 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 }))));
112
+ }
113
+ get el() { return getElement(this); }
114
+ static get watchers() { return {
115
+ "value": ["handleValueChange"]
116
+ }; }
117
+ };
118
+ SixRating.id = 0;
119
+ SixRating.style = sixRatingCss;
120
+
121
+ export { SixRating as six_rating };
122
+ //# sourceMappingURL=six-rating.entry.js.map
123
+
124
+ //# sourceMappingURL=six-rating.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"six-rating.entry.js","sources":["src/components/six-rating/six-rating.scss?tag=six-rating&encapsulation=shadow","src/components/six-rating/six-rating.tsx"],"sourcesContent":["@import '../../../src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n --six-rating-color: var(--six-color-web-rock-500);\n --six-rating-color-active: var(--six-color-warning-700);\n --six-rating-color-disabled-opacity: 0.4;\n\n display: block;\n}\n\n.six-rating {\n display: inline-flex;\n flex-direction: row;\n user-select: none;\n cursor: pointer;\n\n &--readonly {\n cursor: unset;\n }\n\n &--disabled {\n cursor: not-allowed;\n opacity: var(--six-rating-color-disabled-opacity);\n }\n\n &__star {\n color: var(--six-rating-color);\n\n &--filled {\n color: var(--six-rating-color-active);\n }\n }\n}\n","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"],"names":[],"mappings":";;;;AAAA,MAAM,YAAY,GAAG,mkGAAmkG;;MCU3kG,SAAS,GAAA,MAAA;AALtB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;;;AASU,QAAA,IAAI,CAAA,IAAA,GAAG,EAAE;;AAGQ,QAAA,IAAK,CAAA,KAAA,GAAW,CAAC;;AAGlC,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;;AAGhB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;;AAGhB,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;;AAGlB,QAAA,IAAS,CAAA,SAAA,GAAsB,EAAE;;AAMhB,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK;;AAGhC,QAAA,IAAG,CAAA,GAAA,GAAW,CAAC;;AAGE,QAAA,IAAI,CAAA,IAAA,GAAgF,QAAQ;;AAG7G,QAAA,IAAQ,CAAA,QAAA,GAAY,KAAK;;AAGzB,QAAA,IAAQ,CAAA,QAAA,GAAG,EAAE;;AAaZ,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;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AAQ,GAAG,MAAM,GAAG,OAAO,EAChC,eAAA,EAAA,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,EAChC,eAAA,EAAA,IAAI,CAAC,KAAK,EAAA,eAAA,EACV,CAAC,EAAA,eAAA,EACD,IAAI,CAAC,GAAG,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,GAAG,EACpC,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,SAAS,EAAE,IAAI,CAAC,aAAa,EAAA,EAE5B,IAAI,CAAC,WAAW,EAAE,EAEnB,CACE,CAAA,OAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,OAAO,EACZ,EAAE,EAAE,IAAI,CAAC,QAAQ,EACjB,IAAI,EAAC,QAAQ,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,CAAC,EACN,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,QAAQ,EACI,iBAAA,EAAA,IAAI,CAAC,OAAO,EAC7B,CAAA,CACE,CACM;;;;;;;AA5IH,SAAE,CAAA,EAAA,GAAW,CAAX;;;;;"}
@@ -14,7 +14,7 @@ const SixRoot = class {
14
14
  this.version = '';
15
15
  }
16
16
  render() {
17
- 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" }))));
17
+ 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" }))));
18
18
  }
19
19
  get host() { return getElement(this); }
20
20
  };
@@ -16,11 +16,11 @@ const SixSidebarItem = class {
16
16
  }
17
17
  render() {
18
18
  const Tag = this.href != null ? 'a' : 'div';
19
- return (h(Tag, { key: 'd36654ad6af78000c79191da18b9af02d582dde1', class: {
19
+ return (h(Tag, { key: '09bcf26c2b9c30bb05820fdba6300ac0d3863df7', class: {
20
20
  'sidebar-item': true,
21
21
  'sidebar-item--selected': this.selected,
22
22
  'sidebar-item--disabled': this.disabled,
23
- }, 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' })));
23
+ }, 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' })));
24
24
  }
25
25
  };
26
26
  SixSidebarItem.style = sixSidebarItemCss;
@@ -179,7 +179,7 @@ const SixSidebar = class {
179
179
  this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();
180
180
  }
181
181
  render() {
182
- return (h("host", { key: '38d2d55b73e862c71ef3912fac01f6abd43a3b7c', class: "six-sidebar" }, h("div", { key: 'b8a7a32d48016310f943b42d03f1c4a44ff5bca4', class: {
182
+ return (h("host", { key: '1aae217047bea8e29e86256812a8a67a6eff4ce9', class: "six-sidebar" }, h("div", { key: 'd9d70f022ffaeae09003dfc130b40707ad9e3512', class: {
183
183
  sidebar__container: true,
184
184
  'sidebar--visible': this.isVisible,
185
185
  'sidebar--open': this.open,
@@ -188,7 +188,7 @@ const SixSidebar = class {
188
188
  }, style: {
189
189
  width: this.width,
190
190
  [`margin-${this.position}`]: this.open ? '0' : `calc(1rem - ${this.width})`,
191
- }, ref: (el) => (this.sidebar = el), "aria-hidden": this.open ? 'false' : 'true', onTransitionEnd: this.handleTransitionEnd }, h("slot", { key: 'a13e1cd44a68fa3ad15a94ccc56ec7c09f689e4c' }))));
191
+ }, ref: (el) => (this.sidebar = el), "aria-hidden": this.open ? 'false' : 'true', onTransitionEnd: this.handleTransitionEnd }, h("slot", { key: 'd88754017cf07b12181cce2e10788291ad487257' }))));
192
192
  }
193
193
  static get watchers() { return {
194
194
  "open": ["handleOpenChange"]
@@ -105,12 +105,12 @@ const SixSwitch = class {
105
105
  (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.blur();
106
106
  }
107
107
  render() {
108
- 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: {
108
+ 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: {
109
109
  switch: true,
110
110
  'switch--checked': this.checked,
111
111
  'switch--disabled': this.disabled,
112
112
  'switch--focused': this.hasFocus,
113
- }, 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' })))));
113
+ }, 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' })))));
114
114
  }
115
115
  get host() { return getElement(this); }
116
116
  static get watchers() { return {