@six-group/ui-library 4.2.6 → 4.3.0

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 (1265) hide show
  1. package/dist/cjs/{form-control-de259450.js → form-control-b39f1df5.js} +2 -2
  2. package/dist/cjs/{form-control-de259450.js.map → form-control-b39f1df5.js.map} +1 -1
  3. package/dist/cjs/index-417a06c8.js +1948 -0
  4. package/dist/cjs/index-417a06c8.js.map +1 -0
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/six-alert.cjs.entry.js +2 -2
  7. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  8. package/dist/cjs/six-avatar.cjs.entry.js +3 -3
  9. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  10. package/dist/cjs/six-badge.cjs.entry.js +3 -3
  11. package/dist/cjs/six-button.cjs.entry.js +4 -4
  12. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  13. package/dist/cjs/six-card.cjs.entry.js +2 -2
  14. package/dist/cjs/{six-checkbox_2.cjs.entry.js → six-checkbox.cjs.entry.js} +5 -69
  15. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -0
  16. package/dist/cjs/six-datepicker.cjs.entry.js +4 -4
  17. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  18. package/dist/cjs/six-details.cjs.entry.js +4 -4
  19. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  20. package/dist/cjs/six-dialog.cjs.entry.js +3 -3
  21. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  22. package/dist/cjs/six-drawer.cjs.entry.js +3 -3
  23. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  24. package/dist/cjs/{six-dropdown_2.cjs.entry.js → six-dropdown_3.cjs.entry.js} +73 -9
  25. package/dist/cjs/six-dropdown_3.cjs.entry.js.map +1 -0
  26. package/dist/cjs/six-error-page.cjs.entry.js +2 -2
  27. package/dist/cjs/six-error.cjs.entry.js +2 -2
  28. package/dist/cjs/six-file-list-item.cjs.entry.js +3 -3
  29. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  30. package/dist/cjs/six-file-list.cjs.entry.js +2 -2
  31. package/dist/cjs/six-file-upload.cjs.entry.js +6 -9
  32. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-footer.cjs.entry.js +2 -2
  34. package/dist/cjs/six-group-label.cjs.entry.js +3 -3
  35. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +45 -0
  36. package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -0
  37. package/dist/cjs/six-header-item_2.cjs.entry.js +47 -0
  38. package/dist/cjs/six-header-item_2.cjs.entry.js.map +1 -0
  39. package/dist/cjs/six-header-menu-button.cjs.entry.js +23 -0
  40. package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -0
  41. package/dist/cjs/six-header.cjs.entry.js +40 -31
  42. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-icon-button.cjs.entry.js +11 -5
  44. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-icon.cjs.entry.js +3 -3
  46. package/dist/cjs/six-input.cjs.entry.js +5 -5
  47. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  48. package/dist/cjs/six-item-picker.cjs.entry.js +4 -4
  49. package/dist/cjs/six-language-switcher.cjs.entry.js +2 -2
  50. package/dist/cjs/six-layout-grid.cjs.entry.js +2 -2
  51. package/dist/cjs/six-main-container.cjs.entry.js +2 -2
  52. package/dist/cjs/six-menu-divider.cjs.entry.js +2 -2
  53. package/dist/cjs/six-menu-label.cjs.entry.js +2 -2
  54. package/dist/cjs/six-picto.cjs.entry.js +2 -2
  55. package/dist/cjs/six-progress-bar.cjs.entry.js +4 -4
  56. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-progress-ring.cjs.entry.js +2 -2
  58. package/dist/cjs/six-radio.cjs.entry.js +3 -3
  59. package/dist/cjs/six-range.cjs.entry.js +4 -4
  60. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-root.cjs.entry.js +2 -2
  62. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-search-field.cjs.entry.js +2 -2
  64. package/dist/cjs/six-select.cjs.entry.js +8 -8
  65. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  66. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +3 -3
  67. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  68. package/dist/cjs/six-sidebar-item.cjs.entry.js +4 -4
  69. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  70. package/dist/cjs/six-sidebar.cjs.entry.js +3 -3
  71. package/dist/cjs/six-spinner.cjs.entry.js +1 -1
  72. package/dist/cjs/six-stage-indicator.cjs.entry.js +1 -1
  73. package/dist/cjs/six-switch.cjs.entry.js +4 -4
  74. package/dist/cjs/six-tab-group.cjs.entry.js +3 -3
  75. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  76. package/dist/cjs/six-tab-panel.cjs.entry.js +2 -2
  77. package/dist/cjs/six-tab.cjs.entry.js +3 -3
  78. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-tag.cjs.entry.js +3 -3
  80. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-textarea.cjs.entry.js +4 -4
  82. package/dist/cjs/six-tile.cjs.entry.js +6 -6
  83. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  84. package/dist/cjs/six-timepicker.cjs.entry.js +3 -3
  85. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  86. package/dist/cjs/six-tooltip.cjs.entry.js +3 -3
  87. package/dist/cjs/ui-library.cjs.js +10 -10
  88. package/dist/cjs/ui-library.cjs.js.map +1 -1
  89. package/dist/collection/collection-manifest.json +6 -2
  90. package/dist/collection/components/six-alert/six-alert.js +1 -1
  91. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  92. package/dist/collection/components/six-avatar/six-avatar.js +2 -2
  93. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  94. package/dist/collection/components/six-badge/six-badge.js +2 -2
  95. package/dist/collection/components/six-button/six-button.css +0 -4
  96. package/dist/collection/components/six-button/six-button.js +2 -2
  97. package/dist/collection/components/six-button/six-button.js.map +1 -1
  98. package/dist/collection/components/six-card/six-card.js +1 -1
  99. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  100. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  101. package/dist/collection/components/six-datepicker/six-datepicker.js +3 -3
  102. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  103. package/dist/collection/components/six-details/six-details.js +3 -3
  104. package/dist/collection/components/six-details/six-details.js.map +1 -1
  105. package/dist/collection/components/six-dialog/six-dialog.js +2 -2
  106. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  107. package/dist/collection/components/six-drawer/six-drawer.js +2 -2
  108. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  109. package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
  110. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  111. package/dist/collection/components/six-error/six-error.js +1 -1
  112. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  113. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  114. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  115. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  116. package/dist/collection/components/six-file-upload/six-file-upload.js +5 -8
  117. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  118. package/dist/collection/components/six-footer/six-footer.js +1 -1
  119. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  120. package/dist/collection/components/six-header/six-header.css +5 -29
  121. package/dist/collection/components/six-header/six-header.js +115 -47
  122. package/dist/collection/components/six-header/six-header.js.map +1 -1
  123. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +15 -0
  124. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +53 -0
  125. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -0
  126. package/dist/collection/components/six-header-item/six-header-item.css +15 -0
  127. package/dist/collection/components/six-header-item/six-header-item.js +51 -0
  128. package/dist/collection/components/six-header-item/six-header-item.js.map +1 -0
  129. package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +27 -0
  130. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +48 -0
  131. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -0
  132. package/dist/collection/components/six-icon/six-icon.js +2 -2
  133. package/dist/collection/components/six-icon-button/six-icon-button.css +2 -1
  134. package/dist/collection/components/six-icon-button/six-icon-button.js +60 -3
  135. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  136. package/dist/collection/components/six-input/six-input.js +4 -4
  137. package/dist/collection/components/six-input/six-input.js.map +1 -1
  138. package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
  139. package/dist/collection/components/six-language-switcher/six-language-switcher.js +1 -1
  140. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  141. package/dist/collection/components/six-logo/six-logo.css +18 -0
  142. package/dist/collection/components/six-logo/six-logo.js +54 -0
  143. package/dist/collection/components/six-logo/six-logo.js.map +1 -0
  144. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  145. package/dist/collection/components/six-menu/six-menu.js +2 -2
  146. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  147. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  148. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  149. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  150. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  151. package/dist/collection/components/six-picto/six-picto.js +1 -1
  152. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  153. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  154. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  155. package/dist/collection/components/six-radio/six-radio.js +2 -2
  156. package/dist/collection/components/six-range/six-range.js +2 -2
  157. package/dist/collection/components/six-range/six-range.js.map +1 -1
  158. package/dist/collection/components/six-root/six-root.js +1 -1
  159. package/dist/collection/components/six-root/six-root.js.map +1 -1
  160. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  161. package/dist/collection/components/six-select/six-select.js +6 -6
  162. package/dist/collection/components/six-select/six-select.js.map +1 -1
  163. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  164. package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +7 -0
  165. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  166. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +7 -0
  167. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +1 -1
  168. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  169. package/dist/collection/components/six-switch/six-switch.js +2 -2
  170. package/dist/collection/components/six-tab/six-tab.js +2 -2
  171. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  172. package/dist/collection/components/six-tab-group/six-tab-group.js +2 -2
  173. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  174. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  175. package/dist/collection/components/six-tag/six-tag.js +2 -2
  176. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  177. package/dist/collection/components/six-textarea/six-textarea.js +4 -4
  178. package/dist/collection/components/six-tile/six-tile.js +5 -5
  179. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  180. package/dist/collection/components/six-timepicker/six-timepicker.js +2 -2
  181. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  182. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  183. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
  184. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  185. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
  186. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  187. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
  188. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  189. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
  190. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  191. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
  192. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  193. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
  194. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  195. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
  196. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  197. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
  198. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  199. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
  200. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  201. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
  202. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  203. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
  204. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  205. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
  206. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  207. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
  208. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  209. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
  210. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  211. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
  212. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  213. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
  214. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  215. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
  216. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  217. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
  218. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  219. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  220. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  221. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  222. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  223. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  224. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  225. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  226. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  227. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  228. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  229. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  230. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  231. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  232. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  233. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  234. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  235. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  236. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  237. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  238. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  239. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  240. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  241. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  242. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  243. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  244. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  245. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  246. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  247. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  248. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  249. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  250. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  251. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  252. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  253. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  254. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  255. package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
  256. package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  257. package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
  258. package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  259. package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
  260. package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  261. package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
  262. package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  263. package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
  264. package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  265. package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
  266. package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  267. package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
  268. package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  269. package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
  270. package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  271. package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
  272. package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  273. package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
  274. package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  275. package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
  276. package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  277. package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
  278. package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  279. package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
  280. package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  281. package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
  282. package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  283. package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
  284. package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  285. package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
  286. package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  287. package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
  288. package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  289. package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
  290. package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  291. package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
  292. package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
  293. package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
  294. package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
  295. package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
  296. package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
  297. package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
  298. package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
  299. package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
  300. package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
  301. package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
  302. package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
  303. package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
  304. package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
  305. package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
  306. package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
  307. package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
  308. package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
  309. package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
  310. package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
  311. package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
  312. package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
  313. package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
  314. package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
  315. package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
  316. package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
  317. package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
  318. package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
  319. package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
  320. package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
  321. package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
  322. package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
  323. package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
  324. package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
  325. package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
  326. package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
  327. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
  328. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  329. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
  330. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  331. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
  332. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  333. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
  334. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  335. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
  336. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  337. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
  338. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  339. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
  340. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  341. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
  342. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  343. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
  344. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  345. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
  346. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  347. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
  348. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  349. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
  350. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  351. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
  352. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  353. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
  354. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  355. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
  356. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  357. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
  358. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  359. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
  360. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  361. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
  362. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  363. package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
  364. package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
  365. package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
  366. package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
  367. package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
  368. package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
  369. package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
  370. package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
  371. package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
  372. package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
  373. package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
  374. package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
  375. package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
  376. package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
  377. package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
  378. package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
  379. package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
  380. package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
  381. package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
  382. package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
  383. package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
  384. package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
  385. package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
  386. package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
  387. package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
  388. package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
  389. package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
  390. package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
  391. package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
  392. package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
  393. package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
  394. package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
  395. package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
  396. package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
  397. package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
  398. package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
  399. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
  400. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  401. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
  402. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  403. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
  404. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  405. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
  406. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  407. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
  408. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  409. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
  410. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  411. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
  412. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  413. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
  414. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  415. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
  416. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  417. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
  418. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  419. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
  420. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  421. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
  422. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  423. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
  424. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  425. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
  426. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  427. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
  428. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  429. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
  430. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  431. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
  432. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  433. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
  434. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  435. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
  436. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  437. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
  438. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  439. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
  440. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  441. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
  442. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  443. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
  444. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  445. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
  446. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  447. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
  448. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  449. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
  450. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  451. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
  452. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  453. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
  454. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  455. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
  456. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  457. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
  458. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  459. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
  460. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  461. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
  462. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  463. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
  464. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  465. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
  466. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  467. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
  468. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  469. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
  470. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  471. package/dist/components/index.js +8 -0
  472. package/dist/components/index.js.map +1 -1
  473. package/dist/components/six-alert.js +1 -1
  474. package/dist/components/six-alert.js.map +1 -1
  475. package/dist/components/six-avatar.js +2 -2
  476. package/dist/components/six-avatar.js.map +1 -1
  477. package/dist/components/six-badge.js +2 -2
  478. package/dist/components/six-button2.js +3 -3
  479. package/dist/components/six-button2.js.map +1 -1
  480. package/dist/components/six-card.js +1 -1
  481. package/dist/components/six-checkbox2.js +2 -2
  482. package/dist/components/six-checkbox2.js.map +1 -1
  483. package/dist/components/six-datepicker.js +3 -3
  484. package/dist/components/six-datepicker.js.map +1 -1
  485. package/dist/components/six-details2.js +3 -3
  486. package/dist/components/six-details2.js.map +1 -1
  487. package/dist/components/six-dialog.js +2 -2
  488. package/dist/components/six-dialog.js.map +1 -1
  489. package/dist/components/six-drawer.js +2 -2
  490. package/dist/components/six-drawer.js.map +1 -1
  491. package/dist/components/six-dropdown2.js +5 -5
  492. package/dist/components/six-dropdown2.js.map +1 -1
  493. package/dist/components/six-error-page.js +1 -1
  494. package/dist/components/six-error2.js +1 -1
  495. package/dist/components/six-file-list-item.js +2 -2
  496. package/dist/components/six-file-list-item.js.map +1 -1
  497. package/dist/components/six-file-list.js +1 -1
  498. package/dist/components/six-file-upload.js +5 -8
  499. package/dist/components/six-file-upload.js.map +1 -1
  500. package/dist/components/six-footer.js +1 -1
  501. package/dist/components/six-group-label.js +1 -1
  502. package/dist/components/six-header-dropdown-item.d.ts +11 -0
  503. package/dist/components/six-header-dropdown-item.js +103 -0
  504. package/dist/components/six-header-dropdown-item.js.map +1 -0
  505. package/dist/components/six-header-item.d.ts +11 -0
  506. package/dist/components/six-header-item.js +8 -0
  507. package/dist/components/six-header-item.js.map +1 -0
  508. package/dist/components/six-header-item2.js +39 -0
  509. package/dist/components/six-header-item2.js.map +1 -0
  510. package/dist/components/six-header-menu-button.d.ts +11 -0
  511. package/dist/components/six-header-menu-button.js +57 -0
  512. package/dist/components/six-header-menu-button.js.map +1 -0
  513. package/dist/components/six-header.js +64 -42
  514. package/dist/components/six-header.js.map +1 -1
  515. package/dist/components/six-icon-button2.js +14 -5
  516. package/dist/components/six-icon-button2.js.map +1 -1
  517. package/dist/components/six-icon2.js +2 -2
  518. package/dist/components/six-input2.js +3 -3
  519. package/dist/components/six-input2.js.map +1 -1
  520. package/dist/components/six-item-picker2.js +3 -3
  521. package/dist/components/six-language-switcher.js +1 -1
  522. package/dist/components/six-layout-grid.js +1 -1
  523. package/dist/components/six-logo.d.ts +11 -0
  524. package/dist/components/six-logo.js +8 -0
  525. package/dist/components/six-logo.js.map +1 -0
  526. package/dist/components/six-logo2.js +42 -0
  527. package/dist/components/six-logo2.js.map +1 -0
  528. package/dist/components/six-main-container.js +1 -1
  529. package/dist/components/six-menu-divider.js +1 -1
  530. package/dist/components/six-menu-item2.js +2 -2
  531. package/dist/components/six-menu-item2.js.map +1 -1
  532. package/dist/components/six-menu-label.js +1 -1
  533. package/dist/components/six-menu2.js +2 -2
  534. package/dist/components/six-menu2.js.map +1 -1
  535. package/dist/components/six-picto2.js +1 -1
  536. package/dist/components/six-progress-bar.js +3 -3
  537. package/dist/components/six-progress-bar.js.map +1 -1
  538. package/dist/components/six-progress-ring.js +1 -1
  539. package/dist/components/six-radio.js +2 -2
  540. package/dist/components/six-range.js +2 -2
  541. package/dist/components/six-range.js.map +1 -1
  542. package/dist/components/six-root.js +1 -1
  543. package/dist/components/six-root.js.map +1 -1
  544. package/dist/components/six-search-field.js +1 -1
  545. package/dist/components/six-select.js +6 -6
  546. package/dist/components/six-select.js.map +1 -1
  547. package/dist/components/six-sidebar-item-group.js +2 -2
  548. package/dist/components/six-sidebar-item-group.js.map +1 -1
  549. package/dist/components/six-sidebar-item.js +3 -3
  550. package/dist/components/six-sidebar-item.js.map +1 -1
  551. package/dist/components/six-sidebar.js +2 -2
  552. package/dist/components/six-switch.js +2 -2
  553. package/dist/components/six-tab-group.js +2 -2
  554. package/dist/components/six-tab-group.js.map +1 -1
  555. package/dist/components/six-tab-panel.js +1 -1
  556. package/dist/components/six-tab.js +2 -2
  557. package/dist/components/six-tab.js.map +1 -1
  558. package/dist/components/six-tag.js +2 -2
  559. package/dist/components/six-tag.js.map +1 -1
  560. package/dist/components/six-textarea.js +2 -2
  561. package/dist/components/six-tile.js +5 -5
  562. package/dist/components/six-tile.js.map +1 -1
  563. package/dist/components/six-timepicker2.js +2 -2
  564. package/dist/components/six-timepicker2.js.map +1 -1
  565. package/dist/components/six-tooltip2.js +2 -2
  566. package/dist/components.d.ts +34 -0
  567. package/dist/components.json +477 -32
  568. package/dist/esm/{form-control-30c5bd8b.js → form-control-ad1710bf.js} +2 -2
  569. package/dist/esm/{form-control-30c5bd8b.js.map → form-control-ad1710bf.js.map} +1 -1
  570. package/dist/esm/index-a7bee415.js +1919 -0
  571. package/dist/esm/index-a7bee415.js.map +1 -0
  572. package/dist/esm/loader.js +3 -3
  573. package/dist/esm/six-alert.entry.js +2 -2
  574. package/dist/esm/six-alert.entry.js.map +1 -1
  575. package/dist/esm/six-avatar.entry.js +3 -3
  576. package/dist/esm/six-avatar.entry.js.map +1 -1
  577. package/dist/esm/six-badge.entry.js +3 -3
  578. package/dist/esm/six-button.entry.js +4 -4
  579. package/dist/esm/six-button.entry.js.map +1 -1
  580. package/dist/esm/six-card.entry.js +2 -2
  581. package/dist/esm/{six-checkbox_2.entry.js → six-checkbox.entry.js} +7 -70
  582. package/dist/esm/six-checkbox.entry.js.map +1 -0
  583. package/dist/esm/six-datepicker.entry.js +4 -4
  584. package/dist/esm/six-datepicker.entry.js.map +1 -1
  585. package/dist/esm/six-details.entry.js +4 -4
  586. package/dist/esm/six-details.entry.js.map +1 -1
  587. package/dist/esm/six-dialog.entry.js +3 -3
  588. package/dist/esm/six-dialog.entry.js.map +1 -1
  589. package/dist/esm/six-drawer.entry.js +3 -3
  590. package/dist/esm/six-drawer.entry.js.map +1 -1
  591. package/dist/esm/{six-dropdown_2.entry.js → six-dropdown_3.entry.js} +73 -10
  592. package/dist/esm/six-dropdown_3.entry.js.map +1 -0
  593. package/dist/esm/six-error-page.entry.js +2 -2
  594. package/dist/esm/six-error.entry.js +2 -2
  595. package/dist/esm/six-file-list-item.entry.js +3 -3
  596. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  597. package/dist/esm/six-file-list.entry.js +2 -2
  598. package/dist/esm/six-file-upload.entry.js +6 -9
  599. package/dist/esm/six-file-upload.entry.js.map +1 -1
  600. package/dist/esm/six-footer.entry.js +2 -2
  601. package/dist/esm/six-group-label.entry.js +3 -3
  602. package/dist/esm/six-header-dropdown-item.entry.js +41 -0
  603. package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
  604. package/dist/esm/six-header-item_2.entry.js +42 -0
  605. package/dist/esm/six-header-item_2.entry.js.map +1 -0
  606. package/dist/esm/six-header-menu-button.entry.js +19 -0
  607. package/dist/esm/six-header-menu-button.entry.js.map +1 -0
  608. package/dist/esm/six-header.entry.js +40 -31
  609. package/dist/esm/six-header.entry.js.map +1 -1
  610. package/dist/esm/six-icon-button.entry.js +11 -5
  611. package/dist/esm/six-icon-button.entry.js.map +1 -1
  612. package/dist/esm/six-icon.entry.js +3 -3
  613. package/dist/esm/six-input.entry.js +5 -5
  614. package/dist/esm/six-input.entry.js.map +1 -1
  615. package/dist/esm/six-item-picker.entry.js +4 -4
  616. package/dist/esm/six-language-switcher.entry.js +2 -2
  617. package/dist/esm/six-layout-grid.entry.js +2 -2
  618. package/dist/esm/six-main-container.entry.js +2 -2
  619. package/dist/esm/six-menu-divider.entry.js +2 -2
  620. package/dist/esm/six-menu-label.entry.js +2 -2
  621. package/dist/esm/six-picto.entry.js +2 -2
  622. package/dist/esm/six-progress-bar.entry.js +4 -4
  623. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  624. package/dist/esm/six-progress-ring.entry.js +2 -2
  625. package/dist/esm/six-radio.entry.js +3 -3
  626. package/dist/esm/six-range.entry.js +4 -4
  627. package/dist/esm/six-range.entry.js.map +1 -1
  628. package/dist/esm/six-root.entry.js +2 -2
  629. package/dist/esm/six-root.entry.js.map +1 -1
  630. package/dist/esm/six-search-field.entry.js +2 -2
  631. package/dist/esm/six-select.entry.js +8 -8
  632. package/dist/esm/six-select.entry.js.map +1 -1
  633. package/dist/esm/six-sidebar-item-group.entry.js +3 -3
  634. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  635. package/dist/esm/six-sidebar-item.entry.js +4 -4
  636. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  637. package/dist/esm/six-sidebar.entry.js +3 -3
  638. package/dist/esm/six-spinner.entry.js +1 -1
  639. package/dist/esm/six-stage-indicator.entry.js +1 -1
  640. package/dist/esm/six-switch.entry.js +4 -4
  641. package/dist/esm/six-tab-group.entry.js +3 -3
  642. package/dist/esm/six-tab-group.entry.js.map +1 -1
  643. package/dist/esm/six-tab-panel.entry.js +2 -2
  644. package/dist/esm/six-tab.entry.js +3 -3
  645. package/dist/esm/six-tab.entry.js.map +1 -1
  646. package/dist/esm/six-tag.entry.js +3 -3
  647. package/dist/esm/six-tag.entry.js.map +1 -1
  648. package/dist/esm/six-textarea.entry.js +4 -4
  649. package/dist/esm/six-tile.entry.js +6 -6
  650. package/dist/esm/six-tile.entry.js.map +1 -1
  651. package/dist/esm/six-timepicker.entry.js +3 -3
  652. package/dist/esm/six-timepicker.entry.js.map +1 -1
  653. package/dist/esm/six-tooltip.entry.js +3 -3
  654. package/dist/esm/ui-library.js +11 -11
  655. package/dist/esm/ui-library.js.map +1 -1
  656. package/dist/types/components/six-file-upload/six-file-upload.d.ts +1 -1
  657. package/dist/types/components/six-header/six-header.d.ts +79 -18
  658. package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
  659. package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
  660. package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
  661. package/dist/types/components/six-icon-button/six-icon-button.d.ts +6 -0
  662. package/dist/types/components/six-logo/six-logo.d.ts +9 -0
  663. package/dist/types/components.d.ts +197 -5
  664. package/dist/types/stencil-public-runtime.d.ts +3 -10
  665. package/dist/types/utils/type-check.d.ts +1 -1
  666. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
  667. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  668. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
  669. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  670. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
  671. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  672. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
  673. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  674. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
  675. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  676. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
  677. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  678. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
  679. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  680. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
  681. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  682. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
  683. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  684. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
  685. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  686. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
  687. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  688. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
  689. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  690. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
  691. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  692. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
  693. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  694. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
  695. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  696. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
  697. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  698. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
  699. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  700. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
  701. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  702. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  703. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  704. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  705. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  706. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  707. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  708. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  709. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  710. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  711. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  712. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  713. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  714. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  715. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  716. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  717. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  718. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  719. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  720. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  721. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  722. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  723. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  724. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  725. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  726. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  727. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  728. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  729. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  730. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  731. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  732. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  733. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  734. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  735. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  736. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  737. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  738. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
  739. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  740. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
  741. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  742. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
  743. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  744. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
  745. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  746. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
  747. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  748. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
  749. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  750. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
  751. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  752. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
  753. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  754. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
  755. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  756. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
  757. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  758. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
  759. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  760. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
  761. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  762. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
  763. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  764. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
  765. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  766. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
  767. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  768. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
  769. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  770. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
  771. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  772. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
  773. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  774. package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
  775. package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
  776. package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
  777. package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
  778. package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
  779. package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
  780. package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
  781. package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
  782. package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
  783. package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
  784. package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
  785. package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
  786. package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
  787. package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
  788. package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
  789. package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
  790. package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
  791. package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
  792. package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
  793. package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
  794. package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
  795. package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
  796. package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
  797. package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
  798. package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
  799. package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
  800. package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
  801. package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
  802. package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
  803. package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
  804. package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
  805. package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
  806. package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
  807. package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
  808. package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
  809. package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
  810. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
  811. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  812. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
  813. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  814. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
  815. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  816. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
  817. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  818. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
  819. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  820. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
  821. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  822. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
  823. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  824. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
  825. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  826. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
  827. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  828. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
  829. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  830. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
  831. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  832. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
  833. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  834. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
  835. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  836. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
  837. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  838. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
  839. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  840. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
  841. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  842. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
  843. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  844. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
  845. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  846. package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
  847. package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
  848. package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
  849. package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
  850. package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
  851. package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
  852. package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
  853. package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
  854. package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
  855. package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
  856. package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
  857. package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
  858. package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
  859. package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
  860. package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
  861. package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
  862. package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
  863. package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
  864. package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
  865. package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
  866. package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
  867. package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
  868. package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
  869. package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
  870. package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
  871. package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
  872. package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
  873. package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
  874. package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
  875. package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
  876. package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
  877. package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
  878. package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
  879. package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
  880. package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
  881. package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
  882. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
  883. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  884. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
  885. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  886. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
  887. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  888. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
  889. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  890. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
  891. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  892. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
  893. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  894. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
  895. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  896. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
  897. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  898. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
  899. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  900. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
  901. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  902. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
  903. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  904. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
  905. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  906. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
  907. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  908. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
  909. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  910. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
  911. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  912. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
  913. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  914. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
  915. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  916. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
  917. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  918. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
  919. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  920. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
  921. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  922. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
  923. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  924. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
  925. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  926. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
  927. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  928. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
  929. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  930. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
  931. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  932. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
  933. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  934. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
  935. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  936. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
  937. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  938. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
  939. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  940. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
  941. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  942. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
  943. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  944. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
  945. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  946. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
  947. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  948. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
  949. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  950. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
  951. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  952. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
  953. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  954. package/dist/ui-library/index.esm.js.map +1 -1
  955. package/dist/ui-library/{p-d42f1ea9.entry.js → p-03acec96.entry.js} +2 -2
  956. package/dist/ui-library/{p-d42f1ea9.entry.js.map → p-03acec96.entry.js.map} +1 -1
  957. package/dist/ui-library/p-06ba4450.js.map +1 -1
  958. package/dist/ui-library/{p-b7c68f74.entry.js → p-06d562b7.entry.js} +2 -2
  959. package/dist/ui-library/{p-b7c68f74.entry.js.map → p-06d562b7.entry.js.map} +1 -1
  960. package/dist/ui-library/p-07b6203f.entry.js +2 -0
  961. package/dist/ui-library/{p-7c18b8ca.entry.js.map → p-07b6203f.entry.js.map} +1 -1
  962. package/dist/ui-library/{p-2386627e.entry.js → p-0a6b6429.entry.js} +2 -2
  963. package/dist/ui-library/{p-2386627e.entry.js.map → p-0a6b6429.entry.js.map} +1 -1
  964. package/dist/ui-library/p-0cebf1d2.js.map +1 -1
  965. package/dist/ui-library/p-14d09601.entry.js +2 -0
  966. package/dist/ui-library/{p-11344bb8.entry.js.map → p-14d09601.entry.js.map} +1 -1
  967. package/dist/ui-library/{p-45b0748e.entry.js → p-171df3ad.entry.js} +2 -2
  968. package/dist/ui-library/{p-45b0748e.entry.js.map → p-171df3ad.entry.js.map} +1 -1
  969. package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
  970. package/dist/ui-library/{p-36d5f98a.entry.js.map → p-1cc3b56d.entry.js.map} +1 -1
  971. package/dist/ui-library/{p-7bdd1116.entry.js → p-1cd09d9b.entry.js} +2 -2
  972. package/dist/ui-library/{p-7bdd1116.entry.js.map → p-1cd09d9b.entry.js.map} +1 -1
  973. package/dist/ui-library/{p-416b0439.entry.js → p-1f7a0cb5.entry.js} +2 -2
  974. package/dist/ui-library/{p-416b0439.entry.js.map → p-1f7a0cb5.entry.js.map} +1 -1
  975. package/dist/ui-library/p-2355c444.entry.js +2 -0
  976. package/dist/ui-library/{p-347e568f.entry.js.map → p-2355c444.entry.js.map} +1 -1
  977. package/dist/ui-library/p-281ffc35.entry.js +2 -0
  978. package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
  979. package/dist/ui-library/{p-c62893e5.entry.js → p-2ad904a7.entry.js} +2 -2
  980. package/dist/ui-library/{p-c62893e5.entry.js.map → p-2ad904a7.entry.js.map} +1 -1
  981. package/dist/ui-library/{p-b5acf54d.entry.js → p-30000e86.entry.js} +2 -2
  982. package/dist/ui-library/{p-b5acf54d.entry.js.map → p-30000e86.entry.js.map} +1 -1
  983. package/dist/ui-library/{p-4d89932f.entry.js → p-42cd3588.entry.js} +2 -2
  984. package/dist/ui-library/{p-4d89932f.entry.js.map → p-42cd3588.entry.js.map} +1 -1
  985. package/dist/ui-library/p-48118ce8.js +3 -0
  986. package/dist/ui-library/p-48118ce8.js.map +1 -0
  987. package/dist/ui-library/{p-b335ed9c.entry.js → p-49019d6c.entry.js} +2 -2
  988. package/dist/ui-library/{p-b335ed9c.entry.js.map → p-49019d6c.entry.js.map} +1 -1
  989. package/dist/ui-library/{p-c6464bfe.entry.js → p-4d72b179.entry.js} +2 -2
  990. package/dist/ui-library/{p-c6464bfe.entry.js.map → p-4d72b179.entry.js.map} +1 -1
  991. package/dist/ui-library/{p-d9586999.entry.js → p-4de4ee7a.entry.js} +2 -2
  992. package/dist/ui-library/{p-d9586999.entry.js.map → p-4de4ee7a.entry.js.map} +1 -1
  993. package/dist/ui-library/p-4edde816.entry.js +2 -0
  994. package/dist/ui-library/p-4edde816.entry.js.map +1 -0
  995. package/dist/ui-library/p-4f129bb3.entry.js +2 -0
  996. package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
  997. package/dist/ui-library/{p-3b5a76ea.entry.js → p-53867d77.entry.js} +2 -2
  998. package/dist/ui-library/{p-3b5a76ea.entry.js.map → p-53867d77.entry.js.map} +1 -1
  999. package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
  1000. package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
  1001. package/dist/ui-library/{p-a398e3eb.entry.js → p-5ece7986.entry.js} +2 -2
  1002. package/dist/ui-library/{p-a398e3eb.entry.js.map → p-5ece7986.entry.js.map} +1 -1
  1003. package/dist/ui-library/p-5f491974.entry.js +2 -0
  1004. package/dist/ui-library/p-5f491974.entry.js.map +1 -0
  1005. package/dist/ui-library/{p-b60c20aa.entry.js → p-5fc9cd7b.entry.js} +2 -2
  1006. package/dist/ui-library/{p-b60c20aa.entry.js.map → p-5fc9cd7b.entry.js.map} +1 -1
  1007. package/dist/ui-library/{p-4bc7bbdb.entry.js → p-618bf750.entry.js} +2 -2
  1008. package/dist/ui-library/{p-4bc7bbdb.entry.js.map → p-618bf750.entry.js.map} +1 -1
  1009. package/dist/ui-library/{p-63acceb6.entry.js → p-62a1f514.entry.js} +2 -2
  1010. package/dist/ui-library/{p-63acceb6.entry.js.map → p-62a1f514.entry.js.map} +1 -1
  1011. package/dist/ui-library/p-651293e7.js.map +1 -1
  1012. package/dist/ui-library/p-6513b8ce.entry.js +2 -0
  1013. package/dist/ui-library/{p-189602e4.entry.js.map → p-6513b8ce.entry.js.map} +1 -1
  1014. package/dist/ui-library/{p-47c84904.entry.js → p-6795e0a9.entry.js} +2 -2
  1015. package/dist/ui-library/{p-47c84904.entry.js.map → p-6795e0a9.entry.js.map} +1 -1
  1016. package/dist/ui-library/p-6ec126f7.entry.js +2 -0
  1017. package/dist/ui-library/{p-9cb83369.entry.js.map → p-6ec126f7.entry.js.map} +1 -1
  1018. package/dist/ui-library/p-705e3612.entry.js +2 -0
  1019. package/dist/ui-library/p-705e3612.entry.js.map +1 -0
  1020. package/dist/ui-library/{p-06ba653e.entry.js → p-70fac778.entry.js} +2 -2
  1021. package/dist/ui-library/{p-06ba653e.entry.js.map → p-70fac778.entry.js.map} +1 -1
  1022. package/dist/ui-library/{p-037afc74.entry.js → p-7afdff5c.entry.js} +2 -2
  1023. package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
  1024. package/dist/ui-library/{p-4963f03c.entry.js → p-7eb9ae75.entry.js} +2 -2
  1025. package/dist/ui-library/{p-4963f03c.entry.js.map → p-7eb9ae75.entry.js.map} +1 -1
  1026. package/dist/ui-library/p-7f856f00.js.map +1 -1
  1027. package/dist/ui-library/p-8227aaed.js.map +1 -1
  1028. package/dist/ui-library/p-842b492e.js.map +1 -1
  1029. package/dist/ui-library/p-862d474e.js.map +1 -1
  1030. package/dist/ui-library/{p-6f9153be.entry.js → p-870139dc.entry.js} +2 -2
  1031. package/dist/ui-library/{p-6f9153be.entry.js.map → p-870139dc.entry.js.map} +1 -1
  1032. package/dist/ui-library/p-8bfb4bfc.js.map +1 -1
  1033. package/dist/ui-library/{p-605bdd81.js → p-a04460e3.js} +2 -2
  1034. package/dist/ui-library/{p-605bdd81.js.map → p-a04460e3.js.map} +1 -1
  1035. package/dist/ui-library/p-a1502802.js.map +1 -1
  1036. package/dist/ui-library/{p-07c8de65.entry.js → p-a20a702a.entry.js} +2 -2
  1037. package/dist/ui-library/{p-07c8de65.entry.js.map → p-a20a702a.entry.js.map} +1 -1
  1038. package/dist/ui-library/p-adc65fc8.entry.js +2 -0
  1039. package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
  1040. package/dist/ui-library/{p-0c129b61.entry.js → p-afb15ea4.entry.js} +2 -2
  1041. package/dist/ui-library/{p-0c129b61.entry.js.map → p-afb15ea4.entry.js.map} +1 -1
  1042. package/dist/ui-library/p-b361d5da.entry.js +2 -0
  1043. package/dist/ui-library/{p-32e421a3.entry.js.map → p-b361d5da.entry.js.map} +1 -1
  1044. package/dist/ui-library/{p-99f6fe01.entry.js → p-bfb398c6.entry.js} +2 -2
  1045. package/dist/ui-library/{p-99f6fe01.entry.js.map → p-bfb398c6.entry.js.map} +1 -1
  1046. package/dist/ui-library/{p-d88b9c16.entry.js → p-cd65e3b2.entry.js} +2 -2
  1047. package/dist/ui-library/{p-d88b9c16.entry.js.map → p-cd65e3b2.entry.js.map} +1 -1
  1048. package/dist/ui-library/{p-a9e009af.entry.js → p-cd79700c.entry.js} +2 -2
  1049. package/dist/ui-library/{p-a9e009af.entry.js.map → p-cd79700c.entry.js.map} +1 -1
  1050. package/dist/ui-library/{p-419ed003.entry.js → p-cdc9224d.entry.js} +2 -2
  1051. package/dist/ui-library/{p-419ed003.entry.js.map → p-cdc9224d.entry.js.map} +1 -1
  1052. package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
  1053. package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
  1054. package/dist/ui-library/{p-8f1d3461.entry.js → p-d46acf21.entry.js} +2 -2
  1055. package/dist/ui-library/{p-8f1d3461.entry.js.map → p-d46acf21.entry.js.map} +1 -1
  1056. package/dist/ui-library/p-d67b8482.entry.js +2 -0
  1057. package/dist/ui-library/{p-030fa1fa.entry.js.map → p-d67b8482.entry.js.map} +1 -1
  1058. package/dist/ui-library/{p-1adc26f2.entry.js → p-db193a32.entry.js} +2 -2
  1059. package/dist/ui-library/{p-1adc26f2.entry.js.map → p-db193a32.entry.js.map} +1 -1
  1060. package/dist/ui-library/p-e080d5b6.js.map +1 -1
  1061. package/dist/ui-library/p-e1255160.js.map +1 -1
  1062. package/dist/ui-library/{p-fe89a7c4.entry.js → p-e1529ef6.entry.js} +2 -2
  1063. package/dist/ui-library/{p-fe89a7c4.entry.js.map → p-e1529ef6.entry.js.map} +1 -1
  1064. package/dist/ui-library/{p-e9b8ad98.entry.js → p-e181944f.entry.js} +2 -2
  1065. package/dist/ui-library/{p-e9b8ad98.entry.js.map → p-e181944f.entry.js.map} +1 -1
  1066. package/dist/ui-library/{p-d1a2f84b.entry.js → p-e6efc08a.entry.js} +2 -2
  1067. package/dist/ui-library/{p-d1a2f84b.entry.js.map → p-e6efc08a.entry.js.map} +1 -1
  1068. package/dist/ui-library/p-ea854ec5.entry.js +2 -0
  1069. package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
  1070. package/dist/ui-library/{p-63ee5e7e.entry.js → p-f12b22bc.entry.js} +2 -2
  1071. package/dist/ui-library/{p-63ee5e7e.entry.js.map → p-f12b22bc.entry.js.map} +1 -1
  1072. package/dist/ui-library/p-f136a6b2.js.map +1 -1
  1073. package/dist/ui-library/p-f9a1f6ab.entry.js +2 -0
  1074. package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
  1075. package/dist/ui-library/{p-cf109cbf.entry.js → p-ffce31da.entry.js} +2 -2
  1076. package/dist/ui-library/{p-cf109cbf.entry.js.map → p-ffce31da.entry.js.map} +1 -1
  1077. package/dist/ui-library/ui-library.css +1 -1
  1078. package/dist/ui-library/ui-library.esm.js +1 -1
  1079. package/dist/ui-library/ui-library.esm.js.map +1 -1
  1080. package/loader/cdn.js +1 -3
  1081. package/loader/index.cjs.js +1 -3
  1082. package/loader/index.d.ts +3 -0
  1083. package/loader/index.es2017.js +1 -3
  1084. package/loader/index.js +1 -3
  1085. package/package.json +6 -18
  1086. package/dist/cjs/index-1f707a55.js +0 -2718
  1087. package/dist/cjs/index-1f707a55.js.map +0 -1
  1088. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +0 -1
  1089. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
  1090. package/dist/collection/components/six-alert/test/six-alert.spec.js +0 -25
  1091. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +0 -1
  1092. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +0 -26
  1093. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +0 -1
  1094. package/dist/collection/components/six-badge/test/six-badge.spec.js +0 -20
  1095. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +0 -1
  1096. package/dist/collection/components/six-button/test/six-button.spec.js +0 -69
  1097. package/dist/collection/components/six-button/test/six-button.spec.js.map +0 -1
  1098. package/dist/collection/components/six-card/test/six-card.spec.js +0 -18
  1099. package/dist/collection/components/six-card/test/six-card.spec.js.map +0 -1
  1100. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +0 -83
  1101. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +0 -1
  1102. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +0 -26
  1103. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +0 -1
  1104. package/dist/collection/components/six-details/test/six-details.spec.js +0 -36
  1105. package/dist/collection/components/six-details/test/six-details.spec.js.map +0 -1
  1106. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +0 -34
  1107. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +0 -1
  1108. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +0 -34
  1109. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +0 -1
  1110. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +0 -147
  1111. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +0 -1
  1112. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +0 -240
  1113. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +0 -1
  1114. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +0 -67
  1115. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +0 -1
  1116. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +0 -169
  1117. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +0 -1
  1118. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +0 -266
  1119. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +0 -1
  1120. package/dist/collection/components/six-footer/test/six-footer.spec.js +0 -21
  1121. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +0 -1
  1122. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +0 -45
  1123. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +0 -1
  1124. package/dist/collection/components/six-icon/test/six-icon.spec.js +0 -20
  1125. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +0 -1
  1126. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +0 -23
  1127. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +0 -1
  1128. package/dist/collection/components/six-input/test/six-input.spec.js +0 -39
  1129. package/dist/collection/components/six-input/test/six-input.spec.js.map +0 -1
  1130. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +0 -90
  1131. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +0 -1
  1132. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +0 -196
  1133. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +0 -1
  1134. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +0 -18
  1135. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +0 -1
  1136. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +0 -22
  1137. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +0 -1
  1138. package/dist/collection/components/six-menu/test/six-menu.spec.js +0 -93
  1139. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +0 -1
  1140. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +0 -18
  1141. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +0 -1
  1142. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +0 -33
  1143. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +0 -1
  1144. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +0 -20
  1145. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +0 -1
  1146. package/dist/collection/components/six-picto/test/six-picto.spec.js +0 -33
  1147. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +0 -1
  1148. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +0 -24
  1149. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +0 -1
  1150. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +0 -26
  1151. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +0 -1
  1152. package/dist/collection/components/six-radio/test/six-radio.spec.js +0 -63
  1153. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +0 -1
  1154. package/dist/collection/components/six-range/test/six-range.spec.js +0 -34
  1155. package/dist/collection/components/six-range/test/six-range.spec.js.map +0 -1
  1156. package/dist/collection/components/six-root/test/six-root.spec.js +0 -36
  1157. package/dist/collection/components/six-root/test/six-root.spec.js.map +0 -1
  1158. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +0 -22
  1159. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +0 -1
  1160. package/dist/collection/components/six-select/test/six-select.spec.js +0 -102
  1161. package/dist/collection/components/six-select/test/six-select.spec.js.map +0 -1
  1162. package/dist/collection/components/six-select/test/util.spec.js +0 -103
  1163. package/dist/collection/components/six-select/test/util.spec.js.map +0 -1
  1164. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +0 -22
  1165. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +0 -1
  1166. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +0 -50
  1167. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +0 -1
  1168. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +0 -53
  1169. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +0 -1
  1170. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +0 -37
  1171. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +0 -1
  1172. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +0 -117
  1173. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +0 -1
  1174. package/dist/collection/components/six-switch/test/six-switch.spec.js +0 -73
  1175. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +0 -1
  1176. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +0 -20
  1177. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +0 -1
  1178. package/dist/collection/components/six-tag/test/six-tag.spec.js +0 -54
  1179. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +0 -1
  1180. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +0 -119
  1181. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +0 -1
  1182. package/dist/collection/components/six-tile/test/six-tile.spec.js +0 -69
  1183. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +0 -1
  1184. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +0 -496
  1185. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +0 -1
  1186. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +0 -28
  1187. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +0 -1
  1188. package/dist/collection/files/file-list.json +0 -308
  1189. package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
  1190. package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
  1191. package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
  1192. package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
  1193. package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
  1194. package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
  1195. package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
  1196. package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
  1197. package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
  1198. package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
  1199. package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
  1200. package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
  1201. package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
  1202. package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
  1203. package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
  1204. package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
  1205. package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
  1206. package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
  1207. package/dist/collection/utils/date-util.spec.js +0 -995
  1208. package/dist/collection/utils/date-util.spec.js.map +0 -1
  1209. package/dist/collection/utils/scroll.spec.js +0 -122
  1210. package/dist/collection/utils/scroll.spec.js.map +0 -1
  1211. package/dist/collection/utils/time.util.spec.js +0 -368
  1212. package/dist/collection/utils/time.util.spec.js.map +0 -1
  1213. package/dist/esm/index-5390c1d6.js +0 -2689
  1214. package/dist/esm/index-5390c1d6.js.map +0 -1
  1215. package/dist/esm/polyfills/core-js.js +0 -11
  1216. package/dist/esm/polyfills/dom.js +0 -79
  1217. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1218. package/dist/esm/polyfills/index.js +0 -34
  1219. package/dist/esm/polyfills/system.js +0 -6
  1220. package/dist/esm/six-checkbox_2.entry.js.map +0 -1
  1221. package/dist/esm/six-dropdown_2.entry.js.map +0 -1
  1222. package/dist/ui-library/files/file-list.json +0 -308
  1223. package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
  1224. package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
  1225. package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
  1226. package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
  1227. package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
  1228. package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
  1229. package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
  1230. package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
  1231. package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
  1232. package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
  1233. package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
  1234. package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
  1235. package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
  1236. package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
  1237. package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
  1238. package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
  1239. package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
  1240. package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
  1241. package/dist/ui-library/p-030fa1fa.entry.js +0 -2
  1242. package/dist/ui-library/p-037afc74.entry.js.map +0 -1
  1243. package/dist/ui-library/p-047d02ad.entry.js +0 -2
  1244. package/dist/ui-library/p-047d02ad.entry.js.map +0 -1
  1245. package/dist/ui-library/p-05eb1bab.js +0 -3
  1246. package/dist/ui-library/p-05eb1bab.js.map +0 -1
  1247. package/dist/ui-library/p-11344bb8.entry.js +0 -2
  1248. package/dist/ui-library/p-14e5fccc.entry.js +0 -2
  1249. package/dist/ui-library/p-14e5fccc.entry.js.map +0 -1
  1250. package/dist/ui-library/p-189602e4.entry.js +0 -2
  1251. package/dist/ui-library/p-32e421a3.entry.js +0 -2
  1252. package/dist/ui-library/p-347e568f.entry.js +0 -2
  1253. package/dist/ui-library/p-36d5f98a.entry.js +0 -2
  1254. package/dist/ui-library/p-37433242.entry.js +0 -2
  1255. package/dist/ui-library/p-37433242.entry.js.map +0 -1
  1256. package/dist/ui-library/p-6b40c40c.entry.js +0 -2
  1257. package/dist/ui-library/p-6b40c40c.entry.js.map +0 -1
  1258. package/dist/ui-library/p-7c18b8ca.entry.js +0 -2
  1259. package/dist/ui-library/p-96d441e9.entry.js +0 -2
  1260. package/dist/ui-library/p-96d441e9.entry.js.map +0 -1
  1261. package/dist/ui-library/p-9cb83369.entry.js +0 -2
  1262. package/dist/ui-library/p-e14d78e9.entry.js +0 -2
  1263. package/dist/ui-library/p-e14d78e9.entry.js.map +0 -1
  1264. package/dist/ui-library/p-ebbe9bdc.entry.js +0 -2
  1265. package/dist/ui-library/p-ebbe9bdc.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"six-sidebar-item-group.js","sourceRoot":"","sources":["../../../src/components/six-sidebar-item-group/six-sidebar-item-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;;;;GAKG;AAOH,MAAM,OAAO,mBAAmB;;QAgDtB,gBAAW,GAAG,CAAC,IAAY,EAAE,EAAE;YACrC,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;gBAC/B,OAAO,CACL,WAAK,IAAI,EAAE,IAAI;oBACb,YAAM,IAAI,EAAE,IAAI,GAAS,CACrB,CACP,CAAC;YACJ,CAAC;YAED,OAAO,CACL,YACE,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,GAAG,EAAE;;oBACjB,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,aAAa,CAAkB,cAAc,IAAI,IAAI,CAAC,CAAC;oBAC1F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;wBACjB,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;oBAC/D,CAAC;gBACH,CAAC,GACK,CACT,CAAC;QACJ,CAAC,CAAC;wBAjEkB,KAAK;oBAGV,EAAE;oBAGF,EAAE;qBAGgB,EAAE;oBAGH,KAAK;;qCAKJ,KAAK;;;IAQtC,iBAAiB;QACf,IAAI,CAAC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YACN,OAAO,OAAO,CAAC;QACjB,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Prop, State } from '@stencil/core';\nimport { hasSlot } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the nested sidebar [group] items.\n */\n\n@Component({\n tag: 'six-sidebar-item-group',\n styleUrl: 'six-sidebar-item-group.scss',\n shadow: true,\n})\nexport class SixSidebarItemGroup {\n @Element() readonly host!: HTMLSixSidebarItemGroupElement;\n\n @State() hasItems = false;\n\n /** Title of item group */\n @Prop() name = '';\n\n /** Icon of the group */\n @Prop() icon = '';\n\n /** A unique value to store in the sidebar item of the group label. This can be used as a way to identify sidebar items when selected. */\n @Prop({ reflect: true }) value = '';\n\n /** Indicates whether the sidebar is shown */\n @Prop({ reflect: true }) open = false;\n\n /** Custom summary icon name. */\n @Prop() summaryIcon?: string;\n\n @State() summaryIconHasContent = false;\n\n /**\n * Provide if the item should be rendered as anchor tag.\n * Note, that the href is added automatically when using routerLink in Angular.\n */\n @Prop({ reflect: true }) href: string | undefined;\n\n connectedCallback() {\n this.handleSlotChange = this.handleSlotChange.bind(this);\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n private handleSlotChange() {\n this.hasItems = hasSlot(this.host);\n }\n\n private isSubgroup() {\n return this.host.parentElement?.closest('six-sidebar-item-group') != null;\n }\n\n private renderAsHref(): boolean {\n return this.href != null && !this.hasItems;\n }\n\n private provideSlot = (name: string) => {\n if (this.summaryIconHasContent) {\n return (\n <div slot={name}>\n <slot name={name}></slot>\n </div>\n );\n }\n\n return (\n <slot\n name={name}\n onSlotchange={() => {\n const slot = this.host.shadowRoot?.querySelector<HTMLSlotElement>(`slot[name=\"${name}\"]`);\n if (slot != null) {\n this.summaryIconHasContent = slot.assignedNodes().length > 0;\n }\n }}\n ></slot>\n );\n };\n\n render() {\n const element = (\n <six-details\n class={{\n 'six-sidebar-item-group': true,\n 'six-sidebar-item-group--childless': !this.hasItems,\n 'six-sidebar-item-group--subgroup': this.isSubgroup(),\n }}\n inline={true}\n open={this.open}\n summary-icon={this.summaryIcon}\n hasContent={this.hasItems}\n >\n <div slot=\"summary\">\n <div class=\"six-sidebar-details__header\">\n {this.icon && <six-icon class=\"six-sidebar-details__header-icon\">{this.icon}</six-icon>}\n {this.name}\n </div>\n </div>\n {this.provideSlot('summary-icon')}\n <slot />\n </six-details>\n );\n\n if (this.renderAsHref()) {\n return (\n <a class=\"six-sidebar-details__link\" href={this.href}>\n {element}\n </a>\n );\n } else {\n return element;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"six-sidebar-item-group.js","sourceRoot":"","sources":["../../../src/components/six-sidebar-item-group/six-sidebar-item-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C;;;;;GAKG;AAOH,MAAM,OAAO,mBAAmB;;QAgDtB,gBAAW,GAAG,CAAC,IAAY,EAAE,EAAE;YACrC,IAAI,IAAI,CAAC,qBAAqB,EAAE,CAAC;gBAC/B,OAAO,CACL,WAAK,IAAI,EAAE,IAAI;oBACb,YAAM,IAAI,EAAE,IAAI,GAAS,CACrB,CACP,CAAC;YACJ,CAAC;YAED,OAAO,CACL,YACE,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,GAAG,EAAE;;oBACjB,MAAM,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,aAAa,CAAkB,cAAc,IAAI,IAAI,CAAC,CAAC;oBAC1F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;wBACjB,IAAI,CAAC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AAI,gBAAU,KAAK,EAAC,kCAAkC,IAAE,IAAI,CAAC,IAAI,CAAY;oBACtF,IAAI,CAAC,IAAI,CACN,CACF;YACL,IAAI,CAAC,WAAW,CAAC,cAAc,CAAC;YACjC,eAAQ,CACI,CACf,CAAC;QAEF,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC;YACxB,OAAO,CACL,SAAG,KAAK,EAAC,2BAA2B,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,IACjD,OAAO,CACN,CACL,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,OAAO,CAAC;QACjB,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, h, Prop, State } from '@stencil/core';\nimport { hasSlot } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the nested sidebar [group] items.\n */\n\n@Component({\n tag: 'six-sidebar-item-group',\n styleUrl: 'six-sidebar-item-group.scss',\n shadow: true,\n})\nexport class SixSidebarItemGroup {\n @Element() readonly host!: HTMLSixSidebarItemGroupElement;\n\n @State() hasItems = false;\n\n /** Title of item group */\n @Prop() name = '';\n\n /** Icon of the group */\n @Prop() icon = '';\n\n /** A unique value to store in the sidebar item of the group label. This can be used as a way to identify sidebar items when selected. */\n @Prop({ reflect: true }) value = '';\n\n /** Indicates whether the sidebar is shown */\n @Prop({ reflect: true }) open = false;\n\n /** Custom summary icon name. */\n @Prop() summaryIcon?: string;\n\n @State() summaryIconHasContent = false;\n\n /**\n * Provide if the item should be rendered as anchor tag.\n * Note, that the href is added automatically when using routerLink in Angular.\n */\n @Prop({ reflect: true }) href: string | undefined;\n\n connectedCallback() {\n this.handleSlotChange = this.handleSlotChange.bind(this);\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n private handleSlotChange() {\n this.hasItems = hasSlot(this.host);\n }\n\n private isSubgroup() {\n return this.host.parentElement?.closest('six-sidebar-item-group') != null;\n }\n\n private renderAsHref(): boolean {\n return this.href != null && !this.hasItems;\n }\n\n private provideSlot = (name: string) => {\n if (this.summaryIconHasContent) {\n return (\n <div slot={name}>\n <slot name={name}></slot>\n </div>\n );\n }\n\n return (\n <slot\n name={name}\n onSlotchange={() => {\n const slot = this.host.shadowRoot?.querySelector<HTMLSlotElement>(`slot[name=\"${name}\"]`);\n if (slot != null) {\n this.summaryIconHasContent = slot.assignedNodes().length > 0;\n }\n }}\n ></slot>\n );\n };\n\n render() {\n const element = (\n <six-details\n class={{\n 'six-sidebar-item-group': true,\n 'six-sidebar-item-group--childless': !this.hasItems,\n 'six-sidebar-item-group--subgroup': this.isSubgroup(),\n }}\n inline={true}\n open={this.open}\n summary-icon={this.summaryIcon}\n hasContent={this.hasItems}\n tabindex={this.renderAsHref() ? -1 : undefined}\n >\n <div slot=\"summary\">\n <div class=\"six-sidebar-details__header\">\n {this.icon && <six-icon class=\"six-sidebar-details__header-icon\">{this.icon}</six-icon>}\n {this.name}\n </div>\n </div>\n {this.provideSlot('summary-icon')}\n <slot />\n </six-details>\n );\n\n if (this.renderAsHref()) {\n return (\n <a class=\"six-sidebar-details__link\" href={this.href}>\n {element}\n </a>\n );\n } else {\n return element;\n }\n }\n}\n"]}
@@ -105,12 +105,12 @@ export class SixSwitch {
105
105
  (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.blur();
106
106
  }
107
107
  render() {
108
- return (h(FormControl, { key: '9d6b19d30b6fbe9edaca09765fb987496085af3d', inputId: this.switchId, label: this.label, labelId: this.labelId, hasLabelSlot: false, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { key: '3e17b60e405ebdbb9a2329677b7ba58bf5b39506', part: "base", htmlFor: this.switchId, class: {
108
+ return (h(FormControl, { key: 'f8a02f4bc5a931384248896494c1ef398f88453c', inputId: this.switchId, label: this.label, labelId: this.labelId, hasLabelSlot: false, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { key: 'b85db2bcbf379f0b7a885fa04041661f2abc8aeb', part: "base", htmlFor: this.switchId, class: {
109
109
  switch: true,
110
110
  'switch--checked': this.checked,
111
111
  'switch--disabled': this.disabled,
112
112
  'switch--focused': this.hasFocus,
113
- }, onMouseDown: this.handleMouseDown }, h("span", { key: 'a8f0a78413ef612287e59d371ecc4a4de3f95d86', part: "control", class: "switch__control" }, h("span", { key: '02e2e4f0ebea74189adaae5c5820e72c317fb3c8', part: "thumb", class: "switch__thumb" }), h("input", { key: '50f37e2801b211be3a3f378f3f59c736f10900ea', ref: (el) => (this.inputElement = el), id: this.switchId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown })), h("span", { key: '9a4e42a33a099be2301b47553f1238f2e4acf027', part: "label", id: this.labelId, class: "switch__label" }, h("slot", { key: 'f393ef7b2eb5621a4a203d0502017a428412080d' })))));
113
+ }, onMouseDown: this.handleMouseDown }, h("span", { key: '001e868504ac577acca8352ab992c001e56908fa', part: "control", class: "switch__control" }, h("span", { key: '99d6f8448b43533b0ca19988cfd8485f05bed512', part: "thumb", class: "switch__thumb" }), h("input", { key: '5d787df251a93a531fdf8dfaa141cf87006f2be8', ref: (el) => (this.inputElement = el), id: this.switchId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "switch", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onClick: this.handleClick, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown })), h("span", { key: '480a7fbc5d25546ca734c11c8363a4b98d97f97e', part: "label", id: this.labelId, class: "switch__label" }, h("slot", { key: '322c296e95edd35593b74daf4864561760f1e22d' })))));
114
114
  }
115
115
  static get is() { return "six-switch"; }
116
116
  static get encapsulation() { return "shadow"; }
@@ -41,7 +41,7 @@ export class SixTab {
41
41
  const placement = (_a = tabGroup === null || tabGroup === void 0 ? void 0 : tabGroup.placement) !== null && _a !== void 0 ? _a : 'top';
42
42
  return (
43
43
  // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels
44
- h(Host, { key: '66eaedc782e87077c15d655a283127bba7e89dd8', id: this.host.id || this.componentId }, h("div", { key: 'dd59ec7e9406b1baab4f4fda287cfdaf98d79c31', part: "base", ref: (el) => (this.tab = el), class: {
44
+ h(Host, { key: '3fb91abb09772d923fb5b8e53cb2a1c63a182b9e', id: this.host.id || this.componentId }, h("div", { key: '11291e2dde7bf9cd0f5f20ac953704e0516e807d', part: "base", ref: (el) => (this.tab = el), class: {
45
45
  tab: true,
46
46
  // Placements
47
47
  'tab--top': placement === 'top',
@@ -52,7 +52,7 @@ export class SixTab {
52
52
  'tab--active': this.active,
53
53
  'tab--closable': this.closable,
54
54
  'tab--disabled': this.disabled,
55
- }, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', tabindex: this.disabled || !this.active ? '-1' : '0' }, h("slot", { key: 'bd701cd5777e3d1cadbf3907534470a96e46a66d' }), this.closable && (h("six-icon-button", { name: "close", size: "xSmall", exportparts: "base:close-button", class: "tab__close-button", onClick: this.handleCloseClick, tabIndex: -1, "aria-hidden": "true" }))), h("div", { key: 'f80103185d457827fc8c2e990791dd947743daef', part: this.active ? 'active-tab-indicator' : '', class: {
55
+ }, role: "tab", "aria-disabled": this.disabled ? 'true' : 'false', "aria-selected": this.active ? 'true' : 'false', tabindex: this.disabled || !this.active ? '-1' : '0' }, h("slot", { key: '59600add16a91eb6876893464d8f447fcdf7450e' }), this.closable && (h("six-icon-button", { key: '8cc03ea004a7181d210ad03355c30a8de6bfc306', name: "close", size: "xSmall", exportparts: "base:close-button", class: "tab__close-button", onClick: this.handleCloseClick, tabIndex: -1, "aria-hidden": "true" }))), h("div", { key: '84460dcb9bb76d4b290a6c00c298e4ecae96b0d7', part: this.active ? 'active-tab-indicator' : '', class: {
56
56
  tab__indicator: true,
57
57
  'tab__indicator--active': this.active,
58
58
  // Placements
@@ -1 +1 @@
1
- {"version":3,"file":"six-tab.js","sourceRoot":"","sources":["../../../src/components/six-tab/six-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG/F,IAAI,EAAE,GAAG,CAAC,CAAC;AAEX;;;;;;;;;;GAUG;AAOH,MAAM,OAAO,MAAM;;QACT,gBAAW,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC;qBAMH,EAAE;sBAGD,KAAK;wBAGpB,KAAK;wBAGY,KAAK;;IAKzC,iBAAiB;QACf,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IAED,6BAA6B;IAE7B,KAAK,CAAC,QAAQ,CAAC,OAAsB;;QACnC,MAAA,IAAI,CAAC,GAAG,0CAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,kCAAkC;IAElC,KAAK,CAAC,WAAW;;QACf,MAAA,IAAI,CAAC,GAAG,0CAAE,IAAI,EAAE,CAAC;IACnB,CAAC;IAEO,gBAAgB;QACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;IAED,MAAM;;QACJ,MAAM,QAAQ,GAAkC,IAAI,CAAC,IAAI,CAA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AAM,GAClB,CACH,CACG;YACN,4DACE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAAE,EAC/C,KAAK,EAAE;oBACL,cAAc,EAAE,IAAI;oBACpB,wBAAwB,EAAE,IAAI,CAAC,MAAM;oBAErC,aAAa;oBACb,qBAAqB,EAAE,SAAS,KAAK,KAAK;oBAC1C,wBAAwB,EAAE,SAAS,KAAK,QAAQ;oBAChD,sBAAsB,EAAE,SAAS,KAAK,MAAM;oBAC5C,uBAAuB,EAAE,SAAS,KAAK,OAAO;iBAC/C,GACI,CACF,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tab's label.\n *\n * @part base - The component's base wrapper.\n * @part close-button - The close button, which is the icon button's base wrapper.\n */\n\n@Component({\n tag: 'six-tab',\n styleUrl: 'six-tab.scss',\n shadow: true,\n})\nexport class SixTab {\n private componentId = `tab-${++id}`;\n private tab?: HTMLElement;\n\n @Element() host!: HTMLSixTabElement;\n\n /** The name of the tab panel the tab will control. The panel must be located in the same tab group. */\n @Prop({ reflect: true }) panel = '';\n\n /** Set to true to draw the tab in an active state. */\n @Prop({ reflect: true }) active = false;\n\n /** When true, the tab will be rendered with a close icon. */\n @Prop() closable = false;\n\n /** Set to true to draw the tab in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Emitted when the tab is closable and the close button is activated. */\n @Event({ eventName: 'six-tab-close' }) sixClose!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.handleCloseClick = this.handleCloseClick.bind(this);\n }\n\n /** Sets focus to the tab. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.tab?.focus(options);\n }\n\n /** Removes focus from the tab. */\n @Method()\n async removeFocus() {\n this.tab?.blur();\n }\n\n private handleCloseClick() {\n this.sixClose.emit();\n }\n\n render() {\n const tabGroup: HTMLSixTabGroupElement | null = this.host.closest('six-tab-group');\n const placement = tabGroup?.placement ?? 'top';\n return (\n // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels\n <Host id={this.host.id || this.componentId}>\n <div\n part=\"base\"\n ref={(el) => (this.tab = el)}\n class={{\n tab: true,\n\n // Placements\n 'tab--top': placement === 'top',\n 'tab--bottom': placement === 'bottom',\n 'tab--left': placement === 'left',\n 'tab--right': placement === 'right',\n\n // States\n 'tab--active': this.active,\n 'tab--closable': this.closable,\n 'tab--disabled': this.disabled,\n }}\n role=\"tab\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-selected={this.active ? 'true' : 'false'}\n tabindex={this.disabled || !this.active ? '-1' : '0'}\n >\n <slot />\n {this.closable && (\n <six-icon-button\n name=\"close\"\n size=\"xSmall\"\n exportparts=\"base:close-button\"\n class=\"tab__close-button\"\n onClick={this.handleCloseClick}\n tabIndex={-1}\n aria-hidden=\"true\"\n />\n )}\n </div>\n <div\n part={this.active ? 'active-tab-indicator' : ''}\n class={{\n tab__indicator: true,\n 'tab__indicator--active': this.active,\n\n // Placements\n 'tab__indicator--top': placement === 'top',\n 'tab__indicator--bottom': placement === 'bottom',\n 'tab__indicator--left': placement === 'left',\n 'tab__indicator--right': placement === 'right',\n }}\n ></div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-tab.js","sourceRoot":"","sources":["../../../src/components/six-tab/six-tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tab's label.\n *\n * @part base - The component's base wrapper.\n * @part close-button - The close button, which is the icon button's base wrapper.\n */\n\n@Component({\n tag: 'six-tab',\n styleUrl: 'six-tab.scss',\n shadow: true,\n})\nexport class SixTab {\n private componentId = `tab-${++id}`;\n private tab?: HTMLElement;\n\n @Element() host!: HTMLSixTabElement;\n\n /** The name of the tab panel the tab will control. The panel must be located in the same tab group. */\n @Prop({ reflect: true }) panel = '';\n\n /** Set to true to draw the tab in an active state. */\n @Prop({ reflect: true }) active = false;\n\n /** When true, the tab will be rendered with a close icon. */\n @Prop() closable = false;\n\n /** Set to true to draw the tab in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Emitted when the tab is closable and the close button is activated. */\n @Event({ eventName: 'six-tab-close' }) sixClose!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.handleCloseClick = this.handleCloseClick.bind(this);\n }\n\n /** Sets focus to the tab. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.tab?.focus(options);\n }\n\n /** Removes focus from the tab. */\n @Method()\n async removeFocus() {\n this.tab?.blur();\n }\n\n private handleCloseClick() {\n this.sixClose.emit();\n }\n\n render() {\n const tabGroup: HTMLSixTabGroupElement | null = this.host.closest('six-tab-group');\n const placement = tabGroup?.placement ?? 'top';\n return (\n // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels\n <Host id={this.host.id || this.componentId}>\n <div\n part=\"base\"\n ref={(el) => (this.tab = el)}\n class={{\n tab: true,\n\n // Placements\n 'tab--top': placement === 'top',\n 'tab--bottom': placement === 'bottom',\n 'tab--left': placement === 'left',\n 'tab--right': placement === 'right',\n\n // States\n 'tab--active': this.active,\n 'tab--closable': this.closable,\n 'tab--disabled': this.disabled,\n }}\n role=\"tab\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-selected={this.active ? 'true' : 'false'}\n tabindex={this.disabled || !this.active ? '-1' : '0'}\n >\n <slot />\n {this.closable && (\n <six-icon-button\n name=\"close\"\n size=\"xSmall\"\n exportparts=\"base:close-button\"\n class=\"tab__close-button\"\n onClick={this.handleCloseClick}\n tabIndex={-1}\n aria-hidden=\"true\"\n />\n )}\n </div>\n <div\n part={this.active ? 'active-tab-indicator' : ''}\n class={{\n tab__indicator: true,\n 'tab__indicator--active': this.active,\n\n // Placements\n 'tab__indicator--top': placement === 'top',\n 'tab__indicator--bottom': placement === 'bottom',\n 'tab__indicator--left': placement === 'left',\n 'tab__indicator--right': placement === 'right',\n }}\n ></div>\n </Host>\n );\n }\n}\n"]}
@@ -226,7 +226,7 @@ export class SixTabGroup {
226
226
  });
227
227
  }
228
228
  render() {
229
- return (h("div", { key: '9752b81f3babdcbe656cc5552b7c07c7cc096d8d', part: "base", ref: (el) => (this.tabGroup = el), class: {
229
+ return (h("div", { key: '687953b1f7488c6f74b79d8bfa2dd5f6638d8794', part: "base", ref: (el) => (this.tabGroup = el), class: {
230
230
  'tab-group': true,
231
231
  // Placements
232
232
  'tab-group--top': this.placement === 'top',
@@ -234,7 +234,7 @@ export class SixTabGroup {
234
234
  'tab-group--left': this.placement === 'left',
235
235
  'tab-group--right': this.placement === 'right',
236
236
  'tab-group--has-scroll-controls': this.hasRightControl || this.hasLeftControl,
237
- }, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: 'd96c9094ddc1a9cd6ad9ac9c5ab559ac703ccd6e', class: "tab-group__nav-container" }, this.hasLeftControl && (h("six-icon-button", { class: "tab-group__scroll-button tab-group__scroll-button--left", exportparts: "base:scroll-button", name: "chevron_left", onClick: this.handleScrollLeft })), h("div", { ref: (el) => (this.nav = el), key: "nav", part: "nav", class: "tab-group__nav" }, h("div", { key: '288b14b0bbc790f1ae54e2a26693e9b103002715', ref: (el) => (this.tabs = el), part: "tabs", class: "tab-group__tabs", role: "tablist" }, h("slot", { key: '249ef2f5d67dd3abf35b07028c9d2fe3798ef1ea', name: "nav" }))), this.hasRightControl && (h("six-icon-button", { class: "tab-group__scroll-button tab-group__scroll-button--right", exportparts: "base:scroll-button", name: "chevron_right", onClick: this.handleScrollRight }))), h("div", { key: '3aa5553829dfefb71bfb725db55db8dc204f93dc', ref: (el) => (this.body = el), part: "body", class: "tab-group__body" }, h("slot", { key: '8d96ff43d62b33d77bea3616ea5ac76ad6b99a76' }))));
237
+ }, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { key: '11a19bfa85935fb187e4caaa639df6107fe3c8f5', class: "tab-group__nav-container" }, this.hasLeftControl && (h("six-icon-button", { key: 'cc5e49ec12398a2b8534443b9ce9183b62e30579', class: "tab-group__scroll-button tab-group__scroll-button--left", exportparts: "base:scroll-button", name: "chevron_left", onClick: this.handleScrollLeft })), h("div", { ref: (el) => (this.nav = el), key: "nav", part: "nav", class: "tab-group__nav" }, h("div", { key: '7fade92e1892fa0316f72c34421d0091c0416bf3', ref: (el) => (this.tabs = el), part: "tabs", class: "tab-group__tabs", role: "tablist" }, h("slot", { key: 'c28271665e228f0bc67912971c7f02e799c850e0', name: "nav" }))), this.hasRightControl && (h("six-icon-button", { key: '244800e9e981050d6e7c397000105fdd7f887c1f', class: "tab-group__scroll-button tab-group__scroll-button--right", exportparts: "base:scroll-button", name: "chevron_right", onClick: this.handleScrollRight }))), h("div", { key: 'eb3c0da33565d279a75087d677c7f0c532e82468', ref: (el) => (this.body = el), part: "body", class: "tab-group__body" }, h("slot", { key: '639246ec2ce40f9ea9412cb37cf87ebc32a373c2' }))));
238
238
  }
239
239
  static get is() { return "six-tab-group"; }
240
240
  static get encapsulation() { return "shadow";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MAAM,EAAC,KAAK,EAAC,iBAAiB,EAAC,IAAI,EAAC,SAAS;wBACpF,6DAAM,IAAI,EAAC,KAAK,GAAG,CACf,CACF;gBACL,IAAI,CAAC,eAAe,IAAI,CACvB,uBACE,KAAK,EAAC,0DAA0D,EAChE,WAAW,EAAC,oBAAoB,EAChC,IAAI,EAAC,eAAe,EACpB,OAAO,EAAE,IAAI,CAAC,iBAAiB,GAC/B,CACH,CACG;YAEN,4DAAK,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,iBAAiB;gBACrE,8DAAQ,CACJ,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { scrollIntoView } from '../../utils/scroll';\nimport { flipAnimate } from '../../utils/animation';\n\nexport interface SixTabShowPayload {\n name: string;\n}\n\nexport interface SixTabHidePayload {\n name: string;\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot nav - Used for grouping tabs in the tab group.\n * @slot - Used for grouping tab panels in the tab group.\n *\n * @part base - The component's base wrapper.\n * @part nav - The tab group navigation container.\n * @part tabs - The container that wraps the slotted tabs.\n * @part active-tab-indicator - An element that displays the currently selected tab. This is a child of the tab's container.\n * @part body - The tab group body where tab panels are slotted in.\n * @part scroll-button - The previous and next scroll buttons that appear when tabs are scrollable.\n */\n@Component({\n tag: 'six-tab-group',\n styleUrl: 'six-tab-group.scss',\n shadow: true,\n})\nexport class SixTabGroup {\n private activeTab?: HTMLSixTabElement;\n private body?: HTMLElement;\n private mutationObserver?: MutationObserver;\n private nav?: HTMLElement;\n private resizeObserver?: ResizeObserver;\n private tabGroup?: HTMLElement;\n private tabs?: HTMLElement;\n\n @Element() host!: HTMLSixTabGroupElement;\n\n @State() hasLeftControl = false;\n @State() hasRightControl = false;\n\n /** The placement of the tabs. */\n @Prop() placement: 'top' | 'bottom' | 'left' | 'right' = 'top';\n\n /** Disables the scroll arrows that appear when tabs overflow. */\n @Prop() noScrollControls = false;\n\n @Watch('noScrollControls')\n handleNoScrollControlsChange() {\n this.updateScrollControls();\n }\n\n /** Emitted when a tab is shown. */\n @Event({ eventName: 'six-tab-show' }) sixTabShow!: EventEmitter<SixTabShowPayload>;\n\n /** Emitted when a tab is hidden. */\n @Event({ eventName: 'six-tab-hide' }) sixTabHide!: EventEmitter<SixTabHidePayload>;\n\n componentDidLoad() {\n if (this.tabGroup == null || this.nav == null) return;\n\n // Set initial tab state when the tabs first become visible\n const observer = new IntersectionObserver((entries, observer) => {\n if (entries[0].intersectionRatio > 0) {\n this.setAriaLabels();\n this.setActiveTab(this.getActiveTab() || this.getAllTabs()[0], false);\n observer.unobserve(entries[0].target);\n }\n });\n observer.observe(this.host);\n this.resizeObserver = new ResizeObserver(() => this.updateScrollControls());\n this.resizeObserver.observe(this.nav);\n requestAnimationFrame(() => this.updateScrollControls());\n\n this.nav.addEventListener('scroll', () => {\n if (this.nav == null) {\n return;\n }\n this.hasRightControl = this.calculateRightControlVisibility();\n\n this.hasLeftControl = this.calculateLeftControlVisibility();\n });\n\n // Update aria labels if the DOM changes\n this.mutationObserver = new MutationObserver((mutations) => {\n if (\n mutations.some((mutation) => {\n return !['aria-labelledby', 'aria-controls'].includes(mutation.attributeName ?? '');\n })\n ) {\n setTimeout(() => this.setAriaLabels());\n }\n });\n this.mutationObserver.observe(this.host, { attributes: true, childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n if (this.mutationObserver == null || this.tabGroup == null || this.nav == null || this.resizeObserver == null) {\n return;\n }\n this.mutationObserver.disconnect();\n this.resizeObserver.unobserve(this.nav);\n }\n\n /** Shows the specified tab panel. */\n @Method()\n async show(panel: string) {\n const tabs = this.getAllTabs();\n const tab = tabs.find((el) => el.panel === panel);\n\n if (tab != null) {\n this.setActiveTab(tab);\n }\n }\n\n private getAllTabs(includeDisabled = false): HTMLSixTabElement[] {\n const slot = this.tabs?.querySelector('slot');\n if (slot == null) return [];\n\n return [...slot.assignedElements()].filter((el: Element) => {\n return includeDisabled\n ? el.tagName.toLowerCase() === 'six-tab'\n : el.tagName.toLowerCase() === 'six-tab' && !(el as HTMLSixTabElement).disabled;\n }) as [HTMLSixTabElement];\n }\n\n private getAllPanels(): HTMLSixTabPanelElement[] {\n const slot = this.body?.querySelector('slot');\n if (slot == null) return [];\n return [...slot.assignedElements()].filter((el: Element) => el.tagName.toLowerCase() === 'six-tab-panel') as [\n HTMLSixTabPanelElement\n ];\n }\n\n private getActiveTab() {\n return this.getAllTabs().find((el) => el.active);\n }\n\n private handleClick = (event: MouseEvent) => {\n const target = event.target as HTMLElement;\n const tab = target.closest('six-tab');\n const tabGroup = tab?.closest('six-tab-group');\n\n // Ensure the target tab is in this tab group\n if (tabGroup !== this.host) {\n return false;\n }\n\n if (tab != null) {\n this.setActiveTab(tab);\n }\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (this.nav == null) return;\n\n const target = event.target as HTMLElement;\n const tab = target.closest('six-tab');\n const tabGroup = tab?.closest('six-tab-group');\n\n // Ensure the target tab is in this tab group\n if (tabGroup !== this.host) {\n return false;\n }\n\n // Move focus left or right\n if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key)) {\n const activeEl = document.activeElement as HTMLSixTabElement;\n\n if (activeEl && activeEl.tagName.toLowerCase() === 'six-tab') {\n const tabs = this.getAllTabs();\n let index = tabs.indexOf(activeEl);\n\n if (event.key === 'Home') {\n index = 0;\n } else if (event.key === 'End') {\n index = tabs.length - 1;\n } else if (event.key === 'ArrowLeft') {\n index = Math.max(0, index - 1);\n } else if (event.key === 'ArrowRight') {\n index = Math.min(tabs.length - 1, index + 1);\n }\n\n tabs[index].setFocus({ preventScroll: true });\n this.setActiveTab(tabs[index]);\n\n if (['top', 'bottom'].includes(this.placement)) {\n scrollIntoView(tabs[index], this.nav, 'horizontal');\n }\n\n event.preventDefault();\n }\n }\n };\n\n private handleScrollLeft = () => {\n if (this.nav == null) return;\n\n this.nav.scroll({\n left: this.nav.scrollLeft - this.nav.clientWidth,\n behavior: 'smooth',\n });\n };\n\n private handleScrollRight = () => {\n if (this.nav == null) return;\n\n this.nav.scroll({\n left: this.nav.scrollLeft + this.nav.clientWidth,\n behavior: 'smooth',\n });\n };\n\n private calculateRightControlVisibility() {\n if (this.nav == null) {\n return false;\n }\n return Math.abs(this.nav?.scrollLeft) + this.nav?.clientWidth < this.nav?.scrollWidth - 1;\n }\n\n private calculateLeftControlVisibility() {\n if (this.nav == null) {\n return false;\n }\n return Math.abs(this.nav?.scrollLeft) > 0;\n }\n\n private updateScrollControls() {\n if (this.nav == null) return;\n\n this.hasRightControl = this.noScrollControls\n ? false\n : ['top', 'bottom'].includes(this.placement) && this.calculateRightControlVisibility();\n\n this.hasLeftControl = this.noScrollControls\n ? false\n : ['top', 'bottom'].includes(this.placement) && this.calculateLeftControlVisibility();\n }\n\n private setActiveTab(tab: HTMLSixTabElement, emitEvents = true) {\n if (this.nav == null) return;\n\n const newIndicator = tab?.shadowRoot?.querySelector('.tab__indicator');\n const oldIndicator = this.getActiveTab()?.shadowRoot?.querySelector('.tab__indicator');\n\n if (oldIndicator != null && newIndicator != null) {\n flipAnimate(newIndicator, oldIndicator);\n }\n\n if (tab !== this.activeTab && !tab.disabled) {\n const previousTab = this.activeTab;\n this.activeTab = tab;\n\n // Sync tabs and panels\n this.getAllTabs().map((el) => (el.active = el === this.activeTab));\n this.getAllPanels().map((el) => (el.active = el.name === this.activeTab?.panel));\n\n if (['top', 'bottom'].includes(this.placement)) {\n scrollIntoView(this.activeTab, this.nav, 'horizontal');\n }\n\n // Emit events\n if (emitEvents) {\n if (previousTab != null) {\n this.sixTabHide.emit({ name: previousTab.panel });\n }\n\n this.sixTabShow.emit({ name: this.activeTab.panel });\n }\n }\n }\n\n private setAriaLabels() {\n const tabs = this.getAllTabs();\n const panels = this.getAllPanels();\n\n // Link each tab with its corresponding panel\n tabs.map((tab) => {\n const panel = panels.find((el) => el.name === tab.panel);\n if (panel != null) {\n tab.setAttribute('aria-controls', panel.getAttribute('id') ?? '');\n panel.setAttribute('aria-labelledby', tab.getAttribute('id') ?? '');\n }\n });\n }\n\n render() {\n return (\n <div\n part=\"base\"\n ref={(el) => (this.tabGroup = el)}\n class={{\n 'tab-group': true,\n\n // Placements\n 'tab-group--top': this.placement === 'top',\n 'tab-group--bottom': this.placement === 'bottom',\n 'tab-group--left': this.placement === 'left',\n 'tab-group--right': this.placement === 'right',\n\n 'tab-group--has-scroll-controls': this.hasRightControl || this.hasLeftControl,\n }}\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n >\n <div class=\"tab-group__nav-container\">\n {this.hasLeftControl && (\n <six-icon-button\n class=\"tab-group__scroll-button tab-group__scroll-button--left\"\n exportparts=\"base:scroll-button\"\n name=\"chevron_left\"\n onClick={this.handleScrollLeft}\n />\n )}\n <div ref={(el) => (this.nav = el)} key=\"nav\" part=\"nav\" class=\"tab-group__nav\">\n <div ref={(el) => (this.tabs = el)} part=\"tabs\" class=\"tab-group__tabs\" role=\"tablist\">\n <slot name=\"nav\" />\n </div>\n </div>\n {this.hasRightControl && (\n <six-icon-button\n class=\"tab-group__scroll-button tab-group__scroll-button--right\"\n exportparts=\"base:scroll-button\"\n name=\"chevron_right\"\n onClick={this.handleScrollRight}\n />\n )}\n </div>\n\n <div ref={(el) => (this.body = el)} part=\"body\" class=\"tab-group__body\">\n <slot />\n </div>\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-tab-group.js","sourceRoot":"","sources":["../../../src/components/six-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,IAAI,EAAC,KAAK,GAAG,CACf,CACF;gBACL,IAAI,CAAC,eAAe,IAAI,CACvB,wEACE,KAAK,EAAC,0DAA0D,EAChE,WAAW,EAAC,oBAAoB,EAChC,IAAI,EAAC,eAAe,EACpB,OAAO,EAAE,IAAI,CAAC,iBAAiB,GAC/B,CACH,CACG;YAEN,4DAAK,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,iBAAiB;gBACrE,8DAAQ,CACJ,CACF,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { scrollIntoView } from '../../utils/scroll';\nimport { flipAnimate } from '../../utils/animation';\n\nexport interface SixTabShowPayload {\n name: string;\n}\n\nexport interface SixTabHidePayload {\n name: string;\n}\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot nav - Used for grouping tabs in the tab group.\n * @slot - Used for grouping tab panels in the tab group.\n *\n * @part base - The component's base wrapper.\n * @part nav - The tab group navigation container.\n * @part tabs - The container that wraps the slotted tabs.\n * @part active-tab-indicator - An element that displays the currently selected tab. This is a child of the tab's container.\n * @part body - The tab group body where tab panels are slotted in.\n * @part scroll-button - The previous and next scroll buttons that appear when tabs are scrollable.\n */\n@Component({\n tag: 'six-tab-group',\n styleUrl: 'six-tab-group.scss',\n shadow: true,\n})\nexport class SixTabGroup {\n private activeTab?: HTMLSixTabElement;\n private body?: HTMLElement;\n private mutationObserver?: MutationObserver;\n private nav?: HTMLElement;\n private resizeObserver?: ResizeObserver;\n private tabGroup?: HTMLElement;\n private tabs?: HTMLElement;\n\n @Element() host!: HTMLSixTabGroupElement;\n\n @State() hasLeftControl = false;\n @State() hasRightControl = false;\n\n /** The placement of the tabs. */\n @Prop() placement: 'top' | 'bottom' | 'left' | 'right' = 'top';\n\n /** Disables the scroll arrows that appear when tabs overflow. */\n @Prop() noScrollControls = false;\n\n @Watch('noScrollControls')\n handleNoScrollControlsChange() {\n this.updateScrollControls();\n }\n\n /** Emitted when a tab is shown. */\n @Event({ eventName: 'six-tab-show' }) sixTabShow!: EventEmitter<SixTabShowPayload>;\n\n /** Emitted when a tab is hidden. */\n @Event({ eventName: 'six-tab-hide' }) sixTabHide!: EventEmitter<SixTabHidePayload>;\n\n componentDidLoad() {\n if (this.tabGroup == null || this.nav == null) return;\n\n // Set initial tab state when the tabs first become visible\n const observer = new IntersectionObserver((entries, observer) => {\n if (entries[0].intersectionRatio > 0) {\n this.setAriaLabels();\n this.setActiveTab(this.getActiveTab() || this.getAllTabs()[0], false);\n observer.unobserve(entries[0].target);\n }\n });\n observer.observe(this.host);\n this.resizeObserver = new ResizeObserver(() => this.updateScrollControls());\n this.resizeObserver.observe(this.nav);\n requestAnimationFrame(() => this.updateScrollControls());\n\n this.nav.addEventListener('scroll', () => {\n if (this.nav == null) {\n return;\n }\n this.hasRightControl = this.calculateRightControlVisibility();\n\n this.hasLeftControl = this.calculateLeftControlVisibility();\n });\n\n // Update aria labels if the DOM changes\n this.mutationObserver = new MutationObserver((mutations) => {\n if (\n mutations.some((mutation) => {\n return !['aria-labelledby', 'aria-controls'].includes(mutation.attributeName ?? '');\n })\n ) {\n setTimeout(() => this.setAriaLabels());\n }\n });\n this.mutationObserver.observe(this.host, { attributes: true, childList: true, subtree: true });\n }\n\n disconnectedCallback() {\n if (this.mutationObserver == null || this.tabGroup == null || this.nav == null || this.resizeObserver == null) {\n return;\n }\n this.mutationObserver.disconnect();\n this.resizeObserver.unobserve(this.nav);\n }\n\n /** Shows the specified tab panel. */\n @Method()\n async show(panel: string) {\n const tabs = this.getAllTabs();\n const tab = tabs.find((el) => el.panel === panel);\n\n if (tab != null) {\n this.setActiveTab(tab);\n }\n }\n\n private getAllTabs(includeDisabled = false): HTMLSixTabElement[] {\n const slot = this.tabs?.querySelector('slot');\n if (slot == null) return [];\n\n return [...slot.assignedElements()].filter((el: Element) => {\n return includeDisabled\n ? el.tagName.toLowerCase() === 'six-tab'\n : el.tagName.toLowerCase() === 'six-tab' && !(el as HTMLSixTabElement).disabled;\n }) as [HTMLSixTabElement];\n }\n\n private getAllPanels(): HTMLSixTabPanelElement[] {\n const slot = this.body?.querySelector('slot');\n if (slot == null) return [];\n return [...slot.assignedElements()].filter((el: Element) => el.tagName.toLowerCase() === 'six-tab-panel') as [\n HTMLSixTabPanelElement\n ];\n }\n\n private getActiveTab() {\n return this.getAllTabs().find((el) => el.active);\n }\n\n private handleClick = (event: MouseEvent) => {\n const target = event.target as HTMLElement;\n const tab = target.closest('six-tab');\n const tabGroup = tab?.closest('six-tab-group');\n\n // Ensure the target tab is in this tab group\n if (tabGroup !== this.host) {\n return false;\n }\n\n if (tab != null) {\n this.setActiveTab(tab);\n }\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (this.nav == null) return;\n\n const target = event.target as HTMLElement;\n const tab = target.closest('six-tab');\n const tabGroup = tab?.closest('six-tab-group');\n\n // Ensure the target tab is in this tab group\n if (tabGroup !== this.host) {\n return false;\n }\n\n // Move focus left or right\n if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key)) {\n const activeEl = document.activeElement as HTMLSixTabElement;\n\n if (activeEl && activeEl.tagName.toLowerCase() === 'six-tab') {\n const tabs = this.getAllTabs();\n let index = tabs.indexOf(activeEl);\n\n if (event.key === 'Home') {\n index = 0;\n } else if (event.key === 'End') {\n index = tabs.length - 1;\n } else if (event.key === 'ArrowLeft') {\n index = Math.max(0, index - 1);\n } else if (event.key === 'ArrowRight') {\n index = Math.min(tabs.length - 1, index + 1);\n }\n\n tabs[index].setFocus({ preventScroll: true });\n this.setActiveTab(tabs[index]);\n\n if (['top', 'bottom'].includes(this.placement)) {\n scrollIntoView(tabs[index], this.nav, 'horizontal');\n }\n\n event.preventDefault();\n }\n }\n };\n\n private handleScrollLeft = () => {\n if (this.nav == null) return;\n\n this.nav.scroll({\n left: this.nav.scrollLeft - this.nav.clientWidth,\n behavior: 'smooth',\n });\n };\n\n private handleScrollRight = () => {\n if (this.nav == null) return;\n\n this.nav.scroll({\n left: this.nav.scrollLeft + this.nav.clientWidth,\n behavior: 'smooth',\n });\n };\n\n private calculateRightControlVisibility() {\n if (this.nav == null) {\n return false;\n }\n return Math.abs(this.nav?.scrollLeft) + this.nav?.clientWidth < this.nav?.scrollWidth - 1;\n }\n\n private calculateLeftControlVisibility() {\n if (this.nav == null) {\n return false;\n }\n return Math.abs(this.nav?.scrollLeft) > 0;\n }\n\n private updateScrollControls() {\n if (this.nav == null) return;\n\n this.hasRightControl = this.noScrollControls\n ? false\n : ['top', 'bottom'].includes(this.placement) && this.calculateRightControlVisibility();\n\n this.hasLeftControl = this.noScrollControls\n ? false\n : ['top', 'bottom'].includes(this.placement) && this.calculateLeftControlVisibility();\n }\n\n private setActiveTab(tab: HTMLSixTabElement, emitEvents = true) {\n if (this.nav == null) return;\n\n const newIndicator = tab?.shadowRoot?.querySelector('.tab__indicator');\n const oldIndicator = this.getActiveTab()?.shadowRoot?.querySelector('.tab__indicator');\n\n if (oldIndicator != null && newIndicator != null) {\n flipAnimate(newIndicator, oldIndicator);\n }\n\n if (tab !== this.activeTab && !tab.disabled) {\n const previousTab = this.activeTab;\n this.activeTab = tab;\n\n // Sync tabs and panels\n this.getAllTabs().map((el) => (el.active = el === this.activeTab));\n this.getAllPanels().map((el) => (el.active = el.name === this.activeTab?.panel));\n\n if (['top', 'bottom'].includes(this.placement)) {\n scrollIntoView(this.activeTab, this.nav, 'horizontal');\n }\n\n // Emit events\n if (emitEvents) {\n if (previousTab != null) {\n this.sixTabHide.emit({ name: previousTab.panel });\n }\n\n this.sixTabShow.emit({ name: this.activeTab.panel });\n }\n }\n }\n\n private setAriaLabels() {\n const tabs = this.getAllTabs();\n const panels = this.getAllPanels();\n\n // Link each tab with its corresponding panel\n tabs.map((tab) => {\n const panel = panels.find((el) => el.name === tab.panel);\n if (panel != null) {\n tab.setAttribute('aria-controls', panel.getAttribute('id') ?? '');\n panel.setAttribute('aria-labelledby', tab.getAttribute('id') ?? '');\n }\n });\n }\n\n render() {\n return (\n <div\n part=\"base\"\n ref={(el) => (this.tabGroup = el)}\n class={{\n 'tab-group': true,\n\n // Placements\n 'tab-group--top': this.placement === 'top',\n 'tab-group--bottom': this.placement === 'bottom',\n 'tab-group--left': this.placement === 'left',\n 'tab-group--right': this.placement === 'right',\n\n 'tab-group--has-scroll-controls': this.hasRightControl || this.hasLeftControl,\n }}\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n >\n <div class=\"tab-group__nav-container\">\n {this.hasLeftControl && (\n <six-icon-button\n class=\"tab-group__scroll-button tab-group__scroll-button--left\"\n exportparts=\"base:scroll-button\"\n name=\"chevron_left\"\n onClick={this.handleScrollLeft}\n />\n )}\n <div ref={(el) => (this.nav = el)} key=\"nav\" part=\"nav\" class=\"tab-group__nav\">\n <div ref={(el) => (this.tabs = el)} part=\"tabs\" class=\"tab-group__tabs\" role=\"tablist\">\n <slot name=\"nav\" />\n </div>\n </div>\n {this.hasRightControl && (\n <six-icon-button\n class=\"tab-group__scroll-button tab-group__scroll-button--right\"\n exportparts=\"base:scroll-button\"\n name=\"chevron_right\"\n onClick={this.handleScrollRight}\n />\n )}\n </div>\n\n <div ref={(el) => (this.body = el)} part=\"body\" class=\"tab-group__body\">\n <slot />\n </div>\n </div>\n );\n }\n}\n"]}
@@ -19,7 +19,7 @@ export class SixTabPanel {
19
19
  render() {
20
20
  return (
21
21
  // If the user didn't provide an ID, we'll set one, so we can link tabs and tab panels with aria labels
22
- h(Host, { key: '9c332526981d228cc31dc50a84ebcb530b80fafd', id: this.host.id || this.componentId, style: { display: this.active ? 'block' : 'none' } }, h("div", { key: 'f83c683193cd57ae41b8d0a5192b77ecfe4e1f20', part: "base", class: "tab-panel", role: "tabpanel", "aria-selected": this.active ? 'true' : 'false', "aria-hidden": this.active ? 'false' : 'true' }, h("slot", { key: '4f86b7b5bb9aa47f2ea11dc2b76ace19bc2f458a' }))));
22
+ h(Host, { key: '71a56c2593d07ab74bfca2036c6c48015800cb3a', id: this.host.id || this.componentId, style: { display: this.active ? 'block' : 'none' } }, h("div", { key: 'f9c9c0f9bcb3365d5919e721e2ce85b96310aa50', part: "base", class: "tab-panel", role: "tabpanel", "aria-selected": this.active ? 'true' : 'false', "aria-hidden": this.active ? 'false' : 'true' }, h("slot", { key: 'a78c62e6fa855d1181069c3c99c8f0bba23fea17' }))));
23
23
  }
24
24
  static get is() { return "six-tab-panel"; }
25
25
  static get encapsulation() { return "shadow"; }
@@ -44,7 +44,7 @@ export class SixTag {
44
44
  this.resizeObserver.disconnect();
45
45
  }
46
46
  render() {
47
- return (h("span", { key: '6a02aa0235a9b590604bc92647ac73e22e304136', part: "base", class: {
47
+ return (h("span", { key: 'cf0f1b63dd4cf2887a1ce4640c9073e24c42e79c', part: "base", class: {
48
48
  tag: true,
49
49
  // Types
50
50
  'tag--primary': this.type === 'primary',
@@ -61,7 +61,7 @@ export class SixTag {
61
61
  // Modifers
62
62
  'tag--pill': this.pill,
63
63
  'tag--clear': this.clearable,
64
- } }, h("six-tooltip", { key: 'e42c81922948e9b944bb828479351e8e3ba87a3b', ref: (el) => (this.tooltipElement = el) }, h("span", { key: '84b8a6a071f9c45c5aaec65c0667df111a357562', ref: (el) => (this.contentElement = el), part: "content", class: "tag__content" }, h("slot", { key: '757dcb510fef07b947876706c8a53e07d28bdc7f', ref: (el) => (this.contentSlotElement = el) }))), this.clearable && (h("six-icon-button", { exportparts: "base:clear-button", size: "xSmall", name: "clear", class: "tag__clear", onClick: this.handleClearClick }))));
64
+ } }, h("six-tooltip", { key: '6b8d12fc884f2fd47caea9400e26c283e770dbad', ref: (el) => (this.tooltipElement = el) }, h("span", { key: '62a3b5dfa5550c432342bdd5767a39b5b83a3103', ref: (el) => (this.contentElement = el), part: "content", class: "tag__content" }, h("slot", { key: '00a3ef70ceea21c8e807557576f2c4f252cee995', ref: (el) => (this.contentSlotElement = el) }))), this.clearable && (h("six-icon-button", { key: '5eabbf01c5b9d4d2d594c7d3d600cc57b8bd4cec', exportparts: "base:clear-button", size: "xSmall", name: "clear", class: "tag__clear", onClick: this.handleClearClick }))));
65
65
  }
66
66
  static get is() { return "six-tag"; }
67
67
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"six-tag.js","sourceRoot":"","sources":["../../../src/components/six-tag/six-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD;;;;;;;;;;;GAWG;AAOH,MAAM,OAAO,MAAM;;QAmBT,mBAAc,GAAG,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;QAkB1E,kBAAa,GAAG,GAAG,EAAE;YAC3B,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE,CAAC;gBAClG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;gBACtE,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,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WAAW;gBACX,WAAW,EAAE,IAAI,CAAC,IAAI;gBACtB,YAAY,EAAE,IAAI,CAAC,SAAS;aAC7B;YAED,oEAAa,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;gBAClD,6DAAM,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC,EAAE,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,cAAc;oBAChF,6DAAM,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,GAAG,EAAqB,CAAC,GAAI,CACnE,CACK;YAEb,IAAI,CAAC,SAAS,IAAI,CACjB,uBACE,WAAW,EAAC,mBAAmB,EAC/B,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,YAAY,EAClB,OAAO,EAAE,IAAI,CAAC,gBAAgB,GAC9B,CACH,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getTextContent } from '../../utils/slot';\nimport { debounce } from '../../utils/execution-control';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tag's content.\n *\n * @part base - The component's base wrapper.\n * @part content - The tag content.\n * @part clear-button - The clear button.\n */\n\n@Component({\n tag: 'six-tag',\n styleUrl: 'six-tag.scss',\n shadow: true,\n})\nexport class SixTag {\n /** The tag's type. */\n @Prop({ reflect: true }) type: 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'action' | 'text' = 'primary';\n\n /** The tag's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw a pill-style tag with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to make the tag clearable. */\n @Prop({ reflect: true }) clearable = false;\n\n /** Emitted when the clear button is activated. */\n @Event({ eventName: 'six-tag-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n private contentSlotElement: HTMLSlotElement | undefined;\n private tooltipElement: HTMLSixTooltipElement | undefined;\n private contentElement: HTMLElement | undefined;\n private resizeObserver = new ResizeObserver(debounce(() => this.updateTooltip()));\n\n connectedCallback() {\n if (this.contentElement != null) {\n this.resizeObserver.observe(this.contentElement);\n }\n }\n\n componentDidLoad() {\n if (this.contentElement != null) {\n this.resizeObserver.observe(this.contentElement);\n }\n }\n\n disconnectedCallback() {\n this.resizeObserver.disconnect();\n }\n\n private updateTooltip = () => {\n if (this.tooltipElement != null && this.contentSlotElement != null && this.contentElement != null) {\n this.tooltipElement.content = getTextContent(this.contentSlotElement);\n this.tooltipElement.disabled = !(this.contentElement.offsetWidth < this.contentElement.scrollWidth);\n }\n };\n\n private handleClearClick = () => {\n this.sixClear.emit();\n };\n\n render() {\n return (\n <span\n part=\"base\"\n class={{\n tag: true,\n\n // Types\n 'tag--primary': this.type === 'primary',\n 'tag--success': this.type === 'success',\n 'tag--info': this.type === 'info',\n 'tag--warning': this.type === 'warning',\n 'tag--danger': this.type === 'danger',\n 'tag--action': this.type === 'action',\n 'tag--text': this.type === 'text',\n\n // Sizes\n 'tag--small': this.size === 'small',\n 'tag--medium': this.size === 'medium',\n 'tag--large': this.size === 'large',\n\n // Modifers\n 'tag--pill': this.pill,\n 'tag--clear': this.clearable,\n }}\n >\n <six-tooltip ref={(el) => (this.tooltipElement = el)}>\n <span ref={(el) => (this.contentElement = el)} part=\"content\" class=\"tag__content\">\n <slot ref={(el) => (this.contentSlotElement = el as HTMLSlotElement)} />\n </span>\n </six-tooltip>\n\n {this.clearable && (\n <six-icon-button\n exportparts=\"base:clear-button\"\n size=\"xSmall\"\n name=\"clear\"\n class=\"tag__clear\"\n onClick={this.handleClearClick}\n />\n )}\n </span>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-tag.js","sourceRoot":"","sources":["../../../src/components/six-tag/six-tag.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD;;;;;;;;;;;GAWG;AAOH,MAAM,OAAO,MAAM;;QAmBT,mBAAc,GAAG,IAAI,cAAc,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;QAkB1E,kBAAa,GAAG,GAAG,EAAE;YAC3B,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,IAAI,IAAI,CAAC,kBAAkB,IAAI,IAAI,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE,CAAC;gBAClG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;gBACtE,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;YACtG,CAAC;QACH,CAAC,CAAC;QAEM,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,CAAC;oBA5CyG,SAAS;oBAGtD,QAAQ;oBAGtC,KAAK;yBAGA,KAAK;;IAU1C,iBAAiB;QACf,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE,CAAC;YAChC,IAAI,CAAC,cAAc,CAAC,OAAO,CAA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,EAAC,cAAc;oBAChF,6DAAM,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,kBAAkB,GAAG,EAAqB,CAAC,GAAI,CACnE,CACK;YAEb,IAAI,CAAC,SAAS,IAAI,CACjB,wEACE,WAAW,EAAC,mBAAmB,EAC/B,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,YAAY,EAClB,OAAO,EAAE,IAAI,CAAC,gBAAgB,GAC9B,CACH,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getTextContent } from '../../utils/slot';\nimport { debounce } from '../../utils/execution-control';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tag's content.\n *\n * @part base - The component's base wrapper.\n * @part content - The tag content.\n * @part clear-button - The clear button.\n */\n\n@Component({\n tag: 'six-tag',\n styleUrl: 'six-tag.scss',\n shadow: true,\n})\nexport class SixTag {\n /** The tag's type. */\n @Prop({ reflect: true }) type: 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'action' | 'text' = 'primary';\n\n /** The tag's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw a pill-style tag with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to make the tag clearable. */\n @Prop({ reflect: true }) clearable = false;\n\n /** Emitted when the clear button is activated. */\n @Event({ eventName: 'six-tag-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n private contentSlotElement: HTMLSlotElement | undefined;\n private tooltipElement: HTMLSixTooltipElement | undefined;\n private contentElement: HTMLElement | undefined;\n private resizeObserver = new ResizeObserver(debounce(() => this.updateTooltip()));\n\n connectedCallback() {\n if (this.contentElement != null) {\n this.resizeObserver.observe(this.contentElement);\n }\n }\n\n componentDidLoad() {\n if (this.contentElement != null) {\n this.resizeObserver.observe(this.contentElement);\n }\n }\n\n disconnectedCallback() {\n this.resizeObserver.disconnect();\n }\n\n private updateTooltip = () => {\n if (this.tooltipElement != null && this.contentSlotElement != null && this.contentElement != null) {\n this.tooltipElement.content = getTextContent(this.contentSlotElement);\n this.tooltipElement.disabled = !(this.contentElement.offsetWidth < this.contentElement.scrollWidth);\n }\n };\n\n private handleClearClick = () => {\n this.sixClear.emit();\n };\n\n render() {\n return (\n <span\n part=\"base\"\n class={{\n tag: true,\n\n // Types\n 'tag--primary': this.type === 'primary',\n 'tag--success': this.type === 'success',\n 'tag--info': this.type === 'info',\n 'tag--warning': this.type === 'warning',\n 'tag--danger': this.type === 'danger',\n 'tag--action': this.type === 'action',\n 'tag--text': this.type === 'text',\n\n // Sizes\n 'tag--small': this.size === 'small',\n 'tag--medium': this.size === 'medium',\n 'tag--large': this.size === 'large',\n\n // Modifers\n 'tag--pill': this.pill,\n 'tag--clear': this.clearable,\n }}\n >\n <six-tooltip ref={(el) => (this.tooltipElement = el)}>\n <span ref={(el) => (this.contentElement = el)} part=\"content\" class=\"tag__content\">\n <slot ref={(el) => (this.contentSlotElement = el as HTMLSlotElement)} />\n </span>\n </six-tooltip>\n\n {this.clearable && (\n <six-icon-button\n exportparts=\"base:clear-button\"\n size=\"xSmall\"\n name=\"clear\"\n class=\"tag__clear\"\n onClick={this.handleClearClick}\n />\n )}\n </span>\n );\n }\n}\n"]}
@@ -167,7 +167,7 @@ export class SixTextarea {
167
167
  return ((_a = this.value) !== null && _a !== void 0 ? _a : '').toString();
168
168
  }
169
169
  render() {
170
- return (h(FormControl, { key: 'e35fce4a2f60bd7710763a15475a2e02d301f9f8', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: this.size, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: 'f718c972dd419f691d57ee7f658c08523a2a6619', part: "base", class: {
170
+ return (h(FormControl, { key: 'b030afca7e885857b87e5274ce3aa1baeb285fdb', inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, helpTextId: this.helpTextId, helpText: this.helpText, hasHelpTextSlot: this.hasHelpTextSlot, errorTextId: this.errorTextId, errorText: this.errorText, errorTextCount: this.errorTextCount, hasErrorTextSlot: this.hasErrorTextSlot, size: this.size, disabled: this.disabled, required: this.required, displayError: this.invalid }, h("div", { key: 'a30bb02f40f681c42212586c0d761cb5759202ed', part: "base", class: {
171
171
  textarea: true,
172
172
  // Sizes
173
173
  'textarea--small': this.size === 'small',
@@ -182,7 +182,7 @@ export class SixTextarea {
182
182
  'textarea--resize-none': this.resize === 'none',
183
183
  'textarea--resize-vertical': this.resize === 'vertical',
184
184
  'textarea--resize-auto': this.resize === 'auto',
185
- } }, h("textarea", { key: '5ce31d7ee232d579f53061388fc5746e4ef685c4', part: "textarea", ref: (el) => (this.nativeTextarea = el), id: this.inputId, class: "textarea__control", name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, rows: this.rows, minLength: this.minlength, maxLength: this.maxlength, value: this.getValue(), autoCapitalize: this.autocapitalize, autoCorrect: this.autocorrect, autoFocus: this.autofocus, spellcheck: this.spellcheck, required: this.required, inputMode: this.inputmode, "aria-labelledby": this.labelId, onChange: this.handleChange, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur }))));
185
+ } }, h("textarea", { key: '29faefaf45d099bc582beefe74160d93a2259873', part: "textarea", ref: (el) => (this.nativeTextarea = el), id: this.inputId, class: "textarea__control", name: this.name, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, rows: this.rows, minLength: this.minlength, maxLength: this.maxlength, value: this.getValue(), autoCapitalize: this.autocapitalize, autoCorrect: this.autocorrect, autoFocus: this.autofocus, spellcheck: this.spellcheck, required: this.required, inputMode: this.inputmode, "aria-labelledby": this.labelId, onChange: this.handleChange, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur }))));
186
186
  }
187
187
  static get is() { return "six-textarea"; }
188
188
  static get encapsulation() { return "shadow"; }
@@ -749,7 +749,7 @@ export class SixTextarea {
749
749
  },
750
750
  "setSelectionRange": {
751
751
  "complexType": {
752
- "signature": "(selectionStart: number, selectionEnd: number, selectionDirection?: 'forward' | 'backward' | 'none') => Promise<void | undefined>",
752
+ "signature": "(selectionStart: number, selectionEnd: number, selectionDirection?: \"forward\" | \"backward\" | \"none\") => Promise<void | undefined>",
753
753
  "parameters": [{
754
754
  "name": "selectionStart",
755
755
  "type": "number",
@@ -778,7 +778,7 @@ export class SixTextarea {
778
778
  },
779
779
  "setRangeText": {
780
780
  "complexType": {
781
- "signature": "(replacement: string, start: number, end: number, selectMode?: 'select' | 'start' | 'end' | 'preserve') => Promise<void>",
781
+ "signature": "(replacement: string, start: number, end: number, selectMode?: \"select\" | \"start\" | \"end\" | \"preserve\") => Promise<void>",
782
782
  "parameters": [{
783
783
  "name": "replacement",
784
784
  "type": "string",
@@ -48,22 +48,22 @@ export class SixTile {
48
48
  this.handleSlotChange();
49
49
  }
50
50
  render() {
51
- return (h("six-tooltip", { key: '5853578cc56dd0d4d217e69d1601db0f92e59cd4', disabled: this.disableTooltip || this.label === '', content: this.label }, h("div", { key: '060c7e5e9096cd16ec0b8c96425456a37b76d151', part: "base", class: {
51
+ return (h("six-tooltip", { key: '1f72a24651f78f933e475c7fc0cbac18d852cc76', disabled: this.disableTooltip || this.label === '', content: this.label }, h("div", { key: 'b45a460c355a9a30d7b5ebe93c63f48a49ed2fa1', part: "base", class: {
52
52
  tile: true,
53
53
  'tile--visible': this.visible,
54
54
  'tile--small': this.size === 'small',
55
55
  'tile--medium': this.size === 'medium',
56
56
  'tile--large': this.size === 'large',
57
57
  'tile--elevated': this.elevated,
58
- } }, h("div", { key: '6292c0165ef776c29ca299cd477e4e42691c2fdd', part: "header", class: "tile__header" }, h("six-icon-button", { key: '3b94f649800cb3d5759acef86a889c50d168bfcc', class: {
58
+ } }, h("div", { key: '2667122e6e2e925005bfd910ee60b6063871b5c1', part: "header", class: "tile__header" }, h("six-icon-button", { key: 'f6f0a96a7d681881bebf254860bca29c80c814d9', class: {
59
59
  'tile__header--hidden': !this.closeable,
60
- }, name: "close", size: closeIconSize(this.size), onClick: this.handleCloseClickEvent })), h("div", { key: '4d49bc9c8bb1f20b5e04f82aa4ac4754f00f511e', part: "body", class: "tile__body" }, this.iconName && (h("six-icon", { onClick: this.handleClickEvent, size: iconSize(this.size) }, this.iconName)), this.hasIconSlot && h("slot", { name: "icon" })), h("div", { key: 'dee1f29b9d143927cb233a371257a3d66b457a32', part: "footer", class: {
60
+ }, name: "close", size: closeIconSize(this.size), onClick: this.handleCloseClickEvent })), h("div", { key: '973436e543725ba0916ba42ff3cf24a8f1420ffa', part: "body", class: "tile__body" }, this.iconName && (h("six-icon", { key: 'c2d43afacf61d8bdbfa9c082f443c6f7fc2d094d', onClick: this.handleClickEvent, size: iconSize(this.size) }, this.iconName)), this.hasIconSlot && h("slot", { key: '0cd3db9f8db8aa6241fcb84358aedbb6372b5f02', name: "icon" })), h("div", { key: 'a2e6c9642fa659248516153989e74f0ac0d99254', part: "footer", class: {
61
61
  'tile__footer--small': this.size === 'small',
62
62
  'tile__footer--medium': this.size === 'medium',
63
63
  'tile__footer--large': this.size === 'large',
64
- } }, this.label && (h("div", { class: {
64
+ } }, this.label && (h("div", { key: 'a9838fb0e6a65053320496233e38eec9f837dfd0', class: {
65
65
  '.label__footer': true,
66
- }, onClick: this.handleClickEvent }, this.label)), this.hasLabelSlot && h("slot", { name: "label" })))));
66
+ }, onClick: this.handleClickEvent }, this.label)), this.hasLabelSlot && h("slot", { key: '9a21ee332f6e5ebefe292138e5204fd27458442d', name: "label" })))));
67
67
  }
68
68
  static get is() { return "six-tile"; }
69
69
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"six-tile.js","sourceRoot":"","sources":["../../../src/components/six-tile/six-tile.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhG,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AAOH,MAAM,OAAO,OAAO;;QAsDV,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAC9C,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;YAEhD,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;gBACrB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACxC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACzD,CAAC;YAED,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;gBACtB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;gBACzC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACzD,CAAC;QACH,CAAC,CAAC;QA6DM,0BAAqB,GAAG,GAAG,EAAE;YACnC,IAAI,CAAC,OAAO,GAAG,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AAC;AACjC,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;IAChC,OAAO;QACL,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,UAAU;KAClB,CAAC,IAAI,CAAsC,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getSlot, hasSlot } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n */\n\n@Component({\n tag: 'six-tile',\n styleUrl: 'six-tile.scss',\n shadow: true,\n})\nexport class SixTile {\n @Element() host!: HTMLSixTileElement;\n\n /** The tile's label. */\n @Prop() label = '';\n\n /** The icon's name. */\n @Prop() iconName?: string;\n\n /** Flag, whether the tile is closeable. */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop() closeable = true;\n\n /** Flag, whether the tile should cast a shadow. */\n @Prop() elevated = false;\n\n /** Enables tile tooltip for tiles */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop() disableTooltip = true;\n\n /** Set to true to disable the tile. */\n @Prop({ reflect: true }) disabled = false;\n\n /** The tile's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n @State() visible = true;\n\n /** Emitted when the tile was closed. */\n @Event({ eventName: 'six-tile-closed' }) sixTileClose!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the tile is selected. */\n @Event({ eventName: 'six-tile-selected' }) sixTileSelected!: EventEmitter<EmptyPayload>;\n\n /** Hides the tile */\n @Method()\n async hide() {\n this.visible = false;\n }\n\n /** Shows the tile */\n @Method()\n async show() {\n this.visible = true;\n }\n\n @State() hasIconSlot = false;\n\n @State() hasLabelSlot = false;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n private handleSlotChange = () => {\n this.hasIconSlot = hasSlot(this.host, 'icon');\n this.hasLabelSlot = hasSlot(this.host, 'label');\n\n if (this.hasIconSlot) {\n const slot = getSlot(this.host, 'icon');\n slot?.addEventListener('click', this.handleClickEvent);\n }\n\n if (this.hasLabelSlot) {\n const slot = getSlot(this.host, 'label');\n slot?.addEventListener('click', this.handleClickEvent);\n }\n };\n\n render() {\n return (\n <six-tooltip disabled={this.disableTooltip || this.label === ''} content={this.label}>\n <div\n part=\"base\"\n class={{\n tile: true,\n 'tile--visible': this.visible,\n 'tile--small': this.size === 'small',\n 'tile--medium': this.size === 'medium',\n 'tile--large': this.size === 'large',\n 'tile--elevated': this.elevated,\n }}\n >\n <div part=\"header\" class=\"tile__header\">\n <six-icon-button\n class={{\n 'tile__header--hidden': !this.closeable,\n }}\n name=\"close\"\n size={closeIconSize(this.size)}\n onClick={this.handleCloseClickEvent}\n />\n </div>\n\n <div part=\"body\" class=\"tile__body\">\n {this.iconName && (\n <six-icon onClick={this.handleClickEvent} size={iconSize(this.size)}>\n {this.iconName}\n </six-icon>\n )}\n {this.hasIconSlot && <slot name=\"icon\"></slot>}\n </div>\n\n <div\n part=\"footer\"\n class={{\n 'tile__footer--small': this.size === 'small',\n 'tile__footer--medium': this.size === 'medium',\n 'tile__footer--large': this.size === 'large',\n }}\n >\n {this.label && (\n <div\n class={{\n '.label__footer': true,\n }}\n onClick={this.handleClickEvent}\n >\n {this.label}\n </div>\n )}\n {this.hasLabelSlot && <slot name=\"label\"></slot>}\n </div>\n </div>\n </six-tooltip>\n );\n }\n\n private handleCloseClickEvent = () => {\n this.visible = false;\n this.sixTileClose.emit();\n };\n\n private handleClickEvent = () => {\n this.sixTileSelected.emit();\n };\n}\n\nconst closeIconSize = (size: string) => {\n return {\n small: 'xxSmall',\n medium: 'medium',\n large: 'medium',\n }[size] as 'xSmall' | 'medium';\n};\n\nconst iconSize = (size: string) => {\n return {\n small: 'xLarge',\n medium: 'xxLarge',\n large: 'xxxLarge',\n }[size] as 'xLarge' | 'xxLarge' | 'xxxLarge';\n};\n"]}
1
+ {"version":3,"file":"six-tile.js","sourceR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AC/C,CAAC,CAAC","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { getSlot, hasSlot } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n */\n\n@Component({\n tag: 'six-tile',\n styleUrl: 'six-tile.scss',\n shadow: true,\n})\nexport class SixTile {\n @Element() host!: HTMLSixTileElement;\n\n /** The tile's label. */\n @Prop() label = '';\n\n /** The icon's name. */\n @Prop() iconName?: string;\n\n /** Flag, whether the tile is closeable. */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop() closeable = true;\n\n /** Flag, whether the tile should cast a shadow. */\n @Prop() elevated = false;\n\n /** Enables tile tooltip for tiles */\n // eslint-disable-next-line @stencil-community/ban-default-true\n @Prop() disableTooltip = true;\n\n /** Set to true to disable the tile. */\n @Prop({ reflect: true }) disabled = false;\n\n /** The tile's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n @State() visible = true;\n\n /** Emitted when the tile was closed. */\n @Event({ eventName: 'six-tile-closed' }) sixTileClose!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the tile is selected. */\n @Event({ eventName: 'six-tile-selected' }) sixTileSelected!: EventEmitter<EmptyPayload>;\n\n /** Hides the tile */\n @Method()\n async hide() {\n this.visible = false;\n }\n\n /** Shows the tile */\n @Method()\n async show() {\n this.visible = true;\n }\n\n @State() hasIconSlot = false;\n\n @State() hasLabelSlot = false;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n private handleSlotChange = () => {\n this.hasIconSlot = hasSlot(this.host, 'icon');\n this.hasLabelSlot = hasSlot(this.host, 'label');\n\n if (this.hasIconSlot) {\n const slot = getSlot(this.host, 'icon');\n slot?.addEventListener('click', this.handleClickEvent);\n }\n\n if (this.hasLabelSlot) {\n const slot = getSlot(this.host, 'label');\n slot?.addEventListener('click', this.handleClickEvent);\n }\n };\n\n render() {\n return (\n <six-tooltip disabled={this.disableTooltip || this.label === ''} content={this.label}>\n <div\n part=\"base\"\n class={{\n tile: true,\n 'tile--visible': this.visible,\n 'tile--small': this.size === 'small',\n 'tile--medium': this.size === 'medium',\n 'tile--large': this.size === 'large',\n 'tile--elevated': this.elevated,\n }}\n >\n <div part=\"header\" class=\"tile__header\">\n <six-icon-button\n class={{\n 'tile__header--hidden': !this.closeable,\n }}\n name=\"close\"\n size={closeIconSize(this.size)}\n onClick={this.handleCloseClickEvent}\n />\n </div>\n\n <div part=\"body\" class=\"tile__body\">\n {this.iconName && (\n <six-icon onClick={this.handleClickEvent} size={iconSize(this.size)}>\n {this.iconName}\n </six-icon>\n )}\n {this.hasIconSlot && <slot name=\"icon\"></slot>}\n </div>\n\n <div\n part=\"footer\"\n class={{\n 'tile__footer--small': this.size === 'small',\n 'tile__footer--medium': this.size === 'medium',\n 'tile__footer--large': this.size === 'large',\n }}\n >\n {this.label && (\n <div\n class={{\n '.label__footer': true,\n }}\n onClick={this.handleClickEvent}\n >\n {this.label}\n </div>\n )}\n {this.hasLabelSlot && <slot name=\"label\"></slot>}\n </div>\n </div>\n </six-tooltip>\n );\n }\n\n private handleCloseClickEvent = () => {\n this.visible = false;\n this.sixTileClose.emit();\n };\n\n private handleClickEvent = () => {\n this.sixTileSelected.emit();\n };\n}\n\nconst closeIconSize = (size: string) => {\n return {\n small: 'xxSmall',\n medium: 'medium',\n large: 'medium',\n }[size] as 'xSmall' | 'medium';\n};\n\nconst iconSize = (size: string) => {\n return {\n small: 'xLarge',\n medium: 'xxLarge',\n large: 'xxxLarge',\n }[size] as 'xLarge' | 'xxLarge' | 'xxxLarge';\n};\n"]}
@@ -285,10 +285,10 @@ export class SixTimepicker {
285
285
  } }, icon));
286
286
  }
287
287
  render() {
288
- return (h("div", { key: '19badfa42a1f8d5ef4b6b385780e88dbdceaa9e4', part: "container", ref: (el) => (this.wrapper = el), class: "timepicker__container" }, h("six-input", { key: '7cd0508f766099136b7b85bd15dce64170ec3eca', ref: (el) => (this.inputElement = el), part: "input", onClick: () => this.openPopup(), value: this.value, placeholder: this.placeholder, readonly: this.readonly, disabled: this.disabled, errorTextCount: this.errorTextCount, errorText: this.errorText, invalid: this.invalid, size: this.size, name: this.name, label: this.label, required: this.required, class: {
288
+ return (h("div", { key: '58240c7c32227225d1811fa59e9cf336aad03a4d', part: "container", ref: (el) => (this.wrapper = el), class: "timepicker__container" }, h("six-input", { key: '1b6e9b28d997b67a933d055fa3e73e3c0751aa53', ref: (el) => (this.inputElement = el), part: "input", onClick: () => this.openPopup(), value: this.value, placeholder: this.placeholder, readonly: this.readonly, disabled: this.disabled, errorTextCount: this.errorTextCount, errorText: this.errorText, invalid: this.invalid, size: this.size, name: this.name, label: this.label, required: this.required, class: {
289
289
  'input--empty': this.value === '',
290
290
  'input--hide': this.inline,
291
- } }, this.renderCustomIcon(), this.renderClearable(), hasSlot(this.host, 'label') ? (h("span", { slot: "label" }, h("slot", { name: "label" }))) : null, hasSlot(this.host, 'error-text') ? (h("span", { slot: "error-text" }, h("slot", { name: "error-text" }))) : null), this.open && (h("div", { ref: (el) => (this.popup = el), part: "popup", class: {
291
+ } }, this.renderCustomIcon(), this.renderClearable(), hasSlot(this.host, 'label') ? (h("span", { slot: "label" }, h("slot", { name: "label" }))) : null, hasSlot(this.host, 'error-text') ? (h("span", { slot: "error-text" }, h("slot", { name: "error-text" }))) : null), this.open && (h("div", { key: 'b762116d0af1bc11d7f2cbb255b071e8fe3b52cf', ref: (el) => (this.popup = el), part: "popup", class: {
292
292
  timepicker__popup: true,
293
293
  'timepicker__popup--is-up': this.placement == null ? this.placement === 'top' : this.isPopupContentUp,
294
294
  'timepicker__popup--is-inline': this.inline,
@@ -1 +1 @@
1
- {"version":3,"file":"six-timepicker.js","sourceRoot":"","sources":["../../../src/components/six-timepicker/six-timepicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport { ItemPickerType } from '../six-item-picker/types';\nimport {\n createTimeString,\n getCurrentTime,\n isValidTimeString,\n parseTimeString,\n Time,\n TimeFormat,\n TimeProperties,\n} from '../../utils/time.util';\nimport { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';\nimport { SixItemPickerChangePayload } from '../six-item-picker/six-item-picker';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { adjustPopupForHoisting, movePopup } from '../../utils/popup';\n\nexport interface SixTimepickerChange {\n value?: Time;\n valueAsString: string;\n changedProperty?: string;\n}\n\ninterface SixTimeUnitPickerParams {\n min?: number;\n max?: number;\n items?: string[];\n type?: ItemPickerType;\n class?: string;\n paddingLength?: number;\n propertyName: TimeProperties;\n}\n\nconst MIN_POPUP_HEIGHT = 145;\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part input - The input field\n * @part container - The container of whole component\n * @part popup - The popup of the timepicker component\n *\n */\n@Component({\n tag: 'six-timepicker',\n styleUrl: 'six-timepicker.scss',\n shadow: true,\n})\nexport class SixTimepicker {\n private eventListeners = new EventListeners();\n private popup?: HTMLElement;\n private wrapper?: HTMLElement;\n private inputElement?: HTMLSixInputElement;\n\n @Element() host!: HTMLSixTimepickerElement;\n\n /**\n * Define the time format. Valid formats are:\n *\n * HH:mm:ss\n * hh:mm:ss:aa\n * HH:mm:ss:ms\n * hh:mm:ss:ms:aa\n * HH:mm\n * hh:mm:aa\n * HH\n * hh:aa\n * mm\n * ss\n * ms\n *\n * where HH is the 24 hour format\n * and hh is the 12 hour format\n *\n * Please notice that when using the 12-hour-clock (hh)\n * you always need a period indicator (aa). So the time can be parsed as either am or pm\n * */\n @Prop() format: TimeFormat = 'HH:mm:ss';\n\n /**\n * Define the separator to be shown between the time unit pickers.\n * Please be aware that this property will modify the displayed separator only.\n * The separator for a timestring is always expected to be a colon (eg. '13:52:20')\n * */\n @Prop() separator = ':';\n\n /**\n * The value of the timepicker provided as a string. The string mast match the provided format (or default format)\n */\n @Prop({ mutable: true }) value = '';\n\n /** Indicates whether the timepicker dropdown is open on startup. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Indicates whether the timepicker should be shown as an inline (always open) component */\n @Prop({ reflect: true }) inline = false;\n\n /**\n * If `true` the user can only select a time via the timepicker but not directly edit the input field.\n */\n @Prop() readonly = false;\n\n /**\n * If `true` the component is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * The enforced placement of the dropdown panel.\n */\n @Prop() placement?: 'top' | 'bottom';\n\n /** Timepicker size. */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /**\n * The placeholder defines what text to be shown on the input element\n */\n @Prop() placeholder?: string;\n\n /** The input's error text. Alternatively, you can use the error-text slot. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** The input's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set the position of the icon */\n @Prop() iconPosition: 'left' | 'right' = 'left';\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger faster switching between timeunits (e.g. hours).\n */\n @Prop() timeout = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Set the amount of time, in milliseconds, to wait between switching to next timeunit (e.g. next hour) when mouse button is held pressed.\n */\n @Prop() interval = DEFAULT_DEBOUNCE_INSANELY_FAST;\n\n /**\n * The defaultTime defines the default setting for the timepicker when you open the popup. Default time must match the provided format.\n */\n @Prop() defaultTime?: string;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `six-timepicker-change-debounced` event.\n * If you want your change debounce event to not trigger when keeping the nav button pressed before, make sure debounce\n * is a bit bigger than timeout, otherwise keeping the button pressed will trigger the event twice: once you click\n * (and keep pressed) and once you release\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Emitted when the timepicker's value changes\n */\n @Event({ eventName: 'six-timepicker-change' }) sixChange!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the timepicker's value changes, but debounced\n */\n @Event({ eventName: 'six-timepicker-change-debounced' }) sixChangeDebounced!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the clear button is activated.\n */\n @Event({ eventName: 'six-timepicker-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n @State() isPopupContentUp = false;\n\n @State() isDropDownContentUp = false;\n\n @Listen('resize', { target: 'window' })\n async resizeHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n @Listen('scroll', { target: 'window' })\n async scrollHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n this.updateValue();\n }\n\n /** Sets focus on the datepickers input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.inputElement?.setFocus(options);\n }\n\n /*\n * Internally the six-timepicker uses a standardized representation of time, so we don't have a mess,\n * when switching between formats\n */\n @State() private popupValue: Time = {};\n\n connectedCallback() {\n this.eventListeners.forward('six-timepicker-change', 'change', this.host);\n }\n\n componentWillLoad() {\n this.updateValue();\n\n if (this.inline) {\n this.open = true;\n }\n\n if (this.open) {\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n componentDidLoad() {\n if (this.inputElement == null) return;\n const inputElement = this.inputElement;\n\n // emit debounced change event\n this.eventListeners.add(\n this.host,\n 'six-timepicker-change',\n debounce((event: Event) => this.sixChangeDebounced.emit((event as CustomEvent).detail), this.debounce)\n );\n\n // update value and popup value based on input-element value\n this.eventListeners.add(\n inputElement,\n 'six-input-input',\n debounce((event: Event) => {\n event.stopPropagation();\n\n // emit empty event if time string is invalid\n if (!isValidTimeString(inputElement.value, this.format)) {\n this.value = inputElement.value;\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n return;\n }\n\n // update value and popup value, and emit the new value\n this.value = inputElement.value;\n this.popupValue = parseTimeString(inputElement.value, this.format);\n this.sixChange.emit({\n value: this.popupValue,\n valueAsString: createTimeString(this.popupValue, this.format),\n });\n }, this.debounce)\n );\n }\n\n componentDidRender() {\n adjustPopupForHoisting(\n this.hoist,\n this.popup,\n this.inputElement,\n this.wrapper,\n MIN_POPUP_HEIGHT,\n (isUp) => (this.isDropDownContentUp = isUp)\n );\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n private updateValue() {\n // normalize value\n if (typeof this.value !== 'string' || !isValidTimeString(this.value, this.format)) {\n this.value = '';\n }\n\n // update popup value\n if (this.value === '') {\n if (this.defaultTime == null) {\n this.popupValue = getCurrentTime(this.is24HourClock());\n } else {\n this.popupValue = parseTimeString(this.defaultTime, this.format);\n }\n } else {\n this.popupValue = parseTimeString(this.value, this.format);\n }\n }\n\n private calcIsPopupContentUp() {\n if (this.inputElement == null || this.wrapper == null) {\n return;\n }\n\n const inputBoundingRect = this.inputElement.getBoundingClientRect();\n const wrapperBoundingRect = this.wrapper.getBoundingClientRect();\n const minPopupHeight = Math.max(wrapperBoundingRect.height, MIN_POPUP_HEIGHT);\n\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n this.isPopupContentUp = moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + minPopupHeight;\n }\n\n private moveOpenHoistedPopup() {\n movePopup(this.hoist, this.open, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n private handlePickerChange = (event: CustomEvent<SixItemPickerChangePayload>, property: TimeProperties) => {\n // stop propagation, since the timepicker should not expose the events of the underlying item-picker\n event.stopPropagation();\n if (this.popupValue == null) {\n return;\n }\n\n // update the internal state\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.popupValue[property] = event.detail;\n\n const timeString = createTimeString(this.popupValue, this.format);\n\n // update the input value\n this.value = timeString;\n\n // emit change event\n this.sixChange.emit({\n changedProperty: property,\n value: this.popupValue,\n valueAsString: timeString,\n });\n };\n\n private getSixTimeUnitPicker(params: SixTimeUnitPickerParams) {\n return (\n <six-item-picker\n class={params.class}\n timeout={this.timeout}\n interval={this.interval}\n padded\n min={params.min}\n max={params.max}\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n value={this.popupValue[params.propertyName]}\n items={params.items}\n type={params.type || ItemPickerType.NUMBER}\n padding-length={params.paddingLength}\n onSix-item-picker-change={(event) => this.handlePickerChange(event, params.propertyName)}\n ></six-item-picker>\n );\n }\n\n private getHour24Picker() {\n if (!this.is24HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 23, propertyName: 'hours' });\n }\n\n private is24HourClock() {\n return this.format.includes('HH');\n }\n\n private getHour12Picker() {\n if (!this.is12HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 11, propertyName: 'hours' });\n }\n\n private is12HourClock() {\n return this.format.includes('hh');\n }\n\n private getAmPmPicker() {\n if (!this.is12HourClock()) {\n return;\n }\n const items = ['AM', 'PM'];\n return this.getSixTimeUnitPicker({\n items,\n type: ItemPickerType.CUSTOM,\n propertyName: 'period',\n });\n }\n\n private getMinutePicker() {\n if (!this.format.includes('mm')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'minutes' });\n }\n\n private getSecondsPicker() {\n if (!this.format.includes('ss')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'seconds' });\n }\n\n private getMillisecondsPicker() {\n if (!this.format.includes('ms')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({\n min: 0,\n max: 999,\n class: 'timepicker__item--wide',\n paddingLength: 3,\n propertyName: 'milliseconds',\n });\n }\n\n private getSeparator() {\n return (\n <div class=\"timepicker__separator\">\n <span>{this.separator}</span>\n </div>\n );\n }\n\n private getContent() {\n const elementsInOrder = [\n this.getHour24Picker(),\n this.getHour12Picker(),\n this.getMinutePicker(),\n this.getSecondsPicker(),\n this.getMillisecondsPicker(),\n ];\n\n const visibleElements = elementsInOrder.filter((el) => el !== undefined);\n\n return visibleElements.map((el, idx) => {\n if (idx === visibleElements.length - 1) {\n return [el];\n }\n\n return [el, this.getSeparator()];\n });\n }\n\n private openPopup() {\n if (!this.open && !this.disabled) {\n this.open = true;\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n private closePopup() {\n if (this.inline) {\n return;\n }\n\n this.open = false;\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n }\n\n private handleDocumentMouseDown = (event: Event) => {\n // Close when clicking outside the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.host)) {\n this.closePopup();\n return;\n }\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.value = '';\n this.sixClear.emit();\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n };\n\n private renderClearable() {\n return (\n this.clearable && (\n <button\n slot=\"suffix\"\n class={{\n timepicker_clear: true,\n 'timepicker_clear--right': this.iconPosition === 'left',\n 'timepicker_clear--left': this.iconPosition === 'right',\n }}\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n >\n <six-icon size=\"small\">clear</six-icon>\n </button>\n )\n );\n }\n\n private renderCustomIcon() {\n const icon = hasSlot(this.host, 'custom-icon') ? (\n <slot name=\"custom-icon\"></slot>\n ) : (\n <six-icon size={this.size === 'large' ? 'medium' : this.size}>watch_later</six-icon>\n );\n\n return (\n <span\n slot=\"prefix\"\n part=\"icon\"\n class={{\n prefix: true,\n 'prefix--right': this.iconPosition === 'right',\n }}\n >\n {icon}\n </span>\n );\n }\n\n render() {\n return (\n <div part=\"container\" ref={(el) => (this.wrapper = el)} class=\"timepicker__container\">\n <six-input\n ref={(el) => (this.inputElement = el)}\n part=\"input\"\n onClick={() => this.openPopup()}\n value={this.value}\n placeholder={this.placeholder}\n readonly={this.readonly}\n disabled={this.disabled}\n errorTextCount={this.errorTextCount}\n errorText={this.errorText}\n invalid={this.invalid}\n size={this.size}\n name={this.name}\n label={this.label}\n required={this.required}\n class={{\n 'input--empty': this.value === '',\n 'input--hide': this.inline,\n }}\n >\n {this.renderCustomIcon()}\n {this.renderClearable()}\n {hasSlot(this.host, 'label') ? (\n <span slot=\"label\">\n <slot name=\"label\" />\n </span>\n ) : null}\n {hasSlot(this.host, 'error-text') ? (\n <span slot=\"error-text\">\n <slot name=\"error-text\" />\n </span>\n ) : null}\n </six-input>\n {this.open && (\n <div\n ref={(el) => (this.popup = el)}\n part=\"popup\"\n class={{\n timepicker__popup: true,\n 'timepicker__popup--is-up': this.placement == null ? this.placement === 'top' : this.isPopupContentUp,\n 'timepicker__popup--is-inline': this.inline,\n }}\n >\n {...this.getContent()}\n {this.getAmPmPicker()}\n </div>\n )}\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"six-timepicker.js","sourceRoot":"","sources":["../../../src/components/six-timepicker/six-timepicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC/G,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,eAAe,GAIhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAEhH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAkBtE,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAE7B;;;;;;;;;;GAUG;AAMH,MAAM,OAAO,aAAa;;QAChB,mBAAc,GAAG,IAAI,cAAc,EAAE,CAAC;QAuRtC,uBAAkB,GAAG,CAAC,KAA8C,EAAE,QAAwB,EAAE,EAAE;YACxG,oGAAoG;YACpG,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,IAAI,IAAI,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;gBAC5B,OAAO;YACT,CAAC;YAED,4BAA4B;YAC5B,6DA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K,EAAE;oBACL,iBAAiB,EAAE,IAAI;oBACvB,0BAA0B,EAAE,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB;oBACrG,8BAA8B,EAAE,IAAI,CAAC,MAAM;iBAC5C;mBAEG,IAAI,CAAC,UAAU,EAAE;gBACpB,IAAI,CAAC,aAAa,EAAE,CACjB,CACP,CACG,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Listen, Method, Prop, State, Watch } from '@stencil/core';\nimport { ItemPickerType } from '../six-item-picker/types';\nimport {\n createTimeString,\n getCurrentTime,\n isValidTimeString,\n parseTimeString,\n Time,\n TimeFormat,\n TimeProperties,\n} from '../../utils/time.util';\nimport { debounce, DEFAULT_DEBOUNCE_FAST, DEFAULT_DEBOUNCE_INSANELY_FAST } from '../../utils/execution-control';\nimport { SixItemPickerChangePayload } from '../six-item-picker/six-item-picker';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { adjustPopupForHoisting, movePopup } from '../../utils/popup';\n\nexport interface SixTimepickerChange {\n value?: Time;\n valueAsString: string;\n changedProperty?: string;\n}\n\ninterface SixTimeUnitPickerParams {\n min?: number;\n max?: number;\n items?: string[];\n type?: ItemPickerType;\n class?: string;\n paddingLength?: number;\n propertyName: TimeProperties;\n}\n\nconst MIN_POPUP_HEIGHT = 145;\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part input - The input field\n * @part container - The container of whole component\n * @part popup - The popup of the timepicker component\n *\n */\n@Component({\n tag: 'six-timepicker',\n styleUrl: 'six-timepicker.scss',\n shadow: true,\n})\nexport class SixTimepicker {\n private eventListeners = new EventListeners();\n private popup?: HTMLElement;\n private wrapper?: HTMLElement;\n private inputElement?: HTMLSixInputElement;\n\n @Element() host!: HTMLSixTimepickerElement;\n\n /**\n * Define the time format. Valid formats are:\n *\n * HH:mm:ss\n * hh:mm:ss:aa\n * HH:mm:ss:ms\n * hh:mm:ss:ms:aa\n * HH:mm\n * hh:mm:aa\n * HH\n * hh:aa\n * mm\n * ss\n * ms\n *\n * where HH is the 24 hour format\n * and hh is the 12 hour format\n *\n * Please notice that when using the 12-hour-clock (hh)\n * you always need a period indicator (aa). So the time can be parsed as either am or pm\n * */\n @Prop() format: TimeFormat = 'HH:mm:ss';\n\n /**\n * Define the separator to be shown between the time unit pickers.\n * Please be aware that this property will modify the displayed separator only.\n * The separator for a timestring is always expected to be a colon (eg. '13:52:20')\n * */\n @Prop() separator = ':';\n\n /**\n * The value of the timepicker provided as a string. The string mast match the provided format (or default format)\n */\n @Prop({ mutable: true }) value = '';\n\n /** Indicates whether the timepicker dropdown is open on startup. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** Indicates whether the timepicker should be shown as an inline (always open) component */\n @Prop({ reflect: true }) inline = false;\n\n /**\n * If `true` the user can only select a time via the timepicker but not directly edit the input field.\n */\n @Prop() readonly = false;\n\n /**\n * If `true` the component is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * The enforced placement of the dropdown panel.\n */\n @Prop() placement?: 'top' | 'bottom';\n\n /** Timepicker size. */\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /**\n * The placeholder defines what text to be shown on the input element\n */\n @Prop() placeholder?: string;\n\n /** The input's error text. Alternatively, you can use the error-text slot. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** The input's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** The input's name attribute. */\n @Prop({ reflect: true }) name = '';\n\n /** Set to true to add a clear button when the input is populated. */\n @Prop() clearable = false;\n\n /** Set the position of the icon */\n @Prop() iconPosition: 'left' | 'right' = 'left';\n\n /**\n * Enable this option to prevent the panel from being clipped when the component is placed inside a container with\n * `overflow: auto|scroll`.\n */\n @Prop() hoist = false;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger faster switching between timeunits (e.g. hours).\n */\n @Prop() timeout = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Set the amount of time, in milliseconds, to wait between switching to next timeunit (e.g. next hour) when mouse button is held pressed.\n */\n @Prop() interval = DEFAULT_DEBOUNCE_INSANELY_FAST;\n\n /**\n * The defaultTime defines the default setting for the timepicker when you open the popup. Default time must match the provided format.\n */\n @Prop() defaultTime?: string;\n\n /**\n * Set the amount of time, in milliseconds, to wait to trigger the `six-timepicker-change-debounced` event.\n * If you want your change debounce event to not trigger when keeping the nav button pressed before, make sure debounce\n * is a bit bigger than timeout, otherwise keeping the button pressed will trigger the event twice: once you click\n * (and keep pressed) and once you release\n */\n @Prop() debounce = DEFAULT_DEBOUNCE_FAST;\n\n /**\n * Emitted when the timepicker's value changes\n */\n @Event({ eventName: 'six-timepicker-change' }) sixChange!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the timepicker's value changes, but debounced\n */\n @Event({ eventName: 'six-timepicker-change-debounced' }) sixChangeDebounced!: EventEmitter<SixTimepickerChange>;\n\n /**\n * Emitted when the clear button is activated.\n */\n @Event({ eventName: 'six-timepicker-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n @State() isPopupContentUp = false;\n\n @State() isDropDownContentUp = false;\n\n @Listen('resize', { target: 'window' })\n async resizeHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n @Listen('scroll', { target: 'window' })\n async scrollHandler() {\n this.calcIsPopupContentUp();\n this.moveOpenHoistedPopup();\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n this.updateValue();\n }\n\n /** Sets focus on the datepickers input. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.inputElement?.setFocus(options);\n }\n\n /*\n * Internally the six-timepicker uses a standardized representation of time, so we don't have a mess,\n * when switching between formats\n */\n @State() private popupValue: Time = {};\n\n connectedCallback() {\n this.eventListeners.forward('six-timepicker-change', 'change', this.host);\n }\n\n componentWillLoad() {\n this.updateValue();\n\n if (this.inline) {\n this.open = true;\n }\n\n if (this.open) {\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n componentDidLoad() {\n if (this.inputElement == null) return;\n const inputElement = this.inputElement;\n\n // emit debounced change event\n this.eventListeners.add(\n this.host,\n 'six-timepicker-change',\n debounce((event: Event) => this.sixChangeDebounced.emit((event as CustomEvent).detail), this.debounce)\n );\n\n // update value and popup value based on input-element value\n this.eventListeners.add(\n inputElement,\n 'six-input-input',\n debounce((event: Event) => {\n event.stopPropagation();\n\n // emit empty event if time string is invalid\n if (!isValidTimeString(inputElement.value, this.format)) {\n this.value = inputElement.value;\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n return;\n }\n\n // update value and popup value, and emit the new value\n this.value = inputElement.value;\n this.popupValue = parseTimeString(inputElement.value, this.format);\n this.sixChange.emit({\n value: this.popupValue,\n valueAsString: createTimeString(this.popupValue, this.format),\n });\n }, this.debounce)\n );\n }\n\n componentDidRender() {\n adjustPopupForHoisting(\n this.hoist,\n this.popup,\n this.inputElement,\n this.wrapper,\n MIN_POPUP_HEIGHT,\n (isUp) => (this.isDropDownContentUp = isUp)\n );\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n private updateValue() {\n // normalize value\n if (typeof this.value !== 'string' || !isValidTimeString(this.value, this.format)) {\n this.value = '';\n }\n\n // update popup value\n if (this.value === '') {\n if (this.defaultTime == null) {\n this.popupValue = getCurrentTime(this.is24HourClock());\n } else {\n this.popupValue = parseTimeString(this.defaultTime, this.format);\n }\n } else {\n this.popupValue = parseTimeString(this.value, this.format);\n }\n }\n\n private calcIsPopupContentUp() {\n if (this.inputElement == null || this.wrapper == null) {\n return;\n }\n\n const inputBoundingRect = this.inputElement.getBoundingClientRect();\n const wrapperBoundingRect = this.wrapper.getBoundingClientRect();\n const minPopupHeight = Math.max(wrapperBoundingRect.height, MIN_POPUP_HEIGHT);\n\n const moreSpaceInTop = inputBoundingRect.y > window.innerHeight / 2;\n this.isPopupContentUp = moreSpaceInTop && window.innerHeight < inputBoundingRect.bottom + minPopupHeight;\n }\n\n private moveOpenHoistedPopup() {\n movePopup(this.hoist, this.open, this.popup, this.inputElement, this.wrapper, MIN_POPUP_HEIGHT);\n }\n\n private handlePickerChange = (event: CustomEvent<SixItemPickerChangePayload>, property: TimeProperties) => {\n // stop propagation, since the timepicker should not expose the events of the underlying item-picker\n event.stopPropagation();\n if (this.popupValue == null) {\n return;\n }\n\n // update the internal state\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.popupValue[property] = event.detail;\n\n const timeString = createTimeString(this.popupValue, this.format);\n\n // update the input value\n this.value = timeString;\n\n // emit change event\n this.sixChange.emit({\n changedProperty: property,\n value: this.popupValue,\n valueAsString: timeString,\n });\n };\n\n private getSixTimeUnitPicker(params: SixTimeUnitPickerParams) {\n return (\n <six-item-picker\n class={params.class}\n timeout={this.timeout}\n interval={this.interval}\n padded\n min={params.min}\n max={params.max}\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n value={this.popupValue[params.propertyName]}\n items={params.items}\n type={params.type || ItemPickerType.NUMBER}\n padding-length={params.paddingLength}\n onSix-item-picker-change={(event) => this.handlePickerChange(event, params.propertyName)}\n ></six-item-picker>\n );\n }\n\n private getHour24Picker() {\n if (!this.is24HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 23, propertyName: 'hours' });\n }\n\n private is24HourClock() {\n return this.format.includes('HH');\n }\n\n private getHour12Picker() {\n if (!this.is12HourClock()) {\n return;\n }\n return this.getSixTimeUnitPicker({ min: 0, max: 11, propertyName: 'hours' });\n }\n\n private is12HourClock() {\n return this.format.includes('hh');\n }\n\n private getAmPmPicker() {\n if (!this.is12HourClock()) {\n return;\n }\n const items = ['AM', 'PM'];\n return this.getSixTimeUnitPicker({\n items,\n type: ItemPickerType.CUSTOM,\n propertyName: 'period',\n });\n }\n\n private getMinutePicker() {\n if (!this.format.includes('mm')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'minutes' });\n }\n\n private getSecondsPicker() {\n if (!this.format.includes('ss')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({ min: 0, max: 59, propertyName: 'seconds' });\n }\n\n private getMillisecondsPicker() {\n if (!this.format.includes('ms')) {\n return;\n }\n\n return this.getSixTimeUnitPicker({\n min: 0,\n max: 999,\n class: 'timepicker__item--wide',\n paddingLength: 3,\n propertyName: 'milliseconds',\n });\n }\n\n private getSeparator() {\n return (\n <div class=\"timepicker__separator\">\n <span>{this.separator}</span>\n </div>\n );\n }\n\n private getContent() {\n const elementsInOrder = [\n this.getHour24Picker(),\n this.getHour12Picker(),\n this.getMinutePicker(),\n this.getSecondsPicker(),\n this.getMillisecondsPicker(),\n ];\n\n const visibleElements = elementsInOrder.filter((el) => el !== undefined);\n\n return visibleElements.map((el, idx) => {\n if (idx === visibleElements.length - 1) {\n return [el];\n }\n\n return [el, this.getSeparator()];\n });\n }\n\n private openPopup() {\n if (!this.open && !this.disabled) {\n this.open = true;\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n }\n }\n\n private closePopup() {\n if (this.inline) {\n return;\n }\n\n this.open = false;\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n }\n\n private handleDocumentMouseDown = (event: Event) => {\n // Close when clicking outside the containing element\n const path = event.composedPath() as EventTarget[];\n if (!path.includes(this.host)) {\n this.closePopup();\n return;\n }\n };\n\n private handleClearClick = (event: MouseEvent) => {\n event.stopPropagation();\n this.value = '';\n this.sixClear.emit();\n this.sixChange.emit({\n value: {},\n valueAsString: '',\n });\n };\n\n private renderClearable() {\n return (\n this.clearable && (\n <button\n slot=\"suffix\"\n class={{\n timepicker_clear: true,\n 'timepicker_clear--right': this.iconPosition === 'left',\n 'timepicker_clear--left': this.iconPosition === 'right',\n }}\n type=\"button\"\n onClick={this.handleClearClick}\n tabindex=\"-1\"\n >\n <six-icon size=\"small\">clear</six-icon>\n </button>\n )\n );\n }\n\n private renderCustomIcon() {\n const icon = hasSlot(this.host, 'custom-icon') ? (\n <slot name=\"custom-icon\"></slot>\n ) : (\n <six-icon size={this.size === 'large' ? 'medium' : this.size}>watch_later</six-icon>\n );\n\n return (\n <span\n slot=\"prefix\"\n part=\"icon\"\n class={{\n prefix: true,\n 'prefix--right': this.iconPosition === 'right',\n }}\n >\n {icon}\n </span>\n );\n }\n\n render() {\n return (\n <div part=\"container\" ref={(el) => (this.wrapper = el)} class=\"timepicker__container\">\n <six-input\n ref={(el) => (this.inputElement = el)}\n part=\"input\"\n onClick={() => this.openPopup()}\n value={this.value}\n placeholder={this.placeholder}\n readonly={this.readonly}\n disabled={this.disabled}\n errorTextCount={this.errorTextCount}\n errorText={this.errorText}\n invalid={this.invalid}\n size={this.size}\n name={this.name}\n label={this.label}\n required={this.required}\n class={{\n 'input--empty': this.value === '',\n 'input--hide': this.inline,\n }}\n >\n {this.renderCustomIcon()}\n {this.renderClearable()}\n {hasSlot(this.host, 'label') ? (\n <span slot=\"label\">\n <slot name=\"label\" />\n </span>\n ) : null}\n {hasSlot(this.host, 'error-text') ? (\n <span slot=\"error-text\">\n <slot name=\"error-text\" />\n </span>\n ) : null}\n </six-input>\n {this.open && (\n <div\n ref={(el) => (this.popup = el)}\n part=\"popup\"\n class={{\n timepicker__popup: true,\n 'timepicker__popup--is-up': this.placement == null ? this.placement === 'top' : this.isPopupContentUp,\n 'timepicker__popup--is-inline': this.inline,\n }}\n >\n {...this.getContent()}\n {this.getAmPmPicker()}\n </div>\n )}\n </div>\n );\n }\n}\n"]}