@six-group/ui-library 0.0.0-insider.afba913 → 0.0.0-insider.b0fd8e9

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 (632) hide show
  1. package/dist/cjs/animation-ZgWV0fC6.js +54 -0
  2. package/dist/cjs/animation-ZgWV0fC6.js.map +1 -0
  3. package/dist/cjs/{form-control-Ditp8yHw.js → form-control-CX8QRq9v.js} +3 -3
  4. package/dist/cjs/{form-control-Ditp8yHw.js.map → form-control-CX8QRq9v.js.map} +1 -1
  5. package/dist/cjs/icon-4irykc7V.js +17 -0
  6. package/dist/cjs/icon-4irykc7V.js.map +1 -0
  7. package/dist/cjs/{index-BKTrCUjx.js → index-C8rK7OAe.js} +19 -11
  8. package/dist/{esm/index-D0Go1Zjj.js.map → cjs/index-C8rK7OAe.js.map} +1 -1
  9. package/dist/cjs/index.cjs.js +3 -0
  10. package/dist/cjs/index.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/six-alert.cjs.entry.js +1 -1
  13. package/dist/cjs/six-avatar.cjs.entry.js +3 -3
  14. package/dist/cjs/six-badge.cjs.entry.js +3 -3
  15. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js +25 -0
  16. package/dist/cjs/six-breadcrumbs-item.cjs.entry.js.map +1 -0
  17. package/dist/cjs/six-breadcrumbs-item.entry.cjs.js.map +1 -0
  18. package/dist/cjs/six-breadcrumbs.cjs.entry.js +73 -0
  19. package/dist/cjs/six-breadcrumbs.cjs.entry.js.map +1 -0
  20. package/dist/cjs/six-breadcrumbs.entry.cjs.js.map +1 -0
  21. package/dist/cjs/six-button.six-spinner.entry.cjs.js.map +1 -0
  22. package/dist/cjs/{six-button.cjs.entry.js → six-button_2.cjs.entry.js} +56 -5
  23. package/dist/cjs/six-button_2.cjs.entry.js.map +1 -0
  24. package/dist/cjs/six-card.cjs.entry.js +2 -2
  25. package/dist/cjs/six-checkbox_2.cjs.entry.js +6 -6
  26. package/dist/cjs/six-date.cjs.entry.js +59 -52
  27. package/dist/cjs/six-date.cjs.entry.js.map +1 -1
  28. package/dist/cjs/six-date.entry.cjs.js.map +1 -1
  29. package/dist/cjs/six-datepicker.cjs.entry.js +4 -4
  30. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-datepicker.entry.cjs.js.map +1 -1
  32. package/dist/cjs/six-details.cjs.entry.js +4 -4
  33. package/dist/cjs/six-dialog.cjs.entry.js +16 -10
  34. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-dialog.entry.cjs.js.map +1 -1
  36. package/dist/cjs/six-drawer.cjs.entry.js +16 -10
  37. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  38. package/dist/cjs/six-drawer.entry.cjs.js.map +1 -1
  39. package/dist/cjs/six-dropdown.six-menu.entry.cjs.js.map +1 -1
  40. package/dist/cjs/six-dropdown_2.cjs.entry.js +9 -9
  41. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  42. package/dist/cjs/six-error-page.cjs.entry.js +2 -2
  43. package/dist/cjs/six-error.cjs.entry.js +2 -2
  44. package/dist/cjs/six-file-list-item.cjs.entry.js +3 -3
  45. package/dist/cjs/six-file-list.cjs.entry.js +2 -2
  46. package/dist/cjs/six-file-upload.cjs.entry.js +13 -8
  47. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  48. package/dist/cjs/six-file-upload.entry.cjs.js.map +1 -1
  49. package/dist/cjs/six-footer.cjs.entry.js +2 -2
  50. package/dist/cjs/six-group-label.cjs.entry.js +3 -3
  51. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +3 -3
  52. package/dist/cjs/six-header-item.cjs.entry.js +2 -2
  53. package/dist/cjs/six-header-menu-button.cjs.entry.js +2 -2
  54. package/dist/cjs/six-header.cjs.entry.js +3 -3
  55. package/dist/cjs/six-icon-button.cjs.entry.js +4 -4
  56. package/dist/cjs/six-icon.cjs.entry.js +16 -7
  57. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  58. package/dist/cjs/six-icon.entry.cjs.js.map +1 -1
  59. package/dist/cjs/six-input.cjs.entry.js +5 -5
  60. package/dist/cjs/six-item-picker.cjs.entry.js +1 -1
  61. package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
  62. package/dist/cjs/six-layout-grid.cjs.entry.js +2 -2
  63. package/dist/cjs/six-logo.cjs.entry.js +1 -1
  64. package/dist/cjs/six-main-container.cjs.entry.js +2 -2
  65. package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
  66. package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
  67. package/dist/cjs/six-picto.cjs.entry.js +2 -2
  68. package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
  69. package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
  70. package/dist/cjs/six-radio.cjs.entry.js +3 -3
  71. package/dist/cjs/six-range.cjs.entry.js +4 -4
  72. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-range.entry.cjs.js.map +1 -1
  74. package/dist/cjs/six-rating.cjs.entry.js +126 -0
  75. package/dist/cjs/six-rating.cjs.entry.js.map +1 -0
  76. package/dist/cjs/six-rating.entry.cjs.js.map +1 -0
  77. package/dist/cjs/six-root.cjs.entry.js +2 -2
  78. package/dist/cjs/six-search-field.cjs.entry.js +2 -2
  79. package/dist/cjs/six-select.cjs.entry.js +8 -8
  80. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +1 -1
  81. package/dist/cjs/six-sidebar-item.cjs.entry.js +3 -3
  82. package/dist/cjs/six-sidebar.cjs.entry.js +3 -3
  83. package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
  84. package/dist/cjs/six-switch.cjs.entry.js +4 -4
  85. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  86. package/dist/cjs/six-switch.entry.cjs.js.map +1 -1
  87. package/dist/cjs/six-tab-group.cjs.entry.js +5 -38
  88. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-tab-group.entry.cjs.js.map +1 -1
  90. package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
  91. package/dist/cjs/six-tab.cjs.entry.js +4 -4
  92. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-tab.entry.cjs.js.map +1 -1
  94. package/dist/cjs/six-tag.cjs.entry.js +3 -3
  95. package/dist/cjs/six-textarea.cjs.entry.js +4 -4
  96. package/dist/cjs/six-tile.cjs.entry.js +6 -6
  97. package/dist/cjs/six-timepicker.cjs.entry.js +19 -11
  98. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-timepicker.entry.cjs.js.map +1 -1
  100. package/dist/cjs/six-tooltip.cjs.entry.js +3 -3
  101. package/dist/cjs/ui-library.cjs.js +3 -3
  102. package/dist/cjs/ui-library.cjs.js.map +1 -1
  103. package/dist/collection/collection-manifest.json +6 -3
  104. package/dist/collection/components/six-avatar/six-avatar.js +2 -2
  105. package/dist/collection/components/six-badge/six-badge.js +2 -2
  106. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.css +27 -0
  107. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js +109 -0
  108. package/dist/collection/components/six-breadcrumbs/six-breadcrumbs.js.map +1 -0
  109. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.css +61 -0
  110. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js +123 -0
  111. package/dist/collection/components/six-breadcrumbs-item/six-breadcrumbs-item.js.map +1 -0
  112. package/dist/collection/components/six-button/six-button.js +2 -2
  113. package/dist/collection/components/six-card/six-card.js +1 -1
  114. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  115. package/dist/collection/components/six-date/iso-date.js +34 -2
  116. package/dist/collection/components/six-date/iso-date.js.map +1 -1
  117. package/dist/collection/components/six-date/six-date.js +28 -73
  118. package/dist/collection/components/six-date/six-date.js.map +1 -1
  119. package/dist/collection/components/six-datepicker/six-datepicker.js +4 -4
  120. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  121. package/dist/collection/components/six-details/six-details.js +3 -3
  122. package/dist/collection/components/six-dialog/six-dialog.js +23 -17
  123. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  124. package/dist/collection/components/six-drawer/six-drawer.js +23 -17
  125. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  126. package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
  127. package/dist/collection/components/six-error/six-error.js +1 -1
  128. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  129. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  130. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  131. package/dist/collection/components/six-file-upload/six-file-upload.js +12 -7
  132. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  133. package/dist/collection/components/six-footer/six-footer.js +1 -1
  134. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  135. package/dist/collection/components/six-header/six-header.js +2 -2
  136. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +2 -2
  137. package/dist/collection/components/six-header-item/six-header-item.js +1 -1
  138. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +1 -1
  139. package/dist/collection/components/six-icon/six-icon.css +46 -29
  140. package/dist/collection/components/six-icon/six-icon.js +39 -5
  141. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  142. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  143. package/dist/collection/components/six-input/six-input.js +3 -3
  144. package/dist/collection/components/six-language-switcher/six-language-switcher.js +1 -1
  145. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  146. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  147. package/dist/collection/components/six-menu/six-menu.js +3 -3
  148. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  149. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  150. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  151. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  152. package/dist/collection/components/six-picto/six-picto.js +1 -1
  153. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  154. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  155. package/dist/collection/components/six-radio/six-radio.js +2 -2
  156. package/dist/collection/components/six-range/six-range.js +2 -2
  157. package/dist/collection/components/six-rating/six-rating.css +125 -0
  158. package/dist/collection/components/six-rating/six-rating.js +432 -0
  159. package/dist/collection/components/six-rating/six-rating.js.map +1 -0
  160. package/dist/collection/components/six-root/six-root.js +1 -1
  161. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  162. package/dist/collection/components/six-select/six-select.js +6 -6
  163. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  164. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  165. package/dist/collection/components/six-switch/six-switch.js +2 -2
  166. package/dist/collection/components/six-tab/six-tab.css +12 -0
  167. package/dist/collection/components/six-tab/six-tab.js +2 -2
  168. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  169. package/dist/collection/components/six-tab-group/six-tab-group.js +2 -2
  170. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  171. package/dist/collection/components/six-tag/six-tag.js +2 -2
  172. package/dist/collection/components/six-textarea/six-textarea.js +2 -2
  173. package/dist/collection/components/six-tile/six-tile.js +5 -5
  174. package/dist/collection/components/six-timepicker/six-timepicker.js +18 -10
  175. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  176. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  177. package/dist/collection/files/material-symbols-outlined-latin-fill-normal.woff2 +0 -0
  178. package/dist/collection/files/material-symbols-outlined-latin-full-normal.woff2 +0 -0
  179. package/dist/collection/files/material-symbols-outlined-latin-grad-normal.woff2 +0 -0
  180. package/dist/collection/files/material-symbols-outlined-latin-opsz-normal.woff2 +0 -0
  181. package/dist/collection/files/material-symbols-outlined-latin-standard-normal.woff2 +0 -0
  182. package/dist/collection/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  183. package/dist/collection/files/material-symbols-rounded-latin-fill-normal.woff2 +0 -0
  184. package/dist/collection/files/material-symbols-rounded-latin-full-normal.woff2 +0 -0
  185. package/dist/collection/files/material-symbols-rounded-latin-grad-normal.woff2 +0 -0
  186. package/dist/collection/files/material-symbols-rounded-latin-opsz-normal.woff2 +0 -0
  187. package/dist/collection/files/material-symbols-rounded-latin-standard-normal.woff2 +0 -0
  188. package/dist/collection/files/material-symbols-rounded-latin-wght-normal.woff2 +0 -0
  189. package/dist/collection/files/material-symbols-sharp-latin-fill-normal.woff2 +0 -0
  190. package/dist/collection/files/material-symbols-sharp-latin-full-normal.woff2 +0 -0
  191. package/dist/collection/files/material-symbols-sharp-latin-grad-normal.woff2 +0 -0
  192. package/dist/collection/files/material-symbols-sharp-latin-opsz-normal.woff2 +0 -0
  193. package/dist/collection/files/material-symbols-sharp-latin-standard-normal.woff2 +0 -0
  194. package/dist/collection/files/material-symbols-sharp-latin-wght-normal.woff2 +0 -0
  195. package/dist/collection/index.js +1 -0
  196. package/dist/collection/index.js.map +1 -1
  197. package/dist/collection/utils/animation.js +13 -0
  198. package/dist/collection/utils/animation.js.map +1 -1
  199. package/dist/collection/utils/icon.js +10 -0
  200. package/dist/collection/utils/icon.js.map +1 -0
  201. package/dist/components/index.js +8 -1
  202. package/dist/components/index.js.map +1 -1
  203. package/dist/components/{p-DV46ui1Q.js → p-BB2rei7y.js} +3 -3
  204. package/dist/components/{p-DV46ui1Q.js.map → p-BB2rei7y.js.map} +1 -1
  205. package/dist/components/{p-Cemjz04k.js → p-BDCdPEjW.js} +6 -6
  206. package/dist/components/p-BDCdPEjW.js.map +1 -0
  207. package/dist/components/{p-eZGoeOrd.js → p-BFxDUwBI.js} +5 -5
  208. package/dist/components/{p-eZGoeOrd.js.map → p-BFxDUwBI.js.map} +1 -1
  209. package/dist/components/{p-D45ehsSM.js → p-BKl-wAjt.js} +7 -7
  210. package/dist/components/{p-D45ehsSM.js.map → p-BKl-wAjt.js.map} +1 -1
  211. package/dist/components/{p-Cr6sHYme.js → p-BLocui1Z.js} +4 -4
  212. package/dist/components/{p-Cr6sHYme.js.map → p-BLocui1Z.js.map} +1 -1
  213. package/dist/components/{p-Dl9jKaw7.js → p-C-TgkYhI.js} +9 -9
  214. package/dist/components/{p-Dl9jKaw7.js.map → p-C-TgkYhI.js.map} +1 -1
  215. package/dist/components/{p-CT9Wgs8K.js → p-C6ozoFuw.js} +15 -15
  216. package/dist/components/{p-CT9Wgs8K.js.map → p-C6ozoFuw.js.map} +1 -1
  217. package/dist/components/p-C84iXIFp.js +71 -0
  218. package/dist/components/p-C84iXIFp.js.map +1 -0
  219. package/dist/components/{p-DXhOme6Y.js → p-CH82uB3t.js} +4 -4
  220. package/dist/components/{p-DXhOme6Y.js.map → p-CH82uB3t.js.map} +1 -1
  221. package/dist/components/{p-ltzGzaAu.js → p-CKhg9ibv.js} +3 -3
  222. package/dist/components/{p-ltzGzaAu.js.map → p-CKhg9ibv.js.map} +1 -1
  223. package/dist/components/{p-eW-dQ-wI.js → p-CSfxA66i.js} +7 -7
  224. package/dist/components/{p-eW-dQ-wI.js.map → p-CSfxA66i.js.map} +1 -1
  225. package/dist/components/{p-DdgOKe4B.js → p-CXsF3egB.js} +11 -11
  226. package/dist/components/{p-DdgOKe4B.js.map → p-CXsF3egB.js.map} +1 -1
  227. package/dist/components/{p-B-jadcQD.js → p-C_slMKPO.js} +26 -18
  228. package/dist/components/p-C_slMKPO.js.map +1 -0
  229. package/dist/components/{p-BtF2Ym6T.js → p-D512q9rn.js} +17 -4
  230. package/dist/components/p-D512q9rn.js.map +1 -0
  231. package/dist/components/{p-BmW8cpEG.js → p-DIkvCBxr.js} +3 -3
  232. package/dist/components/{p-BmW8cpEG.js.map → p-DIkvCBxr.js.map} +1 -1
  233. package/dist/components/{p-CLtU4Br-.js → p-DQrAnsWb.js} +4 -4
  234. package/dist/components/{p-CLtU4Br-.js.map → p-DQrAnsWb.js.map} +1 -1
  235. package/dist/components/{p-DT1sZALq.js → p-DrZr0hMT.js} +7 -7
  236. package/dist/components/{p-DT1sZALq.js.map → p-DrZr0hMT.js.map} +1 -1
  237. package/dist/components/p-SLlDVtvF.js +51 -0
  238. package/dist/components/p-SLlDVtvF.js.map +1 -0
  239. package/dist/components/{p-6HRX2kde.js → p-SZP6K3B0.js} +8 -8
  240. package/dist/components/{p-6HRX2kde.js.map → p-SZP6K3B0.js.map} +1 -1
  241. package/dist/components/{p-CYrYPnLQ.js → p-jflTvJ8E.js} +5 -5
  242. package/dist/components/{p-CYrYPnLQ.js.map → p-jflTvJ8E.js.map} +1 -1
  243. package/dist/components/six-alert.js +3 -3
  244. package/dist/components/six-avatar.js +4 -4
  245. package/dist/components/six-badge.js +3 -3
  246. package/dist/components/six-breadcrumbs-item.d.ts +11 -0
  247. package/dist/components/six-breadcrumbs-item.js +58 -0
  248. package/dist/components/six-breadcrumbs-item.js.map +1 -0
  249. package/dist/components/six-breadcrumbs.d.ts +11 -0
  250. package/dist/components/six-breadcrumbs.js +97 -0
  251. package/dist/components/six-breadcrumbs.js.map +1 -0
  252. package/dist/components/six-button.js +1 -1
  253. package/dist/components/six-card.js +2 -2
  254. package/dist/components/six-checkbox.js +1 -1
  255. package/dist/components/six-date.js +63 -57
  256. package/dist/components/six-date.js.map +1 -1
  257. package/dist/components/six-datepicker.js +10 -10
  258. package/dist/components/six-datepicker.js.map +1 -1
  259. package/dist/components/six-details.js +1 -1
  260. package/dist/components/six-dialog.js +18 -12
  261. package/dist/components/six-dialog.js.map +1 -1
  262. package/dist/components/six-drawer.js +18 -12
  263. package/dist/components/six-drawer.js.map +1 -1
  264. package/dist/components/six-dropdown.js +1 -1
  265. package/dist/components/six-error-page.js +3 -3
  266. package/dist/components/six-error.js +1 -1
  267. package/dist/components/six-file-list-item.js +4 -4
  268. package/dist/components/six-file-list.js +2 -2
  269. package/dist/components/six-file-upload.js +16 -11
  270. package/dist/components/six-file-upload.js.map +1 -1
  271. package/dist/components/six-footer.js +2 -2
  272. package/dist/components/six-group-label.js +4 -4
  273. package/dist/components/six-header-dropdown-item.js +10 -10
  274. package/dist/components/six-header-item.js +2 -2
  275. package/dist/components/six-header-menu-button.js +4 -4
  276. package/dist/components/six-header.js +3 -3
  277. package/dist/components/six-icon-button.js +1 -1
  278. package/dist/components/six-icon.js +1 -1
  279. package/dist/components/six-input.js +1 -1
  280. package/dist/components/six-item-picker.js +1 -1
  281. package/dist/components/six-language-switcher.js +2 -2
  282. package/dist/components/six-layout-grid.js +2 -2
  283. package/dist/components/six-logo.js +1 -1
  284. package/dist/components/six-main-container.js +2 -2
  285. package/dist/components/six-menu-divider.js +2 -2
  286. package/dist/components/six-menu-item.js +1 -1
  287. package/dist/components/six-menu-label.js +2 -2
  288. package/dist/components/six-menu.js +1 -1
  289. package/dist/components/six-picto.js +1 -1
  290. package/dist/components/six-progress-bar.js +4 -4
  291. package/dist/components/six-progress-ring.js +2 -2
  292. package/dist/components/six-radio.js +3 -3
  293. package/dist/components/six-range.js +5 -5
  294. package/dist/components/six-range.js.map +1 -1
  295. package/dist/components/six-rating.d.ts +11 -0
  296. package/dist/components/six-rating.js +173 -0
  297. package/dist/components/six-rating.js.map +1 -0
  298. package/dist/components/six-root.js +4 -4
  299. package/dist/components/six-search-field.js +6 -6
  300. package/dist/components/six-select.js +19 -19
  301. package/dist/components/six-sidebar-item-group.js +3 -3
  302. package/dist/components/six-sidebar-item.js +4 -4
  303. package/dist/components/six-sidebar.js +3 -3
  304. package/dist/components/six-spinner.js +1 -1
  305. package/dist/components/six-stage-indicator.js +1 -1
  306. package/dist/components/six-switch.js +5 -5
  307. package/dist/components/six-switch.js.map +1 -1
  308. package/dist/components/six-tab-group.js +6 -39
  309. package/dist/components/six-tab-group.js.map +1 -1
  310. package/dist/components/six-tab-panel.js +2 -2
  311. package/dist/components/six-tab.js +6 -6
  312. package/dist/components/six-tab.js.map +1 -1
  313. package/dist/components/six-tag.js +7 -7
  314. package/dist/components/six-textarea.js +5 -5
  315. package/dist/components/six-tile.js +9 -9
  316. package/dist/components/six-timepicker.js +1 -1
  317. package/dist/components/six-tooltip.js +1 -1
  318. package/dist/components.json +3044 -687
  319. package/dist/esm/animation-SLlDVtvF.js +51 -0
  320. package/dist/esm/animation-SLlDVtvF.js.map +1 -0
  321. package/dist/esm/{execution-control-ltzGzaAu.js → execution-control-CKhg9ibv.js} +3 -3
  322. package/dist/esm/{execution-control-ltzGzaAu.js.map → execution-control-CKhg9ibv.js.map} +1 -1
  323. package/dist/esm/{form-control-D_uS8E6o.js → form-control-DI6V1ZhR.js} +3 -3
  324. package/dist/esm/{form-control-D_uS8E6o.js.map → form-control-DI6V1ZhR.js.map} +1 -1
  325. package/dist/esm/icon-DqHJRLQQ.js +14 -0
  326. package/dist/esm/icon-DqHJRLQQ.js.map +1 -0
  327. package/dist/esm/{index-D0Go1Zjj.js → index-JoG9I7EO.js} +19 -11
  328. package/dist/{cjs/index-BKTrCUjx.js.map → esm/index-JoG9I7EO.js.map} +1 -1
  329. package/dist/esm/index.js +1 -0
  330. package/dist/esm/index.js.map +1 -1
  331. package/dist/esm/loader.js +3 -3
  332. package/dist/esm/six-alert.entry.js +1 -1
  333. package/dist/esm/six-avatar.entry.js +3 -3
  334. package/dist/esm/six-badge.entry.js +3 -3
  335. package/dist/esm/six-breadcrumbs-item.entry.js +23 -0
  336. package/dist/esm/six-breadcrumbs-item.entry.js.map +1 -0
  337. package/dist/esm/six-breadcrumbs.entry.js +71 -0
  338. package/dist/esm/six-breadcrumbs.entry.js.map +1 -0
  339. package/dist/esm/six-button.six-spinner.entry.js.map +1 -0
  340. package/dist/esm/{six-button.entry.js → six-button_2.entry.js} +56 -6
  341. package/dist/esm/six-button_2.entry.js.map +1 -0
  342. package/dist/esm/six-card.entry.js +2 -2
  343. package/dist/esm/six-checkbox_2.entry.js +6 -6
  344. package/dist/esm/six-date.entry.js +59 -52
  345. package/dist/esm/six-date.entry.js.map +1 -1
  346. package/dist/esm/six-datepicker.entry.js +5 -5
  347. package/dist/esm/six-datepicker.entry.js.map +1 -1
  348. package/dist/esm/six-details.entry.js +4 -4
  349. package/dist/esm/six-dialog.entry.js +16 -10
  350. package/dist/esm/six-dialog.entry.js.map +1 -1
  351. package/dist/esm/six-drawer.entry.js +16 -10
  352. package/dist/esm/six-drawer.entry.js.map +1 -1
  353. package/dist/esm/six-dropdown.six-menu.entry.js.map +1 -1
  354. package/dist/esm/six-dropdown_2.entry.js +10 -10
  355. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  356. package/dist/esm/six-error-page.entry.js +2 -2
  357. package/dist/esm/six-error.entry.js +2 -2
  358. package/dist/esm/six-file-list-item.entry.js +3 -3
  359. package/dist/esm/six-file-list.entry.js +2 -2
  360. package/dist/esm/six-file-upload.entry.js +13 -8
  361. package/dist/esm/six-file-upload.entry.js.map +1 -1
  362. package/dist/esm/six-footer.entry.js +2 -2
  363. package/dist/esm/six-group-label.entry.js +3 -3
  364. package/dist/esm/six-header-dropdown-item.entry.js +3 -3
  365. package/dist/esm/six-header-item.entry.js +2 -2
  366. package/dist/esm/six-header-menu-button.entry.js +2 -2
  367. package/dist/esm/six-header.entry.js +3 -3
  368. package/dist/esm/six-icon-button.entry.js +4 -4
  369. package/dist/esm/six-icon.entry.js +16 -7
  370. package/dist/esm/six-icon.entry.js.map +1 -1
  371. package/dist/esm/six-input.entry.js +5 -5
  372. package/dist/esm/six-item-picker.entry.js +2 -2
  373. package/dist/esm/six-language-switcher.entry.js +2 -2
  374. package/dist/esm/six-layout-grid.entry.js +2 -2
  375. package/dist/esm/six-logo.entry.js +1 -1
  376. package/dist/esm/six-main-container.entry.js +2 -2
  377. package/dist/esm/six-menu-divider.entry.js +2 -2
  378. package/dist/esm/six-menu-label.entry.js +2 -2
  379. package/dist/esm/six-picto.entry.js +2 -2
  380. package/dist/esm/six-progress-bar.entry.js +4 -4
  381. package/dist/esm/six-progress-ring.entry.js +2 -2
  382. package/dist/esm/six-radio.entry.js +3 -3
  383. package/dist/esm/six-range.entry.js +4 -4
  384. package/dist/esm/six-range.entry.js.map +1 -1
  385. package/dist/esm/six-rating.entry.js +124 -0
  386. package/dist/esm/six-rating.entry.js.map +1 -0
  387. package/dist/esm/six-root.entry.js +2 -2
  388. package/dist/esm/six-search-field.entry.js +3 -3
  389. package/dist/esm/six-select.entry.js +9 -9
  390. package/dist/esm/six-sidebar-item-group.entry.js +1 -1
  391. package/dist/esm/six-sidebar-item.entry.js +3 -3
  392. package/dist/esm/six-sidebar.entry.js +3 -3
  393. package/dist/esm/six-stage-indicator.entry.js +1 -1
  394. package/dist/esm/six-switch.entry.js +4 -4
  395. package/dist/esm/six-switch.entry.js.map +1 -1
  396. package/dist/esm/six-tab-group.entry.js +4 -37
  397. package/dist/esm/six-tab-group.entry.js.map +1 -1
  398. package/dist/esm/six-tab-panel.entry.js +2 -2
  399. package/dist/esm/six-tab.entry.js +4 -4
  400. package/dist/esm/six-tab.entry.js.map +1 -1
  401. package/dist/esm/six-tag.entry.js +4 -4
  402. package/dist/esm/six-textarea.entry.js +4 -4
  403. package/dist/esm/six-tile.entry.js +6 -6
  404. package/dist/esm/six-timepicker.entry.js +20 -12
  405. package/dist/esm/six-timepicker.entry.js.map +1 -1
  406. package/dist/esm/six-tooltip.entry.js +3 -3
  407. package/dist/esm/ui-library.js +4 -4
  408. package/dist/esm/ui-library.js.map +1 -1
  409. package/dist/types/components/six-breadcrumbs/six-breadcrumbs.d.ts +20 -0
  410. package/dist/types/components/six-breadcrumbs-item/six-breadcrumbs-item.d.ts +27 -0
  411. package/dist/types/components/six-date/iso-date.d.ts +2 -0
  412. package/dist/types/components/six-date/six-date.d.ts +9 -7
  413. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  414. package/dist/types/components/six-dialog/six-dialog.d.ts +10 -2
  415. package/dist/types/components/six-drawer/six-drawer.d.ts +10 -2
  416. package/dist/types/components/six-file-upload/six-file-upload.d.ts +1 -0
  417. package/dist/types/components/six-icon/six-icon.d.ts +16 -0
  418. package/dist/types/components/six-rating/six-rating.d.ts +52 -0
  419. package/dist/types/components.d.ts +912 -24
  420. package/dist/types/index.d.ts +1 -0
  421. package/dist/types/stencil-public-runtime.d.ts +19 -0
  422. package/dist/types/types.d.ts +1 -0
  423. package/dist/types/utils/animation.d.ts +4 -0
  424. package/dist/types/utils/icon.d.ts +5 -0
  425. package/dist/ui-library/files/material-symbols-outlined-latin-fill-normal.woff2 +0 -0
  426. package/dist/ui-library/files/material-symbols-outlined-latin-full-normal.woff2 +0 -0
  427. package/dist/ui-library/files/material-symbols-outlined-latin-grad-normal.woff2 +0 -0
  428. package/dist/ui-library/files/material-symbols-outlined-latin-opsz-normal.woff2 +0 -0
  429. package/dist/ui-library/files/material-symbols-outlined-latin-standard-normal.woff2 +0 -0
  430. package/dist/ui-library/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  431. package/dist/ui-library/files/material-symbols-rounded-latin-fill-normal.woff2 +0 -0
  432. package/dist/ui-library/files/material-symbols-rounded-latin-full-normal.woff2 +0 -0
  433. package/dist/ui-library/files/material-symbols-rounded-latin-grad-normal.woff2 +0 -0
  434. package/dist/ui-library/files/material-symbols-rounded-latin-opsz-normal.woff2 +0 -0
  435. package/dist/ui-library/files/material-symbols-rounded-latin-standard-normal.woff2 +0 -0
  436. package/dist/ui-library/files/material-symbols-rounded-latin-wght-normal.woff2 +0 -0
  437. package/dist/ui-library/files/material-symbols-sharp-latin-fill-normal.woff2 +0 -0
  438. package/dist/ui-library/files/material-symbols-sharp-latin-full-normal.woff2 +0 -0
  439. package/dist/ui-library/files/material-symbols-sharp-latin-grad-normal.woff2 +0 -0
  440. package/dist/ui-library/files/material-symbols-sharp-latin-opsz-normal.woff2 +0 -0
  441. package/dist/ui-library/files/material-symbols-sharp-latin-standard-normal.woff2 +0 -0
  442. package/dist/ui-library/files/material-symbols-sharp-latin-wght-normal.woff2 +0 -0
  443. package/dist/ui-library/index.esm.js +1 -1
  444. package/dist/ui-library/index.esm.js.map +1 -1
  445. package/dist/ui-library/{p-1323f2cb.entry.js → p-014f44f4.entry.js} +2 -2
  446. package/dist/ui-library/p-014f44f4.entry.js.map +1 -0
  447. package/dist/ui-library/p-05ca516d.entry.js +2 -0
  448. package/dist/ui-library/{p-73b64625.entry.js → p-06c6b189.entry.js} +2 -2
  449. package/dist/ui-library/p-0eb90caf.entry.js +2 -0
  450. package/dist/ui-library/p-0eb90caf.entry.js.map +1 -0
  451. package/dist/ui-library/{p-4a4a0751.entry.js → p-12a2cc6b.entry.js} +2 -2
  452. package/dist/ui-library/{p-6990e5ed.entry.js → p-194037e9.entry.js} +2 -2
  453. package/dist/ui-library/{p-ad558904.entry.js → p-22ad3353.entry.js} +2 -2
  454. package/dist/ui-library/p-22f924a1.entry.js +2 -0
  455. package/dist/ui-library/{p-df05b23b.entry.js → p-26219330.entry.js} +2 -2
  456. package/dist/ui-library/{p-16028bce.entry.js → p-29994dc3.entry.js} +2 -2
  457. package/dist/ui-library/{p-cc44af70.entry.js → p-29aac7ea.entry.js} +2 -2
  458. package/dist/ui-library/p-29aac7ea.entry.js.map +1 -0
  459. package/dist/ui-library/{p-1e4d1252.entry.js → p-2a245a37.entry.js} +2 -2
  460. package/dist/ui-library/p-38c51fd1.entry.js +2 -0
  461. package/dist/ui-library/p-38c51fd1.entry.js.map +1 -0
  462. package/dist/ui-library/p-39109b96.entry.js +2 -0
  463. package/dist/ui-library/p-39109b96.entry.js.map +1 -0
  464. package/dist/ui-library/{p-84964501.entry.js → p-3c1285ad.entry.js} +2 -2
  465. package/dist/ui-library/{p-8fe7ecdd.entry.js → p-3d9e03b5.entry.js} +2 -2
  466. package/dist/ui-library/{p-55c15301.entry.js → p-4152b371.entry.js} +2 -2
  467. package/dist/ui-library/{p-81af96f2.entry.js → p-4d9785bd.entry.js} +2 -2
  468. package/dist/ui-library/p-4decf969.entry.js +2 -0
  469. package/dist/ui-library/p-4decf969.entry.js.map +1 -0
  470. package/dist/ui-library/{p-d7616f27.entry.js → p-54490d28.entry.js} +2 -2
  471. package/dist/ui-library/p-56e172e0.entry.js +2 -0
  472. package/dist/ui-library/p-56e172e0.entry.js.map +1 -0
  473. package/dist/ui-library/{p-9f55534a.entry.js → p-59568c0f.entry.js} +2 -2
  474. package/dist/ui-library/{p-9f55534a.entry.js.map → p-59568c0f.entry.js.map} +1 -1
  475. package/dist/ui-library/{p-1f86bd3e.entry.js → p-6607d03a.entry.js} +2 -2
  476. package/dist/ui-library/{p-baf698e1.entry.js → p-664ddbab.entry.js} +2 -2
  477. package/dist/ui-library/{p-830ed202.entry.js → p-66b94978.entry.js} +2 -2
  478. package/dist/ui-library/{p-36a316e0.entry.js → p-66d616e8.entry.js} +2 -2
  479. package/dist/ui-library/{p-5ed5842b.entry.js → p-6cd4fbd8.entry.js} +2 -2
  480. package/dist/ui-library/{p-85aacb7c.entry.js → p-6dd3f54c.entry.js} +2 -2
  481. package/dist/ui-library/{p-01306147.entry.js → p-70388108.entry.js} +2 -2
  482. package/dist/ui-library/p-72d3f332.entry.js +2 -0
  483. package/dist/ui-library/p-72d3f332.entry.js.map +1 -0
  484. package/dist/ui-library/p-7f7413db.entry.js +2 -0
  485. package/dist/ui-library/p-7f7413db.entry.js.map +1 -0
  486. package/dist/ui-library/p-83d5fa7c.entry.js +2 -0
  487. package/dist/ui-library/p-83d5fa7c.entry.js.map +1 -0
  488. package/dist/ui-library/{p-b8db5638.entry.js → p-8c2edb7f.entry.js} +2 -2
  489. package/dist/ui-library/{p-b09e3895.entry.js → p-91c195d3.entry.js} +2 -2
  490. package/dist/ui-library/{p-9f0ed997.entry.js → p-984a1f6d.entry.js} +2 -2
  491. package/dist/ui-library/p-9b75e009.entry.js +2 -0
  492. package/dist/ui-library/p-9b75e009.entry.js.map +1 -0
  493. package/dist/ui-library/{p-22ad5b1e.entry.js → p-9deca0d0.entry.js} +2 -2
  494. package/dist/ui-library/{p-ltzGzaAu.js → p-CKhg9ibv.js} +2 -2
  495. package/dist/ui-library/{p-ltzGzaAu.js.map → p-CKhg9ibv.js.map} +1 -1
  496. package/dist/ui-library/{p-IBmarOIS.js → p-Dg9366Gk.js} +2 -2
  497. package/dist/ui-library/{p-IBmarOIS.js.map → p-Dg9366Gk.js.map} +1 -1
  498. package/dist/ui-library/p-DqHJRLQQ.js +2 -0
  499. package/dist/ui-library/p-DqHJRLQQ.js.map +1 -0
  500. package/dist/ui-library/{p-D0Go1Zjj.js → p-JoG9I7EO.js} +1 -1
  501. package/dist/ui-library/{p-D0Go1Zjj.js.map → p-JoG9I7EO.js.map} +1 -1
  502. package/dist/ui-library/p-SLlDVtvF.js +2 -0
  503. package/dist/ui-library/p-SLlDVtvF.js.map +1 -0
  504. package/dist/ui-library/{p-97b78889.entry.js → p-a6d7d618.entry.js} +2 -2
  505. package/dist/ui-library/p-a7f9c92d.entry.js +2 -0
  506. package/dist/ui-library/{p-79a79513.entry.js.map → p-a7f9c92d.entry.js.map} +1 -1
  507. package/dist/ui-library/{p-071ed780.entry.js → p-aaea0f73.entry.js} +2 -2
  508. package/dist/ui-library/{p-c2ec443c.entry.js → p-ab043a8c.entry.js} +2 -2
  509. package/dist/ui-library/{p-1e67ac05.entry.js → p-b37d9771.entry.js} +2 -2
  510. package/dist/ui-library/{p-9713ecff.entry.js → p-bea434d1.entry.js} +2 -2
  511. package/dist/ui-library/p-bea434d1.entry.js.map +1 -0
  512. package/dist/ui-library/{p-ba68b30c.entry.js → p-ccc7e227.entry.js} +2 -2
  513. package/dist/ui-library/{p-f52715e8.entry.js → p-d81265f4.entry.js} +2 -2
  514. package/dist/ui-library/{p-537a8953.entry.js → p-da5f40ed.entry.js} +2 -2
  515. package/dist/ui-library/p-dc694314.entry.js +2 -0
  516. package/dist/ui-library/p-dc694314.entry.js.map +1 -0
  517. package/dist/ui-library/{p-c04affa2.entry.js → p-df2b8f01.entry.js} +2 -2
  518. package/dist/ui-library/p-e100aff2.entry.js +2 -0
  519. package/dist/ui-library/p-e56c5237.entry.js +2 -0
  520. package/dist/ui-library/p-e56c5237.entry.js.map +1 -0
  521. package/dist/ui-library/{p-679f1e08.entry.js → p-e8e5445e.entry.js} +2 -2
  522. package/dist/ui-library/{p-68c50fb7.entry.js → p-e92df84a.entry.js} +2 -2
  523. package/dist/ui-library/{p-8d60c1fd.entry.js → p-ed6625e6.entry.js} +2 -2
  524. package/dist/ui-library/p-fc2d893f.entry.js +2 -0
  525. package/dist/ui-library/p-fcd3305f.entry.js +2 -0
  526. package/dist/ui-library/{p-0d97e592.entry.js.map → p-fcd3305f.entry.js.map} +1 -1
  527. package/dist/ui-library/p-fd97bc8a.entry.js +2 -0
  528. package/dist/ui-library/p-fd97bc8a.entry.js.map +1 -0
  529. package/dist/ui-library/{p-5ad81261.entry.js → p-fe2ef0a4.entry.js} +2 -2
  530. package/dist/ui-library/six-breadcrumbs-item.entry.esm.js.map +1 -0
  531. package/dist/ui-library/six-breadcrumbs.entry.esm.js.map +1 -0
  532. package/dist/ui-library/six-button.six-spinner.entry.esm.js.map +1 -0
  533. package/dist/ui-library/six-date.entry.esm.js.map +1 -1
  534. package/dist/ui-library/six-datepicker.entry.esm.js.map +1 -1
  535. package/dist/ui-library/six-dialog.entry.esm.js.map +1 -1
  536. package/dist/ui-library/six-drawer.entry.esm.js.map +1 -1
  537. package/dist/ui-library/six-dropdown.six-menu.entry.esm.js.map +1 -1
  538. package/dist/ui-library/six-file-upload.entry.esm.js.map +1 -1
  539. package/dist/ui-library/six-icon.entry.esm.js.map +1 -1
  540. package/dist/ui-library/six-range.entry.esm.js.map +1 -1
  541. package/dist/ui-library/six-rating.entry.esm.js.map +1 -0
  542. package/dist/ui-library/six-switch.entry.esm.js.map +1 -1
  543. package/dist/ui-library/six-tab-group.entry.esm.js.map +1 -1
  544. package/dist/ui-library/six-tab.entry.esm.js.map +1 -1
  545. package/dist/ui-library/six-timepicker.entry.esm.js.map +1 -1
  546. package/dist/ui-library/ui-library.css +1 -1
  547. package/dist/ui-library/ui-library.esm.js +1 -1
  548. package/dist/ui-library/ui-library.esm.js.map +1 -1
  549. package/package.json +9 -6
  550. package/dist/cjs/six-button.cjs.entry.js.map +0 -1
  551. package/dist/cjs/six-button.entry.cjs.js.map +0 -1
  552. package/dist/cjs/six-spinner.cjs.entry.js +0 -58
  553. package/dist/cjs/six-spinner.cjs.entry.js.map +0 -1
  554. package/dist/cjs/six-spinner.entry.cjs.js.map +0 -1
  555. package/dist/components/p-B-jadcQD.js.map +0 -1
  556. package/dist/components/p-BtF2Ym6T.js.map +0 -1
  557. package/dist/components/p-Cemjz04k.js.map +0 -1
  558. package/dist/components/p-Mse5vRUS.js +0 -52
  559. package/dist/components/p-Mse5vRUS.js.map +0 -1
  560. package/dist/esm/six-button.entry.js.map +0 -1
  561. package/dist/esm/six-spinner.entry.js +0 -56
  562. package/dist/esm/six-spinner.entry.js.map +0 -1
  563. package/dist/ui-library/p-0b438d5a.entry.js +0 -2
  564. package/dist/ui-library/p-0b438d5a.entry.js.map +0 -1
  565. package/dist/ui-library/p-0d97e592.entry.js +0 -2
  566. package/dist/ui-library/p-1323f2cb.entry.js.map +0 -1
  567. package/dist/ui-library/p-27e8e8a6.entry.js +0 -2
  568. package/dist/ui-library/p-27e8e8a6.entry.js.map +0 -1
  569. package/dist/ui-library/p-5a579e9f.entry.js +0 -2
  570. package/dist/ui-library/p-5a579e9f.entry.js.map +0 -1
  571. package/dist/ui-library/p-5e70085d.entry.js +0 -2
  572. package/dist/ui-library/p-5e70085d.entry.js.map +0 -1
  573. package/dist/ui-library/p-666b3e45.entry.js +0 -2
  574. package/dist/ui-library/p-666b3e45.entry.js.map +0 -1
  575. package/dist/ui-library/p-695e450e.entry.js +0 -2
  576. package/dist/ui-library/p-6d212bc0.entry.js +0 -2
  577. package/dist/ui-library/p-798fb03a.entry.js +0 -2
  578. package/dist/ui-library/p-798fb03a.entry.js.map +0 -1
  579. package/dist/ui-library/p-79a79513.entry.js +0 -2
  580. package/dist/ui-library/p-868fab98.entry.js +0 -2
  581. package/dist/ui-library/p-9713ecff.entry.js.map +0 -1
  582. package/dist/ui-library/p-b2092cd0.entry.js +0 -2
  583. package/dist/ui-library/p-b2092cd0.entry.js.map +0 -1
  584. package/dist/ui-library/p-cc44af70.entry.js.map +0 -1
  585. package/dist/ui-library/p-d1bd67af.entry.js +0 -2
  586. package/dist/ui-library/p-d1bd67af.entry.js.map +0 -1
  587. package/dist/ui-library/p-f0c10d20.entry.js +0 -2
  588. package/dist/ui-library/p-f0c10d20.entry.js.map +0 -1
  589. package/dist/ui-library/p-f4e2ddfc.entry.js +0 -2
  590. package/dist/ui-library/p-f585a5ab.entry.js +0 -2
  591. package/dist/ui-library/p-f585a5ab.entry.js.map +0 -1
  592. package/dist/ui-library/six-button.entry.esm.js.map +0 -1
  593. package/dist/ui-library/six-spinner.entry.esm.js.map +0 -1
  594. /package/dist/ui-library/{p-695e450e.entry.js.map → p-05ca516d.entry.js.map} +0 -0
  595. /package/dist/ui-library/{p-73b64625.entry.js.map → p-06c6b189.entry.js.map} +0 -0
  596. /package/dist/ui-library/{p-4a4a0751.entry.js.map → p-12a2cc6b.entry.js.map} +0 -0
  597. /package/dist/ui-library/{p-6990e5ed.entry.js.map → p-194037e9.entry.js.map} +0 -0
  598. /package/dist/ui-library/{p-ad558904.entry.js.map → p-22ad3353.entry.js.map} +0 -0
  599. /package/dist/ui-library/{p-f4e2ddfc.entry.js.map → p-22f924a1.entry.js.map} +0 -0
  600. /package/dist/ui-library/{p-df05b23b.entry.js.map → p-26219330.entry.js.map} +0 -0
  601. /package/dist/ui-library/{p-16028bce.entry.js.map → p-29994dc3.entry.js.map} +0 -0
  602. /package/dist/ui-library/{p-1e4d1252.entry.js.map → p-2a245a37.entry.js.map} +0 -0
  603. /package/dist/ui-library/{p-84964501.entry.js.map → p-3c1285ad.entry.js.map} +0 -0
  604. /package/dist/ui-library/{p-8fe7ecdd.entry.js.map → p-3d9e03b5.entry.js.map} +0 -0
  605. /package/dist/ui-library/{p-55c15301.entry.js.map → p-4152b371.entry.js.map} +0 -0
  606. /package/dist/ui-library/{p-81af96f2.entry.js.map → p-4d9785bd.entry.js.map} +0 -0
  607. /package/dist/ui-library/{p-d7616f27.entry.js.map → p-54490d28.entry.js.map} +0 -0
  608. /package/dist/ui-library/{p-1f86bd3e.entry.js.map → p-6607d03a.entry.js.map} +0 -0
  609. /package/dist/ui-library/{p-baf698e1.entry.js.map → p-664ddbab.entry.js.map} +0 -0
  610. /package/dist/ui-library/{p-830ed202.entry.js.map → p-66b94978.entry.js.map} +0 -0
  611. /package/dist/ui-library/{p-36a316e0.entry.js.map → p-66d616e8.entry.js.map} +0 -0
  612. /package/dist/ui-library/{p-5ed5842b.entry.js.map → p-6cd4fbd8.entry.js.map} +0 -0
  613. /package/dist/ui-library/{p-85aacb7c.entry.js.map → p-6dd3f54c.entry.js.map} +0 -0
  614. /package/dist/ui-library/{p-01306147.entry.js.map → p-70388108.entry.js.map} +0 -0
  615. /package/dist/ui-library/{p-b8db5638.entry.js.map → p-8c2edb7f.entry.js.map} +0 -0
  616. /package/dist/ui-library/{p-b09e3895.entry.js.map → p-91c195d3.entry.js.map} +0 -0
  617. /package/dist/ui-library/{p-9f0ed997.entry.js.map → p-984a1f6d.entry.js.map} +0 -0
  618. /package/dist/ui-library/{p-22ad5b1e.entry.js.map → p-9deca0d0.entry.js.map} +0 -0
  619. /package/dist/ui-library/{p-97b78889.entry.js.map → p-a6d7d618.entry.js.map} +0 -0
  620. /package/dist/ui-library/{p-071ed780.entry.js.map → p-aaea0f73.entry.js.map} +0 -0
  621. /package/dist/ui-library/{p-c2ec443c.entry.js.map → p-ab043a8c.entry.js.map} +0 -0
  622. /package/dist/ui-library/{p-1e67ac05.entry.js.map → p-b37d9771.entry.js.map} +0 -0
  623. /package/dist/ui-library/{p-ba68b30c.entry.js.map → p-ccc7e227.entry.js.map} +0 -0
  624. /package/dist/ui-library/{p-f52715e8.entry.js.map → p-d81265f4.entry.js.map} +0 -0
  625. /package/dist/ui-library/{p-537a8953.entry.js.map → p-da5f40ed.entry.js.map} +0 -0
  626. /package/dist/ui-library/{p-c04affa2.entry.js.map → p-df2b8f01.entry.js.map} +0 -0
  627. /package/dist/ui-library/{p-6d212bc0.entry.js.map → p-e100aff2.entry.js.map} +0 -0
  628. /package/dist/ui-library/{p-679f1e08.entry.js.map → p-e8e5445e.entry.js.map} +0 -0
  629. /package/dist/ui-library/{p-68c50fb7.entry.js.map → p-e92df84a.entry.js.map} +0 -0
  630. /package/dist/ui-library/{p-8d60c1fd.entry.js.map → p-ed6625e6.entry.js.map} +0 -0
  631. /package/dist/ui-library/{p-868fab98.entry.js.map → p-fc2d893f.entry.js.map} +0 -0
  632. /package/dist/ui-library/{p-5ad81261.entry.js.map → p-fe2ef0a4.entry.js.map} +0 -0
@@ -28,12 +28,12 @@ export class SixAvatar {
28
28
  };
29
29
  }
30
30
  render() {
31
- return (h("div", { key: '1aaade211fdffbe4e64a03942be0f2dc045f2ba5', part: "base", class: {
31
+ return (h("div", { key: 'c18818d8ee0e4c16ecc7036dee47334eafa8d38d', part: "base", class: {
32
32
  avatar: true,
33
33
  'avatar--circle': this.shape === 'circle',
34
34
  'avatar--rounded': this.shape === 'rounded',
35
35
  'avatar--square': this.shape === 'square',
36
- }, role: "image", "aria-label": this.alt, tabIndex: 0 }, this.initials === '' && (h("div", { key: '08f51e38d5961efe8a1edd229b19173a76773fac', part: "icon", class: "avatar__icon" }, h("slot", { key: '93a72971ee8e0e0cc700341520f456e8284b76e6', name: "icon" }, h("six-icon", { key: 'bc3fcbdde635da80270e3ea545b11113ee6512c1' }, "person")))), this.initials && (h("div", { key: '0531c544e1400e170161de648afeb1a27ddcbfb6', part: "initials", class: "avatar__initials" }, this.initials)), this.image && !this.hasError && (h("img", { key: 'aae3851a20d505d4ee266828ac777a2518bdaf6e', part: "image", class: "avatar__image", src: this.image, onError: this.handleImageError }))));
36
+ }, role: "image", "aria-label": this.alt, tabIndex: 0 }, this.initials === '' && (h("div", { key: '793124283385b4d78d269217c0f80a303ea3af01', part: "icon", class: "avatar__icon" }, h("slot", { key: '20046d36c15a800783c245fc9bd9f8a0c462cd00', name: "icon" }, h("six-icon", { key: 'e25b68320947163b737d94484d6bd5a43117f6d7' }, "person")))), this.initials && (h("div", { key: '7f9e5c67a482b081116c0038ff248e1fdb9662d1', part: "initials", class: "avatar__initials" }, this.initials)), this.image && !this.hasError && (h("img", { key: '44c10b4d2755543a5e77fc3d6b15e02ba917ef7d', part: "image", class: "avatar__image", src: this.image, onError: this.handleImageError }))));
37
37
  }
38
38
  static get is() { return "six-avatar"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -19,7 +19,7 @@ export class SixBadge {
19
19
  this.pulse = false;
20
20
  }
21
21
  render() {
22
- return (h("span", { key: '6352c1b6f7b593982f42b4e26862f365d9aa32fa', part: "base", class: {
22
+ return (h("span", { key: '5f279e992f0f009a0a2be5128e21290c0ce9990a', part: "base", class: {
23
23
  badge: true,
24
24
  // Types
25
25
  'badge--primary': this.type === 'primary',
@@ -31,7 +31,7 @@ export class SixBadge {
31
31
  'badge--info': this.type === 'info',
32
32
  'badge--pill': this.pill,
33
33
  'badge--pulse': this.pulse,
34
- }, role: "status" }, h("slot", { key: 'df34cfd3b2ecd789592b0436948a4918616dcf9f' })));
34
+ }, role: "status" }, h("slot", { key: '08847cb32936a89c9407d36f9c94e32a35baa1fb' })));
35
35
  }
36
36
  static get is() { return "six-badge"; }
37
37
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,27 @@
1
+ :host {
2
+ position: relative;
3
+ box-sizing: border-box;
4
+ }
5
+ :host *, :host *:before, :host *:after {
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ /* Hides content visually while still making it available to screen readers */
10
+ .sr-only {
11
+ clip: rect(0 0 0 0);
12
+ clip-path: inset(50%);
13
+ height: 1px;
14
+ overflow: hidden;
15
+ position: absolute;
16
+ white-space: nowrap;
17
+ width: 1px;
18
+ }
19
+
20
+ :host {
21
+ display: block;
22
+ }
23
+ :host nav {
24
+ display: flex;
25
+ align-items: center;
26
+ flex-wrap: wrap;
27
+ }
@@ -0,0 +1,109 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.
4
+ *
5
+ * @since 5.0
6
+ * @status beta
7
+ *
8
+ * @slot - One or more breadcrumb items to display.
9
+ * @slot separator - The separator to use between breadcrumb items. Works best with six-icon.
10
+ *
11
+ * @part base - The component's base wrapper.
12
+ */
13
+ export class SixBreadcrumbs {
14
+ constructor() {
15
+ /** Defines an icon as a separator without having to place a slot **/
16
+ this.separatorIcon = '';
17
+ this.updateBreadcrumbItems = () => {
18
+ const items = [...this.host.querySelectorAll('six-breadcrumbs-item')];
19
+ items.forEach((item, index) => {
20
+ // Append separators to each item if they don't already have one
21
+ const separator = item.querySelector('[slot="separator"]');
22
+ if (separator === null) {
23
+ // No separator exists, add one
24
+ item.append(this.createSeparatorElement());
25
+ }
26
+ else if (separator.hasAttribute('data-default')) {
27
+ // A default separator exists, replace it
28
+ separator.replaceWith(this.createSeparatorElement());
29
+ }
30
+ // The last breadcrumb item is the "current page"
31
+ if (index === items.length - 1) {
32
+ item.setAttribute('aria-current', 'page');
33
+ }
34
+ else {
35
+ item.removeAttribute('aria-current');
36
+ }
37
+ });
38
+ };
39
+ }
40
+ createSeparatorElement() {
41
+ // Find a custom separator by checking direct children only
42
+ const customSeparator = this.getCustomSeparator();
43
+ console.log(customSeparator);
44
+ if (customSeparator) {
45
+ const clone = customSeparator.cloneNode(true);
46
+ clone.removeAttribute('id');
47
+ clone.setAttribute('data-default', '');
48
+ clone.slot = 'separator';
49
+ return clone;
50
+ }
51
+ // Create default separator element
52
+ const span = document.createElement('span');
53
+ span.innerText = '/';
54
+ span.slot = 'separator';
55
+ span.setAttribute('data-default', '');
56
+ return span;
57
+ }
58
+ getCustomSeparator() {
59
+ var _a;
60
+ if (Boolean((_a = this.separatorIcon) === null || _a === void 0 ? void 0 : _a.length)) {
61
+ const sixIcon = document.createElement('six-icon');
62
+ sixIcon.innerText = this.separatorIcon;
63
+ sixIcon.setAttribute('size', 'small');
64
+ return sixIcon;
65
+ }
66
+ return Array.from(this.host.children).find((child) => child.getAttribute('slot') === 'separator');
67
+ }
68
+ render() {
69
+ return (h("host", { key: '71fcac983222825168006e795d3c7f8f887f2f66' }, h("nav", { key: '76473724c4e4ca45650a5defcc9a4c8352311345', part: "base" }, h("slot", { key: '6ec1262745d1b9507e6d612d3cf3a22c5e6859cd', onSlotchange: this.updateBreadcrumbItems }))));
70
+ }
71
+ static get is() { return "six-breadcrumbs"; }
72
+ static get encapsulation() { return "shadow"; }
73
+ static get originalStyleUrls() {
74
+ return {
75
+ "$": ["six-breadcrumbs.scss"]
76
+ };
77
+ }
78
+ static get styleUrls() {
79
+ return {
80
+ "$": ["six-breadcrumbs.css"]
81
+ };
82
+ }
83
+ static get properties() {
84
+ return {
85
+ "separatorIcon": {
86
+ "type": "string",
87
+ "attribute": "separator-icon",
88
+ "mutable": false,
89
+ "complexType": {
90
+ "original": "string",
91
+ "resolved": "string",
92
+ "references": {}
93
+ },
94
+ "required": false,
95
+ "optional": false,
96
+ "docs": {
97
+ "tags": [],
98
+ "text": "Defines an icon as a separator without having to place a slot *"
99
+ },
100
+ "getter": false,
101
+ "setter": false,
102
+ "reflect": true,
103
+ "defaultValue": "''"
104
+ }
105
+ };
106
+ }
107
+ static get elementRef() { return "host"; }
108
+ }
109
+ //# sourceMappingURL=six-breadcrumbs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"six-breadcrumbs.js","sourceRoot":"","sources":["../../../src/components/six-breadcrumbs/six-breadcrumbs.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, h, Prop } from '@stencil/core';\n\n/**\n * Breadcrumbs provide a group of links so users can easily navigate a website's hierarchy.\n *\n * @since 5.0\n * @status beta\n *\n * @slot - One or more breadcrumb items to display.\n * @slot separator - The separator to use between breadcrumb items. Works best with six-icon.\n *\n * @part base - The component's base wrapper.\n */\n@Component({\n tag: 'six-breadcrumbs',\n styleUrl: 'six-breadcrumbs.scss',\n shadow: true,\n})\nexport class SixBreadcrumbs {\n @Element() host!: HTMLSixBreadcrumbsElement;\n\n /** Defines an icon as a separator without having to place a slot **/\n @Prop({ attribute: 'separator-icon', reflect: true }) separatorIcon: string = '';\n\n private updateBreadcrumbItems = () => {\n const items = [...this.host.querySelectorAll('six-breadcrumbs-item')] as HTMLSixBreadcrumbsItemElement[];\n\n items.forEach((item, index) => {\n // Append separators to each item if they don't already have one\n const separator = item.querySelector('[slot=\"separator\"]');\n if (separator === null) {\n // No separator exists, add one\n item.append(this.createSeparatorElement());\n } else if (separator.hasAttribute('data-default')) {\n // A default separator exists, replace it\n separator.replaceWith(this.createSeparatorElement());\n }\n\n // The last breadcrumb item is the \"current page\"\n if (index === items.length - 1) {\n item.setAttribute('aria-current', 'page');\n } else {\n item.removeAttribute('aria-current');\n }\n });\n };\n\n private createSeparatorElement(): HTMLElement {\n // Find a custom separator by checking direct children only\n const customSeparator = this.getCustomSeparator();\n console.log(customSeparator);\n if (customSeparator) {\n const clone = customSeparator.cloneNode(true) as HTMLElement;\n clone.removeAttribute('id');\n clone.setAttribute('data-default', '');\n clone.slot = 'separator';\n return clone;\n }\n\n // Create default separator element\n const span = document.createElement('span');\n span.innerText = '/';\n span.slot = 'separator';\n span.setAttribute('data-default', '');\n return span;\n }\n\n private getCustomSeparator() {\n if (Boolean(this.separatorIcon?.length)) {\n const sixIcon = document.createElement('six-icon');\n sixIcon.innerText = this.separatorIcon;\n sixIcon.setAttribute('size', 'small');\n return sixIcon;\n }\n return Array.from(this.host.children).find((child) => child.getAttribute('slot') === 'separator');\n }\n\n render() {\n return (\n <host>\n <nav part=\"base\">\n <slot onSlotchange={this.updateBreadcrumbItems} />\n </nav>\n </host>\n );\n }\n}\n"]}
@@ -0,0 +1,61 @@
1
+ :host {
2
+ position: relative;
3
+ box-sizing: border-box;
4
+ }
5
+ :host *, :host *:before, :host *:after {
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ /* Hides content visually while still making it available to screen readers */
10
+ .sr-only {
11
+ clip: rect(0 0 0 0);
12
+ clip-path: inset(50%);
13
+ height: 1px;
14
+ overflow: hidden;
15
+ position: absolute;
16
+ white-space: nowrap;
17
+ width: 1px;
18
+ }
19
+
20
+ /**
21
+ * @prop --separator-color: The color of the separator
22
+ * @prop --last-item-color: The color of the last breadcrumbs item
23
+ */
24
+ :host {
25
+ --last-item-color: var(--six-color-web-rock-700);
26
+ --separator-color: var(--six-color-web-rock-700);
27
+ }
28
+ :host::part(label) {
29
+ padding: unset;
30
+ }
31
+ :host::part(base) {
32
+ display: flex;
33
+ align-items: center;
34
+ }
35
+ :host::part(separator) {
36
+ align-items: center;
37
+ user-select: none;
38
+ -webkit-user-select: none;
39
+ }
40
+ :host six-button::part(label) {
41
+ padding-left: var(--six-spacing-xx-small);
42
+ padding-right: var(--six-spacing-xx-small);
43
+ }
44
+
45
+ :host([read-only]) six-button::part(base) {
46
+ color: var(--last-item-color);
47
+ }
48
+
49
+ .breadcrumb-item-readonly {
50
+ cursor: default;
51
+ }
52
+
53
+ .breadcrumb-item__separator {
54
+ display: flex;
55
+ align-items: center;
56
+ color: var(--separator-color);
57
+ }
58
+
59
+ :host(:last-of-type) .breadcrumb-item__separator {
60
+ display: none;
61
+ }
@@ -0,0 +1,123 @@
1
+ import { h } from "@stencil/core";
2
+ /**
3
+ * Breadcrumb items are used inside breadcrumbs to represent different links.
4
+ *
5
+ * @since 5.0
6
+ * @status beta
7
+ *
8
+ * @slot - The breadcrumb item’s label.
9
+ * @slot prefix - An optional prefix, usually an icon or icon button.
10
+ * @slot suffix - An optional suffix, usually an icon or icon button.
11
+ * @slot separator - The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on six-breadcrumbs instead.
12
+ *
13
+ * @part base - The component's base wrapper.
14
+ * @part button - The button that renders the item
15
+ * @part separator - The separator
16
+ */
17
+ export class SixBreadcrumbsItem {
18
+ constructor() {
19
+ /** The breadcrumbs item size. */
20
+ this.size = 'medium';
21
+ /** Set to true to readonly the breadcrumb item. */
22
+ this.readonly = false;
23
+ }
24
+ render() {
25
+ return (h("div", { key: 'c513737271cbfcd6755fa7b1effc526ec450bf04', part: "base" }, h("six-button", { key: '9f7fa7a98c83bcd536e864c486e696623a337aba', part: "button", type: "link", class: { 'breadcrumb-item-readonly': this.readonly }, href: this.readonly ? undefined : this.href, tabindex: this.readonly ? -1 : undefined, target: this.target, size: this.size }, h("slot", { key: '21702eca3e7529a8e6e2e63d640a079b9da3eef9', name: "prefix", slot: "prefix" }), h("slot", { key: 'eaeaac8681abaf25e4959615c0d7acbed2f51813' }), h("slot", { key: 'b7bf9a20d59cee15010f585e17fb3cdf1979573b', name: "suffix", slot: "suffix" })), h("span", { key: '0c4189811fa524e18bf0c0f94c7f6490c11018d9', part: "separator", class: "breadcrumb-item__separator", "aria-hidden": "true" }, h("slot", { key: '03ca6b113b73f75fbaeec04b0ec3d3224536c77b', name: "separator" }))));
26
+ }
27
+ static get is() { return "six-breadcrumbs-item"; }
28
+ static get encapsulation() { return "shadow"; }
29
+ static get originalStyleUrls() {
30
+ return {
31
+ "$": ["six-breadcrumbs-item.scss"]
32
+ };
33
+ }
34
+ static get styleUrls() {
35
+ return {
36
+ "$": ["six-breadcrumbs-item.css"]
37
+ };
38
+ }
39
+ static get properties() {
40
+ return {
41
+ "href": {
42
+ "type": "string",
43
+ "attribute": "href",
44
+ "mutable": false,
45
+ "complexType": {
46
+ "original": "string",
47
+ "resolved": "string | undefined",
48
+ "references": {}
49
+ },
50
+ "required": false,
51
+ "optional": true,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": "When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`."
55
+ },
56
+ "getter": false,
57
+ "setter": false,
58
+ "reflect": false
59
+ },
60
+ "target": {
61
+ "type": "string",
62
+ "attribute": "target",
63
+ "mutable": false,
64
+ "complexType": {
65
+ "original": "'_blank' | '_parent' | '_self' | '_top'",
66
+ "resolved": "\"_blank\" | \"_parent\" | \"_self\" | \"_top\" | undefined",
67
+ "references": {}
68
+ },
69
+ "required": false,
70
+ "optional": true,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": "Tells the browser where to open the link. Only used when `href` is set."
74
+ },
75
+ "getter": false,
76
+ "setter": false,
77
+ "reflect": false
78
+ },
79
+ "size": {
80
+ "type": "string",
81
+ "attribute": "size",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "'small' | 'medium' | 'large'",
85
+ "resolved": "\"large\" | \"medium\" | \"small\"",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "The breadcrumbs item size."
93
+ },
94
+ "getter": false,
95
+ "setter": false,
96
+ "reflect": true,
97
+ "defaultValue": "'medium'"
98
+ },
99
+ "readonly": {
100
+ "type": "boolean",
101
+ "attribute": "read-only",
102
+ "mutable": false,
103
+ "complexType": {
104
+ "original": "boolean",
105
+ "resolved": "boolean",
106
+ "references": {}
107
+ },
108
+ "required": false,
109
+ "optional": false,
110
+ "docs": {
111
+ "tags": [],
112
+ "text": "Set to true to readonly the breadcrumb item."
113
+ },
114
+ "getter": false,
115
+ "setter": false,
116
+ "reflect": true,
117
+ "defaultValue": "false"
118
+ }
119
+ };
120
+ }
121
+ static get elementRef() { return "host"; }
122
+ }
123
+ //# sourceMappingURL=six-breadcrumbs-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"six-breadcrumbs-item.js","sourceRoot":"","sources":["../../../src/components/six-breadcrumbs-item/six-breadcrumbs-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE5D;;;;;;;;;;;;;;GAcG;AAMH,MAAM,OAAO,kBAAkB;IAL/B;QAcE,iCAAiC;QACR,SAAI,GAAiC,QAAQ,CAAC;QAEvE,mDAAmD;QACF,aAAQ,GAAY,KAAK,CAAC;KAwB5E;IAtBC,MAAM;QACJ,OAAO,CACL,4DAAK,IAAI,EAAC,MAAM;YACd,mEACE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,EAAE,0BAA0B,EAAE,IAAI,CAAC,QAAQ,EAAE,EACpD,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAC3C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EACxC,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,IAAI,EAAE,IAAI,CAAC,IAAI;gBAEf,6DAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG;gBACpC,8DAAQ;gBACR,6DAAM,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,QAAQ,GAAG,CACzB;YACb,6DAAM,IAAI,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B,iBAAa,MAAM;gBAC1E,6DAAM,IAAI,EAAC,WAAW,GAAG,CACpB,CACH,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Prop } from '@stencil/core';\n\n/**\n * Breadcrumb items are used inside breadcrumbs to represent different links.\n *\n * @since 5.0\n * @status beta\n *\n * @slot - The breadcrumb item’s label.\n * @slot prefix - An optional prefix, usually an icon or icon button.\n * @slot suffix - An optional suffix, usually an icon or icon button.\n * @slot separator - The separator to use for the breadcrumb item. This will only change the separator for this item. If you want to change it for all items in the group, set the separator on six-breadcrumbs instead.\n *\n * @part base - The component's base wrapper.\n * @part button - The button that renders the item\n * @part separator - The separator\n */\n@Component({\n tag: 'six-breadcrumbs-item',\n styleUrl: 'six-breadcrumbs-item.scss',\n shadow: true,\n})\nexport class SixBreadcrumbsItem {\n @Element() host!: HTMLSixBreadcrumbsItemElement;\n\n /** When set, the underlying button will be rendered as an `<a>` with this `href` instead of a `<button>`. */\n @Prop() href?: string;\n\n /** Tells the browser where to open the link. Only used when `href` is set. */\n @Prop() target?: '_blank' | '_parent' | '_self' | '_top';\n\n /** The breadcrumbs item size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to readonly the breadcrumb item. */\n @Prop({ attribute: 'read-only', reflect: true }) readonly: boolean = false;\n\n render() {\n return (\n <div part=\"base\">\n <six-button\n part=\"button\"\n type=\"link\"\n class={{ 'breadcrumb-item-readonly': this.readonly }}\n href={this.readonly ? undefined : this.href}\n tabindex={this.readonly ? -1 : undefined}\n target={this.target}\n size={this.size}\n >\n <slot name=\"prefix\" slot=\"prefix\" />\n <slot />\n <slot name=\"suffix\" slot=\"suffix\" />\n </six-button>\n <span part=\"separator\" class=\"breadcrumb-item__separator\" aria-hidden=\"true\">\n <slot name=\"separator\" />\n </span>\n </div>\n );\n }\n}\n"]}
@@ -104,7 +104,7 @@ export class SixButton {
104
104
  const isLink = this.href != null;
105
105
  const isButton = !isLink;
106
106
  const Button = isLink ? 'a' : 'button';
107
- return (h("div", { key: '2fd3a9c4f7711290465961099b245c323139b817', onClick: this.handleClick, class: { 'button-wrapper--disabled': this.disabled } }, h(Button, { key: '4330f6a6cb46d3f34db0870b420efecafdc9913c', ref: (el) => (this.nativeButton = el), part: "base", class: {
107
+ return (h("div", { key: 'c8cdb43580af7e80984c0cbf86f269b2726ef7c0', onClick: this.handleClick, class: { 'button-wrapper--disabled': this.disabled } }, h(Button, { key: '8daeb79358745e4cb021870fdb21ba83db9d6861', ref: (el) => (this.nativeButton = el), part: "base", class: {
108
108
  button: true,
109
109
  // Types
110
110
  'button--secondary': this.type === 'secondary',
@@ -129,7 +129,7 @@ export class SixButton {
129
129
  'button--has-label': this.hasLabel,
130
130
  'button--has-prefix': this.hasPrefix,
131
131
  'button--has-suffix': this.hasSuffix,
132
- }, disabled: isButton ? this.disabled : undefined, tabindex: this.disabled ? '-1' : undefined, type: isButton ? (this.submit ? 'submit' : this.reset ? 'reset' : 'button') : undefined, name: isButton ? this.name : undefined, value: isButton ? this.value : undefined, href: isLink ? this.href : undefined, target: isLink && this.target != null ? this.target : undefined, download: isLink && this.download != null ? this.download : undefined, rel: isLink && this.target != null ? 'noreferrer noopener' : undefined, onBlur: this.handleBlur, onFocus: this.handleFocus, "data-testid": "button" }, h("span", { key: 'd2cb3cd3d699da69e4f4db249d0a25fc0fc6a4cc', part: "prefix", class: "button__prefix" }, h("slot", { key: '537e43865e5ef8fc0a09ca66c262fdf722685037', onSlotchange: this.handleSlotChange, name: "prefix" })), h("span", { key: '965d7720a89a3a2af615a891454c6ba0ca890aa3', part: "label", class: "button__label" }, h("slot", { key: '1056dfc6a614f61187ffa2edcb7bfaba27680a3e', onSlotchange: this.handleSlotChange })), h("span", { key: 'cc1df5769286f43052402cee71d8a946ded3e790', part: "suffix", class: "button__suffix" }, h("slot", { key: 'eba52e13592610c85159892e60e343b06f6ca7c2', onSlotchange: this.handleSlotChange, name: "suffix" })), this.caret && (h("span", { key: 'f4f51eeb17b00099c6918a8a393f10984e24f809', part: "caret", class: "button__caret" }, h("svg", { key: 'bbdc4a79b99c3f93dabd76033d109f2cb020b29d', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polyline", { key: '953a8016733d8d8c7a9da3144fb46fe4602ceaea', points: "6 9 12 15 18 9" })))), this.loading && h("six-spinner", { key: '2a195cdb2583e91316f333fbb0c74d04ee9fa0c3' }))));
132
+ }, disabled: isButton ? this.disabled : undefined, tabindex: this.disabled ? '-1' : undefined, type: isButton ? (this.submit ? 'submit' : this.reset ? 'reset' : 'button') : undefined, name: isButton ? this.name : undefined, value: isButton ? this.value : undefined, href: isLink ? this.href : undefined, target: isLink && this.target != null ? this.target : undefined, download: isLink && this.download != null ? this.download : undefined, rel: isLink && this.target != null ? 'noreferrer noopener' : undefined, onBlur: this.handleBlur, onFocus: this.handleFocus, "data-testid": "button" }, h("span", { key: '703ca93447400bc9ec12ea9bf1ba36abd324e1cc', part: "prefix", class: "button__prefix" }, h("slot", { key: '0a2c7a1148878d455b7d1b6785729c62eda396d6', onSlotchange: this.handleSlotChange, name: "prefix" })), h("span", { key: '74e8386afffae9cba1a72ce52a4ee75da72abdcd', part: "label", class: "button__label" }, h("slot", { key: 'ce6e54dfc9e280efa178f009e556669ccf6f45b6', onSlotchange: this.handleSlotChange })), h("span", { key: '42b0f3b72007f57caa2a7a745f628a395c999f9a', part: "suffix", class: "button__suffix" }, h("slot", { key: '4741a3a3eeffb36182eb93005afca98522983ef1', onSlotchange: this.handleSlotChange, name: "suffix" })), this.caret && (h("span", { key: '3c5a5e7e2b0ed436d6576888eed7999eb50395c3', part: "caret", class: "button__caret" }, h("svg", { key: '82a715a604bd7ed1ab8242cd3994d67dfeba9e1d', viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polyline", { key: '5c870552f2138305088348ed5e3e3b787a5b598c', points: "6 9 12 15 18 9" })))), this.loading && h("six-spinner", { key: '4267336c2eb4b8bd71567d1a7ec4ee3f32362c2f' }))));
133
133
  }
134
134
  static get is() { return "six-button"; }
135
135
  static get encapsulation() { return "shadow"; }
@@ -7,7 +7,7 @@ import { h, Host } from "@stencil/core";
7
7
  */
8
8
  export class SixCard {
9
9
  render() {
10
- return (h(Host, { key: 'd2459e12a9f8274f095a3d09a077c59a7f091dea' }, h("slot", { key: '1619a201af796250d6808a0974047644e7fb6a69' })));
10
+ return (h(Host, { key: '9a56f190ccdf8545c4503284ae32a23220e1af37' }, h("slot", { key: 'db6e7fe7d83c4e41747ad39a85bf108ce581ae87' })));
11
11
  }
12
12
  static get is() { return "six-card"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -121,14 +121,14 @@ export class SixCheckbox {
121
121
  this.hasErrorSlot = hasSlot(this.host, 'error-text');
122
122
  }
123
123
  render() {
124
- return (h(FormControl, { key: 'fb33e858f751205c8df374f3bcca37cec9f8203b', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, errorTextId: this.errorTextId, hasErrorTextSlot: this.hasErrorSlot, errorText: this.errorText, errorTextCount: this.errorTextCount, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { key: '35bfda441fe651af25cb45d75d003919c7869ae2', part: "base", class: {
124
+ return (h(FormControl, { key: '1ed8885c3a37d420684480a982a38944ca869a1a', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, errorTextId: this.errorTextId, hasErrorTextSlot: this.hasErrorSlot, errorText: this.errorText, errorTextCount: this.errorTextCount, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { key: '36a5a7bcfdd28499e70fcd432a38fc89cb48ce64', part: "base", class: {
125
125
  checkbox: true,
126
126
  'checkbox--checked': this.checked,
127
127
  'checkbox--disabled': this.disabled,
128
128
  'checkbox--focused': this.hasFocus,
129
129
  'checkbox--invalid': this.invalid,
130
130
  'checkbox--indeterminate': this.indeterminate,
131
- }, htmlFor: this.inputId, onMouseDown: this.handleMouseDown }, h("span", { key: '92d31ea45a0f1f45230def64e15bd0e81c4de140', part: "control", class: "checkbox__control" }, this.checked && (h("span", { key: '49501ea788463f4d39c5500349ace013c21d31c2', part: "checked-icon", class: "checkbox__icon" }, h("svg", { key: '8ae0e9bfe850b13a205722a5e17e90b21ad35f26', viewBox: "0 0 16 16" }, h("g", { key: '463b4761b130e5e9377efb7e26f57218ce5249ad', stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { key: '147d4348146dcace57835e436453bc834763c464', stroke: "currentColor", "stroke-width": "2" }, h("g", { key: '6596f4cd75b94d8ff3bef19698acc56a6eab847a', transform: "translate(3.428571, 3.428571)" }, h("path", { key: '453cfb8ae9d6d4e45f1b569e06ba79ac2a0d2b9c', d: "M0,5.71428571 L3.42857143,9.14285714" }), h("path", { key: 'b650801a5ae8fde8886b9e1fb4257eca704beabd', d: "M9.14285714,0 L3.42857143,9.14285714" }))))))), !this.checked && this.indeterminate && (h("span", { key: 'ab31b1999eae88b74c5bdeb1bbc1007b0459f8a8', part: "indeterminate-icon", class: "checkbox__icon" }, h("svg", { key: '8d5cf52fc16243531056ba760d9c770decd593e3', viewBox: "0 0 16 16" }, h("g", { key: 'fb8ee93f8ec5abc82f8d982cc2ad59c4ae77fb91', stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { key: '825161dbc71cfc395061b3ef485352762c8780c5', stroke: "currentColor", "stroke-width": "2" }, h("g", { key: 'c5541fd6e2d69a376278cd617447a8b9bfe6a0d6', transform: "translate(2.285714, 6.857143)" }, h("path", { key: '6c1f488d0572c2773b8497cd6214dcfdc64164ef', d: "M10.2857143,1.14285714 L1.14285714,1.14285714" }))))))), h("input", { key: '2e8ac6e459e47708116702585a5155ee4385d021', ref: (el) => (this.nativeInput = el), id: this.inputId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "checkbox", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus })), h("span", { key: '817dae0dcffedf7de011d0fa68ce3a1ca45bbd3a', part: "text", id: this.textId, class: "checkbox__text" }, h("slot", { key: 'e0f9b77cf11c592efd6b312888491a3b5e84bb32' })))));
131
+ }, htmlFor: this.inputId, onMouseDown: this.handleMouseDown }, h("span", { key: '837373ab4ae9a6f90852f4d9176ac6e844d31579', part: "control", class: "checkbox__control" }, this.checked && (h("span", { key: 'f7d9c7ba567ee2d28913714cfb8fdb972e0b9f25', part: "checked-icon", class: "checkbox__icon" }, h("svg", { key: '2193316f61d53f3302e14a43b587b07778ae590e', viewBox: "0 0 16 16" }, h("g", { key: '36990bcb579ade7b26a26d6b93a8dd4f8226781e', stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { key: '712be85f8623db8f143ef64f9c44b6433a530eab', stroke: "currentColor", "stroke-width": "2" }, h("g", { key: 'e716ffab7308468ccc86b294d0052428a2ca0602', transform: "translate(3.428571, 3.428571)" }, h("path", { key: 'a2ca8e37d8ff88bf94adfc7af850c447b9a4e9b4', d: "M0,5.71428571 L3.42857143,9.14285714" }), h("path", { key: '82f92da775cb1e49281eaee37792e326c5b41a60', d: "M9.14285714,0 L3.42857143,9.14285714" }))))))), !this.checked && this.indeterminate && (h("span", { key: 'b852b9c3dc0d083d9ba3b9f24c2f8f93f42bfe9b', part: "indeterminate-icon", class: "checkbox__icon" }, h("svg", { key: '2f888c93c3a69846ef8d96858f9064c7da02f37d', viewBox: "0 0 16 16" }, h("g", { key: '33828186ba162b59f88d3528453e497c59ea5211', stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { key: 'a71f0a3498aa7cab1e9be14f07558813b8f4b287', stroke: "currentColor", "stroke-width": "2" }, h("g", { key: '2ff1a113d888f14358845323cccae4b9d8bbd1e0', transform: "translate(2.285714, 6.857143)" }, h("path", { key: '737d8c10e532a2037e20997d5f41cc99fa84dc03', d: "M10.2857143,1.14285714 L1.14285714,1.14285714" }))))))), h("input", { key: '0fef28fe71ba5263a33eadda6a63329b3d2bec1f', ref: (el) => (this.nativeInput = el), id: this.inputId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "checkbox", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus })), h("span", { key: 'db92ca95a892368e88b2aecfeff53a54eb5cc683', part: "text", id: this.textId, class: "checkbox__text" }, h("slot", { key: 'c2f6c9778b16dc344ad342254ef9ff2b624334f1' })))));
132
132
  }
133
133
  static get is() { return "six-checkbox"; }
134
134
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,4 @@
1
- import { isValid, format, parse, parseISO, formatISO } from "date-fns";
1
+ import { format, formatISO, isValid, parse, parseISO } from "date-fns";
2
2
  /**
3
3
  * Validates a date string against a given format and returns an IsoDate if valid.
4
4
  *
@@ -18,7 +18,7 @@ import { isValid, format, parse, parseISO, formatISO } from "date-fns";
18
18
  */
19
19
  export function fromFormattedString(dateString, dateFormat) {
20
20
  const date = parse(dateString, dateFormat, new Date());
21
- if (isValid(date) && format(date, dateFormat) === dateString) {
21
+ if (isValid(date)) {
22
22
  return fromDate(date);
23
23
  }
24
24
  return undefined;
@@ -68,6 +68,38 @@ export function toPointerDate(isoDate) {
68
68
  day: parseInt(isoDate.slice(8), 10),
69
69
  };
70
70
  }
71
+ export function nextPointerDate(selectionMode, pointerDate) {
72
+ if (selectionMode === 'day') {
73
+ if (pointerDate.month === 12) {
74
+ return { year: pointerDate.year + 1, month: 1, day: 1 };
75
+ }
76
+ else {
77
+ return { year: pointerDate.year, month: pointerDate.month + 1, day: 1 };
78
+ }
79
+ }
80
+ else if (selectionMode === 'month') {
81
+ return Object.assign(Object.assign({}, pointerDate), { year: pointerDate.year + 1 });
82
+ }
83
+ else if (selectionMode === 'year') {
84
+ return Object.assign(Object.assign({}, pointerDate), { year: pointerDate.year + 25 });
85
+ }
86
+ return pointerDate;
87
+ }
88
+ export function previousPointerDate(selectionMode, pointerDate) {
89
+ switch (selectionMode) {
90
+ case 'day':
91
+ if (pointerDate.month === 1) {
92
+ return { year: pointerDate.year - 1, month: 12, day: 1 };
93
+ }
94
+ else {
95
+ return { year: pointerDate.year, month: pointerDate.month - 1, day: 1 };
96
+ }
97
+ case 'month':
98
+ return Object.assign(Object.assign({}, pointerDate), { year: pointerDate.year - 1 });
99
+ case 'year':
100
+ return Object.assign(Object.assign({}, pointerDate), { year: pointerDate.year - 25 });
101
+ }
102
+ }
71
103
  export function todayAsPointerDate() {
72
104
  const today = new Date();
73
105
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"iso-date.js","sourceRoot":"","sources":["../../../src/components/six-date/iso-date.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAavE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,mBAAmB,CAAC,UAAkB,EAAE,UAAkB;IACxE,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IAEvD,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,KAAK,UAAU,EAAE,CAAC;QAC7D,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,UAAU,CAAC,OAAgB,EAAE,UAAkB;IAC7D,OAAO,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAU;IACjC,OAAO,SAAS,CAAC,IAAI,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,CAAY,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,KAAK;IACnB,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAe;IAC5C,OAAO,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAAgB;IACvC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,OAAgB;IACtC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAgB;IAC5C,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,qBAAqB,OAAO,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,OAAO;QACL,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;QACvC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;QACxC,GAAG,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,MAAM,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;IACzB,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE;QACzB,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC;QAC3B,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE;KACrB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;QACjB,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,EAAE,CAAC;IACtD,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QACxD,OAAO;YACL,KAAK,EAAE,EAAE;YACT,WAAW,EAAE,kBAAkB,EAAE;YACjC,OAAO,EAAE,wBAAwB,KAAK,0DAA0D;SACjG,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;AACtD,CAAC","sourcesContent":["import { isValid, format, parse, parseISO, formatISO } from 'date-fns';\n\n/**\n * Represent an iso date string like `2021-01-08`.\n */\nexport type IsoDate = string;\n\nexport interface PointerDate {\n year: number;\n month: number;\n day: number;\n}\n\n/**\n * Validates a date string against a given format and returns an IsoDate if valid.\n *\n * Example format patterns for year, month, and day:\n * - Year: \"yyyy\" (e.g., \"2021\")\n * - Month: \"MM\" (e.g., \"01\" for January, \"12\" for December)\n * - Day: \"dd\" (e.g., \"08\" for the 8th day of the month)\n *\n * Common format examples:\n * - \"yyyy-MM-dd\" (e.g., \"2021-01-08\")\n * - \"dd.MM.yyyy\" (e.g., \"08.01.2021\")\n * - \"MM/dd/yyyy\" (e.g., \"01/08/2021\")\n *\n * @param dateString - The date string to validate.\n * @param dateFormat - The expected format of the date string (e.g., \"yyyy-MM-dd\").\n * @returns An IsoDate if the date string is valid, otherwise undefined.\n */\nexport function fromFormattedString(dateString: string, dateFormat: string): IsoDate | undefined {\n const date = parse(dateString, dateFormat, new Date());\n\n if (isValid(date) && format(date, dateFormat) === dateString) {\n return fromDate(date);\n }\n\n return undefined;\n}\n\n/**\n * Formats a given ISO date string into a specified format.\n *\n * Example format patterns for year, month, and day:\n * - Year: \"yyyy\" (e.g., \"2021\")\n * - Month: \"MM\" (e.g., \"01\" for January, \"12\" for December)\n * - Day: \"dd\" (e.g., \"08\" for the 8th day of the month)\n *\n * Common format examples:\n * - \"yyyy-MM-dd\" (e.g., \"2021-01-08\")\n * - \"dd.MM.yyyy\" (e.g., \"08.01.2021\")\n * - \"MM/dd/yyyy\" (e.g., \"01/08/2021\")\n *\n * @param {IsoDate} isoDate - The ISO date string to be formatted.\n * @param {string} dateFormat - The desired date format string.\n * @return {string} A string representing the formatted date.\n */\nexport function formatDate(isoDate: IsoDate, dateFormat: string): string {\n return format(parseISO(isoDate), dateFormat);\n}\n\nexport function fromDate(date: Date): IsoDate {\n return formatISO(date, { representation: 'date' }) as IsoDate;\n}\n\nexport function today(): IsoDate {\n return fromDate(new Date());\n}\n\nexport function isValidIsoDate(isoDate: string): isoDate is IsoDate {\n return isValid(parseISO(isoDate));\n}\n\nexport function getMonth(isoDate: IsoDate): number {\n return toPointerDate(isoDate).month;\n}\n\nexport function getYear(isoDate: IsoDate): number {\n return toPointerDate(isoDate).year;\n}\n\nexport function toPointerDate(isoDate: IsoDate): PointerDate {\n if (!isValidIsoDate(isoDate)) {\n throw new Error(`Invalid ISO date: ${isoDate}`);\n }\n\n return {\n year: parseInt(isoDate.slice(0, 4), 10),\n month: parseInt(isoDate.slice(5, 7), 10),\n day: parseInt(isoDate.slice(8), 10),\n };\n}\n\nexport function todayAsPointerDate(): PointerDate {\n const today = new Date();\n return {\n year: today.getFullYear(),\n month: today.getMonth() + 1,\n day: today.getDate(),\n };\n}\n\nexport function cleanupValue(value: unknown): { value: IsoDate | ''; pointerDate: PointerDate; warning?: string } {\n if (value === '') {\n return { value, pointerDate: todayAsPointerDate() };\n }\n\n if (typeof value !== 'string' || !isValidIsoDate(value)) {\n return {\n value: '',\n pointerDate: todayAsPointerDate(),\n warning: `The specified value '${value}' does not conform to the required format, \"yyyy-MM-dd\".`,\n };\n }\n\n return { value, pointerDate: toPointerDate(value) };\n}\n"]}
1
+ {"version":3,"file":"iso-date.js","sourceRoot":"","sources":["../../../src/components/six-date/iso-date.ts"],"names":[],"mappings":"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","sourcesContent":["import { format, formatISO, isValid, parse, parseISO } from 'date-fns';\n\n/**\n * Represent an iso date string like `2021-01-08`.\n */\nexport type IsoDate = string;\n\nexport interface PointerDate {\n year: number;\n month: number;\n day: number;\n}\n\n/**\n * Validates a date string against a given format and returns an IsoDate if valid.\n *\n * Example format patterns for year, month, and day:\n * - Year: \"yyyy\" (e.g., \"2021\")\n * - Month: \"MM\" (e.g., \"01\" for January, \"12\" for December)\n * - Day: \"dd\" (e.g., \"08\" for the 8th day of the month)\n *\n * Common format examples:\n * - \"yyyy-MM-dd\" (e.g., \"2021-01-08\")\n * - \"dd.MM.yyyy\" (e.g., \"08.01.2021\")\n * - \"MM/dd/yyyy\" (e.g., \"01/08/2021\")\n *\n * @param dateString - The date string to validate.\n * @param dateFormat - The expected format of the date string (e.g., \"yyyy-MM-dd\").\n * @returns An IsoDate if the date string is valid, otherwise undefined.\n */\nexport function fromFormattedString(dateString: string, dateFormat: string): IsoDate | undefined {\n const date = parse(dateString, dateFormat, new Date());\n if (isValid(date)) {\n return fromDate(date);\n }\n return undefined;\n}\n\n/**\n * Formats a given ISO date string into a specified format.\n *\n * Example format patterns for year, month, and day:\n * - Year: \"yyyy\" (e.g., \"2021\")\n * - Month: \"MM\" (e.g., \"01\" for January, \"12\" for December)\n * - Day: \"dd\" (e.g., \"08\" for the 8th day of the month)\n *\n * Common format examples:\n * - \"yyyy-MM-dd\" (e.g., \"2021-01-08\")\n * - \"dd.MM.yyyy\" (e.g., \"08.01.2021\")\n * - \"MM/dd/yyyy\" (e.g., \"01/08/2021\")\n *\n * @param {IsoDate} isoDate - The ISO date string to be formatted.\n * @param {string} dateFormat - The desired date format string.\n * @return {string} A string representing the formatted date.\n */\nexport function formatDate(isoDate: IsoDate, dateFormat: string): string {\n return format(parseISO(isoDate), dateFormat);\n}\n\nexport function fromDate(date: Date): IsoDate {\n return formatISO(date, { representation: 'date' }) as IsoDate;\n}\n\nexport function today(): IsoDate {\n return fromDate(new Date());\n}\n\nexport function isValidIsoDate(isoDate: string): isoDate is IsoDate {\n return isValid(parseISO(isoDate));\n}\n\nexport function getMonth(isoDate: IsoDate): number {\n return toPointerDate(isoDate).month;\n}\n\nexport function getYear(isoDate: IsoDate): number {\n return toPointerDate(isoDate).year;\n}\n\nexport function toPointerDate(isoDate: IsoDate): PointerDate {\n if (!isValidIsoDate(isoDate)) {\n throw new Error(`Invalid ISO date: ${isoDate}`);\n }\n return {\n year: parseInt(isoDate.slice(0, 4), 10),\n month: parseInt(isoDate.slice(5, 7), 10),\n day: parseInt(isoDate.slice(8), 10),\n };\n}\n\nexport function nextPointerDate(selectionMode: 'day' | 'month' | 'year', pointerDate: PointerDate): PointerDate {\n if (selectionMode === 'day') {\n if (pointerDate.month === 12) {\n return { year: pointerDate.year + 1, month: 1, day: 1 };\n } else {\n return { year: pointerDate.year, month: pointerDate.month + 1, day: 1 };\n }\n } else if (selectionMode === 'month') {\n return { ...pointerDate, year: pointerDate.year + 1 };\n } else if (selectionMode === 'year') {\n return { ...pointerDate, year: pointerDate.year + 25 };\n }\n return pointerDate;\n}\n\nexport function previousPointerDate(selectionMode: 'day' | 'month' | 'year', pointerDate: PointerDate): PointerDate {\n switch (selectionMode) {\n case 'day':\n if (pointerDate.month === 1) {\n return { year: pointerDate.year - 1, month: 12, day: 1 };\n } else {\n return { year: pointerDate.year, month: pointerDate.month - 1, day: 1 };\n }\n case 'month':\n return { ...pointerDate, year: pointerDate.year - 1 };\n case 'year':\n return { ...pointerDate, year: pointerDate.year - 25 };\n }\n}\n\nexport function todayAsPointerDate(): PointerDate {\n const today = new Date();\n return {\n year: today.getFullYear(),\n month: today.getMonth() + 1,\n day: today.getDate(),\n };\n}\n\nexport function cleanupValue(value: unknown): { value: IsoDate | ''; pointerDate: PointerDate; warning?: string } {\n if (value === '') {\n return { value, pointerDate: todayAsPointerDate() };\n }\n\n if (typeof value !== 'string' || !isValidIsoDate(value)) {\n return {\n value: '',\n pointerDate: todayAsPointerDate(),\n warning: `The specified value '${value}' does not conform to the required format, \"yyyy-MM-dd\".`,\n };\n }\n\n return { value, pointerDate: toPointerDate(value) };\n}\n"]}