@six-group/ui-library 0.0.0-insider.7c69df0 → 0.0.0-insider.7dadbda

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 (841) 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/error-messages-6e8049a4.js +119 -0
  4. package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
  5. package/dist/cjs/{form-control-f9bc25dd.js → form-control-73ff961d.js} +2 -2
  6. package/dist/cjs/{form-control-f9bc25dd.js.map → form-control-73ff961d.js.map} +1 -1
  7. package/dist/cjs/{index-3baddcdc.js → index-b288f7d9.js} +114 -509
  8. package/dist/cjs/index-b288f7d9.js.map +1 -0
  9. package/dist/cjs/index.cjs.js +54 -101
  10. package/dist/cjs/index.cjs.js.map +1 -1
  11. package/dist/cjs/loader.cjs.js +5 -3
  12. package/dist/cjs/loader.cjs.js.map +1 -1
  13. package/dist/cjs/{modal-3ce015be.js → modal-bd7fc5bc.js} +1 -18
  14. package/dist/cjs/modal-bd7fc5bc.js.map +1 -0
  15. package/dist/cjs/{popup-40a9adbb.js → popup-e854acda.js} +2 -2
  16. package/dist/cjs/popup-e854acda.js.map +1 -0
  17. package/dist/cjs/six-alert.cjs.entry.js +42 -9
  18. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  19. package/dist/cjs/six-avatar.cjs.entry.js +5 -4
  20. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  21. package/dist/cjs/six-badge.cjs.entry.js +6 -5
  22. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  23. package/dist/cjs/six-button.cjs.entry.js +7 -6
  24. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  25. package/dist/cjs/six-card.cjs.entry.js +5 -4
  26. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  27. package/dist/cjs/six-checkbox_2.cjs.entry.js +192 -0
  28. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -0
  29. package/dist/cjs/six-datepicker.cjs.entry.js +33 -6
  30. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-details.cjs.entry.js +7 -6
  32. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-dialog.cjs.entry.js +16 -32
  34. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-drawer.cjs.entry.js +15 -32
  36. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  37. package/dist/cjs/six-dropdown_2.cjs.entry.js +204 -130
  38. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  39. package/dist/cjs/six-error-page.cjs.entry.js +4 -3
  40. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-error.cjs.entry.js +4 -3
  42. package/dist/cjs/six-error.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-file-list-item.cjs.entry.js +6 -5
  44. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-file-list.cjs.entry.js +4 -3
  46. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-file-upload.cjs.entry.js +11 -9
  48. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  49. package/dist/cjs/six-footer.cjs.entry.js +5 -4
  50. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  51. package/dist/cjs/six-group-label.cjs.entry.js +7 -6
  52. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  53. package/dist/cjs/six-header.cjs.entry.js +16 -13
  54. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  55. package/dist/cjs/six-icon-button.cjs.entry.js +7 -6
  56. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-icon.cjs.entry.js +6 -5
  58. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-input.cjs.entry.js +11 -8
  60. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-item-picker.cjs.entry.js +7 -6
  62. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-language-switcher.cjs.entry.js +11 -6
  64. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  65. package/dist/cjs/six-layout-grid.cjs.entry.js +4 -3
  66. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  67. package/dist/cjs/six-main-container.cjs.entry.js +4 -3
  68. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  69. package/dist/cjs/six-menu-divider.cjs.entry.js +5 -4
  70. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  71. package/dist/cjs/six-menu-label.cjs.entry.js +5 -4
  72. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-picto.cjs.entry.js +4 -3
  74. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  75. package/dist/cjs/six-progress-bar.cjs.entry.js +6 -5
  76. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  77. package/dist/cjs/six-progress-ring.cjs.entry.js +5 -4
  78. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-radio.cjs.entry.js +6 -5
  80. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-range.cjs.entry.js +18 -7
  82. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-root.cjs.entry.js +4 -22
  84. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-search-field.cjs.entry.js +5 -4
  86. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-select.cjs.entry.js +302 -170
  88. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +5 -4
  90. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  91. package/dist/cjs/six-sidebar-item.cjs.entry.js +5 -4
  92. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-sidebar.cjs.entry.js +6 -5
  94. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-spinner.cjs.entry.js +5 -4
  96. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-stage-indicator.cjs.entry.js +23 -0
  98. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
  99. package/dist/cjs/six-switch.cjs.entry.js +8 -7
  100. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-tab-group.cjs.entry.js +35 -9
  102. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  103. package/dist/cjs/six-tab-panel.cjs.entry.js +5 -4
  104. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  105. package/dist/cjs/six-tab.cjs.entry.js +6 -5
  106. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  107. package/dist/cjs/six-tag.cjs.entry.js +7 -6
  108. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  109. package/dist/cjs/six-textarea.cjs.entry.js +8 -7
  110. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  111. package/dist/cjs/six-tile.cjs.entry.js +8 -7
  112. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  113. package/dist/cjs/six-timepicker.cjs.entry.js +8 -7
  114. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  115. package/dist/cjs/six-tooltip.cjs.entry.js +6 -5
  116. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  117. package/dist/cjs/{slot-9821749e.js → slot-1b1232a1.js} +1 -3
  118. package/dist/cjs/slot-1b1232a1.js.map +1 -0
  119. package/dist/cjs/{types-0a6d66f6.js → types-d3da200b.js} +3 -1
  120. package/dist/cjs/types-d3da200b.js.map +1 -0
  121. package/dist/cjs/ui-library.cjs.js +6 -4
  122. package/dist/cjs/ui-library.cjs.js.map +1 -1
  123. package/dist/collection/collection-manifest.json +5 -6
  124. package/dist/collection/components/six-alert/six-alert.css +5 -1
  125. package/dist/collection/components/six-alert/six-alert.js +57 -12
  126. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  127. package/dist/collection/components/six-avatar/six-avatar.css +2 -2
  128. package/dist/collection/components/six-avatar/six-avatar.js +1 -1
  129. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  130. package/dist/collection/components/six-badge/six-badge.css +1 -1
  131. package/dist/collection/components/six-badge/six-badge.js +2 -2
  132. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  133. package/dist/collection/components/six-button/six-button.css +2 -1
  134. package/dist/collection/components/six-button/six-button.js +5 -4
  135. package/dist/collection/components/six-button/six-button.js.map +1 -1
  136. package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -1
  137. package/dist/collection/components/six-card/six-card.css +4 -5
  138. package/dist/collection/components/six-card/six-card.js +1 -1
  139. package/dist/collection/components/six-card/six-card.js.map +1 -1
  140. package/dist/collection/components/six-checkbox/six-checkbox.css +3 -1
  141. package/dist/collection/components/six-checkbox/six-checkbox.js +5 -4
  142. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  143. package/dist/collection/components/six-datepicker/six-date-formats.js +1 -0
  144. package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
  145. package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
  146. package/dist/collection/components/six-datepicker/six-datepicker.js +9 -7
  147. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  148. package/dist/collection/components/six-details/six-details.css +1 -5
  149. package/dist/collection/components/six-details/six-details.js +3 -3
  150. package/dist/collection/components/six-details/six-details.js.map +1 -1
  151. package/dist/collection/components/six-dialog/six-dialog.css +2 -2
  152. package/dist/collection/components/six-dialog/six-dialog.js +10 -28
  153. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  154. package/dist/collection/components/six-drawer/six-drawer.css +2 -2
  155. package/dist/collection/components/six-drawer/six-drawer.js +9 -28
  156. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  157. package/dist/collection/components/six-dropdown/six-dropdown.css +22 -7
  158. package/dist/collection/components/six-dropdown/six-dropdown.js +216 -124
  159. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  160. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +54 -29
  161. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -1
  162. package/dist/collection/components/six-error/six-error.js +1 -1
  163. package/dist/collection/components/six-error/six-error.js.map +1 -1
  164. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  165. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  166. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  167. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  168. package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
  169. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  170. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  171. package/dist/collection/components/six-file-upload/six-file-upload.css +9 -4
  172. package/dist/collection/components/six-file-upload/six-file-upload.js +25 -6
  173. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  174. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +76 -21
  175. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -1
  176. package/dist/collection/components/six-footer/six-footer.css +2 -2
  177. package/dist/collection/components/six-footer/six-footer.js +1 -1
  178. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  179. package/dist/collection/components/six-group-label/six-group-label.css +1 -1
  180. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  181. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  182. package/dist/collection/components/six-header/six-header.css +6 -2
  183. package/dist/collection/components/six-header/six-header.js +32 -11
  184. package/dist/collection/components/six-header/six-header.js.map +1 -1
  185. package/dist/collection/components/six-header/test/six-header.spec.js +38 -2
  186. package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -1
  187. package/dist/collection/components/six-icon/six-icon.css +5 -2
  188. package/dist/collection/components/six-icon/six-icon.js +2 -2
  189. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  190. package/dist/collection/components/six-icon-button/six-icon-button.css +1 -1
  191. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  192. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  193. package/dist/collection/components/six-input/six-input.css +10 -1
  194. package/dist/collection/components/six-input/six-input.js +47 -19
  195. package/dist/collection/components/six-input/six-input.js.map +1 -1
  196. package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
  197. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  198. package/dist/collection/components/six-item-picker/types.js +2 -0
  199. package/dist/collection/components/six-item-picker/types.js.map +1 -1
  200. package/dist/collection/components/six-language-switcher/six-language-switcher.css +7 -2
  201. package/dist/collection/components/six-language-switcher/six-language-switcher.js +7 -3
  202. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  203. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +20 -20
  204. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -1
  205. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  206. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  207. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  208. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  209. package/dist/collection/components/six-menu/six-menu.css +8 -7
  210. package/dist/collection/components/six-menu/six-menu.js +30 -8
  211. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  212. package/dist/collection/components/six-menu/test/six-menu.spec.js +6 -6
  213. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -1
  214. package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
  215. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  216. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  217. package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
  218. package/dist/collection/components/six-menu-item/six-menu-item.js +37 -8
  219. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  220. package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
  221. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  222. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  223. package/dist/collection/components/six-picto/six-picto.js +1 -1
  224. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  225. package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
  226. package/dist/collection/components/six-progress-bar/six-progress-bar.js +2 -2
  227. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  228. package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
  229. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  230. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  231. package/dist/collection/components/six-radio/six-radio.css +1 -1
  232. package/dist/collection/components/six-radio/six-radio.js +5 -4
  233. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  234. package/dist/collection/components/six-range/six-range.css +2 -2
  235. package/dist/collection/components/six-range/six-range.js +15 -4
  236. package/dist/collection/components/six-range/six-range.js.map +1 -1
  237. package/dist/collection/components/six-root/six-root.js +1 -69
  238. package/dist/collection/components/six-root/six-root.js.map +1 -1
  239. package/dist/collection/components/six-root/test/six-root.spec.js +0 -7
  240. package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -1
  241. package/dist/collection/components/six-search-field/six-search-field.css +1 -1
  242. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  243. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  244. package/dist/collection/components/six-select/six-select.css +54 -66
  245. package/dist/collection/components/six-select/six-select.js +343 -168
  246. package/dist/collection/components/six-select/six-select.js.map +1 -1
  247. package/dist/collection/components/six-select/test/six-select.spec.js +31 -15
  248. package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -1
  249. package/dist/collection/components/six-select/util.js.map +1 -1
  250. package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
  251. package/dist/collection/components/six-sidebar/six-sidebar.js +8 -6
  252. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  253. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  254. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  255. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +2 -1
  256. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  257. package/dist/collection/components/six-spinner/six-spinner.css +1 -1
  258. package/dist/collection/components/six-spinner/six-spinner.js +2 -1
  259. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
  260. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +1 -1
  261. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +1 -1
  262. package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
  263. package/dist/collection/components/six-switch/six-switch.css +1 -1
  264. package/dist/collection/components/six-switch/six-switch.js +5 -4
  265. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  266. package/dist/collection/components/six-tab/six-tab.css +1 -1
  267. package/dist/collection/components/six-tab/six-tab.js +5 -4
  268. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  269. package/dist/collection/components/six-tab-group/six-tab-group.css +1 -1
  270. package/dist/collection/components/six-tab-group/six-tab-group.js +36 -9
  271. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  272. package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
  273. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  274. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  275. package/dist/collection/components/six-tag/six-tag.css +1 -1
  276. package/dist/collection/components/six-tag/six-tag.js +2 -2
  277. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  278. package/dist/collection/components/six-textarea/six-textarea.css +1 -1
  279. package/dist/collection/components/six-textarea/six-textarea.js +26 -18
  280. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  281. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -1
  282. package/dist/collection/components/six-tile/six-tile.css +2 -2
  283. package/dist/collection/components/six-tile/six-tile.js +3 -3
  284. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  285. package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
  286. package/dist/collection/components/six-timepicker/six-timepicker.js +4 -3
  287. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  288. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -1
  289. package/dist/collection/components/six-tooltip/six-tooltip.css +1 -1
  290. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  291. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  292. package/dist/collection/index.js +1 -0
  293. package/dist/collection/index.js.map +1 -1
  294. package/dist/collection/utils/alert.js +54 -0
  295. package/dist/collection/utils/alert.js.map +1 -0
  296. package/dist/collection/utils/date-util.js +25 -0
  297. package/dist/collection/utils/date-util.js.map +1 -1
  298. package/dist/collection/utils/date-util.spec.js.map +1 -1
  299. package/dist/collection/utils/error-messages.js +7 -0
  300. package/dist/collection/utils/error-messages.js.map +1 -1
  301. package/dist/collection/utils/event-listeners.js.map +1 -1
  302. package/dist/collection/utils/focus-visible.js.map +1 -1
  303. package/dist/collection/utils/form.js.map +1 -1
  304. package/dist/collection/utils/modal.js.map +1 -1
  305. package/dist/collection/utils/popover.js.map +1 -1
  306. package/dist/collection/utils/popup.js +1 -1
  307. package/dist/collection/utils/popup.js.map +1 -1
  308. package/dist/collection/utils/scroll.js.map +1 -1
  309. package/dist/collection/utils/slot.js +0 -1
  310. package/dist/collection/utils/slot.js.map +1 -1
  311. package/dist/collection/utils/tabbable.js.map +1 -1
  312. package/dist/collection/utils/time.util.js.map +1 -1
  313. package/dist/collection/utils/time.util.spec.js.map +1 -1
  314. package/dist/components/index.js +50 -102
  315. package/dist/components/index.js.map +1 -1
  316. package/dist/components/modal.js +1 -17
  317. package/dist/components/modal.js.map +1 -1
  318. package/dist/components/six-alert.js +41 -8
  319. package/dist/components/six-alert.js.map +1 -1
  320. package/dist/components/six-avatar.js +4 -3
  321. package/dist/components/six-avatar.js.map +1 -1
  322. package/dist/components/six-badge.js +5 -4
  323. package/dist/components/six-badge.js.map +1 -1
  324. package/dist/components/six-button.js +1 -142
  325. package/dist/components/six-button.js.map +1 -1
  326. package/dist/components/six-button2.js +147 -0
  327. package/dist/components/six-button2.js.map +1 -0
  328. package/dist/components/six-card.js +4 -3
  329. package/dist/components/six-card.js.map +1 -1
  330. package/dist/components/six-checkbox.js +1 -161
  331. package/dist/components/six-checkbox.js.map +1 -1
  332. package/dist/components/six-checkbox2.js +166 -0
  333. package/dist/components/six-checkbox2.js.map +1 -0
  334. package/dist/components/six-datepicker.js +30 -3
  335. package/dist/components/six-datepicker.js.map +1 -1
  336. package/dist/components/six-details2.js +6 -5
  337. package/dist/components/six-details2.js.map +1 -1
  338. package/dist/components/six-dialog.js +14 -30
  339. package/dist/components/six-dialog.js.map +1 -1
  340. package/dist/components/six-drawer.js +13 -30
  341. package/dist/components/six-drawer.js.map +1 -1
  342. package/dist/components/six-dropdown2.js +204 -127
  343. package/dist/components/six-dropdown2.js.map +1 -1
  344. package/dist/components/six-error-page.js +3 -2
  345. package/dist/components/six-error-page.js.map +1 -1
  346. package/dist/components/six-error2.js +3 -2
  347. package/dist/components/six-error2.js.map +1 -1
  348. package/dist/components/six-file-list-item.js +5 -4
  349. package/dist/components/six-file-list-item.js.map +1 -1
  350. package/dist/components/six-file-list.js +3 -2
  351. package/dist/components/six-file-list.js.map +1 -1
  352. package/dist/components/six-file-upload.js +19 -10
  353. package/dist/components/six-file-upload.js.map +1 -1
  354. package/dist/components/six-footer.js +4 -3
  355. package/dist/components/six-footer.js.map +1 -1
  356. package/dist/components/six-group-label.js +4 -3
  357. package/dist/components/six-group-label.js.map +1 -1
  358. package/dist/components/six-header.js +22 -12
  359. package/dist/components/six-header.js.map +1 -1
  360. package/dist/components/six-icon-button2.js +6 -5
  361. package/dist/components/six-icon-button2.js.map +1 -1
  362. package/dist/components/six-icon2.js +5 -4
  363. package/dist/components/six-icon2.js.map +1 -1
  364. package/dist/components/six-input2.js +9 -5
  365. package/dist/components/six-input2.js.map +1 -1
  366. package/dist/components/six-item-picker2.js +7 -4
  367. package/dist/components/six-item-picker2.js.map +1 -1
  368. package/dist/components/six-language-switcher.js +10 -5
  369. package/dist/components/six-language-switcher.js.map +1 -1
  370. package/dist/components/six-layout-grid.js +3 -2
  371. package/dist/components/six-layout-grid.js.map +1 -1
  372. package/dist/components/six-main-container.js +3 -2
  373. package/dist/components/six-main-container.js.map +1 -1
  374. package/dist/components/six-menu-divider.js +4 -3
  375. package/dist/components/six-menu-divider.js.map +1 -1
  376. package/dist/components/six-menu-item2.js +31 -7
  377. package/dist/components/six-menu-item2.js.map +1 -1
  378. package/dist/components/six-menu-label.js +4 -3
  379. package/dist/components/six-menu-label.js.map +1 -1
  380. package/dist/components/six-menu2.js +26 -9
  381. package/dist/components/six-menu2.js.map +1 -1
  382. package/dist/components/six-picto2.js +3 -2
  383. package/dist/components/six-picto2.js.map +1 -1
  384. package/dist/components/six-progress-bar.js +5 -4
  385. package/dist/components/six-progress-bar.js.map +1 -1
  386. package/dist/components/six-progress-ring.js +4 -3
  387. package/dist/components/six-progress-ring.js.map +1 -1
  388. package/dist/components/six-radio.js +5 -4
  389. package/dist/components/six-radio.js.map +1 -1
  390. package/dist/components/six-range.js +15 -4
  391. package/dist/components/six-range.js.map +1 -1
  392. package/dist/components/six-root.js +6 -34
  393. package/dist/components/six-root.js.map +1 -1
  394. package/dist/components/six-search-field.js +4 -3
  395. package/dist/components/six-search-field.js.map +1 -1
  396. package/dist/components/six-select.js +437 -186
  397. package/dist/components/six-select.js.map +1 -1
  398. package/dist/components/six-sidebar-item-group.js +3 -2
  399. package/dist/components/six-sidebar-item-group.js.map +1 -1
  400. package/dist/components/six-sidebar-item.js +4 -3
  401. package/dist/components/six-sidebar-item.js.map +1 -1
  402. package/dist/components/six-sidebar.js +5 -4
  403. package/dist/components/six-sidebar.js.map +1 -1
  404. package/dist/components/six-spinner2.js +4 -3
  405. package/dist/components/six-spinner2.js.map +1 -1
  406. package/dist/components/six-stage-indicator2.js +3 -2
  407. package/dist/components/six-stage-indicator2.js.map +1 -1
  408. package/dist/components/six-switch.js +5 -4
  409. package/dist/components/six-switch.js.map +1 -1
  410. package/dist/components/six-tab-group.js +36 -9
  411. package/dist/components/six-tab-group.js.map +1 -1
  412. package/dist/components/six-tab-panel.js +4 -3
  413. package/dist/components/six-tab-panel.js.map +1 -1
  414. package/dist/components/six-tab.js +5 -4
  415. package/dist/components/six-tab.js.map +1 -1
  416. package/dist/components/six-tag.js +99 -1
  417. package/dist/components/six-tag.js.map +1 -1
  418. package/dist/components/six-textarea.js +5 -4
  419. package/dist/components/six-textarea.js.map +1 -1
  420. package/dist/components/six-tile.js +6 -5
  421. package/dist/components/six-tile.js.map +1 -1
  422. package/dist/components/six-timepicker2.js +5 -4
  423. package/dist/components/six-timepicker2.js.map +1 -1
  424. package/dist/components/six-tooltip2.js +5 -4
  425. package/dist/components/six-tooltip2.js.map +1 -1
  426. package/dist/components/slot.js +1 -2
  427. package/dist/components/slot.js.map +1 -1
  428. package/dist/components.d.ts +1 -21
  429. package/dist/components.json +636 -235
  430. package/dist/esm/app-globals-0f993ce5.js +5 -0
  431. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  432. package/dist/esm/error-messages-1eaaad23.js +115 -0
  433. package/dist/esm/error-messages-1eaaad23.js.map +1 -0
  434. package/dist/esm/{form-control-6b30894f.js → form-control-40c37714.js} +2 -2
  435. package/dist/esm/{form-control-6b30894f.js.map → form-control-40c37714.js.map} +1 -1
  436. package/dist/esm/{index-17d8173e.js → index-52a755dc.js} +114 -509
  437. package/dist/esm/index-52a755dc.js.map +1 -0
  438. package/dist/esm/index.js +51 -100
  439. package/dist/esm/index.js.map +1 -1
  440. package/dist/esm/loader.js +6 -4
  441. package/dist/esm/loader.js.map +1 -1
  442. package/dist/esm/{modal-96526245.js → modal-6c1288e3.js} +2 -18
  443. package/dist/esm/modal-6c1288e3.js.map +1 -0
  444. package/dist/esm/{popup-e8049817.js → popup-7209e9d5.js} +2 -2
  445. package/dist/esm/popup-7209e9d5.js.map +1 -0
  446. package/dist/esm/six-alert.entry.js +42 -9
  447. package/dist/esm/six-alert.entry.js.map +1 -1
  448. package/dist/esm/six-avatar.entry.js +5 -4
  449. package/dist/esm/six-avatar.entry.js.map +1 -1
  450. package/dist/esm/six-badge.entry.js +6 -5
  451. package/dist/esm/six-badge.entry.js.map +1 -1
  452. package/dist/esm/six-button.entry.js +7 -6
  453. package/dist/esm/six-button.entry.js.map +1 -1
  454. package/dist/esm/six-card.entry.js +5 -4
  455. package/dist/esm/six-card.entry.js.map +1 -1
  456. package/dist/esm/six-checkbox_2.entry.js +187 -0
  457. package/dist/esm/six-checkbox_2.entry.js.map +1 -0
  458. package/dist/esm/six-datepicker.entry.js +33 -6
  459. package/dist/esm/six-datepicker.entry.js.map +1 -1
  460. package/dist/esm/six-details.entry.js +7 -6
  461. package/dist/esm/six-details.entry.js.map +1 -1
  462. package/dist/esm/six-dialog.entry.js +16 -32
  463. package/dist/esm/six-dialog.entry.js.map +1 -1
  464. package/dist/esm/six-drawer.entry.js +15 -32
  465. package/dist/esm/six-drawer.entry.js.map +1 -1
  466. package/dist/esm/six-dropdown_2.entry.js +205 -131
  467. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  468. package/dist/esm/six-error-page.entry.js +4 -3
  469. package/dist/esm/six-error-page.entry.js.map +1 -1
  470. package/dist/esm/six-error.entry.js +4 -3
  471. package/dist/esm/six-error.entry.js.map +1 -1
  472. package/dist/esm/six-file-list-item.entry.js +6 -5
  473. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  474. package/dist/esm/six-file-list.entry.js +4 -3
  475. package/dist/esm/six-file-list.entry.js.map +1 -1
  476. package/dist/esm/six-file-upload.entry.js +11 -9
  477. package/dist/esm/six-file-upload.entry.js.map +1 -1
  478. package/dist/esm/six-footer.entry.js +5 -4
  479. package/dist/esm/six-footer.entry.js.map +1 -1
  480. package/dist/esm/six-group-label.entry.js +7 -6
  481. package/dist/esm/six-group-label.entry.js.map +1 -1
  482. package/dist/esm/six-header.entry.js +16 -13
  483. package/dist/esm/six-header.entry.js.map +1 -1
  484. package/dist/esm/six-icon-button.entry.js +7 -6
  485. package/dist/esm/six-icon-button.entry.js.map +1 -1
  486. package/dist/esm/six-icon.entry.js +6 -5
  487. package/dist/esm/six-icon.entry.js.map +1 -1
  488. package/dist/esm/six-input.entry.js +11 -8
  489. package/dist/esm/six-input.entry.js.map +1 -1
  490. package/dist/esm/six-item-picker.entry.js +7 -6
  491. package/dist/esm/six-item-picker.entry.js.map +1 -1
  492. package/dist/esm/six-language-switcher.entry.js +11 -6
  493. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  494. package/dist/esm/six-layout-grid.entry.js +4 -3
  495. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  496. package/dist/esm/six-main-container.entry.js +4 -3
  497. package/dist/esm/six-main-container.entry.js.map +1 -1
  498. package/dist/esm/six-menu-divider.entry.js +5 -4
  499. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  500. package/dist/esm/six-menu-label.entry.js +5 -4
  501. package/dist/esm/six-menu-label.entry.js.map +1 -1
  502. package/dist/esm/six-picto.entry.js +4 -3
  503. package/dist/esm/six-picto.entry.js.map +1 -1
  504. package/dist/esm/six-progress-bar.entry.js +6 -5
  505. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  506. package/dist/esm/six-progress-ring.entry.js +5 -4
  507. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  508. package/dist/esm/six-radio.entry.js +6 -5
  509. package/dist/esm/six-radio.entry.js.map +1 -1
  510. package/dist/esm/six-range.entry.js +18 -7
  511. package/dist/esm/six-range.entry.js.map +1 -1
  512. package/dist/esm/six-root.entry.js +4 -22
  513. package/dist/esm/six-root.entry.js.map +1 -1
  514. package/dist/esm/six-search-field.entry.js +5 -4
  515. package/dist/esm/six-search-field.entry.js.map +1 -1
  516. package/dist/esm/six-select.entry.js +302 -170
  517. package/dist/esm/six-select.entry.js.map +1 -1
  518. package/dist/esm/six-sidebar-item-group.entry.js +5 -4
  519. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  520. package/dist/esm/six-sidebar-item.entry.js +5 -4
  521. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  522. package/dist/esm/six-sidebar.entry.js +6 -5
  523. package/dist/esm/six-sidebar.entry.js.map +1 -1
  524. package/dist/esm/six-spinner.entry.js +5 -4
  525. package/dist/esm/six-spinner.entry.js.map +1 -1
  526. package/dist/esm/six-stage-indicator.entry.js +19 -0
  527. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  528. package/dist/esm/six-switch.entry.js +8 -7
  529. package/dist/esm/six-switch.entry.js.map +1 -1
  530. package/dist/esm/six-tab-group.entry.js +35 -9
  531. package/dist/esm/six-tab-group.entry.js.map +1 -1
  532. package/dist/esm/six-tab-panel.entry.js +5 -4
  533. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  534. package/dist/esm/six-tab.entry.js +6 -5
  535. package/dist/esm/six-tab.entry.js.map +1 -1
  536. package/dist/esm/six-tag.entry.js +7 -6
  537. package/dist/esm/six-tag.entry.js.map +1 -1
  538. package/dist/esm/six-textarea.entry.js +8 -7
  539. package/dist/esm/six-textarea.entry.js.map +1 -1
  540. package/dist/esm/six-tile.entry.js +8 -7
  541. package/dist/esm/six-tile.entry.js.map +1 -1
  542. package/dist/esm/six-timepicker.entry.js +8 -7
  543. package/dist/esm/six-timepicker.entry.js.map +1 -1
  544. package/dist/esm/six-tooltip.entry.js +6 -5
  545. package/dist/esm/six-tooltip.entry.js.map +1 -1
  546. package/dist/esm/{slot-41bc439a.js → slot-56531341.js} +2 -3
  547. package/dist/esm/slot-56531341.js.map +1 -0
  548. package/dist/esm/{types-07748c42.js → types-a07bb999.js} +3 -1
  549. package/dist/esm/types-a07bb999.js.map +1 -0
  550. package/dist/esm/ui-library.js +7 -5
  551. package/dist/esm/ui-library.js.map +1 -1
  552. package/dist/types/components/six-alert/six-alert.d.ts +13 -6
  553. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  554. package/dist/types/components/six-dialog/six-dialog.d.ts +1 -0
  555. package/dist/types/components/six-dropdown/six-dropdown.d.ts +28 -9
  556. package/dist/types/components/six-file-upload/six-file-upload.d.ts +2 -0
  557. package/dist/types/components/six-header/six-header.d.ts +2 -0
  558. package/dist/types/components/six-input/six-input.d.ts +4 -0
  559. package/dist/types/components/six-menu/six-menu.d.ts +4 -0
  560. package/dist/types/components/six-menu-item/six-menu-item.d.ts +7 -1
  561. package/dist/types/components/six-range/six-range.d.ts +2 -0
  562. package/dist/types/components/six-root/six-root.d.ts +0 -13
  563. package/dist/types/components/six-select/six-select.d.ts +27 -12
  564. package/dist/types/components/six-spinner/six-spinner.d.ts +1 -0
  565. package/dist/types/components/six-tab-group/six-tab-group.d.ts +4 -1
  566. package/dist/types/components.d.ts +80 -60
  567. package/dist/types/index.d.ts +1 -0
  568. package/dist/types/types.d.ts +1 -0
  569. package/dist/types/utils/alert.d.ts +10 -0
  570. package/dist/types/utils/date-util.d.ts +9 -1
  571. package/dist/types/utils/error-messages.d.ts +1 -0
  572. package/dist/types/utils/slot.d.ts +0 -1
  573. package/dist/ui-library/index.esm.js +1 -1
  574. package/dist/ui-library/index.esm.js.map +1 -1
  575. package/dist/ui-library/p-01853739.entry.js +2 -0
  576. package/dist/ui-library/p-01853739.entry.js.map +1 -0
  577. package/dist/ui-library/p-03900e17.entry.js +2 -0
  578. package/dist/ui-library/p-03900e17.entry.js.map +1 -0
  579. package/dist/ui-library/p-0a094514.entry.js +2 -0
  580. package/dist/ui-library/p-0a094514.entry.js.map +1 -0
  581. package/dist/ui-library/p-0cebf1d2.js +2 -0
  582. package/dist/ui-library/p-0cebf1d2.js.map +1 -0
  583. package/dist/ui-library/p-19a1d34c.entry.js +2 -0
  584. package/dist/ui-library/p-19a1d34c.entry.js.map +1 -0
  585. package/dist/ui-library/p-19ca3bd1.entry.js +2 -0
  586. package/dist/ui-library/p-19ca3bd1.entry.js.map +1 -0
  587. package/dist/ui-library/p-1d4cb6e9.entry.js +2 -0
  588. package/dist/ui-library/p-1d4cb6e9.entry.js.map +1 -0
  589. package/dist/ui-library/p-1f1224ae.entry.js +2 -0
  590. package/dist/ui-library/p-1f1224ae.entry.js.map +1 -0
  591. package/dist/ui-library/p-21002de1.entry.js +2 -0
  592. package/dist/ui-library/p-21002de1.entry.js.map +1 -0
  593. package/dist/ui-library/p-29b75db4.entry.js +2 -0
  594. package/dist/ui-library/p-29b75db4.entry.js.map +1 -0
  595. package/dist/ui-library/p-338205f4.entry.js +2 -0
  596. package/dist/ui-library/p-338205f4.entry.js.map +1 -0
  597. package/dist/ui-library/p-3827f9e0.entry.js +2 -0
  598. package/dist/ui-library/p-3827f9e0.entry.js.map +1 -0
  599. package/dist/ui-library/p-38a9a590.entry.js +2 -0
  600. package/dist/ui-library/p-38a9a590.entry.js.map +1 -0
  601. package/dist/ui-library/p-3e9324c8.entry.js +2 -0
  602. package/dist/ui-library/p-3e9324c8.entry.js.map +1 -0
  603. package/dist/ui-library/p-3eed2287.entry.js +2 -0
  604. package/dist/ui-library/p-3eed2287.entry.js.map +1 -0
  605. package/dist/ui-library/p-45960b56.entry.js +2 -0
  606. package/dist/ui-library/p-45960b56.entry.js.map +1 -0
  607. package/dist/ui-library/p-49e5d8bb.entry.js +2 -0
  608. package/dist/ui-library/p-49e5d8bb.entry.js.map +1 -0
  609. package/dist/ui-library/p-4af73ea9.entry.js +2 -0
  610. package/dist/ui-library/p-4af73ea9.entry.js.map +1 -0
  611. package/dist/ui-library/p-50dbe99f.entry.js +2 -0
  612. package/dist/ui-library/p-50dbe99f.entry.js.map +1 -0
  613. package/dist/ui-library/p-52c04973.entry.js +2 -0
  614. package/dist/ui-library/p-52c04973.entry.js.map +1 -0
  615. package/dist/ui-library/p-5f810571.entry.js +2 -0
  616. package/dist/ui-library/p-5f810571.entry.js.map +1 -0
  617. package/dist/ui-library/p-651293e7.js +2 -0
  618. package/dist/ui-library/p-651293e7.js.map +1 -0
  619. package/dist/ui-library/p-6c96b62e.entry.js +2 -0
  620. package/dist/ui-library/p-6c96b62e.entry.js.map +1 -0
  621. package/dist/ui-library/p-724d0458.entry.js +2 -0
  622. package/dist/ui-library/p-724d0458.entry.js.map +1 -0
  623. package/dist/ui-library/p-7562d5f5.entry.js +2 -0
  624. package/dist/ui-library/p-7562d5f5.entry.js.map +1 -0
  625. package/dist/ui-library/p-756f4acf.entry.js +2 -0
  626. package/dist/ui-library/p-756f4acf.entry.js.map +1 -0
  627. package/dist/ui-library/p-7a722a13.entry.js +2 -0
  628. package/dist/ui-library/p-7a722a13.entry.js.map +1 -0
  629. package/dist/ui-library/{p-d310a6dd.entry.js → p-7a9dcb16.entry.js} +2 -2
  630. package/dist/ui-library/p-7a9dcb16.entry.js.map +1 -0
  631. package/dist/ui-library/p-7c2255b5.entry.js +2 -0
  632. package/dist/ui-library/p-7c2255b5.entry.js.map +1 -0
  633. package/dist/ui-library/p-7fc0bf6b.entry.js +2 -0
  634. package/dist/ui-library/p-7fc0bf6b.entry.js.map +1 -0
  635. package/dist/ui-library/p-803915da.entry.js +2 -0
  636. package/dist/ui-library/p-803915da.entry.js.map +1 -0
  637. package/dist/ui-library/p-80476b0f.entry.js +2 -0
  638. package/dist/ui-library/p-80476b0f.entry.js.map +1 -0
  639. package/dist/ui-library/{p-0861899a.js → p-862d474e.js} +1 -1
  640. package/dist/ui-library/p-862d474e.js.map +1 -0
  641. package/dist/ui-library/p-8644f970.entry.js +2 -0
  642. package/dist/ui-library/p-8644f970.entry.js.map +1 -0
  643. package/dist/ui-library/p-8938e9bd.entry.js +2 -0
  644. package/dist/ui-library/p-8938e9bd.entry.js.map +1 -0
  645. package/dist/ui-library/p-8dff4dcb.entry.js +2 -0
  646. package/dist/ui-library/p-8dff4dcb.entry.js.map +1 -0
  647. package/dist/ui-library/p-8f307b55.entry.js +2 -0
  648. package/dist/ui-library/p-8f307b55.entry.js.map +1 -0
  649. package/dist/ui-library/p-93ab2efc.entry.js +2 -0
  650. package/dist/ui-library/p-93ab2efc.entry.js.map +1 -0
  651. package/dist/ui-library/p-9426a37b.entry.js +2 -0
  652. package/dist/ui-library/p-9426a37b.entry.js.map +1 -0
  653. package/dist/ui-library/p-a2a6aaea.entry.js +2 -0
  654. package/dist/ui-library/p-a2a6aaea.entry.js.map +1 -0
  655. package/dist/ui-library/p-a2b8aca7.entry.js +2 -0
  656. package/dist/ui-library/p-a2b8aca7.entry.js.map +1 -0
  657. package/dist/ui-library/{p-6907a7dc.js → p-aa99a393.js} +2 -2
  658. package/dist/ui-library/p-ab8f9503.entry.js +2 -0
  659. package/dist/ui-library/p-ab8f9503.entry.js.map +1 -0
  660. package/dist/ui-library/p-acc487ec.entry.js +2 -0
  661. package/dist/ui-library/p-acc487ec.entry.js.map +1 -0
  662. package/dist/ui-library/p-ba7424b3.entry.js +2 -0
  663. package/dist/ui-library/p-ba7424b3.entry.js.map +1 -0
  664. package/dist/ui-library/p-c948cf70.entry.js +2 -0
  665. package/dist/ui-library/p-c948cf70.entry.js.map +1 -0
  666. package/dist/ui-library/p-d55db23a.entry.js +2 -0
  667. package/dist/ui-library/p-d55db23a.entry.js.map +1 -0
  668. package/dist/ui-library/p-d717a2f2.entry.js +2 -0
  669. package/dist/ui-library/p-d717a2f2.entry.js.map +1 -0
  670. package/dist/ui-library/p-d7739200.entry.js +2 -0
  671. package/dist/ui-library/p-d7739200.entry.js.map +1 -0
  672. package/dist/ui-library/p-e080d5b6.js +2 -0
  673. package/dist/ui-library/p-e080d5b6.js.map +1 -0
  674. package/dist/ui-library/p-e1255160.js +2 -0
  675. package/dist/ui-library/p-e1255160.js.map +1 -0
  676. package/dist/ui-library/p-e3766acb.entry.js +2 -0
  677. package/dist/ui-library/p-e3766acb.entry.js.map +1 -0
  678. package/dist/ui-library/p-e43e5e45.entry.js +2 -0
  679. package/dist/ui-library/p-e43e5e45.entry.js.map +1 -0
  680. package/dist/ui-library/p-e798314b.entry.js +2 -0
  681. package/dist/ui-library/p-e798314b.entry.js.map +1 -0
  682. package/dist/ui-library/p-f136a6b2.js +2 -0
  683. package/dist/ui-library/p-f136a6b2.js.map +1 -0
  684. package/dist/ui-library/p-f1bb5648.entry.js +2 -0
  685. package/dist/ui-library/p-f1bb5648.entry.js.map +1 -0
  686. package/dist/ui-library/p-f8572492.entry.js +2 -0
  687. package/dist/ui-library/p-f8572492.entry.js.map +1 -0
  688. package/dist/ui-library/p-f93d8a4e.js +3 -0
  689. package/dist/ui-library/p-f93d8a4e.js.map +1 -0
  690. package/dist/ui-library/ui-library.css +1 -10
  691. package/dist/ui-library/ui-library.esm.js +1 -1
  692. package/dist/ui-library/ui-library.esm.js.map +1 -1
  693. package/package.json +10 -13
  694. package/dist/cjs/index-3baddcdc.js.map +0 -1
  695. package/dist/cjs/modal-3ce015be.js.map +0 -1
  696. package/dist/cjs/popup-40a9adbb.js.map +0 -1
  697. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
  698. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  699. package/dist/cjs/six-checkbox.cjs.entry.js +0 -127
  700. package/dist/cjs/six-checkbox.cjs.entry.js.map +0 -1
  701. package/dist/cjs/six-menu-item.cjs.entry.js +0 -63
  702. package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
  703. package/dist/cjs/slot-9821749e.js.map +0 -1
  704. package/dist/cjs/types-0a6d66f6.js.map +0 -1
  705. package/dist/collection/utils/support.js +0 -16
  706. package/dist/collection/utils/support.js.map +0 -1
  707. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
  708. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  709. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +0 -16
  710. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +0 -1
  711. package/dist/components/set-attributes.d.ts +0 -11
  712. package/dist/components/set-attributes.js +0 -8
  713. package/dist/components/set-attributes.js.map +0 -1
  714. package/dist/components/set-attributes2.js +0 -73
  715. package/dist/components/set-attributes2.js.map +0 -1
  716. package/dist/components/six-tag2.js +0 -102
  717. package/dist/components/six-tag2.js.map +0 -1
  718. package/dist/esm/index-17d8173e.js.map +0 -1
  719. package/dist/esm/modal-96526245.js.map +0 -1
  720. package/dist/esm/popup-e8049817.js.map +0 -1
  721. package/dist/esm/set-attributes_2.entry.js +0 -68
  722. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  723. package/dist/esm/six-checkbox.entry.js +0 -123
  724. package/dist/esm/six-checkbox.entry.js.map +0 -1
  725. package/dist/esm/six-menu-item.entry.js +0 -59
  726. package/dist/esm/six-menu-item.entry.js.map +0 -1
  727. package/dist/esm/slot-41bc439a.js.map +0 -1
  728. package/dist/esm/types-07748c42.js.map +0 -1
  729. package/dist/types/utils/support.d.ts +0 -1
  730. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  731. package/dist/ui-library/p-0861899a.js.map +0 -1
  732. package/dist/ui-library/p-0a81b42c.entry.js +0 -2
  733. package/dist/ui-library/p-0a81b42c.entry.js.map +0 -1
  734. package/dist/ui-library/p-0beec94f.js +0 -3
  735. package/dist/ui-library/p-0beec94f.js.map +0 -1
  736. package/dist/ui-library/p-178f5782.entry.js +0 -2
  737. package/dist/ui-library/p-178f5782.entry.js.map +0 -1
  738. package/dist/ui-library/p-19a61686.entry.js +0 -2
  739. package/dist/ui-library/p-19a61686.entry.js.map +0 -1
  740. package/dist/ui-library/p-1d0c5929.entry.js +0 -2
  741. package/dist/ui-library/p-1d0c5929.entry.js.map +0 -1
  742. package/dist/ui-library/p-23c02c98.entry.js +0 -2
  743. package/dist/ui-library/p-23c02c98.entry.js.map +0 -1
  744. package/dist/ui-library/p-2eed9d8d.entry.js +0 -2
  745. package/dist/ui-library/p-2eed9d8d.entry.js.map +0 -1
  746. package/dist/ui-library/p-2f9f2532.entry.js +0 -2
  747. package/dist/ui-library/p-2f9f2532.entry.js.map +0 -1
  748. package/dist/ui-library/p-3187bc23.entry.js +0 -2
  749. package/dist/ui-library/p-3187bc23.entry.js.map +0 -1
  750. package/dist/ui-library/p-32e1a5ab.entry.js +0 -2
  751. package/dist/ui-library/p-32e1a5ab.entry.js.map +0 -1
  752. package/dist/ui-library/p-32fed3c7.entry.js +0 -2
  753. package/dist/ui-library/p-32fed3c7.entry.js.map +0 -1
  754. package/dist/ui-library/p-3d54ecf2.entry.js +0 -2
  755. package/dist/ui-library/p-3d54ecf2.entry.js.map +0 -1
  756. package/dist/ui-library/p-4229f7e8.entry.js +0 -2
  757. package/dist/ui-library/p-4229f7e8.entry.js.map +0 -1
  758. package/dist/ui-library/p-479d8087.entry.js +0 -2
  759. package/dist/ui-library/p-479d8087.entry.js.map +0 -1
  760. package/dist/ui-library/p-49aa8d1e.entry.js +0 -2
  761. package/dist/ui-library/p-49aa8d1e.entry.js.map +0 -1
  762. package/dist/ui-library/p-58661675.entry.js +0 -2
  763. package/dist/ui-library/p-58661675.entry.js.map +0 -1
  764. package/dist/ui-library/p-5d43ea07.entry.js +0 -2
  765. package/dist/ui-library/p-5d43ea07.entry.js.map +0 -1
  766. package/dist/ui-library/p-6aa2929a.entry.js +0 -2
  767. package/dist/ui-library/p-6aa2929a.entry.js.map +0 -1
  768. package/dist/ui-library/p-7432d409.entry.js +0 -2
  769. package/dist/ui-library/p-7432d409.entry.js.map +0 -1
  770. package/dist/ui-library/p-74a714c0.entry.js +0 -2
  771. package/dist/ui-library/p-74a714c0.entry.js.map +0 -1
  772. package/dist/ui-library/p-76825395.entry.js +0 -2
  773. package/dist/ui-library/p-76825395.entry.js.map +0 -1
  774. package/dist/ui-library/p-816f857d.entry.js +0 -2
  775. package/dist/ui-library/p-816f857d.entry.js.map +0 -1
  776. package/dist/ui-library/p-882fbf6f.entry.js +0 -2
  777. package/dist/ui-library/p-882fbf6f.entry.js.map +0 -1
  778. package/dist/ui-library/p-88fd4973.entry.js +0 -2
  779. package/dist/ui-library/p-88fd4973.entry.js.map +0 -1
  780. package/dist/ui-library/p-8b750c9e.entry.js +0 -2
  781. package/dist/ui-library/p-8b750c9e.entry.js.map +0 -1
  782. package/dist/ui-library/p-911eb578.entry.js +0 -2
  783. package/dist/ui-library/p-911eb578.entry.js.map +0 -1
  784. package/dist/ui-library/p-93fcda4a.entry.js +0 -2
  785. package/dist/ui-library/p-93fcda4a.entry.js.map +0 -1
  786. package/dist/ui-library/p-981b3228.entry.js +0 -2
  787. package/dist/ui-library/p-981b3228.entry.js.map +0 -1
  788. package/dist/ui-library/p-998de05d.js +0 -2
  789. package/dist/ui-library/p-998de05d.js.map +0 -1
  790. package/dist/ui-library/p-9b1ff147.entry.js +0 -2
  791. package/dist/ui-library/p-9b1ff147.entry.js.map +0 -1
  792. package/dist/ui-library/p-a4e4620c.entry.js +0 -2
  793. package/dist/ui-library/p-a4e4620c.entry.js.map +0 -1
  794. package/dist/ui-library/p-ada23fe3.entry.js +0 -2
  795. package/dist/ui-library/p-ada23fe3.entry.js.map +0 -1
  796. package/dist/ui-library/p-b5ac1219.entry.js +0 -2
  797. package/dist/ui-library/p-b5ac1219.entry.js.map +0 -1
  798. package/dist/ui-library/p-ba247565.entry.js +0 -2
  799. package/dist/ui-library/p-ba247565.entry.js.map +0 -1
  800. package/dist/ui-library/p-bdb79948.entry.js +0 -2
  801. package/dist/ui-library/p-bdb79948.entry.js.map +0 -1
  802. package/dist/ui-library/p-bee65dd9.entry.js +0 -2
  803. package/dist/ui-library/p-bee65dd9.entry.js.map +0 -1
  804. package/dist/ui-library/p-c021a9c9.entry.js +0 -2
  805. package/dist/ui-library/p-c021a9c9.entry.js.map +0 -1
  806. package/dist/ui-library/p-c07b1240.entry.js +0 -2
  807. package/dist/ui-library/p-c07b1240.entry.js.map +0 -1
  808. package/dist/ui-library/p-c12a94ce.entry.js +0 -2
  809. package/dist/ui-library/p-c12a94ce.entry.js.map +0 -1
  810. package/dist/ui-library/p-c1675a45.entry.js +0 -2
  811. package/dist/ui-library/p-c1675a45.entry.js.map +0 -1
  812. package/dist/ui-library/p-c2df8c27.entry.js +0 -2
  813. package/dist/ui-library/p-c2df8c27.entry.js.map +0 -1
  814. package/dist/ui-library/p-c86aa5b3.entry.js +0 -2
  815. package/dist/ui-library/p-c86aa5b3.entry.js.map +0 -1
  816. package/dist/ui-library/p-cd35b3c6.entry.js +0 -2
  817. package/dist/ui-library/p-cd35b3c6.entry.js.map +0 -1
  818. package/dist/ui-library/p-d2cf4280.entry.js +0 -2
  819. package/dist/ui-library/p-d2cf4280.entry.js.map +0 -1
  820. package/dist/ui-library/p-d310a6dd.entry.js.map +0 -1
  821. package/dist/ui-library/p-d6838141.entry.js +0 -2
  822. package/dist/ui-library/p-d6838141.entry.js.map +0 -1
  823. package/dist/ui-library/p-dc908cbb.entry.js +0 -2
  824. package/dist/ui-library/p-dc908cbb.entry.js.map +0 -1
  825. package/dist/ui-library/p-dfb6bff6.entry.js +0 -2
  826. package/dist/ui-library/p-dfb6bff6.entry.js.map +0 -1
  827. package/dist/ui-library/p-ee71e3a3.entry.js +0 -2
  828. package/dist/ui-library/p-ee71e3a3.entry.js.map +0 -1
  829. package/dist/ui-library/p-ef317d69.entry.js +0 -2
  830. package/dist/ui-library/p-ef317d69.entry.js.map +0 -1
  831. package/dist/ui-library/p-f2ef23c4.js +0 -2
  832. package/dist/ui-library/p-f2ef23c4.js.map +0 -1
  833. package/dist/ui-library/p-f385f1c2.entry.js +0 -2
  834. package/dist/ui-library/p-f385f1c2.entry.js.map +0 -1
  835. package/dist/ui-library/p-f73a6bdc.entry.js +0 -2
  836. package/dist/ui-library/p-f73a6bdc.entry.js.map +0 -1
  837. package/dist/ui-library/p-faa04bb5.js +0 -2
  838. package/dist/ui-library/p-faa04bb5.js.map +0 -1
  839. package/dist/ui-library/p-fcd57e0a.entry.js +0 -2
  840. package/dist/ui-library/p-fcd57e0a.entry.js.map +0 -1
  841. /package/dist/ui-library/{p-6907a7dc.js.map → p-aa99a393.js.map} +0 -0
@@ -1 +1 @@
1
- {"file":"six-file-upload.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,gBAAgB,GAAG,u0DAAu0D;;MC2Bn1D,aAAa;;;;;QA8DhB,gBAAW,GAAG,CAAC,KAAe;YACpC,IAAI,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;gBACvC,OAAO;aACR;YAED,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;gBACtC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,2BAA2B,EAAE,CAAC,CAAC;aACnE;YAED,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;gBACxB,IAAI,IAAI,IAAI,IAAI,EAAE;oBAChB,OAAO;iBACR;gBAED,IAAI,iBAAiB,GAAa,EAAE,CAAC;gBACrC,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;oBACvB,iBAAiB,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBAC/D;gBAED,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE;oBAC/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ACF;KACH;IAED,MAAM;QACJ,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,GAAG,YAAY,GAAG,UAAU,CAAC;QAE3D,QACEA,iBACE,KAAK,EAAE;gBACL,iBAAiB,EAAE,IAAI;gBACvB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;aAC3C,IAEDA,QAAC,SAAS,IACR,KAAK,EAAE;gBACL,qCAAqC,EAAE,IAAI,CAAC,OAAO;gBACnD,kCAAkC,EAAE,CAAC,IAAI,CAAC,OAAO;aAClD,IAEA,IAAI,CAAC,OAAO,KACXA,kBAAM,IAAI,EAAC,QAAQ,IACjBA,sBAAU,KAAK,EAAC,6BAA6B,sBAA2B,CACnE,CACR,EACDA,iBACE,KAAK,EAAE;gBACL,4BAA4B,EAAE,IAAI;gBAClC,mCAAmC,EAAE,IAAI,CAAC,MAAM;gBAChD,qCAAqC,EAAE,IAAI,CAAC,OAAO;aACpD,IAEDA,sBAAO,IAAI,CAAC,WAAW,EAAE,CAAQ,EACjCA,mBACE,KAAK,EAAC,wBAAwB,EAC9B,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,GAClC,CACE,CACI,CACR,EACN;KACH;;;;;;;","names":["h"],"sources":["src/components/six-file-upload/six-file-upload.scss?tag=six-file-upload&encapsulation=scoped","src/components/six-file-upload/six-file-upload.tsx"],"sourcesContent":["@import 'src/global/component';\n\n$over-color: var(--six-color-action-light-to-be-defined);\n$disabled-color: var(--six-color-inactive);\n$transition: 0.3s;\n$margin: 1rem;\n\n:host {\n position: static;\n display: block;\n}\n\n.six-file-upload {\n six-card {\n box-shadow: none;\n padding: 0;\n width: 100%;\n\n &.kyc-file-upload__container--compact {\n width: inherit;\n }\n }\n\n &__label {\n &--highlighted {\n color: var(--six-color-action-600);\n }\n }\n\n &__container {\n &--full {\n border: dashed 1px var(--six-color-web-rock-500);\n }\n }\n\n &__label-icon {\n margin-right: 0.5rem;\n }\n\n &__drop-zone {\n padding: 2rem 0;\n display: flex;\n justify-content: center;\n width: 100%;\n transition: background-color $transition;\n\n &--compact {\n padding: 0;\n }\n }\n\n &__input {\n cursor: pointer;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n user-select: none;\n height: 100%;\n opacity: 0;\n outline: none;\n }\n\n &--disabled &__drop-zone {\n background-color: $disabled-color;\n }\n\n &:not(.six-file-upload--disabled) &__drop-zone:hover,\n &__drop-zone--hover {\n background-color: $over-color;\n\n &.six-file-upload__drop-zone--compact {\n background-color: inherit;\n }\n }\n\n &--disabled &__input {\n cursor: not-allowed;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Prop, State } from '@stencil/core';\n\ninterface ISingleFile {\n file: File;\n}\n\ninterface IMultipleFiles {\n files: FileList;\n}\n\nexport type SixFileUploadSuccessPayload = ISingleFile | IMultipleFiles;\n\nexport interface SixFileUploadFailurePayload {\n reason: string;\n}\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n */\n@Component({\n tag: 'six-file-upload',\n styleUrl: 'six-file-upload.scss',\n scoped: true,\n shadow: false,\n})\nexport class SixFileUpload {\n @Element() readonly host!: HTMLSixFileUploadElement;\n\n private fileInput?: HTMLInputElement;\n\n @State() isOver = false;\n\n /** Set to true if file control should be small. */\n @Prop() readonly compact: boolean = false;\n\n /** Label of the drop area. */\n @Prop() readonly label?: string;\n\n /** Set when button is disabled. */\n @Prop() readonly disabled = false;\n\n /** Accepted MIME-Types. */\n @Prop() readonly accept?: string;\n\n /** More than one file allowed. */\n @Prop() readonly multiple = false;\n\n /** Allowed max file size in bytes. */\n @Prop() readonly maxFileSize?: number;\n\n /** Triggers when a file is added. */\n @Event({ eventName: 'six-file-upload-success' }) success!: EventEmitter<SixFileUploadSuccessPayload>;\n\n /** Triggers when an uploaded file doesn't match MIME type or max file size. */\n @Event({ eventName: 'six-file-upload-failure' }) failure!: EventEmitter<SixFileUploadFailurePayload>;\n\n @Listen('dragenter', { capture: false })\n dragenterHandler() {\n if (!this.disabled) {\n this.isOver = true;\n }\n }\n\n @Listen('dragover', { capture: false })\n dragoverHandler() {\n if (!this.disabled) {\n this.isOver = true;\n }\n }\n\n @Listen('dragleave', { capture: false })\n dragleaveHandler() {\n if (!this.disabled) {\n this.isOver = false;\n }\n }\n\n @Listen('drop', { capture: false })\n dropHandler({ dataTransfer }: DragEvent) {\n if (!this.disabled) {\n this.isOver = false;\n if (dataTransfer != null) {\n this.handleFiles(dataTransfer.files);\n }\n }\n }\n\n private handleFiles = (files: FileList) => {\n if (this.disabled || files.length === 0) {\n return;\n }\n\n if (!this.multiple && files.length > 1) {\n return this.failure.emit({ reason: 'Only one file is allowed.' });\n }\n\n for (const file of files) {\n if (file == null) {\n return;\n }\n\n let acceptedTypesList: string[] = [];\n if (this.accept != null) {\n acceptedTypesList = this.accept.replace(/\\s/g, '').split(',');\n }\n\n if (acceptedTypesList.length > 0 && acceptedTypesList.indexOf(file.type) === -1) {\n const reason = files.length > 1 ? 'One or more files have invalid MIME type.' : 'File has invalid MIME type.';\n return this.failure.emit({ reason });\n }\n\n if (this.maxFileSize != null && file.size > this.maxFileSize) {\n const reason = files.length > 1 ? 'One or more files are too big' : 'File is too big.';\n return this.failure.emit({ reason });\n }\n }\n\n const eventPayload: SixFileUploadSuccessPayload = this.multiple ? { files } : { file: files[0] };\n this.success.emit(eventPayload);\n };\n\n componentDidLoad() {\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {\n this.host.addEventListener(eventName, this.preventDefaults, false);\n document.body.addEventListener(eventName, this.preventDefaults, false);\n });\n }\n\n disconnectedCallback() {\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {\n this.host.removeEventListener(eventName, this.preventDefaults, false);\n document.body.removeEventListener(eventName, this.preventDefaults, false);\n });\n }\n\n private preventDefaults(e: Event) {\n e.preventDefault();\n e.stopPropagation();\n }\n\n private onChange = () => {\n if (this.fileInput?.files != null) {\n const files = this.fileInput.files;\n this.handleFiles(files);\n this.fileInput.value = '';\n }\n };\n\n private renderLabel() {\n return (\n this.label ??\n (this.compact ? (\n 'Upload'\n ) : (\n <span>\n Drop files to upload, or <span class=\"six-file-upload__label--highlighted\">browse</span>\n </span>\n ))\n );\n }\n\n render() {\n const Container = this.compact ? 'six-button' : 'six-card';\n\n return (\n <div\n class={{\n 'six-file-upload': true,\n 'six-file-upload--disabled': this.disabled,\n }}\n >\n <Container\n class={{\n 'six-file-upload__container--compact': this.compact,\n 'six-file-upload__container--full': !this.compact,\n }}\n >\n {this.compact && (\n <span slot=\"prefix\">\n <six-icon class=\"six-file-upload__label-icon\">arrow_circle_up</six-icon>\n </span>\n )}\n <div\n class={{\n 'six-file-upload__drop-zone': true,\n 'six-file-upload__drop-zone--hover': this.isOver,\n 'six-file-upload__drop-zone--compact': this.compact,\n }}\n >\n <span>{this.renderLabel()}</span>\n <input\n class=\"six-file-upload__input\"\n type=\"file\"\n name=\"resume\"\n disabled={this.disabled}\n accept={this.accept}\n multiple={this.multiple}\n onChange={this.onChange}\n ref={(el) => (this.fileInput = el)}\n />\n </div>\n </Container>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"six-file-upload.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,gBAAgB,GAAG,s9DAAs9D,CAAC;AACh/D,4BAAe,gBAAgB;;MCyBlB,aAAa;;;;;QAiEhB,gBAAW,GAAG,CAAC,KAAe;YACpC,IAAI,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,SAAS,EAAE;gBACzD,OAAO;aACR;YAED,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,GAA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EAAE,IAAI,CAAC,OAAO;aACpD,IAEA,IAAI,CAAC,SAAS,IACbA,kBAAM,KAAK,EAAC,+CAA+C,IACzDA,4BAAe,kBACV,KAEPA,qBACEA,sBAAO,IAAI,CAAC,WAAW,EAAE,CAAQ,EACjCA,mBACE,KAAK,EAAC,wBAAwB,EAC9B,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC,GAClC,CACE,CACP,CACG,CACI,CACR,EACN;KACH;;;;;;;","names":["h"],"sources":["src/components/six-file-upload/six-file-upload.scss?tag=six-file-upload&encapsulation=scoped","src/components/six-file-upload/six-file-upload.tsx"],"sourcesContent":["@import 'src/global/component';\n\n$over-color: var(--six-color-action-light-to-be-defined);\n$disabled-color: var(--six-color-inactive);\n$transition: 0.3s;\n$margin: 1rem;\n\n:host {\n position: static;\n display: block;\n}\n\n.six-file-upload {\n six-card {\n box-shadow: none;\n padding: 0;\n width: 100%;\n }\n\n &__label {\n &--highlighted {\n color: var(--six-color-action-600);\n }\n }\n\n &__container {\n &--full {\n border: dashed 1px var(--six-color-web-rock-500);\n }\n }\n\n &__label-icon {\n margin-right: 0.5rem;\n }\n\n &__drop-zone {\n padding: 2rem 0;\n display: flex;\n justify-content: center;\n width: 100%;\n transition: background-color $transition;\n\n &__spinner-container {\n display: flex;\n align-items: center;\n\n six-spinner {\n margin-right: var(--six-spacing-x-small);\n }\n }\n\n &--compact {\n padding: 0;\n }\n }\n\n &__input {\n cursor: pointer;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n user-select: none;\n height: 100%;\n opacity: 0;\n outline: none;\n }\n\n &--disabled &__drop-zone {\n background-color: $disabled-color;\n cursor: not-allowed;\n }\n\n &:not(.six-file-upload--disabled) &__drop-zone:hover,\n &__drop-zone--hover {\n background-color: $over-color;\n\n &.six-file-upload__drop-zone--compact {\n background-color: inherit;\n }\n }\n\n &--disabled &__input {\n cursor: not-allowed;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Prop, State } from '@stencil/core';\ninterface ISingleFile {\n file: File;\n}\n\ninterface IMultipleFiles {\n files: FileList;\n}\n\nexport type SixFileUploadSuccessPayload = ISingleFile | IMultipleFiles;\n\nexport interface SixFileUploadFailurePayload {\n reason: string;\n}\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n */\n@Component({\n tag: 'six-file-upload',\n styleUrl: 'six-file-upload.scss',\n scoped: true,\n shadow: false,\n})\nexport class SixFileUpload {\n @Element() readonly host!: HTMLSixFileUploadElement;\n\n private fileInput?: HTMLInputElement;\n\n @State() isOver = false;\n\n /** Set to true if file control should be small. */\n @Prop() readonly compact: boolean = false;\n\n /** Label of the drop area. */\n @Prop() readonly label?: string;\n\n /** Set when button is disabled. */\n @Prop() readonly disabled = false;\n\n /** Accepted MIME-Types. */\n @Prop() readonly accept?: string;\n\n /** More than one file allowed. */\n @Prop() readonly multiple = false;\n\n /** Allowed max file size in bytes. */\n @Prop() readonly maxFileSize?: number;\n\n /** Set to true to draw the control in a loading state. */\n @Prop({ reflect: true }) uploading = false;\n\n /** Triggers when a file is added. */\n @Event({ eventName: 'six-file-upload-success' }) success!: EventEmitter<SixFileUploadSuccessPayload>;\n\n /** Triggers when an uploaded file doesn't match MIME type or max file size. */\n @Event({ eventName: 'six-file-upload-failure' }) failure!: EventEmitter<SixFileUploadFailurePayload>;\n\n @Listen('dragenter', { capture: false })\n dragenterHandler() {\n if (!this.disabled) {\n this.isOver = true;\n }\n }\n\n @Listen('dragover', { capture: false })\n dragoverHandler() {\n if (!this.disabled) {\n this.isOver = true;\n }\n }\n\n @Listen('dragleave', { capture: false })\n dragleaveHandler() {\n if (!this.disabled) {\n this.isOver = false;\n }\n }\n\n @Listen('drop', { capture: false })\n dropHandler({ dataTransfer }: DragEvent) {\n if (!this.disabled) {\n this.isOver = false;\n if (dataTransfer != null) {\n this.handleFiles(dataTransfer.files);\n }\n }\n }\n\n private handleFiles = (files: FileList) => {\n if (this.disabled || files.length === 0 || this.uploading) {\n return;\n }\n\n if (!this.multiple && files.length > 1) {\n return this.failure.emit({ reason: 'Only one file is allowed.' });\n }\n\n for (const file of files) {\n if (file == null) {\n return;\n }\n\n let acceptedTypesList: string[] = [];\n if (this.accept != null) {\n acceptedTypesList = this.accept.replace(/\\s/g, '').split(',');\n }\n\n if (acceptedTypesList.length > 0 && acceptedTypesList.indexOf(file.type) === -1) {\n const reason = files.length > 1 ? 'One or more files have invalid MIME type.' : 'File has invalid MIME type.';\n return this.failure.emit({ reason });\n }\n\n if (this.maxFileSize != null && file.size > this.maxFileSize) {\n const reason = files.length > 1 ? 'One or more files are too big' : 'File is too big.';\n return this.failure.emit({ reason });\n }\n }\n\n const eventPayload: SixFileUploadSuccessPayload = this.multiple ? { files } : { file: files[0] };\n this.success.emit(eventPayload);\n };\n\n componentDidLoad() {\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {\n this.host.addEventListener(eventName, this.preventDefaults, false);\n document.body.addEventListener(eventName, this.preventDefaults, false);\n });\n }\n\n disconnectedCallback() {\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {\n this.host.removeEventListener(eventName, this.preventDefaults, false);\n document.body.removeEventListener(eventName, this.preventDefaults, false);\n });\n }\n\n private preventDefaults(e: Event) {\n e.preventDefault();\n e.stopPropagation();\n }\n\n private onChange = () => {\n if (this.fileInput?.files != null) {\n const files = this.fileInput.files;\n this.handleFiles(files);\n this.fileInput.value = '';\n }\n };\n\n private renderLabel() {\n return (\n this.label ??\n (this.compact ? (\n 'Upload'\n ) : (\n <span>\n Drop files to upload, or <span class=\"six-file-upload__label--highlighted\">browse</span>\n </span>\n ))\n );\n }\n\n render() {\n const Container = this.compact ? 'six-button' : 'six-card';\n\n return (\n <div\n class={{\n 'six-file-upload': true,\n 'six-file-upload--disabled': this.disabled || this.uploading,\n }}\n >\n <Container\n disabled={this.disabled || this.uploading}\n class={{\n 'six-file-upload__container--compact': this.compact,\n 'six-file-upload__container--full': !this.compact,\n }}\n >\n {this.compact && !this.uploading && (\n <span slot=\"prefix\">\n <six-icon class=\"six-file-upload__label-icon\">arrow_circle_up</six-icon>\n </span>\n )}\n <div\n class={{\n 'six-file-upload__drop-zone': true,\n 'six-file-upload__drop-zone--hover': this.isOver,\n 'six-file-upload__drop-zone--compact': this.compact,\n }}\n >\n {this.uploading ? (\n <span class=\"six-file-upload__drop-zone__spinner-container\">\n <six-spinner /> Uploading...\n </span>\n ) : (\n <div>\n <span>{this.renderLabel()}</span>\n <input\n class=\"six-file-upload__input\"\n type=\"file\"\n name=\"resume\"\n disabled={this.disabled}\n accept={this.accept}\n multiple={this.multiple}\n onChange={this.onChange}\n ref={(el) => (this.fileInput = el)}\n />\n </div>\n )}\n </div>\n </Container>\n </div>\n );\n }\n}\n"],"version":3}
@@ -2,19 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3baddcdc.js');
5
+ const index = require('./index-b288f7d9.js');
6
6
 
7
- const sixFooterCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}.six-footer{color:var(--six-color-web-rock-900);padding:var(--six-spacing-x-small) 0;text-align:center;width:100%;background-color:var(--six-footer-background-color);box-shadow:var(--six-shadow-x-large-top)}";
7
+ const sixFooterCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block}.six-footer{color:var(--six-color-web-rock-900);padding:var(--six-spacing-x-small) 0;text-align:center;width:100%;background-color:var(--six-footer-background-color);box-shadow:var(--six-shadow-medium-top)}";
8
+ const SixFooterStyle0 = sixFooterCss;
8
9
 
9
10
  const SixFooter = class {
10
11
  constructor(hostRef) {
11
12
  index.registerInstance(this, hostRef);
12
13
  }
13
14
  render() {
14
- return (index.h("footer", { class: "six-footer" }, index.h("slot", null)));
15
+ return (index.h("footer", { key: '9b6b9933b76044dd048161ab084af325cc6d181d', class: "six-footer" }, index.h("slot", { key: 'f8f0b32271d472da8175d2fc92ca8aef319345fe' })));
15
16
  }
16
17
  };
17
- SixFooter.style = sixFooterCss;
18
+ SixFooter.style = SixFooterStyle0;
18
19
 
19
20
  exports.six_footer = SixFooter;
20
21
 
@@ -1 +1 @@
1
- {"file":"six-footer.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,YAAY,GAAG,2UAA2U;;MCcnV,SAAS;;;;IACpB,MAAM;QACJ,QACEA,oBAAQ,KAAK,EAAC,YAAY,IACxBA,qBAAQ,CACD,EACT;KACH;;;;;;","names":["h"],"sources":["src/components/six-footer/six-footer.scss?tag=six-footer&encapsulation=shadow","src/components/six-footer/six-footer.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.six-footer {\n color: var(--six-color-web-rock-900);\n padding: var(--six-spacing-x-small) 0;\n text-align: center;\n width: 100%;\n background-color: var(--six-footer-background-color);\n box-shadow: var(--six-shadow-x-large-top);\n}\n","import { Component, h } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the content of the footer.\n */\n\n@Component({\n tag: 'six-footer',\n styleUrl: 'six-footer.scss',\n shadow: true,\n})\nexport class SixFooter {\n render() {\n return (\n <footer class=\"six-footer\">\n <slot />\n </footer>\n );\n }\n}\n"],"version":3}
1
+ {"file":"six-footer.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,YAAY,GAAG,6UAA6U,CAAC;AACnW,wBAAe,YAAY;;MCad,SAAS;;;;IACpB,MAAM;QACJ,QACEA,qEAAQ,KAAK,EAAC,YAAY,IACxBA,oEAAQ,CACD,EACT;KACH;;;;;;","names":["h"],"sources":["src/components/six-footer/six-footer.scss?tag=six-footer&encapsulation=shadow","src/components/six-footer/six-footer.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.six-footer {\n color: var(--six-color-web-rock-900);\n padding: var(--six-spacing-x-small) 0;\n text-align: center;\n width: 100%;\n background-color: var(--six-footer-background-color);\n box-shadow: var(--six-shadow-medium-top);\n}\n","import { Component, h } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the content of the footer.\n */\n\n@Component({\n tag: 'six-footer',\n styleUrl: 'six-footer.scss',\n shadow: true,\n})\nexport class SixFooter {\n render() {\n return (\n <footer class=\"six-footer\">\n <slot />\n </footer>\n );\n }\n}\n"],"version":3}
@@ -2,11 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3baddcdc.js');
6
- const formControl = require('./form-control-f9bc25dd.js');
7
- const slot = require('./slot-9821749e.js');
5
+ const index = require('./index-b288f7d9.js');
6
+ const formControl = require('./form-control-73ff961d.js');
7
+ const slot = require('./slot-1b1232a1.js');
8
8
 
9
- const sixGroupLabelCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:\"*\";transform:scale(1.1);margin-left:var(--six-spacing-xxx-small);position:absolute}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:block}";
9
+ const sixGroupLabelCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:\"*\";transform:scale(1.1);margin-left:var(--six-spacing-xxx-small);position:absolute}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:block}";
10
+ const SixGroupLabelStyle0 = sixGroupLabelCss;
10
11
 
11
12
  let id = 0;
12
13
  const SixGroupLabel = class {
@@ -42,7 +43,7 @@ const SixGroupLabel = class {
42
43
  (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('slotchange', this.handleSlotChange);
43
44
  }
44
45
  render() {
45
- return (index.h(formControl.FormControl, { inputId: this.wrapperLabelId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, size: this.size, disabled: this.disabled, required: this.required }, index.h("slot", null)));
46
+ return (index.h(formControl.FormControl, { key: '63fc7943961162f3ee5cc86d4de0dfb27682606f', inputId: this.wrapperLabelId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, size: this.size, disabled: this.disabled, required: this.required }, index.h("slot", { key: '1bf38dac10d72a3cd70023fc4641f8c0f5d5a468' })));
46
47
  }
47
48
  get host() { return index.getElement(this); }
48
49
  static get watchers() { return {
@@ -50,7 +51,7 @@ const SixGroupLabel = class {
50
51
  "label": ["handleLabelChange"]
51
52
  }; }
52
53
  };
53
- SixGroupLabel.style = sixGroupLabelCss;
54
+ SixGroupLabel.style = SixGroupLabelStyle0;
54
55
 
55
56
  exports.six_group_label = SixGroupLabel;
56
57
 
@@ -1 +1 @@
1
- {"file":"six-group-label.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,gBAAgB,GAAG,s/EAAs/E;;ACI/gF,IAAI,EAAE,GAAG,CAAC,CAAC;MAoBE,aAAa;;;QAChB,mBAAc,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC;QACjC,YAAO,GAAG,eAAe,EAAE,EAAE,CAAC;QAC9B,eAAU,GAAG,mBAAmB,EAAE,EAAE,CAAC;QAwCrC,qBAAgB,GAAG;YACzB,IAAI,CAAC,YAAY,GAAGA,YAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAChD,IAAI,CAAC,eAAe,GAAGA,YAAO,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;SACxD,CAAC;+BAvCyB,KAAK;4BACR,KAAK;oBAGiC,QAAQ;qBAGtD,EAAE;wBAGC,EAAE;wBAGe,KAAK;wBAGtB,KAAK;;IAIxB,iBAAiB;QACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;KACzB;IAED,iBAAiB;;QACf,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;KAC7E;IAED,iBAAiB;QACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;KACzB;IAED,oBAAoB;;QAClB,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;KAChF;IAOD,MAAM;QACJ,QACEC,QAACC,uBAAW,IACV,OAAO,EAAE,IAAI,CAAC,cAAc,EAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBD,qBAAa,CACD,EACd;KACH;;;;;;;;;;;","names":["hasSlot","h","FormControl"],"sources":["src/components/six-group-label/six-group-label.scss?tag=six-group-label&encapsulation=shadow","src/components/six-group-label/six-group-label.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: block;\n}\n","import { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\n\nlet id = 0;\n\n/**\n * @since 1.1\n * @status stable\n *\n * @slot label - The wrapped component's label. Alternatively, you can use the label prop.\n * @slot help-text - Help text that describes how to use the input.\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 form-control - The form control that wraps the label, textarea, and help text.\n * @part label - The label of wrapped component.\n * @part help-text - The help text of the wrapped component.\n */\n@Component({\n tag: 'six-group-label',\n styleUrl: 'six-group-label.scss',\n shadow: true,\n})\nexport class SixGroupLabel {\n private wrapperLabelId = `label-${++id}`;\n private labelId = `label-label-${id}`;\n private helpTextId = `label-help-text-${id}`;\n\n @Element() host!: HTMLSixGroupLabelElement;\n\n @State() hasHelpTextSlot = false;\n @State() hasLabelSlot = false;\n\n /** The label's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The wrapper label's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\n\n /** The wrapper label's help text. Alternatively, you can use the help-text slot. */\n @Prop() helpText = '';\n\n /** Set to true to disable the label. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n @Watch('helpText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n }\n\n private handleSlotChange = () => {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasHelpTextSlot = hasSlot(this.host, 'help-text');\n };\n\n render() {\n return (\n <FormControl\n inputId={this.wrapperLabelId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n helpTextId={this.helpTextId}\n helpText={this.helpText}\n hasHelpTextSlot={this.hasHelpTextSlot}\n size={this.size}\n disabled={this.disabled}\n required={this.required}\n >\n <slot></slot>\n </FormControl>\n );\n }\n}\n"],"version":3}
1
+ {"file":"six-group-label.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,gBAAgB,GAAG,y/EAAy/E,CAAC;AACnhF,4BAAe,gBAAgB;;ACG/B,IAAI,EAAE,GAAG,CAAC,CAAC;MAoBE,aAAa;;;QAChB,mBAAc,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC;QACjC,YAAO,GAAG,eAAe,EAAE,EAAE,CAAC;QAC9B,eAAU,GAAG,mBAAmB,EAAE,EAAE,CAAC;QAwCrC,qBAAgB,GAAG;YACzB,IAAI,CAAC,YAAY,GAAGA,YAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAChD,IAAI,CAAC,eAAe,GAAGA,YAAO,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;SACxD,CAAC;+BAvCyB,KAAK;4BACR,KAAK;oBAGiC,QAAQ;qBAGtD,EAAE;wBAGC,EAAE;wBAGe,KAAK;wBAGtB,KAAK;;IAIxB,iBAAiB;QACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;KACzB;IAED,iBAAiB;;QACf,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;KAC7E;IAED,iBAAiB;QACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;KACzB;IAED,oBAAoB;;QAClB,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;KAChF;IAOD,MAAM;QACJ,QACEC,QAACC,uBAAW,qDACV,OAAO,EAAE,IAAI,CAAC,cAAc,EAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAEvBD,oEAAa,CACD,EACd;KACH;;;;;;;;;;;","names":["hasSlot","h","FormControl"],"sources":["src/components/six-group-label/six-group-label.scss?tag=six-group-label&encapsulation=shadow","src/components/six-group-label/six-group-label.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: block;\n}\n","import { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\n\nlet id = 0;\n\n/**\n * @since 1.1\n * @status stable\n *\n * @slot label - The wrapped component's label. Alternatively, you can use the label prop.\n * @slot help-text - Help text that describes how to use the input.\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 form-control - The form control that wraps the label, textarea, and help text.\n * @part label - The label of wrapped component.\n * @part help-text - The help text of the wrapped component.\n */\n@Component({\n tag: 'six-group-label',\n styleUrl: 'six-group-label.scss',\n shadow: true,\n})\nexport class SixGroupLabel {\n private wrapperLabelId = `label-${++id}`;\n private labelId = `label-label-${id}`;\n private helpTextId = `label-help-text-${id}`;\n\n @Element() host!: HTMLSixGroupLabelElement;\n\n @State() hasHelpTextSlot = false;\n @State() hasLabelSlot = false;\n\n /** The label's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The wrapper label's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\n\n /** The wrapper label's help text. Alternatively, you can use the help-text slot. */\n @Prop() helpText = '';\n\n /** Set to true to disable the label. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n @Watch('helpText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n }\n\n private handleSlotChange = () => {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasHelpTextSlot = hasSlot(this.host, 'help-text');\n };\n\n render() {\n return (\n <FormControl\n inputId={this.wrapperLabelId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n helpTextId={this.helpTextId}\n helpText={this.helpText}\n hasHelpTextSlot={this.hasHelpTextSlot}\n size={this.size}\n disabled={this.disabled}\n required={this.required}\n >\n <slot></slot>\n </FormControl>\n );\n }\n}\n"],"version":3}
@@ -2,11 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3baddcdc.js');
5
+ const index = require('./index-b288f7d9.js');
6
6
  const eventListeners = require('./event-listeners-9fb878f1.js');
7
- const slot = require('./slot-9821749e.js');
7
+ const slot = require('./slot-1b1232a1.js');
8
8
 
9
- const sixHeaderCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block;user-select:none;--search-border-width:1px}::slotted(six-search-field){position:absolute;margin-left:var(--search-border-width);width:calc(100% - 2 * var(--search-border-width))}.six-header{display:flex;width:100%;height:3.75rem;background-color:var(--six-header-background-color);align-items:center;flex-wrap:wrap;box-shadow:var(--six-shadow-x-large);border-bottom:var(--six-header-border-with) solid var(--six-header-border-color)}.six-header__logo{width:6rem;margin-top:0.15rem}.six-header__logo--clickable{cursor:pointer}.six-header__placeholder{flex:1}.six-header__menu,.six-header__logo,.six-header__custom,.six-header__search,.six-header__notification,.six-header__app-switcher,.six-header__profile{height:calc(100% - 0.25rem - 1px);padding:0 1.25rem;display:flex;align-items:center;border-bottom:solid 0.25rem transparent}.six-header__menu--open,.six-header__logo--open,.six-header__custom--open,.six-header__search--open,.six-header__notification--open,.six-header__app-switcher--open,.six-header__profile--open{border-bottom:solid 0.25rem var(--six-header-border-color-open)}.six-header__selected-app{cursor:pointer;font-size:0.9rem;font-weight:600;padding-right:0;padding-left:0.3rem}.six-header__selected-app:hover{color:var(--six-header-selected-app-color-hover)}.six-header__search-field{opacity:0;transform:scale(0.9);transition:var(--six-transition-fast) opacity, var(--six-transition-fast) transform;display:none}.six-header__search-field--visible{opacity:1;transform:none;display:block}.six-header__search-field--shift-content.six-header__search-field--visible{height:2.65rem;transition:var(--six-transition-fast) height}.six-header__search-field--shift-content:not(.six-header__search-field--visible){height:0;transition:var(--six-transition-fast) height}";
9
+ const sixHeaderCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block;user-select:none;--search-border-width:1px}::slotted(six-search-field){position:absolute;margin-left:var(--search-border-width);width:calc(100% - 2 * var(--search-border-width))}.six-header{display:flex;width:100%;height:3.75rem;background-color:var(--six-header-background-color);align-items:center;flex-wrap:wrap;box-shadow:var(--six-shadow-medium);border-bottom:var(--six-header-border-with) solid var(--six-header-border-color)}.six-header__logo{width:6rem;margin-top:0.15rem}.six-header__logo--clickable{cursor:pointer}.six-header__placeholder{flex:1}.six-header__menu,.six-header__logo,.six-header__custom,.six-header__search,.six-header__notification,.six-header__app-switcher,.six-header__profile{height:calc(100% - 0.25rem - 1px);padding:0 1.25rem;display:flex;align-items:center;border-bottom:solid 0.25rem transparent}.six-header__menu--open,.six-header__logo--open,.six-header__custom--open,.six-header__search--open,.six-header__notification--open,.six-header__app-switcher--open,.six-header__profile--open{border-bottom:solid 0.25rem var(--six-header-border-color-open)}.six-header__app-switcher-dropdown{display:flex;align-items:center}.six-header__selected-app{cursor:pointer;font-size:0.9rem;font-weight:600;padding-right:0;padding-left:0.3rem}.six-header__selected-app:hover{color:var(--six-header-selected-app-color-hover)}.six-header__search-field{opacity:0;transform:scale(0.9);transition:var(--six-transition-fast) opacity, var(--six-transition-fast) transform;display:none}.six-header__search-field--visible{opacity:1;transform:none;display:block}.six-header__search-field--shift-content.six-header__search-field--visible{height:2.65rem;transition:var(--six-transition-fast) height}.six-header__search-field--shift-content:not(.six-header__search-field--visible){height:0;transition:var(--six-transition-fast) height}";
10
+ const SixHeaderStyle0 = sixHeaderCss;
10
11
 
11
12
  var Section;
12
13
  (function (Section) {
@@ -69,6 +70,7 @@ const SixHeader = class {
69
70
  this.selectedSection = this.openSearch ? Section.Search : Section.None;
70
71
  };
71
72
  this.shiftContent = false;
73
+ this.hideHamburgerMenu = false;
72
74
  this.openHamburgerMenu = false;
73
75
  this.openSearch = false;
74
76
  this.clickableLogo = false;
@@ -159,28 +161,29 @@ const SixHeader = class {
159
161
  (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
160
162
  }
161
163
  render() {
162
- const search = this.hasSlot(Slot.Search) && (index.h("section", { class: {
164
+ const hamburgerMenu = !this.hideHamburgerMenu && (index.h("section", { key: '4bdfb040919e63d80c73907e4ab99f81f41ed962', class: "six-header__menu" }, index.h("six-icon-button", { key: '65979bc405df9ede5ff51ba6671a20c89dcc07db', name: this.openHamburgerMenu ? 'menu_open' : 'menu', ref: this.setupMenu })));
165
+ const search = this.hasSlot(Slot.Search) && (index.h("section", { key: 'dea31e61c8c3abdd62bbfdb427c0d5c994ca005b', class: {
163
166
  'six-header__search': true,
164
167
  'six-header__search--open': this.isSectionSelected(Section.Search),
165
- } }, index.h("six-icon-button", { name: "search", onClick: () => this.toggleSearch(), "data-testid": "search-trigger" })));
166
- const notifications = this.hasSlot(Slot.Notifications) && (index.h("section", { class: "six-header__notification" }, index.h("slot", { name: Slot.Notifications })));
167
- const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (index.h("section", { class: {
168
+ } }, index.h("six-icon-button", { key: '36411dc4797c5c14f54be612422b2b8a651dc042', name: "search", onClick: () => this.toggleSearch(), "data-testid": "search-trigger" })));
169
+ const notifications = this.hasSlot(Slot.Notifications) && (index.h("section", { key: '42703240d867b07571e2cae5b1475c4b40d5cab9', class: "six-header__notification" }, index.h("slot", { key: '17ab8c5a38463636bb485ced2bb7ff04917e2a99', name: Slot.Notifications })));
170
+ const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (index.h("section", { key: '1663cb55a4a112cfee5b0bd1b4162c7425b8e25c', class: {
168
171
  'six-header__app-switcher': true,
169
172
  'six-header__app-switcher--open': this.isSectionSelected(Section.AppSwitcher),
170
- } }, index.h("a", { onClick: this.appNameClicked, class: "six-header__selected-app" }, this.selectedApp), index.h("six-dropdown", { distance: 13, skidding: 20, placement: "bottom-end", ref: this.setupAppSwitcher }, index.h("six-icon-button", { name: "apps", slot: "trigger" }), index.h("slot", { name: Slot.AppSwitcher }))));
171
- const profile = this.hasSlot(Slot.Profile) && (index.h("section", { class: {
173
+ } }, index.h("six-dropdown", { key: 'e0b0599707152e3514dc9216a4d3b6256631377e', distance: 13, skidding: 20, placement: "bottom-end", ref: this.setupAppSwitcher }, index.h("div", { key: '89a8ee9eb2af751a681256f40b66930ca7a6e6dc', slot: "trigger", class: "six-header__app-switcher-dropdown" }, index.h("a", { key: 'bcf7e1f1249cf0def1d2575d0e2e9a2a5543f808', onClick: this.appNameClicked, class: "six-header__selected-app" }, this.selectedApp), index.h("six-icon-button", { key: 'f5996669051d290c957e9a0417b77d7a424e3dab', name: "apps" })), index.h("slot", { key: 'a55a8cd1cf35bb4b229199d86fb119678fc79617', name: Slot.AppSwitcher }))));
174
+ const profile = this.hasSlot(Slot.Profile) && (index.h("section", { key: '70840d293a70fb869c6de4c70353b1f47b995e5d', class: {
172
175
  'six-header__profile': true,
173
176
  'six-header__profile--open': this.isSectionSelected(Section.Profile),
174
- } }, index.h("six-dropdown", { distance: 17, skidding: 20, placement: "bottom-end", ref: this.setupProfile }, index.h("slot", { name: "profile-avatar", slot: "trigger" }), index.h("slot", { name: "profile-menu" }))));
177
+ } }, index.h("six-dropdown", { key: '50463552c655c87b793cee909810475c418abddf', distance: 17, skidding: 20, placement: "bottom-end", ref: this.setupProfile }, index.h("slot", { key: 'fae7475c62c9a0c273398a77f344dfde87c85b7c', name: "profile-avatar", slot: "trigger" }), index.h("slot", { key: '147b4944e080330652d02e0e6680277b910f31b9', name: "profile-menu" }))));
175
178
  const logo = this.hasSlot(Slot.Logo) ? (index.h("section", null, index.h("slot", { name: "logo" }))) : (index.h("section", { class: {
176
179
  'six-header__logo': true,
177
180
  'six-header__logo--clickable': this.clickableLogo,
178
181
  }, ref: this.setupLogo }, index.h("svg", { height: "20", viewBox: "0 0 90 26", xmlns: "http://www.w3.org/2000/svg" }, index.h("title", null, "SIX"), index.h("g", { fill: "#DE3919", "fill-rule": "nonzero" }, index.h("path", { d: "m22.798 3.869c1.82-2.168 4.549-3.545 7.6-3.545h6.807v4.961h-6.807c-1.526 0-2.89.689-3.8 1.771l-12.19 14.526c-1.82 2.166-4.549 3.545-7.6 3.545h-6.808v-4.961h6.808c1.525 0 2.889-.689 3.799-1.773l12.191-14.525" }), index.h("path", { d: "m42.16.324h5.21v24.806h-5.21z" }), index.h("path", { d: "m66.743 3.869l4.195 4.999 4.195-4.999c1.819-2.168 4.549-3.545 7.6-3.545h6.806v4.961h-6.806c-1.526 0-2.89.689-3.8 1.771l-4.758 5.669 4.758 5.669c.91 1.084 2.274 1.773 3.8 1.773h6.806v4.961h-6.806c-3.051 0-5.781-1.379-7.6-3.545l-4.195-4.999-4.195 4.999c-1.82 2.166-4.55 3.545-7.6 3.545h-6.807v-4.961h6.807c1.525 0 2.889-.689 3.799-1.773l4.758-5.669-4.758-5.669c-.91-1.083-2.274-1.771-3.799-1.771h-6.807v-4.961h6.807c3.05 0 5.78 1.378 7.6 3.545" })))));
179
- return (index.h(index.Host, null, index.h("header", { class: "six-header" }, index.h("section", { class: "six-header__menu" }, index.h("six-icon-button", { name: this.openHamburgerMenu ? 'menu_open' : 'menu', ref: this.setupMenu })), logo, index.h("section", { class: "six-header__placeholder" }), index.h("section", { class: "six-header__custom" }, index.h("slot", null)), search, notifications, appSwitcher, profile), index.h("div", { class: {
182
+ return (index.h(index.Host, { key: 'fe3df0b60941b770dc1a4a876fea67648103feeb' }, index.h("header", { key: '297d9e50c392a86028d4a982262bb292abe9720c', class: "six-header" }, hamburgerMenu, logo, index.h("section", { key: 'b2f2c0a98b8bfae711ad941986c98e616c55073c', class: "six-header__placeholder" }), index.h("section", { key: '6d6800f2abb6986304588dda3e9a8d8905f98266', class: "six-header__custom" }, index.h("slot", { key: '4a8d385406e6e878c620be5945affd4e77cf7d9f' })), search, notifications, appSwitcher, profile), index.h("div", { key: '1d2f6aa7a0842212e556f01cbaf31d04a65ec6d5', class: {
180
183
  'six-header__search-field': true,
181
184
  'six-header__search-field--visible': this.isSectionSelected(Section.Search),
182
185
  'six-header__search-field--shift-content': this.shiftContent,
183
- } }, index.h("slot", { name: Slot.Search }))));
186
+ } }, index.h("slot", { key: '02619aaa886ecdee27f31a9687deab5fb1ec254c', name: Slot.Search }))));
184
187
  }
185
188
  static get assetsDirs() { return ["assets"]; }
186
189
  get host() { return index.getElement(this); }
@@ -188,7 +191,7 @@ const SixHeader = class {
188
191
  "openSearch": ["handleOpenSearchChange"]
189
192
  }; }
190
193
  };
191
- SixHeader.style = sixHeaderCss;
194
+ SixHeader.style = SixHeaderStyle0;
192
195
 
193
196
  exports.six_header = SixHeader;
194
197
 
@@ -1 +1 @@
1
- {"file":"six-header.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,YAAY,GAAG,02DAA02D;;ACqB/3D,IAAK,OAKJ;AALD,WAAK,OAAO;IACV,qCAAI,CAAA;IACJ,yCAAM,CAAA;IACN,mDAAW,CAAA;IACX,2CAAO,CAAA;AACT,CAAC,EALI,OAAO,KAAP,OAAO,QAKX;AAED,IAAK,IAMJ;AAND,WAAK,IAAI;IACP,+BAAuB,CAAA;IACvB,uCAA+B,CAAA;IAC/B,yCAAiC,CAAA;IACjC,gCAAwB,CAAA;IACxB,qBAAa,CAAA;AACf,CAAC,EANI,IAAI,KAAJ,IAAI,QAMR;MAoBY,SAAS;;;;;;;;;QAwDZ,mBAAc,GAAG,IAAIA,6BAAc,EAAE,CAAC;QAqCtC,cAAS,GAAG,CAAC,EAA6B;YAChD,IAAI,EAAE,IAAI,IAAI;gBAAE,OAAO;YAEvB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;SAC3E,CAAC;QAEM,cAAS,GAAG,CAAC,EAAgB;YACnC,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,EAAE,IAAI,IAAI;gBAAE,OAAO;YAE9C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,EAAE,O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AI,CACrF,EAET,IAAI,EAELA,qBAAS,KAAK,EAAC,yBAAyB,GAAG,EAE3CA,qBAAS,KAAK,EAAC,oBAAoB,IACjCA,qBAAQ,CACA,EAET,MAAM,EAEN,aAAa,EAEb,WAAW,EAEX,OAAO,CACD,EAETA,iBACE,KAAK,EAAE;gBACL,0BAA0B,EAAE,IAAI;gBAChC,mCAAmC,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC;gBAC3E,yCAAyC,EAAE,IAAI,CAAC,YAAY;aAC7D,IAEDA,kBAAM,IAAI,EAAE,IAAI,CAAC,MAAM,GAAI,CACvB,CACD,EACP;KACH;;;;;;;;;;;","names":["EventListeners","slot","getSlot","hasSlot","h","Host"],"sources":["src/components/six-header/six-header.scss?tag=six-header&encapsulation=shadow","src/components/six-header/six-header.tsx"],"sourcesContent":["@import 'src/global/component';\n\n$header-height: 3.75rem;\n$border-height: 0.25rem;\n\n:host {\n display: block;\n user-select: none;\n --search-border-width: 1px;\n}\n\n::slotted(six-search-field) {\n position: absolute;\n margin-left: var(--search-border-width);\n width: calc(100% - 2 * var(--search-border-width));\n}\n\n.six-header {\n display: flex;\n width: 100%;\n height: $header-height;\n background-color: var(--six-header-background-color);\n align-items: center;\n flex-wrap: wrap;\n box-shadow: var(--six-shadow-x-large);\n border-bottom: var(--six-header-border-with) solid var(--six-header-border-color);\n\n &__logo {\n width: 6rem;\n margin-top: 0.15rem;\n\n &--clickable {\n cursor: pointer;\n }\n }\n\n &__placeholder {\n flex: 1;\n }\n\n &__menu,\n &__logo,\n &__custom,\n &__search,\n &__notification,\n &__app-switcher,\n &__profile {\n height: calc(100% - #{$border-height} - 1px);\n padding: 0 1.25rem;\n display: flex;\n align-items: center;\n border-bottom: solid $border-height transparent;\n\n &--open {\n border-bottom: solid $border-height var(--six-header-border-color-open);\n }\n }\n\n &__selected-app {\n cursor: pointer;\n font-size: 0.9rem;\n font-weight: 600;\n padding-right: 0;\n padding-left: 0.3rem;\n &:hover {\n color: var(--six-header-selected-app-color-hover);\n }\n }\n\n &__search-field {\n opacity: 0;\n transform: scale(0.9);\n transition: var(--six-transition-fast) opacity, var(--six-transition-fast) transform;\n display: none;\n\n &--visible {\n opacity: 1;\n transform: none;\n display: block;\n }\n\n &--shift-content.six-header__search-field--visible {\n height: 2.65rem;\n transition: var(--six-transition-fast) height;\n }\n\n &--shift-content:not(.six-header__search-field--visible) {\n height: 0;\n transition: var(--six-transition-fast) height;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlot, hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\n\nexport interface SixHeaderAppSwitcherSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderProfileSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderSearchFieldToggle {\n visible: boolean;\n}\n\nenum Section {\n None,\n Search,\n AppSwitcher,\n Profile,\n}\n\nenum Slot {\n Search = 'search-field',\n Notifications = 'notifications',\n AppSwitcher = 'app-switcher-menu',\n Profile = 'profile-menu',\n Logo = 'logo',\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define a custom component that is included in the header.\n * @slot search-field - Used to define the search field component in the header.\n * @slot notifications - Used to define the notification component in the header.\n * @slot app-switcher-menu - Used to define the application switcher menu in the header.\n * @slot profile-menu - Used to define the profile menu in the header.\n * @slot profile-avatar - Used to define the avator in the header.\n */\n\n@Component({\n tag: 'six-header',\n styleUrl: 'six-header.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class SixHeader {\n /** Indicates if content should be shifted down when search field is visible. */\n @Prop() shiftContent = false;\n\n /** Set the hamburger menu icon to open or closed state */\n @Prop() openHamburgerMenu = false;\n\n /** Set the header search to be in an open or closed state */\n @Prop() openSearch = false;\n\n /** Set whether the logo should be clickable */\n @Prop() clickableLogo = false;\n\n @Watch('openSearch')\n handleOpenSearchChange() {\n this.computeSearchOpenState();\n }\n\n /** Sets open state for search */\n @Method()\n async setSearchOpenState(openState: boolean) {\n if (this.selectedSection === Section.Search && !openState) {\n this.selectedSection = Section.None;\n } else if (openState && this.selectedSection !== Section.Search) {\n this.selectedSection = Section.Search;\n }\n }\n\n /** Get open state for search */\n @Method()\n async getIsSearchOpen() {\n return this.selectedSection === Section.Search;\n }\n\n /** Emitted when the name of the selected app is clicked. */\n @Event({ eventName: 'six-header-app-name-clicked' }) sixAppNameClicked!: EventEmitter<EmptyPayload>;\n\n /** Emitted when a menu item is in the app switcher menu is selected. */\n @Event({ eventName: 'six-header-app-switcher-select' })\n sixAppSwitcherSelect!: EventEmitter<SixHeaderAppSwitcherSelectPayload>;\n\n /** Emitted when a menu item is in the profile menu is selected. */\n @Event({ eventName: 'six-header-profile-select' }) sixProfileSelect!: EventEmitter<SixHeaderProfileSelectPayload>;\n\n /** Emitted when the hamburger menu is clicked. */\n @Event({ eventName: 'six-header-hamburger-menu-clicked' }) sixHamburgerClick!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the header logo is clicked. */\n @Event({ eventName: 'six-header-logo-clicked' }) sixLogoClick!: EventEmitter<EmptyPayload>;\n\n /** Emitted when search field is toggled. */\n @Event({ eventName: 'six-header-search-field-toggle' })\n sixSearchFieldToggle!: EventEmitter<SixHeaderSearchFieldToggle>;\n\n @Element() host!: HTMLSixHeaderElement;\n\n private eventListeners = new EventListeners();\n\n private slots?: Record<Slot, boolean>;\n\n private mutationObserver?: MutationObserver;\n\n @State() selectedApp?: string;\n @State() selectedSection?: Section;\n\n private hasSlot(slot: Slot): boolean {\n if (this.slots == null) {\n return false;\n }\n return this.slots[slot];\n }\n\n private isSectionSelected(value: Section) {\n return value === this.selectedSection;\n }\n\n private selectSection(section: Section) {\n return () => (this.selectedSection = section);\n }\n\n private toggleSearch() {\n const visible = this.selectedSection !== Section.Search;\n this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;\n this.sixSearchFieldToggle.emit({ visible });\n if (this.selectedSection === Section.Search) {\n // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(async () => {\n const slot = getSlot(this.host, Slot.Search);\n slot?.shadowRoot?.querySelector('six-input')?.setFocus();\n }, 50);\n }\n }\n\n private setupMenu = (el?: HTMLSixIconButtonElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixHamburgerClick.emit());\n };\n\n private setupLogo = (el?: HTMLElement) => {\n if (!this.clickableLogo || el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixLogoClick.emit());\n };\n\n private setupProfile = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.Profile));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.sixProfileSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private setupAppSwitcher = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.AppSwitcher));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.selectedApp = item.innerText;\n this.sixAppSwitcherSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private appNameClicked = () => this.sixAppNameClicked.emit();\n\n private computeSearchOpenState = () => {\n this.selectedSection = this.openSearch ? Section.Search : Section.None;\n };\n\n componentWillLoad() {\n this.slots = {\n [Slot.Search]: hasSlot(this.host, Slot.Search),\n [Slot.Notifications]: hasSlot(this.host, Slot.Notifications),\n [Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),\n [Slot.Profile]: hasSlot(this.host, Slot.Profile),\n [Slot.Logo]: hasSlot(this.host, Slot.Logo),\n };\n\n if (this.hasSlot(Slot.AppSwitcher)) {\n this.updateSelectedApp();\n }\n\n if (this.hasSlot(Slot.Search)) {\n this.computeSearchOpenState();\n }\n }\n\n connectedCallback() {\n const appSwitcherSlot = getSlot(this.host, Slot.AppSwitcher);\n if (appSwitcherSlot) {\n this.mutationObserver = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === 'childList' || mutation.type === 'attributes')) {\n this.updateSelectedApp();\n }\n });\n this.mutationObserver.observe(appSwitcherSlot, { attributes: true, childList: true, subtree: true });\n }\n }\n\n private updateSelectedApp() {\n // there are more concise ways to select the first checked menu item, but this is one that works for jest\n const element = getSlot(this.host, Slot.AppSwitcher);\n if (element == null) {\n return undefined;\n }\n const items = Array.from(element.querySelectorAll('six-menu-item'));\n const firstCheckedMenuItem = items.find(\n (item) => item.hasAttribute('checked') && item.getAttribute('checked') !== 'false'\n );\n this.selectedApp = firstCheckedMenuItem?.textContent ?? undefined;\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n this.mutationObserver?.disconnect();\n }\n\n render() {\n const search = this.hasSlot(Slot.Search) && (\n <section\n class={{\n 'six-header__search': true,\n 'six-header__search--open': this.isSectionSelected(Section.Search),\n }}\n >\n <six-icon-button name=\"search\" onClick={() => this.toggleSearch()} data-testid=\"search-trigger\" />\n </section>\n );\n\n const notifications = this.hasSlot(Slot.Notifications) && (\n <section class=\"six-header__notification\">\n <slot name={Slot.Notifications} />\n </section>\n );\n\n const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (\n <section\n class={{\n 'six-header__app-switcher': true,\n 'six-header__app-switcher--open': this.isSectionSelected(Section.AppSwitcher),\n }}\n >\n <a onClick={this.appNameClicked} class=\"six-header__selected-app\">\n {this.selectedApp}\n </a>\n <six-dropdown distance={13} skidding={20} placement=\"bottom-end\" ref={this.setupAppSwitcher}>\n <six-icon-button name=\"apps\" slot=\"trigger\" />\n <slot name={Slot.AppSwitcher} />\n </six-dropdown>\n </section>\n );\n\n const profile = this.hasSlot(Slot.Profile) && (\n <section\n class={{\n 'six-header__profile': true,\n 'six-header__profile--open': this.isSectionSelected(Section.Profile),\n }}\n >\n <six-dropdown distance={17} skidding={20} placement=\"bottom-end\" ref={this.setupProfile}>\n <slot name=\"profile-avatar\" slot=\"trigger\" />\n <slot name=\"profile-menu\" />\n </six-dropdown>\n </section>\n );\n\n const logo = this.hasSlot(Slot.Logo) ? (\n <section>\n <slot name=\"logo\" />\n </section>\n ) : (\n <section\n class={{\n 'six-header__logo': true,\n 'six-header__logo--clickable': this.clickableLogo,\n }}\n ref={this.setupLogo}\n >\n <svg height=\"20\" viewBox=\"0 0 90 26\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>SIX</title>\n <g fill=\"#DE3919\" fill-rule=\"nonzero\">\n <path d=\"m22.798 3.869c1.82-2.168 4.549-3.545 7.6-3.545h6.807v4.961h-6.807c-1.526 0-2.89.689-3.8 1.771l-12.19 14.526c-1.82 2.166-4.549 3.545-7.6 3.545h-6.808v-4.961h6.808c1.525 0 2.889-.689 3.799-1.773l12.191-14.525\" />\n <path d=\"m42.16.324h5.21v24.806h-5.21z\" />\n <path d=\"m66.743 3.869l4.195 4.999 4.195-4.999c1.819-2.168 4.549-3.545 7.6-3.545h6.806v4.961h-6.806c-1.526 0-2.89.689-3.8 1.771l-4.758 5.669 4.758 5.669c.91 1.084 2.274 1.773 3.8 1.773h6.806v4.961h-6.806c-3.051 0-5.781-1.379-7.6-3.545l-4.195-4.999-4.195 4.999c-1.82 2.166-4.55 3.545-7.6 3.545h-6.807v-4.961h6.807c1.525 0 2.889-.689 3.799-1.773l4.758-5.669-4.758-5.669c-.91-1.083-2.274-1.771-3.799-1.771h-6.807v-4.961h6.807c3.05 0 5.78 1.378 7.6 3.545\" />\n </g>\n </svg>\n </section>\n );\n\n return (\n <Host>\n <header class=\"six-header\">\n <section class=\"six-header__menu\">\n <six-icon-button name={this.openHamburgerMenu ? 'menu_open' : 'menu'} ref={this.setupMenu} />\n </section>\n\n {logo}\n\n <section class=\"six-header__placeholder\" />\n\n <section class=\"six-header__custom\">\n <slot />\n </section>\n\n {search}\n\n {notifications}\n\n {appSwitcher}\n\n {profile}\n </header>\n\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.isSectionSelected(Section.Search),\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={Slot.Search} />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"six-header.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,YAAY,GAAG,+6DAA+6D,CAAC;AACr8D,wBAAe,YAAY;;ACoB3B,IAAK,OAKJ;AALD,WAAK,OAAO;IACV,qCAAI,CAAA;IACJ,yCAAM,CAAA;IACN,mDAAW,CAAA;IACX,2CAAO,CAAA;AACT,CAAC,EALI,OAAO,KAAP,OAAO,QAKX;AAED,IAAK,IAMJ;AAND,WAAK,IAAI;IACP,+BAAuB,CAAA;IACvB,uCAA+B,CAAA;IAC/B,yCAAiC,CAAA;IACjC,gCAAwB,CAAA;IACxB,qBAAa,CAAA;AACf,CAAC,EANI,IAAI,KAAJ,IAAI,QAMR;MAoBY,SAAS;;;;;;;;;QA2DZ,mBAAc,GAAG,IAAIA,6BAAc,EAAE,CAAC;QAqCtC,cAAS,GAAG,CAAC,EAA6B;YAChD,IAAI,EAAE,IAAI,IAAI;gBAAE,OAAO;YAEvB,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC,CAAC;SAC3E,CAAC;QAEM,cAAS,GAAG,CAAC,EAAgB;YACnC,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,EAAE,IAAI,IAAI;gBAAE,OAAO;YAE9C,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,IAAI,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EAAC,2bAA2b,GAAG,CACpc,CACA,CACE,CACX,CAAC;QAEF,QACEA,QAACC,UAAI,uDACHD,qEAAQ,KAAK,EAAC,YAAY,IACvB,aAAa,EAEb,IAAI,EAELA,sEAAS,KAAK,EAAC,yBAAyB,GAAG,EAE3CA,sEAAS,KAAK,EAAC,oBAAoB,IACjCA,oEAAQ,CACA,EAET,MAAM,EAEN,aAAa,EAEb,WAAW,EAEX,OAAO,CACD,EAETA,kEACE,KAAK,EAAE;gBACL,0BAA0B,EAAE,IAAI;gBAChC,mCAAmC,EAAE,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC;gBAC3E,yCAAyC,EAAE,IAAI,CAAC,YAAY;aAC7D,IAEDA,mEAAM,IAAI,EAAE,IAAI,CAAC,MAAM,GAAI,CACvB,CACD,EACP;KACH;;;;;;;;;;;","names":["EventListeners","slot","getSlot","hasSlot","h","Host"],"sources":["src/components/six-header/six-header.scss?tag=six-header&encapsulation=shadow","src/components/six-header/six-header.tsx"],"sourcesContent":["@import 'src/global/component';\n\n$header-height: 3.75rem;\n$border-height: 0.25rem;\n\n:host {\n display: block;\n user-select: none;\n --search-border-width: 1px;\n}\n\n::slotted(six-search-field) {\n position: absolute;\n margin-left: var(--search-border-width);\n width: calc(100% - 2 * var(--search-border-width));\n}\n\n.six-header {\n display: flex;\n width: 100%;\n height: $header-height;\n background-color: var(--six-header-background-color);\n align-items: center;\n flex-wrap: wrap;\n box-shadow: var(--six-shadow-medium);\n border-bottom: var(--six-header-border-with) solid var(--six-header-border-color);\n\n &__logo {\n width: 6rem;\n margin-top: 0.15rem;\n\n &--clickable {\n cursor: pointer;\n }\n }\n\n &__placeholder {\n flex: 1;\n }\n\n &__menu,\n &__logo,\n &__custom,\n &__search,\n &__notification,\n &__app-switcher,\n &__profile {\n height: calc(100% - #{$border-height} - 1px);\n padding: 0 1.25rem;\n display: flex;\n align-items: center;\n border-bottom: solid $border-height transparent;\n\n &--open {\n border-bottom: solid $border-height var(--six-header-border-color-open);\n }\n }\n\n &__app-switcher-dropdown {\n display: flex;\n align-items: center;\n }\n\n &__selected-app {\n cursor: pointer;\n font-size: 0.9rem;\n font-weight: 600;\n padding-right: 0;\n padding-left: 0.3rem;\n &:hover {\n color: var(--six-header-selected-app-color-hover);\n }\n }\n\n &__search-field {\n opacity: 0;\n transform: scale(0.9);\n transition: var(--six-transition-fast) opacity, var(--six-transition-fast) transform;\n display: none;\n\n &--visible {\n opacity: 1;\n transform: none;\n display: block;\n }\n\n &--shift-content.six-header__search-field--visible {\n height: 2.65rem;\n transition: var(--six-transition-fast) height;\n }\n\n &--shift-content:not(.six-header__search-field--visible) {\n height: 0;\n transition: var(--six-transition-fast) height;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlot, hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\n\nexport interface SixHeaderAppSwitcherSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderProfileSelectPayload {\n selectedLabel: string;\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nexport interface SixHeaderSearchFieldToggle {\n visible: boolean;\n}\n\nenum Section {\n None,\n Search,\n AppSwitcher,\n Profile,\n}\n\nenum Slot {\n Search = 'search-field',\n Notifications = 'notifications',\n AppSwitcher = 'app-switcher-menu',\n Profile = 'profile-menu',\n Logo = 'logo',\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define a custom component that is included in the header.\n * @slot search-field - Used to define the search field component in the header.\n * @slot notifications - Used to define the notification component in the header.\n * @slot app-switcher-menu - Used to define the application switcher menu in the header.\n * @slot profile-menu - Used to define the profile menu in the header.\n * @slot profile-avatar - Used to define the avator in the header.\n */\n\n@Component({\n tag: 'six-header',\n styleUrl: 'six-header.scss',\n shadow: true,\n assetsDirs: ['assets'],\n})\nexport class SixHeader {\n /** Indicates if content should be shifted down when search field is visible. */\n @Prop() shiftContent = false;\n\n /** Set whether the hamburger menu should be visible or not */\n @Prop() hideHamburgerMenu = false;\n\n /** Set the hamburger menu icon to open or closed state */\n @Prop() openHamburgerMenu = false;\n\n /** Set the header search to be in an open or closed state */\n @Prop() openSearch = false;\n\n /** Set whether the logo should be clickable */\n @Prop() clickableLogo = false;\n\n @Watch('openSearch')\n handleOpenSearchChange() {\n this.computeSearchOpenState();\n }\n\n /** Sets open state for search */\n @Method()\n async setSearchOpenState(openState: boolean) {\n if (this.selectedSection === Section.Search && !openState) {\n this.selectedSection = Section.None;\n } else if (openState && this.selectedSection !== Section.Search) {\n this.selectedSection = Section.Search;\n }\n }\n\n /** Get open state for search */\n @Method()\n async getIsSearchOpen() {\n return this.selectedSection === Section.Search;\n }\n\n /** Emitted when the name of the selected app is clicked. */\n @Event({ eventName: 'six-header-app-name-clicked' }) sixAppNameClicked!: EventEmitter<EmptyPayload>;\n\n /** Emitted when a menu item is in the app switcher menu is selected. */\n @Event({ eventName: 'six-header-app-switcher-select' })\n sixAppSwitcherSelect!: EventEmitter<SixHeaderAppSwitcherSelectPayload>;\n\n /** Emitted when a menu item is in the profile menu is selected. */\n @Event({ eventName: 'six-header-profile-select' }) sixProfileSelect!: EventEmitter<SixHeaderProfileSelectPayload>;\n\n /** Emitted when the hamburger menu is clicked. */\n @Event({ eventName: 'six-header-hamburger-menu-clicked' }) sixHamburgerClick!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the header logo is clicked. */\n @Event({ eventName: 'six-header-logo-clicked' }) sixLogoClick!: EventEmitter<EmptyPayload>;\n\n /** Emitted when search field is toggled. */\n @Event({ eventName: 'six-header-search-field-toggle' })\n sixSearchFieldToggle!: EventEmitter<SixHeaderSearchFieldToggle>;\n\n @Element() host!: HTMLSixHeaderElement;\n\n private eventListeners = new EventListeners();\n\n private slots?: Record<Slot, boolean>;\n\n private mutationObserver?: MutationObserver;\n\n @State() selectedApp?: string;\n @State() selectedSection?: Section;\n\n private hasSlot(slot: Slot): boolean {\n if (this.slots == null) {\n return false;\n }\n return this.slots[slot];\n }\n\n private isSectionSelected(value: Section) {\n return value === this.selectedSection;\n }\n\n private selectSection(section: Section) {\n return () => (this.selectedSection = section);\n }\n\n private toggleSearch() {\n const visible = this.selectedSection !== Section.Search;\n this.selectedSection = this.selectedSection === Section.Search ? Section.None : Section.Search;\n this.sixSearchFieldToggle.emit({ visible });\n if (this.selectedSection === Section.Search) {\n // setFocus deferred due to https://github.com/ionic-team/stencil/issues/3772\n setTimeout(async () => {\n const slot = getSlot(this.host, Slot.Search);\n slot?.shadowRoot?.querySelector('six-input')?.setFocus();\n }, 50);\n }\n }\n\n private setupMenu = (el?: HTMLSixIconButtonElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixHamburgerClick.emit());\n };\n\n private setupLogo = (el?: HTMLElement) => {\n if (!this.clickableLogo || el == null) return;\n\n this.eventListeners.add(el, 'click', () => this.sixLogoClick.emit());\n };\n\n private setupProfile = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.Profile));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.sixProfileSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private setupAppSwitcher = (el?: HTMLSixDropdownElement) => {\n if (el == null) return;\n\n this.eventListeners.add(el, 'six-dropdown-show', this.selectSection(Section.AppSwitcher));\n this.eventListeners.add(el, 'six-dropdown-hide', this.selectSection(Section.None));\n this.eventListeners.add(el, 'six-menu-item-selected', (event: Event) => {\n const { name, item } = (event as CustomEvent).detail;\n this.selectedApp = item.innerText;\n this.sixAppSwitcherSelect.emit({ selectedLabel: item.innerText, name, item });\n });\n };\n\n private appNameClicked = () => this.sixAppNameClicked.emit();\n\n private computeSearchOpenState = () => {\n this.selectedSection = this.openSearch ? Section.Search : Section.None;\n };\n\n componentWillLoad() {\n this.slots = {\n [Slot.Search]: hasSlot(this.host, Slot.Search),\n [Slot.Notifications]: hasSlot(this.host, Slot.Notifications),\n [Slot.AppSwitcher]: hasSlot(this.host, Slot.AppSwitcher),\n [Slot.Profile]: hasSlot(this.host, Slot.Profile),\n [Slot.Logo]: hasSlot(this.host, Slot.Logo),\n };\n\n if (this.hasSlot(Slot.AppSwitcher)) {\n this.updateSelectedApp();\n }\n\n if (this.hasSlot(Slot.Search)) {\n this.computeSearchOpenState();\n }\n }\n\n connectedCallback() {\n const appSwitcherSlot = getSlot(this.host, Slot.AppSwitcher);\n if (appSwitcherSlot) {\n this.mutationObserver = new MutationObserver((mutations) => {\n if (mutations.some((mutation) => mutation.type === 'childList' || mutation.type === 'attributes')) {\n this.updateSelectedApp();\n }\n });\n this.mutationObserver.observe(appSwitcherSlot, { attributes: true, childList: true, subtree: true });\n }\n }\n\n private updateSelectedApp() {\n // there are more concise ways to select the first checked menu item, but this is one that works for jest\n const element = getSlot(this.host, Slot.AppSwitcher);\n if (element == null) {\n return undefined;\n }\n const items = Array.from(element.querySelectorAll('six-menu-item'));\n const firstCheckedMenuItem = items.find(\n (item) => item.hasAttribute('checked') && item.getAttribute('checked') !== 'false'\n );\n this.selectedApp = firstCheckedMenuItem?.textContent ?? undefined;\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n this.mutationObserver?.disconnect();\n }\n\n render() {\n const hamburgerMenu = !this.hideHamburgerMenu && (\n <section class=\"six-header__menu\">\n <six-icon-button name={this.openHamburgerMenu ? 'menu_open' : 'menu'} ref={this.setupMenu} />\n </section>\n );\n\n const search = this.hasSlot(Slot.Search) && (\n <section\n class={{\n 'six-header__search': true,\n 'six-header__search--open': this.isSectionSelected(Section.Search),\n }}\n >\n <six-icon-button name=\"search\" onClick={() => this.toggleSearch()} data-testid=\"search-trigger\" />\n </section>\n );\n\n const notifications = this.hasSlot(Slot.Notifications) && (\n <section class=\"six-header__notification\">\n <slot name={Slot.Notifications} />\n </section>\n );\n\n const appSwitcher = this.hasSlot(Slot.AppSwitcher) && (\n <section\n class={{\n 'six-header__app-switcher': true,\n 'six-header__app-switcher--open': this.isSectionSelected(Section.AppSwitcher),\n }}\n >\n <six-dropdown distance={13} skidding={20} placement=\"bottom-end\" ref={this.setupAppSwitcher}>\n <div slot=\"trigger\" class=\"six-header__app-switcher-dropdown\">\n <a onClick={this.appNameClicked} class=\"six-header__selected-app\">\n {this.selectedApp}\n </a>\n <six-icon-button name=\"apps\" />\n </div>\n <slot name={Slot.AppSwitcher} />\n </six-dropdown>\n </section>\n );\n\n const profile = this.hasSlot(Slot.Profile) && (\n <section\n class={{\n 'six-header__profile': true,\n 'six-header__profile--open': this.isSectionSelected(Section.Profile),\n }}\n >\n <six-dropdown distance={17} skidding={20} placement=\"bottom-end\" ref={this.setupProfile}>\n <slot name=\"profile-avatar\" slot=\"trigger\" />\n <slot name=\"profile-menu\" />\n </six-dropdown>\n </section>\n );\n\n const logo = this.hasSlot(Slot.Logo) ? (\n <section>\n <slot name=\"logo\" />\n </section>\n ) : (\n <section\n class={{\n 'six-header__logo': true,\n 'six-header__logo--clickable': this.clickableLogo,\n }}\n ref={this.setupLogo}\n >\n <svg height=\"20\" viewBox=\"0 0 90 26\" xmlns=\"http://www.w3.org/2000/svg\">\n <title>SIX</title>\n <g fill=\"#DE3919\" fill-rule=\"nonzero\">\n <path d=\"m22.798 3.869c1.82-2.168 4.549-3.545 7.6-3.545h6.807v4.961h-6.807c-1.526 0-2.89.689-3.8 1.771l-12.19 14.526c-1.82 2.166-4.549 3.545-7.6 3.545h-6.808v-4.961h6.808c1.525 0 2.889-.689 3.799-1.773l12.191-14.525\" />\n <path d=\"m42.16.324h5.21v24.806h-5.21z\" />\n <path d=\"m66.743 3.869l4.195 4.999 4.195-4.999c1.819-2.168 4.549-3.545 7.6-3.545h6.806v4.961h-6.806c-1.526 0-2.89.689-3.8 1.771l-4.758 5.669 4.758 5.669c.91 1.084 2.274 1.773 3.8 1.773h6.806v4.961h-6.806c-3.051 0-5.781-1.379-7.6-3.545l-4.195-4.999-4.195 4.999c-1.82 2.166-4.55 3.545-7.6 3.545h-6.807v-4.961h6.807c1.525 0 2.889-.689 3.799-1.773l4.758-5.669-4.758-5.669c-.91-1.083-2.274-1.771-3.799-1.771h-6.807v-4.961h6.807c3.05 0 5.78 1.378 7.6 3.545\" />\n </g>\n </svg>\n </section>\n );\n\n return (\n <Host>\n <header class=\"six-header\">\n {hamburgerMenu}\n\n {logo}\n\n <section class=\"six-header__placeholder\" />\n\n <section class=\"six-header__custom\">\n <slot />\n </section>\n\n {search}\n\n {notifications}\n\n {appSwitcher}\n\n {profile}\n </header>\n\n <div\n class={{\n 'six-header__search-field': true,\n 'six-header__search-field--visible': this.isSectionSelected(Section.Search),\n 'six-header__search-field--shift-content': this.shiftContent,\n }}\n >\n <slot name={Slot.Search} />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -2,10 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3baddcdc.js');
5
+ const index = require('./index-b288f7d9.js');
6
6
  const focusVisible = require('./focus-visible-e2c9255a.js');
7
7
 
8
- const sixIconButtonCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:inline-block}.icon-button{flex:0 0 auto;display:flex;align-items:center;background:none;border:none;border-radius:var(--six-border-radius-medium);font-size:inherit;color:var(--six-input-icon-color);padding:var(--six-spacing-x-small);cursor:pointer;transition:var(--six-transition-medium) color;-webkit-appearance:none}.icon-button:hover:not(.icon-button--disabled),.icon-button:focus:not(.icon-button--disabled){color:var(--six-input-icon-color-hover)}.icon-button:active:not(.icon-button--disabled){color:var(--six-input-icon-color)}.icon-button:focus{outline:none}.icon-button:focus-visible{outline:var(--six-focus-ring);outline-offset:var(--six-focus-ring-offset)}.icon-button--disabled{opacity:0.5;pointer-events:none}.icon-button-wrapper--disabled{cursor:not-allowed}.icon-button ::slotted(six-badge){position:absolute;top:0;right:0;pointer-events:none}.icon-button six-icon[size=xLarge]+::slotted(six-badge){transform:translateY(40%) translateX(-35%)}.icon-button six-icon[size=large]+::slotted(six-badge){transform:translateY(20%) translateX(-20%)}.icon-button six-icon[size=medium]+::slotted(six-badge){transform:translateY(10%) translateX(50%)}.icon-button six-icon[size=xSmall]+::slotted(six-badge){transform:translateY(-25%) translateX(25%)}";
8
+ const sixIconButtonCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-block}.icon-button{flex:0 0 auto;display:flex;align-items:center;background:none;border:none;border-radius:var(--six-border-radius-medium);font-size:inherit;color:var(--six-input-icon-color);padding:var(--six-spacing-x-small);cursor:pointer;transition:var(--six-transition-medium) color;-webkit-appearance:none}.icon-button:hover:not(.icon-button--disabled),.icon-button:focus:not(.icon-button--disabled){color:var(--six-input-icon-color-hover)}.icon-button:active:not(.icon-button--disabled){color:var(--six-input-icon-color)}.icon-button:focus{outline:none}.icon-button:focus-visible{outline:var(--six-focus-ring);outline-offset:var(--six-focus-ring-offset)}.icon-button--disabled{opacity:0.5;pointer-events:none}.icon-button-wrapper--disabled{cursor:not-allowed}.icon-button ::slotted(six-badge){position:absolute;top:0;right:0;pointer-events:none}.icon-button six-icon[size=xLarge]+::slotted(six-badge){transform:translateY(40%) translateX(-35%)}.icon-button six-icon[size=large]+::slotted(six-badge){transform:translateY(20%) translateX(-20%)}.icon-button six-icon[size=medium]+::slotted(six-badge){transform:translateY(10%) translateX(50%)}.icon-button six-icon[size=xSmall]+::slotted(six-badge){transform:translateY(-25%) translateX(25%)}";
9
+ const SixIconButtonStyle0 = sixIconButtonCss;
9
10
 
10
11
  const SixIconButton = class {
11
12
  constructor(hostRef) {
@@ -33,14 +34,14 @@ const SixIconButton = class {
33
34
  }
34
35
  }
35
36
  render() {
36
- const html = this.html && index.h("span", { innerHTML: this.html });
37
- return (index.h("div", { onClick: this.handleClickEvent, class: { 'icon-button-wrapper--disabled': this.disabled } }, index.h("button", { ref: (el) => (this.button = el), part: "base", disabled: this.disabled, class: {
37
+ const html = this.html && index.h("span", { key: 'f3ebfe0713af8463ad71597bb39e28744ae8bfb2', innerHTML: this.html });
38
+ return (index.h("div", { key: 'ae12d7f62c0028f2fc6f7aa2217bc28fa631fe28', onClick: this.handleClickEvent, class: { 'icon-button-wrapper--disabled': this.disabled } }, index.h("button", { key: 'e071ff67b21dada65d30973d10a8849d2bb18dc2', ref: (el) => (this.button = el), part: "base", disabled: this.disabled, class: {
38
39
  'icon-button': true,
39
40
  'icon-button--disabled': this.disabled,
40
- }, type: "button", "aria-label": this.label }, index.h("six-icon", { "aria-hidden": "true", size: this.size }, this.name), index.h("slot", null), html)));
41
+ }, type: "button", "aria-label": this.label }, index.h("six-icon", { key: 'ab6d21f4b6051248cb14bbc008b9190abde705ec', "aria-hidden": "true", size: this.size }, this.name), index.h("slot", { key: '074df89d19a9e64368dd50e419a98f35999d16b8' }), html)));
41
42
  }
42
43
  };
43
- SixIconButton.style = sixIconButtonCss;
44
+ SixIconButton.style = SixIconButtonStyle0;
44
45
 
45
46
  exports.six_icon_button = SixIconButton;
46
47
 
@@ -1 +1 @@
1
- {"file":"six-icon-button.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,gBAAgB,GAAG,01CAA01C;;MCiBt2C,aAAa;;;QA2DhB,qBAAgB,GAAG,CAAC,KAAY;YACtC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;aACzB;SACF,CAAC;;oBAzD2G,QAAQ;;wBASjF,KAAK;;;IAKzC,gBAAgB;QACd,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACvBA,yBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACnC;KACF;IAED,oBAAoB;QAClB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACvBA,yBAAY,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACrC;KACF;IAED,MAAM;QACJ,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAIC,kBAAM,SAAS,EAAE,IAAI,CAAC,IAAI,GAAI,CAAC;QAEzD,QACEA,iBAAK,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,EAAE,EAAE,+BAA+B,EAAE,IAAI,CAAC,QAAQ,EAAE,IAC5FA,oBACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,EAC/B,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE;gBACL,aAAa,EAAE,IAAI;gBACnB,uBAAuB,EAAE,IAAI,CAAC,QAAQ;aACvC,EACD,IAAI,EAAC,QAAQ,gBACD,IAAI,CAAC,KAAK,IAEtBA,qCAAsB,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IACzC,IAAI,CAAC,IAAI,CACD,EACXA,qBAAQ,EACP,IAAI,CACE,CACL,EACN;KACH;;;;;;","names":["focusVisible","h"],"sources":["src/components/six-icon-button/six-icon-button.scss?tag=six-icon-button&encapsulation=shadow","src/components/six-icon-button/six-icon-button.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n}\n\n.icon-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--six-border-radius-medium);\n font-size: inherit;\n color: var(--six-input-icon-color);\n padding: var(--six-spacing-x-small);\n cursor: pointer;\n transition: var(--six-transition-medium) color;\n -webkit-appearance: none;\n\n &:hover:not(.icon-button--disabled),\n &:focus:not(.icon-button--disabled) {\n color: var(--six-input-icon-color-hover);\n }\n\n &:active:not(.icon-button--disabled) {\n color: var(--six-input-icon-color);\n }\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: var(--six-focus-ring);\n outline-offset: var(--six-focus-ring-offset);\n }\n}\n\n.icon-button--disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n\n.icon-button-wrapper--disabled {\n cursor: not-allowed;\n}\n\n.icon-button ::slotted(six-badge) {\n position: absolute;\n top: 0;\n right: 0;\n pointer-events: none;\n}\n\n.icon-button six-icon[size='xLarge'] + ::slotted(six-badge) {\n transform: translateY(40%) translateX(-35%);\n}\n\n.icon-button six-icon[size='large'] + ::slotted(six-badge) {\n transform: translateY(20%) translateX(-20%);\n}\n\n// TODO: tx4u9 should be adjusted for all sizes after design team\n.icon-button six-icon[size='medium'] + ::slotted(six-badge) {\n transform: translateY(10%) translateX(50%);\n}\n\n.icon-button six-icon[size='small'] + ::slotted(six-badge) {\n // no translation necessary\n}\n\n.icon-button six-icon[size='xSmall'] + ::slotted(six-badge) {\n transform: translateY(-25%) translateX(25%);\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { focusVisible } from '../../utils/focus-visible';\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 * @part base - The component's base wrapper.\n */\n\n@Component({\n tag: 'six-icon-button',\n styleUrl: 'six-icon-button.scss',\n shadow: true,\n})\nexport class SixIconButton {\n private button?: HTMLButtonElement;\n\n /** The name of the icon to draw. */\n @Prop({ reflect: true }) name?: string;\n\n /** The icon's size. */\n @Prop({ reflect: true }) size: 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge' = 'medium';\n\n /**\n * A description that gets read by screen readers and other assistive devices. For optimal accessibility, you should\n * always include a label that describes what the icon button does.\n */\n @Prop({ reflect: true }) label?: string;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** HTML symbol code or entity. */\n @Prop({ reflect: true }) html?: string;\n\n componentDidLoad() {\n if (this.button != null) {\n focusVisible.observe(this.button);\n }\n }\n\n disconnectedCallback() {\n if (this.button != null) {\n focusVisible.unobserve(this.button);\n }\n }\n\n render() {\n const html = this.html && <span innerHTML={this.html} />;\n\n return (\n <div onClick={this.handleClickEvent} class={{ 'icon-button-wrapper--disabled': this.disabled }}>\n <button\n ref={(el) => (this.button = el)}\n part=\"base\"\n disabled={this.disabled}\n class={{\n 'icon-button': true,\n 'icon-button--disabled': this.disabled,\n }}\n type=\"button\"\n aria-label={this.label}\n >\n <six-icon aria-hidden=\"true\" size={this.size}>\n {this.name}\n </six-icon>\n <slot />\n {html}\n </button>\n </div>\n );\n }\n\n private handleClickEvent = (event: Event) => {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n}\n"],"version":3}
1
+ {"file":"six-icon-button.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,gBAAgB,GAAG,61CAA61C,CAAC;AACv3C,4BAAe,gBAAgB;;MCgBlB,aAAa;;;QA2DhB,qBAAgB,GAAG,CAAC,KAAY;YACtC,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,KAAK,CAAC,eAAe,EAAE,CAAC;aACzB;SACF,CAAC;;oBAzD2G,QAAQ;;wBASjF,KAAK;;;IAKzC,gBAAgB;QACd,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACvBA,yBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACnC;KACF;IAED,oBAAoB;QAClB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;YACvBA,yBAAY,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACrC;KACF;IAED,MAAM;QACJ,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAIC,mEAAM,SAAS,EAAE,IAAI,CAAC,IAAI,GAAI,CAAC;QAEzD,QACEA,kEAAK,OAAO,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,EAAE,EAAE,+BAA+B,EAAE,IAAI,CAAC,QAAQ,EAAE,IAC5FA,qEACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,EAC/B,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE;gBACL,aAAa,EAAE,IAAI;gBACnB,uBAAuB,EAAE,IAAI,CAAC,QAAQ;aACvC,EACD,IAAI,EAAC,QAAQ,gBACD,IAAI,CAAC,KAAK,IAEtBA,sFAAsB,MAAM,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IACzC,IAAI,CAAC,IAAI,CACD,EACXA,oEAAQ,EACP,IAAI,CACE,CACL,EACN;KACH;;;;;;","names":["focusVisible","h"],"sources":["src/components/six-icon-button/six-icon-button.scss?tag=six-icon-button&encapsulation=shadow","src/components/six-icon-button/six-icon-button.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n}\n\n.icon-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--six-border-radius-medium);\n font-size: inherit;\n color: var(--six-input-icon-color);\n padding: var(--six-spacing-x-small);\n cursor: pointer;\n transition: var(--six-transition-medium) color;\n -webkit-appearance: none;\n\n &:hover:not(.icon-button--disabled),\n &:focus:not(.icon-button--disabled) {\n color: var(--six-input-icon-color-hover);\n }\n\n &:active:not(.icon-button--disabled) {\n color: var(--six-input-icon-color);\n }\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: var(--six-focus-ring);\n outline-offset: var(--six-focus-ring-offset);\n }\n}\n\n.icon-button--disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n\n.icon-button-wrapper--disabled {\n cursor: not-allowed;\n}\n\n.icon-button ::slotted(six-badge) {\n position: absolute;\n top: 0;\n right: 0;\n pointer-events: none;\n}\n\n.icon-button six-icon[size='xLarge'] + ::slotted(six-badge) {\n transform: translateY(40%) translateX(-35%);\n}\n\n.icon-button six-icon[size='large'] + ::slotted(six-badge) {\n transform: translateY(20%) translateX(-20%);\n}\n\n// TODO: tx4u9 should be adjusted for all sizes after design team\n.icon-button six-icon[size='medium'] + ::slotted(six-badge) {\n transform: translateY(10%) translateX(50%);\n}\n\n.icon-button six-icon[size='small'] + ::slotted(six-badge) {\n // no translation necessary\n}\n\n.icon-button six-icon[size='xSmall'] + ::slotted(six-badge) {\n transform: translateY(-25%) translateX(25%);\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { focusVisible } from '../../utils/focus-visible';\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 * @part base - The component's base wrapper.\n */\n\n@Component({\n tag: 'six-icon-button',\n styleUrl: 'six-icon-button.scss',\n shadow: true,\n})\nexport class SixIconButton {\n private button?: HTMLButtonElement;\n\n /** The name of the icon to draw. */\n @Prop({ reflect: true }) name?: string;\n\n /** The icon's size. */\n @Prop({ reflect: true }) size: 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge' = 'medium';\n\n /**\n * A description that gets read by screen readers and other assistive devices. For optimal accessibility, you should\n * always include a label that describes what the icon button does.\n */\n @Prop({ reflect: true }) label?: string;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** HTML symbol code or entity. */\n @Prop({ reflect: true }) html?: string;\n\n componentDidLoad() {\n if (this.button != null) {\n focusVisible.observe(this.button);\n }\n }\n\n disconnectedCallback() {\n if (this.button != null) {\n focusVisible.unobserve(this.button);\n }\n }\n\n render() {\n const html = this.html && <span innerHTML={this.html} />;\n\n return (\n <div onClick={this.handleClickEvent} class={{ 'icon-button-wrapper--disabled': this.disabled }}>\n <button\n ref={(el) => (this.button = el)}\n part=\"base\"\n disabled={this.disabled}\n class={{\n 'icon-button': true,\n 'icon-button--disabled': this.disabled,\n }}\n type=\"button\"\n aria-label={this.label}\n >\n <six-icon aria-hidden=\"true\" size={this.size}>\n {this.name}\n </six-icon>\n <slot />\n {html}\n </button>\n </div>\n );\n }\n\n private handleClickEvent = (event: Event) => {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n}\n"],"version":3}
@@ -2,9 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3baddcdc.js');
5
+ const index = require('./index-b288f7d9.js');
6
6
 
7
- const sixIconCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:inline}.material-icons{vertical-align:middle;font-weight:normal;font-style:normal;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:\"liga\"}.material-icons-filled{font-family:\"Material Icons\"}.material-icons-outlined{font-family:\"Material Icons Outlined\"}.icon--xsmall{font-size:12px}.icon--small{font-size:18px}.icon--medium{font-size:24px}.icon--large{font-size:36px}.icon--xlarge{font-size:48px}.icon--xxlarge{font-size:72px}.icon--xxxlarge{font-size:96px}.icon--inherit{font-size:1.5em}";
7
+ const sixIconCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:inline-flex;vertical-align:middle}.material-icons{vertical-align:middle;font-weight:normal;font-style:normal;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:\"liga\";user-select:none}.material-icons-filled{font-family:\"Material Icons\"}.material-icons-outlined{font-family:\"Material Icons Outlined\"}.icon--xsmall{font-size:12px}.icon--small{font-size:18px}.icon--medium{font-size:24px}.icon--large{font-size:36px}.icon--xlarge{font-size:48px}.icon--xxlarge{font-size:72px}.icon--xxxlarge{font-size:96px}.icon--inherit{font-size:1.5em}";
8
+ const SixIconStyle0 = sixIconCss;
8
9
 
9
10
  const SixIcon = class {
10
11
  constructor(hostRef) {
@@ -13,7 +14,7 @@ const SixIcon = class {
13
14
  this.filled = false;
14
15
  }
15
16
  render() {
16
- return (index.h("i", { class: {
17
+ return (index.h("i", { key: '4834f98a189a752747f5e00cd844db37a9ac2922', class: {
17
18
  'material-icons': true,
18
19
  'material-icons-outlined': !this.filled,
19
20
  'material-icons-filled': this.filled,
@@ -25,10 +26,10 @@ const SixIcon = class {
25
26
  'icon--xxlarge': this.size === 'xxLarge',
26
27
  'icon--xxxlarge': this.size === 'xxxLarge',
27
28
  'icon--inherit': this.size === 'inherit',
28
- } }, index.h("slot", null)));
29
+ } }, index.h("slot", { key: '28aa9576b53d0825da4c5a5a34a94b55b39f7344' })));
29
30
  }
30
31
  };
31
- SixIcon.style = sixIconCss;
32
+ SixIcon.style = SixIconStyle0;
32
33
 
33
34
  exports.six_icon = SixIcon;
34
35
 
@@ -1 +1 @@
1
- {"file":"six-icon.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,4wBAA4wB;;MCclxB,OAAO;;;oBAUD,SAAS;sBAGT,KAAK;;IAEtB,MAAM;QACJ,QACEA,eACE,KAAK,EAAE;gBACL,gBAAgB,EAAE,IAAI;gBACtB,yBAAyB,EAAE,CAAC,IAAI,CAAC,MAAM;gBACvC,uBAAuB,EAAE,IAAI,CAAC,MAAM;gBACpC,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACtC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBACpC,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACtC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBACpC,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACtC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACxC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,UAAU;gBAC1C,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;aACzC,IAEDA,qBAAa,CACX,EACJ;KACH;;;;;;","names":["h"],"sources":["src/components/six-icon/six-icon.scss?tag=six-icon&encapsulation=shadow","src/components/six-icon/six-icon.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline;\n}\n\n.material-icons {\n vertical-align: middle;\n font-weight: normal;\n font-style: normal;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: normal;\n white-space: nowrap;\n direction: ltr;\n\n /* Support for all WebKit browsers. */\n -webkit-font-smoothing: antialiased;\n /* Support for Safari and Chrome. */\n text-rendering: optimizeLegibility;\n\n /* Support for Firefox. */\n -moz-osx-font-smoothing: grayscale;\n\n /* Support for IE. */\n font-feature-settings: 'liga';\n}\n\n.material-icons-filled {\n font-family: 'Material Icons';\n}\n\n.material-icons-outlined {\n font-family: 'Material Icons Outlined';\n}\n\n.icon {\n &--xsmall {\n font-size: 12px;\n }\n\n &--small {\n font-size: 18px;\n }\n\n &--medium {\n font-size: 24px;\n }\n\n &--large {\n font-size: 36px;\n }\n\n &--xlarge {\n font-size: 48px;\n }\n\n &--xxlarge {\n font-size: 72px;\n }\n\n &--xxxlarge {\n font-size: 96px;\n }\n\n &--inherit {\n font-size: 1.5em;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the material icon name.\n */\n\n@Component({\n tag: 'six-icon',\n styleUrls: ['six-icon.scss'],\n shadow: true,\n})\nexport class SixIcon {\n /** The icon's size. */\n @Prop({ reflect: true }) size:\n | 'inherit'\n | 'xSmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xLarge'\n | 'xxLarge'\n | 'xxxLarge' = 'inherit';\n\n /** If set to true the default material outlined icons are not used. */\n @Prop() filled = false;\n\n render() {\n return (\n <i\n class={{\n 'material-icons': true,\n 'material-icons-outlined': !this.filled,\n 'material-icons-filled': this.filled,\n 'icon--xsmall': this.size === 'xSmall',\n 'icon--small': this.size === 'small',\n 'icon--medium': this.size === 'medium',\n 'icon--large': this.size === 'large',\n 'icon--xlarge': this.size === 'xLarge',\n 'icon--xxlarge': this.size === 'xxLarge',\n 'icon--xxxlarge': this.size === 'xxxLarge',\n 'icon--inherit': this.size === 'inherit',\n }}\n >\n <slot></slot>\n </i>\n );\n }\n}\n"],"version":3}
1
+ {"file":"six-icon.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,2zBAA2zB,CAAC;AAC/0B,sBAAe,UAAU;;MCaZ,OAAO;;;oBAUD,SAAS;sBAGT,KAAK;;IAEtB,MAAM;QACJ,QACEA,gEACE,KAAK,EAAE;gBACL,gBAAgB,EAAE,IAAI;gBACtB,yBAAyB,EAAE,CAAC,IAAI,CAAC,MAAM;gBACvC,uBAAuB,EAAE,IAAI,CAAC,MAAM;gBACpC,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACtC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBACpC,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACtC,aAAa,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBACpC,cAAc,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBACtC,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;gBACxC,gBAAgB,EAAE,IAAI,CAAC,IAAI,KAAK,UAAU;gBAC1C,eAAe,EAAE,IAAI,CAAC,IAAI,KAAK,SAAS;aACzC,IAEDA,oEAAa,CACX,EACJ;KACH;;;;;;","names":["h"],"sources":["src/components/six-icon/six-icon.scss?tag=six-icon&encapsulation=shadow","src/components/six-icon/six-icon.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-flex;\n vertical-align: middle;\n}\n\n.material-icons {\n vertical-align: middle;\n font-weight: normal;\n font-style: normal;\n text-transform: none;\n letter-spacing: normal;\n word-wrap: normal;\n white-space: nowrap;\n direction: ltr;\n\n /* Support for all WebKit browsers. */\n -webkit-font-smoothing: antialiased;\n /* Support for Safari and Chrome. */\n text-rendering: optimizeLegibility;\n\n /* Support for Firefox. */\n -moz-osx-font-smoothing: grayscale;\n\n /* Support for IE. */\n font-feature-settings: 'liga';\n\n /* Icon name should not be selectable. */\n user-select: none;\n}\n\n.material-icons-filled {\n font-family: 'Material Icons';\n}\n\n.material-icons-outlined {\n font-family: 'Material Icons Outlined';\n}\n\n.icon {\n &--xsmall {\n font-size: 12px;\n }\n\n &--small {\n font-size: 18px;\n }\n\n &--medium {\n font-size: 24px;\n }\n\n &--large {\n font-size: 36px;\n }\n\n &--xlarge {\n font-size: 48px;\n }\n\n &--xxlarge {\n font-size: 72px;\n }\n\n &--xxxlarge {\n font-size: 96px;\n }\n\n &--inherit {\n font-size: 1.5em;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the material icon name.\n */\n\n@Component({\n tag: 'six-icon',\n styleUrls: ['six-icon.scss'],\n shadow: true,\n})\nexport class SixIcon {\n /** The icon's size. */\n @Prop({ reflect: true }) size:\n | 'inherit'\n | 'xSmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xLarge'\n | 'xxLarge'\n | 'xxxLarge' = 'inherit';\n\n /** If set to true the default material outlined icons are not used. */\n @Prop() filled = false;\n\n render() {\n return (\n <i\n class={{\n 'material-icons': true,\n 'material-icons-outlined': !this.filled,\n 'material-icons-filled': this.filled,\n 'icon--xsmall': this.size === 'xSmall',\n 'icon--small': this.size === 'small',\n 'icon--medium': this.size === 'medium',\n 'icon--large': this.size === 'large',\n 'icon--xlarge': this.size === 'xLarge',\n 'icon--xxlarge': this.size === 'xxLarge',\n 'icon--xxxlarge': this.size === 'xxxLarge',\n 'icon--inherit': this.size === 'inherit',\n }}\n >\n <slot></slot>\n </i>\n );\n }\n}\n"],"version":3}