@six-group/ui-library 0.0.0-insider.bb295d8 → 0.0.0-insider.c27b8ba

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 (700) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/{form-control-72186fcc.js → form-control-73ff961d.js} +2 -2
  4. package/dist/cjs/{form-control-72186fcc.js.map → form-control-73ff961d.js.map} +1 -1
  5. package/dist/cjs/{index-5dd19c4b.js → index-b288f7d9.js} +81 -495
  6. package/dist/cjs/index-b288f7d9.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +5 -3
  8. package/dist/cjs/loader.cjs.js.map +1 -1
  9. package/dist/cjs/{modal-3ce015be.js → modal-bd7fc5bc.js} +1 -18
  10. package/dist/cjs/modal-bd7fc5bc.js.map +1 -0
  11. package/dist/cjs/six-alert.cjs.entry.js +17 -7
  12. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  13. package/dist/cjs/six-avatar.cjs.entry.js +4 -3
  14. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  15. package/dist/cjs/six-badge.cjs.entry.js +5 -4
  16. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  17. package/dist/cjs/six-button.cjs.entry.js +5 -4
  18. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  19. package/dist/cjs/six-card.cjs.entry.js +4 -3
  20. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  21. package/dist/cjs/six-checkbox_2.cjs.entry.js +11 -9
  22. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -1
  23. package/dist/cjs/six-datepicker.cjs.entry.js +29 -3
  24. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  25. package/dist/cjs/six-details.cjs.entry.js +7 -6
  26. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  27. package/dist/cjs/six-dialog.cjs.entry.js +14 -30
  28. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  29. package/dist/cjs/six-drawer.cjs.entry.js +13 -30
  30. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-dropdown_2.cjs.entry.js +17 -13
  32. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-error-page.cjs.entry.js +4 -3
  34. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-error.cjs.entry.js +4 -3
  36. package/dist/cjs/six-error.cjs.entry.js.map +1 -1
  37. package/dist/cjs/six-file-list-item.cjs.entry.js +5 -4
  38. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  39. package/dist/cjs/six-file-list.cjs.entry.js +4 -3
  40. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-file-upload.cjs.entry.js +11 -9
  42. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-footer.cjs.entry.js +4 -3
  44. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-group-label.cjs.entry.js +5 -4
  46. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-header.cjs.entry.js +13 -12
  48. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  49. package/dist/cjs/six-icon-button.cjs.entry.js +6 -5
  50. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  51. package/dist/cjs/six-icon.cjs.entry.js +5 -4
  52. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  53. package/dist/cjs/six-input.cjs.entry.js +7 -6
  54. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  55. package/dist/cjs/six-item-picker.cjs.entry.js +6 -5
  56. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-language-switcher.cjs.entry.js +11 -6
  58. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-layout-grid.cjs.entry.js +4 -3
  60. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-main-container.cjs.entry.js +4 -3
  62. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-menu-divider.cjs.entry.js +4 -3
  64. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  65. package/dist/cjs/six-menu-label.cjs.entry.js +4 -3
  66. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  67. package/dist/cjs/six-picto.cjs.entry.js +4 -3
  68. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  69. package/dist/cjs/six-progress-bar.cjs.entry.js +5 -4
  70. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  71. package/dist/cjs/six-progress-ring.cjs.entry.js +4 -3
  72. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-radio.cjs.entry.js +5 -4
  74. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  75. package/dist/cjs/six-range.cjs.entry.js +17 -6
  76. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  77. package/dist/cjs/six-root.cjs.entry.js +4 -22
  78. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-search-field.cjs.entry.js +4 -3
  80. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-select.cjs.entry.js +10 -9
  82. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +4 -3
  84. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-sidebar-item.cjs.entry.js +5 -4
  86. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-sidebar.cjs.entry.js +5 -4
  88. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-spinner.cjs.entry.js +3 -2
  90. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  91. package/dist/cjs/six-stage-indicator.cjs.entry.js +23 -0
  92. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
  93. package/dist/cjs/six-switch.cjs.entry.js +6 -5
  94. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-tab-group.cjs.entry.js +34 -8
  96. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-tab-panel.cjs.entry.js +4 -3
  98. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-tab.cjs.entry.js +5 -4
  100. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-tag.cjs.entry.js +5 -4
  102. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  103. package/dist/cjs/six-textarea.cjs.entry.js +6 -5
  104. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  105. package/dist/cjs/six-tile.cjs.entry.js +6 -5
  106. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  107. package/dist/cjs/six-timepicker.cjs.entry.js +4 -3
  108. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  109. package/dist/cjs/six-tooltip.cjs.entry.js +5 -4
  110. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  111. package/dist/cjs/ui-library.cjs.js +6 -4
  112. package/dist/cjs/ui-library.cjs.js.map +1 -1
  113. package/dist/collection/collection-manifest.json +4 -5
  114. package/dist/collection/components/six-alert/six-alert.js +15 -6
  115. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  116. package/dist/collection/components/six-avatar/six-avatar.js +1 -1
  117. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  118. package/dist/collection/components/six-badge/six-badge.js +2 -2
  119. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  120. package/dist/collection/components/six-button/six-button.js +2 -2
  121. package/dist/collection/components/six-button/six-button.js.map +1 -1
  122. package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -1
  123. package/dist/collection/components/six-card/six-card.js +1 -1
  124. package/dist/collection/components/six-card/six-card.js.map +1 -1
  125. package/dist/collection/components/six-checkbox/six-checkbox.css +2 -0
  126. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  127. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  128. package/dist/collection/components/six-datepicker/six-datepicker.js +3 -3
  129. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  130. package/dist/collection/components/six-details/six-details.css +0 -4
  131. package/dist/collection/components/six-details/six-details.js +3 -3
  132. package/dist/collection/components/six-details/six-details.js.map +1 -1
  133. package/dist/collection/components/six-dialog/six-dialog.js +10 -28
  134. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  135. package/dist/collection/components/six-drawer/six-drawer.js +9 -28
  136. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  137. package/dist/collection/components/six-dropdown/six-dropdown.js +10 -8
  138. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  139. package/dist/collection/components/six-error/six-error.js +1 -1
  140. package/dist/collection/components/six-error/six-error.js.map +1 -1
  141. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  142. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  143. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  144. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  145. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  146. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  147. package/dist/collection/components/six-file-upload/six-file-upload.css +8 -0
  148. package/dist/collection/components/six-file-upload/six-file-upload.js +25 -6
  149. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  150. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +76 -21
  151. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -1
  152. package/dist/collection/components/six-footer/six-footer.js +1 -1
  153. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  154. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  155. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  156. package/dist/collection/components/six-header/six-header.js +10 -10
  157. package/dist/collection/components/six-header/six-header.js.map +1 -1
  158. package/dist/collection/components/six-icon/six-icon.js +2 -2
  159. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  160. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  161. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  162. package/dist/collection/components/six-input/six-input.js +3 -3
  163. package/dist/collection/components/six-input/six-input.js.map +1 -1
  164. package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
  165. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  166. package/dist/collection/components/six-language-switcher/six-language-switcher.css +7 -2
  167. package/dist/collection/components/six-language-switcher/six-language-switcher.js +7 -3
  168. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  169. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +20 -20
  170. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -1
  171. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  172. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  173. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  174. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  175. package/dist/collection/components/six-menu/six-menu.js +2 -2
  176. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  177. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -1
  178. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  179. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  180. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  181. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  182. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  183. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  184. package/dist/collection/components/six-picto/six-picto.js +1 -1
  185. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  186. package/dist/collection/components/six-progress-bar/six-progress-bar.js +2 -2
  187. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  188. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  189. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  190. package/dist/collection/components/six-radio/six-radio.js +2 -2
  191. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  192. package/dist/collection/components/six-range/six-range.css +1 -1
  193. package/dist/collection/components/six-range/six-range.js +12 -2
  194. package/dist/collection/components/six-range/six-range.js.map +1 -1
  195. package/dist/collection/components/six-root/six-root.js +1 -69
  196. package/dist/collection/components/six-root/six-root.js.map +1 -1
  197. package/dist/collection/components/six-root/test/six-root.spec.js +0 -7
  198. package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -1
  199. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  200. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  201. package/dist/collection/components/six-select/six-select.js +6 -6
  202. package/dist/collection/components/six-select/six-select.js.map +1 -1
  203. package/dist/collection/components/six-select/util.js.map +1 -1
  204. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  205. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  206. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  207. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  208. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +1 -0
  209. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  210. package/dist/collection/components/six-switch/six-switch.js +2 -2
  211. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  212. package/dist/collection/components/six-tab/six-tab.js +2 -2
  213. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  214. package/dist/collection/components/six-tab-group/six-tab-group.js +33 -7
  215. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  216. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  217. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  218. package/dist/collection/components/six-tag/six-tag.js +2 -2
  219. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  220. package/dist/collection/components/six-textarea/six-textarea.js +2 -2
  221. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  222. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -1
  223. package/dist/collection/components/six-tile/six-tile.js +3 -3
  224. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  225. package/dist/collection/components/six-timepicker/six-timepicker.js +1 -1
  226. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  227. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -1
  228. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  229. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  230. package/dist/collection/utils/alert.js.map +1 -1
  231. package/dist/collection/utils/date-util.js +25 -0
  232. package/dist/collection/utils/date-util.js.map +1 -1
  233. package/dist/collection/utils/date-util.spec.js.map +1 -1
  234. package/dist/collection/utils/error-messages.js.map +1 -1
  235. package/dist/collection/utils/event-listeners.js.map +1 -1
  236. package/dist/collection/utils/focus-visible.js.map +1 -1
  237. package/dist/collection/utils/form.js.map +1 -1
  238. package/dist/collection/utils/modal.js.map +1 -1
  239. package/dist/collection/utils/popover.js.map +1 -1
  240. package/dist/collection/utils/popup.js.map +1 -1
  241. package/dist/collection/utils/scroll.js.map +1 -1
  242. package/dist/collection/utils/slot.js.map +1 -1
  243. package/dist/collection/utils/tabbable.js.map +1 -1
  244. package/dist/collection/utils/time.util.js.map +1 -1
  245. package/dist/collection/utils/time.util.spec.js.map +1 -1
  246. package/dist/components/index.js +0 -2
  247. package/dist/components/index.js.map +1 -1
  248. package/dist/components/modal.js +1 -17
  249. package/dist/components/modal.js.map +1 -1
  250. package/dist/components/six-alert.js +16 -6
  251. package/dist/components/six-alert.js.map +1 -1
  252. package/dist/components/six-avatar.js +3 -2
  253. package/dist/components/six-avatar.js.map +1 -1
  254. package/dist/components/six-badge.js +4 -3
  255. package/dist/components/six-badge.js.map +1 -1
  256. package/dist/components/six-button2.js +4 -3
  257. package/dist/components/six-button2.js.map +1 -1
  258. package/dist/components/six-card.js +3 -2
  259. package/dist/components/six-card.js.map +1 -1
  260. package/dist/components/six-checkbox2.js +5 -4
  261. package/dist/components/six-checkbox2.js.map +1 -1
  262. package/dist/components/six-datepicker.js +28 -2
  263. package/dist/components/six-datepicker.js.map +1 -1
  264. package/dist/components/six-details2.js +6 -5
  265. package/dist/components/six-details2.js.map +1 -1
  266. package/dist/components/six-dialog.js +13 -29
  267. package/dist/components/six-dialog.js.map +1 -1
  268. package/dist/components/six-drawer.js +12 -29
  269. package/dist/components/six-drawer.js.map +1 -1
  270. package/dist/components/six-dropdown2.js +12 -9
  271. package/dist/components/six-dropdown2.js.map +1 -1
  272. package/dist/components/six-error-page.js +3 -2
  273. package/dist/components/six-error-page.js.map +1 -1
  274. package/dist/components/six-error2.js +3 -2
  275. package/dist/components/six-error2.js.map +1 -1
  276. package/dist/components/six-file-list-item.js +4 -3
  277. package/dist/components/six-file-list-item.js.map +1 -1
  278. package/dist/components/six-file-list.js +3 -2
  279. package/dist/components/six-file-list.js.map +1 -1
  280. package/dist/components/six-file-upload.js +19 -10
  281. package/dist/components/six-file-upload.js.map +1 -1
  282. package/dist/components/six-footer.js +3 -2
  283. package/dist/components/six-footer.js.map +1 -1
  284. package/dist/components/six-group-label.js +3 -2
  285. package/dist/components/six-group-label.js.map +1 -1
  286. package/dist/components/six-header.js +12 -11
  287. package/dist/components/six-header.js.map +1 -1
  288. package/dist/components/six-icon-button2.js +5 -4
  289. package/dist/components/six-icon-button2.js.map +1 -1
  290. package/dist/components/six-icon2.js +4 -3
  291. package/dist/components/six-icon2.js.map +1 -1
  292. package/dist/components/six-input2.js +5 -4
  293. package/dist/components/six-input2.js.map +1 -1
  294. package/dist/components/six-item-picker2.js +5 -4
  295. package/dist/components/six-item-picker2.js.map +1 -1
  296. package/dist/components/six-language-switcher.js +10 -5
  297. package/dist/components/six-language-switcher.js.map +1 -1
  298. package/dist/components/six-layout-grid.js +3 -2
  299. package/dist/components/six-layout-grid.js.map +1 -1
  300. package/dist/components/six-main-container.js +3 -2
  301. package/dist/components/six-main-container.js.map +1 -1
  302. package/dist/components/six-menu-divider.js +3 -2
  303. package/dist/components/six-menu-divider.js.map +1 -1
  304. package/dist/components/six-menu-item2.js +4 -3
  305. package/dist/components/six-menu-item2.js.map +1 -1
  306. package/dist/components/six-menu-label.js +3 -2
  307. package/dist/components/six-menu-label.js.map +1 -1
  308. package/dist/components/six-menu2.js +4 -3
  309. package/dist/components/six-menu2.js.map +1 -1
  310. package/dist/components/six-picto2.js +3 -2
  311. package/dist/components/six-picto2.js.map +1 -1
  312. package/dist/components/six-progress-bar.js +4 -3
  313. package/dist/components/six-progress-bar.js.map +1 -1
  314. package/dist/components/six-progress-ring.js +3 -2
  315. package/dist/components/six-progress-ring.js.map +1 -1
  316. package/dist/components/six-radio.js +4 -3
  317. package/dist/components/six-radio.js.map +1 -1
  318. package/dist/components/six-range.js +15 -4
  319. package/dist/components/six-range.js.map +1 -1
  320. package/dist/components/six-root.js +6 -34
  321. package/dist/components/six-root.js.map +1 -1
  322. package/dist/components/six-search-field.js +3 -2
  323. package/dist/components/six-search-field.js.map +1 -1
  324. package/dist/components/six-select.js +8 -7
  325. package/dist/components/six-select.js.map +1 -1
  326. package/dist/components/six-sidebar-item-group.js +3 -2
  327. package/dist/components/six-sidebar-item-group.js.map +1 -1
  328. package/dist/components/six-sidebar-item.js +4 -3
  329. package/dist/components/six-sidebar-item.js.map +1 -1
  330. package/dist/components/six-sidebar.js +4 -3
  331. package/dist/components/six-sidebar.js.map +1 -1
  332. package/dist/components/six-spinner2.js +2 -1
  333. package/dist/components/six-spinner2.js.map +1 -1
  334. package/dist/components/six-stage-indicator2.js +2 -1
  335. package/dist/components/six-stage-indicator2.js.map +1 -1
  336. package/dist/components/six-switch.js +4 -3
  337. package/dist/components/six-switch.js.map +1 -1
  338. package/dist/components/six-tab-group.js +35 -8
  339. package/dist/components/six-tab-group.js.map +1 -1
  340. package/dist/components/six-tab-panel.js +3 -2
  341. package/dist/components/six-tab-panel.js.map +1 -1
  342. package/dist/components/six-tab.js +4 -3
  343. package/dist/components/six-tab.js.map +1 -1
  344. package/dist/components/six-tag.js +4 -3
  345. package/dist/components/six-tag.js.map +1 -1
  346. package/dist/components/six-textarea.js +4 -3
  347. package/dist/components/six-textarea.js.map +1 -1
  348. package/dist/components/six-tile.js +5 -4
  349. package/dist/components/six-tile.js.map +1 -1
  350. package/dist/components/six-timepicker2.js +3 -2
  351. package/dist/components/six-timepicker2.js.map +1 -1
  352. package/dist/components/six-tooltip2.js +4 -3
  353. package/dist/components/six-tooltip2.js.map +1 -1
  354. package/dist/components.json +45 -110
  355. package/dist/esm/app-globals-0f993ce5.js +5 -0
  356. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  357. package/dist/esm/{form-control-77fcccd0.js → form-control-40c37714.js} +2 -2
  358. package/dist/esm/{form-control-77fcccd0.js.map → form-control-40c37714.js.map} +1 -1
  359. package/dist/esm/{index-6c10d50b.js → index-52a755dc.js} +81 -495
  360. package/dist/esm/index-52a755dc.js.map +1 -0
  361. package/dist/esm/loader.js +6 -4
  362. package/dist/esm/loader.js.map +1 -1
  363. package/dist/esm/{modal-96526245.js → modal-6c1288e3.js} +2 -18
  364. package/dist/esm/modal-6c1288e3.js.map +1 -0
  365. package/dist/esm/six-alert.entry.js +17 -7
  366. package/dist/esm/six-alert.entry.js.map +1 -1
  367. package/dist/esm/six-avatar.entry.js +4 -3
  368. package/dist/esm/six-avatar.entry.js.map +1 -1
  369. package/dist/esm/six-badge.entry.js +5 -4
  370. package/dist/esm/six-badge.entry.js.map +1 -1
  371. package/dist/esm/six-button.entry.js +5 -4
  372. package/dist/esm/six-button.entry.js.map +1 -1
  373. package/dist/esm/six-card.entry.js +4 -3
  374. package/dist/esm/six-card.entry.js.map +1 -1
  375. package/dist/esm/six-checkbox_2.entry.js +11 -9
  376. package/dist/esm/six-checkbox_2.entry.js.map +1 -1
  377. package/dist/esm/six-datepicker.entry.js +29 -3
  378. package/dist/esm/six-datepicker.entry.js.map +1 -1
  379. package/dist/esm/six-details.entry.js +7 -6
  380. package/dist/esm/six-details.entry.js.map +1 -1
  381. package/dist/esm/six-dialog.entry.js +14 -30
  382. package/dist/esm/six-dialog.entry.js.map +1 -1
  383. package/dist/esm/six-drawer.entry.js +13 -30
  384. package/dist/esm/six-drawer.entry.js.map +1 -1
  385. package/dist/esm/six-dropdown_2.entry.js +17 -13
  386. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  387. package/dist/esm/six-error-page.entry.js +4 -3
  388. package/dist/esm/six-error-page.entry.js.map +1 -1
  389. package/dist/esm/six-error.entry.js +4 -3
  390. package/dist/esm/six-error.entry.js.map +1 -1
  391. package/dist/esm/six-file-list-item.entry.js +5 -4
  392. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  393. package/dist/esm/six-file-list.entry.js +4 -3
  394. package/dist/esm/six-file-list.entry.js.map +1 -1
  395. package/dist/esm/six-file-upload.entry.js +11 -9
  396. package/dist/esm/six-file-upload.entry.js.map +1 -1
  397. package/dist/esm/six-footer.entry.js +4 -3
  398. package/dist/esm/six-footer.entry.js.map +1 -1
  399. package/dist/esm/six-group-label.entry.js +5 -4
  400. package/dist/esm/six-group-label.entry.js.map +1 -1
  401. package/dist/esm/six-header.entry.js +13 -12
  402. package/dist/esm/six-header.entry.js.map +1 -1
  403. package/dist/esm/six-icon-button.entry.js +6 -5
  404. package/dist/esm/six-icon-button.entry.js.map +1 -1
  405. package/dist/esm/six-icon.entry.js +5 -4
  406. package/dist/esm/six-icon.entry.js.map +1 -1
  407. package/dist/esm/six-input.entry.js +7 -6
  408. package/dist/esm/six-input.entry.js.map +1 -1
  409. package/dist/esm/six-item-picker.entry.js +6 -5
  410. package/dist/esm/six-item-picker.entry.js.map +1 -1
  411. package/dist/esm/six-language-switcher.entry.js +11 -6
  412. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  413. package/dist/esm/six-layout-grid.entry.js +4 -3
  414. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  415. package/dist/esm/six-main-container.entry.js +4 -3
  416. package/dist/esm/six-main-container.entry.js.map +1 -1
  417. package/dist/esm/six-menu-divider.entry.js +4 -3
  418. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  419. package/dist/esm/six-menu-label.entry.js +4 -3
  420. package/dist/esm/six-menu-label.entry.js.map +1 -1
  421. package/dist/esm/six-picto.entry.js +4 -3
  422. package/dist/esm/six-picto.entry.js.map +1 -1
  423. package/dist/esm/six-progress-bar.entry.js +5 -4
  424. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  425. package/dist/esm/six-progress-ring.entry.js +4 -3
  426. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  427. package/dist/esm/six-radio.entry.js +5 -4
  428. package/dist/esm/six-radio.entry.js.map +1 -1
  429. package/dist/esm/six-range.entry.js +17 -6
  430. package/dist/esm/six-range.entry.js.map +1 -1
  431. package/dist/esm/six-root.entry.js +4 -22
  432. package/dist/esm/six-root.entry.js.map +1 -1
  433. package/dist/esm/six-search-field.entry.js +4 -3
  434. package/dist/esm/six-search-field.entry.js.map +1 -1
  435. package/dist/esm/six-select.entry.js +10 -9
  436. package/dist/esm/six-select.entry.js.map +1 -1
  437. package/dist/esm/six-sidebar-item-group.entry.js +4 -3
  438. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  439. package/dist/esm/six-sidebar-item.entry.js +5 -4
  440. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  441. package/dist/esm/six-sidebar.entry.js +5 -4
  442. package/dist/esm/six-sidebar.entry.js.map +1 -1
  443. package/dist/esm/six-spinner.entry.js +3 -2
  444. package/dist/esm/six-spinner.entry.js.map +1 -1
  445. package/dist/esm/six-stage-indicator.entry.js +19 -0
  446. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  447. package/dist/esm/six-switch.entry.js +6 -5
  448. package/dist/esm/six-switch.entry.js.map +1 -1
  449. package/dist/esm/six-tab-group.entry.js +34 -8
  450. package/dist/esm/six-tab-group.entry.js.map +1 -1
  451. package/dist/esm/six-tab-panel.entry.js +4 -3
  452. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  453. package/dist/esm/six-tab.entry.js +5 -4
  454. package/dist/esm/six-tab.entry.js.map +1 -1
  455. package/dist/esm/six-tag.entry.js +5 -4
  456. package/dist/esm/six-tag.entry.js.map +1 -1
  457. package/dist/esm/six-textarea.entry.js +6 -5
  458. package/dist/esm/six-textarea.entry.js.map +1 -1
  459. package/dist/esm/six-tile.entry.js +6 -5
  460. package/dist/esm/six-tile.entry.js.map +1 -1
  461. package/dist/esm/six-timepicker.entry.js +4 -3
  462. package/dist/esm/six-timepicker.entry.js.map +1 -1
  463. package/dist/esm/six-tooltip.entry.js +5 -4
  464. package/dist/esm/six-tooltip.entry.js.map +1 -1
  465. package/dist/esm/ui-library.js +7 -5
  466. package/dist/esm/ui-library.js.map +1 -1
  467. package/dist/types/components/six-alert/six-alert.d.ts +8 -4
  468. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  469. package/dist/types/components/six-dialog/six-dialog.d.ts +1 -0
  470. package/dist/types/components/six-file-upload/six-file-upload.d.ts +2 -0
  471. package/dist/types/components/six-range/six-range.d.ts +2 -0
  472. package/dist/types/components/six-root/six-root.d.ts +0 -13
  473. package/dist/types/components/six-tab-group/six-tab-group.d.ts +4 -1
  474. package/dist/types/components.d.ts +12 -54
  475. package/dist/types/utils/date-util.d.ts +9 -1
  476. package/dist/ui-library/{p-2132da0a.entry.js → p-01853739.entry.js} +2 -2
  477. package/dist/ui-library/p-01853739.entry.js.map +1 -0
  478. package/dist/ui-library/p-03900e17.entry.js +2 -0
  479. package/dist/ui-library/p-03900e17.entry.js.map +1 -0
  480. package/dist/ui-library/p-0a094514.entry.js +2 -0
  481. package/dist/ui-library/p-0a094514.entry.js.map +1 -0
  482. package/dist/ui-library/p-19a1d34c.entry.js +2 -0
  483. package/dist/ui-library/p-19a1d34c.entry.js.map +1 -0
  484. package/dist/ui-library/p-19ca3bd1.entry.js +2 -0
  485. package/dist/ui-library/p-19ca3bd1.entry.js.map +1 -0
  486. package/dist/ui-library/p-1d4cb6e9.entry.js +2 -0
  487. package/dist/ui-library/p-1d4cb6e9.entry.js.map +1 -0
  488. package/dist/ui-library/p-1f1224ae.entry.js +2 -0
  489. package/dist/ui-library/p-1f1224ae.entry.js.map +1 -0
  490. package/dist/ui-library/p-21002de1.entry.js +2 -0
  491. package/dist/ui-library/p-21002de1.entry.js.map +1 -0
  492. package/dist/ui-library/{p-2cd674e0.entry.js → p-29b75db4.entry.js} +2 -2
  493. package/dist/ui-library/p-29b75db4.entry.js.map +1 -0
  494. package/dist/ui-library/p-338205f4.entry.js +2 -0
  495. package/dist/ui-library/p-338205f4.entry.js.map +1 -0
  496. package/dist/ui-library/p-3827f9e0.entry.js +2 -0
  497. package/dist/ui-library/p-3827f9e0.entry.js.map +1 -0
  498. package/dist/ui-library/p-38a9a590.entry.js +2 -0
  499. package/dist/ui-library/p-38a9a590.entry.js.map +1 -0
  500. package/dist/ui-library/p-3e9324c8.entry.js +2 -0
  501. package/dist/ui-library/p-3e9324c8.entry.js.map +1 -0
  502. package/dist/ui-library/p-3eed2287.entry.js +2 -0
  503. package/dist/ui-library/p-3eed2287.entry.js.map +1 -0
  504. package/dist/ui-library/p-45960b56.entry.js +2 -0
  505. package/dist/ui-library/p-45960b56.entry.js.map +1 -0
  506. package/dist/ui-library/{p-8c38a7bd.entry.js → p-49e5d8bb.entry.js} +2 -2
  507. package/dist/ui-library/p-49e5d8bb.entry.js.map +1 -0
  508. package/dist/ui-library/p-4af73ea9.entry.js +2 -0
  509. package/dist/ui-library/p-4af73ea9.entry.js.map +1 -0
  510. package/dist/ui-library/{p-1431a2a8.entry.js → p-50dbe99f.entry.js} +2 -2
  511. package/dist/ui-library/p-50dbe99f.entry.js.map +1 -0
  512. package/dist/ui-library/p-52c04973.entry.js +2 -0
  513. package/dist/ui-library/p-52c04973.entry.js.map +1 -0
  514. package/dist/ui-library/{p-1b135e1c.entry.js → p-5f810571.entry.js} +2 -2
  515. package/dist/ui-library/p-5f810571.entry.js.map +1 -0
  516. package/dist/ui-library/p-651293e7.js +2 -0
  517. package/dist/ui-library/p-651293e7.js.map +1 -0
  518. package/dist/ui-library/p-6c96b62e.entry.js +2 -0
  519. package/dist/ui-library/p-6c96b62e.entry.js.map +1 -0
  520. package/dist/ui-library/p-724d0458.entry.js +2 -0
  521. package/dist/ui-library/p-724d0458.entry.js.map +1 -0
  522. package/dist/ui-library/p-7562d5f5.entry.js +2 -0
  523. package/dist/ui-library/p-7562d5f5.entry.js.map +1 -0
  524. package/dist/ui-library/p-756f4acf.entry.js +2 -0
  525. package/dist/ui-library/p-756f4acf.entry.js.map +1 -0
  526. package/dist/ui-library/{p-021f6da9.entry.js → p-7a722a13.entry.js} +2 -2
  527. package/dist/ui-library/p-7a722a13.entry.js.map +1 -0
  528. package/dist/ui-library/{p-831517cd.entry.js → p-7a9dcb16.entry.js} +2 -2
  529. package/dist/ui-library/p-7a9dcb16.entry.js.map +1 -0
  530. package/dist/ui-library/p-7c2255b5.entry.js +2 -0
  531. package/dist/ui-library/p-7c2255b5.entry.js.map +1 -0
  532. package/dist/ui-library/{p-d702b6ec.entry.js → p-7fc0bf6b.entry.js} +2 -2
  533. package/dist/ui-library/p-7fc0bf6b.entry.js.map +1 -0
  534. package/dist/ui-library/p-803915da.entry.js +2 -0
  535. package/dist/ui-library/p-803915da.entry.js.map +1 -0
  536. package/dist/ui-library/p-80476b0f.entry.js +2 -0
  537. package/dist/ui-library/p-80476b0f.entry.js.map +1 -0
  538. package/dist/ui-library/{p-4a3ba956.entry.js → p-8644f970.entry.js} +2 -2
  539. package/dist/ui-library/p-8644f970.entry.js.map +1 -0
  540. package/dist/ui-library/{p-a036cc6f.entry.js → p-8938e9bd.entry.js} +2 -2
  541. package/dist/ui-library/p-8938e9bd.entry.js.map +1 -0
  542. package/dist/ui-library/p-8dff4dcb.entry.js +2 -0
  543. package/dist/ui-library/p-8dff4dcb.entry.js.map +1 -0
  544. package/dist/ui-library/{p-e340a0ad.entry.js → p-8f307b55.entry.js} +2 -2
  545. package/dist/ui-library/p-8f307b55.entry.js.map +1 -0
  546. package/dist/ui-library/{p-88767c27.entry.js → p-93ab2efc.entry.js} +2 -2
  547. package/dist/ui-library/p-93ab2efc.entry.js.map +1 -0
  548. package/dist/ui-library/p-9426a37b.entry.js +2 -0
  549. package/dist/ui-library/p-9426a37b.entry.js.map +1 -0
  550. package/dist/ui-library/p-a2a6aaea.entry.js +2 -0
  551. package/dist/ui-library/p-a2a6aaea.entry.js.map +1 -0
  552. package/dist/ui-library/p-a2b8aca7.entry.js +2 -0
  553. package/dist/ui-library/p-a2b8aca7.entry.js.map +1 -0
  554. package/dist/ui-library/{p-67496e8c.js → p-aa99a393.js} +2 -2
  555. package/dist/ui-library/p-ab8f9503.entry.js +2 -0
  556. package/dist/ui-library/p-ab8f9503.entry.js.map +1 -0
  557. package/dist/ui-library/p-acc487ec.entry.js +2 -0
  558. package/dist/ui-library/p-acc487ec.entry.js.map +1 -0
  559. package/dist/ui-library/p-ba7424b3.entry.js +2 -0
  560. package/dist/ui-library/p-ba7424b3.entry.js.map +1 -0
  561. package/dist/ui-library/p-c948cf70.entry.js +2 -0
  562. package/dist/ui-library/p-c948cf70.entry.js.map +1 -0
  563. package/dist/ui-library/p-d55db23a.entry.js +2 -0
  564. package/dist/ui-library/p-d55db23a.entry.js.map +1 -0
  565. package/dist/ui-library/p-d717a2f2.entry.js +2 -0
  566. package/dist/ui-library/p-d717a2f2.entry.js.map +1 -0
  567. package/dist/ui-library/p-d7739200.entry.js +2 -0
  568. package/dist/ui-library/p-d7739200.entry.js.map +1 -0
  569. package/dist/ui-library/p-e1255160.js +2 -0
  570. package/dist/ui-library/p-e1255160.js.map +1 -0
  571. package/dist/ui-library/p-e3766acb.entry.js +2 -0
  572. package/dist/ui-library/p-e3766acb.entry.js.map +1 -0
  573. package/dist/ui-library/p-e43e5e45.entry.js +2 -0
  574. package/dist/ui-library/p-e43e5e45.entry.js.map +1 -0
  575. package/dist/ui-library/p-e798314b.entry.js +2 -0
  576. package/dist/ui-library/p-e798314b.entry.js.map +1 -0
  577. package/dist/ui-library/p-f1bb5648.entry.js +2 -0
  578. package/dist/ui-library/p-f1bb5648.entry.js.map +1 -0
  579. package/dist/ui-library/p-f8572492.entry.js +2 -0
  580. package/dist/ui-library/p-f8572492.entry.js.map +1 -0
  581. package/dist/ui-library/p-f93d8a4e.js +3 -0
  582. package/dist/ui-library/p-f93d8a4e.js.map +1 -0
  583. package/dist/ui-library/ui-library.css +1 -1
  584. package/dist/ui-library/ui-library.esm.js +1 -1
  585. package/dist/ui-library/ui-library.esm.js.map +1 -1
  586. package/package.json +5 -5
  587. package/dist/cjs/index-5dd19c4b.js.map +0 -1
  588. package/dist/cjs/modal-3ce015be.js.map +0 -1
  589. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
  590. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  591. package/dist/collection/utils/support.js +0 -16
  592. package/dist/collection/utils/support.js.map +0 -1
  593. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
  594. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  595. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +0 -16
  596. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +0 -1
  597. package/dist/components/set-attributes.d.ts +0 -11
  598. package/dist/components/set-attributes.js +0 -8
  599. package/dist/components/set-attributes.js.map +0 -1
  600. package/dist/components/set-attributes2.js +0 -73
  601. package/dist/components/set-attributes2.js.map +0 -1
  602. package/dist/esm/index-6c10d50b.js.map +0 -1
  603. package/dist/esm/modal-96526245.js.map +0 -1
  604. package/dist/esm/set-attributes_2.entry.js +0 -68
  605. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  606. package/dist/types/utils/support.d.ts +0 -1
  607. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  608. package/dist/ui-library/p-01ae4500.entry.js +0 -2
  609. package/dist/ui-library/p-01ae4500.entry.js.map +0 -1
  610. package/dist/ui-library/p-021f6da9.entry.js.map +0 -1
  611. package/dist/ui-library/p-0274c52c.entry.js +0 -2
  612. package/dist/ui-library/p-0274c52c.entry.js.map +0 -1
  613. package/dist/ui-library/p-0cb135aa.entry.js +0 -2
  614. package/dist/ui-library/p-0cb135aa.entry.js.map +0 -1
  615. package/dist/ui-library/p-1431a2a8.entry.js.map +0 -1
  616. package/dist/ui-library/p-1aa28025.entry.js +0 -2
  617. package/dist/ui-library/p-1aa28025.entry.js.map +0 -1
  618. package/dist/ui-library/p-1b135e1c.entry.js.map +0 -1
  619. package/dist/ui-library/p-1be990f9.entry.js +0 -2
  620. package/dist/ui-library/p-1be990f9.entry.js.map +0 -1
  621. package/dist/ui-library/p-2008636b.entry.js +0 -2
  622. package/dist/ui-library/p-2008636b.entry.js.map +0 -1
  623. package/dist/ui-library/p-2132da0a.entry.js.map +0 -1
  624. package/dist/ui-library/p-2cd674e0.entry.js.map +0 -1
  625. package/dist/ui-library/p-2d86ba99.entry.js +0 -2
  626. package/dist/ui-library/p-2d86ba99.entry.js.map +0 -1
  627. package/dist/ui-library/p-31a4a74c.entry.js +0 -2
  628. package/dist/ui-library/p-31a4a74c.entry.js.map +0 -1
  629. package/dist/ui-library/p-3783aed0.entry.js +0 -2
  630. package/dist/ui-library/p-3783aed0.entry.js.map +0 -1
  631. package/dist/ui-library/p-391f10f1.entry.js +0 -2
  632. package/dist/ui-library/p-391f10f1.entry.js.map +0 -1
  633. package/dist/ui-library/p-3dd28dc0.entry.js +0 -2
  634. package/dist/ui-library/p-3dd28dc0.entry.js.map +0 -1
  635. package/dist/ui-library/p-46ee280d.entry.js +0 -2
  636. package/dist/ui-library/p-46ee280d.entry.js.map +0 -1
  637. package/dist/ui-library/p-4752a63c.entry.js +0 -2
  638. package/dist/ui-library/p-4752a63c.entry.js.map +0 -1
  639. package/dist/ui-library/p-4772a9d3.entry.js +0 -2
  640. package/dist/ui-library/p-4772a9d3.entry.js.map +0 -1
  641. package/dist/ui-library/p-4a3ba956.entry.js.map +0 -1
  642. package/dist/ui-library/p-4b154936.entry.js +0 -2
  643. package/dist/ui-library/p-4b154936.entry.js.map +0 -1
  644. package/dist/ui-library/p-5a5f6869.entry.js +0 -2
  645. package/dist/ui-library/p-5a5f6869.entry.js.map +0 -1
  646. package/dist/ui-library/p-621c2742.entry.js +0 -2
  647. package/dist/ui-library/p-621c2742.entry.js.map +0 -1
  648. package/dist/ui-library/p-65778e3d.entry.js +0 -2
  649. package/dist/ui-library/p-65778e3d.entry.js.map +0 -1
  650. package/dist/ui-library/p-66cd3b0c.entry.js +0 -2
  651. package/dist/ui-library/p-66cd3b0c.entry.js.map +0 -1
  652. package/dist/ui-library/p-78529c8c.entry.js +0 -2
  653. package/dist/ui-library/p-78529c8c.entry.js.map +0 -1
  654. package/dist/ui-library/p-831517cd.entry.js.map +0 -1
  655. package/dist/ui-library/p-87e197ee.entry.js +0 -2
  656. package/dist/ui-library/p-87e197ee.entry.js.map +0 -1
  657. package/dist/ui-library/p-88767c27.entry.js.map +0 -1
  658. package/dist/ui-library/p-8c38a7bd.entry.js.map +0 -1
  659. package/dist/ui-library/p-943ce0f2.entry.js +0 -2
  660. package/dist/ui-library/p-943ce0f2.entry.js.map +0 -1
  661. package/dist/ui-library/p-979eabb5.entry.js +0 -2
  662. package/dist/ui-library/p-979eabb5.entry.js.map +0 -1
  663. package/dist/ui-library/p-98ce9502.entry.js +0 -2
  664. package/dist/ui-library/p-98ce9502.entry.js.map +0 -1
  665. package/dist/ui-library/p-998de05d.js +0 -2
  666. package/dist/ui-library/p-998de05d.js.map +0 -1
  667. package/dist/ui-library/p-a036cc6f.entry.js.map +0 -1
  668. package/dist/ui-library/p-a29f6a0e.entry.js +0 -2
  669. package/dist/ui-library/p-a29f6a0e.entry.js.map +0 -1
  670. package/dist/ui-library/p-a3fd8c74.entry.js +0 -2
  671. package/dist/ui-library/p-a3fd8c74.entry.js.map +0 -1
  672. package/dist/ui-library/p-a919b557.entry.js +0 -2
  673. package/dist/ui-library/p-a919b557.entry.js.map +0 -1
  674. package/dist/ui-library/p-ace4ec84.entry.js +0 -2
  675. package/dist/ui-library/p-ace4ec84.entry.js.map +0 -1
  676. package/dist/ui-library/p-adf5a4da.entry.js +0 -2
  677. package/dist/ui-library/p-adf5a4da.entry.js.map +0 -1
  678. package/dist/ui-library/p-b5f844f7.entry.js +0 -2
  679. package/dist/ui-library/p-b5f844f7.entry.js.map +0 -1
  680. package/dist/ui-library/p-b8ea574b.entry.js +0 -2
  681. package/dist/ui-library/p-b8ea574b.entry.js.map +0 -1
  682. package/dist/ui-library/p-bff679fa.entry.js +0 -2
  683. package/dist/ui-library/p-bff679fa.entry.js.map +0 -1
  684. package/dist/ui-library/p-ca63a6fa.js +0 -3
  685. package/dist/ui-library/p-ca63a6fa.js.map +0 -1
  686. package/dist/ui-library/p-d221d86a.entry.js +0 -2
  687. package/dist/ui-library/p-d221d86a.entry.js.map +0 -1
  688. package/dist/ui-library/p-d702b6ec.entry.js.map +0 -1
  689. package/dist/ui-library/p-db9d2fde.entry.js +0 -2
  690. package/dist/ui-library/p-db9d2fde.entry.js.map +0 -1
  691. package/dist/ui-library/p-e0dd0307.entry.js +0 -2
  692. package/dist/ui-library/p-e0dd0307.entry.js.map +0 -1
  693. package/dist/ui-library/p-e340a0ad.entry.js.map +0 -1
  694. package/dist/ui-library/p-f640731b.entry.js +0 -2
  695. package/dist/ui-library/p-f640731b.entry.js.map +0 -1
  696. package/dist/ui-library/p-fce214eb.entry.js +0 -2
  697. package/dist/ui-library/p-fce214eb.entry.js.map +0 -1
  698. package/dist/ui-library/p-fe87f64b.entry.js +0 -2
  699. package/dist/ui-library/p-fe87f64b.entry.js.map +0 -1
  700. /package/dist/ui-library/{p-67496e8c.js.map → p-aa99a393.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"six-alert.js","sourceRoot":"","sources":["../../../src/components/six-alert/six-alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEvG,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC,CAAC;AAElG;;;;;;;;;;;;;GAaG;AAOH,MAAM,OAAO,QAAQ;;QA8IX,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC;QAEM,oBAAe,GAAG,GAAG,EAAE;YAC7B,IAAI,CAAC,eAAe,EAAE,CAAC;QACzB,CAAC,CAAC;QAEM,wBAAmB,GAAG,CAAC,KAAsB,EAAE,EAAE;YACvD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;YAE3C,6EAA6E;YAC7E,IAAI,KAAK,CAAC,YAAY,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;gBAC1E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC;gBAC3B,IAAI,CAAC,IAAI,CA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AAI,CAAC,IAAI,KAAK,SAAS;gBACzC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM;gBACnC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACvC,eAAe,EAAE,OAAO;aACzB,EACD,IAAI,EAAC,OAAO,eACF,WAAW,iBACT,MAAM,iBACL,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EACzC,WAAW,EAAE,IAAI,CAAC,eAAe,EACjC,eAAe,EAAE,IAAI,CAAC,mBAAmB;YAEzC,YAAM,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,aAAa;gBACnC,YAAM,IAAI,EAAC,MAAM,GAAG,CACf;YAEP,YAAM,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,gBAAgB;gBACzC,eAAQ,CACH;YAEN,IAAI,CAAC,QAAQ,IAAI,CAChB,YAAM,KAAK,EAAC,cAAc;gBACxB,uBACE,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,mBAAmB,EAC/B,OAAO,EAAE,IAAI,CAAC,gBAAgB,GACb,CACd,CACR,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getSlot } from '../../utils/slot';\n\nconst toastStack = Object.assign(document.createElement('div'), { className: 'six-toast-stack' });\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 - The alert's content.\n * @slot icon - An icon to show in the alert.\n *\n * @part base - The component's base wrapper.\n * @part icon - The container that wraps the alert icon.\n * @part message - The alert message.\n * @part close-button - The close button.\n */\n\n@Component({\n tag: 'six-alert',\n styleUrl: 'six-alert.scss',\n shadow: true,\n})\nexport class SixAlert {\n private autoHideTimeout?: number;\n\n @Element() host!: HTMLSixAlertElement;\n\n @State() isVisible = false;\n\n /** Indicates whether or not the alert is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Set to true to make the alert closable. */\n @Prop({ reflect: true }) closable = false;\n\n /** The type of alert. */\n @Prop({ reflect: true }) type: AlertType = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself. If the user interacts with the\n * alert before it closes (e.g. moves the mouse over it), the timer will restart.\n */\n @Prop() duration = Infinity;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n @Watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Emitted when the alert opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-alert-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the alert opens and all transitions are complete. */\n @Event({ eventName: 'six-alert-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the alert closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-alert-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the alert closes and all transitions are complete. */\n @Event({ eventName: 'six-alert-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n componentWillLoad() {\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n /** Shows the alert. */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.isVisible = true;\n this.open = true;\n\n if (this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n /** Hides the alert */\n @Method()\n async hide() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n clearTimeout(this.autoHideTimeout);\n this.isVisible = false;\n this.open = false;\n }\n\n /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n * @param adjustPosition If true, the top and right position of the toast stack is shifted according to the\n * six-root header's height and the presence of a vertical scrollbar.\n */\n @Method()\n async toast(adjustPosition = true) {\n return new Promise<void>((resolve) => {\n if (!toastStack.parentElement) {\n document.body.append(toastStack);\n }\n toastStack.append(this.host);\n\n if (adjustPosition) {\n const sixRoot = document.querySelector('six-root');\n const headerSlot = getSlot(sixRoot, 'header');\n const mainSlot = sixRoot?.shadowRoot?.querySelector('host main');\n if (mainSlot != null && mainSlot instanceof HTMLElement) {\n const scrollbarWidth = mainSlot.offsetWidth - mainSlot.clientWidth;\n toastStack.style.right = `${scrollbarWidth}px`;\n }\n if (headerSlot != null) {\n const rect = headerSlot?.getBoundingClientRect();\n toastStack.style.top = `${rect.top + rect.height}px`;\n }\n } else {\n toastStack.style.top = '0';\n toastStack.style.right = '0';\n }\n\n requestAnimationFrame(() => this.show());\n\n this.host.addEventListener(\n 'six-alert-after-hide',\n () => {\n this.host.remove();\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (toastStack.querySelector('six-alert') === null) {\n toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleMouseMove = () => {\n this.restartAutoHide();\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'opacity' && target.classList.contains('alert')) {\n this.isVisible = this.open;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n private restartAutoHide() {\n clearTimeout(this.autoHideTimeout);\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n render() {\n const asToast = this.host.closest('.six-toast-stack') != null;\n\n return (\n <div\n part=\"base\"\n class={{\n alert: true,\n 'alert--open': this.open,\n 'alert--visible': this.isVisible,\n 'alert--closable': this.closable,\n 'alert--primary': this.type === 'primary',\n 'alert--success': this.type === 'success',\n 'alert--info': this.type === 'info',\n 'alert--warning': this.type === 'warning',\n 'alert--danger': this.type === 'danger',\n 'alert--shadow': asToast,\n }}\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n onMouseMove={this.handleMouseMove}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <span part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\" />\n </span>\n\n <span part=\"message\" class=\"alert__message\">\n <slot />\n </span>\n\n {this.closable && (\n <span class=\"alert__close\">\n <six-icon-button\n name=\"clear\"\n exportparts=\"base:close-button\"\n onClick={this.handleCloseClick}\n ></six-icon-button>\n </span>\n )}\n </div>\n );\n }\n}\n\nexport type AlertType = 'primary' | 'success' | 'info' | 'warning' | 'danger';\n"]}
1
+ {"version":3,"file":"six-alert.js","sourceRoot":"","sources":["../../../src/components/six-alert/six-alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,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E,IAAI,CAAC,IAAI,KAAK,MAAM;gBACnC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACvC,eAAe,EAAE,OAAO;aACzB,EACD,IAAI,EAAC,OAAO,eACF,WAAW,iBACT,MAAM,iBACL,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EACzC,eAAe,EAAE,IAAI,CAAC,mBAAmB,EACzC,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,YAAY,EAAE,IAAI,CAAC,gBAAgB;YAEnC,6DAAM,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,aAAa;gBACnC,6DAAM,IAAI,EAAC,MAAM,GAAG,CACf;YAEP,6DAAM,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,gBAAgB;gBACzC,8DAAQ,CACH;YAEN,IAAI,CAAC,QAAQ,IAAI,CAChB,YAAM,KAAK,EAAC,cAAc;gBACxB,uBACE,IAAI,EAAC,OAAO,EACZ,WAAW,EAAC,mBAAmB,EAC/B,OAAO,EAAE,IAAI,CAAC,gBAAgB,GACb,CACd,CACR,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getSlot } from '../../utils/slot';\n\nconst toastStack = Object.assign(document.createElement('div'), { className: 'six-toast-stack' });\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 - The alert's content.\n * @slot icon - An icon to show in the alert.\n *\n * @part base - The component's base wrapper.\n * @part icon - The container that wraps the alert icon.\n * @part message - The alert message.\n * @part close-button - The close button.\n */\n\n@Component({\n tag: 'six-alert',\n styleUrl: 'six-alert.scss',\n shadow: true,\n})\nexport class SixAlert {\n private autoHideTimeout?: number;\n\n @Element() host!: HTMLSixAlertElement;\n\n @State() isVisible = false;\n\n /** Indicates whether or not the alert is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Set to true to make the alert closable. */\n @Prop({ reflect: true }) closable = false;\n\n /** The type of alert. */\n @Prop({ reflect: true }) type: AlertType = 'primary';\n\n /**\n * The length of time, in milliseconds, the alert will show before closing itself.\n * If the user hovers over the toast alert, the timer will pause.\n * On leaving the element with the mouse, the timer resets.\n */\n @Prop() duration = Infinity;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n @Watch('duration')\n handleDurationChange() {\n this.restartAutoHide();\n }\n\n /** Emitted when the alert opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-alert-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the alert opens and all transitions are complete. */\n @Event({ eventName: 'six-alert-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the alert closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-alert-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the alert closes and all transitions are complete. */\n @Event({ eventName: 'six-alert-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n componentWillLoad() {\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n /** Shows the alert. */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.isVisible = true;\n this.open = true;\n\n if (this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n /** Hides the alert */\n @Method()\n async hide() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n clearTimeout(this.autoHideTimeout);\n this.isVisible = false;\n this.open = false;\n }\n\n /**\n * Displays the alert as a toast notification. This will move the alert out of its position in the DOM and, when\n * dismissed, it will be removed from the DOM completely. By storing a reference to the alert, you can reuse it by\n * calling this method again. The returned promise will resolve after the alert is hidden.\n * @param adjustPosition If true, the top and right position of the toast stack is shifted according to the\n * six-root header's height and the presence of a vertical scrollbar.\n */\n @Method()\n async toast(adjustPosition = true) {\n return new Promise<void>((resolve) => {\n if (!toastStack.parentElement) {\n document.body.append(toastStack);\n }\n toastStack.append(this.host);\n\n if (adjustPosition) {\n const sixRoot = document.querySelector('six-root');\n const headerSlot = getSlot(sixRoot, 'header');\n const mainSlot = sixRoot?.shadowRoot?.querySelector('host main');\n if (mainSlot != null && mainSlot instanceof HTMLElement) {\n const scrollbarWidth = mainSlot.offsetWidth - mainSlot.clientWidth;\n toastStack.style.right = `${scrollbarWidth}px`;\n }\n if (headerSlot != null) {\n const rect = headerSlot?.getBoundingClientRect();\n toastStack.style.top = `${rect.top + rect.height}px`;\n }\n } else {\n toastStack.style.top = '0';\n toastStack.style.right = '0';\n }\n\n requestAnimationFrame(() => this.show());\n\n this.host.addEventListener(\n 'six-alert-after-hide',\n () => {\n this.host.remove();\n resolve();\n\n // Remove the toast stack from the DOM when there are no more alerts\n if (toastStack.querySelector('six-alert') === null) {\n toastStack.remove();\n }\n },\n { once: true }\n );\n });\n }\n\n private pauseAutoHide() {\n clearTimeout(this.autoHideTimeout);\n }\n\n private resetAutoHide() {\n if (this.open && this.duration < Infinity) {\n this.autoHideTimeout = window.setTimeout(() => this.hide(), this.duration);\n }\n }\n\n private restartAutoHide() {\n this.pauseAutoHide();\n this.resetAutoHide();\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleMouseEnter = () => {\n this.pauseAutoHide();\n };\n\n private handleMouseLeave = () => {\n this.resetAutoHide();\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'opacity' && target.classList.contains('alert')) {\n this.isVisible = this.open;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n render() {\n const asToast = this.host.closest('.six-toast-stack') != null;\n\n return (\n <div\n part=\"base\"\n class={{\n alert: true,\n 'alert--open': this.open,\n 'alert--visible': this.isVisible,\n 'alert--closable': this.closable,\n 'alert--primary': this.type === 'primary',\n 'alert--success': this.type === 'success',\n 'alert--info': this.type === 'info',\n 'alert--warning': this.type === 'warning',\n 'alert--danger': this.type === 'danger',\n 'alert--shadow': asToast,\n }}\n role=\"alert\"\n aria-live=\"assertive\"\n aria-atomic=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n onTransitionEnd={this.handleTransitionEnd}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n <span part=\"icon\" class=\"alert__icon\">\n <slot name=\"icon\" />\n </span>\n\n <span part=\"message\" class=\"alert__message\">\n <slot />\n </span>\n\n {this.closable && (\n <span class=\"alert__close\">\n <six-icon-button\n name=\"clear\"\n exportparts=\"base:close-button\"\n onClick={this.handleCloseClick}\n ></six-icon-button>\n </span>\n )}\n </div>\n );\n }\n}\n\nexport type AlertType = 'primary' | 'success' | 'info' | 'warning' | 'danger';\n"]}
@@ -24,7 +24,7 @@ export class SixAvatar {
24
24
  this.shape = 'circle';
25
25
  }
26
26
  render() {
27
- return (h("div", { part: "base", class: {
27
+ return (h("div", { key: '0d81ad186f0dae970c5e99eced042da6eac05934', part: "base", class: {
28
28
  avatar: true,
29
29
  'avatar--circle': this.shape === 'circle',
30
30
  'avatar--rounded': this.shape === 'rounded',
@@ -1 +1 @@
1
- {"version":3,"file":"six-avatar.js","sourceRoot":"","sources":["../../../src/components/six-avatar/six-avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAE1D;;;;;;;;;;;;GAYG;AAMH,MAAM,OAAO,SAAS;;QAeZ,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACvB,CAAC,CAAC;wBAhBkB,KAAK;qBAGT,EAAE;mBAGJ,EAAE;wBAGG,EAAE;qBAG4B,QAAQ;;IAMzD,MAAM;QACJ,OAAO,CACL,WACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;gBACL,MAAM,EAAE,IAAI;gBACZ,gBAAgB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;gBACzC,iBAAiB,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS;gBAC3C,gBAAgB,EAAE,IAAI,CAAC,KAAK,KAAK,QAAQ;aAC1C,EACD,IAAI,EAAC,OAAO,gBACA,IAAI,CAAC,GAAG,EACpB,QAAQ,EAAE,CAAC;YAEV,IAAI,CAAC,QAAQ,KAAK,EAAE,IAAI,CACvB,WAAK,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,cAAc;gBACnC,YAAM,IAAI,EAAC,MAAM;oBACf,6BAA2B,CACtB,CACH,CACP;YAEA,IAAI,CAAC,QAAQ,IAAI,CAChB,WAAK,IAAI,EAAC,UAAU,EAAC,KAAK,EAAC,kBAAkB,IAC1C,IAAI,CAAC,QAAQ,CACV,CACP;YAEA,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAC/B,WAAK,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,eAAe,EAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,gBAAgB,GAAI,CAC5F,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State } from '@stencil/core';\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 icon - The default icon to use when no image or initials are present.\n *\n * @part base - The component's base wrapper.\n * @part icon - The container that wraps the avatar icon.\n * @part initials - The container that wraps the avatar initials.\n * @part image - The avatar image.\n */\n@Component({\n tag: 'six-avatar',\n styleUrl: 'six-avatar.scss',\n shadow: true,\n})\nexport class SixAvatar {\n @State() hasError = false;\n\n /** The image source to use for the avatar. */\n @Prop() image = '';\n\n /** Alternative text for the image. */\n @Prop() alt = '';\n\n /** Initials to use as a fallback when no image is available (1-2 characters max recommended). */\n @Prop() initials = '';\n\n /** The shape of the avatar. */\n @Prop() shape: 'circle' | 'square' | 'rounded' = 'circle';\n\n private handleImageError = () => {\n this.hasError = true;\n };\n\n render() {\n return (\n <div\n part=\"base\"\n class={{\n avatar: true,\n 'avatar--circle': this.shape === 'circle',\n 'avatar--rounded': this.shape === 'rounded',\n 'avatar--square': this.shape === 'square',\n }}\n role=\"image\"\n aria-label={this.alt}\n tabIndex={0}\n >\n {this.initials === '' && (\n <div part=\"icon\" class=\"avatar__icon\">\n <slot name=\"icon\">\n <six-icon>person</six-icon>\n </slot>\n </div>\n )}\n\n {this.initials && (\n <div part=\"initials\" class=\"avatar__initials\">\n {this.initials}\n </div>\n )}\n\n {this.image && !this.hasError && (\n <img part=\"image\" class=\"avatar__image\" src={this.image} onError={this.handleImageError} />\n )}\n </div>\n );\n }\n}\n"]}
1
+ {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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, State } from '@stencil/core';\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 icon - The default icon to use when no image or initials are present.\n *\n * @part base - The component's base wrapper.\n * @part icon - The container that wraps the avatar icon.\n * @part initials - The container that wraps the avatar initials.\n * @part image - The avatar image.\n */\n@Component({\n tag: 'six-avatar',\n styleUrl: 'six-avatar.scss',\n shadow: true,\n})\nexport class SixAvatar {\n @State() hasError = false;\n\n /** The image source to use for the avatar. */\n @Prop() image = '';\n\n /** Alternative text for the image. */\n @Prop() alt = '';\n\n /** Initials to use as a fallback when no image is available (1-2 characters max recommended). */\n @Prop() initials = '';\n\n /** The shape of the avatar. */\n @Prop() shape: 'circle' | 'square' | 'rounded' = 'circle';\n\n private handleImageError = () => {\n this.hasError = true;\n };\n\n render() {\n return (\n <div\n part=\"base\"\n class={{\n avatar: true,\n 'avatar--circle': this.shape === 'circle',\n 'avatar--rounded': this.shape === 'rounded',\n 'avatar--square': this.shape === 'square',\n }}\n role=\"image\"\n aria-label={this.alt}\n tabIndex={0}\n >\n {this.initials === '' && (\n <div part=\"icon\" class=\"avatar__icon\">\n <slot name=\"icon\">\n <six-icon>person</six-icon>\n </slot>\n </div>\n )}\n\n {this.initials && (\n <div part=\"initials\" class=\"avatar__initials\">\n {this.initials}\n </div>\n )}\n\n {this.image && !this.hasError && (\n <img part=\"image\" class=\"avatar__image\" src={this.image} onError={this.handleImageError} />\n )}\n </div>\n );\n }\n}\n"]}
@@ -16,7 +16,7 @@ export class SixBadge {
16
16
  this.pulse = false;
17
17
  }
18
18
  render() {
19
- return (h("span", { part: "base", class: {
19
+ return (h("span", { key: 'f7dd02d28fce6cb91e1d5647053c1e5ec0256dc7', part: "base", class: {
20
20
  badge: true,
21
21
  // Types
22
22
  'badge--primary': this.type === 'primary',
@@ -28,7 +28,7 @@ export class SixBadge {
28
28
  'badge--info': this.type === 'info',
29
29
  'badge--pill': this.pill,
30
30
  'badge--pulse': this.pulse,
31
- }, role: "status" }, h("slot", null)));
31
+ }, role: "status" }, h("slot", { key: 'a18b13a78a9362216e7639b24a247b7cb5972173' })));
32
32
  }
33
33
  static get is() { return "six-badge"; }
34
34
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"six-badge.js","sourceRoot":"","sources":["../../../src/components/six-badge/six-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;;;;;GASG;AAOH,MAAM,OAAO,QAAQ;;oBAE4E,SAAS;oBAGzF,KAAK;qBAGJ,KAAK;;IAErB,MAAM;QACJ,OAAO,CACL,YACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI;gBAEX,QAAQ;gBACR,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,kBAAkB,EAAE,IAAI,CAAC,IAAI,KAAK,WAAW;gBAC7C,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACvC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACvC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM;gBACnC,aAAa,EAAE,IAAI,CAAC,IAAI;gBACxB,cAAc,EAAE,IAAI,CAAC,KAAK;aAC3B,EACD,IAAI,EAAC,QAAQ;YAEb,eAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\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 - The badge's content.\n *\n * @part base - The base wrapper\n */\n\n@Component({\n tag: 'six-badge',\n styleUrl: 'six-badge.scss',\n shadow: true,\n})\nexport class SixBadge {\n /** The badge's type. */\n @Prop() type: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'action' = 'primary';\n\n /** Set to true to draw a pill-style badge with rounded edges. */\n @Prop() pill = false;\n\n /** Set to true to make the badge pulsate to draw attention. */\n @Prop() pulse = false;\n\n render() {\n return (\n <span\n part=\"base\"\n class={{\n badge: true,\n\n // Types\n 'badge--primary': this.type === 'primary',\n 'badge--secondary': this.type === 'secondary',\n 'badge--success': this.type === 'success',\n 'badge--warning': this.type === 'warning',\n 'badge--danger': this.type === 'danger',\n 'badge--action': this.type === 'action',\n 'badge--info': this.type === 'info',\n 'badge--pill': this.pill,\n 'badge--pulse': this.pulse,\n }}\n role=\"status\"\n >\n <slot />\n </span>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-badge.js","sourceRoot":"","sources":["../../../src/components/six-badge/six-badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;;;;;GASG;AAOH,MAAM,OAAO,QAAQ;;oBAE4E,SAAS;oBAGzF,KAAK;qBAGJ,KAAK;;IAErB,MAAM;QACJ,OAAO,CACL,6DACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI;gBAEX,QAAQ;gBACR,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,kBAAkB,EAAE,IAAI,CAAC,IAAI,KAAK,WAAW;gBAC7C,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACzC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACvC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACvC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM;gBACnC,aAAa,EAAE,IAAI,CAAC,IAAI;gBACxB,cAAc,EAAE,IAAI,CAAC,KAAK;aAC3B,EACD,IAAI,EAAC,QAAQ;YAEb,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Prop, h } from '@stencil/core';\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 - The badge's content.\n *\n * @part base - The base wrapper\n */\n\n@Component({\n tag: 'six-badge',\n styleUrl: 'six-badge.scss',\n shadow: true,\n})\nexport class SixBadge {\n /** The badge's type. */\n @Prop() type: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'action' = 'primary';\n\n /** Set to true to draw a pill-style badge with rounded edges. */\n @Prop() pill = false;\n\n /** Set to true to make the badge pulsate to draw attention. */\n @Prop() pulse = false;\n\n render() {\n return (\n <span\n part=\"base\"\n class={{\n badge: true,\n\n // Types\n 'badge--primary': this.type === 'primary',\n 'badge--secondary': this.type === 'secondary',\n 'badge--success': this.type === 'success',\n 'badge--warning': this.type === 'warning',\n 'badge--danger': this.type === 'danger',\n 'badge--action': this.type === 'action',\n 'badge--info': this.type === 'info',\n 'badge--pill': this.pill,\n 'badge--pulse': this.pulse,\n }}\n role=\"status\"\n >\n <slot />\n </span>\n );\n }\n}\n"]}
@@ -79,7 +79,7 @@ export class SixButton {
79
79
  const isLink = this.href != null;
80
80
  const isButton = !isLink;
81
81
  const Button = isLink ? 'a' : 'button';
82
- return (h("div", { onClick: this.handleClick, class: { 'button-wrapper--disabled': this.disabled } }, h(Button, { ref: (el) => (this.nativeButton = el), part: "base", class: {
82
+ return (h("div", { key: '573030e665993c7322fac14169a2fcf30893d411', onClick: this.handleClick, class: { 'button-wrapper--disabled': this.disabled } }, h(Button, { key: '88d0bc40bdf3322cbca441f09691c4b13479c409', ref: (el) => (this.nativeButton = el), part: "base", class: {
83
83
  button: true,
84
84
  // Types
85
85
  'button--secondary': this.type === 'secondary',
@@ -103,7 +103,7 @@ export class SixButton {
103
103
  'button--has-label': this.hasLabel,
104
104
  'button--has-prefix': this.hasPrefix,
105
105
  'button--has-suffix': this.hasSuffix,
106
- }, 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", { part: "prefix", class: "button__prefix" }, h("slot", { onSlotchange: this.handleSlotChange, name: "prefix" })), h("span", { part: "label", class: "button__label" }, h("slot", { onSlotchange: this.handleSlotChange })), h("span", { part: "suffix", class: "button__suffix" }, h("slot", { onSlotchange: this.handleSlotChange, name: "suffix" })), this.caret && (h("span", { part: "caret", class: "button__caret" }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polyline", { points: "6 9 12 15 18 9" })))), this.loading && h("six-spinner", null))));
106
+ }, 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: '4ab652a90c0b7ea35c7cba84afac97d993eef0bb', part: "prefix", class: "button__prefix" }, h("slot", { key: '00758b95d992872cfd10e3f7897dd48b5c3149d1', onSlotchange: this.handleSlotChange, name: "prefix" })), h("span", { key: 'ea10ef2ac9a40dc92afd977708a702158b3fc811', part: "label", class: "button__label" }, h("slot", { key: 'e774f6341949b7c60e26e64dfb1f2e6ea958f6f5', onSlotchange: this.handleSlotChange })), h("span", { key: 'a4afd93f005694ec7b6c7d21a725bbdd7d6e39dc', part: "suffix", class: "button__suffix" }, h("slot", { key: '35098974eaf65bfa463ec019d99115baa35bba92', onSlotchange: this.handleSlotChange, name: "suffix" })), this.caret && (h("span", { part: "caret", class: "button__caret" }, h("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("polyline", { points: "6 9 12 15 18 9" })))), this.loading && h("six-spinner", null))));
107
107
  }
108
108
  static get is() { return "six-button"; }
109
109
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"six-button.js","sourceRoot":"","sources":["../../../src/components/six-button/six-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;;;;;;;;;GAeG;AAOH,MAAM,OAAO,SAAS;;QA2EZ,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnC,IAAI,CAAC,SAAS,GAAG,OAA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;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { submitForm } from '../../utils/form';\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 - The button's label.\n * @slot prefix - Used to prepend an icon or similar element to the button.\n * @slot suffix - Used to append an icon or similar element to the button.\n *\n * @part base - The component's base wrapper.\n * @part prefix - The prefix container.\n * @part label - The button's label.\n * @part suffix - The suffix container.\n * @part caret - The button's caret.\n */\n\n@Component({\n tag: 'six-button',\n styleUrl: 'six-button.scss',\n shadow: true,\n})\nexport class SixButton {\n private nativeButton?: HTMLButtonElement | HTMLAnchorElement;\n\n @Element() host!: HTMLSixButtonElement;\n\n @State() hasFocus = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasSuffix = false;\n\n /** The button's type. */\n @Prop({ reflect: true }) type: 'secondary' | 'primary' | 'link' | 'success' | 'warning' | 'danger' | 'action' =\n 'primary';\n\n /** The button's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw the button with a caret for use with dropdowns, popovers, etc. */\n @Prop() caret = false;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to draw the button in a loading state. */\n @Prop({ reflect: true }) loading = false;\n\n /** Set to true to draw a pill-style button with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to draw a circle button. */\n @Prop({ reflect: true }) circle = false;\n\n /** Indicates if activating the button should submit the form. Ignored when `href` is set. */\n @Prop({ reflect: true }) submit = false;\n\n /** Indicates if activating the button should reset the form. */\n @Prop({ reflect: true }) reset = false;\n\n /** An optional name for the button. Ignored when `href` is set. */\n @Prop() name = '';\n\n /** An optional value for the button. Ignored when `href` is set. */\n @Prop() value = '';\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 /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */\n @Prop() download?: string;\n\n /** Emitted when the button loses focus. */\n @Event({ eventName: 'six-button-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the button gains focus. */\n @Event({ eventName: 'six-button-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeButton?.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.nativeButton?.blur();\n }\n\n private handleSlotChange = () => {\n this.hasLabel = hasSlot(this.host);\n this.hasPrefix = hasSlot(this.host, 'prefix');\n this.hasSuffix = hasSlot(this.host, 'suffix');\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleClick = (event: MouseEvent) => {\n if (this.disabled || this.loading) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n if (this.submit) {\n event.preventDefault();\n submitForm(this.host);\n }\n };\n\n render() {\n const isLink = this.href != null;\n const isButton = !isLink;\n const Button = isLink ? 'a' : 'button';\n\n return (\n <div onClick={this.handleClick} class={{ 'button-wrapper--disabled': this.disabled }}>\n <Button\n ref={(el) => (this.nativeButton = el)}\n part=\"base\"\n class={{\n button: true,\n\n // Types\n 'button--secondary': this.type === 'secondary',\n 'button--primary': this.type === 'primary',\n 'button--link': this.type === 'link',\n 'button--success': this.type === 'success',\n 'button--warning': this.type === 'warning',\n 'button--danger': this.type === 'danger',\n 'button--action': this.type === 'action',\n\n // Sizes\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n\n // Modifiers\n 'button--caret': this.caret,\n 'button--circle': this.circle,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--pill': this.pill,\n 'button--has-label': this.hasLabel,\n 'button--has-prefix': this.hasPrefix,\n 'button--has-suffix': this.hasSuffix,\n }}\n disabled={isButton ? this.disabled : undefined}\n tabindex={this.disabled ? '-1' : undefined}\n type={isButton ? (this.submit ? 'submit' : this.reset ? 'reset' : 'button') : undefined}\n name={isButton ? this.name : undefined}\n value={isButton ? this.value : undefined}\n href={isLink ? this.href : undefined}\n target={isLink && this.target != null ? this.target : undefined}\n download={isLink && this.download != null ? this.download : undefined}\n rel={isLink && this.target != null ? 'noreferrer noopener' : undefined}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n data-testid=\"button\"\n >\n <span part=\"prefix\" class=\"button__prefix\">\n <slot onSlotchange={this.handleSlotChange} name=\"prefix\" />\n </span>\n <span part=\"label\" class=\"button__label\">\n <slot onSlotchange={this.handleSlotChange} />\n </span>\n <span part=\"suffix\" class=\"button__suffix\">\n <slot onSlotchange={this.handleSlotChange} name=\"suffix\" />\n </span>\n {this.caret && (\n <span part=\"caret\" class=\"button__caret\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\" />\n </svg>\n </span>\n )}\n\n {this.loading && <six-spinner />}\n </Button>\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-button.js","sourceRoot":"","sources":["../../../src/components/six-button/six-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,U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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { submitForm } from '../../utils/form';\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 - The button's label.\n * @slot prefix - Used to prepend an icon or similar element to the button.\n * @slot suffix - Used to append an icon or similar element to the button.\n *\n * @part base - The component's base wrapper.\n * @part prefix - The prefix container.\n * @part label - The button's label.\n * @part suffix - The suffix container.\n * @part caret - The button's caret.\n */\n\n@Component({\n tag: 'six-button',\n styleUrl: 'six-button.scss',\n shadow: true,\n})\nexport class SixButton {\n private nativeButton?: HTMLButtonElement | HTMLAnchorElement;\n\n @Element() host!: HTMLSixButtonElement;\n\n @State() hasFocus = false;\n @State() hasLabel = false;\n @State() hasPrefix = false;\n @State() hasSuffix = false;\n\n /** The button's type. */\n @Prop({ reflect: true }) type: 'secondary' | 'primary' | 'link' | 'success' | 'warning' | 'danger' | 'action' =\n 'primary';\n\n /** The button's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw the button with a caret for use with dropdowns, popovers, etc. */\n @Prop() caret = false;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to draw the button in a loading state. */\n @Prop({ reflect: true }) loading = false;\n\n /** Set to true to draw a pill-style button with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to draw a circle button. */\n @Prop({ reflect: true }) circle = false;\n\n /** Indicates if activating the button should submit the form. Ignored when `href` is set. */\n @Prop({ reflect: true }) submit = false;\n\n /** Indicates if activating the button should reset the form. */\n @Prop({ reflect: true }) reset = false;\n\n /** An optional name for the button. Ignored when `href` is set. */\n @Prop() name = '';\n\n /** An optional value for the button. Ignored when `href` is set. */\n @Prop() value = '';\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 /** Tells the browser to download the linked file as this filename. Only used when `href` is set. */\n @Prop() download?: string;\n\n /** Emitted when the button loses focus. */\n @Event({ eventName: 'six-button-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the button gains focus. */\n @Event({ eventName: 'six-button-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeButton?.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.nativeButton?.blur();\n }\n\n private handleSlotChange = () => {\n this.hasLabel = hasSlot(this.host);\n this.hasPrefix = hasSlot(this.host, 'prefix');\n this.hasSuffix = hasSlot(this.host, 'suffix');\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleClick = (event: MouseEvent) => {\n if (this.disabled || this.loading) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n if (this.submit) {\n event.preventDefault();\n submitForm(this.host);\n }\n };\n\n render() {\n const isLink = this.href != null;\n const isButton = !isLink;\n const Button = isLink ? 'a' : 'button';\n\n return (\n <div onClick={this.handleClick} class={{ 'button-wrapper--disabled': this.disabled }}>\n <Button\n ref={(el) => (this.nativeButton = el)}\n part=\"base\"\n class={{\n button: true,\n\n // Types\n 'button--secondary': this.type === 'secondary',\n 'button--primary': this.type === 'primary',\n 'button--link': this.type === 'link',\n 'button--success': this.type === 'success',\n 'button--warning': this.type === 'warning',\n 'button--danger': this.type === 'danger',\n 'button--action': this.type === 'action',\n\n // Sizes\n 'button--small': this.size === 'small',\n 'button--medium': this.size === 'medium',\n 'button--large': this.size === 'large',\n\n // Modifiers\n 'button--caret': this.caret,\n 'button--circle': this.circle,\n 'button--disabled': this.disabled,\n 'button--focused': this.hasFocus,\n 'button--loading': this.loading,\n 'button--pill': this.pill,\n 'button--has-label': this.hasLabel,\n 'button--has-prefix': this.hasPrefix,\n 'button--has-suffix': this.hasSuffix,\n }}\n disabled={isButton ? this.disabled : undefined}\n tabindex={this.disabled ? '-1' : undefined}\n type={isButton ? (this.submit ? 'submit' : this.reset ? 'reset' : 'button') : undefined}\n name={isButton ? this.name : undefined}\n value={isButton ? this.value : undefined}\n href={isLink ? this.href : undefined}\n target={isLink && this.target != null ? this.target : undefined}\n download={isLink && this.download != null ? this.download : undefined}\n rel={isLink && this.target != null ? 'noreferrer noopener' : undefined}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n data-testid=\"button\"\n >\n <span part=\"prefix\" class=\"button__prefix\">\n <slot onSlotchange={this.handleSlotChange} name=\"prefix\" />\n </span>\n <span part=\"label\" class=\"button__label\">\n <slot onSlotchange={this.handleSlotChange} />\n </span>\n <span part=\"suffix\" class=\"button__suffix\">\n <slot onSlotchange={this.handleSlotChange} name=\"suffix\" />\n </span>\n {this.caret && (\n <span part=\"caret\" class=\"button__caret\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"6 9 12 15 18 9\" />\n </svg>\n </span>\n )}\n\n {this.loading && <six-spinner />}\n </Button>\n </div>\n );\n }\n}\n"]}
@@ -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CAAC,IAAI,0CAAE,gBAAgB,CAAC,iBAAiB,EAAE,GAAG,CAAC,CAAC;gBACpD,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAE5B,OAAO;gBACP,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;gBACxC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAE5B,OAAO;gBACP,MAAM,CAAC,GAAG,CAAC,CAAC,gBAAgB,EAAE,CAAC;YACjC,CAAC,CAAC,CAAC;YAEH,EAAE,CAAC,kDAAkD,EAAE,KAAK,IAAI,EAAE;;gBAChE,MAAM,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;gBACtB,MAAA,IAAI,CAAC,IAAI,0CAAE,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;gBACrD,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAE5B,OAAO;gBACP,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;gBACzC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAE5B,OAAO;gBACP,MAAM,CAAC,GAAG,CAAC,CAAC,gBAAgB,EAAE,CAAC;YACjC,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage, SpecPage } from '@stencil/core/testing';\nimport { SixButton } from '../six-button';\n\ninterface TypedSpecPage<T> extends Omit<SpecPage, 'root'> {\n root?: HTMLElement & T;\n}\n\ndescribe('six-button', () => {\n it('should create a component instance', () => {\n expect(new SixButton()).toBeInstanceOf(SixButton);\n });\n\n describe('rendering', () => {\n let page: TypedSpecPage<SixButton>;\n let button: HTMLButtonElement;\n\n beforeEach(async () => {\n page = (await newSpecPage({\n components: [SixButton],\n html: `<six-button></six-button>`,\n supportsShadowDom: true,\n })) as TypedSpecPage<SixButton>;\n const queryResult = page.root?.shadowRoot?.querySelector('[data-testid=\"button\"]');\n if (queryResult != null) {\n button = queryResult as HTMLButtonElement;\n }\n });\n\n it('renders', async () => {\n expect(page.root).toEqualHtml(`\n <six-button size=\"medium\" type=\"primary\">\n <mock:shadow-root>\n <div>\n <button class=\"button button--primary button--medium\" part=\"base\" type=\"button\" data-testid=\"button\" value=\"\">\n <span part=\"prefix\" class=\"button__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n <span part=\"label\" class=\"button__label\">\n <slot></slot>\n </span>\n <span part=\"suffix\" class=\"button__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n </button>\n </div>\n </mock:shadow-root>\n </six-button>\n `);\n });\n\n describe('custom events', () => {\n it(`should propagate custom 'six-button-blur' event`, async () => {\n const spy = jest.fn();\n page.root?.addEventListener('six-button-blur', spy);\n await page.waitForChanges();\n\n // when\n button.dispatchEvent(new Event('blur'));\n await page.waitForChanges();\n\n // then\n expect(spy).toHaveBeenCalled();\n });\n\n it(`should propagate custom 'six-button-focus' event`, async () => {\n const spy = jest.fn();\n page.root?.addEventListener('six-button-focus', spy);\n await page.waitForChanges();\n\n // when\n button.dispatchEvent(new Event('focus'));\n await page.waitForChanges();\n\n // then\n expect(spy).toHaveBeenCalled();\n });\n });\n });\n});\n"]}
1
+ {"version":3,"file":"six-button.spec.js","sourceRoot":"","sources":["../../../../src/components/six-button/test/six-button.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,EAAE,CAAC,oCAAoC,EAAE,GAAG,EAAE;QAC5C,MAAM,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;QACzB,IA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EAAE,CAAC;gBACtB,MAAA,IAAI,CAAC,IAAI,0CAAE,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;gBACrD,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAE5B,OAAO;gBACP,MAAM,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;gBACzC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;gBAE5B,OAAO;gBACP,MAAM,CAAC,GAAG,CAAC,CAAC,gBAAgB,EAAE,CAAC;YACjC,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage, SpecPage } from '@stencil/core/testing';\nimport { SixButton } from '../six-button';\n\ninterface TypedSpecPage<T> extends Omit<SpecPage, 'root'> {\n root?: HTMLElement & T;\n}\n\ndescribe('six-button', () => {\n it('should create a component instance', () => {\n expect(new SixButton()).toBeInstanceOf(SixButton);\n });\n\n describe('rendering', () => {\n let page: TypedSpecPage<SixButton>;\n let button: HTMLButtonElement;\n\n beforeEach(async () => {\n page = (await newSpecPage({\n components: [SixButton],\n html: `<six-button></six-button>`,\n supportsShadowDom: true,\n })) as TypedSpecPage<SixButton>;\n const queryResult = page.root?.shadowRoot?.querySelector('[data-testid=\"button\"]');\n if (queryResult != null) {\n button = queryResult as HTMLButtonElement;\n }\n });\n\n it('renders', async () => {\n expect(page.root).toEqualHtml(`\n <six-button size=\"medium\" type=\"primary\">\n <mock:shadow-root>\n <div>\n <button class=\"button button--primary button--medium\" part=\"base\" type=\"button\" data-testid=\"button\" value=\"\">\n <span part=\"prefix\" class=\"button__prefix\">\n <slot name=\"prefix\"></slot>\n </span>\n <span part=\"label\" class=\"button__label\">\n <slot></slot>\n </span>\n <span part=\"suffix\" class=\"button__suffix\">\n <slot name=\"suffix\"></slot>\n </span>\n </button>\n </div>\n </mock:shadow-root>\n </six-button>\n `);\n });\n\n describe('custom events', () => {\n it(`should propagate custom 'six-button-blur' event`, async () => {\n const spy = jest.fn();\n page.root?.addEventListener('six-button-blur', spy);\n await page.waitForChanges();\n\n // when\n button.dispatchEvent(new Event('blur'));\n await page.waitForChanges();\n\n // then\n expect(spy).toHaveBeenCalled();\n });\n\n it(`should propagate custom 'six-button-focus' event`, async () => {\n const spy = jest.fn();\n page.root?.addEventListener('six-button-focus', spy);\n await page.waitForChanges();\n\n // when\n button.dispatchEvent(new Event('focus'));\n await page.waitForChanges();\n\n // then\n expect(spy).toHaveBeenCalled();\n });\n });\n });\n});\n"]}
@@ -7,7 +7,7 @@ import { h, Host } from "@stencil/core";
7
7
  */
8
8
  export class SixCard {
9
9
  render() {
10
- return (h(Host, null, h("slot", null)));
10
+ return (h(Host, { key: 'ccbbf6bcbd5de13bb440629e16bfa95b9715a0d5' }, h("slot", { key: '70c3d1760568a36077ae8ed8ff74ce59f19a8843' })));
11
11
  }
12
12
  static get is() { return "six-card"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"six-card.js","sourceRoot":"","sources":["../../../src/components/six-card/six-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;GAKG;AAOH,MAAM,OAAO,OAAO;IAClB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,eAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the content of the card.\n */\n\n@Component({\n tag: 'six-card',\n styleUrl: 'six-card.scss',\n shadow: true,\n})\nexport class SixCard {\n render() {\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-card.js","sourceRoot":"","sources":["../../../src/components/six-card/six-card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD;;;;;GAKG;AAOH,MAAM,OAAO,OAAO;IAClB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,8DAAQ,CACH,CACR,CAAC;IACJ,CAAC;;;;;;;;;CACF","sourcesContent":["import { Component, h, Host } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the content of the card.\n */\n\n@Component({\n tag: 'six-card',\n styleUrl: 'six-card.scss',\n shadow: true,\n})\nexport class SixCard {\n render() {\n return (\n <Host>\n <slot />\n </Host>\n );\n }\n}\n"]}
@@ -112,6 +112,7 @@
112
112
  align-items: center;
113
113
  justify-content: center;
114
114
  width: var(--six-selection-control-toggle-size);
115
+ min-width: var(--six-selection-control-toggle-size);
115
116
  height: var(--six-selection-control-toggle-size);
116
117
  border: solid var(--six-border-width) var(--six-input-border-color);
117
118
  border-radius: 0;
@@ -125,6 +126,7 @@
125
126
  padding: 0;
126
127
  margin: 0;
127
128
  pointer-events: none;
129
+ min-width: var(--six-selection-control-toggle-size);
128
130
  }
129
131
  .checkbox__control .checkbox__icon {
130
132
  display: inline-flex;
@@ -107,14 +107,14 @@ export class SixCheckbox {
107
107
  this.hasErrorSlot = hasSlot(this.host, 'error-text');
108
108
  }
109
109
  render() {
110
- return (h(FormControl, { 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", { part: "base", class: {
110
+ return (h(FormControl, { key: '3d86769243701a88970d140cb59d8618006a826c', 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: '29a09dd1e61162652a4c204a47efc21059bfd1be', part: "base", class: {
111
111
  checkbox: true,
112
112
  'checkbox--checked': this.checked,
113
113
  'checkbox--disabled': this.disabled,
114
114
  'checkbox--focused': this.hasFocus,
115
115
  'checkbox--invalid': this.invalid,
116
116
  'checkbox--indeterminate': this.indeterminate,
117
- }, htmlFor: this.inputId, onMouseDown: this.handleMouseDown }, h("span", { part: "control", class: "checkbox__control" }, this.checked && (h("span", { part: "checked-icon", class: "checkbox__icon" }, h("svg", { viewBox: "0 0 16 16" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { stroke: "currentColor", "stroke-width": "2" }, h("g", { transform: "translate(3.428571, 3.428571)" }, h("path", { d: "M0,5.71428571 L3.42857143,9.14285714" }), h("path", { d: "M9.14285714,0 L3.42857143,9.14285714" }))))))), !this.checked && this.indeterminate && (h("span", { part: "indeterminate-icon", class: "checkbox__icon" }, h("svg", { viewBox: "0 0 16 16" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { stroke: "currentColor", "stroke-width": "2" }, h("g", { transform: "translate(2.285714, 6.857143)" }, h("path", { d: "M10.2857143,1.14285714 L1.14285714,1.14285714" }))))))), h("input", { 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", { part: "text", id: this.textId, class: "checkbox__text" }, h("slot", null)))));
117
+ }, htmlFor: this.inputId, onMouseDown: this.handleMouseDown }, h("span", { key: '2ef4936f11b18f13719143b8e9c728a94eba9776', part: "control", class: "checkbox__control" }, this.checked && (h("span", { part: "checked-icon", class: "checkbox__icon" }, h("svg", { viewBox: "0 0 16 16" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { stroke: "currentColor", "stroke-width": "2" }, h("g", { transform: "translate(3.428571, 3.428571)" }, h("path", { d: "M0,5.71428571 L3.42857143,9.14285714" }), h("path", { d: "M9.14285714,0 L3.42857143,9.14285714" }))))))), !this.checked && this.indeterminate && (h("span", { part: "indeterminate-icon", class: "checkbox__icon" }, h("svg", { viewBox: "0 0 16 16" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { stroke: "currentColor", "stroke-width": "2" }, h("g", { transform: "translate(2.285714, 6.857143)" }, h("path", { d: "M10.2857143,1.14285714 L1.14285714,1.14285714" }))))))), h("input", { key: 'd29de22f85a467a5b479c762e404193285ad50b5', 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: '39c4d70a0dc0e5e0bad96ddc9d192e7482eeb736', part: "text", id: this.textId, class: "checkbox__text" }, h("slot", { key: '5c97a9611282ee621e4e8f5eadb5fd01891b73e2' })))));
118
118
  }
119
119
  static get is() { return "six-checkbox"; }
120
120
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"six-checkbox.js","sourceRoot":"","sources":["../../../src/components/six-checkbox/six-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,WAAW,MAAM,uDAAuD,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAA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OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,qBAC5B,IAAI,CAAC,OAAO,EAC7B,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,GACzB,CACG;gBAEP,YAAM,IAAI,EAAC,MAAM,EAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,gBAAgB;oBACvD,eAAQ,CACH,CACD,CACI,CACf,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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 checkbox label.\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 control - The checkbox control.\n * @part checked-icon - The container the wraps the checked icon.\n * @part indeterminate-icon - The container that wraps the indeterminate icon.\n * @part text - The checkbox text rendered to the right.\n */\n\n@Component({\n tag: 'six-checkbox',\n styleUrl: 'six-checkbox.scss',\n shadow: true,\n})\nexport class SixCheckbox {\n private inputId = `checkbox-${++id}`;\n private labelId = `checkbox-label-${id}`;\n private textId = `checkbox-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private nativeInput?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixCheckboxElement;\n\n @State() hasFocus = false;\n @State() hasLabelSlot = false;\n @State() hasErrorSlot = false;\n\n /** The checkbox's name attribute. */\n @Prop() name = '';\n\n /**\n * The value of the checkbox does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a checkbox is analogous to the value of an `<input type=\"checkbox\">`,\n * it's only used when the checkbox participates in a native `<form>`.\n */\n @Prop() value = 'on';\n\n /** Set to true to disable the checkbox. */\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 = '';\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 /** Set to true to draw the checkbox in a checked state. */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /** Set to true to draw the checkbox in an indeterminate state. */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-checkbox-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control's checked state changes. */\n @Event({ eventName: 'six-checkbox-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-checkbox-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('checked')\n @Watch('indeterminate')\n handleCheckedChange() {\n if (this.nativeInput == null) return;\n\n this.nativeInput.checked = this.checked;\n this.checked = this.nativeInput.checked;\n this.nativeInput.indeterminate = this.indeterminate;\n }\n\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-checkbox-change', 'change', this.host);\n this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);\n this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n const nativeInput = this.nativeInput;\n if (nativeInput == null) {\n return;\n }\n\n nativeInput.indeterminate = this.indeterminate;\n }\n\n /** Sets focus on the checkbox. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n private handleChange = () => {\n if (this.nativeInput != null) {\n this.checked = this.nativeInput.checked;\n this.indeterminate = false;\n this.sixChange.emit();\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleMouseDown = (event: MouseEvent) => {\n // Prevent clicks on the label from briefly blurring the input\n event.preventDefault();\n this.nativeInput?.focus();\n };\n\n private handleSlotChange() {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorSlot = hasSlot(this.host, 'error-text');\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 errorTextId={this.errorTextId}\n hasErrorTextSlot={this.hasErrorSlot}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n size=\"medium\"\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <label\n part=\"base\"\n class={{\n checkbox: true,\n 'checkbox--checked': this.checked,\n 'checkbox--disabled': this.disabled,\n 'checkbox--focused': this.hasFocus,\n 'checkbox--invalid': this.invalid,\n 'checkbox--indeterminate': this.indeterminate,\n }}\n htmlFor={this.inputId}\n onMouseDown={this.handleMouseDown}\n >\n <span part=\"control\" class=\"checkbox__control\">\n {this.checked && (\n <span part=\"checked-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n {!this.checked && this.indeterminate && (\n <span part=\"indeterminate-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n <input\n ref={(el) => (this.nativeInput = el)}\n id={this.inputId}\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled}\n required={this.required}\n role=\"checkbox\"\n aria-checked={this.checked ? 'true' : 'false'}\n aria-labelledby={this.labelId}\n onChange={this.handleChange}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n />\n </span>\n\n <span part=\"text\" id={this.textId} class=\"checkbox__text\">\n <slot />\n </span>\n </label>\n </FormControl>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-checkbox.js","sourceRoot":"","sources":["../../../src/components/six-checkbox/six-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EA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AAI,CAAC,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,UAAU,kBACD,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,qBAC5B,IAAI,CAAC,OAAO,EAC7B,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,GACzB,CACG;gBAEP,6DAAM,IAAI,EAAC,MAAM,EAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,gBAAgB;oBACvD,8DAAQ,CACH,CACD,CACI,CACf,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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 checkbox label.\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 control - The checkbox control.\n * @part checked-icon - The container the wraps the checked icon.\n * @part indeterminate-icon - The container that wraps the indeterminate icon.\n * @part text - The checkbox text rendered to the right.\n */\n\n@Component({\n tag: 'six-checkbox',\n styleUrl: 'six-checkbox.scss',\n shadow: true,\n})\nexport class SixCheckbox {\n private inputId = `checkbox-${++id}`;\n private labelId = `checkbox-label-${id}`;\n private textId = `checkbox-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private nativeInput?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixCheckboxElement;\n\n @State() hasFocus = false;\n @State() hasLabelSlot = false;\n @State() hasErrorSlot = false;\n\n /** The checkbox's name attribute. */\n @Prop() name = '';\n\n /**\n * The value of the checkbox does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a checkbox is analogous to the value of an `<input type=\"checkbox\">`,\n * it's only used when the checkbox participates in a native `<form>`.\n */\n @Prop() value = 'on';\n\n /** Set to true to disable the checkbox. */\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 = '';\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 /** Set to true to draw the checkbox in a checked state. */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /** Set to true to draw the checkbox in an indeterminate state. */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-checkbox-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control's checked state changes. */\n @Event({ eventName: 'six-checkbox-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-checkbox-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('checked')\n @Watch('indeterminate')\n handleCheckedChange() {\n if (this.nativeInput == null) return;\n\n this.nativeInput.checked = this.checked;\n this.checked = this.nativeInput.checked;\n this.nativeInput.indeterminate = this.indeterminate;\n }\n\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-checkbox-change', 'change', this.host);\n this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);\n this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n const nativeInput = this.nativeInput;\n if (nativeInput == null) {\n return;\n }\n\n nativeInput.indeterminate = this.indeterminate;\n }\n\n /** Sets focus on the checkbox. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n private handleChange = () => {\n if (this.nativeInput != null) {\n this.checked = this.nativeInput.checked;\n this.indeterminate = false;\n this.sixChange.emit();\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleMouseDown = (event: MouseEvent) => {\n // Prevent clicks on the label from briefly blurring the input\n event.preventDefault();\n this.nativeInput?.focus();\n };\n\n private handleSlotChange() {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasErrorSlot = hasSlot(this.host, 'error-text');\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 errorTextId={this.errorTextId}\n hasErrorTextSlot={this.hasErrorSlot}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n size=\"medium\"\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <label\n part=\"base\"\n class={{\n checkbox: true,\n 'checkbox--checked': this.checked,\n 'checkbox--disabled': this.disabled,\n 'checkbox--focused': this.hasFocus,\n 'checkbox--invalid': this.invalid,\n 'checkbox--indeterminate': this.indeterminate,\n }}\n htmlFor={this.inputId}\n onMouseDown={this.handleMouseDown}\n >\n <span part=\"control\" class=\"checkbox__control\">\n {this.checked && (\n <span part=\"checked-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n {!this.checked && this.indeterminate && (\n <span part=\"indeterminate-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n <input\n ref={(el) => (this.nativeInput = el)}\n id={this.inputId}\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled}\n required={this.required}\n role=\"checkbox\"\n aria-checked={this.checked ? 'true' : 'false'}\n aria-labelledby={this.labelId}\n onChange={this.handleChange}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n />\n </span>\n\n <span part=\"text\" id={this.textId} class=\"checkbox__text\">\n <slot />\n </span>\n </label>\n </FormControl>\n );\n }\n}\n"]}
@@ -410,7 +410,7 @@ export class SixDatepicker {
410
410
  render() {
411
411
  var _a, _b, _c;
412
412
  this.adjustPopupPosition();
413
- return (h("div", { ref: (el) => (this.wrapper = el), class: "datepicker__container" }, h("six-input", { part: "base", value: formatDate(this.value, this.dateFormat), ref: (el) => (this.inputElement = el), placeholder: this.placeholder, readonly: this.readonly, disabled: this.disabled, name: this.name, label: this.label, required: this.required, errorText: this.errorText, errorTextCount: this.errorTextCount, invalid: this.invalid, onClick: () => this.openCalendar(), size: this.size, class: { 'input--empty': this.value == null } }, this.renderCustomIcon(), this.renderClearable(), hasSlot(this.host, 'label') ? (h("span", { slot: "label" }, h("slot", { name: "label" }))) : null, hasSlot(this.host, 'error-text') ? (h("span", { slot: "error-text" }, h("slot", { name: "error-text" }))) : null), this.open && (h("div", { part: "popup", ref: (el) => (this.popup = el), class: {
413
+ return (h("div", { key: 'dbe321672b79845093aa8c3186be30cb5819f09d', ref: (el) => (this.wrapper = el), class: "datepicker__container" }, h("six-input", { key: '9ba0be60aaacd602d68d298aedcd0694302ba553', part: "base", value: formatDate(this.value, this.dateFormat), ref: (el) => (this.inputElement = el), placeholder: this.placeholder, readonly: this.readonly, disabled: this.disabled, name: this.name, label: this.label, required: this.required, errorText: this.errorText, errorTextCount: this.errorTextCount, invalid: this.invalid, onClick: () => this.openCalendar(), size: this.size, class: { 'input--empty': this.value == null } }, this.renderCustomIcon(), this.renderClearable(), hasSlot(this.host, 'label') ? (h("span", { slot: "label" }, h("slot", { name: "label" }))) : null, hasSlot(this.host, 'error-text') ? (h("span", { slot: "error-text" }, h("slot", { name: "error-text" }))) : null), this.open && (h("div", { part: "popup", ref: (el) => (this.popup = el), class: {
414
414
  datepicker__popup: true,
415
415
  'datepicker__popup--is-up': this.placement != null ? this.placement === 'top' : this.isDropDownContentUp,
416
416
  'datepicker__popup--is-inline': this.inline,
@@ -477,8 +477,8 @@ export class SixDatepicker {
477
477
  "type": "string",
478
478
  "mutable": false,
479
479
  "complexType": {
480
- "original": "'en' | 'de' | 'fr' | 'it'",
481
- "resolved": "\"de\" | \"en\" | \"fr\" | \"it\"",
480
+ "original": "'en' | 'de' | 'fr' | 'it' | 'es'",
481
+ "resolved": "\"de\" | \"en\" | \"es\" | \"fr\" | \"it\"",
482
482
  "references": {}
483
483
  },
484
484
  "required": false,