@six-group/ui-library 0.0.0-insider.4b8cb1b → 0.0.0-insider.513eb55

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 (1433) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  3. package/dist/cjs/{form-control-8d64e974.js → form-control-b39f1df5.js} +2 -2
  4. package/dist/cjs/{form-control-8d64e974.js.map → form-control-b39f1df5.js.map} +1 -1
  5. package/dist/cjs/index-417a06c8.js +1936 -0
  6. package/dist/cjs/index-417a06c8.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +5 -3
  8. package/dist/cjs/loader.cjs.js.map +1 -1
  9. package/dist/cjs/{modal-3ce015be.js → modal-bd7fc5bc.js} +1 -18
  10. package/dist/cjs/modal-bd7fc5bc.js.map +1 -0
  11. package/dist/cjs/six-alert.cjs.entry.js +17 -7
  12. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  13. package/dist/cjs/six-avatar.cjs.entry.js +5 -4
  14. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  15. package/dist/cjs/six-badge.cjs.entry.js +5 -4
  16. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  17. package/dist/cjs/six-button.cjs.entry.js +7 -5
  18. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  19. package/dist/cjs/six-card.cjs.entry.js +4 -3
  20. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  21. package/dist/cjs/six-checkbox_2.cjs.entry.js +11 -9
  22. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -1
  23. package/dist/cjs/six-datepicker.cjs.entry.js +41 -13
  24. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  25. package/dist/cjs/six-details.cjs.entry.js +6 -5
  26. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  27. package/dist/cjs/six-dialog.cjs.entry.js +14 -30
  28. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  29. package/dist/cjs/six-drawer.cjs.entry.js +13 -30
  30. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-dropdown_2.cjs.entry.js +23 -12
  32. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-error-page.cjs.entry.js +4 -3
  34. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-error.cjs.entry.js +5 -4
  36. package/dist/cjs/six-error.cjs.entry.js.map +1 -1
  37. package/dist/cjs/six-file-list-item.cjs.entry.js +5 -4
  38. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  39. package/dist/cjs/six-file-list.cjs.entry.js +4 -3
  40. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-file-upload.cjs.entry.js +33 -13
  42. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-footer.cjs.entry.js +4 -3
  44. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-group-label.cjs.entry.js +5 -4
  46. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-header.cjs.entry.js +24 -16
  48. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  49. package/dist/cjs/six-icon-button.cjs.entry.js +6 -5
  50. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  51. package/dist/cjs/six-icon.cjs.entry.js +5 -4
  52. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  53. package/dist/cjs/six-input.cjs.entry.js +17 -7
  54. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  55. package/dist/cjs/six-item-picker.cjs.entry.js +6 -5
  56. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-language-switcher.cjs.entry.js +11 -6
  58. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-layout-grid.cjs.entry.js +4 -3
  60. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-main-container.cjs.entry.js +4 -3
  62. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-menu-divider.cjs.entry.js +4 -3
  64. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  65. package/dist/cjs/six-menu-label.cjs.entry.js +4 -3
  66. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  67. package/dist/cjs/six-picto.cjs.entry.js +4 -3
  68. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  69. package/dist/cjs/six-progress-bar.cjs.entry.js +6 -5
  70. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  71. package/dist/cjs/six-progress-ring.cjs.entry.js +4 -3
  72. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-radio.cjs.entry.js +5 -4
  74. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  75. package/dist/cjs/six-range.cjs.entry.js +17 -6
  76. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  77. package/dist/cjs/six-root.cjs.entry.js +4 -3
  78. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-search-field.cjs.entry.js +4 -3
  80. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-select.cjs.entry.js +93 -50
  82. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +4 -3
  84. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-sidebar-item.cjs.entry.js +5 -4
  86. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-sidebar.cjs.entry.js +5 -4
  88. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-spinner.cjs.entry.js +3 -2
  90. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  91. package/dist/cjs/six-stage-indicator.cjs.entry.js +3 -2
  92. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-switch.cjs.entry.js +6 -5
  94. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-tab-group.cjs.entry.js +34 -8
  96. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-tab-panel.cjs.entry.js +4 -3
  98. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-tab.cjs.entry.js +5 -4
  100. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-tag.cjs.entry.js +5 -4
  102. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  103. package/dist/cjs/six-textarea.cjs.entry.js +7 -6
  104. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  105. package/dist/cjs/six-tile.cjs.entry.js +8 -7
  106. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  107. package/dist/cjs/six-timepicker.cjs.entry.js +5 -4
  108. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  109. package/dist/cjs/six-tooltip.cjs.entry.js +5 -4
  110. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  111. package/dist/cjs/ui-library.cjs.js +13 -11
  112. package/dist/cjs/ui-library.cjs.js.map +1 -1
  113. package/dist/collection/assets/TRADEMARKS.md +3 -3
  114. package/dist/collection/collection-manifest.json +3 -3
  115. package/dist/collection/components/six-alert/six-alert.js +15 -6
  116. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  117. package/dist/collection/components/six-avatar/six-avatar.js +2 -2
  118. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  119. package/dist/collection/components/six-badge/six-badge.js +2 -2
  120. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  121. package/dist/collection/components/six-button/six-button.css +17 -0
  122. package/dist/collection/components/six-button/six-button.js +5 -4
  123. package/dist/collection/components/six-button/six-button.js.map +1 -1
  124. package/dist/collection/components/six-card/six-card.js +1 -1
  125. package/dist/collection/components/six-card/six-card.js.map +1 -1
  126. package/dist/collection/components/six-checkbox/six-checkbox.css +2 -0
  127. package/dist/collection/components/six-checkbox/six-checkbox.js +2 -2
  128. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  129. package/dist/collection/components/six-datepicker/six-datepicker.js +15 -13
  130. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  131. package/dist/collection/components/six-details/six-details.js +3 -3
  132. package/dist/collection/components/six-details/six-details.js.map +1 -1
  133. package/dist/collection/components/six-dialog/six-dialog.js +10 -28
  134. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  135. package/dist/collection/components/six-drawer/six-drawer.js +9 -28
  136. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  137. package/dist/collection/components/six-dropdown/six-dropdown.js +5 -5
  138. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  139. package/dist/collection/components/six-error/six-error.css +1 -0
  140. package/dist/collection/components/six-error/six-error.js +1 -1
  141. package/dist/collection/components/six-error/six-error.js.map +1 -1
  142. package/dist/collection/components/six-error-page/six-error-page.js +1 -1
  143. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  144. package/dist/collection/components/six-file-list/six-file-list.js +1 -1
  145. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  146. package/dist/collection/components/six-file-list-item/six-file-list-item.js +2 -2
  147. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  148. package/dist/collection/components/six-file-upload/six-file-upload.css +11 -0
  149. package/dist/collection/components/six-file-upload/six-file-upload.js +86 -11
  150. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  151. package/dist/collection/components/six-footer/six-footer.js +1 -1
  152. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  153. package/dist/collection/components/six-group-label/six-group-label.js +1 -1
  154. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  155. package/dist/collection/components/six-header/six-header.css +9 -0
  156. package/dist/collection/components/six-header/six-header.js +38 -13
  157. package/dist/collection/components/six-header/six-header.js.map +1 -1
  158. package/dist/collection/components/six-icon/six-icon.js +2 -2
  159. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  160. package/dist/collection/components/six-icon-button/six-icon-button.js +3 -3
  161. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  162. package/dist/collection/components/six-input/six-input.css +1 -0
  163. package/dist/collection/components/six-input/six-input.js +41 -5
  164. package/dist/collection/components/six-input/six-input.js.map +1 -1
  165. package/dist/collection/components/six-item-picker/six-item-picker.js +3 -3
  166. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  167. package/dist/collection/components/six-language-switcher/six-language-switcher.css +7 -2
  168. package/dist/collection/components/six-language-switcher/six-language-switcher.js +7 -3
  169. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  170. package/dist/collection/components/six-layout-grid/six-layout-grid.js +1 -1
  171. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  172. package/dist/collection/components/six-main-container/six-main-container.js +1 -1
  173. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  174. package/dist/collection/components/six-menu/six-menu.js +13 -4
  175. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  176. package/dist/collection/components/six-menu-divider/six-menu-divider.js +1 -1
  177. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  178. package/dist/collection/components/six-menu-item/six-menu-item.js +2 -2
  179. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  180. package/dist/collection/components/six-menu-label/six-menu-label.js +1 -1
  181. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  182. package/dist/collection/components/six-picto/six-picto.js +1 -1
  183. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  184. package/dist/collection/components/six-progress-bar/six-progress-bar.js +3 -3
  185. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  186. package/dist/collection/components/six-progress-ring/six-progress-ring.js +1 -1
  187. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  188. package/dist/collection/components/six-radio/six-radio.js +2 -2
  189. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  190. package/dist/collection/components/six-range/six-range.css +1 -1
  191. package/dist/collection/components/six-range/six-range.js +12 -2
  192. package/dist/collection/components/six-range/six-range.js.map +1 -1
  193. package/dist/collection/components/six-root/six-root.js +1 -1
  194. package/dist/collection/components/six-root/six-root.js.map +1 -1
  195. package/dist/collection/components/six-search-field/six-search-field.js +1 -1
  196. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  197. package/dist/collection/components/six-select/six-select.js +56 -47
  198. package/dist/collection/components/six-select/six-select.js.map +1 -1
  199. package/dist/collection/components/six-select/util.js +24 -0
  200. package/dist/collection/components/six-select/util.js.map +1 -1
  201. package/dist/collection/components/six-sidebar/six-sidebar.js +2 -2
  202. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  203. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +2 -2
  204. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  205. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +1 -0
  206. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  207. package/dist/collection/components/six-switch/six-switch.js +2 -2
  208. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  209. package/dist/collection/components/six-tab/six-tab.js +2 -2
  210. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  211. package/dist/collection/components/six-tab-group/six-tab-group.js +33 -7
  212. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  213. package/dist/collection/components/six-tab-panel/six-tab-panel.js +1 -1
  214. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  215. package/dist/collection/components/six-tag/six-tag.js +2 -2
  216. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  217. package/dist/collection/components/six-textarea/six-textarea.css +5 -0
  218. package/dist/collection/components/six-textarea/six-textarea.js +4 -4
  219. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  220. package/dist/collection/components/six-tile/six-tile.js +5 -5
  221. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  222. package/dist/collection/components/six-timepicker/six-timepicker.js +2 -2
  223. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  224. package/dist/collection/components/six-tooltip/six-tooltip.js +2 -2
  225. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  226. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff +0 -0
  227. package/dist/collection/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  228. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff +0 -0
  229. package/dist/collection/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  230. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff +0 -0
  231. package/dist/collection/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  232. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff +0 -0
  233. package/dist/collection/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  234. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff +0 -0
  235. package/dist/collection/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  236. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff +0 -0
  237. package/dist/collection/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  238. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff +0 -0
  239. package/dist/collection/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  240. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff +0 -0
  241. package/dist/collection/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  242. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff +0 -0
  243. package/dist/collection/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  244. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff +0 -0
  245. package/dist/collection/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  246. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff +0 -0
  247. package/dist/collection/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  248. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff +0 -0
  249. package/dist/collection/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  250. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff +0 -0
  251. package/dist/collection/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  252. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff +0 -0
  253. package/dist/collection/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  254. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff +0 -0
  255. package/dist/collection/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  256. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff +0 -0
  257. package/dist/collection/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  258. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff +0 -0
  259. package/dist/collection/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  260. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff +0 -0
  261. package/dist/collection/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  262. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  263. package/dist/collection/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  264. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  265. package/dist/collection/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  266. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  267. package/dist/collection/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  268. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  269. package/dist/collection/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  270. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  271. package/dist/collection/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  272. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  273. package/dist/collection/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  274. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  275. package/dist/collection/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  276. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  277. package/dist/collection/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  278. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  279. package/dist/collection/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  280. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  281. package/dist/collection/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  282. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  283. package/dist/collection/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  284. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  285. package/dist/collection/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  286. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  287. package/dist/collection/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  288. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  289. package/dist/collection/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  290. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  291. package/dist/collection/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  292. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  293. package/dist/collection/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  294. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  295. package/dist/collection/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  296. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  297. package/dist/collection/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  298. package/dist/collection/files/noto-sans-devanagari-100-italic.woff +0 -0
  299. package/dist/collection/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  300. package/dist/collection/files/noto-sans-devanagari-100-normal.woff +0 -0
  301. package/dist/collection/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  302. package/dist/collection/files/noto-sans-devanagari-200-italic.woff +0 -0
  303. package/dist/collection/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  304. package/dist/collection/files/noto-sans-devanagari-200-normal.woff +0 -0
  305. package/dist/collection/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  306. package/dist/collection/files/noto-sans-devanagari-300-italic.woff +0 -0
  307. package/dist/collection/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  308. package/dist/collection/files/noto-sans-devanagari-300-normal.woff +0 -0
  309. package/dist/collection/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  310. package/dist/collection/files/noto-sans-devanagari-400-italic.woff +0 -0
  311. package/dist/collection/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  312. package/dist/collection/files/noto-sans-devanagari-400-normal.woff +0 -0
  313. package/dist/collection/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  314. package/dist/collection/files/noto-sans-devanagari-500-italic.woff +0 -0
  315. package/dist/collection/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  316. package/dist/collection/files/noto-sans-devanagari-500-normal.woff +0 -0
  317. package/dist/collection/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  318. package/dist/collection/files/noto-sans-devanagari-600-italic.woff +0 -0
  319. package/dist/collection/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  320. package/dist/collection/files/noto-sans-devanagari-600-normal.woff +0 -0
  321. package/dist/collection/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  322. package/dist/collection/files/noto-sans-devanagari-700-italic.woff +0 -0
  323. package/dist/collection/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  324. package/dist/collection/files/noto-sans-devanagari-700-normal.woff +0 -0
  325. package/dist/collection/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  326. package/dist/collection/files/noto-sans-devanagari-800-italic.woff +0 -0
  327. package/dist/collection/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  328. package/dist/collection/files/noto-sans-devanagari-800-normal.woff +0 -0
  329. package/dist/collection/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  330. package/dist/collection/files/noto-sans-devanagari-900-italic.woff +0 -0
  331. package/dist/collection/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  332. package/dist/collection/files/noto-sans-devanagari-900-normal.woff +0 -0
  333. package/dist/collection/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  334. package/dist/collection/files/noto-sans-greek-100-italic.woff +0 -0
  335. package/dist/collection/files/noto-sans-greek-100-italic.woff2 +0 -0
  336. package/dist/collection/files/noto-sans-greek-100-normal.woff +0 -0
  337. package/dist/collection/files/noto-sans-greek-100-normal.woff2 +0 -0
  338. package/dist/collection/files/noto-sans-greek-200-italic.woff +0 -0
  339. package/dist/collection/files/noto-sans-greek-200-italic.woff2 +0 -0
  340. package/dist/collection/files/noto-sans-greek-200-normal.woff +0 -0
  341. package/dist/collection/files/noto-sans-greek-200-normal.woff2 +0 -0
  342. package/dist/collection/files/noto-sans-greek-300-italic.woff +0 -0
  343. package/dist/collection/files/noto-sans-greek-300-italic.woff2 +0 -0
  344. package/dist/collection/files/noto-sans-greek-300-normal.woff +0 -0
  345. package/dist/collection/files/noto-sans-greek-300-normal.woff2 +0 -0
  346. package/dist/collection/files/noto-sans-greek-400-italic.woff +0 -0
  347. package/dist/collection/files/noto-sans-greek-400-italic.woff2 +0 -0
  348. package/dist/collection/files/noto-sans-greek-400-normal.woff +0 -0
  349. package/dist/collection/files/noto-sans-greek-400-normal.woff2 +0 -0
  350. package/dist/collection/files/noto-sans-greek-500-italic.woff +0 -0
  351. package/dist/collection/files/noto-sans-greek-500-italic.woff2 +0 -0
  352. package/dist/collection/files/noto-sans-greek-500-normal.woff +0 -0
  353. package/dist/collection/files/noto-sans-greek-500-normal.woff2 +0 -0
  354. package/dist/collection/files/noto-sans-greek-600-italic.woff +0 -0
  355. package/dist/collection/files/noto-sans-greek-600-italic.woff2 +0 -0
  356. package/dist/collection/files/noto-sans-greek-600-normal.woff +0 -0
  357. package/dist/collection/files/noto-sans-greek-600-normal.woff2 +0 -0
  358. package/dist/collection/files/noto-sans-greek-700-italic.woff +0 -0
  359. package/dist/collection/files/noto-sans-greek-700-italic.woff2 +0 -0
  360. package/dist/collection/files/noto-sans-greek-700-normal.woff +0 -0
  361. package/dist/collection/files/noto-sans-greek-700-normal.woff2 +0 -0
  362. package/dist/collection/files/noto-sans-greek-800-italic.woff +0 -0
  363. package/dist/collection/files/noto-sans-greek-800-italic.woff2 +0 -0
  364. package/dist/collection/files/noto-sans-greek-800-normal.woff +0 -0
  365. package/dist/collection/files/noto-sans-greek-800-normal.woff2 +0 -0
  366. package/dist/collection/files/noto-sans-greek-900-italic.woff +0 -0
  367. package/dist/collection/files/noto-sans-greek-900-italic.woff2 +0 -0
  368. package/dist/collection/files/noto-sans-greek-900-normal.woff +0 -0
  369. package/dist/collection/files/noto-sans-greek-900-normal.woff2 +0 -0
  370. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff +0 -0
  371. package/dist/collection/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  372. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff +0 -0
  373. package/dist/collection/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  374. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff +0 -0
  375. package/dist/collection/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  376. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff +0 -0
  377. package/dist/collection/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  378. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff +0 -0
  379. package/dist/collection/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  380. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff +0 -0
  381. package/dist/collection/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  382. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff +0 -0
  383. package/dist/collection/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  384. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff +0 -0
  385. package/dist/collection/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  386. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff +0 -0
  387. package/dist/collection/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  388. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff +0 -0
  389. package/dist/collection/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  390. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff +0 -0
  391. package/dist/collection/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  392. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff +0 -0
  393. package/dist/collection/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  394. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff +0 -0
  395. package/dist/collection/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  396. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff +0 -0
  397. package/dist/collection/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  398. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff +0 -0
  399. package/dist/collection/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  400. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff +0 -0
  401. package/dist/collection/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  402. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff +0 -0
  403. package/dist/collection/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  404. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff +0 -0
  405. package/dist/collection/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  406. package/dist/collection/files/noto-sans-latin-100-italic.woff +0 -0
  407. package/dist/collection/files/noto-sans-latin-100-italic.woff2 +0 -0
  408. package/dist/collection/files/noto-sans-latin-100-normal.woff +0 -0
  409. package/dist/collection/files/noto-sans-latin-100-normal.woff2 +0 -0
  410. package/dist/collection/files/noto-sans-latin-200-italic.woff +0 -0
  411. package/dist/collection/files/noto-sans-latin-200-italic.woff2 +0 -0
  412. package/dist/collection/files/noto-sans-latin-200-normal.woff +0 -0
  413. package/dist/collection/files/noto-sans-latin-200-normal.woff2 +0 -0
  414. package/dist/collection/files/noto-sans-latin-300-italic.woff +0 -0
  415. package/dist/collection/files/noto-sans-latin-300-italic.woff2 +0 -0
  416. package/dist/collection/files/noto-sans-latin-300-normal.woff +0 -0
  417. package/dist/collection/files/noto-sans-latin-300-normal.woff2 +0 -0
  418. package/dist/collection/files/noto-sans-latin-400-italic.woff +0 -0
  419. package/dist/collection/files/noto-sans-latin-400-italic.woff2 +0 -0
  420. package/dist/collection/files/noto-sans-latin-400-normal.woff +0 -0
  421. package/dist/collection/files/noto-sans-latin-400-normal.woff2 +0 -0
  422. package/dist/collection/files/noto-sans-latin-500-italic.woff +0 -0
  423. package/dist/collection/files/noto-sans-latin-500-italic.woff2 +0 -0
  424. package/dist/collection/files/noto-sans-latin-500-normal.woff +0 -0
  425. package/dist/collection/files/noto-sans-latin-500-normal.woff2 +0 -0
  426. package/dist/collection/files/noto-sans-latin-600-italic.woff +0 -0
  427. package/dist/collection/files/noto-sans-latin-600-italic.woff2 +0 -0
  428. package/dist/collection/files/noto-sans-latin-600-normal.woff +0 -0
  429. package/dist/collection/files/noto-sans-latin-600-normal.woff2 +0 -0
  430. package/dist/collection/files/noto-sans-latin-700-italic.woff +0 -0
  431. package/dist/collection/files/noto-sans-latin-700-italic.woff2 +0 -0
  432. package/dist/collection/files/noto-sans-latin-700-normal.woff +0 -0
  433. package/dist/collection/files/noto-sans-latin-700-normal.woff2 +0 -0
  434. package/dist/collection/files/noto-sans-latin-800-italic.woff +0 -0
  435. package/dist/collection/files/noto-sans-latin-800-italic.woff2 +0 -0
  436. package/dist/collection/files/noto-sans-latin-800-normal.woff +0 -0
  437. package/dist/collection/files/noto-sans-latin-800-normal.woff2 +0 -0
  438. package/dist/collection/files/noto-sans-latin-900-italic.woff +0 -0
  439. package/dist/collection/files/noto-sans-latin-900-italic.woff2 +0 -0
  440. package/dist/collection/files/noto-sans-latin-900-normal.woff +0 -0
  441. package/dist/collection/files/noto-sans-latin-900-normal.woff2 +0 -0
  442. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff +0 -0
  443. package/dist/collection/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  444. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff +0 -0
  445. package/dist/collection/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  446. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff +0 -0
  447. package/dist/collection/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  448. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff +0 -0
  449. package/dist/collection/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  450. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff +0 -0
  451. package/dist/collection/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  452. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff +0 -0
  453. package/dist/collection/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  454. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff +0 -0
  455. package/dist/collection/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  456. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff +0 -0
  457. package/dist/collection/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  458. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff +0 -0
  459. package/dist/collection/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  460. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff +0 -0
  461. package/dist/collection/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  462. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff +0 -0
  463. package/dist/collection/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  464. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff +0 -0
  465. package/dist/collection/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  466. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff +0 -0
  467. package/dist/collection/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  468. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff +0 -0
  469. package/dist/collection/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  470. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff +0 -0
  471. package/dist/collection/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  472. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff +0 -0
  473. package/dist/collection/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  474. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff +0 -0
  475. package/dist/collection/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  476. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff +0 -0
  477. package/dist/collection/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  478. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff +0 -0
  479. package/dist/collection/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  480. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff +0 -0
  481. package/dist/collection/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  482. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff +0 -0
  483. package/dist/collection/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  484. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff +0 -0
  485. package/dist/collection/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  486. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff +0 -0
  487. package/dist/collection/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  488. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff +0 -0
  489. package/dist/collection/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  490. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff +0 -0
  491. package/dist/collection/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  492. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff +0 -0
  493. package/dist/collection/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  494. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff +0 -0
  495. package/dist/collection/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  496. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff +0 -0
  497. package/dist/collection/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  498. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff +0 -0
  499. package/dist/collection/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  500. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff +0 -0
  501. package/dist/collection/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  502. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff +0 -0
  503. package/dist/collection/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  504. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff +0 -0
  505. package/dist/collection/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  506. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff +0 -0
  507. package/dist/collection/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  508. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff +0 -0
  509. package/dist/collection/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  510. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff +0 -0
  511. package/dist/collection/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  512. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff +0 -0
  513. package/dist/collection/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  514. package/dist/collection/utils/alert.js.map +1 -1
  515. package/dist/collection/utils/date-util.js +25 -0
  516. package/dist/collection/utils/date-util.js.map +1 -1
  517. package/dist/collection/utils/error-messages.js.map +1 -1
  518. package/dist/collection/utils/event-listeners.js.map +1 -1
  519. package/dist/collection/utils/focus-visible.js.map +1 -1
  520. package/dist/collection/utils/form.js.map +1 -1
  521. package/dist/collection/utils/modal.js.map +1 -1
  522. package/dist/collection/utils/popover.js.map +1 -1
  523. package/dist/collection/utils/popup.js.map +1 -1
  524. package/dist/collection/utils/scroll.js.map +1 -1
  525. package/dist/collection/utils/slot.js.map +1 -1
  526. package/dist/collection/utils/tabbable.js.map +1 -1
  527. package/dist/collection/utils/time.util.js.map +1 -1
  528. package/dist/components/modal.js +1 -17
  529. package/dist/components/modal.js.map +1 -1
  530. package/dist/components/six-alert.js +16 -6
  531. package/dist/components/six-alert.js.map +1 -1
  532. package/dist/components/six-avatar.js +4 -3
  533. package/dist/components/six-avatar.js.map +1 -1
  534. package/dist/components/six-badge.js +4 -3
  535. package/dist/components/six-badge.js.map +1 -1
  536. package/dist/components/six-button2.js +6 -4
  537. package/dist/components/six-button2.js.map +1 -1
  538. package/dist/components/six-card.js +3 -2
  539. package/dist/components/six-card.js.map +1 -1
  540. package/dist/components/six-checkbox2.js +5 -4
  541. package/dist/components/six-checkbox2.js.map +1 -1
  542. package/dist/components/six-datepicker.js +40 -12
  543. package/dist/components/six-datepicker.js.map +1 -1
  544. package/dist/components/six-details2.js +5 -4
  545. package/dist/components/six-details2.js.map +1 -1
  546. package/dist/components/six-dialog.js +13 -29
  547. package/dist/components/six-dialog.js.map +1 -1
  548. package/dist/components/six-drawer.js +12 -29
  549. package/dist/components/six-drawer.js.map +1 -1
  550. package/dist/components/six-dropdown2.js +7 -6
  551. package/dist/components/six-dropdown2.js.map +1 -1
  552. package/dist/components/six-error-page.js +3 -2
  553. package/dist/components/six-error-page.js.map +1 -1
  554. package/dist/components/six-error2.js +4 -3
  555. package/dist/components/six-error2.js.map +1 -1
  556. package/dist/components/six-file-list-item.js +4 -3
  557. package/dist/components/six-file-list-item.js.map +1 -1
  558. package/dist/components/six-file-list.js +3 -2
  559. package/dist/components/six-file-list.js.map +1 -1
  560. package/dist/components/six-file-upload.js +52 -16
  561. package/dist/components/six-file-upload.js.map +1 -1
  562. package/dist/components/six-footer.js +3 -2
  563. package/dist/components/six-footer.js.map +1 -1
  564. package/dist/components/six-group-label.js +3 -2
  565. package/dist/components/six-group-label.js.map +1 -1
  566. package/dist/components/six-header.js +24 -15
  567. package/dist/components/six-header.js.map +1 -1
  568. package/dist/components/six-icon-button2.js +5 -4
  569. package/dist/components/six-icon-button2.js.map +1 -1
  570. package/dist/components/six-icon2.js +4 -3
  571. package/dist/components/six-icon2.js.map +1 -1
  572. package/dist/components/six-input2.js +16 -5
  573. package/dist/components/six-input2.js.map +1 -1
  574. package/dist/components/six-item-picker2.js +5 -4
  575. package/dist/components/six-item-picker2.js.map +1 -1
  576. package/dist/components/six-language-switcher.js +10 -5
  577. package/dist/components/six-language-switcher.js.map +1 -1
  578. package/dist/components/six-layout-grid.js +3 -2
  579. package/dist/components/six-layout-grid.js.map +1 -1
  580. package/dist/components/six-main-container.js +3 -2
  581. package/dist/components/six-main-container.js.map +1 -1
  582. package/dist/components/six-menu-divider.js +3 -2
  583. package/dist/components/six-menu-divider.js.map +1 -1
  584. package/dist/components/six-menu-item2.js +4 -3
  585. package/dist/components/six-menu-item2.js.map +1 -1
  586. package/dist/components/six-menu-label.js +3 -2
  587. package/dist/components/six-menu-label.js.map +1 -1
  588. package/dist/components/six-menu2.js +15 -5
  589. package/dist/components/six-menu2.js.map +1 -1
  590. package/dist/components/six-picto2.js +3 -2
  591. package/dist/components/six-picto2.js.map +1 -1
  592. package/dist/components/six-progress-bar.js +5 -4
  593. package/dist/components/six-progress-bar.js.map +1 -1
  594. package/dist/components/six-progress-ring.js +3 -2
  595. package/dist/components/six-progress-ring.js.map +1 -1
  596. package/dist/components/six-radio.js +4 -3
  597. package/dist/components/six-radio.js.map +1 -1
  598. package/dist/components/six-range.js +15 -4
  599. package/dist/components/six-range.js.map +1 -1
  600. package/dist/components/six-root.js +3 -2
  601. package/dist/components/six-root.js.map +1 -1
  602. package/dist/components/six-search-field.js +3 -2
  603. package/dist/components/six-search-field.js.map +1 -1
  604. package/dist/components/six-select.js +91 -48
  605. package/dist/components/six-select.js.map +1 -1
  606. package/dist/components/six-sidebar-item-group.js +3 -2
  607. package/dist/components/six-sidebar-item-group.js.map +1 -1
  608. package/dist/components/six-sidebar-item.js +4 -3
  609. package/dist/components/six-sidebar-item.js.map +1 -1
  610. package/dist/components/six-sidebar.js +4 -3
  611. package/dist/components/six-sidebar.js.map +1 -1
  612. package/dist/components/six-spinner2.js +2 -1
  613. package/dist/components/six-spinner2.js.map +1 -1
  614. package/dist/components/six-stage-indicator2.js +2 -1
  615. package/dist/components/six-stage-indicator2.js.map +1 -1
  616. package/dist/components/six-switch.js +4 -3
  617. package/dist/components/six-switch.js.map +1 -1
  618. package/dist/components/six-tab-group.js +35 -8
  619. package/dist/components/six-tab-group.js.map +1 -1
  620. package/dist/components/six-tab-panel.js +3 -2
  621. package/dist/components/six-tab-panel.js.map +1 -1
  622. package/dist/components/six-tab.js +4 -3
  623. package/dist/components/six-tab.js.map +1 -1
  624. package/dist/components/six-tag.js +4 -3
  625. package/dist/components/six-tag.js.map +1 -1
  626. package/dist/components/six-textarea.js +5 -4
  627. package/dist/components/six-textarea.js.map +1 -1
  628. package/dist/components/six-tile.js +7 -6
  629. package/dist/components/six-tile.js.map +1 -1
  630. package/dist/components/six-timepicker2.js +4 -3
  631. package/dist/components/six-timepicker2.js.map +1 -1
  632. package/dist/components/six-tooltip2.js +4 -3
  633. package/dist/components/six-tooltip2.js.map +1 -1
  634. package/dist/components.d.ts +34 -0
  635. package/dist/components.json +204 -26
  636. package/dist/esm/app-globals-0f993ce5.js +5 -0
  637. package/dist/esm/app-globals-0f993ce5.js.map +1 -0
  638. package/dist/esm/{form-control-d403a9cf.js → form-control-ad1710bf.js} +2 -2
  639. package/dist/esm/{form-control-d403a9cf.js.map → form-control-ad1710bf.js.map} +1 -1
  640. package/dist/esm/index-a7bee415.js +1907 -0
  641. package/dist/esm/index-a7bee415.js.map +1 -0
  642. package/dist/esm/loader.js +6 -4
  643. package/dist/esm/loader.js.map +1 -1
  644. package/dist/esm/{modal-96526245.js → modal-6c1288e3.js} +2 -18
  645. package/dist/esm/modal-6c1288e3.js.map +1 -0
  646. package/dist/esm/six-alert.entry.js +17 -7
  647. package/dist/esm/six-alert.entry.js.map +1 -1
  648. package/dist/esm/six-avatar.entry.js +5 -4
  649. package/dist/esm/six-avatar.entry.js.map +1 -1
  650. package/dist/esm/six-badge.entry.js +5 -4
  651. package/dist/esm/six-badge.entry.js.map +1 -1
  652. package/dist/esm/six-button.entry.js +7 -5
  653. package/dist/esm/six-button.entry.js.map +1 -1
  654. package/dist/esm/six-card.entry.js +4 -3
  655. package/dist/esm/six-card.entry.js.map +1 -1
  656. package/dist/esm/six-checkbox_2.entry.js +11 -9
  657. package/dist/esm/six-checkbox_2.entry.js.map +1 -1
  658. package/dist/esm/six-datepicker.entry.js +41 -13
  659. package/dist/esm/six-datepicker.entry.js.map +1 -1
  660. package/dist/esm/six-details.entry.js +6 -5
  661. package/dist/esm/six-details.entry.js.map +1 -1
  662. package/dist/esm/six-dialog.entry.js +14 -30
  663. package/dist/esm/six-dialog.entry.js.map +1 -1
  664. package/dist/esm/six-drawer.entry.js +13 -30
  665. package/dist/esm/six-drawer.entry.js.map +1 -1
  666. package/dist/esm/six-dropdown_2.entry.js +23 -12
  667. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  668. package/dist/esm/six-error-page.entry.js +4 -3
  669. package/dist/esm/six-error-page.entry.js.map +1 -1
  670. package/dist/esm/six-error.entry.js +5 -4
  671. package/dist/esm/six-error.entry.js.map +1 -1
  672. package/dist/esm/six-file-list-item.entry.js +5 -4
  673. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  674. package/dist/esm/six-file-list.entry.js +4 -3
  675. package/dist/esm/six-file-list.entry.js.map +1 -1
  676. package/dist/esm/six-file-upload.entry.js +33 -13
  677. package/dist/esm/six-file-upload.entry.js.map +1 -1
  678. package/dist/esm/six-footer.entry.js +4 -3
  679. package/dist/esm/six-footer.entry.js.map +1 -1
  680. package/dist/esm/six-group-label.entry.js +5 -4
  681. package/dist/esm/six-group-label.entry.js.map +1 -1
  682. package/dist/esm/six-header.entry.js +24 -16
  683. package/dist/esm/six-header.entry.js.map +1 -1
  684. package/dist/esm/six-icon-button.entry.js +6 -5
  685. package/dist/esm/six-icon-button.entry.js.map +1 -1
  686. package/dist/esm/six-icon.entry.js +5 -4
  687. package/dist/esm/six-icon.entry.js.map +1 -1
  688. package/dist/esm/six-input.entry.js +17 -7
  689. package/dist/esm/six-input.entry.js.map +1 -1
  690. package/dist/esm/six-item-picker.entry.js +6 -5
  691. package/dist/esm/six-item-picker.entry.js.map +1 -1
  692. package/dist/esm/six-language-switcher.entry.js +11 -6
  693. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  694. package/dist/esm/six-layout-grid.entry.js +4 -3
  695. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  696. package/dist/esm/six-main-container.entry.js +4 -3
  697. package/dist/esm/six-main-container.entry.js.map +1 -1
  698. package/dist/esm/six-menu-divider.entry.js +4 -3
  699. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  700. package/dist/esm/six-menu-label.entry.js +4 -3
  701. package/dist/esm/six-menu-label.entry.js.map +1 -1
  702. package/dist/esm/six-picto.entry.js +4 -3
  703. package/dist/esm/six-picto.entry.js.map +1 -1
  704. package/dist/esm/six-progress-bar.entry.js +6 -5
  705. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  706. package/dist/esm/six-progress-ring.entry.js +4 -3
  707. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  708. package/dist/esm/six-radio.entry.js +5 -4
  709. package/dist/esm/six-radio.entry.js.map +1 -1
  710. package/dist/esm/six-range.entry.js +17 -6
  711. package/dist/esm/six-range.entry.js.map +1 -1
  712. package/dist/esm/six-root.entry.js +4 -3
  713. package/dist/esm/six-root.entry.js.map +1 -1
  714. package/dist/esm/six-search-field.entry.js +4 -3
  715. package/dist/esm/six-search-field.entry.js.map +1 -1
  716. package/dist/esm/six-select.entry.js +93 -50
  717. package/dist/esm/six-select.entry.js.map +1 -1
  718. package/dist/esm/six-sidebar-item-group.entry.js +4 -3
  719. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  720. package/dist/esm/six-sidebar-item.entry.js +5 -4
  721. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  722. package/dist/esm/six-sidebar.entry.js +5 -4
  723. package/dist/esm/six-sidebar.entry.js.map +1 -1
  724. package/dist/esm/six-spinner.entry.js +3 -2
  725. package/dist/esm/six-spinner.entry.js.map +1 -1
  726. package/dist/esm/six-stage-indicator.entry.js +3 -2
  727. package/dist/esm/six-stage-indicator.entry.js.map +1 -1
  728. package/dist/esm/six-switch.entry.js +6 -5
  729. package/dist/esm/six-switch.entry.js.map +1 -1
  730. package/dist/esm/six-tab-group.entry.js +34 -8
  731. package/dist/esm/six-tab-group.entry.js.map +1 -1
  732. package/dist/esm/six-tab-panel.entry.js +4 -3
  733. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  734. package/dist/esm/six-tab.entry.js +5 -4
  735. package/dist/esm/six-tab.entry.js.map +1 -1
  736. package/dist/esm/six-tag.entry.js +5 -4
  737. package/dist/esm/six-tag.entry.js.map +1 -1
  738. package/dist/esm/six-textarea.entry.js +7 -6
  739. package/dist/esm/six-textarea.entry.js.map +1 -1
  740. package/dist/esm/six-tile.entry.js +8 -7
  741. package/dist/esm/six-tile.entry.js.map +1 -1
  742. package/dist/esm/six-timepicker.entry.js +5 -4
  743. package/dist/esm/six-timepicker.entry.js.map +1 -1
  744. package/dist/esm/six-tooltip.entry.js +5 -4
  745. package/dist/esm/six-tooltip.entry.js.map +1 -1
  746. package/dist/esm/ui-library.js +14 -12
  747. package/dist/esm/ui-library.js.map +1 -1
  748. package/dist/types/components/six-alert/six-alert.d.ts +8 -4
  749. package/dist/types/components/six-button/six-button.d.ts +1 -1
  750. package/dist/types/components/six-datepicker/six-datepicker.d.ts +1 -1
  751. package/dist/types/components/six-dialog/six-dialog.d.ts +1 -0
  752. package/dist/types/components/six-file-upload/six-file-upload.d.ts +11 -1
  753. package/dist/types/components/six-header/six-header.d.ts +3 -1
  754. package/dist/types/components/six-input/six-input.d.ts +9 -1
  755. package/dist/types/components/six-menu/six-menu.d.ts +1 -1
  756. package/dist/types/components/six-range/six-range.d.ts +2 -0
  757. package/dist/types/components/six-select/six-select.d.ts +0 -2
  758. package/dist/types/components/six-select/util.d.ts +2 -0
  759. package/dist/types/components/six-tab-group/six-tab-group.d.ts +4 -1
  760. package/dist/types/components.d.ts +62 -10
  761. package/dist/types/stencil-public-runtime.d.ts +3 -10
  762. package/dist/types/utils/date-util.d.ts +9 -1
  763. package/dist/types/utils/type-check.d.ts +1 -1
  764. package/dist/ui-library/assets/TRADEMARKS.md +3 -3
  765. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff +0 -0
  766. package/dist/ui-library/files/noto-sans-cyrillic-100-italic.woff2 +0 -0
  767. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff +0 -0
  768. package/dist/ui-library/files/noto-sans-cyrillic-100-normal.woff2 +0 -0
  769. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff +0 -0
  770. package/dist/ui-library/files/noto-sans-cyrillic-200-italic.woff2 +0 -0
  771. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff +0 -0
  772. package/dist/ui-library/files/noto-sans-cyrillic-200-normal.woff2 +0 -0
  773. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff +0 -0
  774. package/dist/ui-library/files/noto-sans-cyrillic-300-italic.woff2 +0 -0
  775. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff +0 -0
  776. package/dist/ui-library/files/noto-sans-cyrillic-300-normal.woff2 +0 -0
  777. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff +0 -0
  778. package/dist/ui-library/files/noto-sans-cyrillic-400-italic.woff2 +0 -0
  779. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff +0 -0
  780. package/dist/ui-library/files/noto-sans-cyrillic-400-normal.woff2 +0 -0
  781. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff +0 -0
  782. package/dist/ui-library/files/noto-sans-cyrillic-500-italic.woff2 +0 -0
  783. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff +0 -0
  784. package/dist/ui-library/files/noto-sans-cyrillic-500-normal.woff2 +0 -0
  785. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff +0 -0
  786. package/dist/ui-library/files/noto-sans-cyrillic-600-italic.woff2 +0 -0
  787. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff +0 -0
  788. package/dist/ui-library/files/noto-sans-cyrillic-600-normal.woff2 +0 -0
  789. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff +0 -0
  790. package/dist/ui-library/files/noto-sans-cyrillic-700-italic.woff2 +0 -0
  791. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff +0 -0
  792. package/dist/ui-library/files/noto-sans-cyrillic-700-normal.woff2 +0 -0
  793. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff +0 -0
  794. package/dist/ui-library/files/noto-sans-cyrillic-800-italic.woff2 +0 -0
  795. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff +0 -0
  796. package/dist/ui-library/files/noto-sans-cyrillic-800-normal.woff2 +0 -0
  797. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff +0 -0
  798. package/dist/ui-library/files/noto-sans-cyrillic-900-italic.woff2 +0 -0
  799. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff +0 -0
  800. package/dist/ui-library/files/noto-sans-cyrillic-900-normal.woff2 +0 -0
  801. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff +0 -0
  802. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-italic.woff2 +0 -0
  803. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff +0 -0
  804. package/dist/ui-library/files/noto-sans-cyrillic-ext-100-normal.woff2 +0 -0
  805. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff +0 -0
  806. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-italic.woff2 +0 -0
  807. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff +0 -0
  808. package/dist/ui-library/files/noto-sans-cyrillic-ext-200-normal.woff2 +0 -0
  809. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff +0 -0
  810. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-italic.woff2 +0 -0
  811. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff +0 -0
  812. package/dist/ui-library/files/noto-sans-cyrillic-ext-300-normal.woff2 +0 -0
  813. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff +0 -0
  814. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-italic.woff2 +0 -0
  815. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff +0 -0
  816. package/dist/ui-library/files/noto-sans-cyrillic-ext-400-normal.woff2 +0 -0
  817. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff +0 -0
  818. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-italic.woff2 +0 -0
  819. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff +0 -0
  820. package/dist/ui-library/files/noto-sans-cyrillic-ext-500-normal.woff2 +0 -0
  821. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff +0 -0
  822. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-italic.woff2 +0 -0
  823. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff +0 -0
  824. package/dist/ui-library/files/noto-sans-cyrillic-ext-600-normal.woff2 +0 -0
  825. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff +0 -0
  826. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-italic.woff2 +0 -0
  827. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff +0 -0
  828. package/dist/ui-library/files/noto-sans-cyrillic-ext-700-normal.woff2 +0 -0
  829. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff +0 -0
  830. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-italic.woff2 +0 -0
  831. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff +0 -0
  832. package/dist/ui-library/files/noto-sans-cyrillic-ext-800-normal.woff2 +0 -0
  833. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff +0 -0
  834. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-italic.woff2 +0 -0
  835. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff +0 -0
  836. package/dist/ui-library/files/noto-sans-cyrillic-ext-900-normal.woff2 +0 -0
  837. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff +0 -0
  838. package/dist/ui-library/files/noto-sans-devanagari-100-italic.woff2 +0 -0
  839. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff +0 -0
  840. package/dist/ui-library/files/noto-sans-devanagari-100-normal.woff2 +0 -0
  841. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff +0 -0
  842. package/dist/ui-library/files/noto-sans-devanagari-200-italic.woff2 +0 -0
  843. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff +0 -0
  844. package/dist/ui-library/files/noto-sans-devanagari-200-normal.woff2 +0 -0
  845. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff +0 -0
  846. package/dist/ui-library/files/noto-sans-devanagari-300-italic.woff2 +0 -0
  847. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff +0 -0
  848. package/dist/ui-library/files/noto-sans-devanagari-300-normal.woff2 +0 -0
  849. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff +0 -0
  850. package/dist/ui-library/files/noto-sans-devanagari-400-italic.woff2 +0 -0
  851. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff +0 -0
  852. package/dist/ui-library/files/noto-sans-devanagari-400-normal.woff2 +0 -0
  853. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff +0 -0
  854. package/dist/ui-library/files/noto-sans-devanagari-500-italic.woff2 +0 -0
  855. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff +0 -0
  856. package/dist/ui-library/files/noto-sans-devanagari-500-normal.woff2 +0 -0
  857. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff +0 -0
  858. package/dist/ui-library/files/noto-sans-devanagari-600-italic.woff2 +0 -0
  859. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff +0 -0
  860. package/dist/ui-library/files/noto-sans-devanagari-600-normal.woff2 +0 -0
  861. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff +0 -0
  862. package/dist/ui-library/files/noto-sans-devanagari-700-italic.woff2 +0 -0
  863. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff +0 -0
  864. package/dist/ui-library/files/noto-sans-devanagari-700-normal.woff2 +0 -0
  865. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff +0 -0
  866. package/dist/ui-library/files/noto-sans-devanagari-800-italic.woff2 +0 -0
  867. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff +0 -0
  868. package/dist/ui-library/files/noto-sans-devanagari-800-normal.woff2 +0 -0
  869. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff +0 -0
  870. package/dist/ui-library/files/noto-sans-devanagari-900-italic.woff2 +0 -0
  871. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff +0 -0
  872. package/dist/ui-library/files/noto-sans-devanagari-900-normal.woff2 +0 -0
  873. package/dist/ui-library/files/noto-sans-greek-100-italic.woff +0 -0
  874. package/dist/ui-library/files/noto-sans-greek-100-italic.woff2 +0 -0
  875. package/dist/ui-library/files/noto-sans-greek-100-normal.woff +0 -0
  876. package/dist/ui-library/files/noto-sans-greek-100-normal.woff2 +0 -0
  877. package/dist/ui-library/files/noto-sans-greek-200-italic.woff +0 -0
  878. package/dist/ui-library/files/noto-sans-greek-200-italic.woff2 +0 -0
  879. package/dist/ui-library/files/noto-sans-greek-200-normal.woff +0 -0
  880. package/dist/ui-library/files/noto-sans-greek-200-normal.woff2 +0 -0
  881. package/dist/ui-library/files/noto-sans-greek-300-italic.woff +0 -0
  882. package/dist/ui-library/files/noto-sans-greek-300-italic.woff2 +0 -0
  883. package/dist/ui-library/files/noto-sans-greek-300-normal.woff +0 -0
  884. package/dist/ui-library/files/noto-sans-greek-300-normal.woff2 +0 -0
  885. package/dist/ui-library/files/noto-sans-greek-400-italic.woff +0 -0
  886. package/dist/ui-library/files/noto-sans-greek-400-italic.woff2 +0 -0
  887. package/dist/ui-library/files/noto-sans-greek-400-normal.woff +0 -0
  888. package/dist/ui-library/files/noto-sans-greek-400-normal.woff2 +0 -0
  889. package/dist/ui-library/files/noto-sans-greek-500-italic.woff +0 -0
  890. package/dist/ui-library/files/noto-sans-greek-500-italic.woff2 +0 -0
  891. package/dist/ui-library/files/noto-sans-greek-500-normal.woff +0 -0
  892. package/dist/ui-library/files/noto-sans-greek-500-normal.woff2 +0 -0
  893. package/dist/ui-library/files/noto-sans-greek-600-italic.woff +0 -0
  894. package/dist/ui-library/files/noto-sans-greek-600-italic.woff2 +0 -0
  895. package/dist/ui-library/files/noto-sans-greek-600-normal.woff +0 -0
  896. package/dist/ui-library/files/noto-sans-greek-600-normal.woff2 +0 -0
  897. package/dist/ui-library/files/noto-sans-greek-700-italic.woff +0 -0
  898. package/dist/ui-library/files/noto-sans-greek-700-italic.woff2 +0 -0
  899. package/dist/ui-library/files/noto-sans-greek-700-normal.woff +0 -0
  900. package/dist/ui-library/files/noto-sans-greek-700-normal.woff2 +0 -0
  901. package/dist/ui-library/files/noto-sans-greek-800-italic.woff +0 -0
  902. package/dist/ui-library/files/noto-sans-greek-800-italic.woff2 +0 -0
  903. package/dist/ui-library/files/noto-sans-greek-800-normal.woff +0 -0
  904. package/dist/ui-library/files/noto-sans-greek-800-normal.woff2 +0 -0
  905. package/dist/ui-library/files/noto-sans-greek-900-italic.woff +0 -0
  906. package/dist/ui-library/files/noto-sans-greek-900-italic.woff2 +0 -0
  907. package/dist/ui-library/files/noto-sans-greek-900-normal.woff +0 -0
  908. package/dist/ui-library/files/noto-sans-greek-900-normal.woff2 +0 -0
  909. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff +0 -0
  910. package/dist/ui-library/files/noto-sans-greek-ext-100-italic.woff2 +0 -0
  911. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff +0 -0
  912. package/dist/ui-library/files/noto-sans-greek-ext-100-normal.woff2 +0 -0
  913. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff +0 -0
  914. package/dist/ui-library/files/noto-sans-greek-ext-200-italic.woff2 +0 -0
  915. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff +0 -0
  916. package/dist/ui-library/files/noto-sans-greek-ext-200-normal.woff2 +0 -0
  917. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff +0 -0
  918. package/dist/ui-library/files/noto-sans-greek-ext-300-italic.woff2 +0 -0
  919. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff +0 -0
  920. package/dist/ui-library/files/noto-sans-greek-ext-300-normal.woff2 +0 -0
  921. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff +0 -0
  922. package/dist/ui-library/files/noto-sans-greek-ext-400-italic.woff2 +0 -0
  923. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff +0 -0
  924. package/dist/ui-library/files/noto-sans-greek-ext-400-normal.woff2 +0 -0
  925. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff +0 -0
  926. package/dist/ui-library/files/noto-sans-greek-ext-500-italic.woff2 +0 -0
  927. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff +0 -0
  928. package/dist/ui-library/files/noto-sans-greek-ext-500-normal.woff2 +0 -0
  929. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff +0 -0
  930. package/dist/ui-library/files/noto-sans-greek-ext-600-italic.woff2 +0 -0
  931. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff +0 -0
  932. package/dist/ui-library/files/noto-sans-greek-ext-600-normal.woff2 +0 -0
  933. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff +0 -0
  934. package/dist/ui-library/files/noto-sans-greek-ext-700-italic.woff2 +0 -0
  935. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff +0 -0
  936. package/dist/ui-library/files/noto-sans-greek-ext-700-normal.woff2 +0 -0
  937. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff +0 -0
  938. package/dist/ui-library/files/noto-sans-greek-ext-800-italic.woff2 +0 -0
  939. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff +0 -0
  940. package/dist/ui-library/files/noto-sans-greek-ext-800-normal.woff2 +0 -0
  941. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff +0 -0
  942. package/dist/ui-library/files/noto-sans-greek-ext-900-italic.woff2 +0 -0
  943. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff +0 -0
  944. package/dist/ui-library/files/noto-sans-greek-ext-900-normal.woff2 +0 -0
  945. package/dist/ui-library/files/noto-sans-latin-100-italic.woff +0 -0
  946. package/dist/ui-library/files/noto-sans-latin-100-italic.woff2 +0 -0
  947. package/dist/ui-library/files/noto-sans-latin-100-normal.woff +0 -0
  948. package/dist/ui-library/files/noto-sans-latin-100-normal.woff2 +0 -0
  949. package/dist/ui-library/files/noto-sans-latin-200-italic.woff +0 -0
  950. package/dist/ui-library/files/noto-sans-latin-200-italic.woff2 +0 -0
  951. package/dist/ui-library/files/noto-sans-latin-200-normal.woff +0 -0
  952. package/dist/ui-library/files/noto-sans-latin-200-normal.woff2 +0 -0
  953. package/dist/ui-library/files/noto-sans-latin-300-italic.woff +0 -0
  954. package/dist/ui-library/files/noto-sans-latin-300-italic.woff2 +0 -0
  955. package/dist/ui-library/files/noto-sans-latin-300-normal.woff +0 -0
  956. package/dist/ui-library/files/noto-sans-latin-300-normal.woff2 +0 -0
  957. package/dist/ui-library/files/noto-sans-latin-400-italic.woff +0 -0
  958. package/dist/ui-library/files/noto-sans-latin-400-italic.woff2 +0 -0
  959. package/dist/ui-library/files/noto-sans-latin-400-normal.woff +0 -0
  960. package/dist/ui-library/files/noto-sans-latin-400-normal.woff2 +0 -0
  961. package/dist/ui-library/files/noto-sans-latin-500-italic.woff +0 -0
  962. package/dist/ui-library/files/noto-sans-latin-500-italic.woff2 +0 -0
  963. package/dist/ui-library/files/noto-sans-latin-500-normal.woff +0 -0
  964. package/dist/ui-library/files/noto-sans-latin-500-normal.woff2 +0 -0
  965. package/dist/ui-library/files/noto-sans-latin-600-italic.woff +0 -0
  966. package/dist/ui-library/files/noto-sans-latin-600-italic.woff2 +0 -0
  967. package/dist/ui-library/files/noto-sans-latin-600-normal.woff +0 -0
  968. package/dist/ui-library/files/noto-sans-latin-600-normal.woff2 +0 -0
  969. package/dist/ui-library/files/noto-sans-latin-700-italic.woff +0 -0
  970. package/dist/ui-library/files/noto-sans-latin-700-italic.woff2 +0 -0
  971. package/dist/ui-library/files/noto-sans-latin-700-normal.woff +0 -0
  972. package/dist/ui-library/files/noto-sans-latin-700-normal.woff2 +0 -0
  973. package/dist/ui-library/files/noto-sans-latin-800-italic.woff +0 -0
  974. package/dist/ui-library/files/noto-sans-latin-800-italic.woff2 +0 -0
  975. package/dist/ui-library/files/noto-sans-latin-800-normal.woff +0 -0
  976. package/dist/ui-library/files/noto-sans-latin-800-normal.woff2 +0 -0
  977. package/dist/ui-library/files/noto-sans-latin-900-italic.woff +0 -0
  978. package/dist/ui-library/files/noto-sans-latin-900-italic.woff2 +0 -0
  979. package/dist/ui-library/files/noto-sans-latin-900-normal.woff +0 -0
  980. package/dist/ui-library/files/noto-sans-latin-900-normal.woff2 +0 -0
  981. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff +0 -0
  982. package/dist/ui-library/files/noto-sans-latin-ext-100-italic.woff2 +0 -0
  983. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff +0 -0
  984. package/dist/ui-library/files/noto-sans-latin-ext-100-normal.woff2 +0 -0
  985. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff +0 -0
  986. package/dist/ui-library/files/noto-sans-latin-ext-200-italic.woff2 +0 -0
  987. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff +0 -0
  988. package/dist/ui-library/files/noto-sans-latin-ext-200-normal.woff2 +0 -0
  989. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff +0 -0
  990. package/dist/ui-library/files/noto-sans-latin-ext-300-italic.woff2 +0 -0
  991. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff +0 -0
  992. package/dist/ui-library/files/noto-sans-latin-ext-300-normal.woff2 +0 -0
  993. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff +0 -0
  994. package/dist/ui-library/files/noto-sans-latin-ext-400-italic.woff2 +0 -0
  995. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff +0 -0
  996. package/dist/ui-library/files/noto-sans-latin-ext-400-normal.woff2 +0 -0
  997. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff +0 -0
  998. package/dist/ui-library/files/noto-sans-latin-ext-500-italic.woff2 +0 -0
  999. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff +0 -0
  1000. package/dist/ui-library/files/noto-sans-latin-ext-500-normal.woff2 +0 -0
  1001. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff +0 -0
  1002. package/dist/ui-library/files/noto-sans-latin-ext-600-italic.woff2 +0 -0
  1003. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff +0 -0
  1004. package/dist/ui-library/files/noto-sans-latin-ext-600-normal.woff2 +0 -0
  1005. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff +0 -0
  1006. package/dist/ui-library/files/noto-sans-latin-ext-700-italic.woff2 +0 -0
  1007. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff +0 -0
  1008. package/dist/ui-library/files/noto-sans-latin-ext-700-normal.woff2 +0 -0
  1009. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff +0 -0
  1010. package/dist/ui-library/files/noto-sans-latin-ext-800-italic.woff2 +0 -0
  1011. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff +0 -0
  1012. package/dist/ui-library/files/noto-sans-latin-ext-800-normal.woff2 +0 -0
  1013. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff +0 -0
  1014. package/dist/ui-library/files/noto-sans-latin-ext-900-italic.woff2 +0 -0
  1015. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff +0 -0
  1016. package/dist/ui-library/files/noto-sans-latin-ext-900-normal.woff2 +0 -0
  1017. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff +0 -0
  1018. package/dist/ui-library/files/noto-sans-vietnamese-100-italic.woff2 +0 -0
  1019. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff +0 -0
  1020. package/dist/ui-library/files/noto-sans-vietnamese-100-normal.woff2 +0 -0
  1021. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff +0 -0
  1022. package/dist/ui-library/files/noto-sans-vietnamese-200-italic.woff2 +0 -0
  1023. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff +0 -0
  1024. package/dist/ui-library/files/noto-sans-vietnamese-200-normal.woff2 +0 -0
  1025. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff +0 -0
  1026. package/dist/ui-library/files/noto-sans-vietnamese-300-italic.woff2 +0 -0
  1027. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff +0 -0
  1028. package/dist/ui-library/files/noto-sans-vietnamese-300-normal.woff2 +0 -0
  1029. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff +0 -0
  1030. package/dist/ui-library/files/noto-sans-vietnamese-400-italic.woff2 +0 -0
  1031. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff +0 -0
  1032. package/dist/ui-library/files/noto-sans-vietnamese-400-normal.woff2 +0 -0
  1033. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff +0 -0
  1034. package/dist/ui-library/files/noto-sans-vietnamese-500-italic.woff2 +0 -0
  1035. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff +0 -0
  1036. package/dist/ui-library/files/noto-sans-vietnamese-500-normal.woff2 +0 -0
  1037. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff +0 -0
  1038. package/dist/ui-library/files/noto-sans-vietnamese-600-italic.woff2 +0 -0
  1039. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff +0 -0
  1040. package/dist/ui-library/files/noto-sans-vietnamese-600-normal.woff2 +0 -0
  1041. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff +0 -0
  1042. package/dist/ui-library/files/noto-sans-vietnamese-700-italic.woff2 +0 -0
  1043. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff +0 -0
  1044. package/dist/ui-library/files/noto-sans-vietnamese-700-normal.woff2 +0 -0
  1045. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff +0 -0
  1046. package/dist/ui-library/files/noto-sans-vietnamese-800-italic.woff2 +0 -0
  1047. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff +0 -0
  1048. package/dist/ui-library/files/noto-sans-vietnamese-800-normal.woff2 +0 -0
  1049. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff +0 -0
  1050. package/dist/ui-library/files/noto-sans-vietnamese-900-italic.woff2 +0 -0
  1051. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff +0 -0
  1052. package/dist/ui-library/files/noto-sans-vietnamese-900-normal.woff2 +0 -0
  1053. package/dist/ui-library/index.esm.js.map +1 -1
  1054. package/dist/ui-library/p-06ba4450.js.map +1 -1
  1055. package/dist/ui-library/p-0cebf1d2.js.map +1 -1
  1056. package/dist/ui-library/p-160223d5.entry.js +2 -0
  1057. package/dist/ui-library/p-160223d5.entry.js.map +1 -0
  1058. package/dist/ui-library/p-1b67b95f.entry.js +2 -0
  1059. package/dist/ui-library/p-1b67b95f.entry.js.map +1 -0
  1060. package/dist/ui-library/{p-50dae789.entry.js → p-1e47e014.entry.js} +2 -2
  1061. package/dist/ui-library/p-1e47e014.entry.js.map +1 -0
  1062. package/dist/ui-library/p-2146cf22.entry.js +2 -0
  1063. package/dist/ui-library/p-2146cf22.entry.js.map +1 -0
  1064. package/dist/ui-library/{p-884c5cf9.entry.js → p-22f2ca14.entry.js} +2 -2
  1065. package/dist/ui-library/p-22f2ca14.entry.js.map +1 -0
  1066. package/dist/ui-library/p-2ad904a7.entry.js +2 -0
  1067. package/dist/ui-library/p-2ad904a7.entry.js.map +1 -0
  1068. package/dist/ui-library/p-30000e86.entry.js +2 -0
  1069. package/dist/ui-library/p-30000e86.entry.js.map +1 -0
  1070. package/dist/ui-library/p-3267becc.entry.js +2 -0
  1071. package/dist/ui-library/p-3267becc.entry.js.map +1 -0
  1072. package/dist/ui-library/p-3f6cc2c2.entry.js +2 -0
  1073. package/dist/ui-library/p-3f6cc2c2.entry.js.map +1 -0
  1074. package/dist/ui-library/{p-d95e292e.entry.js → p-418413d3.entry.js} +2 -2
  1075. package/dist/ui-library/p-418413d3.entry.js.map +1 -0
  1076. package/dist/ui-library/{p-da7f3dbd.entry.js → p-42cd3588.entry.js} +2 -2
  1077. package/dist/ui-library/p-42cd3588.entry.js.map +1 -0
  1078. package/dist/ui-library/p-43213f9e.entry.js +2 -0
  1079. package/dist/ui-library/p-43213f9e.entry.js.map +1 -0
  1080. package/dist/ui-library/p-45761392.entry.js +2 -0
  1081. package/dist/ui-library/p-45761392.entry.js.map +1 -0
  1082. package/dist/ui-library/p-48118ce8.js +3 -0
  1083. package/dist/ui-library/p-48118ce8.js.map +1 -0
  1084. package/dist/ui-library/{p-caea1eb6.entry.js → p-53867d77.entry.js} +2 -2
  1085. package/dist/ui-library/p-53867d77.entry.js.map +1 -0
  1086. package/dist/ui-library/p-559a15db.entry.js +2 -0
  1087. package/dist/ui-library/p-559a15db.entry.js.map +1 -0
  1088. package/dist/ui-library/{p-870b988d.entry.js → p-592c7cf9.entry.js} +2 -2
  1089. package/dist/ui-library/p-592c7cf9.entry.js.map +1 -0
  1090. package/dist/ui-library/p-5a513e96.entry.js +2 -0
  1091. package/dist/ui-library/p-5a513e96.entry.js.map +1 -0
  1092. package/dist/ui-library/p-651293e7.js +2 -0
  1093. package/dist/ui-library/p-651293e7.js.map +1 -0
  1094. package/dist/ui-library/p-6be7f9f4.entry.js +2 -0
  1095. package/dist/ui-library/p-6be7f9f4.entry.js.map +1 -0
  1096. package/dist/ui-library/p-70a7e87c.entry.js +2 -0
  1097. package/dist/ui-library/p-70a7e87c.entry.js.map +1 -0
  1098. package/dist/ui-library/p-70fac778.entry.js +2 -0
  1099. package/dist/ui-library/p-70fac778.entry.js.map +1 -0
  1100. package/dist/ui-library/p-783ec07c.entry.js +2 -0
  1101. package/dist/ui-library/p-783ec07c.entry.js.map +1 -0
  1102. package/dist/ui-library/p-78a4fabd.entry.js +2 -0
  1103. package/dist/ui-library/p-78a4fabd.entry.js.map +1 -0
  1104. package/dist/ui-library/p-798e7eeb.entry.js +2 -0
  1105. package/dist/ui-library/p-798e7eeb.entry.js.map +1 -0
  1106. package/dist/ui-library/p-7afdff5c.entry.js +2 -0
  1107. package/dist/ui-library/p-7afdff5c.entry.js.map +1 -0
  1108. package/dist/ui-library/p-7f856f00.js.map +1 -1
  1109. package/dist/ui-library/p-8227aaed.js.map +1 -1
  1110. package/dist/ui-library/p-842b492e.js.map +1 -1
  1111. package/dist/ui-library/p-84370073.entry.js +2 -0
  1112. package/dist/ui-library/p-84370073.entry.js.map +1 -0
  1113. package/dist/ui-library/p-862d474e.js.map +1 -1
  1114. package/dist/ui-library/p-8bfb4bfc.js.map +1 -1
  1115. package/dist/ui-library/p-8fe4ec36.entry.js +2 -0
  1116. package/dist/ui-library/p-8fe4ec36.entry.js.map +1 -0
  1117. package/dist/ui-library/p-9370d59e.entry.js +2 -0
  1118. package/dist/ui-library/p-9370d59e.entry.js.map +1 -0
  1119. package/dist/ui-library/p-9915dfc2.entry.js +2 -0
  1120. package/dist/ui-library/p-9915dfc2.entry.js.map +1 -0
  1121. package/dist/ui-library/p-9bb03da7.entry.js +2 -0
  1122. package/dist/ui-library/p-9bb03da7.entry.js.map +1 -0
  1123. package/dist/ui-library/{p-61e66671.js → p-a04460e3.js} +2 -2
  1124. package/dist/ui-library/{p-61e66671.js.map → p-a04460e3.js.map} +1 -1
  1125. package/dist/ui-library/p-a1502802.js.map +1 -1
  1126. package/dist/ui-library/p-a929b095.entry.js +2 -0
  1127. package/dist/ui-library/p-a929b095.entry.js.map +1 -0
  1128. package/dist/ui-library/p-a9c733e3.entry.js +2 -0
  1129. package/dist/ui-library/p-a9c733e3.entry.js.map +1 -0
  1130. package/dist/ui-library/{p-961bd001.entry.js → p-aa319c2c.entry.js} +2 -2
  1131. package/dist/ui-library/p-aa319c2c.entry.js.map +1 -0
  1132. package/dist/ui-library/p-aff7bbcb.entry.js +2 -0
  1133. package/dist/ui-library/p-aff7bbcb.entry.js.map +1 -0
  1134. package/dist/ui-library/p-b361d5da.entry.js +2 -0
  1135. package/dist/ui-library/p-b361d5da.entry.js.map +1 -0
  1136. package/dist/ui-library/p-b3b243a6.entry.js +2 -0
  1137. package/dist/ui-library/p-b3b243a6.entry.js.map +1 -0
  1138. package/dist/ui-library/{p-9c79341d.entry.js → p-b4bd1767.entry.js} +2 -2
  1139. package/dist/ui-library/p-b4bd1767.entry.js.map +1 -0
  1140. package/dist/ui-library/p-bbf2ac6b.entry.js +2 -0
  1141. package/dist/ui-library/p-bbf2ac6b.entry.js.map +1 -0
  1142. package/dist/ui-library/p-c1cd72fb.entry.js +2 -0
  1143. package/dist/ui-library/p-c1cd72fb.entry.js.map +1 -0
  1144. package/dist/ui-library/p-c6f5a872.entry.js +2 -0
  1145. package/dist/ui-library/p-c6f5a872.entry.js.map +1 -0
  1146. package/dist/ui-library/p-cb510ea1.entry.js +2 -0
  1147. package/dist/ui-library/p-cb510ea1.entry.js.map +1 -0
  1148. package/dist/ui-library/p-cdc9224d.entry.js +2 -0
  1149. package/dist/ui-library/p-cdc9224d.entry.js.map +1 -0
  1150. package/dist/ui-library/p-cf323369.entry.js +2 -0
  1151. package/dist/ui-library/p-cf323369.entry.js.map +1 -0
  1152. package/dist/ui-library/p-e080d5b6.js.map +1 -1
  1153. package/dist/ui-library/{p-ac57ba5c.entry.js → p-e0ac4cd8.entry.js} +2 -2
  1154. package/dist/ui-library/p-e0ac4cd8.entry.js.map +1 -0
  1155. package/dist/ui-library/p-e1255160.js +2 -0
  1156. package/dist/ui-library/p-e1255160.js.map +1 -0
  1157. package/dist/ui-library/p-e3ff26dd.entry.js +2 -0
  1158. package/dist/ui-library/p-e3ff26dd.entry.js.map +1 -0
  1159. package/dist/ui-library/p-e8c717d3.entry.js +2 -0
  1160. package/dist/ui-library/p-e8c717d3.entry.js.map +1 -0
  1161. package/dist/ui-library/{p-0440335d.entry.js → p-e8e16974.entry.js} +2 -2
  1162. package/dist/ui-library/p-e8e16974.entry.js.map +1 -0
  1163. package/dist/ui-library/p-ecfb0aec.entry.js +2 -0
  1164. package/dist/ui-library/p-ecfb0aec.entry.js.map +1 -0
  1165. package/dist/ui-library/{p-04cc397c.entry.js → p-f0bc11a5.entry.js} +2 -2
  1166. package/dist/ui-library/p-f0bc11a5.entry.js.map +1 -0
  1167. package/dist/ui-library/p-f12eec83.entry.js +2 -0
  1168. package/dist/ui-library/p-f12eec83.entry.js.map +1 -0
  1169. package/dist/ui-library/p-f136a6b2.js.map +1 -1
  1170. package/dist/ui-library/p-f9b341a3.entry.js +2 -0
  1171. package/dist/ui-library/p-f9b341a3.entry.js.map +1 -0
  1172. package/dist/ui-library/ui-library.css +1 -1
  1173. package/dist/ui-library/ui-library.esm.js +1 -1
  1174. package/dist/ui-library/ui-library.esm.js.map +1 -1
  1175. package/loader/cdn.js +1 -3
  1176. package/loader/index.cjs.js +1 -3
  1177. package/loader/index.d.ts +3 -0
  1178. package/loader/index.es2017.js +1 -3
  1179. package/loader/index.js +1 -3
  1180. package/package.json +8 -20
  1181. package/dist/cjs/index-d7748d51.js +0 -2230
  1182. package/dist/cjs/index-d7748d51.js.map +0 -1
  1183. package/dist/cjs/modal-3ce015be.js.map +0 -1
  1184. package/dist/collection/components/six-alert/test/six-alert.spec.js +0 -25
  1185. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +0 -1
  1186. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +0 -26
  1187. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +0 -1
  1188. package/dist/collection/components/six-badge/test/six-badge.spec.js +0 -20
  1189. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +0 -1
  1190. package/dist/collection/components/six-button/test/six-button.spec.js +0 -69
  1191. package/dist/collection/components/six-button/test/six-button.spec.js.map +0 -1
  1192. package/dist/collection/components/six-card/test/six-card.spec.js +0 -18
  1193. package/dist/collection/components/six-card/test/six-card.spec.js.map +0 -1
  1194. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +0 -83
  1195. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +0 -1
  1196. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +0 -26
  1197. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +0 -1
  1198. package/dist/collection/components/six-details/test/six-details.spec.js +0 -36
  1199. package/dist/collection/components/six-details/test/six-details.spec.js.map +0 -1
  1200. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +0 -34
  1201. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +0 -1
  1202. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +0 -34
  1203. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +0 -1
  1204. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +0 -147
  1205. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +0 -1
  1206. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +0 -240
  1207. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +0 -1
  1208. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +0 -67
  1209. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +0 -1
  1210. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +0 -169
  1211. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +0 -1
  1212. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +0 -103
  1213. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +0 -1
  1214. package/dist/collection/components/six-footer/test/six-footer.spec.js +0 -21
  1215. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +0 -1
  1216. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +0 -45
  1217. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +0 -1
  1218. package/dist/collection/components/six-header/assets/six-logo.svg +0 -1
  1219. package/dist/collection/components/six-header/test/six-header.spec.js +0 -177
  1220. package/dist/collection/components/six-header/test/six-header.spec.js.map +0 -1
  1221. package/dist/collection/components/six-icon/test/six-icon.spec.js +0 -20
  1222. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +0 -1
  1223. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +0 -23
  1224. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +0 -1
  1225. package/dist/collection/components/six-input/test/six-input.spec.js +0 -39
  1226. package/dist/collection/components/six-input/test/six-input.spec.js.map +0 -1
  1227. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +0 -90
  1228. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +0 -1
  1229. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +0 -196
  1230. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +0 -1
  1231. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +0 -18
  1232. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +0 -1
  1233. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +0 -22
  1234. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +0 -1
  1235. package/dist/collection/components/six-menu/test/six-menu.spec.js +0 -93
  1236. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +0 -1
  1237. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +0 -18
  1238. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +0 -1
  1239. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +0 -33
  1240. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +0 -1
  1241. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +0 -20
  1242. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +0 -1
  1243. package/dist/collection/components/six-picto/test/six-picto.spec.js +0 -33
  1244. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +0 -1
  1245. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +0 -24
  1246. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +0 -1
  1247. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +0 -26
  1248. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +0 -1
  1249. package/dist/collection/components/six-radio/test/six-radio.spec.js +0 -63
  1250. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +0 -1
  1251. package/dist/collection/components/six-range/test/six-range.spec.js +0 -34
  1252. package/dist/collection/components/six-range/test/six-range.spec.js.map +0 -1
  1253. package/dist/collection/components/six-root/test/six-root.spec.js +0 -36
  1254. package/dist/collection/components/six-root/test/six-root.spec.js.map +0 -1
  1255. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +0 -22
  1256. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +0 -1
  1257. package/dist/collection/components/six-select/test/six-select.spec.js +0 -102
  1258. package/dist/collection/components/six-select/test/six-select.spec.js.map +0 -1
  1259. package/dist/collection/components/six-select/test/util.spec.js +0 -81
  1260. package/dist/collection/components/six-select/test/util.spec.js.map +0 -1
  1261. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +0 -22
  1262. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +0 -1
  1263. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +0 -50
  1264. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +0 -1
  1265. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +0 -53
  1266. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +0 -1
  1267. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +0 -37
  1268. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +0 -1
  1269. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +0 -117
  1270. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +0 -1
  1271. package/dist/collection/components/six-switch/test/six-switch.spec.js +0 -73
  1272. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +0 -1
  1273. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +0 -20
  1274. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +0 -1
  1275. package/dist/collection/components/six-tag/test/six-tag.spec.js +0 -54
  1276. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +0 -1
  1277. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +0 -119
  1278. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +0 -1
  1279. package/dist/collection/components/six-tile/test/six-tile.spec.js +0 -69
  1280. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +0 -1
  1281. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +0 -496
  1282. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +0 -1
  1283. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +0 -28
  1284. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +0 -1
  1285. package/dist/collection/files/file-list.json +0 -308
  1286. package/dist/collection/files/noto-sans-all-100-italic.woff +0 -0
  1287. package/dist/collection/files/noto-sans-all-100-normal.woff +0 -0
  1288. package/dist/collection/files/noto-sans-all-200-italic.woff +0 -0
  1289. package/dist/collection/files/noto-sans-all-200-normal.woff +0 -0
  1290. package/dist/collection/files/noto-sans-all-300-italic.woff +0 -0
  1291. package/dist/collection/files/noto-sans-all-300-normal.woff +0 -0
  1292. package/dist/collection/files/noto-sans-all-400-italic.woff +0 -0
  1293. package/dist/collection/files/noto-sans-all-400-normal.woff +0 -0
  1294. package/dist/collection/files/noto-sans-all-500-italic.woff +0 -0
  1295. package/dist/collection/files/noto-sans-all-500-normal.woff +0 -0
  1296. package/dist/collection/files/noto-sans-all-600-italic.woff +0 -0
  1297. package/dist/collection/files/noto-sans-all-600-normal.woff +0 -0
  1298. package/dist/collection/files/noto-sans-all-700-italic.woff +0 -0
  1299. package/dist/collection/files/noto-sans-all-700-normal.woff +0 -0
  1300. package/dist/collection/files/noto-sans-all-800-italic.woff +0 -0
  1301. package/dist/collection/files/noto-sans-all-800-normal.woff +0 -0
  1302. package/dist/collection/files/noto-sans-all-900-italic.woff +0 -0
  1303. package/dist/collection/files/noto-sans-all-900-normal.woff +0 -0
  1304. package/dist/collection/utils/date-util.spec.js +0 -995
  1305. package/dist/collection/utils/date-util.spec.js.map +0 -1
  1306. package/dist/collection/utils/scroll.spec.js +0 -122
  1307. package/dist/collection/utils/scroll.spec.js.map +0 -1
  1308. package/dist/collection/utils/support.js +0 -16
  1309. package/dist/collection/utils/support.js.map +0 -1
  1310. package/dist/collection/utils/time.util.spec.js +0 -368
  1311. package/dist/collection/utils/time.util.spec.js.map +0 -1
  1312. package/dist/esm/index-79d4ef67.js +0 -2201
  1313. package/dist/esm/index-79d4ef67.js.map +0 -1
  1314. package/dist/esm/modal-96526245.js.map +0 -1
  1315. package/dist/esm/polyfills/core-js.js +0 -11
  1316. package/dist/esm/polyfills/dom.js +0 -79
  1317. package/dist/esm/polyfills/es5-html-element.js +0 -1
  1318. package/dist/esm/polyfills/index.js +0 -34
  1319. package/dist/esm/polyfills/system.js +0 -6
  1320. package/dist/types/utils/support.d.ts +0 -1
  1321. package/dist/ui-library/assets/six-logo.svg +0 -1
  1322. package/dist/ui-library/files/file-list.json +0 -308
  1323. package/dist/ui-library/files/noto-sans-all-100-italic.woff +0 -0
  1324. package/dist/ui-library/files/noto-sans-all-100-normal.woff +0 -0
  1325. package/dist/ui-library/files/noto-sans-all-200-italic.woff +0 -0
  1326. package/dist/ui-library/files/noto-sans-all-200-normal.woff +0 -0
  1327. package/dist/ui-library/files/noto-sans-all-300-italic.woff +0 -0
  1328. package/dist/ui-library/files/noto-sans-all-300-normal.woff +0 -0
  1329. package/dist/ui-library/files/noto-sans-all-400-italic.woff +0 -0
  1330. package/dist/ui-library/files/noto-sans-all-400-normal.woff +0 -0
  1331. package/dist/ui-library/files/noto-sans-all-500-italic.woff +0 -0
  1332. package/dist/ui-library/files/noto-sans-all-500-normal.woff +0 -0
  1333. package/dist/ui-library/files/noto-sans-all-600-italic.woff +0 -0
  1334. package/dist/ui-library/files/noto-sans-all-600-normal.woff +0 -0
  1335. package/dist/ui-library/files/noto-sans-all-700-italic.woff +0 -0
  1336. package/dist/ui-library/files/noto-sans-all-700-normal.woff +0 -0
  1337. package/dist/ui-library/files/noto-sans-all-800-italic.woff +0 -0
  1338. package/dist/ui-library/files/noto-sans-all-800-normal.woff +0 -0
  1339. package/dist/ui-library/files/noto-sans-all-900-italic.woff +0 -0
  1340. package/dist/ui-library/files/noto-sans-all-900-normal.woff +0 -0
  1341. package/dist/ui-library/p-0440335d.entry.js.map +0 -1
  1342. package/dist/ui-library/p-04cc397c.entry.js.map +0 -1
  1343. package/dist/ui-library/p-0edd3091.entry.js +0 -2
  1344. package/dist/ui-library/p-0edd3091.entry.js.map +0 -1
  1345. package/dist/ui-library/p-150b7664.entry.js +0 -2
  1346. package/dist/ui-library/p-150b7664.entry.js.map +0 -1
  1347. package/dist/ui-library/p-1f5840b5.entry.js +0 -2
  1348. package/dist/ui-library/p-1f5840b5.entry.js.map +0 -1
  1349. package/dist/ui-library/p-28cc013e.entry.js +0 -2
  1350. package/dist/ui-library/p-28cc013e.entry.js.map +0 -1
  1351. package/dist/ui-library/p-3424bbc0.entry.js +0 -2
  1352. package/dist/ui-library/p-3424bbc0.entry.js.map +0 -1
  1353. package/dist/ui-library/p-348c68a8.entry.js +0 -2
  1354. package/dist/ui-library/p-348c68a8.entry.js.map +0 -1
  1355. package/dist/ui-library/p-3723ca06.entry.js +0 -2
  1356. package/dist/ui-library/p-3723ca06.entry.js.map +0 -1
  1357. package/dist/ui-library/p-37aeac5e.entry.js +0 -2
  1358. package/dist/ui-library/p-37aeac5e.entry.js.map +0 -1
  1359. package/dist/ui-library/p-3d7fb086.entry.js +0 -2
  1360. package/dist/ui-library/p-3d7fb086.entry.js.map +0 -1
  1361. package/dist/ui-library/p-457f7373.entry.js +0 -2
  1362. package/dist/ui-library/p-457f7373.entry.js.map +0 -1
  1363. package/dist/ui-library/p-4a667f31.entry.js +0 -2
  1364. package/dist/ui-library/p-4a667f31.entry.js.map +0 -1
  1365. package/dist/ui-library/p-50dae789.entry.js.map +0 -1
  1366. package/dist/ui-library/p-546e33d9.entry.js +0 -2
  1367. package/dist/ui-library/p-546e33d9.entry.js.map +0 -1
  1368. package/dist/ui-library/p-5db3a705.entry.js +0 -2
  1369. package/dist/ui-library/p-5db3a705.entry.js.map +0 -1
  1370. package/dist/ui-library/p-6296779b.entry.js +0 -2
  1371. package/dist/ui-library/p-6296779b.entry.js.map +0 -1
  1372. package/dist/ui-library/p-64b4755d.entry.js +0 -2
  1373. package/dist/ui-library/p-64b4755d.entry.js.map +0 -1
  1374. package/dist/ui-library/p-6c1b046e.entry.js +0 -2
  1375. package/dist/ui-library/p-6c1b046e.entry.js.map +0 -1
  1376. package/dist/ui-library/p-7115316e.entry.js +0 -2
  1377. package/dist/ui-library/p-7115316e.entry.js.map +0 -1
  1378. package/dist/ui-library/p-870b988d.entry.js.map +0 -1
  1379. package/dist/ui-library/p-884c5cf9.entry.js.map +0 -1
  1380. package/dist/ui-library/p-8888a367.entry.js +0 -2
  1381. package/dist/ui-library/p-8888a367.entry.js.map +0 -1
  1382. package/dist/ui-library/p-935c78a7.entry.js +0 -2
  1383. package/dist/ui-library/p-935c78a7.entry.js.map +0 -1
  1384. package/dist/ui-library/p-961bd001.entry.js.map +0 -1
  1385. package/dist/ui-library/p-998de05d.js +0 -2
  1386. package/dist/ui-library/p-998de05d.js.map +0 -1
  1387. package/dist/ui-library/p-9b08068d.entry.js +0 -2
  1388. package/dist/ui-library/p-9b08068d.entry.js.map +0 -1
  1389. package/dist/ui-library/p-9c79341d.entry.js.map +0 -1
  1390. package/dist/ui-library/p-a9c159f2.entry.js +0 -2
  1391. package/dist/ui-library/p-a9c159f2.entry.js.map +0 -1
  1392. package/dist/ui-library/p-ac57ba5c.entry.js.map +0 -1
  1393. package/dist/ui-library/p-ae45f6f4.entry.js +0 -2
  1394. package/dist/ui-library/p-ae45f6f4.entry.js.map +0 -1
  1395. package/dist/ui-library/p-af15381b.js +0 -3
  1396. package/dist/ui-library/p-af15381b.js.map +0 -1
  1397. package/dist/ui-library/p-b1a5f3cd.entry.js +0 -2
  1398. package/dist/ui-library/p-b1a5f3cd.entry.js.map +0 -1
  1399. package/dist/ui-library/p-b385a241.entry.js +0 -2
  1400. package/dist/ui-library/p-b385a241.entry.js.map +0 -1
  1401. package/dist/ui-library/p-bf2fb53f.entry.js +0 -2
  1402. package/dist/ui-library/p-bf2fb53f.entry.js.map +0 -1
  1403. package/dist/ui-library/p-c2c7370b.entry.js +0 -2
  1404. package/dist/ui-library/p-c2c7370b.entry.js.map +0 -1
  1405. package/dist/ui-library/p-caea1eb6.entry.js.map +0 -1
  1406. package/dist/ui-library/p-d3f5b9a8.entry.js +0 -2
  1407. package/dist/ui-library/p-d3f5b9a8.entry.js.map +0 -1
  1408. package/dist/ui-library/p-d42b18eb.entry.js +0 -2
  1409. package/dist/ui-library/p-d42b18eb.entry.js.map +0 -1
  1410. package/dist/ui-library/p-d769cc36.entry.js +0 -2
  1411. package/dist/ui-library/p-d769cc36.entry.js.map +0 -1
  1412. package/dist/ui-library/p-d95e292e.entry.js.map +0 -1
  1413. package/dist/ui-library/p-da7f3dbd.entry.js.map +0 -1
  1414. package/dist/ui-library/p-dfb89b6a.entry.js +0 -2
  1415. package/dist/ui-library/p-dfb89b6a.entry.js.map +0 -1
  1416. package/dist/ui-library/p-e6032375.entry.js +0 -2
  1417. package/dist/ui-library/p-e6032375.entry.js.map +0 -1
  1418. package/dist/ui-library/p-e60d2324.entry.js +0 -2
  1419. package/dist/ui-library/p-e60d2324.entry.js.map +0 -1
  1420. package/dist/ui-library/p-e8298c6e.entry.js +0 -2
  1421. package/dist/ui-library/p-e8298c6e.entry.js.map +0 -1
  1422. package/dist/ui-library/p-ed279165.entry.js +0 -2
  1423. package/dist/ui-library/p-ed279165.entry.js.map +0 -1
  1424. package/dist/ui-library/p-ed61b75c.entry.js +0 -2
  1425. package/dist/ui-library/p-ed61b75c.entry.js.map +0 -1
  1426. package/dist/ui-library/p-ee872c04.entry.js +0 -2
  1427. package/dist/ui-library/p-ee872c04.entry.js.map +0 -1
  1428. package/dist/ui-library/p-f1ab3384.entry.js +0 -2
  1429. package/dist/ui-library/p-f1ab3384.entry.js.map +0 -1
  1430. package/dist/ui-library/p-f4ef481c.entry.js +0 -2
  1431. package/dist/ui-library/p-f4ef481c.entry.js.map +0 -1
  1432. package/dist/ui-library/p-f8cbb8da.entry.js +0 -2
  1433. package/dist/ui-library/p-f8cbb8da.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"file":"six-details.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,aAAa,GAAG,4tEAA4tE;;ACIlvE,IAAI,EAAE,GAAG,CAAC,CAAC;MAuBE,UAAU;;;;;;;QAQb,gBAAW,GAAG,WAAW,EAAE,EAAE,EAAE,CAAC;QAChC,cAAS,GAAG,KAAK,CAAC;QA8HlB,4BAAuB,GAAG,CAAC,KAAsB;YACvD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI;gBAAE,OAAO;YAC9B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;;YAG3C,IAAI,KAAK,CAAC,YAAY,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBACjF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,GAAG,SAAS,GAAG,QAAQ,CAAC;gBAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,GAAG,CAAC;gBAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;gBAChE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;aAC/B;SACF,CAAC;QAEM,uBAAkB,GAAG;;YAC3B,IAAI,CAAC,IAAI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M,GAAG,OAAO,EAC/C,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,EAChC,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAChC,SAAS,EAAE,IAAI,CAAC,oBAAoB,IAEpCA,iBAAK,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,kBAAkB,IAC1CA,kBAAM,IAAI,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAQ,CACtC,EAENA,kBACE,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE;gBACL,uBAAuB,EAAE,IAAI;gBAC7B,gCAAgC,EAAE,IAAI,CAAC,kBAAkB;aAC1D,IAEDA,kBAAM,IAAI,EAAC,cAAc,EAAC,YAAY,EAAE,OAAO,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC,IAC5E,WAAW,IAAIA,sBAAU,IAAI,EAAE,IAAI,CAAC,eAAe,IAAG,WAAW,CAAY,CACzE,CACF,CACA,EAETA,iBAAK,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,KAAK,EAAC,eAAe,EAAC,eAAe,EAAE,IAAI,CAAC,uBAAuB,IACrGA,iBACE,IAAI,EAAC,SAAS,EACd,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,UAAU,EACjC,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,QAAQ,qBACI,GAAG,IAAI,CAAC,WAAW,SAAS,IAE7CA,qBAAQ,CACJ,CACF,CACF,EACN;KACH;;;;;;;;;;","names":["focusVisible","h"],"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__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 // eslint-disable-next-line @stencil-community/ban-default-true\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"],"version":3}
1
+ {"file":"six-details.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,aAAa,GAAG,4tEAA4tE,CAAC;AACnvE,yBAAe,aAAa;;ACG5B,IAAI,EAAE,GAAG,CAAC,CAAC;MAuBE,UAAU;;;;;;;QAQb,gBAAW,GAAG,WAAW,EAAE,EAAE,EAAE,CAAC;QAChC,cAAS,GAAG,KAAK,CAAC;QA8HlB,4BAAuB,GAAG,CAAC,KAAsB;YACvD,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI;gBAAE,OAAO;YAC9B,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;;YAG3C,IAAI,KAAK,CAAC,YAAY,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBACjF,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,GAAG,SAAS,GAAG,QAAQ,CAAC;gBAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,GAAG,CAAC;gBAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;gBAChE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CA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AM,GAAG,OAAO,mBAC5B,GAAG,IAAI,CAAC,WAAW,UAAU,mBAC7B,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,EAC/C,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,EAChC,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAChC,SAAS,EAAE,IAAI,CAAC,oBAAoB,IAEpCA,kEAAK,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,kBAAkB,IAC1CA,mEAAM,IAAI,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAQ,CACtC,EAENA,mEACE,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE;gBACL,uBAAuB,EAAE,IAAI;gBAC7B,gCAAgC,EAAE,IAAI,CAAC,kBAAkB;aAC1D,IAEDA,mEAAM,IAAI,EAAC,cAAc,EAAC,YAAY,EAAE,OAAO,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC,IAC5E,WAAW,IAAIA,uEAAU,IAAI,EAAE,IAAI,CAAC,eAAe,IAAG,WAAW,CAAY,CACzE,CACF,CACA,EAETA,kEAAK,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,KAAK,EAAC,eAAe,EAAC,eAAe,EAAE,IAAI,CAAC,uBAAuB,IACrGA,kEACE,IAAI,EAAC,SAAS,EACd,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,UAAU,EACjC,KAAK,EAAC,kBAAkB,EACxB,IAAI,EAAC,QAAQ,qBACI,GAAG,IAAI,CAAC,WAAW,SAAS,IAE7CA,oEAAQ,CACJ,CACF,CACF,EACN;KACH;;;;;;;;;;","names":["focusVisible","h"],"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__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 // eslint-disable-next-line @stencil-community/ban-default-true\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"],"version":3}
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d7748d51.js');
5
+ const index = require('./index-417a06c8.js');
6
6
  const scroll = require('./scroll-68033901.js');
7
7
  const slot = require('./slot-1b1232a1.js');
8
- const modal = require('./modal-3ce015be.js');
8
+ const modal = require('./modal-bd7fc5bc.js');
9
9
 
10
10
  const sixDialogCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}: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-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}";
11
+ const SixDialogStyle0 = sixDialogCss;
11
12
 
12
- const hasPreventScroll = modal.isPreventScrollSupported();
13
13
  let id = 0;
14
14
  const SixDialog = class {
15
15
  constructor(hostRef) {
@@ -66,6 +66,8 @@ const SixDialog = class {
66
66
  }
67
67
  componentWillLoad() {
68
68
  this.handleSlotChange();
69
+ }
70
+ componentDidLoad() {
69
71
  // Show on init if open
70
72
  if (this.open) {
71
73
  this.show();
@@ -91,30 +93,12 @@ const SixDialog = class {
91
93
  this.modal.activate();
92
94
  scroll.lockBodyScrolling(this.host);
93
95
  if (this.open) {
94
- if (hasPreventScroll) {
95
- // Wait for the next frame before setting initial focus so the dialog is technically visible
96
- requestAnimationFrame(() => {
97
- const sixInitialFocus = this.sixInitialFocus.emit();
98
- if (!sixInitialFocus.defaultPrevented) {
99
- panel.focus({ preventScroll: true });
100
- }
101
- });
102
- }
103
- else {
104
- // Once Safari supports { preventScroll: true } we can remove this nasty little hack, but until then we need to
105
- // wait for the transition to complete before setting focus, otherwise the panel may render in a buggy way its
106
- // out of view initially.
107
- //
108
- // Fiddle: https://jsfiddle.net/g6buoafq/1/
109
- // Safari: https://bugs.webkit.org/show_bug.cgi?id=178583
110
- //
111
- this.dialog.addEventListener('transitionend', () => {
112
- const sixInitialFocus = this.sixInitialFocus.emit();
113
- if (!sixInitialFocus.defaultPrevented) {
114
- panel.focus();
115
- }
116
- }, { once: true });
117
- }
96
+ requestAnimationFrame(() => {
97
+ const sixInitialFocus = this.sixInitialFocus.emit();
98
+ if (!sixInitialFocus.defaultPrevented) {
99
+ panel.focus({ preventScroll: true });
100
+ }
101
+ });
118
102
  }
119
103
  }
120
104
  /** Hides the dialog */
@@ -133,19 +117,19 @@ const SixDialog = class {
133
117
  scroll.unlockBodyScrolling(this.host);
134
118
  }
135
119
  render() {
136
- return (index.h("div", { ref: (el) => (this.dialog = el), part: "base", class: {
120
+ return (index.h("div", { key: 'ca2f75786e6b9bca6e8163d6bb963c7cd7ea8a1a', ref: (el) => (this.dialog = el), part: "base", class: {
137
121
  dialog: true,
138
122
  'dialog--open': this.open,
139
123
  'dialog--visible': this.isVisible,
140
124
  'dialog--has-footer': this.hasFooter,
141
- }, onKeyDown: this.handleKeyDown, onTransitionEnd: this.handleTransitionEnd }, index.h("div", { part: "overlay", class: "dialog__overlay", onClick: this.handleOverlayClick }), index.h("div", { ref: (el) => (this.panel = el), 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 && (index.h("header", { part: "header", class: "dialog__header" }, index.h("span", { part: "title", class: "dialog__title", id: `${this.componentId}-title` }, index.h("slot", { name: "label" }, this.label || String.fromCharCode(65279))), index.h("six-icon-button", { exportparts: "base:close-button", class: "dialog__close", name: "close", onClick: this.handleCloseClick }))), index.h("div", { part: "body", class: "dialog__body" }, index.h("slot", null)), index.h("footer", { part: "footer", class: "dialog__footer" }, index.h("slot", { name: "footer", onSlotchange: this.handleSlotChange })))));
125
+ }, onKeyDown: this.handleKeyDown, onTransitionEnd: this.handleTransitionEnd }, index.h("div", { key: 'a273d85c8bfd251ad2ae2e6d5f3eb92826108a50', part: "overlay", class: "dialog__overlay", onClick: this.handleOverlayClick }), index.h("div", { key: 'abe0a634c395be75a1d818209b084f963beeafa7', ref: (el) => (this.panel = el), 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 && (index.h("header", { key: '2513644ffd4404c26415a22a191e6ea584c50ff2', part: "header", class: "dialog__header" }, index.h("span", { key: '02ee4a441ca2f643841810d074fbb6835dbf6745', part: "title", class: "dialog__title", id: `${this.componentId}-title` }, index.h("slot", { key: '62011be47150243227b1fe6f90250148c1b70161', name: "label" }, this.label || String.fromCharCode(65279))), index.h("six-icon-button", { key: '4b9a9cd54fe34d74034d76d40be1db034983918d', exportparts: "base:close-button", class: "dialog__close", name: "close", onClick: this.handleCloseClick }))), index.h("div", { key: 'b289e42038528d65fea205ca31d8ff9cca875fc1', part: "body", class: "dialog__body" }, index.h("slot", { key: 'dd58a5abcb760bd0b8fab8bf182a67f91905f1e7' })), index.h("footer", { key: '158e8de8f815c36bccd90c51481959afdeddb207', part: "footer", class: "dialog__footer" }, index.h("slot", { key: 'cc4a08e857def0f600136964f0044eb620f056d2', name: "footer", onSlotchange: this.handleSlotChange })))));
142
126
  }
143
127
  get host() { return index.getElement(this); }
144
128
  static get watchers() { return {
145
129
  "open": ["handleOpenChange"]
146
130
  }; }
147
131
  };
148
- SixDialog.style = sixDialogCss;
132
+ SixDialog.style = SixDialogStyle0;
149
133
 
150
134
  exports.six_dialog = SixDialog;
151
135
 
@@ -1 +1 @@
1
- {"file":"six-dialog.entry.cj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I,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB,IAC1CA,kBAAM,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAI,CACpD,CACL,CACF,EACN;KACH;;;;;;;;;;","names":["isPreventScrollSupported","hasSlot","Modal","unlockBodyScrolling","lockBodyScrolling","h"],"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-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"],"version":3}
1
+ {"file":"six-dialog.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,YAAY,GAAG,kkEAAkkE,CAAC;AACxlE,wBAAe,YAAY;;ACK3B,IAAI,EAAE,GAAG,CAAC,CAAC;MA2BE,SAAS;;;;;;;;;QACZ,gBAAW,GAAG,UAAU,EAAE,EAAE,EAAE,CAAC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BAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,qBAC5B,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,WAAW,QAAQ,GAAG,IAAI,EACpE,QAAQ,EAAE,CAAC,IAEV,CAAC,IAAI,CAAC,QAAQ,KACbA,qEAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB,IAC1CA,mEAAM,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,eAAe,EAAC,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,QAAQ,IACtEA,mEAAM,IAAI,EAAC,OAAO,IAEf,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CACpC,CACF,EACPA,8EACE,WAAW,EAAC,mBAAmB,EAC/B,KAAK,EAAC,eAAe,EACrB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,gBAAgB,GAC9B,CACK,CACV,EAEDA,kEAAK,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,cAAc,IACnCA,oEAAQ,CACJ,EAENA,qEAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB,IAC1CA,mEAAM,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAI,CACpD,CACL,CACF,EACN;KACH;;;;;;;;;;","names":["hasSlot","Modal","unlockBodyScrolling","lockBodyScrolling","h"],"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-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 Modal from '../../utils/modal';\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 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\n componentDidLoad() {\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 requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: 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"],"version":3}
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d7748d51.js');
5
+ const index = require('./index-417a06c8.js');
6
6
  const scroll = require('./scroll-68033901.js');
7
7
  const slot = require('./slot-1b1232a1.js');
8
- const modal = require('./modal-3ce015be.js');
8
+ const modal = require('./modal-bd7fc5bc.js');
9
9
 
10
10
  const sixDrawerCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{--size:25rem;display:contents}.drawer{top:0;left:0;width:100%;height:100%;pointer-events:none;overflow:hidden}.drawer:not(.drawer--visible){position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;pointer-events:none;visibility:hidden}.drawer--contained{position:absolute;z-index:initial}.drawer--fixed{position:fixed;z-index:var(--six-z-index-drawer)}.drawer__panel{position:absolute;display:flex;flex-direction:column;z-index:2;max-width:100%;max-height:100%;background-color:var(--six-drawer-background-color);color:var(--six-drawer-color);box-shadow:var(--six-shadow-large);transition:var(--six-transition-medium) transform;overflow:auto;pointer-events:all}.drawer__panel:focus{outline:none}.drawer--top .drawer__panel{top:0;right:auto;bottom:auto;left:0;width:100%;height:var(--size);transform:translate(0, -100%)}.drawer--right .drawer__panel{top:0;right:0;bottom:auto;left:auto;width:var(--size);height:100%;transform:translate(100%, 0)}.drawer--bottom .drawer__panel{top:auto;right:auto;bottom:0;left:0;width:100%;height:var(--size);transform:translate(0, 100%)}.drawer--left .drawer__panel{top:0;right:auto;bottom:auto;left:0;width:var(--size);height:100%;transform:translate(-100%, 0)}.drawer--open .drawer__panel{transform:none}.drawer__header{display:flex}.drawer__title{flex:1 1 auto;font-size:var(--six-font-size-large);line-height:var(--six-line-height-dense);padding:var(--six-spacing-large)}.drawer__close{flex:0 0 auto;display:flex;align-items:center;font-size:var(--six-font-size-x-large);padding:0 var(--six-spacing-large)}.drawer__body{flex:1 1 auto;padding:var(--six-spacing-large);overflow:auto;-webkit-overflow-scrolling:touch}.drawer__footer{text-align:right;padding:var(--six-spacing-large)}.drawer__footer ::slotted(six-button:not(:last-of-type)){margin-right:var(--six-spacing-x-small)}.drawer:not(.drawer--has-footer) .drawer__footer{display:none}.drawer__overlay{display:block;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;pointer-events:all}.drawer--contained .drawer__overlay{position:absolute}.drawer--open .drawer__overlay{opacity:0.4}";
11
+ const SixDrawerStyle0 = sixDrawerCss;
11
12
 
12
- const hasPreventScroll = modal.isPreventScrollSupported();
13
13
  let id = 0;
14
14
  const SixDrawer = class {
15
15
  constructor(hostRef) {
@@ -96,30 +96,13 @@ const SixDrawer = class {
96
96
  scroll.lockBodyScrolling(this.host);
97
97
  }
98
98
  if (this.open) {
99
- if (hasPreventScroll) {
100
- // Wait for the next frame before setting initial focus so the dialog is technically visible
101
- requestAnimationFrame(() => {
102
- const sixInitialFocus = this.sixInitialFocus.emit();
103
- if (!sixInitialFocus.defaultPrevented) {
104
- panel.focus({ preventScroll: true });
105
- }
106
- });
107
- }
108
- else {
109
- // Once Safari supports { preventScroll: true } we can remove this nasty little hack, but until then we need to
110
- // wait for the transition to complete before setting focus, otherwise the panel may render in a buggy way its
111
- // out of view initially.
112
- //
113
- // Fiddle: https://jsfiddle.net/g6buoafq/1/
114
- // Safari: https://bugs.webkit.org/show_bug.cgi?id=178583
115
- //
116
- this.drawer.addEventListener('transitionend', () => {
117
- const sixInitialFocus = this.sixInitialFocus.emit();
118
- if (!sixInitialFocus.defaultPrevented) {
119
- panel.focus();
120
- }
121
- }, { once: true });
122
- }
99
+ // Wait for the next frame before setting initial focus so the dialog is technically visible
100
+ requestAnimationFrame(() => {
101
+ const sixInitialFocus = this.sixInitialFocus.emit();
102
+ if (!sixInitialFocus.defaultPrevented) {
103
+ panel.focus({ preventScroll: true });
104
+ }
105
+ });
123
106
  }
124
107
  }
125
108
  /** Hides the drawer */
@@ -144,7 +127,7 @@ const SixDrawer = class {
144
127
  this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();
145
128
  }
146
129
  render() {
147
- return (index.h("div", { ref: (el) => (this.drawer = el), part: "base", class: {
130
+ return (index.h("div", { key: 'f02d426d2a68efc12cc6590f6ee95f8e1b94105b', ref: (el) => (this.drawer = el), part: "base", class: {
148
131
  drawer: true,
149
132
  'drawer--open': this.open,
150
133
  'drawer--visible': this.isVisible,
@@ -155,14 +138,14 @@ const SixDrawer = class {
155
138
  'drawer--contained': this.contained,
156
139
  'drawer--fixed': !this.contained,
157
140
  'drawer--has-footer': this.hasFooter,
158
- }, onKeyDown: this.handleKeyDown, onTransitionEnd: this.handleTransitionEnd }, index.h("div", { part: "overlay", class: "drawer__overlay", onClick: this.handleOverlayClick, tabIndex: -1 }), index.h("div", { ref: (el) => (this.panel = el), part: "panel", class: "drawer__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 && (index.h("header", { part: "header", class: "drawer__header" }, index.h("span", { part: "title", class: "drawer__title", id: `${this.componentId}-title` }, index.h("slot", { name: "label" }, this.label || String.fromCharCode(65279))), index.h("six-icon-button", { exportparts: "base:close-button", class: "drawer__close", name: "close", onClick: this.handleCloseClick }))), index.h("div", { part: "body", class: "drawer__body" }, index.h("slot", null)), index.h("footer", { part: "footer", class: "drawer__footer" }, index.h("slot", { name: "footer", onSlotchange: this.handleSlotChange })))));
141
+ }, onKeyDown: this.handleKeyDown, onTransitionEnd: this.handleTransitionEnd }, index.h("div", { key: '81876b59d861e53ff8955e482fe2dd3df71d68a6', part: "overlay", class: "drawer__overlay", onClick: this.handleOverlayClick, tabIndex: -1 }), index.h("div", { key: '0473bed790cf275faab8ca67e048afc225eb0648', ref: (el) => (this.panel = el), part: "panel", class: "drawer__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 && (index.h("header", { key: 'efb5e8bd2e2a68ee85055c072bac41f9ff6baee5', part: "header", class: "drawer__header" }, index.h("span", { key: '4cd3e96ff627b33857f2b2b4887a11a37bcb980a', part: "title", class: "drawer__title", id: `${this.componentId}-title` }, index.h("slot", { key: 'e4a7045fcf2c1bcc9e179205f66d755d98018c28', name: "label" }, this.label || String.fromCharCode(65279))), index.h("six-icon-button", { key: 'd87a631f89b62c8a0c678b044d951082f03d6ac8', exportparts: "base:close-button", class: "drawer__close", name: "close", onClick: this.handleCloseClick }))), index.h("div", { key: '34efa989c2ddd9bf49dcd21aada4927daf70d6b1', part: "body", class: "drawer__body" }, index.h("slot", { key: 'c2af5a3a0df3350117a4a71b67f9f33db1d93129' })), index.h("footer", { key: '8e52a6326a7b98872fd967fbda28d607300871b6', part: "footer", class: "drawer__footer" }, index.h("slot", { key: 'cb76e761b9f92429059d68a8f324f36732b745d8', name: "footer", onSlotchange: this.handleSlotChange })))));
159
142
  }
160
143
  get host() { return index.getElement(this); }
161
144
  static get watchers() { return {
162
145
  "open": ["handleOpenChange"]
163
146
  }; }
164
147
  };
165
- SixDrawer.style = sixDrawerCss;
148
+ SixDrawer.style = SixDrawerStyle0;
166
149
 
167
150
  exports.six_drawer = SixDrawer;
168
151
 
@@ -1 +1 @@
1
- {"file":"six-drawer.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,YAAY,GAAG,0xEAA0xE;;ACO/yE,MAAM,gBAAgB,GAAGA,8BAAwB,EAAE,CAAC;AACpD,IAAI,EAAE,GAAG,CAAC,CAAC;MA2BE,SAAS;;;;;;;;;QACZ,gBAAW,GAAG,UAAU,EAAE,EAAE,EAAE,CAAC;QAI/B,aAAQ,G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AAC,KAAK,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CACpC,CACF,EACPA,6BACE,WAAW,EAAC,mBAAmB,EAC/B,KAAK,EAAC,eAAe,EACrB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,IAAI,CAAC,gBAAgB,GAC9B,CACK,CACV,EAEDA,iBAAK,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,cAAc,IACnCA,qBAAQ,CACJ,EAENA,oBAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,gBAAgB,IAC1CA,kBAAM,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAI,CACpD,CACL,CACF,EACN;KACH;;;;;;;;;;","names":["isPreventScrollSupported","hasSlot","Modal","unlockBodyScrolling","lockBodyScrolling","h"],"sources":["src/components/six-drawer/six-drawer.scss?tag=six-drawer&encapsulation=shadow","src/components/six-drawer/six-drawer.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --size: The preferred size of the drawer. This will be applied to the drawer's width or height depending on its\n * `placement`. Note that the drawer will shrink to accommodate smaller screens.\n */\n:host {\n --size: 25rem;\n\n display: contents;\n}\n\n.drawer {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n\n &:not(.drawer--visible) {\n @include hidden;\n }\n}\n\n.drawer--contained {\n position: absolute;\n z-index: initial;\n}\n\n.drawer--fixed {\n position: fixed;\n z-index: var(--six-z-index-drawer);\n}\n\n.drawer__panel {\n position: absolute;\n display: flex;\n flex-direction: column;\n z-index: 2;\n max-width: 100%;\n max-height: 100%;\n background-color: var(--six-drawer-background-color);\n color: var(--six-drawer-color);\n box-shadow: var(--six-shadow-large);\n transition: var(--six-transition-medium) transform;\n overflow: auto;\n pointer-events: all;\n\n &:focus {\n outline: none;\n }\n}\n\n.drawer--top .drawer__panel {\n top: 0;\n right: auto;\n bottom: auto;\n left: 0;\n width: 100%;\n height: var(--size);\n transform: translate(0, -100%);\n}\n\n.drawer--right .drawer__panel {\n top: 0;\n right: 0;\n bottom: auto;\n left: auto;\n width: var(--size);\n height: 100%;\n transform: translate(100%, 0);\n}\n\n.drawer--bottom .drawer__panel {\n top: auto;\n right: auto;\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--size);\n transform: translate(0, 100%);\n}\n\n.drawer--left .drawer__panel {\n top: 0;\n right: auto;\n bottom: auto;\n left: 0;\n width: var(--size);\n height: 100%;\n transform: translate(-100%, 0);\n}\n\n.drawer--open .drawer__panel {\n // don't use translate here or it will cause problems with popovers inside the drawer e.g. dropdown, select etc.\n transform: none;\n}\n\n.drawer__header {\n display: flex;\n}\n\n.drawer__title {\n flex: 1 1 auto;\n font-size: var(--six-font-size-large);\n line-height: var(--six-line-height-dense);\n padding: var(--six-spacing-large);\n}\n\n.drawer__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-large);\n}\n\n.drawer__body {\n flex: 1 1 auto;\n padding: var(--six-spacing-large);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.drawer__footer {\n text-align: right;\n padding: var(--six-spacing-large);\n\n ::slotted(six-button:not(:last-of-type)) {\n margin-right: var(--six-spacing-x-small);\n }\n}\n\n.drawer:not(.drawer--has-footer) .drawer__footer {\n display: none;\n}\n\n.drawer__overlay {\n display: block;\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 pointer-events: all;\n}\n\n.drawer--contained .drawer__overlay {\n position: absolute;\n}\n\n.drawer--open .drawer__overlay {\n opacity: 0.4;\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();\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 drawer's content.\n * @slot label - The drawer's label. Alternatively, you can use the label prop.\n * @slot footer - The drawer'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 drawer panel (where the drawer and its content is rendered).\n * @part header - The drawer header.\n * @part title - The drawer title.\n * @part close-button - The close button.\n * @part body - The drawer body.\n * @part footer - The drawer footer.\n */\n\n@Component({\n tag: 'six-drawer',\n styleUrl: 'six-drawer.scss',\n shadow: true,\n})\nexport class SixDrawer {\n private componentId = `drawer-${++id}`;\n private drawer?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDrawerElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the drawer 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 drawer'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 /** The direction from which the drawer will open. */\n @Prop() placement: 'top' | 'right' | 'bottom' | 'left' = 'right';\n\n /**\n * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\n * its parent element, set this prop and add `position: relative` to the parent.\n */\n @Prop() contained = false;\n\n /**\n * Removes the header. This will also remove the default close button, so please ensure you provide an easy,\n * accessible way for users to dismiss the drawer.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the drawer opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-drawer-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer opens and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the drawer closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-drawer-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer closes and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the drawer 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 drawer, such as an input or button.\n */\n @Event({ eventName: 'six-drawer-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the drawer from closing. */\n @Event({ eventName: 'six-drawer-overlay-dismiss' }) sixOverlayDismiss!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => (this.contained ? null : 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 // if the sidebar is open by default we need to manually reset the\n // transition variables since there will be no transition event\n this.resetTransitionVariables();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the drawer */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.drawer == 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\n // Lock body scrolling only if the drawer isn't contained\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this.host);\n }\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.drawer.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 drawer */\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 === 'transform' && target.classList.contains('drawer__panel')) {\n this.resetTransitionVariables();\n }\n };\n\n private resetTransitionVariables() {\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 render() {\n return (\n <div\n ref={(el) => (this.drawer = el)}\n part=\"base\"\n class={{\n drawer: true,\n 'drawer--open': this.open,\n 'drawer--visible': this.isVisible,\n 'drawer--top': this.placement === 'top',\n 'drawer--right': this.placement === 'right',\n 'drawer--bottom': this.placement === 'bottom',\n 'drawer--left': this.placement === 'left',\n 'drawer--contained': this.contained,\n 'drawer--fixed': !this.contained,\n 'drawer--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" onClick={this.handleOverlayClick} tabIndex={-1} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"drawer__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=\"drawer__header\">\n <span part=\"title\" class=\"drawer__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=\"drawer__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"drawer__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"six-drawer.entry.cjs.js","mappings":";;;;;;;;;AAAA,MAAM,YAAY,GAAG,0xEAA0xE,CAAC;AAChzE,wBAAe,YAAY;;ACK3B,IAAI,EAAE,GAAG,CAAC,CAAC;MA2BE,SAAS;;;;;;;;;QACZ,gBAAW,GAAG,UAAU,EAAE,EAAE,EAAE,CAAC;QAI/B,aAAQ,GAAG,KAAK,CAAC;QACjB,aAAQ,GAAG,KAAK,CAAC;QAsIjB,qBAAgB,GAAG;YACzB,IAAI,CAAC,IAAI,EAAE,CAAC;SACb,CAAC;QAEM,kBAAa,GAAG,CAAC,KAAoB;YAC3C,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,EA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er/six-drawer.scss?tag=six-drawer&encapsulation=shadow","src/components/six-drawer/six-drawer.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --size: The preferred size of the drawer. This will be applied to the drawer's width or height depending on its\n * `placement`. Note that the drawer will shrink to accommodate smaller screens.\n */\n:host {\n --size: 25rem;\n\n display: contents;\n}\n\n.drawer {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n\n &:not(.drawer--visible) {\n @include hidden;\n }\n}\n\n.drawer--contained {\n position: absolute;\n z-index: initial;\n}\n\n.drawer--fixed {\n position: fixed;\n z-index: var(--six-z-index-drawer);\n}\n\n.drawer__panel {\n position: absolute;\n display: flex;\n flex-direction: column;\n z-index: 2;\n max-width: 100%;\n max-height: 100%;\n background-color: var(--six-drawer-background-color);\n color: var(--six-drawer-color);\n box-shadow: var(--six-shadow-large);\n transition: var(--six-transition-medium) transform;\n overflow: auto;\n pointer-events: all;\n\n &:focus {\n outline: none;\n }\n}\n\n.drawer--top .drawer__panel {\n top: 0;\n right: auto;\n bottom: auto;\n left: 0;\n width: 100%;\n height: var(--size);\n transform: translate(0, -100%);\n}\n\n.drawer--right .drawer__panel {\n top: 0;\n right: 0;\n bottom: auto;\n left: auto;\n width: var(--size);\n height: 100%;\n transform: translate(100%, 0);\n}\n\n.drawer--bottom .drawer__panel {\n top: auto;\n right: auto;\n bottom: 0;\n left: 0;\n width: 100%;\n height: var(--size);\n transform: translate(0, 100%);\n}\n\n.drawer--left .drawer__panel {\n top: 0;\n right: auto;\n bottom: auto;\n left: 0;\n width: var(--size);\n height: 100%;\n transform: translate(-100%, 0);\n}\n\n.drawer--open .drawer__panel {\n // don't use translate here or it will cause problems with popovers inside the drawer e.g. dropdown, select etc.\n transform: none;\n}\n\n.drawer__header {\n display: flex;\n}\n\n.drawer__title {\n flex: 1 1 auto;\n font-size: var(--six-font-size-large);\n line-height: var(--six-line-height-dense);\n padding: var(--six-spacing-large);\n}\n\n.drawer__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-large);\n}\n\n.drawer__body {\n flex: 1 1 auto;\n padding: var(--six-spacing-large);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.drawer__footer {\n text-align: right;\n padding: var(--six-spacing-large);\n\n ::slotted(six-button:not(:last-of-type)) {\n margin-right: var(--six-spacing-x-small);\n }\n}\n\n.drawer:not(.drawer--has-footer) .drawer__footer {\n display: none;\n}\n\n.drawer__overlay {\n display: block;\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 pointer-events: all;\n}\n\n.drawer--contained .drawer__overlay {\n position: absolute;\n}\n\n.drawer--open .drawer__overlay {\n opacity: 0.4;\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 Modal from '../../utils/modal';\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 drawer's content.\n * @slot label - The drawer's label. Alternatively, you can use the label prop.\n * @slot footer - The drawer'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 drawer panel (where the drawer and its content is rendered).\n * @part header - The drawer header.\n * @part title - The drawer title.\n * @part close-button - The close button.\n * @part body - The drawer body.\n * @part footer - The drawer footer.\n */\n\n@Component({\n tag: 'six-drawer',\n styleUrl: 'six-drawer.scss',\n shadow: true,\n})\nexport class SixDrawer {\n private componentId = `drawer-${++id}`;\n private drawer?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDrawerElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the drawer 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 drawer'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 /** The direction from which the drawer will open. */\n @Prop() placement: 'top' | 'right' | 'bottom' | 'left' = 'right';\n\n /**\n * By default, the drawer slides out of its containing block (usually the viewport). To make the drawer slide out of\n * its parent element, set this prop and add `position: relative` to the parent.\n */\n @Prop() contained = false;\n\n /**\n * Removes the header. This will also remove the default close button, so please ensure you provide an easy,\n * accessible way for users to dismiss the drawer.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the drawer opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-drawer-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer opens and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the drawer closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-drawer-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the drawer closes and all transitions are complete. */\n @Event({ eventName: 'six-drawer-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the drawer 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 drawer, such as an input or button.\n */\n @Event({ eventName: 'six-drawer-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the drawer from closing. */\n @Event({ eventName: 'six-drawer-overlay-dismiss' }) sixOverlayDismiss!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => (this.contained ? null : 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 // if the sidebar is open by default we need to manually reset the\n // transition variables since there will be no transition event\n this.resetTransitionVariables();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the drawer */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.drawer == 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\n // Lock body scrolling only if the drawer isn't contained\n if (!this.contained) {\n this.modal.activate();\n lockBodyScrolling(this.host);\n }\n\n if (this.open) {\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 }\n }\n\n /** Hides the drawer */\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 === 'transform' && target.classList.contains('drawer__panel')) {\n this.resetTransitionVariables();\n }\n };\n\n private resetTransitionVariables() {\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 render() {\n return (\n <div\n ref={(el) => (this.drawer = el)}\n part=\"base\"\n class={{\n drawer: true,\n 'drawer--open': this.open,\n 'drawer--visible': this.isVisible,\n 'drawer--top': this.placement === 'top',\n 'drawer--right': this.placement === 'right',\n 'drawer--bottom': this.placement === 'bottom',\n 'drawer--left': this.placement === 'left',\n 'drawer--contained': this.contained,\n 'drawer--fixed': !this.contained,\n 'drawer--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"drawer__overlay\" onClick={this.handleOverlayClick} tabIndex={-1} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"drawer__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=\"drawer__header\">\n <span part=\"title\" class=\"drawer__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=\"drawer__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"drawer__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"drawer__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d7748d51.js');
5
+ const index = require('./index-417a06c8.js');
6
6
  const popover = require('./popover-1e7c09f1.js');
7
7
  const eventListeners = require('./event-listeners-9fb878f1.js');
8
8
  const executionControl = require('./execution-control-d728da70.js');
@@ -32,6 +32,7 @@ function getNearestTabbableElement(el) {
32
32
  }
33
33
 
34
34
  const sixDropdownCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}: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{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);border:1px solid var(--six-color-web-rock-300);box-shadow:var(--six-shadow-small);opacity:0;pointer-events:none;transform:scale(0.9);transition:var(--six-transition-fast) opacity, var(--six-transition-fast) transform;max-width:90vw}.dropdown__panel__scroll{max-height:18.75rem;overflow-y:auto;overflow-x:hidden;overscroll-behavior:none}.dropdown__panel__scroll--virtual{overflow-y:hidden;overflow-x:hidden}.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}.filter{border-bottom:1px solid var(--six-color-web-rock-300)}.filter__icon{color:var(--six-color-web-rock-600)}";
35
+ const SixDropdownStyle0 = sixDropdownCss;
35
36
 
36
37
  let id = 0;
37
38
  const SixDropdown = class {
@@ -479,19 +480,19 @@ const SixDropdown = class {
479
480
  }
480
481
  }
481
482
  render() {
482
- return (index.h("div", { part: "base", id: this.componentId, class: {
483
+ return (index.h("div", { key: '26cba1568dfda35efa2791df5c2228aa51201fb9', part: "base", id: this.componentId, class: {
483
484
  dropdown: true,
484
485
  'dropdown--open': this.open,
485
- } }, index.h("span", { part: "trigger", class: "dropdown__trigger", ref: (el) => (this.trigger = el), onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown, onKeyUp: this.handleTriggerKeyUp }, index.h("slot", { name: "trigger", ref: (el) => (this.triggerSlot = el), onSlotchange: this.handleTriggerSlotChange })), index.h("div", { ref: (el) => (this.positioner = el), class: {
486
+ } }, index.h("span", { key: '5bd9acd7e1470a88158b233df327090cccaf6707', part: "trigger", class: "dropdown__trigger", ref: (el) => (this.trigger = el), onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown, onKeyUp: this.handleTriggerKeyUp }, index.h("slot", { key: 'ab3915fb99a943f5e1ab8b9ad6c0339e6312614f', name: "trigger", ref: (el) => (this.triggerSlot = el), onSlotchange: this.handleTriggerSlotChange })), index.h("div", { key: 'f9615d2a48275ce167a683ffc5b6f1b4f3945732', ref: (el) => (this.positioner = el), class: {
486
487
  dropdown__positioner: true,
487
488
  dropdown__positioner__filtered: (this.filter || this.asyncFilter) && !this.hoist,
488
- } }, index.h("div", { ref: (el) => (this.panel = el), part: "panel", class: "dropdown__panel", role: "menu", "aria-hidden": this.open ? 'false' : 'true', "aria-labelledby": this.componentId }, this.filterEnabled && (index.h("six-input", { class: {
489
+ } }, index.h("div", { key: '121185720985a0650aa7a03d697fa66bb9752c35', ref: (el) => (this.panel = el), part: "panel", class: "dropdown__panel", role: "menu", "aria-hidden": this.open ? 'false' : 'true', "aria-labelledby": this.componentId }, this.filterEnabled && (index.h("six-input", { key: '7422f2a0179806aa116c7ae42aa71bcb79167395', class: {
489
490
  filter: true,
490
491
  'filter-hidden': !this.open,
491
- }, "dropdown-search": true, "aria-hidden": this.open ? 'false' : 'true', ref: (el) => (this.filterInputElement = el), placeholder: this.filterPlaceholder }, index.h("six-icon", { class: "filter__icon", slot: "suffix", size: "small" }, "search"))), index.h("div", { class: {
492
+ }, "dropdown-search": true, "aria-hidden": this.open ? 'false' : 'true', ref: (el) => (this.filterInputElement = el), placeholder: this.filterPlaceholder }, index.h("six-icon", { key: '5e22ddbdb949c2ec389bb238202e02e0b5905c66', class: "filter__icon", slot: "suffix", size: "small" }, "search"))), index.h("div", { key: '3212216bf8a156711ff7ea68ce916626146c1828', class: {
492
493
  dropdown__panel__scroll: true,
493
494
  'dropdown__panel__scroll--virtual': this.virtualScroll,
494
- }, onScroll: this.handleDropdownScroll, ref: (el) => (this.scrollPanel = el) }, index.h("slot", { ref: (el) => (this.panelSlot = el) }), this.options.length > 0 && (index.h("six-menu", { part: "menu", items: this.renderedOptions, virtualScroll: this.virtualScroll }))), index.h("slot", { name: "dropdown-footer" })))));
495
+ }, onScroll: this.handleDropdownScroll, ref: (el) => (this.scrollPanel = el) }, index.h("slot", { key: '37626706d68beb0e3894e5db14af370a7433e5e0', ref: (el) => (this.panelSlot = el) }), this.options.length > 0 && (index.h("six-menu", { key: '014217ffca577be6a6d46aa212df955eb93f3233', part: "menu", items: this.renderedOptions, virtualScroll: this.virtualScroll }))), index.h("slot", { key: 'a9fd4bc79298e9e720f9608717dec61c3bbc3100', name: "dropdown-footer" })))));
495
496
  }
496
497
  get host() { return index.getElement(this); }
497
498
  static get watchers() { return {
@@ -518,14 +519,16 @@ async function containsFilterTerm(menuItem, lowerCaseFilterTerm) {
518
519
  return (menuItem.value.toLowerCase().includes(lowerCaseFilterTerm) ||
519
520
  (await menuItem.getTextLabel()).toLowerCase().includes(lowerCaseFilterTerm));
520
521
  }
521
- SixDropdown.style = sixDropdownCss;
522
+ SixDropdown.style = SixDropdownStyle0;
522
523
 
523
524
  const sixMenuCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:border-box}:host{display:block}.menu{padding:var(--six-spacing-xx-small) 0;border:none;box-shadow:var(--six-shadow-small);overflow-y:auto;overflow-x:hidden}.menu:focus{outline:none}.no-shadow{box-shadow:none}";
525
+ const SixMenuStyle0 = sixMenuCss;
524
526
 
525
527
  const isFocusedMenuItem = (menuItem) => { var _a, _b, _c; return (_c = (_b = (_a = menuItem === null || menuItem === void 0 ? void 0 : menuItem.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.menu-item')) === null || _b === void 0 ? void 0 : _b.classList) === null || _c === void 0 ? void 0 : _c.contains('menu-item--focused'); };
526
528
  const isSIXMenuItemElement = (el) => (el === null || el === void 0 ? void 0 : el.tagName.toLowerCase()) === 'six-menu-item';
527
529
  const mapToMenuItem = ({ value, label }) => (index.h("six-menu-item", { key: value, value: value }, label));
528
530
  const DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING = 5;
531
+ const DEFAULT_SIX_MENU_ITEM_HEIGHT_FOR_VIRTUAL_SCROLLING = 48;
529
532
  const DEFAULT_SIX_MENU_ITEM_HEIGHT = 64;
530
533
  const SixMenu = class {
531
534
  constructor(hostRef) {
@@ -547,7 +550,9 @@ const SixMenu = class {
547
550
  this.scrollingDebounce = 15;
548
551
  this.disableKeyboardHandling = false;
549
552
  this.scrollingIndex = 0;
550
- this.sixMenuItemHeight = DEFAULT_SIX_MENU_ITEM_HEIGHT;
553
+ this.sixMenuItemHeight = this.virtualScroll
554
+ ? DEFAULT_SIX_MENU_ITEM_HEIGHT_FOR_VIRTUAL_SCROLLING
555
+ : DEFAULT_SIX_MENU_ITEM_HEIGHT;
551
556
  }
552
557
  connectedCallback() {
553
558
  this.handleClick = this.handleClick.bind(this);
@@ -590,6 +595,9 @@ const SixMenu = class {
590
595
  getItemsShown() {
591
596
  var _a;
592
597
  const defaultItemsShown = this.virtualScroll ? DEFAULT_NUMBER_OF_ITEMS_SHOWN_FOR_VIRTUAL_SCROLLING : 0;
598
+ if (this.items && this.items.length === 1) {
599
+ return 0;
600
+ }
593
601
  return (_a = this.itemsShown) !== null && _a !== void 0 ? _a : defaultItemsShown;
594
602
  }
595
603
  setupForVirtualScrollingAfterRendering() {
@@ -699,6 +707,9 @@ const SixMenu = class {
699
707
  // calculate the proper height to show the correct number of items
700
708
  styles.height = `${((_a = this.getItemsShown()) !== null && _a !== void 0 ? _a : 0) * this.sixMenuItemHeight}px`;
701
709
  }
710
+ else if (this.items && this.items.length === 1) {
711
+ styles.height = 'auto';
712
+ }
702
713
  return Object.assign({}, styles);
703
714
  }
704
715
  getMenuContainerStyle() {
@@ -711,7 +722,7 @@ const SixMenu = class {
711
722
  }
712
723
  getScrollbarGhostStyle() {
713
724
  const styles = {};
714
- if (this.virtualScroll && this.items !== null) {
725
+ if (this.virtualScroll && this.items !== null && this.items.length > 1) {
715
726
  styles.height = `${this.items.length * this.sixMenuItemHeight - this.itemSize * this.sixMenuItemHeight}px`;
716
727
  }
717
728
  return Object.assign({}, styles);
@@ -728,14 +739,14 @@ const SixMenu = class {
728
739
  .map(({ value, label }) => (index.h("six-menu-item", { checkType: "check", key: value, value: value }, label)));
729
740
  }
730
741
  render() {
731
- return (index.h("div", { ref: (el) => (this.menuWrapper = el), style: this.getMenuWrapperStyle(), part: "wrapper", class: {
742
+ return (index.h("div", { key: 'a346d393b279517ec252289e173e1d2e1ac82147', ref: (el) => (this.menuWrapper = el), style: this.getMenuWrapperStyle(), part: "wrapper", class: {
732
743
  menu: true,
733
744
  '.no-shadow': this.removeBoxShadow,
734
- } }, index.h("div", { ref: (el) => (this.menu = el), part: "base", role: "menu", onClick: this.handleClick, onKeyDown: this.handleKeyDown, tabIndex: 0, style: this.getMenuContainerStyle() }, index.h("slot", null), this.renderItems()), this.virtualScroll && index.h("div", { style: this.getScrollbarGhostStyle() })));
745
+ } }, index.h("div", { key: 'eeca9d33ecede486adc958510b2bc7028517a79a', ref: (el) => (this.menu = el), part: "base", role: "menu", onClick: this.handleClick, onKeyDown: this.handleKeyDown, tabIndex: 0, style: this.getMenuContainerStyle() }, index.h("slot", { key: 'c46d98b34ddaec7d041ee2ad4aa40a048a93cc80' }), this.renderItems()), this.virtualScroll && index.h("div", { key: '535cf4f968da60291f420da2722fc1692c0c064a', style: this.getScrollbarGhostStyle() })));
735
746
  }
736
747
  get host() { return index.getElement(this); }
737
748
  };
738
- SixMenu.style = sixMenuCss;
749
+ SixMenu.style = SixMenuStyle0;
739
750
 
740
751
  exports.six_dropdown = SixDropdown;
741
752
  exports.six_menu = SixMenu;