@six-group/ui-library 0.0.0-insider.e5360cd → 0.0.0-insider.ec3ffc2

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 (1819) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/error-messages-6e8049a4.js +119 -0
  4. package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
  5. package/dist/cjs/event-listeners-9fb878f1.js +61 -0
  6. package/dist/cjs/event-listeners-9fb878f1.js.map +1 -0
  7. package/dist/cjs/{execution-control-b4707294.js → execution-control-d728da70.js} +15 -15
  8. package/dist/cjs/{execution-control-b4707294.js.map → execution-control-d728da70.js.map} +1 -1
  9. package/dist/cjs/focus-visible-e2c9255a.js +47 -0
  10. package/dist/cjs/{focus-visible-ae2470dd.js.map → focus-visible-e2c9255a.js.map} +1 -1
  11. package/dist/cjs/form-9ebaae7c.js +20 -0
  12. package/dist/cjs/{form-2df8c5bb.js.map → form-9ebaae7c.js.map} +1 -1
  13. package/dist/cjs/form-control-b39f1df5.js +36 -0
  14. package/dist/cjs/form-control-b39f1df5.js.map +1 -0
  15. package/dist/cjs/index-417a06c8.js +1948 -0
  16. package/dist/cjs/index-417a06c8.js.map +1 -0
  17. package/dist/cjs/index.cjs.js +55 -87
  18. package/dist/cjs/index.cjs.js.map +1 -1
  19. package/dist/cjs/loader.cjs.js +5 -3
  20. package/dist/cjs/loader.cjs.js.map +1 -1
  21. package/dist/cjs/modal-bd7fc5bc.js +35 -0
  22. package/dist/cjs/modal-bd7fc5bc.js.map +1 -0
  23. package/dist/cjs/{popover-2df7e154.js → popover-1e7c09f1.js} +99 -99
  24. package/dist/cjs/popover-1e7c09f1.js.map +1 -0
  25. package/dist/cjs/popup-e854acda.js +103 -0
  26. package/dist/cjs/popup-e854acda.js.map +1 -0
  27. package/dist/cjs/scroll-68033901.js +68 -0
  28. package/dist/cjs/{scroll-2c4200dc.js.map → scroll-68033901.js.map} +1 -1
  29. package/dist/cjs/six-alert.cjs.entry.js +144 -111
  30. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-avatar.cjs.entry.js +23 -22
  32. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-badge.cjs.entry.js +25 -24
  34. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-button.cjs.entry.js +98 -96
  36. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  37. package/dist/cjs/six-card.cjs.entry.js +10 -9
  38. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  39. package/dist/cjs/six-checkbox.cjs.entry.js +113 -112
  40. package/dist/cjs/six-checkbox.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-datepicker.cjs.entry.js +864 -835
  42. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-details.cjs.entry.js +129 -128
  44. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-dialog.cjs.entry.js +115 -131
  46. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-drawer.cjs.entry.js +132 -149
  48. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  49. package/dist/cjs/six-dropdown_3.cjs.entry.js +818 -0
  50. package/dist/cjs/six-dropdown_3.cjs.entry.js.map +1 -0
  51. package/dist/cjs/six-error-page.cjs.entry.js +84 -83
  52. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  53. package/dist/cjs/six-error.cjs.entry.js +10 -9
  54. package/dist/cjs/six-error.cjs.entry.js.map +1 -1
  55. package/dist/cjs/six-file-list-item.cjs.entry.js +36 -35
  56. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-file-list.cjs.entry.js +9 -8
  58. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-file-upload.cjs.entry.js +120 -100
  60. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-footer.cjs.entry.js +10 -9
  62. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-group-label.cjs.entry.js +45 -44
  64. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  65. package/dist/cjs/six-header-dropdown-item.cjs.entry.js +45 -0
  66. package/dist/cjs/six-header-dropdown-item.cjs.entry.js.map +1 -0
  67. package/dist/cjs/six-header-item_2.cjs.entry.js +47 -0
  68. package/dist/cjs/six-header-item_2.cjs.entry.js.map +1 -0
  69. package/dist/cjs/six-header-menu-button.cjs.entry.js +23 -0
  70. package/dist/cjs/six-header-menu-button.cjs.entry.js.map +1 -0
  71. package/dist/cjs/six-header.cjs.entry.js +189 -157
  72. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-icon-button.cjs.entry.js +40 -33
  74. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  75. package/dist/cjs/six-icon.cjs.entry.js +24 -23
  76. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  77. package/dist/cjs/six-input.cjs.entry.js +203 -191
  78. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-item-picker.cjs.entry.js +407 -310
  80. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-language-switcher.cjs.entry.js +53 -48
  82. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-layout-grid.cjs.entry.js +22 -21
  84. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-main-container.cjs.entry.js +11 -10
  86. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-menu-divider.cjs.entry.js +10 -9
  88. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-menu-label.cjs.entry.js +10 -9
  90. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  91. package/dist/cjs/six-picto.cjs.entry.js +16 -15
  92. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-progress-bar.cjs.entry.js +17 -16
  94. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-progress-ring.cjs.entry.js +32 -31
  96. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-radio.cjs.entry.js +106 -105
  98. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-range.cjs.entry.js +200 -189
  100. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-root.cjs.entry.js +13 -31
  102. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  103. package/dist/cjs/six-search-field.cjs.entry.js +46 -45
  104. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  105. package/dist/cjs/six-select.cjs.entry.js +539 -365
  106. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  107. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +58 -47
  108. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  109. package/dist/cjs/six-sidebar-item.cjs.entry.js +19 -16
  110. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  111. package/dist/cjs/six-sidebar.cjs.entry.js +176 -175
  112. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  113. package/dist/cjs/six-spinner.cjs.entry.js +50 -16
  114. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  115. package/dist/cjs/six-stage-indicator.cjs.entry.js +23 -0
  116. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
  117. package/dist/cjs/six-switch.cjs.entry.js +109 -108
  118. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  119. package/dist/cjs/six-tab-group.cjs.entry.js +242 -216
  120. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  121. package/dist/cjs/six-tab-panel.cjs.entry.js +16 -15
  122. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  123. package/dist/cjs/six-tab.cjs.entry.js +57 -56
  124. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  125. package/dist/cjs/six-tag.cjs.entry.js +55 -54
  126. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  127. package/dist/cjs/six-textarea.cjs.entry.js +183 -182
  128. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  129. package/dist/cjs/six-tile.cjs.entry.js +79 -78
  130. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  131. package/dist/cjs/six-timepicker.cjs.entry.js +351 -350
  132. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  133. package/dist/cjs/six-tooltip.cjs.entry.js +150 -149
  134. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  135. package/dist/cjs/slot-1b1232a1.js +51 -0
  136. package/dist/cjs/slot-1b1232a1.js.map +1 -0
  137. package/dist/cjs/types-d3da200b.js +19 -0
  138. package/dist/cjs/types-d3da200b.js.map +1 -0
  139. package/dist/cjs/ui-library.cjs.js +13 -11
  140. package/dist/cjs/ui-library.cjs.js.map +1 -1
  141. package/dist/collection/assets/TRADEMARKS.md +3 -3
  142. package/dist/collection/collection-manifest.json +10 -7
  143. package/dist/collection/components/six-alert/six-alert.css +5 -1
  144. package/dist/collection/components/six-alert/six-alert.js +382 -337
  145. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  146. package/dist/collection/components/six-avatar/six-avatar.css +2 -2
  147. package/dist/collection/components/six-avatar/six-avatar.js +111 -111
  148. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  149. package/dist/collection/components/six-badge/six-badge.css +1 -1
  150. package/dist/collection/components/six-badge/six-badge.js +90 -90
  151. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  152. package/dist/collection/components/six-button/six-button.css +19 -5
  153. package/dist/collection/components/six-button/six-button.js +448 -446
  154. package/dist/collection/components/six-button/six-button.js.map +1 -1
  155. package/dist/collection/components/six-card/six-card.css +4 -5
  156. package/dist/collection/components/six-card/six-card.js +15 -15
  157. package/dist/collection/components/six-card/six-card.js.map +1 -1
  158. package/dist/collection/components/six-checkbox/six-checkbox.css +11 -1
  159. package/dist/collection/components/six-checkbox/six-checkbox.js +421 -420
  160. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  161. package/dist/collection/components/six-datepicker/components/day-selection.js +8 -8
  162. package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -1
  163. package/dist/collection/components/six-datepicker/components/month-selection.js +8 -8
  164. package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -1
  165. package/dist/collection/components/six-datepicker/components/year-selection.js +8 -8
  166. package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -1
  167. package/dist/collection/components/six-datepicker/six-date-formats.js +21 -20
  168. package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
  169. package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
  170. package/dist/collection/components/six-datepicker/six-datepicker.js +1054 -1050
  171. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  172. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js +14 -14
  173. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js.map +1 -1
  174. package/dist/collection/components/six-details/six-details.css +1 -5
  175. package/dist/collection/components/six-details/six-details.js +410 -410
  176. package/dist/collection/components/six-details/six-details.js.map +1 -1
  177. package/dist/collection/components/six-dialog/six-dialog.css +2 -2
  178. package/dist/collection/components/six-dialog/six-dialog.js +340 -358
  179. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  180. package/dist/collection/components/six-drawer/six-drawer.css +2 -2
  181. package/dist/collection/components/six-drawer/six-drawer.js +393 -412
  182. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  183. package/dist/collection/components/six-dropdown/six-dropdown.css +22 -7
  184. package/dist/collection/components/six-dropdown/six-dropdown.js +983 -891
  185. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  186. package/dist/collection/components/six-error/six-error.css +1 -0
  187. package/dist/collection/components/six-error/six-error.js +15 -15
  188. package/dist/collection/components/six-error/six-error.js.map +1 -1
  189. package/dist/collection/components/six-error-page/six-error-page.js +177 -177
  190. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  191. package/dist/collection/components/six-file-list/six-file-list.js +15 -15
  192. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  193. package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
  194. package/dist/collection/components/six-file-list-item/six-file-list-item.js +195 -195
  195. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  196. package/dist/collection/components/six-file-upload/six-file-upload.css +12 -4
  197. package/dist/collection/components/six-file-upload/six-file-upload.js +366 -291
  198. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  199. package/dist/collection/components/six-footer/six-footer.css +2 -2
  200. package/dist/collection/components/six-footer/six-footer.js +15 -15
  201. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  202. package/dist/collection/components/six-group-label/six-group-label.css +4 -1
  203. package/dist/collection/components/six-group-label/six-group-label.js +155 -155
  204. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  205. package/dist/collection/components/six-header/six-header.css +8 -19
  206. package/dist/collection/components/six-header/six-header.js +537 -410
  207. package/dist/collection/components/six-header/six-header.js.map +1 -1
  208. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.css +15 -0
  209. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js +53 -0
  210. package/dist/collection/components/six-header-dropdown-item/six-header-dropdown-item.js.map +1 -0
  211. package/dist/collection/components/six-header-item/six-header-item.css +15 -0
  212. package/dist/collection/components/six-header-item/six-header-item.js +51 -0
  213. package/dist/collection/components/six-header-item/six-header-item.js.map +1 -0
  214. package/dist/collection/components/six-header-menu-button/six-header-menu-button.css +27 -0
  215. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js +48 -0
  216. package/dist/collection/components/six-header-menu-button/six-header-menu-button.js.map +1 -0
  217. package/dist/collection/components/six-icon/six-icon.css +5 -2
  218. package/dist/collection/components/six-icon/six-icon.js +71 -71
  219. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  220. package/dist/collection/components/six-icon-button/six-icon-button.css +3 -2
  221. package/dist/collection/components/six-icon-button/six-icon-button.js +188 -131
  222. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  223. package/dist/collection/components/six-input/six-input.css +14 -1
  224. package/dist/collection/components/six-input/six-input.js +1003 -939
  225. package/dist/collection/components/six-input/six-input.js.map +1 -1
  226. package/dist/collection/components/six-item-picker/six-item-picker.css +8 -0
  227. package/dist/collection/components/six-item-picker/six-item-picker.js +727 -631
  228. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  229. package/dist/collection/components/six-item-picker/types.js +9 -7
  230. package/dist/collection/components/six-item-picker/types.js.map +1 -1
  231. package/dist/collection/components/six-language-switcher/six-language-switcher.css +7 -2
  232. package/dist/collection/components/six-language-switcher/six-language-switcher.js +128 -124
  233. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  234. package/dist/collection/components/six-layout-grid/six-layout-grid.js +54 -54
  235. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  236. package/dist/collection/components/six-logo/six-logo.css +18 -0
  237. package/dist/collection/components/six-logo/six-logo.js +54 -0
  238. package/dist/collection/components/six-logo/six-logo.js.map +1 -0
  239. package/dist/collection/components/six-main-container/six-main-container.js +41 -41
  240. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  241. package/dist/collection/components/six-menu/six-menu.css +8 -7
  242. package/dist/collection/components/six-menu/six-menu.js +397 -366
  243. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  244. package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
  245. package/dist/collection/components/six-menu-divider/six-menu-divider.js +15 -15
  246. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  247. package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
  248. package/dist/collection/components/six-menu-item/six-menu-item.js +209 -180
  249. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  250. package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
  251. package/dist/collection/components/six-menu-label/six-menu-label.js +15 -15
  252. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  253. package/dist/collection/components/six-picto/six-picto.js +46 -46
  254. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  255. package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
  256. package/dist/collection/components/six-progress-bar/six-progress-bar.js +64 -64
  257. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  258. package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
  259. package/dist/collection/components/six-progress-ring/six-progress-ring.js +100 -100
  260. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  261. package/dist/collection/components/six-radio/six-radio.css +1 -1
  262. package/dist/collection/components/six-radio/six-radio.js +321 -320
  263. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  264. package/dist/collection/components/six-range/six-range.css +5 -2
  265. package/dist/collection/components/six-range/six-range.js +574 -563
  266. package/dist/collection/components/six-range/six-range.js.map +1 -1
  267. package/dist/collection/components/six-root/six-root.js +84 -152
  268. package/dist/collection/components/six-root/six-root.js.map +1 -1
  269. package/dist/collection/components/six-search-field/six-search-field.css +1 -1
  270. package/dist/collection/components/six-search-field/six-search-field.js +169 -169
  271. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  272. package/dist/collection/components/six-select/six-select.css +57 -66
  273. package/dist/collection/components/six-select/six-select.js +1124 -940
  274. package/dist/collection/components/six-select/six-select.js.map +1 -1
  275. package/dist/collection/components/six-select/util.js +58 -34
  276. package/dist/collection/components/six-select/util.js.map +1 -1
  277. package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
  278. package/dist/collection/components/six-sidebar/six-sidebar.js +466 -464
  279. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  280. package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +13 -1
  281. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +101 -82
  282. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  283. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +16 -1
  284. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +180 -153
  285. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  286. package/dist/collection/components/six-spinner/six-spinner.css +46 -1
  287. package/dist/collection/components/six-spinner/six-spinner.js +96 -46
  288. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
  289. package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
  290. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +45 -45
  291. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js.map +1 -1
  292. package/dist/collection/components/six-switch/six-switch.css +4 -1
  293. package/dist/collection/components/six-switch/six-switch.js +384 -383
  294. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  295. package/dist/collection/components/six-tab/six-tab.css +1 -1
  296. package/dist/collection/components/six-tab/six-tab.js +206 -205
  297. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  298. package/dist/collection/components/six-tab-group/six-tab-group.css +1 -1
  299. package/dist/collection/components/six-tab-group/six-tab-group.js +342 -315
  300. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  301. package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
  302. package/dist/collection/components/six-tab-panel/six-tab-panel.js +63 -63
  303. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  304. package/dist/collection/components/six-tag/six-tag.css +1 -1
  305. package/dist/collection/components/six-tag/six-tag.js +158 -158
  306. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  307. package/dist/collection/components/six-textarea/six-textarea.css +9 -1
  308. package/dist/collection/components/six-textarea/six-textarea.js +792 -784
  309. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  310. package/dist/collection/components/six-tile/six-tile.css +2 -2
  311. package/dist/collection/components/six-tile/six-tile.js +298 -298
  312. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  313. package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
  314. package/dist/collection/components/six-timepicker/six-timepicker.js +823 -822
  315. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  316. package/dist/collection/components/six-tooltip/six-tooltip.css +1 -1
  317. package/dist/collection/components/six-tooltip/six-tooltip.js +407 -407
  318. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  319. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
  320. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  321. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
  322. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  323. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
  324. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  325. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
  326. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  327. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
  328. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  329. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
  330. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  331. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
  332. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  333. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
  334. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  335. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
  336. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  337. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
  338. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  339. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
  340. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  341. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
  342. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  343. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
  344. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  345. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
  346. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  347. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
  348. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  349. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
  350. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  351. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
  352. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  353. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
  354. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  355. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  356. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  357. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  358. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  359. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  360. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  361. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  362. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  363. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  364. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  365. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  366. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  367. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  368. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  369. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  370. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  371. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  372. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  373. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  374. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  375. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  376. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  377. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  378. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  379. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  380. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  381. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  382. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  383. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  384. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  385. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  386. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  387. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  388. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  389. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  390. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  391. package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
  392. package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  393. package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
  394. package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  395. package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
  396. package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  397. package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
  398. package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  399. package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
  400. package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  401. package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
  402. package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  403. package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
  404. package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  405. package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
  406. package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  407. package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
  408. package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  409. package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
  410. package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  411. package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
  412. package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  413. package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
  414. package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  415. package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
  416. package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  417. package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
  418. package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  419. package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
  420. package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  421. package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
  422. package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  423. package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
  424. package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  425. package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
  426. package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  427. package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
  428. package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
  429. package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
  430. package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
  431. package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
  432. package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
  433. package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
  434. package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
  435. package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
  436. package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
  437. package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
  438. package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
  439. package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
  440. package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
  441. package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
  442. package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
  443. package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
  444. package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
  445. package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
  446. package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
  447. package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
  448. package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
  449. package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
  450. package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
  451. package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
  452. package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
  453. package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
  454. package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
  455. package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
  456. package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
  457. package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
  458. package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
  459. package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
  460. package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
  461. package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
  462. package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
  463. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
  464. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  465. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
  466. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  467. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
  468. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  469. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
  470. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  471. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
  472. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  473. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
  474. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  475. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
  476. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  477. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
  478. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  479. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
  480. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  481. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
  482. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  483. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
  484. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  485. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
  486. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  487. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
  488. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  489. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
  490. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  491. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
  492. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  493. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
  494. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  495. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
  496. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  497. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
  498. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  499. package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
  500. package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
  501. package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
  502. package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
  503. package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
  504. package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
  505. package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
  506. package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
  507. package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
  508. package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
  509. package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
  510. package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
  511. package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
  512. package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
  513. package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
  514. package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
  515. package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
  516. package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
  517. package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
  518. package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
  519. package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
  520. package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
  521. package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
  522. package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
  523. package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
  524. package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
  525. package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
  526. package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
  527. package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
  528. package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
  529. package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
  530. package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
  531. package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
  532. package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
  533. package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
  534. package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
  535. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
  536. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  537. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
  538. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  539. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
  540. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  541. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
  542. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  543. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
  544. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  545. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
  546. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  547. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
  548. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  549. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
  550. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  551. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
  552. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  553. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
  554. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  555. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
  556. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  557. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
  558. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  559. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
  560. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  561. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
  562. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  563. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
  564. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  565. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
  566. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  567. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
  568. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  569. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
  570. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  571. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
  572. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  573. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
  574. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  575. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
  576. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  577. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
  578. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  579. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
  580. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  581. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
  582. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  583. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
  584. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  585. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
  586. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  587. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
  588. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  589. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
  590. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  591. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
  592. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  593. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
  594. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  595. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
  596. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  597. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
  598. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  599. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
  600. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  601. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
  602. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  603. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
  604. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  605. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
  606. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  607. package/dist/collection/functional-components/form-control/form-control.js +19 -19
  608. package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
  609. package/dist/collection/index.js +1 -0
  610. package/dist/collection/index.js.map +1 -1
  611. package/dist/collection/testUtil/delay.js +1 -1
  612. package/dist/collection/testUtil/delay.js.map +1 -1
  613. package/dist/collection/utils/alert.js +54 -0
  614. package/dist/collection/utils/alert.js.map +1 -0
  615. package/dist/collection/utils/animation.js +19 -19
  616. package/dist/collection/utils/animation.js.map +1 -1
  617. package/dist/collection/utils/date-util.js +525 -500
  618. package/dist/collection/utils/date-util.js.map +1 -1
  619. package/dist/collection/utils/error-messages.js +102 -81
  620. package/dist/collection/utils/error-messages.js.map +1 -1
  621. package/dist/collection/utils/event-listeners.js +51 -51
  622. package/dist/collection/utils/event-listeners.js.map +1 -1
  623. package/dist/collection/utils/execution-control.js +14 -14
  624. package/dist/collection/utils/execution-control.js.map +1 -1
  625. package/dist/collection/utils/focus-visible.js +28 -28
  626. package/dist/collection/utils/focus-visible.js.map +1 -1
  627. package/dist/collection/utils/form.js +12 -12
  628. package/dist/collection/utils/form.js.map +1 -1
  629. package/dist/collection/utils/modal.js +25 -25
  630. package/dist/collection/utils/modal.js.map +1 -1
  631. package/dist/collection/utils/offset.js +4 -4
  632. package/dist/collection/utils/offset.js.map +1 -1
  633. package/dist/collection/utils/popover.js +99 -99
  634. package/dist/collection/utils/popover.js.map +1 -1
  635. package/dist/collection/utils/popup.js +71 -71
  636. package/dist/collection/utils/popup.js.map +1 -1
  637. package/dist/collection/utils/scroll.js +27 -27
  638. package/dist/collection/utils/scroll.js.map +1 -1
  639. package/dist/collection/utils/slot.js +28 -29
  640. package/dist/collection/utils/slot.js.map +1 -1
  641. package/dist/collection/utils/tabbable.js +17 -17
  642. package/dist/collection/utils/tabbable.js.map +1 -1
  643. package/dist/collection/utils/time.util.js +72 -72
  644. package/dist/collection/utils/time.util.js.map +1 -1
  645. package/dist/components/event-listeners.js +51 -51
  646. package/dist/components/event-listeners.js.map +1 -1
  647. package/dist/components/execution-control.js +14 -14
  648. package/dist/components/execution-control.js.map +1 -1
  649. package/dist/components/focus-visible.js +28 -28
  650. package/dist/components/focus-visible.js.map +1 -1
  651. package/dist/components/form-control.js +26 -26
  652. package/dist/components/form-control.js.map +1 -1
  653. package/dist/components/form.js +12 -12
  654. package/dist/components/form.js.map +1 -1
  655. package/dist/components/index.d.ts +6 -0
  656. package/dist/components/index.js +120 -150
  657. package/dist/components/index.js.map +1 -1
  658. package/dist/components/modal.js +26 -42
  659. package/dist/components/modal.js.map +1 -1
  660. package/dist/components/popover.js +98 -98
  661. package/dist/components/popover.js.map +1 -1
  662. package/dist/components/scroll.js +31 -31
  663. package/dist/components/scroll.js.map +1 -1
  664. package/dist/components/six-alert.d.ts +2 -2
  665. package/dist/components/six-alert.js +178 -142
  666. package/dist/components/six-alert.js.map +1 -1
  667. package/dist/components/six-avatar.d.ts +2 -2
  668. package/dist/components/six-avatar.js +46 -45
  669. package/dist/components/six-avatar.js.map +1 -1
  670. package/dist/components/six-badge.d.ts +2 -2
  671. package/dist/components/six-badge.js +41 -40
  672. package/dist/components/six-badge.js.map +1 -1
  673. package/dist/components/six-button.d.ts +2 -2
  674. package/dist/components/six-button.js +1 -142
  675. package/dist/components/six-button.js.map +1 -1
  676. package/dist/components/six-button2.js +148 -0
  677. package/dist/components/six-button2.js.map +1 -0
  678. package/dist/components/six-card.d.ts +2 -2
  679. package/dist/components/six-card.js +22 -21
  680. package/dist/components/six-card.js.map +1 -1
  681. package/dist/components/six-checkbox.d.ts +2 -2
  682. package/dist/components/six-checkbox.js +1 -156
  683. package/dist/components/six-checkbox.js.map +1 -1
  684. package/dist/components/six-checkbox2.js +166 -0
  685. package/dist/components/six-checkbox2.js.map +1 -0
  686. package/dist/components/six-datepicker.d.ts +2 -2
  687. package/dist/components/six-datepicker.js +933 -901
  688. package/dist/components/six-datepicker.js.map +1 -1
  689. package/dist/components/six-details.d.ts +2 -2
  690. package/dist/components/six-details2.js +159 -156
  691. package/dist/components/six-details2.js.map +1 -1
  692. package/dist/components/six-dialog.d.ts +2 -2
  693. package/dist/components/six-dialog.js +145 -159
  694. package/dist/components/six-dialog.js.map +1 -1
  695. package/dist/components/six-drawer.d.ts +2 -2
  696. package/dist/components/six-drawer.js +164 -179
  697. package/dist/components/six-drawer.js.map +1 -1
  698. package/dist/components/six-dropdown.d.ts +2 -2
  699. package/dist/components/six-dropdown2.js +553 -469
  700. package/dist/components/six-dropdown2.js.map +1 -1
  701. package/dist/components/six-error-page.d.ts +2 -2
  702. package/dist/components/six-error-page.js +107 -106
  703. package/dist/components/six-error-page.js.map +1 -1
  704. package/dist/components/six-error.d.ts +2 -2
  705. package/dist/components/six-error2.js +22 -21
  706. package/dist/components/six-error2.js.map +1 -1
  707. package/dist/components/six-file-list-item.d.ts +2 -2
  708. package/dist/components/six-file-list-item.js +60 -59
  709. package/dist/components/six-file-list-item.js.map +1 -1
  710. package/dist/components/six-file-list.d.ts +2 -2
  711. package/dist/components/six-file-list.js +21 -20
  712. package/dist/components/six-file-list.js.map +1 -1
  713. package/dist/components/six-file-upload.d.ts +2 -2
  714. package/dist/components/six-file-upload.js +162 -126
  715. package/dist/components/six-file-upload.js.map +1 -1
  716. package/dist/components/six-footer.d.ts +2 -2
  717. package/dist/components/six-footer.js +22 -21
  718. package/dist/components/six-footer.js.map +1 -1
  719. package/dist/components/six-group-label.d.ts +2 -2
  720. package/dist/components/six-group-label.js +71 -67
  721. package/dist/components/six-group-label.js.map +1 -1
  722. package/dist/components/six-header-dropdown-item.d.ts +11 -0
  723. package/dist/components/six-header-dropdown-item.js +103 -0
  724. package/dist/components/six-header-dropdown-item.js.map +1 -0
  725. package/dist/components/{set-attributes.d.ts → six-header-item.d.ts} +4 -4
  726. package/dist/components/six-header-item.js +8 -0
  727. package/dist/components/six-header-item.js.map +1 -0
  728. package/dist/components/six-header-item2.js +39 -0
  729. package/dist/components/six-header-item2.js.map +1 -0
  730. package/dist/components/six-header-menu-button.d.ts +11 -0
  731. package/dist/components/six-header-menu-button.js +57 -0
  732. package/dist/components/six-header-menu-button.js.map +1 -0
  733. package/dist/components/six-header.d.ts +2 -2
  734. package/dist/components/six-header.js +271 -216
  735. package/dist/components/six-header.js.map +1 -1
  736. package/dist/components/six-icon-button.d.ts +2 -2
  737. package/dist/components/six-icon-button2.js +65 -55
  738. package/dist/components/six-icon-button2.js.map +1 -1
  739. package/dist/components/six-icon.d.ts +2 -2
  740. package/dist/components/six-icon2.js +39 -38
  741. package/dist/components/six-icon2.js.map +1 -1
  742. package/dist/components/six-input.d.ts +2 -2
  743. package/dist/components/six-input2.js +268 -249
  744. package/dist/components/six-input2.js.map +1 -1
  745. package/dist/components/six-item-picker.d.ts +2 -2
  746. package/dist/components/six-item-picker2.js +451 -348
  747. package/dist/components/six-item-picker2.js.map +1 -1
  748. package/dist/components/six-language-switcher.d.ts +2 -2
  749. package/dist/components/six-language-switcher.js +70 -63
  750. package/dist/components/six-language-switcher.js.map +1 -1
  751. package/dist/components/six-layout-grid.d.ts +2 -2
  752. package/dist/components/six-layout-grid.js +38 -35
  753. package/dist/components/six-layout-grid.js.map +1 -1
  754. package/dist/components/six-logo.d.ts +11 -0
  755. package/dist/components/six-logo.js +8 -0
  756. package/dist/components/six-logo.js.map +1 -0
  757. package/dist/components/six-logo2.js +42 -0
  758. package/dist/components/six-logo2.js.map +1 -0
  759. package/dist/components/six-main-container.d.ts +2 -2
  760. package/dist/components/six-main-container.js +25 -24
  761. package/dist/components/six-main-container.js.map +1 -1
  762. package/dist/components/six-menu-divider.d.ts +2 -2
  763. package/dist/components/six-menu-divider.js +22 -21
  764. package/dist/components/six-menu-divider.js.map +1 -1
  765. package/dist/components/six-menu-item.d.ts +2 -2
  766. package/dist/components/six-menu-item2.js +99 -75
  767. package/dist/components/six-menu-item2.js.map +1 -1
  768. package/dist/components/six-menu-label.d.ts +2 -2
  769. package/dist/components/six-menu-label.js +22 -21
  770. package/dist/components/six-menu-label.js.map +1 -1
  771. package/dist/components/six-menu.d.ts +2 -2
  772. package/dist/components/six-menu2.js +246 -220
  773. package/dist/components/six-menu2.js.map +1 -1
  774. package/dist/components/six-picto.d.ts +2 -2
  775. package/dist/components/six-picto2.js +30 -29
  776. package/dist/components/six-picto2.js.map +1 -1
  777. package/dist/components/six-progress-bar.d.ts +2 -2
  778. package/dist/components/six-progress-bar.js +32 -31
  779. package/dist/components/six-progress-bar.js.map +1 -1
  780. package/dist/components/six-progress-ring.d.ts +2 -2
  781. package/dist/components/six-progress-ring.js +50 -47
  782. package/dist/components/six-progress-ring.js.map +1 -1
  783. package/dist/components/six-radio.d.ts +2 -2
  784. package/dist/components/six-radio.js +129 -125
  785. package/dist/components/six-radio.js.map +1 -1
  786. package/dist/components/six-range.d.ts +2 -2
  787. package/dist/components/six-range.js +243 -225
  788. package/dist/components/six-range.js.map +1 -1
  789. package/dist/components/six-root.d.ts +2 -2
  790. package/dist/components/six-root.js +40 -66
  791. package/dist/components/six-root.js.map +1 -1
  792. package/dist/components/six-search-field.d.ts +2 -2
  793. package/dist/components/six-search-field.js +79 -76
  794. package/dist/components/six-search-field.js.map +1 -1
  795. package/dist/components/six-select.d.ts +2 -2
  796. package/dist/components/six-select.js +771 -471
  797. package/dist/components/six-select.js.map +1 -1
  798. package/dist/components/six-sidebar-item-group.d.ts +2 -2
  799. package/dist/components/six-sidebar-item-group.js +88 -76
  800. package/dist/components/six-sidebar-item-group.js.map +1 -1
  801. package/dist/components/six-sidebar-item.d.ts +2 -2
  802. package/dist/components/six-sidebar-item.js +36 -32
  803. package/dist/components/six-sidebar-item.js.map +1 -1
  804. package/dist/components/six-sidebar.d.ts +2 -2
  805. package/dist/components/six-sidebar.js +200 -197
  806. package/dist/components/six-sidebar.js.map +1 -1
  807. package/dist/components/six-spinner.d.ts +2 -2
  808. package/dist/components/six-spinner2.js +65 -30
  809. package/dist/components/six-spinner2.js.map +1 -1
  810. package/dist/components/six-stage-indicator.d.ts +2 -2
  811. package/dist/components/six-stage-indicator2.js +30 -29
  812. package/dist/components/six-stage-indicator2.js.map +1 -1
  813. package/dist/components/six-switch.d.ts +2 -2
  814. package/dist/components/six-switch.js +141 -136
  815. package/dist/components/six-switch.js.map +1 -1
  816. package/dist/components/six-tab-group.d.ts +2 -2
  817. package/dist/components/six-tab-group.js +271 -242
  818. package/dist/components/six-tab-group.js.map +1 -1
  819. package/dist/components/six-tab-panel.d.ts +2 -2
  820. package/dist/components/six-tab-panel.js +31 -30
  821. package/dist/components/six-tab-panel.js.map +1 -1
  822. package/dist/components/six-tab.d.ts +2 -2
  823. package/dist/components/six-tab.js +86 -85
  824. package/dist/components/six-tab.js.map +1 -1
  825. package/dist/components/six-tag.d.ts +2 -2
  826. package/dist/components/six-tag.js +99 -1
  827. package/dist/components/six-tag.js.map +1 -1
  828. package/dist/components/six-textarea.d.ts +2 -2
  829. package/dist/components/six-textarea.js +235 -228
  830. package/dist/components/six-textarea.js.map +1 -1
  831. package/dist/components/six-tile.d.ts +2 -2
  832. package/dist/components/six-tile.js +118 -117
  833. package/dist/components/six-tile.js.map +1 -1
  834. package/dist/components/six-timepicker.d.ts +2 -2
  835. package/dist/components/six-timepicker2.js +491 -488
  836. package/dist/components/six-timepicker2.js.map +1 -1
  837. package/dist/components/six-tooltip.d.ts +2 -2
  838. package/dist/components/six-tooltip2.js +173 -170
  839. package/dist/components/six-tooltip2.js.map +1 -1
  840. package/dist/components/slot.js +29 -30
  841. package/dist/components/slot.js.map +1 -1
  842. package/dist/components.d.ts +35 -21
  843. package/dist/components.json +1379 -308
  844. package/dist/esm/app-globals-0f993ce5.js +5 -0
  845. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  846. package/dist/esm/error-messages-1eaaad23.js +115 -0
  847. package/dist/esm/error-messages-1eaaad23.js.map +1 -0
  848. package/dist/esm/event-listeners-706d4309.js +59 -0
  849. package/dist/esm/event-listeners-706d4309.js.map +1 -0
  850. package/dist/esm/{execution-control-e0892a05.js → execution-control-2ebaf4ef.js} +15 -15
  851. package/dist/esm/{execution-control-e0892a05.js.map → execution-control-2ebaf4ef.js.map} +1 -1
  852. package/dist/esm/focus-visible-d9dbfeef.js +45 -0
  853. package/dist/esm/{focus-visible-fc6ac671.js.map → focus-visible-d9dbfeef.js.map} +1 -1
  854. package/dist/esm/form-4b145b7a.js +18 -0
  855. package/dist/esm/{form-81252534.js.map → form-4b145b7a.js.map} +1 -1
  856. package/dist/esm/form-control-ad1710bf.js +34 -0
  857. package/dist/esm/form-control-ad1710bf.js.map +1 -0
  858. package/dist/esm/index-a7bee415.js +1919 -0
  859. package/dist/esm/index-a7bee415.js.map +1 -0
  860. package/dist/esm/index.js +52 -87
  861. package/dist/esm/index.js.map +1 -1
  862. package/dist/esm/loader.js +6 -4
  863. package/dist/esm/loader.js.map +1 -1
  864. package/dist/esm/modal-6c1288e3.js +33 -0
  865. package/dist/esm/modal-6c1288e3.js.map +1 -0
  866. package/dist/esm/{popover-136d1f73.js → popover-25996e62.js} +99 -99
  867. package/dist/esm/popover-25996e62.js.map +1 -0
  868. package/dist/esm/popup-7209e9d5.js +98 -0
  869. package/dist/esm/popup-7209e9d5.js.map +1 -0
  870. package/dist/esm/scroll-3e16851e.js +64 -0
  871. package/dist/esm/{scroll-774762d6.js.map → scroll-3e16851e.js.map} +1 -1
  872. package/dist/esm/six-alert.entry.js +144 -111
  873. package/dist/esm/six-alert.entry.js.map +1 -1
  874. package/dist/esm/six-avatar.entry.js +23 -22
  875. package/dist/esm/six-avatar.entry.js.map +1 -1
  876. package/dist/esm/six-badge.entry.js +25 -24
  877. package/dist/esm/six-badge.entry.js.map +1 -1
  878. package/dist/esm/six-button.entry.js +98 -96
  879. package/dist/esm/six-button.entry.js.map +1 -1
  880. package/dist/esm/six-card.entry.js +10 -9
  881. package/dist/esm/six-card.entry.js.map +1 -1
  882. package/dist/esm/six-checkbox.entry.js +113 -112
  883. package/dist/esm/six-checkbox.entry.js.map +1 -1
  884. package/dist/esm/six-datepicker.entry.js +864 -835
  885. package/dist/esm/six-datepicker.entry.js.map +1 -1
  886. package/dist/esm/six-details.entry.js +129 -128
  887. package/dist/esm/six-details.entry.js.map +1 -1
  888. package/dist/esm/six-dialog.entry.js +115 -131
  889. package/dist/esm/six-dialog.entry.js.map +1 -1
  890. package/dist/esm/six-drawer.entry.js +132 -149
  891. package/dist/esm/six-drawer.entry.js.map +1 -1
  892. package/dist/esm/six-dropdown_3.entry.js +812 -0
  893. package/dist/esm/six-dropdown_3.entry.js.map +1 -0
  894. package/dist/esm/six-error-page.entry.js +84 -83
  895. package/dist/esm/six-error-page.entry.js.map +1 -1
  896. package/dist/esm/six-error.entry.js +10 -9
  897. package/dist/esm/six-error.entry.js.map +1 -1
  898. package/dist/esm/six-file-list-item.entry.js +36 -35
  899. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  900. package/dist/esm/six-file-list.entry.js +9 -8
  901. package/dist/esm/six-file-list.entry.js.map +1 -1
  902. package/dist/esm/six-file-upload.entry.js +120 -100
  903. package/dist/esm/six-file-upload.entry.js.map +1 -1
  904. package/dist/esm/six-footer.entry.js +10 -9
  905. package/dist/esm/six-footer.entry.js.map +1 -1
  906. package/dist/esm/six-group-label.entry.js +45 -44
  907. package/dist/esm/six-group-label.entry.js.map +1 -1
  908. package/dist/esm/six-header-dropdown-item.entry.js +41 -0
  909. package/dist/esm/six-header-dropdown-item.entry.js.map +1 -0
  910. package/dist/esm/six-header-item_2.entry.js +42 -0
  911. package/dist/esm/six-header-item_2.entry.js.map +1 -0
  912. package/dist/esm/six-header-menu-button.entry.js +19 -0
  913. package/dist/esm/six-header-menu-button.entry.js.map +1 -0
  914. package/dist/esm/six-header.entry.js +189 -157
  915. package/dist/esm/six-header.entry.js.map +1 -1
  916. package/dist/esm/six-icon-button.entry.js +40 -33
  917. package/dist/esm/six-icon-button.entry.js.map +1 -1
  918. package/dist/esm/six-icon.entry.js +24 -23
  919. package/dist/esm/six-icon.entry.js.map +1 -1
  920. package/dist/esm/six-input.entry.js +203 -191
  921. package/dist/esm/six-input.entry.js.map +1 -1
  922. package/dist/esm/six-item-picker.entry.js +407 -310
  923. package/dist/esm/six-item-picker.entry.js.map +1 -1
  924. package/dist/esm/six-language-switcher.entry.js +53 -48
  925. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  926. package/dist/esm/six-layout-grid.entry.js +22 -21
  927. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  928. package/dist/esm/six-main-container.entry.js +11 -10
  929. package/dist/esm/six-main-container.entry.js.map +1 -1
  930. package/dist/esm/six-menu-divider.entry.js +10 -9
  931. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  932. package/dist/esm/six-menu-label.entry.js +10 -9
  933. package/dist/esm/six-menu-label.entry.js.map +1 -1
  934. package/dist/esm/six-picto.entry.js +16 -15
  935. package/dist/esm/six-picto.entry.js.map +1 -1
  936. package/dist/esm/six-progress-bar.entry.js +17 -16
  937. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  938. package/dist/esm/six-progress-ring.entry.js +32 -31
  939. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  940. package/dist/esm/six-radio.entry.js +106 -105
  941. package/dist/esm/six-radio.entry.js.map +1 -1
  942. package/dist/esm/six-range.entry.js +200 -189
  943. package/dist/esm/six-range.entry.js.map +1 -1
  944. package/dist/esm/six-root.entry.js +13 -31
  945. package/dist/esm/six-root.entry.js.map +1 -1
  946. package/dist/esm/six-search-field.entry.js +46 -45
  947. package/dist/esm/six-search-field.entry.js.map +1 -1
  948. package/dist/esm/six-select.entry.js +539 -365
  949. package/dist/esm/six-select.entry.js.map +1 -1
  950. package/dist/esm/six-sidebar-item-group.entry.js +58 -47
  951. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  952. package/dist/esm/six-sidebar-item.entry.js +19 -16
  953. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  954. package/dist/esm/six-sidebar.entry.js +176 -175
  955. package/dist/esm/six-sidebar.entry.js.map +1 -1
  956. package/dist/esm/six-spinner.entry.js +50 -16
  957. package/dist/esm/six-spinner.entry.js.map +1 -1
  958. package/dist/esm/six-stage-indicator.entry.js +19 -0
  959. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  960. package/dist/esm/six-switch.entry.js +109 -108
  961. package/dist/esm/six-switch.entry.js.map +1 -1
  962. package/dist/esm/six-tab-group.entry.js +242 -216
  963. package/dist/esm/six-tab-group.entry.js.map +1 -1
  964. package/dist/esm/six-tab-panel.entry.js +16 -15
  965. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  966. package/dist/esm/six-tab.entry.js +57 -56
  967. package/dist/esm/six-tab.entry.js.map +1 -1
  968. package/dist/esm/six-tag.entry.js +55 -54
  969. package/dist/esm/six-tag.entry.js.map +1 -1
  970. package/dist/esm/six-textarea.entry.js +183 -182
  971. package/dist/esm/six-textarea.entry.js.map +1 -1
  972. package/dist/esm/six-tile.entry.js +79 -78
  973. package/dist/esm/six-tile.entry.js.map +1 -1
  974. package/dist/esm/six-timepicker.entry.js +351 -350
  975. package/dist/esm/six-timepicker.entry.js.map +1 -1
  976. package/dist/esm/six-tooltip.entry.js +150 -149
  977. package/dist/esm/six-tooltip.entry.js.map +1 -1
  978. package/dist/esm/slot-56531341.js +47 -0
  979. package/dist/esm/slot-56531341.js.map +1 -0
  980. package/dist/esm/types-a07bb999.js +19 -0
  981. package/dist/esm/types-a07bb999.js.map +1 -0
  982. package/dist/esm/ui-library.js +14 -12
  983. package/dist/esm/ui-library.js.map +1 -1
  984. package/dist/types/components/six-alert/six-alert.d.ts +47 -40
  985. package/dist/types/components/six-avatar/six-avatar.d.ts +11 -11
  986. package/dist/types/components/six-badge/six-badge.d.ts +7 -7
  987. package/dist/types/components/six-button/six-button.d.ts +48 -48
  988. package/dist/types/components/six-card/six-card.d.ts +1 -1
  989. package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -58
  990. package/dist/types/components/six-datepicker/components/day-selection.d.ts +3 -3
  991. package/dist/types/components/six-datepicker/components/month-selection.d.ts +3 -3
  992. package/dist/types/components/six-datepicker/components/year-selection.d.ts +3 -3
  993. package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
  994. package/dist/types/components/six-datepicker/six-datepicker.d.ts +187 -187
  995. package/dist/types/components/six-details/six-details.d.ts +42 -42
  996. package/dist/types/components/six-dialog/six-dialog.d.ts +51 -50
  997. package/dist/types/components/six-drawer/six-drawer.d.ts +58 -58
  998. package/dist/types/components/six-dropdown/six-dropdown.d.ts +131 -112
  999. package/dist/types/components/six-error/six-error.d.ts +1 -1
  1000. package/dist/types/components/six-error-page/six-error-page.d.ts +25 -25
  1001. package/dist/types/components/six-file-list/six-file-list.d.ts +1 -1
  1002. package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +23 -23
  1003. package/dist/types/components/six-file-upload/six-file-upload.d.ts +43 -33
  1004. package/dist/types/components/six-footer/six-footer.d.ts +1 -1
  1005. package/dist/types/components/six-group-label/six-group-label.d.ts +22 -22
  1006. package/dist/types/components/six-header/six-header.d.ts +127 -60
  1007. package/dist/types/components/six-header-dropdown-item/six-header-dropdown-item.d.ts +13 -0
  1008. package/dist/types/components/six-header-item/six-header-item.d.ts +15 -0
  1009. package/dist/types/components/six-header-menu-button/six-header-menu-button.d.ts +11 -0
  1010. package/dist/types/components/six-icon/six-icon.d.ts +5 -5
  1011. package/dist/types/components/six-icon-button/six-icon-button.d.ts +24 -18
  1012. package/dist/types/components/six-input/six-input.d.ts +117 -105
  1013. package/dist/types/components/six-item-picker/six-item-picker.d.ts +95 -88
  1014. package/dist/types/components/six-item-picker/types.d.ts +7 -7
  1015. package/dist/types/components/six-language-switcher/six-language-switcher.d.ts +15 -15
  1016. package/dist/types/components/six-layout-grid/six-layout-grid.d.ts +6 -6
  1017. package/dist/types/components/six-logo/six-logo.d.ts +9 -0
  1018. package/dist/types/components/six-main-container/six-main-container.d.ts +4 -4
  1019. package/dist/types/components/six-menu/six-menu.d.ts +67 -63
  1020. package/dist/types/components/six-menu-divider/six-menu-divider.d.ts +1 -1
  1021. package/dist/types/components/six-menu-item/six-menu-item.d.ts +27 -21
  1022. package/dist/types/components/six-menu-label/six-menu-label.d.ts +1 -1
  1023. package/dist/types/components/six-picto/six-picto.d.ts +6 -6
  1024. package/dist/types/components/six-progress-bar/six-progress-bar.d.ts +5 -5
  1025. package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +11 -11
  1026. package/dist/types/components/six-radio/six-radio.d.ts +38 -38
  1027. package/dist/types/components/six-range/six-range.d.ts +77 -75
  1028. package/dist/types/components/six-root/six-root.d.ts +8 -21
  1029. package/dist/types/components/six-search-field/six-search-field.d.ts +20 -20
  1030. package/dist/types/components/six-select/six-select.d.ts +135 -122
  1031. package/dist/types/components/six-select/util.d.ts +3 -1
  1032. package/dist/types/components/six-sidebar/six-sidebar.d.ts +45 -45
  1033. package/dist/types/components/six-sidebar-item/six-sidebar-item.d.ts +12 -7
  1034. package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +25 -19
  1035. package/dist/types/components/six-spinner/six-spinner.d.ts +26 -5
  1036. package/dist/types/components/six-stage-indicator/six-stage-indicator.d.ts +3 -3
  1037. package/dist/types/components/six-switch/six-switch.d.ts +48 -48
  1038. package/dist/types/components/six-tab/six-tab.d.ts +20 -20
  1039. package/dist/types/components/six-tab-group/six-tab-group.d.ts +38 -35
  1040. package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +7 -7
  1041. package/dist/types/components/six-tag/six-tag.d.ts +20 -20
  1042. package/dist/types/components/six-textarea/six-textarea.d.ts +89 -89
  1043. package/dist/types/components/six-tile/six-tile.d.ts +31 -31
  1044. package/dist/types/components/six-timepicker/six-timepicker.d.ts +152 -152
  1045. package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -55
  1046. package/dist/types/components.d.ts +719 -59
  1047. package/dist/types/functional-components/form-control/form-control.d.ts +32 -32
  1048. package/dist/types/index.d.ts +1 -0
  1049. package/dist/types/stencil-public-runtime.d.ts +37 -13
  1050. package/dist/types/types.d.ts +1 -0
  1051. package/dist/types/utils/alert.d.ts +10 -0
  1052. package/dist/types/utils/date-util.d.ts +58 -50
  1053. package/dist/types/utils/error-messages.d.ts +27 -25
  1054. package/dist/types/utils/event-listeners.d.ts +11 -11
  1055. package/dist/types/utils/focus-visible.d.ts +2 -2
  1056. package/dist/types/utils/modal.d.ts +8 -8
  1057. package/dist/types/utils/offset.d.ts +2 -2
  1058. package/dist/types/utils/popover.d.ts +21 -21
  1059. package/dist/types/utils/slot.d.ts +0 -1
  1060. package/dist/types/utils/time.util.d.ts +6 -6
  1061. package/dist/types/utils/type-check.d.ts +1 -1
  1062. package/dist/types/utils/types.d.ts +1 -1
  1063. package/dist/ui-library/assets/TRADEMARKS.md +3 -3
  1064. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
  1065. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  1066. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
  1067. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  1068. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
  1069. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  1070. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
  1071. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  1072. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
  1073. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  1074. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
  1075. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  1076. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
  1077. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  1078. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
  1079. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  1080. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
  1081. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  1082. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
  1083. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  1084. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
  1085. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  1086. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
  1087. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  1088. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
  1089. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  1090. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
  1091. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  1092. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
  1093. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  1094. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
  1095. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  1096. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
  1097. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  1098. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
  1099. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  1100. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  1101. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  1102. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  1103. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  1104. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  1105. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  1106. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  1107. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  1108. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  1109. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  1110. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  1111. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  1112. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  1113. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  1114. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  1115. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  1116. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  1117. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  1118. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  1119. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  1120. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  1121. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  1122. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  1123. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  1124. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  1125. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  1126. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  1127. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  1128. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  1129. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  1130. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  1131. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  1132. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  1133. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  1134. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  1135. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  1136. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
  1137. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  1138. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
  1139. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  1140. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
  1141. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  1142. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
  1143. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  1144. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
  1145. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  1146. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
  1147. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  1148. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
  1149. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  1150. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
  1151. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  1152. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
  1153. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  1154. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
  1155. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  1156. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
  1157. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  1158. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
  1159. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  1160. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
  1161. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  1162. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
  1163. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  1164. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
  1165. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  1166. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
  1167. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  1168. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
  1169. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  1170. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
  1171. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  1172. package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
  1173. package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
  1174. package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
  1175. package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
  1176. package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
  1177. package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
  1178. package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
  1179. package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
  1180. package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
  1181. package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
  1182. package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
  1183. package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
  1184. package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
  1185. package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
  1186. package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
  1187. package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
  1188. package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
  1189. package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
  1190. package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
  1191. package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
  1192. package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
  1193. package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
  1194. package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
  1195. package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
  1196. package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
  1197. package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
  1198. package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
  1199. package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
  1200. package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
  1201. package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
  1202. package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
  1203. package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
  1204. package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
  1205. package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
  1206. package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
  1207. package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
  1208. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
  1209. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  1210. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
  1211. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  1212. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
  1213. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  1214. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
  1215. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  1216. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
  1217. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  1218. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
  1219. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  1220. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
  1221. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  1222. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
  1223. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  1224. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
  1225. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  1226. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
  1227. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  1228. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
  1229. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  1230. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
  1231. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  1232. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
  1233. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  1234. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
  1235. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  1236. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
  1237. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  1238. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
  1239. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  1240. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
  1241. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  1242. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
  1243. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  1244. package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
  1245. package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
  1246. package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
  1247. package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
  1248. package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
  1249. package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
  1250. package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
  1251. package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
  1252. package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
  1253. package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
  1254. package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
  1255. package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
  1256. package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
  1257. package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
  1258. package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
  1259. package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
  1260. package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
  1261. package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
  1262. package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
  1263. package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
  1264. package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
  1265. package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
  1266. package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
  1267. package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
  1268. package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
  1269. package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
  1270. package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
  1271. package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
  1272. package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
  1273. package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
  1274. package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
  1275. package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
  1276. package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
  1277. package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
  1278. package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
  1279. package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
  1280. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
  1281. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  1282. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
  1283. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  1284. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
  1285. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  1286. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
  1287. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  1288. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
  1289. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  1290. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
  1291. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  1292. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
  1293. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  1294. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
  1295. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  1296. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
  1297. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  1298. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
  1299. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  1300. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
  1301. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  1302. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
  1303. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  1304. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
  1305. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  1306. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
  1307. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  1308. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
  1309. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  1310. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
  1311. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  1312. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
  1313. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  1314. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
  1315. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  1316. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
  1317. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  1318. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
  1319. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  1320. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
  1321. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  1322. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
  1323. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  1324. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
  1325. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  1326. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
  1327. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  1328. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
  1329. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  1330. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
  1331. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  1332. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
  1333. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  1334. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
  1335. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  1336. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
  1337. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  1338. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
  1339. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  1340. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
  1341. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  1342. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
  1343. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  1344. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
  1345. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  1346. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
  1347. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  1348. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
  1349. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  1350. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
  1351. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  1352. package/dist/ui-library/index.esm.js +1 -1
  1353. package/dist/ui-library/index.esm.js.map +1 -1
  1354. package/dist/ui-library/p-03acec96.entry.js +2 -0
  1355. package/dist/ui-library/p-03acec96.entry.js.map +1 -0
  1356. package/dist/ui-library/{p-5654e4c7.js → p-06ba4450.js} +1 -1
  1357. package/dist/ui-library/{p-5654e4c7.js.map → p-06ba4450.js.map} +1 -1
  1358. package/dist/ui-library/p-06d562b7.entry.js +2 -0
  1359. package/dist/ui-library/p-06d562b7.entry.js.map +1 -0
  1360. package/dist/ui-library/p-07b6203f.entry.js +2 -0
  1361. package/dist/ui-library/p-07b6203f.entry.js.map +1 -0
  1362. package/dist/ui-library/p-0a6b6429.entry.js +2 -0
  1363. package/dist/ui-library/p-0a6b6429.entry.js.map +1 -0
  1364. package/dist/ui-library/p-0cebf1d2.js +2 -0
  1365. package/dist/ui-library/p-0cebf1d2.js.map +1 -0
  1366. package/dist/ui-library/p-14d09601.entry.js +2 -0
  1367. package/dist/ui-library/p-14d09601.entry.js.map +1 -0
  1368. package/dist/ui-library/p-171df3ad.entry.js +2 -0
  1369. package/dist/ui-library/p-171df3ad.entry.js.map +1 -0
  1370. package/dist/ui-library/p-1cc3b56d.entry.js +2 -0
  1371. package/dist/ui-library/p-1cc3b56d.entry.js.map +1 -0
  1372. package/dist/ui-library/p-1cd09d9b.entry.js +2 -0
  1373. package/dist/ui-library/p-1cd09d9b.entry.js.map +1 -0
  1374. package/dist/ui-library/p-1f7a0cb5.entry.js +2 -0
  1375. package/dist/ui-library/p-1f7a0cb5.entry.js.map +1 -0
  1376. package/dist/ui-library/p-2355c444.entry.js +2 -0
  1377. package/dist/ui-library/p-2355c444.entry.js.map +1 -0
  1378. package/dist/ui-library/p-281ffc35.entry.js +2 -0
  1379. package/dist/ui-library/p-281ffc35.entry.js.map +1 -0
  1380. package/dist/ui-library/p-2ad904a7.entry.js +2 -0
  1381. package/dist/ui-library/p-2ad904a7.entry.js.map +1 -0
  1382. package/dist/ui-library/p-30000e86.entry.js +2 -0
  1383. package/dist/ui-library/p-30000e86.entry.js.map +1 -0
  1384. package/dist/ui-library/p-42cd3588.entry.js +2 -0
  1385. package/dist/ui-library/p-42cd3588.entry.js.map +1 -0
  1386. package/dist/ui-library/p-48118ce8.js +3 -0
  1387. package/dist/ui-library/p-48118ce8.js.map +1 -0
  1388. package/dist/ui-library/p-49019d6c.entry.js +2 -0
  1389. package/dist/ui-library/p-49019d6c.entry.js.map +1 -0
  1390. package/dist/ui-library/p-4d72b179.entry.js +2 -0
  1391. package/dist/ui-library/p-4d72b179.entry.js.map +1 -0
  1392. package/dist/ui-library/p-4de4ee7a.entry.js +2 -0
  1393. package/dist/ui-library/p-4de4ee7a.entry.js.map +1 -0
  1394. package/dist/ui-library/p-4edde816.entry.js +2 -0
  1395. package/dist/ui-library/p-4edde816.entry.js.map +1 -0
  1396. package/dist/ui-library/p-4f129bb3.entry.js +2 -0
  1397. package/dist/ui-library/p-4f129bb3.entry.js.map +1 -0
  1398. package/dist/ui-library/p-57ea4cb7.entry.js +2 -0
  1399. package/dist/ui-library/p-57ea4cb7.entry.js.map +1 -0
  1400. package/dist/ui-library/p-5ece7986.entry.js +2 -0
  1401. package/dist/ui-library/p-5ece7986.entry.js.map +1 -0
  1402. package/dist/ui-library/p-5f491974.entry.js +2 -0
  1403. package/dist/ui-library/p-5f491974.entry.js.map +1 -0
  1404. package/dist/ui-library/p-5fc9cd7b.entry.js +2 -0
  1405. package/dist/ui-library/p-5fc9cd7b.entry.js.map +1 -0
  1406. package/dist/ui-library/p-618bf750.entry.js +2 -0
  1407. package/dist/ui-library/p-618bf750.entry.js.map +1 -0
  1408. package/dist/ui-library/p-62a1f514.entry.js +2 -0
  1409. package/dist/ui-library/p-62a1f514.entry.js.map +1 -0
  1410. package/dist/ui-library/p-651293e7.js +2 -0
  1411. package/dist/ui-library/p-651293e7.js.map +1 -0
  1412. package/dist/ui-library/p-6513b8ce.entry.js +2 -0
  1413. package/dist/ui-library/p-6513b8ce.entry.js.map +1 -0
  1414. package/dist/ui-library/p-6795e0a9.entry.js +2 -0
  1415. package/dist/ui-library/p-6795e0a9.entry.js.map +1 -0
  1416. package/dist/ui-library/p-6ec126f7.entry.js +2 -0
  1417. package/dist/ui-library/p-6ec126f7.entry.js.map +1 -0
  1418. package/dist/ui-library/p-705e3612.entry.js +2 -0
  1419. package/dist/ui-library/p-705e3612.entry.js.map +1 -0
  1420. package/dist/ui-library/p-70fac778.entry.js +2 -0
  1421. package/dist/ui-library/p-70fac778.entry.js.map +1 -0
  1422. package/dist/ui-library/p-7afdff5c.entry.js +2 -0
  1423. package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
  1424. package/dist/ui-library/p-7eb9ae75.entry.js +2 -0
  1425. package/dist/ui-library/p-7eb9ae75.entry.js.map +1 -0
  1426. package/dist/ui-library/{p-0fdb185d.js → p-7f856f00.js} +1 -1
  1427. package/dist/ui-library/{p-0fdb185d.js.map → p-7f856f00.js.map} +1 -1
  1428. package/dist/ui-library/{p-052aa8d3.js → p-8227aaed.js} +1 -1
  1429. package/dist/ui-library/{p-052aa8d3.js.map → p-8227aaed.js.map} +1 -1
  1430. package/dist/ui-library/{p-8c0971e0.js → p-842b492e.js} +1 -1
  1431. package/dist/ui-library/{p-8c0971e0.js.map → p-842b492e.js.map} +1 -1
  1432. package/dist/ui-library/{p-0f510624.js → p-862d474e.js} +1 -1
  1433. package/dist/ui-library/p-862d474e.js.map +1 -0
  1434. package/dist/ui-library/p-870139dc.entry.js +2 -0
  1435. package/dist/ui-library/p-870139dc.entry.js.map +1 -0
  1436. package/dist/ui-library/{p-7d95def3.js → p-8bfb4bfc.js} +1 -1
  1437. package/dist/ui-library/{p-7d95def3.js.map → p-8bfb4bfc.js.map} +1 -1
  1438. package/dist/ui-library/{p-e5020f0d.js → p-a04460e3.js} +2 -2
  1439. package/dist/ui-library/{p-e5020f0d.js.map → p-a04460e3.js.map} +1 -1
  1440. package/dist/ui-library/{p-698bb2c8.js → p-a1502802.js} +1 -1
  1441. package/dist/ui-library/{p-698bb2c8.js.map → p-a1502802.js.map} +1 -1
  1442. package/dist/ui-library/p-a20a702a.entry.js +2 -0
  1443. package/dist/ui-library/p-a20a702a.entry.js.map +1 -0
  1444. package/dist/ui-library/p-adc65fc8.entry.js +2 -0
  1445. package/dist/ui-library/p-adc65fc8.entry.js.map +1 -0
  1446. package/dist/ui-library/p-afb15ea4.entry.js +2 -0
  1447. package/dist/ui-library/p-afb15ea4.entry.js.map +1 -0
  1448. package/dist/ui-library/p-b361d5da.entry.js +2 -0
  1449. package/dist/ui-library/p-b361d5da.entry.js.map +1 -0
  1450. package/dist/ui-library/p-bfb398c6.entry.js +2 -0
  1451. package/dist/ui-library/p-bfb398c6.entry.js.map +1 -0
  1452. package/dist/ui-library/p-cd65e3b2.entry.js +2 -0
  1453. package/dist/ui-library/p-cd65e3b2.entry.js.map +1 -0
  1454. package/dist/ui-library/p-cd79700c.entry.js +2 -0
  1455. package/dist/ui-library/p-cd79700c.entry.js.map +1 -0
  1456. package/dist/ui-library/p-cdc9224d.entry.js +2 -0
  1457. package/dist/ui-library/p-cdc9224d.entry.js.map +1 -0
  1458. package/dist/ui-library/p-cdc94cd6.entry.js +2 -0
  1459. package/dist/ui-library/p-cdc94cd6.entry.js.map +1 -0
  1460. package/dist/ui-library/{p-13b43e04.entry.js → p-d46acf21.entry.js} +2 -2
  1461. package/dist/ui-library/p-d46acf21.entry.js.map +1 -0
  1462. package/dist/ui-library/p-d67b8482.entry.js +2 -0
  1463. package/dist/ui-library/p-d67b8482.entry.js.map +1 -0
  1464. package/dist/ui-library/p-db193a32.entry.js +2 -0
  1465. package/dist/ui-library/p-db193a32.entry.js.map +1 -0
  1466. package/dist/ui-library/p-e080d5b6.js +2 -0
  1467. package/dist/ui-library/p-e080d5b6.js.map +1 -0
  1468. package/dist/ui-library/p-e1255160.js +2 -0
  1469. package/dist/ui-library/p-e1255160.js.map +1 -0
  1470. package/dist/ui-library/p-e1529ef6.entry.js +2 -0
  1471. package/dist/ui-library/p-e1529ef6.entry.js.map +1 -0
  1472. package/dist/ui-library/p-e181944f.entry.js +2 -0
  1473. package/dist/ui-library/p-e181944f.entry.js.map +1 -0
  1474. package/dist/ui-library/p-e6efc08a.entry.js +2 -0
  1475. package/dist/ui-library/p-e6efc08a.entry.js.map +1 -0
  1476. package/dist/ui-library/p-e9462085.entry.js +2 -0
  1477. package/dist/ui-library/p-e9462085.entry.js.map +1 -0
  1478. package/dist/ui-library/p-ea854ec5.entry.js +2 -0
  1479. package/dist/ui-library/p-ea854ec5.entry.js.map +1 -0
  1480. package/dist/ui-library/p-f12b22bc.entry.js +2 -0
  1481. package/dist/ui-library/p-f12b22bc.entry.js.map +1 -0
  1482. package/dist/ui-library/p-f136a6b2.js +2 -0
  1483. package/dist/ui-library/p-f136a6b2.js.map +1 -0
  1484. package/dist/ui-library/p-f9a1f6ab.entry.js +2 -0
  1485. package/dist/ui-library/p-f9a1f6ab.entry.js.map +1 -0
  1486. package/dist/ui-library/p-ffce31da.entry.js +2 -0
  1487. package/dist/ui-library/p-ffce31da.entry.js.map +1 -0
  1488. package/dist/ui-library/ui-library.css +1 -10
  1489. package/dist/ui-library/ui-library.esm.js +1 -1
  1490. package/dist/ui-library/ui-library.esm.js.map +1 -1
  1491. package/loader/cdn.js +1 -3
  1492. package/loader/index.cjs.js +1 -3
  1493. package/loader/index.d.ts +3 -0
  1494. package/loader/index.es2017.js +1 -3
  1495. package/loader/index.js +1 -3
  1496. package/package.json +15 -31
  1497. package/dist/cjs/event-listeners-fdfe838c.js +0 -61
  1498. package/dist/cjs/event-listeners-fdfe838c.js.map +0 -1
  1499. package/dist/cjs/focus-visible-ae2470dd.js +0 -47
  1500. package/dist/cjs/form-2df8c5bb.js +0 -20
  1501. package/dist/cjs/form-control-9769b310.js +0 -36
  1502. package/dist/cjs/form-control-9769b310.js.map +0 -1
  1503. package/dist/cjs/index-900437fc.js +0 -2469
  1504. package/dist/cjs/index-900437fc.js.map +0 -1
  1505. package/dist/cjs/modal-d5f074c7.js +0 -52
  1506. package/dist/cjs/modal-d5f074c7.js.map +0 -1
  1507. package/dist/cjs/popover-2df7e154.js.map +0 -1
  1508. package/dist/cjs/popup-f1d9910f.js +0 -103
  1509. package/dist/cjs/popup-f1d9910f.js.map +0 -1
  1510. package/dist/cjs/scroll-2c4200dc.js +0 -68
  1511. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
  1512. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  1513. package/dist/cjs/six-dropdown_2.cjs.entry.js +0 -671
  1514. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +0 -1
  1515. package/dist/cjs/six-menu-item.cjs.entry.js +0 -63
  1516. package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
  1517. package/dist/cjs/slot-6e6a400f.js +0 -53
  1518. package/dist/cjs/slot-6e6a400f.js.map +0 -1
  1519. package/dist/cjs/types-47199040.js +0 -17
  1520. package/dist/cjs/types-47199040.js.map +0 -1
  1521. package/dist/collection/components/six-alert/test/six-alert.spec.js +0 -25
  1522. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +0 -1
  1523. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +0 -26
  1524. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +0 -1
  1525. package/dist/collection/components/six-badge/test/six-badge.spec.js +0 -20
  1526. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +0 -1
  1527. package/dist/collection/components/six-button/test/six-button.spec.js +0 -69
  1528. package/dist/collection/components/six-button/test/six-button.spec.js.map +0 -1
  1529. package/dist/collection/components/six-card/test/six-card.spec.js +0 -18
  1530. package/dist/collection/components/six-card/test/six-card.spec.js.map +0 -1
  1531. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +0 -83
  1532. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +0 -1
  1533. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +0 -26
  1534. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +0 -1
  1535. package/dist/collection/components/six-details/test/six-details.spec.js +0 -36
  1536. package/dist/collection/components/six-details/test/six-details.spec.js.map +0 -1
  1537. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +0 -34
  1538. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +0 -1
  1539. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +0 -34
  1540. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +0 -1
  1541. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +0 -122
  1542. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +0 -1
  1543. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +0 -240
  1544. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +0 -1
  1545. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +0 -67
  1546. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +0 -1
  1547. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +0 -169
  1548. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +0 -1
  1549. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +0 -103
  1550. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +0 -1
  1551. package/dist/collection/components/six-footer/test/six-footer.spec.js +0 -21
  1552. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +0 -1
  1553. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +0 -45
  1554. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +0 -1
  1555. package/dist/collection/components/six-header/assets/six-logo.svg +0 -1
  1556. package/dist/collection/components/six-header/test/six-header.spec.js +0 -133
  1557. package/dist/collection/components/six-header/test/six-header.spec.js.map +0 -1
  1558. package/dist/collection/components/six-icon/test/six-icon.spec.js +0 -20
  1559. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +0 -1
  1560. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +0 -23
  1561. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +0 -1
  1562. package/dist/collection/components/six-input/test/six-input.spec.js +0 -39
  1563. package/dist/collection/components/six-input/test/six-input.spec.js.map +0 -1
  1564. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +0 -90
  1565. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +0 -1
  1566. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +0 -196
  1567. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +0 -1
  1568. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +0 -18
  1569. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +0 -1
  1570. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +0 -22
  1571. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +0 -1
  1572. package/dist/collection/components/six-menu/test/six-menu.spec.js +0 -93
  1573. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +0 -1
  1574. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +0 -18
  1575. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +0 -1
  1576. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +0 -33
  1577. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +0 -1
  1578. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +0 -20
  1579. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +0 -1
  1580. package/dist/collection/components/six-picto/test/six-picto.spec.js +0 -33
  1581. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +0 -1
  1582. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +0 -24
  1583. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +0 -1
  1584. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +0 -26
  1585. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +0 -1
  1586. package/dist/collection/components/six-radio/test/six-radio.spec.js +0 -63
  1587. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +0 -1
  1588. package/dist/collection/components/six-range/test/six-range.spec.js +0 -34
  1589. package/dist/collection/components/six-range/test/six-range.spec.js.map +0 -1
  1590. package/dist/collection/components/six-root/test/six-root.spec.js +0 -43
  1591. package/dist/collection/components/six-root/test/six-root.spec.js.map +0 -1
  1592. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +0 -22
  1593. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +0 -1
  1594. package/dist/collection/components/six-select/test/six-select.spec.js +0 -86
  1595. package/dist/collection/components/six-select/test/six-select.spec.js.map +0 -1
  1596. package/dist/collection/components/six-select/test/util.spec.js +0 -81
  1597. package/dist/collection/components/six-select/test/util.spec.js.map +0 -1
  1598. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +0 -22
  1599. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +0 -1
  1600. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +0 -50
  1601. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +0 -1
  1602. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +0 -53
  1603. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +0 -1
  1604. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +0 -37
  1605. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +0 -1
  1606. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +0 -117
  1607. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +0 -1
  1608. package/dist/collection/components/six-switch/test/six-switch.spec.js +0 -73
  1609. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +0 -1
  1610. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +0 -20
  1611. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +0 -1
  1612. package/dist/collection/components/six-tag/test/six-tag.spec.js +0 -54
  1613. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +0 -1
  1614. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +0 -119
  1615. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +0 -1
  1616. package/dist/collection/components/six-tile/test/six-tile.spec.js +0 -69
  1617. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +0 -1
  1618. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +0 -496
  1619. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +0 -1
  1620. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +0 -28
  1621. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +0 -1
  1622. package/dist/collection/files/file-list.json +0 -308
  1623. package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
  1624. package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
  1625. package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
  1626. package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
  1627. package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
  1628. package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
  1629. package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
  1630. package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
  1631. package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
  1632. package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
  1633. package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
  1634. package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
  1635. package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
  1636. package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
  1637. package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
  1638. package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
  1639. package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
  1640. package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
  1641. package/dist/collection/utils/date-util.spec.js +0 -995
  1642. package/dist/collection/utils/date-util.spec.js.map +0 -1
  1643. package/dist/collection/utils/scroll.spec.js +0 -122
  1644. package/dist/collection/utils/scroll.spec.js.map +0 -1
  1645. package/dist/collection/utils/support.js +0 -16
  1646. package/dist/collection/utils/support.js.map +0 -1
  1647. package/dist/collection/utils/time.util.spec.js +0 -368
  1648. package/dist/collection/utils/time.util.spec.js.map +0 -1
  1649. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
  1650. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  1651. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +0 -16
  1652. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +0 -1
  1653. package/dist/components/set-attributes.js +0 -8
  1654. package/dist/components/set-attributes.js.map +0 -1
  1655. package/dist/components/set-attributes2.js +0 -71
  1656. package/dist/components/set-attributes2.js.map +0 -1
  1657. package/dist/components/six-tag2.js +0 -102
  1658. package/dist/components/six-tag2.js.map +0 -1
  1659. package/dist/esm/event-listeners-f6e5b0ab.js +0 -59
  1660. package/dist/esm/event-listeners-f6e5b0ab.js.map +0 -1
  1661. package/dist/esm/focus-visible-fc6ac671.js +0 -45
  1662. package/dist/esm/form-81252534.js +0 -18
  1663. package/dist/esm/form-control-b0febe88.js +0 -34
  1664. package/dist/esm/form-control-b0febe88.js.map +0 -1
  1665. package/dist/esm/index-8a74f992.js +0 -2440
  1666. package/dist/esm/index-8a74f992.js.map +0 -1
  1667. package/dist/esm/modal-7d32e141.js +0 -49
  1668. package/dist/esm/modal-7d32e141.js.map +0 -1
  1669. package/dist/esm/polyfills/core-js.js +0 -11
  1670. package/dist/esm/polyfills/dom.js +0 -79
  1671. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1672. package/dist/esm/polyfills/index.js +0 -34
  1673. package/dist/esm/polyfills/system.js +0 -6
  1674. package/dist/esm/popover-136d1f73.js.map +0 -1
  1675. package/dist/esm/popup-7f89a001.js +0 -98
  1676. package/dist/esm/popup-7f89a001.js.map +0 -1
  1677. package/dist/esm/scroll-774762d6.js +0 -64
  1678. package/dist/esm/set-attributes_2.entry.js +0 -68
  1679. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  1680. package/dist/esm/six-dropdown_2.entry.js +0 -666
  1681. package/dist/esm/six-dropdown_2.entry.js.map +0 -1
  1682. package/dist/esm/six-menu-item.entry.js +0 -59
  1683. package/dist/esm/six-menu-item.entry.js.map +0 -1
  1684. package/dist/esm/slot-ad36df3a.js +0 -48
  1685. package/dist/esm/slot-ad36df3a.js.map +0 -1
  1686. package/dist/esm/types-59b455aa.js +0 -17
  1687. package/dist/esm/types-59b455aa.js.map +0 -1
  1688. package/dist/types/utils/support.d.ts +0 -1
  1689. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  1690. package/dist/ui-library/assets/six-logo.svg +0 -1
  1691. package/dist/ui-library/files/file-list.json +0 -308
  1692. package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
  1693. package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
  1694. package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
  1695. package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
  1696. package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
  1697. package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
  1698. package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
  1699. package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
  1700. package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
  1701. package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
  1702. package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
  1703. package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
  1704. package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
  1705. package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
  1706. package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
  1707. package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
  1708. package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
  1709. package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
  1710. package/dist/ui-library/p-0f510624.js.map +0 -1
  1711. package/dist/ui-library/p-13b43e04.entry.js.map +0 -1
  1712. package/dist/ui-library/p-14c1ec31.entry.js +0 -2
  1713. package/dist/ui-library/p-14c1ec31.entry.js.map +0 -1
  1714. package/dist/ui-library/p-15559d38.js +0 -2
  1715. package/dist/ui-library/p-15559d38.js.map +0 -1
  1716. package/dist/ui-library/p-1d5ee1a0.entry.js +0 -2
  1717. package/dist/ui-library/p-1d5ee1a0.entry.js.map +0 -1
  1718. package/dist/ui-library/p-22c9b8c3.entry.js +0 -2
  1719. package/dist/ui-library/p-22c9b8c3.entry.js.map +0 -1
  1720. package/dist/ui-library/p-25bb1752.entry.js +0 -2
  1721. package/dist/ui-library/p-25bb1752.entry.js.map +0 -1
  1722. package/dist/ui-library/p-264d4ea8.entry.js +0 -2
  1723. package/dist/ui-library/p-264d4ea8.entry.js.map +0 -1
  1724. package/dist/ui-library/p-346f9557.entry.js +0 -2
  1725. package/dist/ui-library/p-346f9557.entry.js.map +0 -1
  1726. package/dist/ui-library/p-37557787.entry.js +0 -2
  1727. package/dist/ui-library/p-37557787.entry.js.map +0 -1
  1728. package/dist/ui-library/p-3cc5addb.entry.js +0 -2
  1729. package/dist/ui-library/p-3cc5addb.entry.js.map +0 -1
  1730. package/dist/ui-library/p-3f1a5ecb.entry.js +0 -2
  1731. package/dist/ui-library/p-3f1a5ecb.entry.js.map +0 -1
  1732. package/dist/ui-library/p-411ed539.entry.js +0 -2
  1733. package/dist/ui-library/p-411ed539.entry.js.map +0 -1
  1734. package/dist/ui-library/p-4435ff73.entry.js +0 -2
  1735. package/dist/ui-library/p-4435ff73.entry.js.map +0 -1
  1736. package/dist/ui-library/p-538f3c50.entry.js +0 -2
  1737. package/dist/ui-library/p-538f3c50.entry.js.map +0 -1
  1738. package/dist/ui-library/p-5800663b.entry.js +0 -2
  1739. package/dist/ui-library/p-5800663b.entry.js.map +0 -1
  1740. package/dist/ui-library/p-59210f0b.js +0 -2
  1741. package/dist/ui-library/p-59210f0b.js.map +0 -1
  1742. package/dist/ui-library/p-5af44076.entry.js +0 -2
  1743. package/dist/ui-library/p-5af44076.entry.js.map +0 -1
  1744. package/dist/ui-library/p-5ba3a0fe.entry.js +0 -2
  1745. package/dist/ui-library/p-5ba3a0fe.entry.js.map +0 -1
  1746. package/dist/ui-library/p-613283a7.entry.js +0 -2
  1747. package/dist/ui-library/p-613283a7.entry.js.map +0 -1
  1748. package/dist/ui-library/p-6153045b.js +0 -3
  1749. package/dist/ui-library/p-6153045b.js.map +0 -1
  1750. package/dist/ui-library/p-6197fe2f.entry.js +0 -2
  1751. package/dist/ui-library/p-6197fe2f.entry.js.map +0 -1
  1752. package/dist/ui-library/p-658d9f79.entry.js +0 -2
  1753. package/dist/ui-library/p-658d9f79.entry.js.map +0 -1
  1754. package/dist/ui-library/p-66fe54b3.entry.js +0 -2
  1755. package/dist/ui-library/p-66fe54b3.entry.js.map +0 -1
  1756. package/dist/ui-library/p-724875b0.entry.js +0 -2
  1757. package/dist/ui-library/p-724875b0.entry.js.map +0 -1
  1758. package/dist/ui-library/p-7afafb9d.entry.js +0 -2
  1759. package/dist/ui-library/p-7afafb9d.entry.js.map +0 -1
  1760. package/dist/ui-library/p-7e3ad38a.entry.js +0 -2
  1761. package/dist/ui-library/p-7e3ad38a.entry.js.map +0 -1
  1762. package/dist/ui-library/p-878226a0.entry.js +0 -2
  1763. package/dist/ui-library/p-878226a0.entry.js.map +0 -1
  1764. package/dist/ui-library/p-91b51800.entry.js +0 -2
  1765. package/dist/ui-library/p-91b51800.entry.js.map +0 -1
  1766. package/dist/ui-library/p-95fbdd0b.entry.js +0 -2
  1767. package/dist/ui-library/p-95fbdd0b.entry.js.map +0 -1
  1768. package/dist/ui-library/p-9ace84c7.js +0 -2
  1769. package/dist/ui-library/p-9ace84c7.js.map +0 -1
  1770. package/dist/ui-library/p-9b354f5d.entry.js +0 -2
  1771. package/dist/ui-library/p-9b354f5d.entry.js.map +0 -1
  1772. package/dist/ui-library/p-9c1be3fb.entry.js +0 -2
  1773. package/dist/ui-library/p-9c1be3fb.entry.js.map +0 -1
  1774. package/dist/ui-library/p-a0f290d0.entry.js +0 -2
  1775. package/dist/ui-library/p-a0f290d0.entry.js.map +0 -1
  1776. package/dist/ui-library/p-a2035543.entry.js +0 -2
  1777. package/dist/ui-library/p-a2035543.entry.js.map +0 -1
  1778. package/dist/ui-library/p-a457fee8.entry.js +0 -2
  1779. package/dist/ui-library/p-a457fee8.entry.js.map +0 -1
  1780. package/dist/ui-library/p-a55c7258.entry.js +0 -2
  1781. package/dist/ui-library/p-a55c7258.entry.js.map +0 -1
  1782. package/dist/ui-library/p-a6a9ee96.entry.js +0 -2
  1783. package/dist/ui-library/p-a6a9ee96.entry.js.map +0 -1
  1784. package/dist/ui-library/p-ab91c2a9.entry.js +0 -2
  1785. package/dist/ui-library/p-ab91c2a9.entry.js.map +0 -1
  1786. package/dist/ui-library/p-ac099e6b.entry.js +0 -2
  1787. package/dist/ui-library/p-ac099e6b.entry.js.map +0 -1
  1788. package/dist/ui-library/p-ae601a0f.entry.js +0 -2
  1789. package/dist/ui-library/p-ae601a0f.entry.js.map +0 -1
  1790. package/dist/ui-library/p-b351f889.entry.js +0 -2
  1791. package/dist/ui-library/p-b351f889.entry.js.map +0 -1
  1792. package/dist/ui-library/p-b57afbe4.entry.js +0 -2
  1793. package/dist/ui-library/p-b57afbe4.entry.js.map +0 -1
  1794. package/dist/ui-library/p-b6f47c9d.entry.js +0 -2
  1795. package/dist/ui-library/p-b6f47c9d.entry.js.map +0 -1
  1796. package/dist/ui-library/p-c03ebf7d.entry.js +0 -2
  1797. package/dist/ui-library/p-c03ebf7d.entry.js.map +0 -1
  1798. package/dist/ui-library/p-cba69e9d.entry.js +0 -2
  1799. package/dist/ui-library/p-cba69e9d.entry.js.map +0 -1
  1800. package/dist/ui-library/p-cd67da3d.entry.js +0 -2
  1801. package/dist/ui-library/p-cd67da3d.entry.js.map +0 -1
  1802. package/dist/ui-library/p-cdaed936.entry.js +0 -2
  1803. package/dist/ui-library/p-cdaed936.entry.js.map +0 -1
  1804. package/dist/ui-library/p-d1bda563.entry.js +0 -2
  1805. package/dist/ui-library/p-d1bda563.entry.js.map +0 -1
  1806. package/dist/ui-library/p-db34a6cc.entry.js +0 -2
  1807. package/dist/ui-library/p-db34a6cc.entry.js.map +0 -1
  1808. package/dist/ui-library/p-db936ad7.entry.js +0 -2
  1809. package/dist/ui-library/p-db936ad7.entry.js.map +0 -1
  1810. package/dist/ui-library/p-dc4f41d8.entry.js +0 -2
  1811. package/dist/ui-library/p-dc4f41d8.entry.js.map +0 -1
  1812. package/dist/ui-library/p-dfed33c5.entry.js +0 -2
  1813. package/dist/ui-library/p-dfed33c5.entry.js.map +0 -1
  1814. package/dist/ui-library/p-e775dcb4.entry.js +0 -2
  1815. package/dist/ui-library/p-e775dcb4.entry.js.map +0 -1
  1816. package/dist/ui-library/p-ee950ce2.entry.js +0 -2
  1817. package/dist/ui-library/p-ee950ce2.entry.js.map +0 -1
  1818. package/dist/ui-library/p-f1dc3a88.entry.js +0 -2
  1819. package/dist/ui-library/p-f1dc3a88.entry.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import{r as i,c as e,h as t,g as s}from"./p-6153045b.js";import{h as l,g as a}from"./p-15559d38.js";const o=':host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:inline-block}.tile{min-height:var(--tile-size);width:var(--tile-size);background-color:var(--six-color-clay-50);display:inline-grid;grid-template-columns:100%;grid-template-areas:"header" "middle" "footer"}.tile--small{--tile-size:80px;--tile-padding-size:var(--six-spacing-medium)}.tile--medium{--tile-size:120px;--tile-padding-size:var(--six-spacing-large)}.tile--large{--tile-size:160px;--tile-padding-size:var(--six-spacing-x-large)}.tile:not(.tile--visible){visibility:hidden}.tile--elevated{border:0;box-shadow:var(--six-elevation-8dp)}.tile__header{grid-area:header;height:5%;justify-self:right;display:flex;justify-content:right;opacity:0;transition:var(--six-transition-fast) opacity}.tile:hover>.tile__header{opacity:1}.tile__header--hidden{visibility:hidden}.tile__header six-icon-button{margin-top:-6px;margin-right:-6px;margin-bottom:-16px}.tile__body,.tile__body--large,.tile__body--medium,.tile__body--small{grid-area:middle;display:grid;place-items:center;cursor:pointer;padding-left:var(--tile-padding-size);padding-right:var(--tile-padding-size)}.tile__body six-icon::part(base),.tile__body--large six-icon::part(base),.tile__body--medium six-icon::part(base),.tile__body--small six-icon::part(base){padding:0}.tile__body--small{--tile-padding-size:var(--six-spacing-medium)}.tile__body--medium{--tile-padding-size:var(--six-spacing-large)}.tile__body--large{--tile-padding-size:var(--six-spacing-x-large)}.tile__footer,.tile__footer--large,.tile__footer--medium,.tile__footer--small{grid-area:footer;display:flex;justify-content:center;cursor:pointer;font-weight:var(--six-font-weight-normal);color:var(--six-color-web-rock-900)}.tile__footer--small{font-size:var(--six-font-size-xxx-small)}.tile__footer--medium{font-size:var(--six-font-size-xx-small)}.tile__footer--large{font-size:var(--six-font-size-small)}.tile__footer .label__footer,.tile__footer--small .label__footer,.tile__footer--medium .label__footer,.tile__footer--large .label__footer{overflow:hidden;text-overflow:ellipsis;width:calc(var(--tile-size) - 2em);text-align:center}';const r=class{constructor(t){i(this,t);this.sixTileClose=e(this,"six-tile-closed",7);this.sixTileSelected=e(this,"six-tile-selected",7);this.handleSlotChange=()=>{this.hasIconSlot=l(this.host,"icon");this.hasLabelSlot=l(this.host,"label");if(this.hasIconSlot){const i=a(this.host,"icon");i===null||i===void 0?void 0:i.addEventListener("click",this.handleClickEvent)}if(this.hasLabelSlot){const i=a(this.host,"label");i===null||i===void 0?void 0:i.addEventListener("click",this.handleClickEvent)}};this.handleCloseClickEvent=()=>{this.visible=false;this.sixTileClose.emit()};this.handleClickEvent=()=>{this.sixTileSelected.emit()};this.label="";this.iconName=undefined;this.closeable=true;this.elevated=false;this.disableTooltip=true;this.disabled=false;this.size="medium";this.visible=true;this.hasIconSlot=false;this.hasLabelSlot=false}async hide(){this.visible=false}async show(){this.visible=true}componentWillLoad(){this.handleSlotChange()}render(){return t("six-tooltip",{disabled:this.disableTooltip||this.label==="",content:this.label},t("div",{part:"base",class:{tile:true,"tile--visible":this.visible,"tile--small":this.size==="small","tile--medium":this.size==="medium","tile--large":this.size==="large","tile--elevated":this.elevated}},t("div",{part:"header",class:"tile__header"},t("six-icon-button",{class:{"tile__header--hidden":!this.closeable},name:"close",size:d(this.size),onClick:this.handleCloseClickEvent})),t("div",{part:"body",class:"tile__body"},this.iconName&&t("six-icon",{onClick:this.handleClickEvent,size:n(this.size)},this.iconName),this.hasIconSlot&&t("slot",{name:"icon"})),t("div",{part:"footer",class:{"tile__footer--small":this.size==="small","tile__footer--medium":this.size==="medium","tile__footer--large":this.size==="large"}},this.label&&t("div",{class:{".label__footer":true},onClick:this.handleClickEvent},this.label),this.hasLabelSlot&&t("slot",{name:"label"}))))}get host(){return s(this)}};const d=i=>({small:"xxSmall",medium:"medium",large:"medium"}[i]);const n=i=>({small:"xLarge",medium:"xxLarge",large:"xxxLarge"}[i]);r.style=o;export{r as six_tile};
2
- //# sourceMappingURL=p-c03ebf7d.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixTileCss","SixTile","this","handleSlotChange","hasIconSlot","hasSlot","host","hasLabelSlot","slot","getSlot","addEventListener","handleClickEvent","handleCloseClickEvent","visible","sixTileClose","emit","sixTileSelected","hide","show","componentWillLoad","render","h","disabled","disableTooltip","label","content","part","class","tile","size","elevated","closeable","name","closeIconSize","onClick","iconName","iconSize","small","medium","large"],"sources":["src/components/six-tile/six-tile.scss?tag=six-tile&encapsulation=shadow","src/components/six-tile/six-tile.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n}\n\n.tile {\n &--small {\n --tile-size: 80px;\n --tile-padding-size: var(--six-spacing-medium);\n }\n\n &--medium {\n --tile-size: 120px;\n --tile-padding-size: var(--six-spacing-large);\n }\n\n &--large {\n --tile-size: 160px;\n --tile-padding-size: var(--six-spacing-x-large);\n }\n\n min-height: var(--tile-size);\n width: var(--tile-size);\n\n background-color: var(--six-color-clay-50);\n\n display: inline-grid;\n grid-template-columns: 100%;\n grid-template-areas:\n 'header'\n 'middle'\n 'footer';\n\n &:not(.tile--visible) {\n visibility: hidden;\n }\n\n &--elevated {\n border: 0;\n box-shadow: var(--six-elevation-8dp);\n }\n}\n\n.tile__header {\n grid-area: header;\n height: 5%;\n justify-self: right;\n display: flex;\n justify-content: right;\n opacity: 0;\n transition: var(--six-transition-fast) opacity;\n\n .tile:hover > & {\n opacity: 1;\n }\n\n &--hidden {\n visibility: hidden;\n }\n\n six-icon-button {\n margin-top: -6px;\n margin-right: -6px;\n margin-bottom: -16px;\n }\n}\n\n.tile__body {\n grid-area: middle;\n display: grid;\n place-items: center;\n cursor: pointer;\n\n six-icon::part(base) {\n padding: 0;\n }\n\n &--small {\n @extend .tile__body;\n --tile-padding-size: var(--six-spacing-medium);\n }\n\n &--medium {\n @extend .tile__body;\n --tile-padding-size: var(--six-spacing-large);\n }\n\n &--large {\n @extend .tile__body;\n --tile-padding-size: var(--six-spacing-x-large);\n }\n\n padding-left: var(--tile-padding-size);\n padding-right: var(--tile-padding-size);\n}\n\n.tile__footer {\n grid-area: footer;\n display: flex;\n justify-content: center;\n cursor: pointer;\n font-weight: var(--six-font-weight-normal);\n color: var(--six-color-web-rock-900);\n\n &--small {\n @extend .tile__footer;\n font-size: var(--six-font-size-xxx-small);\n }\n\n &--medium {\n @extend .tile__footer;\n font-size: var(--six-font-size-xx-small);\n }\n\n &--large {\n @extend .tile__footer;\n font-size: var(--six-font-size-small);\n }\n\n .label__footer {\n overflow: hidden;\n text-overflow: ellipsis;\n width: calc(var(--tile-size) - 2em);\n text-align: center;\n }\n}\n","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 @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 @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 {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,KAAK,QACLH,KAAMI,EAAc/B,KAAK2B,MACzBK,QAAShC,KAAKU,yBAIlBS,EAAA,OAAKK,KAAK,OAAOC,MAAM,cACpBzB,KAAKiC,UACJd,EAAA,YAAUa,QAAShC,KAAKS,iBAAkBkB,KAAMO,EAASlC,KAAK2B,OAC3D3B,KAAKiC,UAGTjC,KAAKE,aAAeiB,EAAA,QAAMW,KAAK,UAGlCX,EAAA,OACEK,KAAK,SACLC,MAAO,CACL,sBAAuBzB,KAAK2B,OAAS,QACrC,uBAAwB3B,KAAK2B,OAAS,SACtC,sBAAuB3B,KAAK2B,OAAS,UAGtC3B,KAAKsB,OACJH,EAAA,OACEM,MAAO,CACL,iBAAkB,MAEpBO,QAAShC,KAAKS,kBAEbT,KAAKsB,OAGTtB,KAAKK,cAAgBc,EAAA,QAAMW,KAAK,Y,6BAiB7C,MAAMC,EAAiBJ,IACd,CACLQ,MAAO,UACPC,OAAQ,SACRC,MAAO,UACPV,IAGJ,MAAMO,EAAYP,IACT,CACLQ,MAAO,SACPC,OAAQ,UACRC,MAAO,YACPV,I"}
@@ -1,2 +0,0 @@
1
- import{r as i,c as s,h as t,g as e}from"./p-6153045b.js";import{f as a}from"./p-5654e4c7.js";const o=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--hide-duration:var(--six-transition-medium);--hide-timing-function:ease;--show-duration:var(--six-transition-medium);--show-timing-function:ease;--horizontal-padding:var(--six-spacing-medium);font-family:var(--six-font-family);display:block}.details{border:solid var(--six-border-width) var(--six-input-border-color);border-radius:var(--six-border-radius-medium);color:var(--six-details-color);overflow-anchor:none;font-size:var(--six-input-font-size-medium)}.details:hover:not(.details--disabled):not(.details--open){border-color:var(--six-input-border-color-hover)}.details.inline{border:none;color:var(--six-sidebar-color)}.details.inline:hover{background-color:var(--six-sidebar-hover-background-color)}.details.inline.details--open{background-color:var(--six-color-web-rock-50)}.details.inline.details--open:hover{border:none;box-shadow:none}.details.inline.details--open>.details__header{color:var(--six-sidebar-color);font-weight:var(--six-font-weight-bold);background-color:var(--six-sidebar-header-background-color)}.details--disabled{background-color:var(--six-input-background-color-disabled);border-color:var(--six-input-border-color-disabled);color:var(--six-input-color-disabled)}.details__header{display:flex;align-items:center;border-radius:inherit;padding:var(--six-spacing-medium) var(--horizontal-padding);user-select:none;cursor:pointer}.details__header:focus{outline:none}.details--disabled .details__header{cursor:not-allowed;border-width:1px}.details--disabled .details__header:focus{outline:none;box-shadow:none}.details__summary{flex:1 1 auto;display:flex;align-items:center}.details__summary-icon{flex:0 0 auto;display:flex;align-items:center;font-size:1.2em;transition:var(--six-transition-medium) transform ease}.details--open .details__summary-icon--animate{transform:rotate(-180deg)}.details--open:hover{color:var(--six-input-color-focus)}.details__body{height:0;overflow:hidden;transition-property:height;transition-duration:var(--hide-duration);transition-timing-function:var(--hide-timing-function)}.details--open .details__body{transition-duration:var(--show-duration);transition-timing-function:var(--show-timing-function)}.details__content{padding:var(--six-spacing-medium)}";let r=0;const n=class{constructor(t){i(this,t);this.sixShow=s(this,"six-details-show",7);this.sixAfterShow=s(this,"six-details-after-show",7);this.sixHide=s(this,"six-details-hide",7);this.sixAfterHide=s(this,"six-details-after-hide",7);this.componentId=`details-${++r}`;this.isVisible=false;this.handleBodyTransitionEnd=i=>{if(this.body==null)return;const s=i.target;if(i.propertyName==="height"&&s.classList.contains("details__body")){this.body.style.overflow=this.open?"visible":"hidden";this.body.style.height=this.open?"auto":"0";this.open?this.sixAfterShow.emit():this.sixAfterHide.emit();this.body.hidden=!this.open}};this.handleSummaryClick=()=>{var i;if(!this.disabled&&(this.hasContent||this.selectableEmpty)){this.open?this.hide():this.show();(i=this.header)===null||i===void 0?void 0:i.focus()}};this.handleSummaryKeyDown=i=>{if(i.key==="Enter"||i.key===" "){i.preventDefault();this.open?this.hide():this.show()}if(i.key==="ArrowUp"||i.key==="ArrowLeft"){i.preventDefault();this.hide()}if(i.key==="ArrowDown"||i.key==="ArrowRight"){i.preventDefault();this.show()}};this.animateSummaryIcon=true;this.open=false;this.summary="";this.summaryIcon=undefined;this.summaryIconSize="inherit";this.disabled=false;this.inline=false;this.selectableEmpty=false;this.hasContent=true}handleOpenChange(){if(this.body!=null){this.open?this.show():this.hide()}}componentDidLoad(){if(this.details==null||this.body==null)return;a.observe(this.details);this.body.hidden=!this.open;if(this.open){this.show()}}disconnectedCallback(){if(this.details!=null){a.unobserve(this.details)}}async show(){if(this.isVisible||this.body==null)return;const i=this.sixShow.emit();if(i.defaultPrevented){this.open=false;return}this.body.hidden=false;if(this.body.scrollHeight===0){this.body.style.height="auto";this.body.style.overflow="visible"}else{this.body.style.height=`${this.body.scrollHeight}px`;this.body.style.overflow="hidden"}this.isVisible=true;this.open=true}async hide(){if(!this.isVisible||this.body==null)return;const i=this.body;const s=this.sixHide.emit();if(s.defaultPrevented){this.open=true;return}i.style.height=`${i.scrollHeight}px`;i.style.overflow="hidden";requestAnimationFrame((()=>{i.style.height="0"}));this.isVisible=false;this.open=false}render(){const i=this.hasContent&&(this.summaryIcon||"expand_more");return t("div",{ref:i=>this.details=i,part:"base",class:{details:true,"details--open":this.open,"details--disabled":this.disabled,inline:this.inline}},t("header",{ref:i=>this.header=i,part:"header",id:`${this.componentId}-header`,class:"details__header",role:"button","aria-expanded":this.open?"true":"false","aria-controls":`${this.componentId}-content`,"aria-disabled":this.disabled?"true":"false",tabIndex:this.disabled?-1:0,onClick:this.handleSummaryClick,onKeyDown:this.handleSummaryKeyDown},t("div",{part:"summary",class:"details__summary"},t("slot",{name:"summary"},this.summary)),t("span",{part:"summary-icon",class:{"details__summary-icon":true,"details__summary-icon--animate":this.animateSummaryIcon}},t("slot",{name:"summary-icon",onSlotchange:()=>this.animateSummaryIcon=false},i&&t("six-icon",{size:this.summaryIconSize},i)))),t("div",{ref:i=>this.body=i,class:"details__body",onTransitionEnd:this.handleBodyTransitionEnd},t("div",{part:"content",id:`${this.componentId}-content`,class:"details__content",role:"region","aria-labelledby":`${this.componentId}-header`},t("slot",null))))}get host(){return e(this)}static get watchers(){return{open:["handleOpenChange"]}}};n.style=o;export{n as six_details};
2
- //# sourceMappingURL=p-cba69e9d.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixDetailsCss","id","SixDetails","this","componentId","isVisible","handleBodyTransitionEnd","event","body","target","propertyName","classList","contains","style","overflow","open","height","sixAfterShow","emit","sixAfterHide","hidden","handleSummaryClick","disabled","hasContent","selectableEmpty","hide","show","_a","header","focus","handleSummaryKeyDown","key","preventDefault","handleOpenChange","componentDidLoad","details","focusVisible","observe","disconnectedCallback","unobserve","sixShow","defaultPrevented","scrollHeight","sixHide","requestAnimationFrame","render","summaryIcon","h","ref","el","part","class","inline","role","tabIndex","onClick","onKeyDown","name","summary","animateSummaryIcon","onSlotchange","size","summaryIconSize","onTransitionEnd"],"sources":["src/components/six-details/six-details.scss?tag=six-details&encapsulation=shadow","src/components/six-details/six-details.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --hide-duration: The length of the hide transition.\n * @prop --hide-timing-function: The timing function (easing) to use for the hide transition.\n * @prop --show-duration: The length of the show transition.\n * @prop --show-timing-function: The timing function (easing) to use for the show transition.\n * @prop --horizontal-padding: The horizontal padding\n */\n:host {\n --hide-duration: var(--six-transition-medium);\n --hide-timing-function: ease;\n --show-duration: var(--six-transition-medium);\n --show-timing-function: ease;\n --horizontal-padding: var(--six-spacing-medium);\n\n font-family: var(--six-font-family);\n display: block;\n}\n\n.details {\n border: solid var(--six-border-width) var(--six-input-border-color);\n border-radius: var(--six-border-radius-medium);\n color: var(--six-details-color);\n overflow-anchor: none;\n font-size: var(--six-input-font-size-medium);\n\n &:hover:not(.details--disabled):not(.details--open) {\n border-color: var(--six-input-border-color-hover);\n }\n\n &.inline {\n border: none;\n color: var(--six-sidebar-color);\n\n &:hover {\n background-color: var(--six-sidebar-hover-background-color);\n }\n\n &.details--open {\n background-color: var(--six-color-web-rock-50);\n\n &:hover {\n border: none;\n box-shadow: none;\n }\n\n & > .details__header {\n color: var(--six-sidebar-color);\n font-weight: var(--six-font-weight-bold);\n background-color: var(--six-sidebar-header-background-color);\n }\n }\n }\n}\n\n.details--disabled {\n background-color: var(--six-input-background-color-disabled);\n border-color: var(--six-input-border-color-disabled);\n color: var(--six-input-color-disabled);\n}\n\n.details__header {\n display: flex;\n align-items: center;\n border-radius: inherit;\n padding: var(--six-spacing-medium) var(--horizontal-padding);\n user-select: none;\n cursor: pointer;\n\n &:focus {\n outline: none;\n }\n}\n\n.focus-visible .details__header:focus {\n}\n\n.details--disabled .details__header {\n cursor: not-allowed;\n border-width: 1px;\n\n &:focus {\n outline: none;\n box-shadow: none;\n }\n}\n\n.details__summary {\n flex: 1 1 auto;\n display: flex;\n align-items: center;\n}\n\n.details__summary-icon {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: 1.2em;\n transition: var(--six-transition-medium) transform ease;\n}\n\n.details--open .details__summary-icon--animate {\n transform: rotate(-180deg);\n}\n\n.details--open:hover {\n color: var(--six-input-color-focus);\n}\n\n.details__body {\n height: 0;\n overflow: hidden;\n transition-property: height;\n transition-duration: var(--hide-duration);\n transition-timing-function: var(--hide-timing-function);\n}\n\n.details--open .details__body {\n transition-duration: var(--show-duration);\n transition-timing-function: var(--show-timing-function);\n}\n\n.details__content {\n padding: var(--six-spacing-medium);\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { focusVisible } from '../../utils/focus-visible';\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 details' content.\n * @slot summary - The details' summary. Alternatively, you can use the summary prop.\n *\n * @part base - The component's base wrapper.\n * @part header - The summary header.\n * @part summary - The details summary.\n * @part summary-icon - The expand/collapse summary icon.\n * @part content - The details content.\n */\n\n@Component({\n tag: 'six-details',\n styleUrl: 'six-details.scss',\n shadow: true,\n})\nexport class SixDetails {\n @Element() readonly host!: HTMLSixDetailsElement;\n\n @State() animateSummaryIcon = true;\n\n private body?: HTMLElement;\n private details?: HTMLElement;\n private header?: HTMLElement;\n private componentId = `details-${++id}`;\n private isVisible = false;\n\n /** Indicates whether the details is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** The summary to show in the details header. If you need to display HTML, use the `summary` slot instead. */\n @Prop() summary = '';\n\n /** The summary icon to show in the details header. If you need to display HTML, use the `summary-icon` slot instead. */\n @Prop() summaryIcon?: string;\n\n /** The icon's size. */\n @Prop({ reflect: true }) summaryIconSize:\n | 'inherit'\n | 'xSmall'\n | 'small'\n | 'medium'\n | 'large'\n | 'xLarge'\n | 'xxLarge'\n | 'xxxLarge' = 'inherit';\n\n /** Set to true to prevent the user from toggling the details. */\n @Prop() disabled = false;\n\n /** Set to true when you want to use six-details inline e.g. in a sidebar */\n @Prop() inline = false;\n\n /** Set to true when you want details without content to be selectable. This is important if you e.g. have a toggled sidebar where some menus have no children */\n @Prop() selectableEmpty = false;\n\n /** Set to false when you want to hide the summary icon and disable the open/close mechanism. Usually not needed, but used internally by 'six-sidebar-item-group' */\n @Prop() hasContent = true;\n\n @Watch('open')\n handleOpenChange() {\n if (this.body != null) {\n this.open ? this.show() : this.hide();\n }\n }\n\n /** Emitted when the details opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-details-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the details opens and all transitions are complete. */\n @Event({ eventName: 'six-details-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the details closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-details-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the details closes and all transitions are complete. */\n @Event({ eventName: 'six-details-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n componentDidLoad() {\n if (this.details == null || this.body == null) return;\n\n focusVisible.observe(this.details);\n this.body.hidden = !this.open;\n\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n disconnectedCallback() {\n if (this.details != null) {\n focusVisible.unobserve(this.details);\n }\n }\n\n /** Shows the detail body */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible || this.body == null) return;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.body.hidden = false;\n\n if (this.body.scrollHeight === 0) {\n // When the scroll height can't be measured, use auto. This prevents a borked open state when the details is open\n // initially, but not immediately visible (i.e. in a tab panel).\n this.body.style.height = 'auto';\n this.body.style.overflow = 'visible';\n } else {\n this.body.style.height = `${this.body.scrollHeight}px`;\n this.body.style.overflow = 'hidden';\n }\n this.isVisible = true;\n this.open = true;\n }\n\n /** Hides the detail body */\n @Method()\n async hide() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible || this.body == null) return;\n const body = this.body;\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n // We can't transition out of `height: auto`, so let's set it to the current height first\n body.style.height = `${body.scrollHeight}px`;\n body.style.overflow = 'hidden';\n\n requestAnimationFrame(() => {\n // tslint:disable-next-line: no-unused-expression\n body.clientWidth; // force a reflow\n body.style.height = '0';\n });\n\n this.isVisible = false;\n this.open = false;\n }\n\n private handleBodyTransitionEnd = (event: TransitionEvent) => {\n if (this.body == null) return;\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'height' && target.classList.contains('details__body')) {\n this.body.style.overflow = this.open ? 'visible' : 'hidden';\n this.body.style.height = this.open ? 'auto' : '0';\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n this.body.hidden = !this.open;\n }\n };\n\n private handleSummaryClick = () => {\n if (!this.disabled && (this.hasContent || this.selectableEmpty)) {\n this.open ? this.hide() : this.show();\n this.header?.focus();\n }\n };\n\n private handleSummaryKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Enter' || event.key === ' ') {\n event.preventDefault();\n this.open ? this.hide() : this.show();\n }\n\n if (event.key === 'ArrowUp' || event.key === 'ArrowLeft') {\n event.preventDefault();\n this.hide();\n }\n\n if (event.key === 'ArrowDown' || event.key === 'ArrowRight') {\n event.preventDefault();\n this.show();\n }\n };\n\n render() {\n const summaryIcon = this.hasContent && (this.summaryIcon || 'expand_more');\n\n return (\n <div\n ref={(el) => (this.details = el)}\n part=\"base\"\n class={{\n details: true,\n 'details--open': this.open,\n 'details--disabled': this.disabled,\n inline: this.inline,\n }}\n >\n <header\n ref={(el) => (this.header = el)}\n part=\"header\"\n id={`${this.componentId}-header`}\n class=\"details__header\"\n role=\"button\"\n aria-expanded={this.open ? 'true' : 'false'}\n aria-controls={`${this.componentId}-content`}\n aria-disabled={this.disabled ? 'true' : 'false'}\n tabIndex={this.disabled ? -1 : 0}\n onClick={this.handleSummaryClick}\n onKeyDown={this.handleSummaryKeyDown}\n >\n <div part=\"summary\" class=\"details__summary\">\n <slot name=\"summary\">{this.summary}</slot>\n </div>\n\n <span\n part=\"summary-icon\"\n class={{\n 'details__summary-icon': true,\n 'details__summary-icon--animate': this.animateSummaryIcon,\n }}\n >\n <slot name=\"summary-icon\" onSlotchange={() => (this.animateSummaryIcon = false)}>\n {summaryIcon && <six-icon size={this.summaryIconSize}>{summaryIcon}</six-icon>}\n </slot>\n </span>\n </header>\n\n <div ref={(el) => (this.body = el)} class=\"details__body\" onTransitionEnd={this.handleBodyTransitionEnd}>\n <div\n part=\"content\"\n id={`${this.componentId}-content`}\n class=\"details__content\"\n role=\"region\"\n aria-labelledby={`${this.componentId}-header`}\n >\n <slot />\n </div>\n </div>\n </div>\n );\n }\n}\n"],"mappings":"6FAAA,MAAMA,EAAgB,kxECItB,IAAIC,EAAK,E,MAuBIC,EAAU,M,uNAQbC,KAAAC,YAAc,aAAaH,IAC3BE,K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C,IAAMC,GAAQ9C,KAAKyB,OAASqB,EAC5BC,KAAK,SACLjD,GAAI,GAAGE,KAAKC,qBACZ+C,MAAM,kBACNE,KAAK,SAAQ,gBACElD,KAAKY,KAAO,OAAS,QAAO,gBAC5B,GAAGZ,KAAKC,sBAAqB,gBAC7BD,KAAKmB,SAAW,OAAS,QACxCgC,SAAUnD,KAAKmB,UAAY,EAAI,EAC/BiC,QAASpD,KAAKkB,mBACdmC,UAAWrD,KAAK2B,sBAEhBiB,EAAA,OAAKG,KAAK,UAAUC,MAAM,oBACxBJ,EAAA,QAAMU,KAAK,WAAWtD,KAAKuD,UAG7BX,EAAA,QACEG,KAAK,eACLC,MAAO,CACL,wBAAyB,KACzB,iCAAkChD,KAAKwD,qBAGzCZ,EAAA,QAAMU,KAAK,eAAeG,aAAc,IAAOzD,KAAKwD,mBAAqB,OACtEb,GAAeC,EAAA,YAAUc,KAAM1D,KAAK2D,iBAAkBhB,MAK7DC,EAAA,OAAKC,IAAMC,GAAQ9C,KAAKK,KAAOyC,EAAKE,MAAM,gBAAgBY,gBAAiB5D,KAAKG,yBAC9EyC,EAAA,OACEG,KAAK,UACLjD,GAAI,GAAGE,KAAKC,sBACZ+C,MAAM,mBACNE,KAAK,SAAQ,kBACI,GAAGlD,KAAKC,sBAEzB2C,EAAA,e"}
@@ -1,2 +0,0 @@
1
- import{r as t,h as s,H as a,g as e}from"./p-6153045b.js";const i=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block;font-family:var(--six-font-family)}.tab-panel{border:solid 1px transparent;padding:20px 20px}";let o=0;const r=class{constructor(s){t(this,s);this.componentId=`tab-panel-${++o}`;this.name="";this.active=false}render(){return s(a,{id:this.host.id||this.componentId,style:{display:this.active?"block":"none"}},s("div",{part:"base",class:"tab-panel",role:"tabpanel","aria-selected":this.active?"true":"false","aria-hidden":this.active?"false":"true"},s("slot",null)))}get host(){return e(this)}};r.style=i;export{r as six_tab_panel};
2
- //# sourceMappingURL=p-cd67da3d.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixTabPanelCss","id","SixTabPanel","this","componentId","render","h","Host","host","style","display","active","part","class","role"],"sources":["src/components/six-tab-panel/six-tab-panel.scss?tag=six-tab-panel&encapsulation=shadow","src/components/six-tab-panel/six-tab-panel.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n font-family: var(--six-font-family);\n}\n\n.tab-panel {\n border: solid 1px transparent;\n padding: 20px 20px;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\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 panel's content.\n *\n * @part base - The component's base wrapper.\n */\n\n@Component({\n tag: 'six-tab-panel',\n styleUrl: 'six-tab-panel.scss',\n shadow: true,\n})\nexport class SixTabPanel {\n private componentId = `tab-panel-${++id}`;\n\n @Element() host!: HTMLSixTabPanelElement;\n\n /** The tab panel's name. */\n @Prop() name = '';\n\n /** When true, the tab panel will be shown. */\n @Prop({ reflect: true }) active = false;\n\n render() {\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} style={{ display: this.active ? 'block' : 'none' }}>\n <div\n part=\"base\"\n class=\"tab-panel\"\n role=\"tabpanel\"\n aria-selected={this.active ? 'true' : 'false'}\n aria-hidden={this.active ? 'false' : 'true'}\n >\n <slot />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAiB,0NCEvB,IAAIC,EAAK,E,MAkBIC,EAAW,M,yBACdC,KAAAC,YAAc,eAAeH,I,UAKtB,G,YAGmB,K,CAElC,MAAAI,GACE,OAEEC,EAACC,EAAI,CAACN,GAAIE,KAAKK,KAAKP,IAAME,KAAKC,YAAaK,MAAO,CAAEC,QAASP,KAAKQ,OAAS,QAAU,SACpFL,EAAA,OACEM,KAAK,OACLC,MAAM,YACNC,KAAK,WAAU,gBACAX,KAAKQ,OAAS,OAAS,QAAO,cAChCR,KAAKQ,OAAS,QAAU,QAErCL,EAAA,c"}
@@ -1,2 +0,0 @@
1
- import{r as i,c as s,h as l,g as e}from"./p-6153045b.js";const o=".sc-six-file-upload-h{position:relative;box-sizing:border-box}.sc-six-file-upload-h *.sc-six-file-upload,.sc-six-file-upload-h *.sc-six-file-upload:before,.sc-six-file-upload-h *.sc-six-file-upload:after{box-sizing:inherit}.sc-six-file-upload-h{position:static;display:block}.six-file-upload.sc-six-file-upload six-card.sc-six-file-upload{box-shadow:none;padding:0;width:100%}.six-file-upload.sc-six-file-upload six-card.kyc-file-upload__container--compact.sc-six-file-upload{width:inherit}.six-file-upload__label--highlighted.sc-six-file-upload{color:var(--six-color-action-600)}.six-file-upload__container--full.sc-six-file-upload{border:dashed 1px var(--six-color-web-rock-500)}.six-file-upload__label-icon.sc-six-file-upload{margin-right:0.5rem}.six-file-upload__drop-zone.sc-six-file-upload{padding:2rem 0;display:flex;justify-content:center;width:100%;transition:background-color 0.3s}.six-file-upload__drop-zone--compact.sc-six-file-upload{padding:0}.six-file-upload__input.sc-six-file-upload{cursor:pointer;position:absolute;top:0;left:0;width:100%;user-select:none;height:100%;opacity:0;outline:none}.six-file-upload--disabled.sc-six-file-upload .six-file-upload__drop-zone.sc-six-file-upload{background-color:var(--six-color-inactive)}.six-file-upload.sc-six-file-upload:not(.six-file-upload--disabled) .six-file-upload__drop-zone.sc-six-file-upload:hover,.six-file-upload__drop-zone--hover.sc-six-file-upload{background-color:var(--six-color-action-light-to-be-defined)}.six-file-upload.sc-six-file-upload:not(.six-file-upload--disabled) .six-file-upload__drop-zone.sc-six-file-upload:hover.six-file-upload__drop-zone--compact,.six-file-upload__drop-zone--hover.six-file-upload__drop-zone--compact.sc-six-file-upload{background-color:inherit}.six-file-upload--disabled.sc-six-file-upload .six-file-upload__input.sc-six-file-upload{cursor:not-allowed}";const a=class{constructor(l){i(this,l);this.success=s(this,"six-file-upload-success",7);this.failure=s(this,"six-file-upload-failure",7);this.handleFiles=i=>{if(this.disabled||i.length===0){return}if(!this.multiple&&i.length>1){return this.failure.emit({reason:"Only one file is allowed."})}for(const s of i){if(s==null){return}let l=[];if(this.accept!=null){l=this.accept.replace(/\s/g,"").split(",")}if(l.length>0&&l.indexOf(s.type)===-1){const s=i.length>1?"One or more files have invalid MIME type.":"File has invalid MIME type.";return this.failure.emit({reason:s})}if(this.maxFileSize!=null&&s.size>this.maxFileSize){const s=i.length>1?"One or more files are too big":"File is too big.";return this.failure.emit({reason:s})}}const s=this.multiple?{files:i}:{file:i[0]};this.success.emit(s)};this.onChange=()=>{var i;if(((i=this.fileInput)===null||i===void 0?void 0:i.files)!=null){const i=this.fileInput.files;this.handleFiles(i);this.fileInput.value=""}};this.isOver=false;this.compact=false;this.label=undefined;this.disabled=false;this.accept=undefined;this.multiple=false;this.maxFileSize=undefined}dragenterHandler(){if(!this.disabled){this.isOver=true}}dragoverHandler(){if(!this.disabled){this.isOver=true}}dragleaveHandler(){if(!this.disabled){this.isOver=false}}dropHandler({dataTransfer:i}){if(!this.disabled){this.isOver=false;if(i!=null){this.handleFiles(i.files)}}}componentDidLoad(){["dragenter","dragover","dragleave","drop"].forEach((i=>{this.host.addEventListener(i,this.preventDefaults,false);document.body.addEventListener(i,this.preventDefaults,false)}))}disconnectedCallback(){["dragenter","dragover","dragleave","drop"].forEach((i=>{this.host.removeEventListener(i,this.preventDefaults,false);document.body.removeEventListener(i,this.preventDefaults,false)}))}preventDefaults(i){i.preventDefault();i.stopPropagation()}renderLabel(){var i;return(i=this.label)!==null&&i!==void 0?i:this.compact?"Upload":l("span",null,"Drop files to upload, or ",l("span",{class:"six-file-upload__label--highlighted"},"browse"))}render(){const i=this.compact?"six-button":"six-card";return l("div",{class:{"six-file-upload":true,"six-file-upload--disabled":this.disabled}},l(i,{class:{"six-file-upload__container--compact":this.compact,"six-file-upload__container--full":!this.compact}},this.compact&&l("span",{slot:"prefix"},l("six-icon",{class:"six-file-upload__label-icon"},"arrow_circle_up")),l("div",{class:{"six-file-upload__drop-zone":true,"six-file-upload__drop-zone--hover":this.isOver,"six-file-upload__drop-zone--compact":this.compact}},l("span",null,this.renderLabel()),l("input",{class:"six-file-upload__input",type:"file",name:"resume",disabled:this.disabled,accept:this.accept,multiple:this.multiple,onChange:this.onChange,ref:i=>this.fileInput=i}))))}get host(){return e(this)}};a.style=o;export{a as six_file_upload};
2
- //# sourceMappingURL=p-cdaed936.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixFileUploadCss","SixFileUpload","this","handleFiles","files","disabled","length","multiple","failure","emit","reason","file","acceptedTypesList","accept","replace","split","indexOf","type","maxFileSize","size","eventPayload","success","onChange","_a","fileInput","value","dragenterHandler","isOver","dragoverHandler","dragleaveHandler","dropHandler","dataTransfer","componentDidLoad","forEach","eventName","host","addEventListener","preventDefaults","document","body","disconnectedCallback","removeEventListener","e","preventDefault","stopPropagation","renderLabel","label","compact","h","class","render","Container","slot","name","ref","el"],"sources":["src/components/six-file-upload/six-file-upload.scss?tag=six-file-upload&encapsulation=scoped","src/components/six-file-upload/six-file-upload.tsx"],"sourcesContent":["@import 'src/global/component';\n\n$over-color: var(--six-color-action-light-to-be-defined);\n$disabled-color: var(--six-color-inactive);\n$transition: 0.3s;\n$margin: 1rem;\n\n:host {\n position: static;\n display: block;\n}\n\n.six-file-upload {\n six-card {\n box-shadow: none;\n padding: 0;\n width: 100%;\n\n &.kyc-file-upload__container--compact {\n width: inherit;\n }\n }\n\n &__label {\n &--highlighted {\n color: var(--six-color-action-600);\n }\n }\n\n &__container {\n &--full {\n border: dashed 1px var(--six-color-web-rock-500);\n }\n }\n\n &__label-icon {\n margin-right: 0.5rem;\n }\n\n &__drop-zone {\n padding: 2rem 0;\n display: flex;\n justify-content: center;\n width: 100%;\n transition: background-color $transition;\n\n &--compact {\n padding: 0;\n }\n }\n\n &__input {\n cursor: pointer;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n user-select: none;\n height: 100%;\n opacity: 0;\n outline: none;\n }\n\n &--disabled &__drop-zone {\n background-color: $disabled-color;\n }\n\n &:not(.six-file-upload--disabled) &__drop-zone:hover,\n &__drop-zone--hover {\n background-color: $over-color;\n\n &.six-file-upload__drop-zone--compact {\n background-color: inherit;\n }\n }\n\n &--disabled &__input {\n cursor: not-allowed;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Prop, State } from '@stencil/core';\n\ninterface ISingleFile {\n file: File;\n}\n\ninterface IMultipleFiles {\n files: FileList;\n}\n\nexport type SixFileUploadSuccessPayload = ISingleFile | IMultipleFiles;\n\nexport interface SixFileUploadFailurePayload {\n reason: string;\n}\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n */\n@Component({\n tag: 'six-file-upload',\n styleUrl: 'six-file-upload.scss',\n scoped: true,\n shadow: false,\n})\nexport class SixFileUpload {\n @Element() readonly host!: HTMLSixFileUploadElement;\n\n private fileInput?: HTMLInputElement;\n\n @State() isOver = false;\n\n /** Set to true if file control should be small. */\n @Prop() readonly compact: boolean = false;\n\n /** Label of the drop area. */\n @Prop() readonly label?: string;\n\n /** Set when button is disabled. */\n @Prop() readonly disabled = false;\n\n /** Accepted MIME-Types. */\n @Prop() readonly accept?: string;\n\n /** More than one file allowed. */\n @Prop() readonly multiple = false;\n\n /** Allowed max file size in bytes. */\n @Prop() readonly maxFileSize?: number;\n\n /** Triggers when a file is added. */\n @Event({ eventName: 'six-file-upload-success' }) success!: EventEmitter<SixFileUploadSuccessPayload>;\n\n /** Triggers when an uploaded file doesn't match MIME type or max file size. */\n @Event({ eventName: 'six-file-upload-failure' }) failure!: EventEmitter<SixFileUploadFailurePayload>;\n\n @Listen('dragenter', { capture: false })\n dragenterHandler() {\n if (!this.disabled) {\n this.isOver = true;\n }\n }\n\n @Listen('dragover', { capture: false })\n dragoverHandler() {\n if (!this.disabled) {\n this.isOver = true;\n }\n }\n\n @Listen('dragleave', { capture: false })\n dragleaveHandler() {\n if (!this.disabled) {\n this.isOver = false;\n }\n }\n\n @Listen('drop', { capture: false })\n dropHandler({ dataTransfer }: DragEvent) {\n if (!this.disabled) {\n this.isOver = false;\n if (dataTransfer != null) {\n this.handleFiles(dataTransfer.files);\n }\n }\n }\n\n private handleFiles = (files: FileList) => {\n if (this.disabled || files.length === 0) {\n return;\n }\n\n if (!this.multiple && files.length > 1) {\n return this.failure.emit({ reason: 'Only one file is allowed.' });\n }\n\n for (const file of files) {\n if (file == null) {\n return;\n }\n\n let acceptedTypesList: string[] = [];\n if (this.accept != null) {\n acceptedTypesList = this.accept.replace(/\\s/g, '').split(',');\n }\n\n if (acceptedTypesList.length > 0 && acceptedTypesList.indexOf(file.type) === -1) {\n const reason = files.length > 1 ? 'One or more files have invalid MIME type.' : 'File has invalid MIME type.';\n return this.failure.emit({ reason });\n }\n\n if (this.maxFileSize != null && file.size > this.maxFileSize) {\n const reason = files.length > 1 ? 'One or more files are too big' : 'File is too big.';\n return this.failure.emit({ reason });\n }\n }\n\n const eventPayload: SixFileUploadSuccessPayload = this.multiple ? { files } : { file: files[0] };\n this.success.emit(eventPayload);\n };\n\n componentDidLoad() {\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {\n this.host.addEventListener(eventName, this.preventDefaults, false);\n document.body.addEventListener(eventName, this.preventDefaults, false);\n });\n }\n\n disconnectedCallback() {\n ['dragenter', 'dragover', 'dragleave', 'drop'].forEach((eventName) => {\n this.host.removeEventListener(eventName, this.preventDefaults, false);\n document.body.removeEventListener(eventName, this.preventDefaults, false);\n });\n }\n\n private preventDefaults(e: Event) {\n e.preventDefault();\n e.stopPropagation();\n }\n\n private onChange = () => {\n if (this.fileInput?.files != null) {\n const files = this.fileInput.files;\n this.handleFiles(files);\n this.fileInput.value = '';\n }\n };\n\n private renderLabel() {\n return (\n this.label ??\n (this.compact ? (\n 'Upload'\n ) : (\n <span>\n Drop files to upload, or <span class=\"six-file-upload__label--highlighted\">browse</span>\n </span>\n ))\n );\n }\n\n render() {\n const Container = this.compact ? 'six-button' : 'six-card';\n\n return (\n <div\n class={{\n 'six-file-upload': true,\n 'six-file-upload--disabled': this.disabled,\n }}\n >\n <Container\n class={{\n 'six-file-upload__container--compact': this.compact,\n 'six-file-upload__container--full': !this.compact,\n }}\n >\n {this.compact && (\n <span slot=\"prefix\">\n <six-icon class=\"six-file-upload__label-icon\">arrow_circle_up</six-icon>\n </span>\n )}\n <div\n class={{\n 'six-file-upload__drop-zone': true,\n 'six-file-upload__drop-zone--hover': this.isOver,\n 'six-file-upload__drop-zone--compact': this.compact,\n }}\n >\n <span>{this.renderLabel()}</span>\n <input\n class=\"six-file-upload__input\"\n type=\"file\"\n name=\"resume\"\n disabled={this.disabled}\n accept={this.accept}\n multiple={this.multiple}\n onChange={this.onChange}\n ref={(el) => (this.fileInput = el)}\n />\n </div>\n </Container>\n </div>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAmB,w0D,MC2BZC,EAAa,M,2HA8DhBC,KAAAC,YAAeC,IACrB,GAAIF,KAAKG,UAAYD,EAAME,SAAW,EAAG,CACvC,M,CAGF,IAAKJ,KAAKK,UAAYH,EAAME,OAAS,EAAG,CACtC,OAAOJ,KAAKM,QAAQC,KAAK,CAAEC,OAAQ,6B,CAGrC,IAAK,MAAMC,KAAQP,EAAO,CACxB,GAAIO,GAAQ,KAAM,CAChB,M,CAGF,IAAIC,EAA8B,GAClC,GAAIV,KAAKW,QAAU,KAAM,CACvBD,EAAoBV,KAAKW,OAAOC,QAAQ,MAAO,IAAIC,MAAM,I,CAG3D,GAAIH,EAAkBN,OAAS,GAAKM,EAAkBI,QAAQL,EAAKM,SAAW,EAAG,CAC/E,MAAMP,EAASN,EAAME,OAAS,EAAI,4CAA8C,8BAChF,OAAOJ,KAAKM,QAAQC,KAAK,CAAEC,U,CAG7B,GAAIR,KAAKgB,aAAe,MAAQP,EAAKQ,KAAOjB,KAAKgB,YAAa,CAC5D,MAAMR,EAASN,EAAME,OAAS,EAAI,g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KAAK6C,QAAO,SAGXC,EAAA,wCAC2BA,EAAA,QAAMC,MAAM,uCAAqC,U,CAMlF,MAAAC,GACE,MAAMC,EAAYjD,KAAK6C,QAAU,aAAe,WAEhD,OACEC,EAAA,OACEC,MAAO,CACL,kBAAmB,KACnB,4BAA6B/C,KAAKG,WAGpC2C,EAACG,EAAS,CACRF,MAAO,CACL,sCAAuC/C,KAAK6C,QAC5C,oCAAqC7C,KAAK6C,UAG3C7C,KAAK6C,SACJC,EAAA,QAAMI,KAAK,UACTJ,EAAA,YAAUC,MAAM,+BAA6B,oBAGjDD,EAAA,OACEC,MAAO,CACL,6BAA8B,KAC9B,oCAAqC/C,KAAKyB,OAC1C,sCAAuCzB,KAAK6C,UAG9CC,EAAA,YAAO9C,KAAK2C,eACZG,EAAA,SACEC,MAAM,yBACNhC,KAAK,OACLoC,KAAK,SACLhD,SAAUH,KAAKG,SACfQ,OAAQX,KAAKW,OACbN,SAAUL,KAAKK,SACfe,SAAUpB,KAAKoB,SACfgC,IAAMC,GAAQrD,KAAKsB,UAAY+B,M"}
@@ -1,2 +0,0 @@
1
- import{r as i,c as t,h as s,g as a}from"./p-6153045b.js";import{u as o,l as e}from"./p-052aa8d3.js";import{h as l}from"./p-15559d38.js";import{i as r,M as n}from"./p-9ace84c7.js";const h=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--width:31rem;display:contents}.dialog{display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--six-z-index-dialog);color:var(--six-color-web-rock-900)}.dialog:not(.dialog--visible){position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;pointer-events:none;visibility:hidden}.dialog__panel{display:flex;flex-direction:column;z-index:2;width:var(--width);max-width:calc(100% - var(--six-spacing-xx-large));max-height:calc(100% - var(--six-spacing-xx-large));background-color:var(--six-panel-background-color);border-radius:var(--six-border-radius-medium);box-shadow:var(--six-shadow-x-large);opacity:0;transform:scale(0.8);transition:var(--six-transition-medium) opacity, var(--six-transition-medium) transform}.dialog__panel:focus{outline:none}@media screen and (max-width: 420px){.dialog__panel{max-height:80vh}}.dialog--open .dialog__panel{display:flex;opacity:1;transform:none}.dialog__header{flex:0 0 auto;display:flex}.dialog__title{flex:1 1 auto;font-size:var(--six-font-size-x-large);font-weight:var(--six-font-weight-bold);line-height:var(--six-line-height-dense);padding:var(--six-spacing-large) var(--six-spacing-large) var(--six-spacing-small)}.dialog__close{flex:0 0 auto;display:flex;align-items:center;font-size:var(--six-font-size-x-large);padding:0 var(--six-spacing-x-small)}.dialog__body{flex:1 1 auto;padding:var(--six-spacing-small) var(--six-spacing-large) var(--six-spacing-large);overflow:auto;-webkit-overflow-scrolling:touch}.dialog__footer{flex:0 0 auto;text-align:right;padding:var(--six-spacing-large)}.dialog__footer ::slotted(six-button:not(:first-of-type)){margin-left:var(--six-spacing-xx-small)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}.dialog__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--six-overlay-background-color);opacity:0;transition:var(--six-transition-medium) opacity}.dialog--open .dialog__overlay{opacity:0.8}";const d=r();let c=0;const g=class{constructor(s){i(this,s);this.sixShow=t(this,"six-dialog-show",7);this.sixAfterShow=t(this,"six-dialog-after-show",7);this.sixHide=t(this,"six-dialog-hide",7);this.sixAfterHide=t(this,"six-dialog-after-hide",7);this.sixInitialFocus=t(this,"six-dialog-initial-focus",7);this.sixOverlayDismiss=t(this,"six-dialog-overlay-dismiss",7);this.componentId=`dialog-${++c}`;this.willShow=false;this.willHide=false;this.handleCloseClick=()=>{this.hide()};this.handleKeyDown=i=>{if(i.key==="Escape"){this.hide()}};this.handleOverlayClick=()=>{const i=this.sixOverlayDismiss.emit();if(!i.defaultPrevented){this.hide()}};this.handleSlotChange=()=>{this.hasFooter=l(this.host,"footer")};this.handleTransitionEnd=i=>{const t=i.target;if(i.propertyName==="opacity"&&t.classList.contains("dialog__panel")){this.isVisible=this.open;this.willShow=false;this.willHide=false;this.open?this.sixAfterShow.emit():this.sixAfterHide.emit()}};this.hasFooter=false;this.isVisible=false;this.open=false;this.label="";this.noHeader=false}handleOpenChange(){this.open?this.show():this.hide()}connectedCallback(){this.modal=new n(this.host,{onFocusOut:()=>{var i;return(i=this.panel)===null||i===void 0?void 0:i.focus()}})}componentWillLoad(){this.handleSlotChange();if(this.open){this.show()}}disconnectedCallback(){o(this.host)}async show(){if(this.willShow||this.modal==null||this.panel==null||this.dialog==null){return}const i=this.panel;const t=this.sixShow.emit();if(t.defaultPrevented){this.open=false;return}this.willShow=true;this.isVisible=true;this.open=true;this.modal.activate();e(this.host);if(this.open){if(d){requestAnimationFrame((()=>{const t=this.sixInitialFocus.emit();if(!t.defaultPrevented){i.focus({preventScroll:true})}}))}else{this.dialog.addEventListener("transitionend",(()=>{const t=this.sixInitialFocus.emit();if(!t.defaultPrevented){i.focus()}}),{once:true})}}}async hide(){if(this.willHide||this.modal==null){return}const i=this.sixHide.emit();if(i.defaultPrevented){this.open=true;return}this.willHide=true;this.open=false;this.modal.deactivate();o(this.host)}render(){return s("div",{ref:i=>this.dialog=i,part:"base",class:{dialog:true,"dialog--open":this.open,"dialog--visible":this.isVisible,"dialog--has-footer":this.hasFooter},onKeyDown:this.handleKeyDown,onTransitionEnd:this.handleTransitionEnd},s("div",{part:"overlay",class:"dialog__overlay",onClick:this.handleOverlayClick}),s("div",{ref:i=>this.panel=i,part:"panel",class:"dialog__panel",role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-label":this.noHeader?this.label:null,"aria-labelledby":!this.noHeader?`${this.componentId}-title`:null,tabIndex:0},!this.noHeader&&s("header",{part:"header",class:"dialog__header"},s("span",{part:"title",class:"dialog__title",id:`${this.componentId}-title`},s("slot",{name:"label"},this.label||String.fromCharCode(65279))),s("six-icon-button",{exportparts:"base:close-button",class:"dialog__close",name:"close",onClick:this.handleCloseClick})),s("div",{part:"body",class:"dialog__body"},s("slot",null)),s("footer",{part:"footer",class:"dialog__footer"},s("slot",{name:"footer",onSlotchange:this.handleSlotChange}))))}get host(){return a(this)}static get watchers(){return{open:["handleOpenChange"]}}};g.style=h;export{g as six_dialog};
2
- //# sourceMappingURL=p-d1bda563.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixDialogCss","hasPreventScroll","isPreventScrollSupported","id","SixDialog","this","componentId","willShow","willHide","handleCloseClick","hide","handleKeyDown","event","key","handleOverlayClick","sixOverlayDismiss","emit","defaultPrevented","handleSlotChange","hasFooter","hasSlot","host","handleTransitionEnd","target","propertyName","classList","contains","isVisible","open","sixAfterShow","sixAfterHide","handleOpenChange","show","connectedCallback","modal","Modal","onFocusOut","_a","panel","focus","componentWillLoad","disconnectedCallback","unlockBodyScrolling","dialog","sixShow","activate","lockBodyScrolling","requestAnimationFrame","sixInitialFocus","preventScroll","addEventListener","once","sixHide","deactivate","render","h","ref","el","part","class","onKeyDown","onTransitionEnd","onClick","role","noHeader","label","tabIndex","name","String","fromCharCode","exportparts","onSlotchange"],"sources":["src/components/six-dialog/six-dialog.scss?tag=six-dialog&encapsulation=shadow","src/components/six-dialog/six-dialog.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --width: The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.\n */\n:host {\n --width: 31rem;\n\n display: contents;\n}\n\n.dialog {\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: var(--six-z-index-dialog);\n color: var(--six-color-web-rock-900);\n\n &:not(.dialog--visible) {\n @include hidden;\n }\n}\n\n.dialog__panel {\n display: flex;\n flex-direction: column;\n z-index: 2;\n width: var(--width);\n max-width: calc(100% - var(--six-spacing-xx-large));\n max-height: calc(100% - var(--six-spacing-xx-large));\n background-color: var(--six-panel-background-color);\n border-radius: var(--six-border-radius-medium);\n box-shadow: var(--six-shadow-x-large);\n opacity: 0;\n transform: scale(0.8);\n transition: var(--six-transition-medium) opacity, var(--six-transition-medium) transform;\n\n &:focus {\n outline: none;\n }\n}\n\n// Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone)\n@media screen and (max-width: 420px) {\n .dialog__panel {\n max-height: 80vh;\n }\n}\n\n.dialog--open .dialog__panel {\n display: flex;\n opacity: 1;\n transform: none;\n}\n\n.dialog__header {\n flex: 0 0 auto;\n display: flex;\n}\n\n.dialog__title {\n flex: 1 1 auto;\n font-size: var(--six-font-size-x-large);\n font-weight: var(--six-font-weight-bold);\n line-height: var(--six-line-height-dense);\n padding: var(--six-spacing-large) var(--six-spacing-large) var(--six-spacing-small);\n}\n\n.dialog__close {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-x-large);\n padding: 0 var(--six-spacing-x-small);\n}\n\n.dialog__body {\n flex: 1 1 auto;\n padding: var(--six-spacing-small) var(--six-spacing-large) var(--six-spacing-large);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.dialog__footer {\n flex: 0 0 auto;\n text-align: right;\n padding: var(--six-spacing-large);\n\n ::slotted(six-button:not(:first-of-type)) {\n margin-left: var(--six-spacing-xx-small);\n }\n}\n\n.dialog:not(.dialog--has-footer) .dialog__footer {\n display: none;\n}\n\n.dialog__overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--six-overlay-background-color);\n opacity: 0;\n transition: var(--six-transition-medium) opacity;\n}\n\n.dialog--open .dialog__overlay {\n opacity: 0.8;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport { isPreventScrollSupported } from '../../utils/support';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\n\nconst hasPreventScroll = isPreventScrollSupported();\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 dialog's content.\n * @slot label - The dialog's label. Alternatively, you can use the label prop.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The dialog panel (where the dialog and its content is rendered).\n * @part header - The dialog header.\n * @part title - The dialog title.\n * @part close-button - The close button.\n * @part body - The dialog body.\n * @part footer - The dialog footer.\n *\n */\n@Component({\n tag: 'six-dialog',\n styleUrl: 'six-dialog.scss',\n shadow: true,\n})\nexport class SixDialog {\n private componentId = `dialog-${++id}`;\n private dialog?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDialogElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the dialog is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The dialog's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /**\n * Set to true to disable the header. This will also remove the default close button, so please ensure you provide an\n * easy, accessible way for users to dismiss the dialog.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the dialog opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dialog-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog opens and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dialog closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dialog-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog closes and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the dialog opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the dialog, such as an input or button.\n */\n @Event({ eventName: 'six-dialog-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the dialog from closing. */\n @Event({ eventName: 'six-dialog-overlay-dismiss' }) sixOverlayDismiss!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => this.panel?.focus(),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the dialog */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.dialog == null) {\n return;\n }\n const panel = this.panel;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n this.modal.activate();\n\n lockBodyScrolling(this.host);\n\n if (this.open) {\n if (hasPreventScroll) {\n // Wait for the next frame before setting initial focus so the dialog is technically visible\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: true });\n }\n });\n } else {\n // Once Safari supports { preventScroll: true } we can remove this nasty little hack, but until then we need to\n // wait for the transition to complete before setting focus, otherwise the panel may render in a buggy way its\n // out of view initially.\n //\n // Fiddle: https://jsfiddle.net/g6buoafq/1/\n // Safari: https://bugs.webkit.org/show_bug.cgi?id=178583\n //\n this.dialog.addEventListener(\n 'transitionend',\n () => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus();\n }\n },\n { once: true }\n );\n }\n }\n }\n\n /** Hides the dialog */\n @Method()\n async hide() {\n if (this.willHide || this.modal == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.hide();\n }\n };\n\n private handleOverlayClick = () => {\n const sixOverlayDismiss = this.sixOverlayDismiss.emit();\n\n if (!sixOverlayDismiss.defaultPrevented) {\n this.hide();\n }\n };\n\n private handleSlotChange = () => {\n this.hasFooter = hasSlot(this.host, 'footer');\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'opacity' && target.classList.contains('dialog__panel')) {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n render() {\n return (\n <div\n ref={(el) => (this.dialog = el)}\n part=\"base\"\n class={{\n dialog: true,\n 'dialog--open': this.open,\n 'dialog--visible': this.isVisible,\n 'dialog--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" onClick={this.handleOverlayClick} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"dialog__header\">\n <span part=\"title\" class=\"dialog__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"dialog__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"dialog__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"],"mappings":"mLAAA,MAAMA,EAAe,kkECOrB,MAAMC,EAAmBC,IAEzB,IAAIC,EAAK,E,MA2BIC,EAAS,M,2UACZC,KAAAC,YAAc,YAAYH,IAI1BE,KAAAE,SAAW,MACXF,KAAAG,SAAW,MA2IXH,KAAAI,iBAAmB,KACzBJ,KAAKK,MAAM,EAGLL,KAAAM,cAAiBC,IACvB,GAAIA,EAAMC,MAAQ,SAAU,CAC1BR,KAAKK,M,GAIDL,KAAAS,mBAAqB,KAC3B,MAAMC,EAAoBV,KAAKU,kBAAkBC,OAEjD,IAAKD,EAAkBE,iBAAkB,CACvCZ,KAAKK,M,GAIDL,KAAAa,iBAAmB,KACzBb,KAAKc,UAAYC,EAAQf,KAAKgB,KAAM,SAAS,EAGvChB,KAAAiB,oBAAuBV,IAC7B,MAAMW,EAASX,EAAMW,OAGrB,GAAIX,EAAMY,eAAiB,WAAaD,EAAOE,UAAUC,SAAS,iBAAkB,CAClFrB,KAAKsB,UAAYtB,KAAKuB,KACtBvB,KAAKE,SAAW,MAChBF,KAAKG,SAAW,MAChBH,KAAKuB,KAAOvB,KAAKwB,aAAab,OAASX,KAAKyB,aAAad,M,kBArKxC,M,eACA,M,UAG0B,M,WAM/B,G,cAMG,K,CAGnB,gBAAAe,GACE1B,KAAKuB,KAAOvB,KAAK2B,OAAS3B,KAAKK,M,CAwBjC,iBAAAuB,GACE5B,KAAK6B,MAAQ,IAAIC,EAAM9B,KAAKgB,KAAM,CAChCe,WAAY,SAAAC,EAAM,OAAAA,EAAAhC,KAAKiC,SAAK,MAAAD,SAAA,SAAAA,EAAEE,OAAO,G,CAIzC,iBAAAC,GACE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AKsB,UACxB,qBAAsBtB,KAAKc,WAE7ByC,UAAWvD,KAAKM,cAChBkD,gBAAiBxD,KAAKiB,qBAEtBiC,EAAA,OAAKG,KAAK,UAAUC,MAAM,kBAAkBG,QAASzD,KAAKS,qBAE1DyC,EAAA,OACEC,IAAMC,GAAQpD,KAAKiC,MAAQmB,EAC3BC,KAAK,QACLC,MAAM,gBACNI,KAAK,SAAQ,aACF,OAAM,cACJ1D,KAAKuB,KAAO,QAAU,OAAM,aAC7BvB,KAAK2D,SAAW3D,KAAK4D,MAAQ,KAAI,mBAC3B5D,KAAK2D,SAAW,GAAG3D,KAAKC,oBAAsB,KAChE4D,SAAU,IAER7D,KAAK2D,UACLT,EAAA,UAAQG,KAAK,SAASC,MAAM,kBAC1BJ,EAAA,QAAMG,KAAK,QAAQC,MAAM,gBAAgBxD,GAAI,GAAGE,KAAKC,qBACnDiD,EAAA,QAAMY,KAAK,SAER9D,KAAK4D,OAASG,OAAOC,aAAa,SAGvCd,EAAA,mBACEe,YAAY,oBACZX,MAAM,gBACNQ,KAAK,QACLL,QAASzD,KAAKI,oBAKpB8C,EAAA,OAAKG,KAAK,OAAOC,MAAM,gBACrBJ,EAAA,cAGFA,EAAA,UAAQG,KAAK,SAASC,MAAM,kBAC1BJ,EAAA,QAAMY,KAAK,SAASI,aAAclE,KAAKa,qB"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as o,h as i,g as r}from"./p-6153045b.js";import{E as s}from"./p-7d95def3.js";import{F as e}from"./p-e5020f0d.js";import{h as l}from"./p-15559d38.js";const a=':host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:"*"}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{--height:var(--six-selection-control-toggle-size);--thumb-size:calc(var(--six-selection-control-toggle-size) - 4px);--width:calc(var(--height) * 2);display:inline-block}.switch{display:inline-flex;align-items:center;font-family:var(--six-font-family);font-size:var(--six-input-font-size-medium);font-weight:var(--six-input-font-weight);color:var(--six-input-color);vertical-align:middle;cursor:pointer}.switch__control{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--width);height:var(--height);background-color:var(--six-selection-control-color-disabled);border-radius:var(--height);transition:var(--six-transition-fast) border-color, var(--six-transition-fast) background-color}.switch__control .switch__thumb{width:var(--thumb-size);height:var(--thumb-size);background-color:var(--six-input-background-color);border-radius:50%;transform:translateX(calc(var(--width) / -2 + var(--thumb-size) / 2 - (var(--thumb-size) - var(--height)) / 2));transition:var(--six-transition-fast) transform ease, var(--six-transition-fast) background-color, var(--six-transition-fast) border-color, var(--six-transition-fast) box-shadow}.switch__control input[type=checkbox]{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover{background-color:var(--six-input-border-color-hover)}.switch--checked .switch__control{background-color:var(--six-selection-control-color)}.switch--checked .switch__control .switch__thumb{background-color:var(--six-color-white);transform:translateX(calc(var(--width) / 2 - var(--thumb-size) / 2 + (var(--thumb-size) - var(--height)) / 2))}.switch.switch--checked:not(.switch--disabled) .switch__control:hover{background-color:var(--six-input-border-color-focus)}.switch--disabled{cursor:not-allowed;color:var(--six-selection-control-color-disabled)}.switch--disabled .switch__control{background-color:var(--six-selection-control-color-disabled)}.switch--disabled.switch--checked .switch__control{background-color:var(--six-selection-control-color-disabled)}.switch__label{line-height:var(--height);margin-left:0.5em;user-select:none}';let n=0;const h=class{constructor(i){t(this,i);this.sixBlur=o(this,"six-switch-blur",7);this.sixChange=o(this,"six-switch-change",7);this.sixFocus=o(this,"six-switch-focus",7);this.switchId=`switch-${++n}`;this.labelId=`switch-label-${n}`;this.errorTextId=`input-error-text-${n}`;this.eventListeners=new s;this.handleSlotChange=()=>{this.hasErrorTextSlot=l(this.host,"error-text")};this.handleClick=()=>{if(this.inputElement!=null){this.checked=this.inputElement.checked;this.sixChange.emit(this.checked)}};this.handleBlur=()=>{this.hasFocus=false;this.sixBlur.emit(this.checked)};this.handleFocus=()=>{this.hasFocus=true;this.sixFocus.emit()};this.handleKeyDown=t=>{if(t.key==="ArrowLeft"){t.preventDefault();this.checked=false;this.sixChange.emit(this.checked)}if(t.key==="ArrowRight"){t.preventDefault();this.checked=true;this.sixChange.emit(this.checked)}};this.handleMouseDown=t=>{var o;t.preventDefault();(o=this.inputElement)===null||o===void 0?void 0:o.focus()};this.hasFocus=false;this.hasErrorTextSlot=false;this.name="";this.value="on";this.disabled=false;this.required=false;this.checked=false;this.label="";this.errorText="";this.errorTextCount=undefined;this.invalid=false}componentWillLoad(){this.handleSlotChange()}handleCheckedChange(){if(this.inputElement!=null){this.inputElement.checked=this.checked;this.checked=this.inputElement.checked}}connectedCallback(){var t;(t=this.host.shadowRoot)===null||t===void 0?void 0:t.addEventListener("slotchange",this.handleSlotChange);this.eventListeners.forward("six-switch-change","change",this.host);this.eventListeners.forward("six-switch-blur","blur",this.host);this.eventListeners.forward("six-switch-focus","focus",this.host)}disconnectedCallback(){var t;(t=this.host.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("slotchange",this.handleSlotChange);this.eventListeners.removeAll()}handleLabelChange(){this.handleSlotChange()}async setFocus(t){var o;(o=this.inputElement)===null||o===void 0?void 0:o.focus(t)}async removeFocus(){var t;(t=this.inputElement)===null||t===void 0?void 0:t.blur()}render(){return i(e,{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},i("label",{part:"base",htmlFor:this.switchId,class:{switch:true,"switch--checked":this.checked,"switch--disabled":this.disabled,"switch--focused":this.hasFocus},onMouseDown:this.handleMouseDown},i("span",{part:"control",class:"switch__control"},i("span",{part:"thumb",class:"switch__thumb"}),i("input",{ref:t=>this.inputElement=t,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})),i("span",{part:"label",id:this.labelId,class:"switch__label"},i("slot",null))))}get host(){return r(this)}static get watchers(){return{checked:["handleCheckedChange"],errorText:["handleLabelChange"],label:["handleLabelChange"]}}};h.style=a;export{h as six_switch};
2
- //# sourceMappingURL=p-db34a6cc.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixSwitchCss","id","SixSwitch","this","switchId","labelId","errorTextId","eventListeners","EventListeners","handleSlotChange","hasErrorTextSlot","hasSlot","host","handleClick","inputElement","checked","sixChange","emit","handleBlur","hasFocus","sixBlur","handleFocus","sixFocus","handleKeyDown","event","key","preventDefault","handleMouseDown","_a","focus","componentWillLoad","handleCheckedChange","connectedCallback","shadowRoot","addEventListener","forward","disconnectedCallback","removeEventListener","removeAll","handleLabelChange","setFocus","options","removeFocus","blur","render","h","FormControl","inputId","label","hasLabelSlot","errorText","errorTextCount","size","disabled","required","displayError","invalid","part","htmlFor","class","switch","onMouseDown","ref","el","type","name","value","role","onClick","onBlur","onFocus","onKeyDown"],"sources":["src/components/six-switch/six-switch.scss?tag=six-switch&encapsulation=shadow","src/components/six-switch/six-switch.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n/**\n * @prop --width: The width of the switch.\n * @prop --height: The height of the switch.\n * @prop --thumb-size: The size of the thumb.\n */\n:host {\n --height: var(--six-selection-control-toggle-size);\n --thumb-size: calc(var(--six-selection-control-toggle-size) - 4px);\n --width: calc(var(--height) * 2);\n\n display: inline-block;\n}\n\n.switch {\n display: inline-flex;\n align-items: center;\n font-family: var(--six-font-family);\n font-size: var(--six-input-font-size-medium);\n font-weight: var(--six-input-font-weight);\n color: var(--six-input-color);\n vertical-align: middle;\n cursor: pointer;\n}\n\n.switch__control {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--width);\n height: var(--height);\n background-color: var(--six-selection-control-color-disabled);\n border-radius: var(--height);\n transition: var(--six-transition-fast) border-color, var(--six-transition-fast) background-color;\n\n .switch__thumb {\n width: var(--thumb-size);\n height: var(--thumb-size);\n background-color: var(--six-input-background-color);\n border-radius: 50%;\n transform: translateX(calc(var(--width) / -2 + var(--thumb-size) / 2 - (var(--thumb-size) - var(--height)) / 2));\n transition: var(--six-transition-fast) transform ease, var(--six-transition-fast) background-color,\n var(--six-transition-fast) border-color, var(--six-transition-fast) box-shadow;\n }\n\n input[type='checkbox'] {\n position: absolute;\n opacity: 0;\n padding: 0;\n margin: 0;\n pointer-events: none;\n }\n}\n\n// Hover\n.switch:not(.switch--checked):not(.switch--disabled) .switch__control:hover {\n background-color: var(--six-input-border-color-hover);\n}\n\n// Checked\n.switch--checked .switch__control {\n background-color: var(--six-selection-control-color);\n\n .switch__thumb {\n background-color: var(--six-color-white);\n transform: translateX(calc(var(--width) / 2 - var(--thumb-size) / 2 + (var(--thumb-size) - var(--height)) / 2));\n }\n}\n\n// Checked + hover\n.switch.switch--checked:not(.switch--disabled) .switch__control:hover {\n background-color: var(--six-input-border-color-focus);\n}\n\n// Disabled\n.switch--disabled {\n cursor: not-allowed;\n color: var(--six-selection-control-color-disabled);\n\n .switch__control {\n background-color: var(--six-selection-control-color-disabled);\n }\n\n &.switch--checked .switch__control {\n background-color: var(--six-selection-control-color-disabled);\n }\n}\n\n.switch__label {\n line-height: var(--height);\n margin-left: 0.5em;\n user-select: none;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\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 switch's label.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part control - The switch control.\n * @part thumb - The switch position indicator.\n * @part label - The switch label.\n */\n\n@Component({\n tag: 'six-switch',\n styleUrl: 'six-switch.scss',\n shadow: true,\n})\nexport class SixSwitch {\n private switchId = `switch-${++id}`;\n private labelId = `switch-label-${id}`;\n private errorTextId = `input-error-text-${id}`;\n\n private inputElement?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixSwitchElement;\n\n @State() hasFocus = false;\n @State() hasErrorTextSlot = false;\n\n /** The switch's name attribute. */\n @Prop() name = '';\n\n /** The switch's value attribute. */\n @Prop() value = 'on';\n\n /** Set to true to disable the switch. */\n @Prop() disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** Set to true to draw the switch in a checked state. */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText: string | string[] = '';\n\n /** The number of error texts to be shown (if the error-text slot isn't used). Defaults to 1 */\n @Prop() errorTextCount?: number;\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n @Watch('checked')\n handleCheckedChange() {\n if (this.inputElement != null) {\n this.inputElement.checked = this.checked;\n this.checked = this.inputElement.checked;\n }\n }\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-switch-blur' }) sixBlur!: EventEmitter<boolean>;\n\n /** Emitted when the control's checked state changes. */\n @Event({ eventName: 'six-switch-change' }) sixChange!: EventEmitter<boolean>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-switch-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-switch-change', 'change', this.host);\n this.eventListeners.forward('six-switch-blur', 'blur', this.host);\n this.eventListeners.forward('six-switch-focus', 'focus', this.host);\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n private handleSlotChange = () => {\n this.hasErrorTextSlot = hasSlot(this.host, 'error-text');\n };\n\n /** Sets focus on the switch. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.inputElement?.focus(options);\n }\n\n /** Removes focus from the switch. */\n @Method()\n async removeFocus() {\n this.inputElement?.blur();\n }\n\n private handleClick = () => {\n if (this.inputElement != null) {\n this.checked = this.inputElement.checked;\n this.sixChange.emit(this.checked);\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit(this.checked);\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'ArrowLeft') {\n event.preventDefault();\n this.checked = false;\n this.sixChange.emit(this.checked);\n }\n\n if (event.key === 'ArrowRight') {\n event.preventDefault();\n this.checked = true;\n this.sixChange.emit(this.checked);\n }\n };\n\n private handleMouseDown = (event: MouseEvent) => {\n // Prevent clicks on the label from briefly blurring the input\n event.preventDefault();\n this.inputElement?.focus();\n };\n\n render() {\n return (\n <FormControl\n inputId={this.switchId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={false}\n errorTextId={this.errorTextId}\n errorText={this.errorText}\n errorTextCount={this.errorTextCount}\n hasErrorTextSlot={this.hasErrorTextSlot}\n size=\"medium\"\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <label\n part=\"base\"\n htmlFor={this.switchId}\n class={{\n switch: true,\n 'switch--checked': this.checked,\n 'switch--disabled': this.disabled,\n 'switch--focused': this.hasFocus,\n }}\n onMouseDown={this.handleMouseDown}\n >\n <span part=\"control\" class=\"switch__control\">\n <span part=\"thumb\" class=\"switch__thumb\" />\n\n <input\n ref={(el) => (this.inputElement = el)}\n id={this.switchId}\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled}\n required={this.required}\n role=\"switch\"\n aria-checked={this.checked ? 'true' : 'false'}\n aria-labelledby={this.labelId}\n onClick={this.handleClick}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n onKeyDown={this.handleKeyDown}\n />\n </span>\n\n <span part=\"label\" id={this.labelId} class=\"switch__label\">\n <slot />\n </span>\n </label>\n </FormControl>\n );\n }\n}\n"],"mappings":"qKAAA,MAAMA,EAAe,yhJCMrB,IAAIC,EAAK,E,MAsBIC,EAAS,M,0JACZC,KAAAC,SAAW,YAAYH,IACvBE,KAAAE,QAAU,gBAAgBJ,IAC1BE,KAAAG,YAAc,oBAAoBL,IAGlCE,KAAAI,eAAiB,IAAIC,EAyErBL,KAAAM,iBAAmB,KACzBN,KAAKO,iBAAmBC,EAAQR,KAAKS,KAAM,aAAa,EAelDT,KAAAU,YAAc,KACpB,GAAIV,KAAKW,cAAgB,KAAM,CAC7BX,KAAKY,QAAUZ,KAAKW,aAAaC,QACjCZ,KAAKa,UAAUC,KAAKd,KAAKY,Q,GAIrBZ,KAAAe,WAAa,KACnBf,KAAKgB,SAAW,MAChBhB,KAAKiB,QAAQH,KAAKd,KAAKY,QAAQ,EAGzBZ,KAAAkB,YAAc,KACpBlB,KAAKgB,SAAW,KAChBhB,KAAKmB,SAASL,MAAM,EAGdd,KAAAoB,cAAiBC,IACvB,GAAIA,EAAMC,MAAQ,YAAa,CAC7BD,EAAME,iBACNvB,KAAKY,QAAU,MACfZ,KAAKa,UAAUC,KAAKd,KAAKY,Q,CAG3B,GAAIS,EAAMC,MAAQ,aAAc,CAC9BD,EAAME,iBACNvB,KAAKY,QAAU,KACfZ,KAAKa,UAAUC,KAAKd,KAAKY,Q,GAIrBZ,KAAAwB,gBAAmBH,I,MAEzBA,EAAME,kBACNE,EAAAzB,KAAKW,gBAAY,MAAAc,SAAA,SAAAA,EAAEC,OAAO,E,cAvHR,M,sBACQ,M,UAGb,G,WAGC,K,cAGG,M,cAGA,M,aAG+B,M,WAGlC,G,eAGuB,G,2CAMJ,K,CAEnC,iBAAAC,GACE3B,KAAKM,kB,CAIP,mBAAAsB,GACE,GAAI5B,KAAKW,cAAgB,KAAM,CAC7BX,KAAKW,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EAAA,SACEiB,IAAMC,GAAQ5D,KAAKW,aAAeiD,EAClC9D,GAAIE,KAAKC,SACT4D,KAAK,WACLC,KAAM9D,KAAK8D,KACXC,MAAO/D,KAAK+D,MACZnD,QAASZ,KAAKY,QACdsC,SAAUlD,KAAKkD,SACfC,SAAUnD,KAAKmD,SACfa,KAAK,SAAQ,eACChE,KAAKY,QAAU,OAAS,QAAO,kBAC5BZ,KAAKE,QACtB+D,QAASjE,KAAKU,YACdwD,OAAQlE,KAAKe,WACboD,QAASnE,KAAKkB,YACdkD,UAAWpE,KAAKoB,iBAIpBsB,EAAA,QAAMY,KAAK,QAAQxD,GAAIE,KAAKE,QAASsD,MAAM,iBACzCd,EAAA,e"}
@@ -1,2 +0,0 @@
1
- import{r as o,h as t,g as l}from"./p-6153045b.js";import{F as r}from"./p-e5020f0d.js";import{h as e}from"./p-15559d38.js";const s=':host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none;text-align:left}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:"*"}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:block}';let i=0;const a=class{constructor(t){o(this,t);this.wrapperLabelId=`label-${++i}`;this.labelId=`label-label-${i}`;this.helpTextId=`label-help-text-${i}`;this.handleSlotChange=()=>{this.hasLabelSlot=e(this.host,"label");this.hasHelpTextSlot=e(this.host,"help-text")};this.hasHelpTextSlot=false;this.hasLabelSlot=false;this.size="medium";this.label="";this.helpText="";this.disabled=false;this.required=false}handleLabelChange(){this.handleSlotChange()}connectedCallback(){var o;(o=this.host.shadowRoot)===null||o===void 0?void 0:o.addEventListener("slotchange",this.handleSlotChange)}componentWillLoad(){this.handleSlotChange()}disconnectedCallback(){var o;(o=this.host.shadowRoot)===null||o===void 0?void 0:o.removeEventListener("slotchange",this.handleSlotChange)}render(){return t(r,{inputId:this.wrapperLabelId,label:this.label,labelId:this.labelId,hasLabelSlot:this.hasLabelSlot,helpTextId:this.helpTextId,helpText:this.helpText,hasHelpTextSlot:this.hasHelpTextSlot,size:this.size,disabled:this.disabled,required:this.required},t("slot",null))}get host(){return l(this)}static get watchers(){return{helpText:["handleLabelChange"],label:["handleLabelChange"]}}};a.style=s;export{a as six_group_label};
2
- //# sourceMappingURL=p-db936ad7.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixGroupLabelCss","id","SixGroupLabel","this","wrapperLabelId","labelId","helpTextId","handleSlotChange","hasLabelSlot","hasSlot","host","hasHelpTextSlot","handleLabelChange","connectedCallback","_a","shadowRoot","addEventListener","componentWillLoad","disconnectedCallback","removeEventListener","render","h","FormControl","inputId","label","helpText","size","disabled","required"],"sources":["src/components/six-group-label/six-group-label.scss?tag=six-group-label&encapsulation=shadow","src/components/six-group-label/six-group-label.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: block;\n}\n","import { Component, Element, h, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\n\nlet id = 0;\n\n/**\n * @since 1.1\n * @status stable\n *\n * @slot label - The wrapped component's label. Alternatively, you can use the label prop.\n * @slot help-text - Help text that describes how to use the input.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part form-control - The form control that wraps the label, textarea, and help text.\n * @part label - The label of wrapped component.\n * @part help-text - The help text of the wrapped component.\n */\n@Component({\n tag: 'six-group-label',\n styleUrl: 'six-group-label.scss',\n shadow: true,\n})\nexport class SixGroupLabel {\n private wrapperLabelId = `label-${++id}`;\n private labelId = `label-label-${id}`;\n private helpTextId = `label-help-text-${id}`;\n\n @Element() host!: HTMLSixGroupLabelElement;\n\n @State() hasHelpTextSlot = false;\n @State() hasLabelSlot = false;\n\n /** The label's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** The wrapper label's label. Alternatively, you can use the label slot. */\n @Prop() label = '';\n\n /** The wrapper label's help text. Alternatively, you can use the help-text slot. */\n @Prop() helpText = '';\n\n /** Set to true to disable the label. */\n @Prop({ reflect: true }) disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n @Watch('helpText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n }\n\n private handleSlotChange = () => {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n this.hasHelpTextSlot = hasSlot(this.host, 'help-text');\n };\n\n render() {\n return (\n <FormControl\n inputId={this.wrapperLabelId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n helpTextId={this.helpTextId}\n helpText={this.helpText}\n hasHelpTextSlot={this.hasHelpTextSlot}\n size={this.size}\n disabled={this.disabled}\n required={this.required}\n >\n <slot></slot>\n </FormControl>\n );\n }\n}\n"],"mappings":"0HAAA,MAAMA,EAAmB,q6ECIzB,IAAIC,EAAK,E,MAoBIC,EAAa,M,yBAChBC,KAAAC,eAAiB,WAAWH,IAC5BE,KAAAE,QAAU,eAAeJ,IACzBE,KAAAG,WAAa,mBAAmBL,IAwChCE,KAAAI,iBAAmB,KACzBJ,KAAKK,aAAeC,EAAQN,KAAKO,KAAM,SACvCP,KAAKQ,gBAAkBF,EAAQN,KAAKO,KAAM,YAAY,E,qBAtC7B,M,kBACH,M,UAGsC,S,WAG9C,G,cAGG,G,cAGiB,M,cAGjB,K,CAInB,iBAAAE,GACET,KAAKI,kB,CAGP,iBAAAM,G,OACEC,EAAAX,KAAKO,KAAKK,cAAU,MAAAD,SAAA,SAAAA,EAAEE,iBAAiB,aAAcb,KAAKI,iB,CAG5D,iBAAAU,GACEd,KAAKI,kB,CAGP,oBAAAW,G,OACEJ,EAAAX,KAAKO,KAAKK,cAAU,MAAAD,SAAA,SAAAA,EAAEK,oBAAoB,aAAchB,KAAKI,iB,CAQ/D,MAAAa,GACE,OACEC,EAACC,EAAW,CACVC,QAASpB,KAAKC,eACdoB,MAAOrB,KAAKqB,MACZnB,QAASF,KAAKE,QACdG,aAAcL,KAAKK,aACnBF,WAAYH,KAAKG,WACjBmB,SAAUtB,KAAKsB,SACfd,gBAAiBR,KAAKQ,gBACtBe,KAAMvB,KAAKuB,KACXC,SAAUxB,KAAKwB,SACfC,SAAUzB,KAAKyB,UAEfP,EAAA,a"}
@@ -1,2 +0,0 @@
1
- import{r as t,c as o,h as i,H as r,g as s}from"./p-6153045b.js";import{P as e}from"./p-0fdb185d.js";const a=':host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--max-width:20rem;--hide-delay:0s;--hide-duration:0.125s;--hide-timing-function:ease;--show-delay:0.125s;--show-duration:0.125s;--show-timing-function:ease;display:contents}.tooltip-positioner{position:fixed;z-index:var(--six-z-index-tooltip);pointer-events:none}.tooltip{max-width:var(--max-width);border-radius:var(--six-border-radius-medium);background-color:var(--six-tooltip-background-color);font-family:var(--six-font-family);font-size:var(--six-tooltip-font-size);font-weight:var(--six-tooltip-font-weight);line-height:var(--six-tooltip-line-height);color:var(--six-tooltip-color);opacity:0;padding:var(--six-spacing-xxx-small) var(--six-spacing-x-small);transform:scale(0.8);transform-origin:bottom;transition-property:opacity, transform;transition-delay:var(--hide-delay);transition-duration:var(--hide-duration);transition-timing-function:var(--hide-timing-function)}.tooltip::after{content:"";position:absolute;width:0;height:0}.tooltip-positioner[data-popper-placement^=top] .tooltip{transform-origin:bottom}.tooltip-positioner[data-popper-placement^=bottom] .tooltip{transform-origin:top}.tooltip-positioner[data-popper-placement^=left] .tooltip{transform-origin:right}.tooltip-positioner[data-popper-placement^=right] .tooltip{transform-origin:left}.tooltip-positioner.popover-visible .tooltip{opacity:1;transform:none;transition-delay:var(--show-delay);transition-duration:var(--show-duration);transition-timing-function:var(--show-timing-function)}.tooltip-positioner[data-popper-placement^=bottom] .tooltip::after{bottom:100%;left:calc(50% - var(--six-tooltip-arrow-size));border-bottom:var(--six-tooltip-arrow-size) solid var(--six-tooltip-background-color);border-left:var(--six-tooltip-arrow-size) solid transparent;border-right:var(--six-tooltip-arrow-size) solid transparent}.tooltip-positioner[data-popper-placement=bottom-start] .tooltip::after{left:var(--six-tooltip-arrow-start-end-offset)}.tooltip-positioner[data-popper-placement=bottom-end] .tooltip::after{right:var(--six-tooltip-arrow-start-end-offset);left:auto}.tooltip-positioner[data-popper-placement^=top] .tooltip::after{top:100%;left:calc(50% - var(--six-tooltip-arrow-size));border-top:var(--six-tooltip-arrow-size) solid var(--six-tooltip-background-color);border-left:var(--six-tooltip-arrow-size) solid transparent;border-right:var(--six-tooltip-arrow-size) solid transparent}.tooltip-positioner[data-popper-placement=top-start] .tooltip::after{left:var(--six-tooltip-arrow-start-end-offset)}.tooltip-positioner[data-popper-placement=top-end] .tooltip::after{right:var(--six-tooltip-arrow-start-end-offset);left:auto}.tooltip-positioner[data-popper-placement^=left] .tooltip::after{top:calc(50% - var(--six-tooltip-arrow-size));left:100%;border-left:var(--six-tooltip-arrow-size) solid var(--six-tooltip-background-color);border-top:var(--six-tooltip-arrow-size) solid transparent;border-bottom:var(--six-tooltip-arrow-size) solid transparent}.tooltip-positioner[data-popper-placement=left-start] .tooltip::after{top:var(--six-tooltip-arrow-start-end-offset)}.tooltip-positioner[data-popper-placement=left-end] .tooltip::after{top:auto;bottom:var(--six-tooltip-arrow-start-end-offset)}.tooltip-positioner[data-popper-placement^=right] .tooltip::after{top:calc(50% - var(--six-tooltip-arrow-size));right:100%;border-right:var(--six-tooltip-arrow-size) solid var(--six-tooltip-background-color);border-top:var(--six-tooltip-arrow-size) solid transparent;border-bottom:var(--six-tooltip-arrow-size) solid transparent}.tooltip-positioner[data-popper-placement=right-start] .tooltip::after{top:var(--six-tooltip-arrow-start-end-offset)}.tooltip-positioner[data-popper-placement=right-end] .tooltip::after{top:auto;bottom:var(--six-tooltip-arrow-start-end-offset)}';let n=0;const p=class{constructor(i){t(this,i);this.sixShow=o(this,"six-tooltip-show",7);this.sixAfterShow=o(this,"six-tooltip-after-show",7);this.sixHide=o(this,"six-tooltip-hide",7);this.sixAfterHide=o(this,"six-tooltip-after-hide",7);this.componentId=`tooltip-${++n}`;this.isVisible=false;this.handleBlur=()=>{if(this.hasTrigger("focus")){this.hide()}};this.handleClick=()=>{if(this.hasTrigger("click")){this.open?this.hide():this.show()}};this.handleFocus=()=>{if(this.hasTrigger("focus")){this.show()}};this.handleKeyDown=t=>{if(this.open&&t.key==="Escape"){t.stopPropagation();this.hide()}};this.handleMouseOver=()=>{if(this.hasTrigger("hover")){this.show()}};this.handleMouseOut=()=>{if(this.hasTrigger("hover")){this.hide()}};this.handleSlotChange=()=>{const t=this.target;const o=this.getTarget();if(o!==t){if(t!=null){t.removeAttribute("aria-describedby")}o.setAttribute("aria-describedby",this.componentId)}};this.content="";this.placement="top";this.disabled=false;this.distance=10;this.open=false;this.skidding=0;this.trigger="hover focus"}handleOpenChange(){this.open?this.show():this.hide()}componentDidLoad(){if(this.tooltipPositioner==null)return;this.target=this.getTarget();this.popover=new e(this.target,this.tooltipPositioner,{strategy:"fixed"});this.syncOptions();this.host.addEventListener("blur",this.handleBlur,true);this.host.addEventListener("click",this.handleClick,true);this.host.addEventListener("focus",this.handleFocus,true);this.tooltipPositioner.hidden=!this.open;if(this.open){this.show()}}componentDidUpdate(){this.syncOptions()}disconnectedCallback(){if(this.popover!=null){this.popover.destroy()}this.host.removeEventListener("blur",this.handleBlur,true);this.host.removeEventListener("click",this.handleClick,true);this.host.removeEventListener("focus",this.handleFocus,true)}async show(){var t;if(this.isVisible||this.disabled){return}const o=this.sixShow.emit();if(o.defaultPrevented){this.open=false;return}this.isVisible=true;this.open=true;(t=this.popover)===null||t===void 0?void 0:t.show()}async hide(){var t;if(!this.isVisible||this.disabled){return}const o=this.sixHide.emit();if(o.defaultPrevented){this.open=true;return}this.isVisible=false;this.open=false;(t=this.popover)===null||t===void 0?void 0:t.hide()}getTarget(){const t=[...this.host.children].find((t=>t.tagName.toLowerCase()!=="style"&&t.getAttribute("slot")!=="content"));if(t==null){throw new Error("Invalid tooltip target: no child element was found.")}return t}hasTrigger(t){const o=this.trigger.split(" ");return o.includes(t)}syncOptions(){if(this.popover==null)return;this.popover.setOptions({placement:this.placement,distance:this.distance,skidding:this.skidding,transitionElement:this.tooltip,onAfterHide:()=>this.sixAfterHide.emit(),onAfterShow:()=>this.sixAfterShow.emit()})}render(){return i(r,{onKeyDown:this.handleKeyDown,onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut},i("slot",{onSlotchange:this.handleSlotChange}),i("div",{ref:t=>this.tooltipPositioner=t,class:"tooltip-positioner"},i("div",{part:"base",ref:t=>this.tooltip=t,id:this.componentId,class:{tooltip:true,"tooltip--open":this.open},role:"tooltip","aria-hidden":this.open?"false":"true"},i("slot",{name:"content"},this.content))))}get host(){return s(this)}static get watchers(){return{open:["handleOpenChange"]}}};p.style=a;export{p as six_tooltip};
2
- //# sourceMappingURL=p-dc4f41d8.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixTooltipCss","id","SixTooltip","this","componentId","isVisible","handleBlur","hasTrigger","hide","handleClick","open","show","handleFocus","handleKeyDown","event","key","stopPropagation","handleMouseOver","handleMouseOut","handleSlotChange","oldTarget","target","newTarget","getTarget","removeAttribute","setAttribute","handleOpenChange","componentDidLoad","tooltipPositioner","popover","Popover","strategy","syncOptions","host","addEventListener","hidden","componentDidUpdate","disconnectedCallback","destroy","removeEventListener","disabled","sixShow","emit","defaultPrevented","_a","sixHide","children","find","el","tagName","toLowerCase","getAttribute","Error","triggerType","triggers","trigger","split","includes","setOptions","placement","distance","skidding","transitionElement","tooltip","onAfterHide","sixAfterHide","onAfterShow","sixAfterShow","render","h","Host","onKeyDown","onMouseOver","onMouseOut","onSlotchange","ref","class","part","role","name","content"],"sources":["src/components/six-tooltip/six-tooltip.scss?tag=six-tooltip&encapsulation=shadow","src/components/six-tooltip/six-tooltip.tsx"],"sourcesContent":["@import 'src/global/component';\n\n/**\n * @prop --hide-delay: The amount of time to wait before hiding the tooltip.\n * @prop --hide-duration: The amount of time the hide transition takes to complete.\n * @prop --hide-timing-function: The timing function (easing) to use for the hide transition.\n * @prop --max-width: The maximum width of the tooltip.\n * @prop --show-delay: The amount of time to wait before showing the tooltip.\n * @prop --show-duration: The amount of time the show transition takes to complete.\n * @prop --show-timing-function: The timing function (easing) to use for the show transition.\n */\n:host {\n --max-width: 20rem;\n --hide-delay: 0s;\n --hide-duration: 0.125s;\n --hide-timing-function: ease;\n --show-delay: 0.125s;\n --show-duration: 0.125s;\n --show-timing-function: ease;\n\n display: contents;\n}\n\n.tooltip-positioner {\n position: fixed;\n z-index: var(--six-z-index-tooltip);\n pointer-events: none;\n}\n\n.tooltip {\n max-width: var(--max-width);\n border-radius: var(--six-border-radius-medium);\n background-color: var(--six-tooltip-background-color);\n font-family: var(--six-font-family);\n font-size: var(--six-tooltip-font-size);\n font-weight: var(--six-tooltip-font-weight);\n line-height: var(--six-tooltip-line-height);\n color: var(--six-tooltip-color);\n opacity: 0;\n padding: var(--six-spacing-xxx-small) var(--six-spacing-x-small);\n transform: scale(0.8);\n transform-origin: bottom;\n transition-property: opacity, transform;\n transition-delay: var(--hide-delay);\n transition-duration: var(--hide-duration);\n transition-timing-function: var(--hide-timing-function);\n\n &::after {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n }\n}\n\n.tooltip-positioner {\n &[data-popper-placement^='top'] .tooltip {\n transform-origin: bottom;\n }\n\n &[data-popper-placement^='bottom'] .tooltip {\n transform-origin: top;\n }\n\n &[data-popper-placement^='left'] .tooltip {\n transform-origin: right;\n }\n\n &[data-popper-placement^='right'] .tooltip {\n transform-origin: left;\n }\n\n &.popover-visible .tooltip {\n opacity: 1;\n transform: none;\n transition-delay: var(--show-delay);\n transition-duration: var(--show-duration);\n transition-timing-function: var(--show-timing-function);\n }\n}\n\n// Arrow + bottom\n.tooltip-positioner[data-popper-placement^='bottom'] .tooltip::after {\n bottom: 100%;\n left: calc(50% - var(--six-tooltip-arrow-size));\n border-bottom: var(--six-tooltip-arrow-size) solid var(--six-tooltip-background-color);\n border-left: var(--six-tooltip-arrow-size) solid transparent;\n border-right: var(--six-tooltip-arrow-size) solid transparent;\n}\n\n.tooltip-positioner[data-popper-placement='bottom-start'] .tooltip::after {\n left: var(--six-tooltip-arrow-start-end-offset);\n}\n\n.tooltip-positioner[data-popper-placement='bottom-end'] .tooltip::after {\n right: var(--six-tooltip-arrow-start-end-offset);\n left: auto;\n}\n\n// Arrow + top\n.tooltip-positioner[data-popper-placement^='top'] .tooltip::after {\n top: 100%;\n left: calc(50% - var(--six-tooltip-arrow-size));\n border-top: var(--six-tooltip-arrow-size) solid var(--six-tooltip-background-color);\n border-left: var(--six-tooltip-arrow-size) solid transparent;\n border-right: var(--six-tooltip-arrow-size) solid transparent;\n}\n\n.tooltip-positioner[data-popper-placement='top-start'] .tooltip::after {\n left: var(--six-tooltip-arrow-start-end-offset);\n}\n\n.tooltip-positioner[data-popper-placement='top-end'] .tooltip::after {\n right: var(--six-tooltip-arrow-start-end-offset);\n left: auto;\n}\n\n// Arrow + left\n.tooltip-positioner[data-popper-placement^='left'] .tooltip::after {\n top: calc(50% - var(--six-tooltip-arrow-size));\n left: 100%;\n border-left: var(--six-tooltip-arrow-size) solid var(--six-tooltip-background-color);\n border-top: var(--six-tooltip-arrow-size) solid transparent;\n border-bottom: var(--six-tooltip-arrow-size) solid transparent;\n}\n\n.tooltip-positioner[data-popper-placement='left-start'] .tooltip::after {\n top: var(--six-tooltip-arrow-start-end-offset);\n}\n\n.tooltip-positioner[data-popper-placement='left-end'] .tooltip::after {\n top: auto;\n bottom: var(--six-tooltip-arrow-start-end-offset);\n}\n\n// Arrow + right\n.tooltip-positioner[data-popper-placement^='right'] .tooltip::after {\n top: calc(50% - var(--six-tooltip-arrow-size));\n right: 100%;\n border-right: var(--six-tooltip-arrow-size) solid var(--six-tooltip-background-color);\n border-top: var(--six-tooltip-arrow-size) solid transparent;\n border-bottom: var(--six-tooltip-arrow-size) solid transparent;\n}\n\n.tooltip-positioner[data-popper-placement='right-start'] .tooltip::after {\n top: var(--six-tooltip-arrow-start-end-offset);\n}\n\n.tooltip-positioner[data-popper-placement='right-end'] .tooltip::after {\n top: auto;\n bottom: var(--six-tooltip-arrow-start-end-offset);\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, Watch } from '@stencil/core';\nimport Popover from '../../utils/popover';\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 tooltip's target element. Only the first element will be used as the target.\n * @slot content - The tooltip's content. Alternatively, you can use the content prop.\n *\n * @part base - The component's base wrapper.\n */\n\n@Component({\n tag: 'six-tooltip',\n styleUrl: 'six-tooltip.scss',\n shadow: true,\n})\nexport class SixTooltip {\n private componentId = `tooltip-${++id}`;\n private isVisible = false;\n private popover?: Popover;\n private tooltipPositioner?: HTMLElement;\n private target?: HTMLElement;\n private tooltip?: HTMLElement;\n\n @Element() host!: HTMLSixTooltipElement;\n\n /** The tooltip's content. Alternatively, you can use the content slot. */\n @Prop() content = '';\n\n /**\n * The preferred placement of the tooltip. Note that the actual placement may vary as needed to keep the tooltip\n * inside the viewport.\n */\n @Prop() placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'top';\n\n /** Set to true to disable the tooltip, so it won't show when triggered. */\n @Prop() disabled = false;\n\n /** The distance in pixels from which to offset the tooltip away from its target. */\n @Prop() distance = 10;\n\n /** Indicates whether the tooltip is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /** The distance in pixels from which to offset the tooltip along its target. */\n @Prop() skidding = 0;\n\n /**\n * Controls how the tooltip is activated. Possible options include `click`, `hover`, `focus`, and `manual`. Multiple\n * options can be passed by separating them with a space. When manual is used, the tooltip must be activated\n * programmatically.\n */\n @Prop() trigger = 'hover focus';\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the tooltip begins to show. Calling `event.preventDefault()` will prevent it from being shown. */\n @Event({ eventName: 'six-tooltip-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the tooltip has shown and all transitions are complete. */\n @Event({ eventName: 'six-tooltip-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the tooltip begins to hide. Calling `event.preventDefault()` will prevent it from being hidden. */\n @Event({ eventName: 'six-tooltip-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the tooltip has hidden and all transitions are complete. */\n @Event({ eventName: 'six-tooltip-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n componentDidLoad() {\n if (this.tooltipPositioner == null) return;\n this.target = this.getTarget();\n this.popover = new Popover(this.target, this.tooltipPositioner, { strategy: 'fixed' });\n this.syncOptions();\n\n this.host.addEventListener('blur', this.handleBlur, true);\n this.host.addEventListener('click', this.handleClick, true);\n this.host.addEventListener('focus', this.handleFocus, true);\n\n // Show on init if open\n this.tooltipPositioner.hidden = !this.open;\n if (this.open) {\n this.show();\n }\n }\n\n componentDidUpdate() {\n this.syncOptions();\n }\n\n disconnectedCallback() {\n if (this.popover != null) {\n this.popover.destroy();\n }\n\n this.host.removeEventListener('blur', this.handleBlur, true);\n this.host.removeEventListener('click', this.handleClick, true);\n this.host.removeEventListener('focus', this.handleFocus, true);\n }\n\n /** Shows the tooltip. */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible || this.disabled) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.isVisible = true;\n this.open = true;\n this.popover?.show();\n }\n\n /** Shows the tooltip. */\n @Method()\n async hide() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible || this.disabled) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.isVisible = false;\n this.open = false;\n this.popover?.hide();\n }\n\n private getTarget() {\n // Get the first child that isn't a <style> or content slot\n const target = [...this.host.children].find(\n (el) => el.tagName.toLowerCase() !== 'style' && el.getAttribute('slot') !== 'content'\n ) as HTMLElement;\n\n if (target == null) {\n throw new Error('Invalid tooltip target: no child element was found.');\n }\n\n return target;\n }\n\n private handleBlur = () => {\n if (this.hasTrigger('focus')) {\n this.hide();\n }\n };\n\n private handleClick = () => {\n if (this.hasTrigger('click')) {\n this.open ? this.hide() : this.show();\n }\n };\n\n private handleFocus = () => {\n if (this.hasTrigger('focus')) {\n this.show();\n }\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n // Pressing escape when the target element has focus should dismiss the tooltip\n if (this.open && event.key === 'Escape') {\n event.stopPropagation();\n this.hide();\n }\n };\n\n private handleMouseOver = () => {\n if (this.hasTrigger('hover')) {\n this.show();\n }\n };\n\n private handleMouseOut = () => {\n if (this.hasTrigger('hover')) {\n this.hide();\n }\n };\n\n private handleSlotChange = () => {\n const oldTarget = this.target;\n const newTarget = this.getTarget();\n\n if (newTarget !== oldTarget) {\n if (oldTarget != null) {\n oldTarget.removeAttribute('aria-describedby');\n }\n newTarget.setAttribute('aria-describedby', this.componentId);\n }\n };\n\n private hasTrigger(triggerType: string) {\n const triggers = this.trigger.split(' ');\n return triggers.includes(triggerType);\n }\n\n private syncOptions() {\n if (this.popover == null) return;\n\n this.popover.setOptions({\n placement: this.placement,\n distance: this.distance,\n skidding: this.skidding,\n transitionElement: this.tooltip,\n onAfterHide: () => this.sixAfterHide.emit(),\n onAfterShow: () => this.sixAfterShow.emit(),\n });\n }\n\n render() {\n return (\n <Host onKeyDown={this.handleKeyDown} onMouseOver={this.handleMouseOver} onMouseOut={this.handleMouseOut}>\n <slot onSlotchange={this.handleSlotChange} />\n <div ref={(el) => (this.tooltipPositioner = el)} class=\"tooltip-positioner\">\n <div\n part=\"base\"\n ref={(el) => (this.tooltip = el)}\n id={this.componentId}\n class={{\n tooltip: true,\n 'tooltip--open': this.open,\n }}\n role=\"tooltip\"\n aria-hidden={this.open ? 'false' : 'true'}\n >\n <slot name=\"content\">{this.content}</slot>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"oGAAA,MAAMA,EAAgB,sxHCItB,IAAIC,EAAK,E,MAmBIC,EAAU,M,uNACbC,KAAAC,YAAc,aAAaH,IAC3BE,KAAAE,UAAY,MAmJZF,KAAAG,WAAa,KACnB,GAAIH,KAAKI,WAAW,SAAU,CAC5BJ,KAAKK,M,GAIDL,KAAAM,YAAc,KACpB,GAAIN,KAAKI,WAAW,SAAU,CAC5BJ,KAAKO,KAAOP,KAAKK,OAASL,KAAKQ,M,GAI3BR,KAAAS,YAAc,KACpB,GAAIT,KAAKI,WAAW,SAAU,CAC5BJ,KAAKQ,M,GAIDR,KAAAU,cAAiBC,IAEvB,GAAIX,KAAKO,MAAQI,EAAMC,MAAQ,SAAU,CACvCD,EAAME,kBACNb,KAAKK,M,GAIDL,KAAAc,gBAAkB,KACxB,GAAId,KAAKI,WAAW,SAAU,CAC5BJ,KAAKQ,M,GAIDR,KAAAe,eAAiB,KACvB,GAAIf,KAAKI,WAAW,SAAU,CAC5BJ,KAAKK,M,GAIDL,KAAAgB,iBAAmB,KACzB,MAAMC,EAAYjB,KAAKkB,OACvB,MAAMC,EAAYnB,KAAKoB,YAEvB,GAAID,IAAcF,EAAW,CAC3B,GAAIA,GAAa,KAAM,CACrBA,EAAUI,gBAAgB,mB,CAE5BF,EAAUG,aAAa,mBAAoBtB,KAAKC,Y,gBAxLlC,G,eAkBD,M,cAGE,M,cAGA,G,UAG4B,M,cAG5B,E,aAOD,a,CAGlB,gBAAAsB,GACEvB,KAAKO,KAAOP,KAAKQ,OAASR,KAAKK,M,CAejC,gBAAAmB,GACE,GAAIxB,KAAKyB,mBAAqB,KAAM,OACpCzB,KAAKkB,OAASlB,KAAKoB,YACnBpB,KAAK0B,QAAU,IAAIC,EAAQ3B,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,aAAa,UAAY,YAG9E,GAAI9B,GAAU,KAAM,CAClB,MAAM,IAAI+B,MAAM,sD,CAGlB,OAAO/B,C,CAqDD,UAAAd,CAAW8C,GACjB,MAAMC,EAAWnD,KAAKoD,QAAQC,MAAM,KACpC,OAAOF,EAASG,SAASJ,E,CAGnB,WAAArB,GACN,GAAI7B,KAAK0B,SAAW,KAAM,OAE1B1B,KAAK0B,QAAQ6B,WAAW,CACtBC,UAAWxD,KAAKwD,UAChBC,SAAUzD,KAAKyD,SACfC,SAAU1D,KAAK0D,SACfC,kBAAmB3D,KAAK4D,QACxBC,YAAa,IAAM7D,KAAK8D,aAAavB,OACrCwB,YAAa,IAAM/D,KAAKgE,aAAazB,Q,CAIzC,MAAA0B,GACE,OACEC,EAACC,EAAI,CAACC,UAAWpE,KAAKU,cAAe2D,YAAarE,KAAKc,gBAAiBwD,WAAYtE,KAAKe,gBACvFmD,EAAA,QAAMK,aAAcvE,KAAKgB,mBACzBkD,EAAA,OAAKM,IAAM3B,GAAQ7C,KAAKyB,kBAAoBoB,EAAK4B,MAAM,sBACrDP,EAAA,OACEQ,KAAK,OACLF,IAAM3B,GAAQ7C,KAAK4D,QAAUf,EAC7B/C,GAAIE,KAAKC,YACTwE,MAAO,CACLb,QAAS,KACT,gBAAiB5D,KAAKO,MAExBoE,KAAK,UAAS,cACD3E,KAAKO,KAAO,QAAU,QAEnC2D,EAAA,QAAMU,KAAK,WAAW5E,KAAK6E,W"}
@@ -1,2 +0,0 @@
1
- import{r as s,h as i}from"./p-6153045b.js";const t=".six-files-list__container{padding:1rem}.six-files-list__container :last-child{padding-bottom:0}";const l=class{constructor(i){s(this,i)}render(){return i("div",{class:"six-files-list__container"},i("slot",null))}};l.style=t;export{l as six_file_list};
2
- //# sourceMappingURL=p-dfed33c5.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixFileListCss","SixFileList","render","h","class"],"sources":["src/components/six-file-list/six-file-list.scss?tag=six-file-list&encapsulation=shadow","src/components/six-file-list/six-file-list.tsx"],"sourcesContent":[".six-files-list {\n &__container {\n padding: 1rem;\n\n & :last-child {\n padding-bottom: 0;\n }\n }\n}\n","import { Component, h } from '@stencil/core';\n\n/**\n * @since 2.0.0\n * @status experimental\n *\n */\n@Component({\n tag: 'six-file-list',\n styleUrl: 'six-file-list.scss',\n shadow: true,\n})\nexport class SixFileList {\n render() {\n return (\n <div class=\"six-files-list__container\">\n <slot />\n </div>\n );\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAiB,mG,MCYVC,EAAW,M,yBACtB,MAAAC,GACE,OACEC,EAAA,OAAKC,MAAM,6BACTD,EAAA,a"}
@@ -1,2 +0,0 @@
1
- import{r as i,c as t,h as s,g as n}from"./p-6153045b.js";import{P as e}from"./p-0fdb185d.js";import{E as o}from"./p-7d95def3.js";import{b as r,a as h}from"./p-15559d38.js";import{D as l,a as d}from"./p-698bb2c8.js";function a(i){const t=i.tabIndex;return t>-1}function u(i){if(a(i)){return i}if(i.shadowRoot!=null){const t=[...i.shadowRoot.children].find((i=>a(i)));if(t!=null){return t}}if(i.children!=null){return[...i.children].map((i=>u(i))).at(0)}return undefined}const f=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:inline-block}.dropdown{position:relative}.dropdown__trigger{display:block}.dropdown__positioner{position:absolute;z-index:var(--six-z-index-dropdown)}.dropdown__positioner__filtered{width:100%}.dropdown__panel{max-height:50vh;font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);color:var(--color);background-color:var(--six-panel-background-color);border-radius:var(--six-border-radius-medium);box-shadow:var(--six-elevation-2dp);opacity:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:none;pointer-events:none;transform:scale(0.9);transition:var(--six-transition-fast) opacity, var(--six-transition-fast) transform;scrollbar-width:thin}.filter-hidden{display:none}.dropdown__positioner[data-popper-placement^=top] .dropdown__panel{transform-origin:bottom}.dropdown__positioner[data-popper-placement^=bottom] .dropdown__panel{transform-origin:top}.dropdown__positioner[data-popper-placement^=left] .dropdown__panel{transform-origin:right}.dropdown__positioner[data-popper-placement^=right] .dropdown__panel{transform-origin:left}.dropdown__positioner.popover-visible .dropdown__panel{opacity:1;transform:none;pointer-events:all}";const c=i=>t=>(t===null||t===void 0?void 0:t.tagName.toLowerCase())===i.toLowerCase();const p=c("six-menu");const v=c("six-menu-item");let m=0;const w=class{constructor(n){i(this,n);this.sixShow=t(this,"six-dropdown-show",7);this.sixAfterShow=t(this,"six-dropdown-after-show",7);this.sixHide=t(this,"six-dropdown-hide",7);this.sixAfterHide=t(this,"six-dropdown-after-hide",7);this.sixAutoFilter=t(this,"six-dropdown-auto-filter-fired",7);this.sixAsyncFilterFired=t(this,"six-async-filter-fired",7);this.sixScroll=t(this,"six-dropdown-scroll",7);this.componentId=`dropdown-${++m}`;this.isVisible=false;this.hasBeenInitialized=false;this.eventListeners=new o;this.getMenuItems=()=>{if(this.filteredOptions.length>0){return this.filteredOptions.map((i=>s("six-menu-item",{value:i.value},i.label)))}if(this.panel==null)return[];const[i]=r(this.panel);return r(i)||Array.from(i.querySelectorAll("six-menu-item"))};this.handleFilterInputChange=()=>{var i,t;if(this.filterInputElement==null)return;const s=((t=(i=this.filterInputElement.value)===null||i===void 0?void 0:i.toLowerCase())===null||t===void 0?void 0:t.trim())||"";if(this.filteredOptions.length>0){this.handleFilteringForAttributeItems(s)}else{this.handleFilteringForSlotItems(s)}this.sixAutoFilter.emit({filterValue:s})};this.handleDocumentKeyDown=i=>{var t;const s=i;if(s.key==="Escape"){void this.hide();this.focusOnTrigger();return}if(this.filterInputElement===((t=this.host.shadowRoot)===null||t===void 0?void 0:t.activeElement)){if(s.key==="ArrowDown"){const i=this.getMenuItems().find((i=>i.style.display!=="none"));if(i!=null){i.setFocus()}}}if(s.key==="Tab"){if(this.open&&document.activeElement!=null&&v(document.activeElement)){s.preventDefault();void this.hide();this.focusOnTrigger();return}setTimeout((()=>{var i,t;const s=this.container.getRootNode()instanceof ShadowRoot?(t=(i=document.activeElement)===null||i===void 0?void 0:i.shadowRoot)===null||t===void 0?void 0:t.activeElement:document.activeElement;if((s===null||s===void 0?void 0:s.closest(this.container.tagName.toLowerCase()))!==this.container){void this.hide();return}}))}};this.handleDocumentMouseDown=i=>{const t=i.composedPath();if(!t.includes(this.container)){void this.hide();return}};this.handlePanelSelect=i=>{const t=i.target;if(this.closeOnSelect&&p(t)){void this.hide();this.focusOnTrigger()}};this.handleTriggerClick=()=>{this.open?this.hide():this.show()};this.handleTriggerKeyDown=i=>{if(i.key==="Escape"){this.focusOnTrigger();void this.hide();return}if(!this.disableHideOnEnterAndSpace&&[" ","Enter"].includes(i.key)){i.preventDefault();this.open?void this.hide():void this.show();return}const t=this.getMenu();if(["ArrowDown","ArrowUp"].includes(i.key)){i.preventDefault();if(!this.open){void this.show()}if(t==null){return}const s=[...t.querySelectorAll("six-menu-item")];const n=s.at(0);const e=s.at(s.length-1);if(i.key==="ArrowDown"&&n!=null){n.setFocus();return}if(i.key==="ArrowUp"&&e!=null){e.setFocus();return}}const s=["Tab","Shift","Meta","Ctrl","Alt"];if(this.open&&t!=null&&!s.includes(i.key)){void t.typeToSelect(i.key);return}};this.handleTriggerKeyUp=i=>{if(i.key===" "){i.preventDefault()}};this.handleTriggerSlotChange=()=>{this.updateAccessibleTrigger()};this.handleDropdownScroll=()=>{if(this.panel==null)return;this.sixScroll.emit({scrollHeight:this.panel.scrollHeight,scrollTop:this.panel.scrollTop,scrollbarHeight:this.panel.offsetHeight*(this.panel.offsetHeight/this.panel.scrollHeight),scrollRatio:this.panel.scrollTop/(this.panel.scrollHeight-this.panel.clientHeight)})};this.open=false;this.placement="bottom-start";this.closeOnSelect=true;this.distance=0;this.skidding=0;this.hoist=false;this.containingElement=undefined;this.filter=false;this.asyncFilter=false;this.filterPlaceholder="Filter...";this.autofocusFilter=true;this.filterDebounce=l;this.disableHideOnEnterAndSpace=false;this.options=[];this.virtualScroll=false;this.filteredOptions=[]}get hasFilterEnabled(){return this.filter||this.asyncFilter}get container(){return this.containingElement||this.host}handleOpenChange(){this.open?this.show():this.hide();this.updateAccessibleTrigger()}handlePopoverOptionsChange(){if(this.popover==null)return;this.popover.setOptions({strategy:this.hoist?"fixed":"absolute",placement:this.placement,distance:this.distance,skidding:this.skidding})}handleOptionsChange(){if(Array.isArray(this.options)){this.filteredOptions=[...this.options]}}connectedCallback(){if(this.virtualScroll&&this.options===null){console.error("Options must be defined when using virtual scrolling")}if(Array.isArray(this.options)){this.filteredOptions=[...this.options]}if(this.hasBeenInitialized&&this.popover==null){this.initializePopover()}}componentDidLoad(){this.hasBeenInitialized=true;this.initializePopover();if(this.open){void this.show()}if(this.filter){this.setupFiltering(this.handleFilterInputChange)}else if(this.asyncFilter){this.setupFiltering((()=>{var i,t;return this.sixAsyncFilterFired.emit({filterValue:(t=(i=this.filterInputElement)===null||i===void 0?void 0:i.value)!==null&&t!==void 0?t:""})}))}}initializePopover(){if(this.trigger==null||this.positioner==null)return;const i=()=>{if(this.filter&&this.filterInputElement!=null){this.filterInputElement.value="";if(this.filteredOptions.length>0){this.filteredOptions=[...this.options]}else{const i=this.getMenuItems();i.forEach((i=>i.style.display="unset"))}}this.sixAfterHide.emit()};const t=async()=>{var i;if(this.hasFilterEnabled&&this.autofocusFilter){await((i=this.filterInputElement)===null||i===void 0?void 0:i.setFocus())}this.sixAfterShow.emit()};const s=()=>{if(!this.open&&this.panel!=null){this.panel.scrollTop=0}};this.popover=new e(this.trigger,this.positioner,{strategy:this.hoist?"fixed":"absolute",placement:this.placement,distance:this.distance,skidding:this.skidding,transitionElement:this.panel,onAfterHide:i,onAfterShow:t,onTransitionEnd:s})}setupFiltering(i){if(this.filterInputElement!=null){this.eventListeners.add(this.filterInputElement,"six-input-input",d(i,this.filterDebounce))}}handleFilteringForAttributeItems(i){if(i===""&&Array.isArray(this.options)){this.filteredOptions=[...this.options];return}this.filteredOptions=this.options.filter((t=>{var s,n,e,o;return t.label&&((n=(s=String(t.label))===null||s===void 0?void 0:s.toLowerCase())===null||n===void 0?void 0:n.includes(i))||t.value&&((o=(e=String(t.value))===null||e===void 0?void 0:e.toLowerCase())===null||o===void 0?void 0:o.includes(i))}))}handleFilteringForSlotItems(i){const t=this.getMenuItems();t.forEach((async t=>{var s,n,e,o;const r=((n=(s=t===null||t===void 0?void 0:t.value)===null||s===void 0?void 0:s.toLowerCase())===null||n===void 0?void 0:n.includes(i))||((o=(e=await(t===null||t===void 0?void 0:t.getTextLabel()))===null||e===void 0?void 0:e.toLowerCase())===null||o===void 0?void 0:o.includes(i));t.style.display=r?"unset":"none"}))}disconnectedCallback(){var i;this.eventListeners.removeAll();void this.hide();(i=this.popover)===null||i===void 0?void 0:i.destroy();this.popover=undefined}async show(){if(this.isVisible||this.popover==null||this.panel==null){return}const i=this.sixShow.emit();if(i.defaultPrevented){this.open=false;return}this.eventListeners.add(this.panel,"six-menu-item-selected",this.handlePanelSelect);this.eventListeners.add(document,"keydown",this.handleDocumentKeyDown);this.eventListeners.add(document,"mousedown",this.handleDocumentMouseDown);this.isVisible=true;this.open=true;this.popover.show()}async hide(){if(!this.isVisible||this.panel==null||this.popover==null){return}const i=this.sixHide.emit();if(i.defaultPrevented){this.open=true;return}this.eventListeners.remove(this.panel,"six-menu-item-selected",this.handlePanelSelect);this.eventListeners.remove(document,"keydown",this.handleDocumentKeyDown);this.eventListeners.remove(document,"mousedown",this.handleDocumentMouseDown);this.isVisible=false;this.open=false;this.popover.hide()}focusOnTrigger(){if(this.trigger==null)return;const[i]=r(this.trigger);if(i!=null){if(typeof i.setFocus==="function"){i.setFocus()}else if(typeof i.focus==="function"){i.focus()}}}getMenu(){if(this.panel==null)return;return r(this.panel).filter(p).at(0)}async reposition(){if(!this.open||this.popover==null){return}this.popover.reposition()}updateAccessibleTrigger(){if(this.trigger==null)return;const i=r(this.trigger).map(u).at(0);if(i!=null){i.setAttribute("aria-haspopup","true");i.setAttribute("aria-expanded",this.open?"true":"false")}}render(){return s("div",{part:"base",id:this.componentId,class:{dropdown:true,"dropdown--open":this.open}},s("span",{part:"trigger",class:"dropdown__trigger",ref:i=>this.trigger=i,onClick:this.handleTriggerClick,onKeyDown:this.handleTriggerKeyDown,onKeyUp:this.handleTriggerKeyUp},s("slot",{name:"trigger",onSlotchange:this.handleTriggerSlotChange})),s("div",{ref:i=>this.positioner=i,class:{dropdown__positioner:true,dropdown__positioner__filtered:(this.filter||this.asyncFilter)&&!this.hoist}},this.hasFilterEnabled&&s("six-input",{class:{"filter-hidden":!this.open},"aria-hidden":this.open?"false":"true",ref:i=>this.filterInputElement=i,placeholder:this.filterPlaceholder}),s("div",{ref:i=>this.panel=i,part:"panel",class:"dropdown__panel",role:"menu","aria-hidden":this.open?"false":"true","aria-labelledby":this.componentId,onScroll:this.handleDropdownScroll},s("slot",null),this.filteredOptions.length>0&&s("six-menu",{part:"menu",items:this.filteredOptions,virtualScroll:this.virtualScroll}))))}get host(){return n(this)}static get watchers(){return{open:["handleOpenChange"],distance:["handlePopoverOptionsChange"],hoist:["handlePopoverOptionsChange"],placement:["handlePopoverOptionsChange"],skidding:["handlePopoverOptionsChange"],options:["handleOptionsChange"]}}};w.style=f;const g=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}.menu{padding:0 0;border:none;box-shadow:var(--six-elevation-2dp)}.menu:focus{outline:none}.menu--noshadow{box-shadow:none}.menu__wrapper--scrollable{overflow-y:auto}";const b=i=>{var t,s,n;return(n=(s=(t=i===null||i===void 0?void 0:i.shadowRoot)===null||t===void 0?void 0:t.querySelector(".menu-item"))===null||s===void 0?void 0:s.classList)===null||n===void 0?void 0:n.contains("menu-item--focused")};const x=i=>(i===null||i===void 0?void 0:i.tagName.toLowerCase())==="six-menu-item";const _=({value:i,label:t})=>s("six-menu-item",{value:i},t);const y=5;const A=64;const k=class{constructor(s){i(this,s);this.sixMenuItemSelected=t(this,"six-menu-item-selected",7);this.eventListeners=new o;this.typeToSelectString="";this.handleScrolling=()=>{if(this.menuWrapper==null)return;this.scrollingIndex=Math.floor(this.menuWrapper.scrollTop/this.sixMenuItemHeight)};this.removeBoxShadow=false;this.items=null;this.itemsShown=undefined;this.virtualScroll=false;this.itemSize=10;this.scrollingDebounce=15;this.scrollingIndex=0;this.sixMenuItemHeight=A}connectedCallback(){this.handleClick=this.handleClick.bind(this);this.handleKeyDown=this.handleKeyDown.bind(this)}componentWillLoad(){if(this.items===null){return}}componentDidLoad(){this.setupForVirtualScrollingAfterRendering()}disconnectedCallback(){this.eventListeners.removeAll()}async typeToSelect(i){var t;clearTimeout(this.typeToSelectTimeout);this.typeToSelectTimeout=setTimeout((()=>this.typeToSelectString=""),750);this.typeToSelectString+=i.toLowerCase();const s=this.getItems();for(const i of s){const s=(t=i.shadowRoot)===null||t===void 0?void 0:t.querySelector("slot:not([name])");const n=h(s).toLowerCase().trim();if(n.substring(0,this.typeToSelectString.length)===this.typeToSelectString){i.setFocus();break}}}getItemsShown(){var i;const t=this.virtualScroll?y:0;return(i=this.itemsShown)!==null&&i!==void 0?i:t}setupForVirtualScrollingAfterRendering(){var i,t;if(!this.virtualScroll||this.menuWrapper==null)return;this.eventListeners.add(this.menuWrapper,"scroll",d(this.handleScrolling,this.scrollingDebounce));const s=(t=(i=this.menu)===null||i===void 0?void 0:i.querySelector("six-menu-item"))===null||t===void 0?void 0:t.clientHeight;if(s!=null&&s>0){this.sixMenuItemHeight=s}}getItems(){if(this.menu==null)return[];if(this.items!=null){return this.items.map(_)}const i=this.menu.querySelector("slot");if(i==null)return[];return[...i.assignedElements({flatten:true})].filter((i=>x(i)&&!i.disabled))}getActiveItemIndex(){const i=this.getItems();const t=this.getActiveItem();if(t!=null){const s=i.indexOf(t);if(s>-1){return s}}const s=this.extractItemsFromDOM();return s.findIndex(b)}getActiveItem(){var i;const t=this.getItems().find((i=>i===document.activeElement));if(t!=null){return t}return(i=this.extractItemsFromDOM())===null||i===void 0?void 0:i.find(b)}extractItemsFromDOM(){var i,t;return Array.from((t=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("six-menu-item"))!==null&&t!==void 0?t:[])}setActiveItem(i){i===null||i===void 0?void 0:i.setFocus()}handleClick(i){const t=i.target;const s=t.closest("six-menu-item");if(s&&!s.disabled){this.sixMenuItemSelected.emit({name:s.value,item:s})}}handleKeyDown(i){if(i.key==="Enter"){const t=this.getActiveItem();i.preventDefault();if(t!=null){this.sixMenuItemSelected.emit({name:t.value,item:t})}}if(i.key===" "){i.preventDefault()}if(["ArrowDown","ArrowUp","Home","End"].includes(i.key)){const t=this.items===null?this.getItems():this.extractItemsFromDOM();let s=this.getActiveItemIndex();if(t.length>0){i.preventDefault();if(i.key==="ArrowDown"){s++}else if(i.key==="ArrowUp"){s--}else if(i.key==="Home"){s=0}else if(i.key==="End"){s=t.length-1}if(s<0)s=0;if(s>t.length-1)s=t.length-1;this.setActiveItem(t[s]);return}}void this.typeToSelect(i.key)}getMenuWrapperStyle(){var i;const t={};if(this.getItemsShown()>0){t.height=`${((i=this.getItemsShown())!==null&&i!==void 0?i:0)*this.sixMenuItemHeight}px`}return Object.assign({},t)}getMenuContainerStyle(){const i={};if(this.virtualScroll){i.transform=`translateY(${this.sixMenuItemHeight*this.scrollingIndex}px)`}return Object.assign({},i)}getScrollbarGhostStyle(){const i={};if(this.virtualScroll&&this.items!==null){i.height=`${this.items.length*this.sixMenuItemHeight-this.itemSize*this.sixMenuItemHeight}px`}return Object.assign({},i)}renderItems(){if(this.items===undefined||this.items===null){return}if(!this.virtualScroll){return this.items.map(_)}return this.items.slice(this.scrollingIndex,Math.min(this.items.length,this.itemSize+this.scrollingIndex)).map(_)}render(){return s("div",{ref:i=>this.menuWrapper=i,style:this.getMenuWrapperStyle(),part:"wrapper",class:{menu:true,"menu--noshadow":this.removeBoxShadow,"menu__wrapper--scrollable":this.getItemsShown()>0}},s("div",{ref:i=>this.menu=i,part:"base",role:"menu",onClick:this.handleClick,onKeyDown:this.handleKeyDown,tabIndex:0,style:this.getMenuContainerStyle()},s("slot",null),this.renderItems()),this.virtualScroll&&s("div",{style:this.getScrollbarGhostStyle()}))}get host(){return n(this)}};k.style=g;export{w as six_dropdown,k as six_menu};
2
- //# sourceMappingURL=p-e775dcb4.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["isTabbable","el","tabIndex","getNearestTabbableElement","shadowRoot","tabbableShadowChild","children","find","e","map","at","undefined","sixDropdownCss","isTagName","name","tagName","toLowerCase","isSixMenu","isSixMenuItem","id","SixDropdown","this","componentId","isVisible","hasBeenInitialized","eventListeners","EventListeners","getMenuItems","filteredOptions","length","option","h","value","label","panel","getSlotChildren","Array","from","querySelectorAll","handleFilterInputChange","filterInputElement","lowerCaseFilterTerm","_b","_a","trim","handleFilteringForAttributeItems","handleFilteringForSlotItems","sixAutoFilter","emit","filterValue","handleDocumentKeyDown","event","keyboardEvent","key","hide","focusOnTrigger","host","activeElement","item","style","display","setFocus","open","document","preventDefault","setTimeout","container","getRootNode","ShadowRoot","closest","handleDocumentMouseDown","path","composedPath","includes","handlePanelSelect","target","closeOnSelect","handleTriggerClick","show","handleTriggerKeyDown","disableHideOnEnterAndSpace","menu","getMenu","menuItems","firstMenuItem","lastMenuItem","ignoredKeys","typeToSelect","handleTriggerKeyUp","handleTriggerSlotChange","updateAccessibleTrigger","handleDropdownScroll","sixScroll","scrollHeight","scrollTop","scrollbarHeight","offsetHeight","scrollRatio","clientHeight","DEFAULT_DEBOUNCE_FAST","hasFilterEnabled","filter","asyncFilter","containingElement","handleOpenChange","handlePopoverOptionsChange","popover","setOptions","strategy","hoist","placement","distance","skidding","handleOptionsChange","isArray","options","connectedCallback","virtualScroll","console","error","initializePopover","componentDidLoad","setupFiltering","sixAsyncFilterFired","trigger","positioner","onAfterHide","forEach","sixAfterHide","onAfterShow","async","autofocusFilter","sixAfterShow","onTransitionEnd","Popover","transitionElement","callback","add","debounce","filterDebounce","String","_d","_c","menuItem","elementContainsFilterTerm","getTextLabel","disconnectedCallback","removeAll","destroy","sixShow","defaultPrevented","sixHide","remove","focus","reposition","accessibleTrigger","setAttribute","render","part","class","dropdown","ref","onClick","onKeyDown","onKeyUp","onSlotchange","dropdown__positioner","dropdown__positioner__filtered","placeholder","filterPlaceholder","role","onScroll","items","sixMenuCss","isFocusedMenuItem","querySelector","classList","contains","isSIXMenuItemElement","mapToMenuItem","DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING","DEFAULT_SIX_MENU_ITEM_HEIGHT","SixMenu","typeToSelectString","handleScrolling","menuWrapper","scrollingIndex","Math","floor","sixMenuItemHeight","handleClick","bind","handleKeyDown","componentWillLoad","setupForVirtualScrollingAfterRendering","clearTimeout","typeToSelectTimeout","getItems","slot","getTextContent","substring","getItemsShown","defaultItemsShown","itemsShown","scrollingDebounce","menuItemHeight","assignedElements","flatten","disabled","getActiveItemIndex","selectedItem","getActiveItem","itemIndex","indexOf","sixMenuItems","extractItemsFromDOM","findIndex","i","setActiveItem","clickedItem","sixMenuItemSelected","activeItem","indexOfActiveItem","getMenuWrapperStyle","styles","height","Object","assign","getMenuContainerStyle","transform","getScrollbarGhostStyle","itemSize","renderItems","slice","min","removeBoxShadow"],"sources":["src/utils/tabbable.ts","src/components/six-dropdown/six-dropdown.scss?tag=six-dropdown&encapsulation=shadow","src/components/six-dropdown/six-dropdown.tsx","src/components/six-menu/six-menu.scss?tag=six-menu&encapsulation=shadow","src/components/six-menu/six-menu.tsx"],"sourcesContent":["export function isTabbable(el: HTMLElement) {\n const tabIndex = el.tabIndex;\n return tabIndex > -1;\n}\n\nexport function getNearestTabbableElement(el: HTMLElement): HTMLElement | undefined {\n // Check the element\n if (isTabbable(el)) {\n return el;\n }\n\n // Check the element's shadow root\n if (el.shadowRoot != null) {\n const tabbableShadowChild = [...el.shadowRoot.children].find((e) => isTabbable(e as HTMLElement)) as HTMLElement;\n if (tabbableShadowChild != null) {\n return tabbableShadowChild;\n }\n }\n\n // Check the element's children\n if (el.children != null) {\n return [...el.children].map((e) => getNearestTabbableElement(e as HTMLElement)).at(0);\n }\n\n return undefined;\n}\n","@import 'src/global/component';\n@import 'src/global/mixins/scrollbar';\n\n:host {\n display: inline-block;\n}\n\n.dropdown {\n position: relative;\n}\n\n.dropdown__trigger {\n display: block;\n}\n\n.dropdown__positioner {\n position: absolute;\n z-index: var(--six-z-index-dropdown);\n\n &__filtered {\n width: 100%;\n }\n}\n\n.dropdown__panel {\n max-height: 50vh;\n font-family: var(--six-font-sans);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-normal);\n color: var(--color);\n background-color: var(--six-panel-background-color);\n border-radius: var(--six-border-radius-medium);\n box-shadow: var(--six-elevation-2dp);\n opacity: 0;\n overflow-y: auto;\n overflow-x: hidden;\n overscroll-behavior: none;\n pointer-events: none;\n transform: scale(0.9);\n transition: var(--six-transition-fast) opacity, var(--six-transition-fast) transform;\n // fix for firefox scrollbar\n scrollbar-width: thin;\n}\n\n.filter-hidden {\n display: none;\n}\n\n.dropdown__positioner {\n &[data-popper-placement^='top'] .dropdown__panel {\n transform-origin: bottom;\n }\n\n &[data-popper-placement^='bottom'] .dropdown__panel {\n transform-origin: top;\n }\n\n &[data-popper-placement^='left'] .dropdown__panel {\n transform-origin: right;\n }\n\n &[data-popper-placement^='right'] .dropdown__panel {\n transform-origin: left;\n }\n\n &.popover-visible .dropdown__panel {\n opacity: 1;\n transform: none;\n pointer-events: all;\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { getNearestTabbableElement } from '../../utils/tabbable';\nimport Popover from '../../utils/popover';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { getSlotChildren } from '../../utils/slot';\nimport { debounce, DEFAULT_DEBOUNCE_FAST } from '../../utils/execution-control';\nimport { EmptyPayload } from '../../utils/types';\nimport { SixMenuItemData } from '../six-menu/six-menu';\n\nexport interface SixDropdownAutoFilterPayload {\n filterValue: string;\n}\n\nexport interface SixDropdownAsyncFilterPayload {\n filterValue: string;\n}\n\nexport interface SixDropdownScrollPayload {\n scrollHeight: number;\n scrollTop: number;\n scrollbarHeight: number;\n scrollRatio: number;\n}\n\nconst isTagName =\n (name: string) =>\n <T extends Element>(el?: T) =>\n el?.tagName.toLowerCase() === name.toLowerCase();\nconst isSixMenu = isTagName('six-menu');\nconst isSixMenuItem = isTagName('six-menu-item');\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 trigger - The dropdown's trigger, usually a `<six-button>` element.\n * @slot - The dropdown's content.\n *\n * @part base - The component's base wrapper.\n * @part trigger - The container that wraps the trigger.\n * @part panel - The panel that gets shown when the dropdown is open.\n */\n\n@Component({\n tag: 'six-dropdown',\n styleUrl: 'six-dropdown.scss',\n shadow: true,\n})\nexport class SixDropdown {\n private componentId = `dropdown-${++id}`;\n private isVisible = false;\n private panel?: HTMLElement;\n private positioner?: HTMLElement;\n private popover?: Popover;\n private trigger?: HTMLElement;\n private hasBeenInitialized = false;\n\n // the input element shown in the dropdown when filter is set to true\n private filterInputElement?: HTMLSixInputElement;\n\n @Element() host!: HTMLSixDropdownElement;\n\n /** Indicates whether the dropdown is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The preferred placement of the dropdown panel. Note that the actual placement may vary as needed to keep the panel\n * inside the viewport.\n */\n @Prop() placement:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'bottom-start';\n\n /** Determines whether the dropdown should hide when a menu item is selected. */\n @Prop() closeOnSelect = true;\n\n /** The distance in pixels from which to offset the panel away from its trigger. */\n @Prop() distance = 0;\n\n /** The distance in pixels from which to offset the panel along its trigger. */\n @Prop() skidding = 0;\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 /** The dropdown will close when the user interacts outside of this element (e.g. clicking). */\n @Prop() containingElement?: HTMLElement;\n\n /**\n * Set to true to allow auto filtering for entries in the dropdown.\n * With this flag the dropdown will automatically filter itsel.\n * If you need to coordinate the shown elements yourself,\n * e.g. because you need to call an endpoint use asyncFilter instead\n */\n @Prop() filter = false;\n\n /**\n * Set to true to allow async filtering.\n * When you enter something in the search field the component will only emit an event but not filter any elements itself.\n * You can then simply listen to the 'six-async-filter-fired' event to manage the shown menu-items yourself\n */\n @Prop() asyncFilter = false;\n\n /** The filter's placeholder text. */\n @Prop() filterPlaceholder = 'Filter...';\n\n /** By default the search field will be focused when opening a dropdown with filtering enabled. */\n @Prop() autofocusFilter = true;\n\n get hasFilterEnabled() {\n return this.filter || this.asyncFilter;\n }\n\n /** The debounce for the filter callbacks. */\n @Prop() filterDebounce = DEFAULT_DEBOUNCE_FAST;\n\n /** The panel can be opend/closed by pressing the spacebar or the enter key. In some cases you might want to avoid this */\n @Prop() disableHideOnEnterAndSpace = false;\n\n /** Set the options to be shown in the dropdown (alternative to setting the elements via html)*/\n @Prop() options: SixMenuItemData[] = [];\n\n /** Defines whether the menu list will be rendered virtually i.e. only the elements actually shown (and a couple around)\n * are actually rendered in the DOM. If you use virtual scrolling pass the elements via prop instead of via slot. */\n @Prop() virtualScroll = false;\n\n get container() {\n return this.containingElement || this.host;\n }\n\n /** Emitted when the dropdown opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dropdown-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dropdown opens and all transitions are complete. */\n @Event({ eventName: 'six-dropdown-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dropdown closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dropdown-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dropdown closes and all transitions are complete. */\n @Event({ eventName: 'six-dropdown-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the auto filter is triggered */\n @Event({ eventName: 'six-dropdown-auto-filter-fired' }) sixAutoFilter!: EventEmitter<SixDropdownAutoFilterPayload>;\n\n /** Emitted when the async filter is triggered */\n @Event({ eventName: 'six-async-filter-fired' }) sixAsyncFilterFired!: EventEmitter<SixDropdownAsyncFilterPayload>;\n\n /** Emitted when the user scrolls inside dropdown panel.*/\n @Event({ eventName: 'six-dropdown-scroll' }) sixScroll!: EventEmitter<SixDropdownScrollPayload>;\n\n private eventListeners = new EventListeners();\n\n // internal representation of options, so we don't have to make options mutable\n @State() filteredOptions: SixMenuItemData[] = [];\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n this.updateAccessibleTrigger();\n }\n\n @Watch('distance')\n @Watch('hoist')\n @Watch('placement')\n @Watch('skidding')\n handlePopoverOptionsChange() {\n if (this.popover == null) return;\n\n this.popover.setOptions({\n strategy: this.hoist ? 'fixed' : 'absolute',\n placement: this.placement,\n distance: this.distance,\n skidding: this.skidding,\n });\n }\n\n @Watch('options')\n handleOptionsChange() {\n if (Array.isArray(this.options)) {\n this.filteredOptions = [...this.options];\n }\n }\n\n connectedCallback() {\n if (this.virtualScroll && this.options === null) {\n console.error('Options must be defined when using virtual scrolling');\n }\n\n if (Array.isArray(this.options)) {\n this.filteredOptions = [...this.options];\n }\n\n if (this.hasBeenInitialized && this.popover == null) {\n // there was a weird bug when using six-dropdown inside an ag-grid filter. When closing the ag-grid filter\n // disconnectedCallback() is executed. However, since componentDidLoad() will not be rerendered the popover had\n // no longer a connected transitionEnd callback to the dropdown. To fix this, we have this sanity check here,\n // to re-initialize the popover in case the component has already been initialized but the popover is undefined.\n this.initializePopover();\n }\n }\n\n componentDidLoad() {\n this.hasBeenInitialized = true;\n this.initializePopover();\n\n // Show on init if open\n if (this.open) {\n void this.show();\n }\n\n if (this.filter) {\n this.setupFiltering(this.handleFilterInputChange);\n } else if (this.asyncFilter) {\n this.setupFiltering(() => this.sixAsyncFilterFired.emit({ filterValue: this.filterInputElement?.value ?? '' }));\n }\n }\n\n private initializePopover() {\n if (this.trigger == null || this.positioner == null) return;\n const onAfterHide = () => {\n if (this.filter && this.filterInputElement != null) {\n this.filterInputElement.value = '';\n\n if (this.filteredOptions.length > 0) {\n this.filteredOptions = [...this.options];\n } else {\n const menuItems = this.getMenuItems();\n menuItems.forEach((item) => (item.style.display = 'unset'));\n }\n }\n\n this.sixAfterHide.emit();\n };\n\n const onAfterShow = async () => {\n if (this.hasFilterEnabled && this.autofocusFilter) {\n // if dropdown filter is enabled we should autofocus the search field\n await this.filterInputElement?.setFocus();\n }\n\n this.sixAfterShow.emit();\n };\n\n const onTransitionEnd = () => {\n if (!this.open && this.panel != null) {\n this.panel.scrollTop = 0;\n }\n };\n\n this.popover = new Popover(this.trigger, this.positioner, {\n strategy: this.hoist ? 'fixed' : 'absolute',\n placement: this.placement,\n distance: this.distance,\n skidding: this.skidding,\n transitionElement: this.panel,\n onAfterHide,\n onAfterShow,\n onTransitionEnd,\n });\n }\n\n private setupFiltering(callback: () => void) {\n if (this.filterInputElement != null) {\n this.eventListeners.add(this.filterInputElement, 'six-input-input', debounce(callback, this.filterDebounce));\n }\n }\n\n private getMenuItems = (): HTMLSixMenuItemElement[] => {\n if (this.filteredOptions.length > 0) {\n return this.filteredOptions.map((option) => <six-menu-item value={option.value}>{option.label}</six-menu-item>);\n }\n if (this.panel == null) return [];\n\n const [panel] = getSlotChildren<HTMLSixMenuElement>(this.panel);\n\n // the menu-items can be in a slot e.g. in six-select or direct children of the panel\n return getSlotChildren(panel) || Array.from(panel.querySelectorAll('six-menu-item'));\n };\n\n private handleFilterInputChange = () => {\n if (this.filterInputElement == null) return;\n\n const lowerCaseFilterTerm = this.filterInputElement.value?.toLowerCase()?.trim() || '';\n\n if (this.filteredOptions.length > 0) {\n this.handleFilteringForAttributeItems(lowerCaseFilterTerm);\n } else {\n this.handleFilteringForSlotItems(lowerCaseFilterTerm);\n }\n\n this.sixAutoFilter.emit({ filterValue: lowerCaseFilterTerm });\n };\n\n private handleFilteringForAttributeItems(lowerCaseFilterTerm: string) {\n if (lowerCaseFilterTerm === '' && Array.isArray(this.options)) {\n this.filteredOptions = [...this.options];\n return;\n }\n\n this.filteredOptions = this.options.filter(\n (option) =>\n (option.label && String(option.label)?.toLowerCase()?.includes(lowerCaseFilterTerm)) ||\n (option.value && String(option.value)?.toLowerCase()?.includes(lowerCaseFilterTerm))\n );\n }\n\n private handleFilteringForSlotItems(lowerCaseFilterTerm: string) {\n const menuItems = this.getMenuItems();\n menuItems.forEach(async (menuItem) => {\n // hide all elements which don't contain the entered substring\n const elementContainsFilterTerm =\n menuItem?.value?.toLowerCase()?.includes(lowerCaseFilterTerm) ||\n (await menuItem?.getTextLabel())?.toLowerCase()?.includes(lowerCaseFilterTerm);\n\n menuItem.style.display = elementContainsFilterTerm ? 'unset' : 'none';\n });\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n\n void this.hide();\n this.popover?.destroy();\n this.popover = undefined;\n }\n\n /** Shows the dropdown panel */\n @Method()\n async show() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (this.isVisible || this.popover == null || this.panel == null) {\n return;\n }\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.eventListeners.add(this.panel, 'six-menu-item-selected', this.handlePanelSelect);\n this.eventListeners.add(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.add(document, 'mousedown', this.handleDocumentMouseDown);\n\n this.isVisible = true;\n this.open = true;\n this.popover.show();\n }\n\n /** Hides the dropdown panel */\n @Method()\n async hide() {\n // Prevent subsequent calls to the method, whether manually or triggered by the `open` watcher\n if (!this.isVisible || this.panel == null || this.popover == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.eventListeners.remove(this.panel, 'six-menu-item-selected', this.handlePanelSelect);\n this.eventListeners.remove(document, 'keydown', this.handleDocumentKeyDown);\n this.eventListeners.remove(document, 'mousedown', this.handleDocumentMouseDown);\n\n this.isVisible = false;\n this.open = false;\n this.popover.hide();\n }\n\n private focusOnTrigger() {\n if (this.trigger == null) return;\n const [trigger] = getSlotChildren<HTMLSixButtonElement>(this.trigger);\n if (trigger != null) {\n if (typeof trigger.setFocus === 'function') {\n trigger.setFocus();\n } else if (typeof trigger.focus === 'function') {\n trigger.focus();\n }\n }\n }\n\n private getMenu(): HTMLSixMenuElement | undefined {\n if (this.panel == null) return;\n return getSlotChildren<HTMLSixMenuElement>(this.panel).filter(isSixMenu).at(0);\n }\n\n /**\n * Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\n * is activated.\n */\n @Method()\n async reposition() {\n if (!this.open || this.popover == null) {\n return;\n }\n this.popover.reposition();\n }\n\n private handleDocumentKeyDown = (event: Event) => {\n const keyboardEvent = event as KeyboardEvent;\n // Close when escape is pressed\n if (keyboardEvent.key === 'Escape') {\n void this.hide();\n this.focusOnTrigger();\n return;\n }\n\n if (this.filterInputElement === this.host.shadowRoot?.activeElement) {\n if (keyboardEvent.key === 'ArrowDown') {\n const item = this.getMenuItems().find((item) => item.style.display !== 'none');\n if (item != null) {\n item.setFocus();\n }\n }\n }\n\n // Handle tabbing\n if (keyboardEvent.key === 'Tab') {\n // Tabbing within an open menu should close the dropdown and refocus the trigger\n if (this.open && document.activeElement != null && isSixMenuItem(document.activeElement)) {\n keyboardEvent.preventDefault();\n void this.hide();\n this.focusOnTrigger();\n return;\n }\n\n // Tabbing outside the containing element closes the panel\n //\n // If the dropdown is used within a shadow DOM, we need to obtain the activeElement within that shadowRoot,\n // otherwise `document.activeElement` will only return the name of the parent shadow DOM element.\n setTimeout(() => {\n const activeElement =\n this.container.getRootNode() instanceof ShadowRoot\n ? document.activeElement?.shadowRoot?.activeElement\n : document.activeElement;\n\n if (activeElement?.closest(this.container.tagName.toLowerCase()) !== this.container) {\n void this.hide();\n return;\n }\n });\n }\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.container)) {\n void this.hide();\n return;\n }\n };\n\n private handlePanelSelect = (event: Event) => {\n const target = event.target as HTMLElement;\n\n // Hide the dropdown when a menu item is selected\n if (this.closeOnSelect && isSixMenu(target)) {\n void this.hide();\n this.focusOnTrigger();\n }\n };\n\n private handleTriggerClick = () => {\n this.open ? this.hide() : this.show();\n };\n\n private handleTriggerKeyDown = (event: KeyboardEvent) => {\n // Close when escape or tab is pressed\n if (event.key === 'Escape') {\n this.focusOnTrigger();\n void this.hide();\n return;\n }\n\n // When spacebar/enter is pressed, show the panel but don't focus on the menu. This let's the user press the same\n // key again to hide the menu in case they don't want to make a selection.\n if (!this.disableHideOnEnterAndSpace && [' ', 'Enter'].includes(event.key)) {\n event.preventDefault();\n this.open ? void this.hide() : void this.show();\n return;\n }\n\n const menu = this.getMenu();\n\n // When up/down is pressed, we make the assumption that the user is familiar with the menu and plans to make a\n // selection. Rather than toggle the panel, we focus on the menu (if one exists) and activate the first item for\n // faster navigation.\n if (['ArrowDown', 'ArrowUp'].includes(event.key)) {\n event.preventDefault();\n\n // Show the menu if it's not already open\n if (!this.open) {\n void this.show();\n }\n\n if (menu == null) {\n return;\n }\n const menuItems = [...menu.querySelectorAll('six-menu-item')];\n const firstMenuItem = menuItems.at(0);\n const lastMenuItem = menuItems.at(menuItems.length - 1);\n\n // Focus on a menu item\n if (event.key === 'ArrowDown' && firstMenuItem != null) {\n firstMenuItem.setFocus();\n return;\n }\n\n if (event.key === 'ArrowUp' && lastMenuItem != null) {\n lastMenuItem.setFocus();\n return;\n }\n }\n\n // Other keys bring focus to the menu and initiate type-to-select behavior\n const ignoredKeys = ['Tab', 'Shift', 'Meta', 'Ctrl', 'Alt'];\n if (this.open && menu != null && !ignoredKeys.includes(event.key)) {\n void menu.typeToSelect(event.key);\n return;\n }\n };\n\n private handleTriggerKeyUp = (event: KeyboardEvent) => {\n // Prevent space from triggering a click event in Firefox\n if (event.key === ' ') {\n event.preventDefault();\n }\n };\n\n private handleTriggerSlotChange = () => {\n this.updateAccessibleTrigger();\n };\n\n private handleDropdownScroll = () => {\n if (this.panel == null) return;\n\n this.sixScroll.emit({\n scrollHeight: this.panel.scrollHeight,\n scrollTop: this.panel.scrollTop,\n scrollbarHeight: this.panel.offsetHeight * (this.panel.offsetHeight / this.panel.scrollHeight),\n scrollRatio: this.panel.scrollTop / (this.panel.scrollHeight - this.panel.clientHeight),\n });\n };\n\n //\n // Slotted triggers can be arbitrary content, but we need to link them to the dropdown panel with `aria-haspopup` and\n // `aria-expanded`. These must be applied to the \"accessible trigger\" (the tabbable portion of the trigger element\n // that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,\n // a child of the slotted element, or an element in the slotted element's shadow root.\n //\n // For example, the accessible trigger of an <sl-button> is a <button> located inside its shadow root.\n //\n // To determine this, we assume the first tabbable element in the trigger slot is the \"accessible trigger.\"\n //\n private updateAccessibleTrigger() {\n if (this.trigger == null) return;\n\n const accessibleTrigger = getSlotChildren(this.trigger).map(getNearestTabbableElement).at(0);\n if (accessibleTrigger != null) {\n accessibleTrigger.setAttribute('aria-haspopup', 'true');\n accessibleTrigger.setAttribute('aria-expanded', this.open ? 'true' : 'false');\n }\n }\n\n render() {\n return (\n <div\n part=\"base\"\n id={this.componentId}\n class={{\n dropdown: true,\n 'dropdown--open': this.open,\n }}\n >\n <span\n part=\"trigger\"\n class=\"dropdown__trigger\"\n ref={(el) => (this.trigger = el)}\n onClick={this.handleTriggerClick}\n onKeyDown={this.handleTriggerKeyDown}\n onKeyUp={this.handleTriggerKeyUp}\n >\n <slot name=\"trigger\" onSlotchange={this.handleTriggerSlotChange} />\n </span>\n\n {/* Position the panel with a wrapper since the popover makes use of `translate`. This let's us add transitions\n on the panel without interfering with the position. */}\n <div\n ref={(el) => (this.positioner = el)}\n class={{\n dropdown__positioner: true,\n dropdown__positioner__filtered: (this.filter || this.asyncFilter) && !this.hoist,\n }}\n >\n {this.hasFilterEnabled && (\n <six-input\n class={{\n 'filter-hidden': !this.open,\n }}\n aria-hidden={this.open ? 'false' : 'true'}\n ref={(el) => (this.filterInputElement = el)}\n placeholder={this.filterPlaceholder}\n />\n )}\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dropdown__panel\"\n role=\"menu\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-labelledby={this.componentId}\n onScroll={this.handleDropdownScroll}\n >\n <slot />\n {this.filteredOptions.length > 0 && (\n <six-menu part=\"menu\" items={this.filteredOptions} virtualScroll={this.virtualScroll}></six-menu>\n )}\n </div>\n </div>\n </div>\n );\n }\n}\n","@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.menu {\n padding: 0 0;\n border: none;\n box-shadow: var(--six-elevation-2dp);\n\n &:focus {\n outline: none;\n }\n\n &--noshadow {\n box-shadow: none;\n }\n\n &__wrapper {\n &--scrollable {\n overflow-y: auto;\n }\n }\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\nimport { StyleDeclaration } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\nimport { debounce } from '../../utils/execution-control';\n\nexport interface SixMenuItemData {\n label: string;\n value: string;\n}\n\nexport interface SixMenuItemSelectedPayload {\n name: string;\n item: HTMLSixMenuItemElement;\n}\n\nconst isFocusedMenuItem = (menuItem: HTMLSixMenuItemElement) =>\n menuItem?.shadowRoot?.querySelector('.menu-item')?.classList?.contains('menu-item--focused');\n\nconst isSIXMenuItemElement = (el?: Element): el is HTMLSixMenuItemElement =>\n el?.tagName.toLowerCase() === 'six-menu-item';\n\nconst mapToMenuItem = ({ value, label }: SixMenuItemData) => <six-menu-item value={value}>{label}</six-menu-item>;\n\nconst DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING = 5;\n\nconst DEFAULT_SIX_MENU_ITEM_HEIGHT = 64;\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 menu's content, including menu items, menu dividers, and menu labels.\n *\n * @part base - The component's base wrapper.\n */\n@Component({\n tag: 'six-menu',\n styleUrl: 'six-menu.scss',\n shadow: true,\n})\nexport class SixMenu {\n private readonly eventListeners = new EventListeners();\n\n private menu?: HTMLElement;\n private menuWrapper?: HTMLElement;\n private typeToSelectString = '';\n private typeToSelectTimeout?: number;\n\n @Element() host!: HTMLSixMenuElement;\n\n /** Emitted when a menu item is selected. */\n @Event({ eventName: 'six-menu-item-selected' }) sixMenuItemSelected!: EventEmitter<SixMenuItemSelectedPayload>;\n\n /** Set to true to remove the box-shadow */\n @Prop() removeBoxShadow = false;\n\n /** Set the options to be shown in the dropdown */\n @Prop() items: SixMenuItemData[] | null = null;\n\n /** Defines how many items should be shown. If the number of items is larger than this property a scrollbar will be shown */\n @Prop() itemsShown?: number;\n\n /** Defines whether the menu list will be rendered virtually i.e. only the elements actually shown (and a couple around)\n * are actually rendered in the DOM. If you use virtual scrolling pass the elements via prop instead of via slot. */\n @Prop() virtualScroll = false;\n\n /**\n * Used for virtual scrolling\n * Define how many items should be rendered in the DOM when using virtual scrolling\n */\n @Prop() itemSize = 10;\n\n /**\n * Used for virtual scrolling\n * Define the debounce for listening on scrolling changes in milliseconds.\n * The lower the number the more sensitive the component reacts to scrolling changes.\n */\n @Prop() scrollingDebounce = 15;\n\n /**\n * Used to calculate which items should be rendered in the DOM\n */\n @State()\n private scrollingIndex = 0;\n\n // set a default item height, this variable will be updated with the real value after the first render.\n // However, it's necessary to have a default value because we can only fetch the proper height after the first render\n @State()\n sixMenuItemHeight = DEFAULT_SIX_MENU_ITEM_HEIGHT;\n\n connectedCallback() {\n this.handleClick = this.handleClick.bind(this);\n this.handleKeyDown = this.handleKeyDown.bind(this);\n }\n\n componentWillLoad() {\n if (this.items === null) {\n return;\n }\n }\n\n private handleScrolling = () => {\n if (this.menuWrapper == null) return;\n // for performance improvements we only update the DOM if the scrollRatio change \"enough\"\n this.scrollingIndex = Math.floor(this.menuWrapper.scrollTop / this.sixMenuItemHeight);\n };\n\n componentDidLoad() {\n this.setupForVirtualScrollingAfterRendering();\n }\n\n disconnectedCallback() {\n this.eventListeners.removeAll();\n }\n\n /**\n * Initiates type-to-select logic, which automatically selects an option based on what the user is currently typing.\n * The key passed will be appended to the internal query and the selection will be updated. After a brief period, the\n * internal query is cleared automatically. This method is intended to be used with the keydown event. Useful for\n * enabling type-to-select when the menu doesn't have focus.\n */\n @Method()\n async typeToSelect(key: string) {\n clearTimeout(this.typeToSelectTimeout);\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n this.typeToSelectTimeout = setTimeout(() => (this.typeToSelectString = ''), 750);\n this.typeToSelectString += key.toLowerCase();\n const items = this.getItems();\n for (const item of items) {\n const slot = item.shadowRoot?.querySelector('slot:not([name])') as HTMLSlotElement;\n const label = getTextContent(slot).toLowerCase().trim();\n if (label.substring(0, this.typeToSelectString.length) === this.typeToSelectString) {\n item.setFocus();\n break;\n }\n }\n }\n\n private getItemsShown(): number {\n const defaultItemsShown = this.virtualScroll ? DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING : 0;\n return this.itemsShown ?? defaultItemsShown;\n }\n\n private setupForVirtualScrollingAfterRendering() {\n if (!this.virtualScroll || this.menuWrapper == null) return;\n\n this.eventListeners.add(this.menuWrapper, 'scroll', debounce(this.handleScrolling, this.scrollingDebounce));\n\n // set menu height to proper height once the item is rendered.\n const menuItemHeight = this.menu?.querySelector('six-menu-item')?.clientHeight;\n if (menuItemHeight != null && menuItemHeight > 0) {\n this.sixMenuItemHeight = menuItemHeight;\n }\n }\n\n private getItems(): HTMLSixMenuItemElement[] {\n if (this.menu == null) return [];\n\n if (this.items != null) {\n return this.items.map(mapToMenuItem);\n }\n\n const slot = this.menu.querySelector('slot');\n if (slot == null) return [];\n return [...slot.assignedElements({ flatten: true })].filter(\n (el): el is HTMLSixMenuItemElement => isSIXMenuItemElement(el) && !el.disabled\n );\n }\n\n private getActiveItemIndex() {\n const items = this.getItems();\n const selectedItem = this.getActiveItem();\n if (selectedItem != null) {\n const itemIndex = items.indexOf(selectedItem);\n if (itemIndex > -1) {\n return itemIndex;\n }\n }\n const sixMenuItems = this.extractItemsFromDOM();\n return sixMenuItems.findIndex(isFocusedMenuItem);\n }\n\n private getActiveItem(): HTMLSixMenuItemElement | undefined {\n const activeElement = this.getItems().find((i) => i === document.activeElement);\n if (activeElement != null) {\n return activeElement;\n }\n return this.extractItemsFromDOM()?.find(isFocusedMenuItem);\n }\n\n private extractItemsFromDOM() {\n return Array.from(this.host.shadowRoot?.querySelectorAll('six-menu-item') ?? []);\n }\n\n private setActiveItem(item: HTMLSixMenuItemElement) {\n item?.setFocus();\n }\n\n private handleClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const clickedItem = target.closest('six-menu-item');\n if (clickedItem && !clickedItem.disabled) {\n this.sixMenuItemSelected.emit({ name: clickedItem.value, item: clickedItem });\n }\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n // Make a selection when pressing enter\n if (event.key === 'Enter') {\n const activeItem = this.getActiveItem();\n event.preventDefault();\n\n if (activeItem != null) {\n this.sixMenuItemSelected.emit({ name: activeItem.value, item: activeItem });\n }\n }\n\n // Prevent scrolling when space is pressed\n if (event.key === ' ') {\n event.preventDefault();\n }\n\n // Move the selection when pressing down or up\n if (['ArrowDown', 'ArrowUp', 'Home', 'End'].includes(event.key)) {\n const items = this.items === null ? this.getItems() : this.extractItemsFromDOM();\n\n let indexOfActiveItem = this.getActiveItemIndex();\n\n if (items.length > 0) {\n event.preventDefault();\n\n if (event.key === 'ArrowDown') {\n indexOfActiveItem++;\n } else if (event.key === 'ArrowUp') {\n indexOfActiveItem--;\n } else if (event.key === 'Home') {\n indexOfActiveItem = 0;\n } else if (event.key === 'End') {\n indexOfActiveItem = items.length - 1;\n }\n\n if (indexOfActiveItem < 0) indexOfActiveItem = 0;\n if (indexOfActiveItem > items.length - 1) indexOfActiveItem = items.length - 1;\n\n this.setActiveItem(items[indexOfActiveItem]);\n\n return;\n }\n }\n\n void this.typeToSelect(event.key);\n }\n\n private getMenuWrapperStyle() {\n const styles: Partial<StyleDeclaration> = {};\n if (this.getItemsShown() > 0) {\n // calculate the proper height to show the correct number of items\n styles.height = `${(this.getItemsShown() ?? 0) * this.sixMenuItemHeight}px`;\n }\n return {\n ...styles,\n };\n }\n\n private getMenuContainerStyle() {\n const styles: Partial<StyleDeclaration> = {};\n\n if (this.virtualScroll) {\n // calculate height of content are if all items would be rendered so the scrollbar has the proper size\n styles.transform = `translateY(${this.sixMenuItemHeight * this.scrollingIndex}px)`;\n }\n\n return {\n ...styles,\n };\n }\n\n private getScrollbarGhostStyle() {\n const styles: Partial<StyleDeclaration> = {};\n\n if (this.virtualScroll && this.items !== null) {\n styles.height = `${this.items.length * this.sixMenuItemHeight - this.itemSize * this.sixMenuItemHeight}px`;\n }\n\n return {\n ...styles,\n };\n }\n\n private renderItems() {\n if (this.items === undefined || this.items === null) {\n return;\n }\n\n if (!this.virtualScroll) {\n return this.items.map(mapToMenuItem);\n }\n\n return this.items\n .slice(this.scrollingIndex, Math.min(this.items.length, this.itemSize + this.scrollingIndex))\n .map(mapToMenuItem);\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.menuWrapper = el)}\n style={this.getMenuWrapperStyle()}\n part=\"wrapper\"\n class={{\n menu: true,\n 'menu--noshadow': this.removeBoxShadow,\n 'menu__wrapper--scrollable': this.getItemsShown() > 0,\n }}\n >\n <div\n ref={(el) => (this.menu = el)}\n part=\"base\"\n role=\"menu\"\n onClick={this.handleClick}\n onKeyDown={this.handleKeyDown}\n tabIndex={0}\n style={this.getMenuContainerStyle()}\n >\n <slot />\n {this.renderItems()}\n </div>\n {this.virtualScroll && <div style={this.getScrollbarGhostSt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AQR,KAAKkN,SAAWlN,KAAKqK,iBAC5EjL,IAAI0K,E,CAGT,MAAAtB,GACE,OACE9H,EAAA,OACEkI,IAAMhK,GAAQoB,KAAKoK,YAAcxL,EACjC0D,MAAOtC,KAAK0M,sBACZjE,KAAK,UACLC,MAAO,CACL9E,KAAM,KACN,iBAAkB5D,KAAKsN,gBACvB,4BAA6BtN,KAAKoL,gBAAkB,IAGtD1K,EAAA,OACEkI,IAAMhK,GAAQoB,KAAK4D,KAAOhF,EAC1B6J,KAAK,OACLY,KAAK,OACLR,QAAS7I,KAAKyK,YACd3B,UAAW9I,KAAK2K,cAChB9L,SAAU,EACVyD,MAAOtC,KAAK+M,yBAEZrM,EAAA,aACCV,KAAKmN,eAEPnN,KAAKgG,eAAiBtF,EAAA,OAAK4B,MAAOtC,KAAKiN,2B"}
@@ -1,2 +0,0 @@
1
- import{r,h as s}from"./p-6153045b.js";const t=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--track-color:var(--six-progress-track-color);--indicator-color:var(--six-progress-indicator-color);display:inline-flex}.progress-ring{display:inline-flex;align-items:center;justify-content:center;position:relative}.progress-ring__image{transform:rotate(-90deg);transform-origin:50% 50%}.progress-ring__track{stroke:var(--track-color)}.progress-ring__indicator{stroke:var(--indicator-color);transition:0.35s stroke-dashoffset, 0.35s stroke}.progress-ring__label{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;user-select:none;font-family:var(--six-font-family)}";const i=class{constructor(s){r(this,s);this.size=128;this.strokeWidth=4;this.percentage=0}handlePercentageChange(){this.updateProgress()}componentDidLoad(){this.updateProgress()}updateProgress(){var r;if(((r=this.indicator)===null||r===void 0?void 0:r.r)==null)return;const s=this.indicator.r.baseVal.value;const t=s*2*Math.PI;const i=t-this.percentage/100*t;this.indicator.style.strokeDasharray=`${t} ${t}`;this.indicator.style.strokeDashoffset=`${i}`}render(){return s("div",{part:"base",class:"progress-ring"},s("svg",{class:"progress-ring__image",width:this.size,height:this.size},s("circle",{class:"progress-ring__track","stroke-width":this.strokeWidth,"stroke-linecap":"round",fill:"transparent",r:this.size/2-this.strokeWidth*2,cx:this.size/2,cy:this.size/2}),s("circle",{ref:r=>this.indicator=r,class:"progress-ring__indicator","stroke-width":this.strokeWidth,"stroke-linecap":"round",fill:"transparent",r:this.size/2-this.strokeWidth*2,cx:this.size/2,cy:this.size/2})),s("span",{part:"label",class:"progress-ring__label"},s("slot",null)))}static get watchers(){return{percentage:["handlePercentageChange"]}}};i.style=t;export{i as six_progress_ring};
2
- //# sourceMappingURL=p-ee950ce2.entry.js.map