@six-group/ui-library 0.0.0-insider.e148618 → 0.0.0-insider.e433304

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 (1112) hide show
  1. package/README.md +9 -0
  2. package/dist/cjs/error-messages-6e8049a4.js +119 -0
  3. package/dist/cjs/error-messages-6e8049a4.js.map +1 -0
  4. package/dist/cjs/event-listeners-9fb878f1.js +61 -0
  5. package/dist/cjs/event-listeners-9fb878f1.js.map +1 -0
  6. package/dist/cjs/{execution-control-b4707294.js → execution-control-d728da70.js} +15 -15
  7. package/dist/cjs/{execution-control-b4707294.js.map → execution-control-d728da70.js.map} +1 -1
  8. package/dist/cjs/focus-visible-e2c9255a.js +47 -0
  9. package/dist/cjs/{focus-visible-ae2470dd.js.map → focus-visible-e2c9255a.js.map} +1 -1
  10. package/dist/cjs/form-9ebaae7c.js +20 -0
  11. package/dist/cjs/{form-2df8c5bb.js.map → form-9ebaae7c.js.map} +1 -1
  12. package/dist/cjs/form-control-8d64e974.js +36 -0
  13. package/dist/cjs/form-control-8d64e974.js.map +1 -0
  14. package/dist/cjs/{index-900437fc.js → index-d7748d51.js} +420 -446
  15. package/dist/cjs/index-d7748d51.js.map +1 -0
  16. package/dist/cjs/index.cjs.js +55 -87
  17. package/dist/cjs/index.cjs.js.map +1 -1
  18. package/dist/cjs/loader.cjs.js +2 -2
  19. package/dist/cjs/modal-3ce015be.js +52 -0
  20. package/dist/cjs/modal-3ce015be.js.map +1 -0
  21. package/dist/cjs/{popover-2df7e154.js → popover-1e7c09f1.js} +99 -99
  22. package/dist/cjs/popover-1e7c09f1.js.map +1 -0
  23. package/dist/cjs/popup-e854acda.js +103 -0
  24. package/dist/cjs/popup-e854acda.js.map +1 -0
  25. package/dist/cjs/scroll-68033901.js +68 -0
  26. package/dist/cjs/scroll-68033901.js.map +1 -0
  27. package/dist/cjs/six-alert.cjs.entry.js +142 -110
  28. package/dist/cjs/six-alert.cjs.entry.js.map +1 -1
  29. package/dist/cjs/six-avatar.cjs.entry.js +21 -21
  30. package/dist/cjs/six-avatar.cjs.entry.js.map +1 -1
  31. package/dist/cjs/six-badge.cjs.entry.js +23 -23
  32. package/dist/cjs/six-badge.cjs.entry.js.map +1 -1
  33. package/dist/cjs/six-button.cjs.entry.js +95 -95
  34. package/dist/cjs/six-button.cjs.entry.js.map +1 -1
  35. package/dist/cjs/six-card.cjs.entry.js +8 -8
  36. package/dist/cjs/six-card.cjs.entry.js.map +1 -1
  37. package/dist/cjs/six-checkbox_2.cjs.entry.js +190 -0
  38. package/dist/cjs/six-checkbox_2.cjs.entry.js.map +1 -0
  39. package/dist/cjs/six-datepicker.cjs.entry.js +860 -839
  40. package/dist/cjs/six-datepicker.cjs.entry.js.map +1 -1
  41. package/dist/cjs/six-details.cjs.entry.js +127 -127
  42. package/dist/cjs/six-details.cjs.entry.js.map +1 -1
  43. package/dist/cjs/six-dialog.cjs.entry.js +131 -129
  44. package/dist/cjs/six-dialog.cjs.entry.js.map +1 -1
  45. package/dist/cjs/six-drawer.cjs.entry.js +147 -147
  46. package/dist/cjs/six-drawer.cjs.entry.js.map +1 -1
  47. package/dist/cjs/six-dropdown_2.cjs.entry.js +709 -637
  48. package/dist/cjs/six-dropdown_2.cjs.entry.js.map +1 -1
  49. package/dist/cjs/six-error-page.cjs.entry.js +82 -82
  50. package/dist/cjs/six-error-page.cjs.entry.js.map +1 -1
  51. package/dist/cjs/six-error.cjs.entry.js +21 -0
  52. package/dist/cjs/six-error.cjs.entry.js.map +1 -0
  53. package/dist/cjs/six-file-list-item.cjs.entry.js +34 -34
  54. package/dist/cjs/six-file-list-item.cjs.entry.js.map +1 -1
  55. package/dist/cjs/six-file-list.cjs.entry.js +7 -7
  56. package/dist/cjs/six-file-list.cjs.entry.js.map +1 -1
  57. package/dist/cjs/six-file-upload.cjs.entry.js +99 -99
  58. package/dist/cjs/six-file-upload.cjs.entry.js.map +1 -1
  59. package/dist/cjs/six-footer.cjs.entry.js +8 -8
  60. package/dist/cjs/six-footer.cjs.entry.js.map +1 -1
  61. package/dist/cjs/six-group-label.cjs.entry.js +43 -43
  62. package/dist/cjs/six-group-label.cjs.entry.js.map +1 -1
  63. package/dist/cjs/six-header.cjs.entry.js +171 -156
  64. package/dist/cjs/six-header.cjs.entry.js.map +1 -1
  65. package/dist/cjs/six-icon-button.cjs.entry.js +32 -32
  66. package/dist/cjs/six-icon-button.cjs.entry.js.map +1 -1
  67. package/dist/cjs/six-icon.cjs.entry.js +22 -22
  68. package/dist/cjs/six-icon.cjs.entry.js.map +1 -1
  69. package/dist/cjs/six-input.cjs.entry.js +192 -187
  70. package/dist/cjs/six-input.cjs.entry.js.map +1 -1
  71. package/dist/cjs/six-item-picker.cjs.entry.js +405 -309
  72. package/dist/cjs/six-item-picker.cjs.entry.js.map +1 -1
  73. package/dist/cjs/six-language-switcher.cjs.entry.js +46 -46
  74. package/dist/cjs/six-language-switcher.cjs.entry.js.map +1 -1
  75. package/dist/cjs/six-layout-grid.cjs.entry.js +20 -20
  76. package/dist/cjs/six-layout-grid.cjs.entry.js.map +1 -1
  77. package/dist/cjs/six-main-container.cjs.entry.js +9 -9
  78. package/dist/cjs/six-main-container.cjs.entry.js.map +1 -1
  79. package/dist/cjs/six-menu-divider.cjs.entry.js +8 -8
  80. package/dist/cjs/six-menu-divider.cjs.entry.js.map +1 -1
  81. package/dist/cjs/six-menu-label.cjs.entry.js +8 -8
  82. package/dist/cjs/six-menu-label.cjs.entry.js.map +1 -1
  83. package/dist/cjs/six-picto.cjs.entry.js +14 -14
  84. package/dist/cjs/six-picto.cjs.entry.js.map +1 -1
  85. package/dist/cjs/six-progress-bar.cjs.entry.js +15 -15
  86. package/dist/cjs/six-progress-bar.cjs.entry.js.map +1 -1
  87. package/dist/cjs/six-progress-ring.cjs.entry.js +30 -30
  88. package/dist/cjs/six-progress-ring.cjs.entry.js.map +1 -1
  89. package/dist/cjs/six-radio.cjs.entry.js +104 -104
  90. package/dist/cjs/six-radio.cjs.entry.js.map +1 -1
  91. package/dist/cjs/six-range.cjs.entry.js +180 -177
  92. package/dist/cjs/six-range.cjs.entry.js.map +1 -1
  93. package/dist/cjs/six-root.cjs.entry.js +11 -30
  94. package/dist/cjs/six-root.cjs.entry.js.map +1 -1
  95. package/dist/cjs/six-search-field.cjs.entry.js +44 -44
  96. package/dist/cjs/six-search-field.cjs.entry.js.map +1 -1
  97. package/dist/cjs/six-select.cjs.entry.js +497 -363
  98. package/dist/cjs/six-select.cjs.entry.js.map +1 -1
  99. package/dist/cjs/six-sidebar-item-group.cjs.entry.js +56 -45
  100. package/dist/cjs/six-sidebar-item-group.cjs.entry.js.map +1 -1
  101. package/dist/cjs/six-sidebar-item.cjs.entry.js +17 -15
  102. package/dist/cjs/six-sidebar-item.cjs.entry.js.map +1 -1
  103. package/dist/cjs/six-sidebar.cjs.entry.js +174 -174
  104. package/dist/cjs/six-sidebar.cjs.entry.js.map +1 -1
  105. package/dist/cjs/six-spinner.cjs.entry.js +15 -15
  106. package/dist/cjs/six-spinner.cjs.entry.js.map +1 -1
  107. package/dist/cjs/six-stage-indicator.cjs.entry.js +22 -0
  108. package/dist/cjs/six-stage-indicator.cjs.entry.js.map +1 -0
  109. package/dist/cjs/six-switch.cjs.entry.js +107 -89
  110. package/dist/cjs/six-switch.cjs.entry.js.map +1 -1
  111. package/dist/cjs/six-tab-group.cjs.entry.js +230 -235
  112. package/dist/cjs/six-tab-group.cjs.entry.js.map +1 -1
  113. package/dist/cjs/six-tab-panel.cjs.entry.js +14 -14
  114. package/dist/cjs/six-tab-panel.cjs.entry.js.map +1 -1
  115. package/dist/cjs/six-tab.cjs.entry.js +55 -39
  116. package/dist/cjs/six-tab.cjs.entry.js.map +1 -1
  117. package/dist/cjs/six-tag.cjs.entry.js +55 -33
  118. package/dist/cjs/six-tag.cjs.entry.js.map +1 -1
  119. package/dist/cjs/six-textarea.cjs.entry.js +181 -178
  120. package/dist/cjs/six-textarea.cjs.entry.js.map +1 -1
  121. package/dist/cjs/six-tile.cjs.entry.js +77 -77
  122. package/dist/cjs/six-tile.cjs.entry.js.map +1 -1
  123. package/dist/cjs/six-timepicker.cjs.entry.js +348 -353
  124. package/dist/cjs/six-timepicker.cjs.entry.js.map +1 -1
  125. package/dist/cjs/six-tooltip.cjs.entry.js +148 -148
  126. package/dist/cjs/six-tooltip.cjs.entry.js.map +1 -1
  127. package/dist/cjs/slot-1b1232a1.js +51 -0
  128. package/dist/cjs/slot-1b1232a1.js.map +1 -0
  129. package/dist/cjs/types-d3da200b.js +19 -0
  130. package/dist/cjs/types-d3da200b.js.map +1 -0
  131. package/dist/cjs/ui-library.cjs.js +3 -3
  132. package/dist/cjs/ui-library.cjs.js.map +1 -1
  133. package/dist/collection/collection-manifest.json +6 -6
  134. package/dist/collection/components/six-alert/six-alert.css +5 -1
  135. package/dist/collection/components/six-alert/six-alert.js +382 -337
  136. package/dist/collection/components/six-alert/six-alert.js.map +1 -1
  137. package/dist/collection/components/six-alert/test/six-alert.spec.js +7 -7
  138. package/dist/collection/components/six-alert/test/six-alert.spec.js.map +1 -1
  139. package/dist/collection/components/six-avatar/six-avatar.css +2 -2
  140. package/dist/collection/components/six-avatar/six-avatar.js +111 -111
  141. package/dist/collection/components/six-avatar/six-avatar.js.map +1 -1
  142. package/dist/collection/components/six-avatar/test/six-avatar.spec.js +7 -7
  143. package/dist/collection/components/six-avatar/test/six-avatar.spec.js.map +1 -1
  144. package/dist/collection/components/six-badge/six-badge.css +1 -1
  145. package/dist/collection/components/six-badge/six-badge.js +90 -90
  146. package/dist/collection/components/six-badge/six-badge.js.map +1 -1
  147. package/dist/collection/components/six-badge/test/six-badge.spec.js +7 -7
  148. package/dist/collection/components/six-badge/test/six-badge.spec.js.map +1 -1
  149. package/dist/collection/components/six-button/six-button.css +7 -31
  150. package/dist/collection/components/six-button/six-button.js +447 -446
  151. package/dist/collection/components/six-button/six-button.js.map +1 -1
  152. package/dist/collection/components/six-button/test/six-button.spec.js +44 -44
  153. package/dist/collection/components/six-button/test/six-button.spec.js.map +1 -1
  154. package/dist/collection/components/six-card/six-card.css +4 -5
  155. package/dist/collection/components/six-card/six-card.js +15 -15
  156. package/dist/collection/components/six-card/six-card.js.map +1 -1
  157. package/dist/collection/components/six-card/test/six-card.spec.js +7 -7
  158. package/dist/collection/components/six-card/test/six-card.spec.js.map +1 -1
  159. package/dist/collection/components/six-checkbox/six-checkbox.css +10 -2
  160. package/dist/collection/components/six-checkbox/six-checkbox.js +421 -399
  161. package/dist/collection/components/six-checkbox/six-checkbox.js.map +1 -1
  162. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js +19 -15
  163. package/dist/collection/components/six-checkbox/test/six-checkbox.spec.js.map +1 -1
  164. package/dist/collection/components/six-datepicker/components/day-selection.js +8 -8
  165. package/dist/collection/components/six-datepicker/components/day-selection.js.map +1 -1
  166. package/dist/collection/components/six-datepicker/components/month-selection.js +8 -8
  167. package/dist/collection/components/six-datepicker/components/month-selection.js.map +1 -1
  168. package/dist/collection/components/six-datepicker/components/year-selection.js +8 -8
  169. package/dist/collection/components/six-datepicker/components/year-selection.js.map +1 -1
  170. package/dist/collection/components/six-datepicker/six-date-formats.js +21 -20
  171. package/dist/collection/components/six-datepicker/six-date-formats.js.map +1 -1
  172. package/dist/collection/components/six-datepicker/six-datepicker.css +1 -1
  173. package/dist/collection/components/six-datepicker/six-datepicker.js +1052 -1039
  174. package/dist/collection/components/six-datepicker/six-datepicker.js.map +1 -1
  175. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js +8 -8
  176. package/dist/collection/components/six-datepicker/test/six-datepicker.spec.js.map +1 -1
  177. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js +14 -14
  178. package/dist/collection/components/six-datepicker/test/six-datepicker.test-helpers.js.map +1 -1
  179. package/dist/collection/components/six-details/six-details.css +4 -6
  180. package/dist/collection/components/six-details/six-details.js +410 -410
  181. package/dist/collection/components/six-details/six-details.js.map +1 -1
  182. package/dist/collection/components/six-details/test/six-details.spec.js +7 -7
  183. package/dist/collection/components/six-details/test/six-details.spec.js.map +1 -1
  184. package/dist/collection/components/six-dialog/six-dialog.css +2 -2
  185. package/dist/collection/components/six-dialog/six-dialog.js +356 -354
  186. package/dist/collection/components/six-dialog/six-dialog.js.map +1 -1
  187. package/dist/collection/components/six-dialog/test/six-dialog.spec.js +7 -7
  188. package/dist/collection/components/six-dialog/test/six-dialog.spec.js.map +1 -1
  189. package/dist/collection/components/six-drawer/six-drawer.css +2 -2
  190. package/dist/collection/components/six-drawer/six-drawer.js +409 -409
  191. package/dist/collection/components/six-drawer/six-drawer.js.map +1 -1
  192. package/dist/collection/components/six-drawer/test/six-drawer.spec.js +8 -8
  193. package/dist/collection/components/six-drawer/test/six-drawer.spec.js.map +1 -1
  194. package/dist/collection/components/six-dropdown/six-dropdown.css +22 -6
  195. package/dist/collection/components/six-dropdown/six-dropdown.js +983 -891
  196. package/dist/collection/components/six-dropdown/six-dropdown.js.map +1 -1
  197. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js +92 -67
  198. package/dist/collection/components/six-dropdown/test/six-dropdown.spec.js.map +1 -1
  199. package/dist/collection/components/six-error/six-error.css +5 -0
  200. package/dist/collection/components/six-error/six-error.js +25 -0
  201. package/dist/collection/components/six-error/six-error.js.map +1 -0
  202. package/dist/collection/components/six-error-page/six-error-page.js +177 -177
  203. package/dist/collection/components/six-error-page/six-error-page.js.map +1 -1
  204. package/dist/collection/components/six-error-page/test/six-error-page.spec.js +77 -77
  205. package/dist/collection/components/six-error-page/test/six-error-page.spec.js.map +1 -1
  206. package/dist/collection/components/six-file-list/six-file-list.js +15 -15
  207. package/dist/collection/components/six-file-list/six-file-list.js.map +1 -1
  208. package/dist/collection/components/six-file-list/test/six-file-list.spec.js +16 -16
  209. package/dist/collection/components/six-file-list/test/six-file-list.spec.js.map +1 -1
  210. package/dist/collection/components/six-file-list-item/six-file-list-item.css +1 -1
  211. package/dist/collection/components/six-file-list-item/six-file-list-item.js +195 -195
  212. package/dist/collection/components/six-file-list-item/six-file-list-item.js.map +1 -1
  213. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js +42 -42
  214. package/dist/collection/components/six-file-list-item/test/six-file-list-item.spec.js.map +1 -1
  215. package/dist/collection/components/six-file-upload/six-file-upload.css +1 -4
  216. package/dist/collection/components/six-file-upload/six-file-upload.js +291 -291
  217. package/dist/collection/components/six-file-upload/six-file-upload.js.map +1 -1
  218. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js +27 -27
  219. package/dist/collection/components/six-file-upload/test/six-file-upload.spec.js.map +1 -1
  220. package/dist/collection/components/six-footer/six-footer.css +2 -2
  221. package/dist/collection/components/six-footer/six-footer.js +15 -15
  222. package/dist/collection/components/six-footer/six-footer.js.map +1 -1
  223. package/dist/collection/components/six-footer/test/six-footer.spec.js +7 -7
  224. package/dist/collection/components/six-footer/test/six-footer.spec.js.map +1 -1
  225. package/dist/collection/components/six-group-label/six-group-label.css +5 -2
  226. package/dist/collection/components/six-group-label/six-group-label.js +155 -155
  227. package/dist/collection/components/six-group-label/six-group-label.js.map +1 -1
  228. package/dist/collection/components/six-group-label/test/six-group-label.spec.js +15 -13
  229. package/dist/collection/components/six-group-label/test/six-group-label.spec.js.map +1 -1
  230. package/dist/collection/components/six-header/six-header.css +6 -2
  231. package/dist/collection/components/six-header/six-header.js +439 -405
  232. package/dist/collection/components/six-header/six-header.js.map +1 -1
  233. package/dist/collection/components/six-header/test/six-header.spec.js +77 -33
  234. package/dist/collection/components/six-header/test/six-header.spec.js.map +1 -1
  235. package/dist/collection/components/six-icon/six-icon.css +5 -2
  236. package/dist/collection/components/six-icon/six-icon.js +71 -71
  237. package/dist/collection/components/six-icon/six-icon.js.map +1 -1
  238. package/dist/collection/components/six-icon/test/six-icon.spec.js +7 -7
  239. package/dist/collection/components/six-icon/test/six-icon.spec.js.map +1 -1
  240. package/dist/collection/components/six-icon-button/six-icon-button.css +5 -5
  241. package/dist/collection/components/six-icon-button/six-icon-button.js +131 -131
  242. package/dist/collection/components/six-icon-button/six-icon-button.js.map +1 -1
  243. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js +7 -7
  244. package/dist/collection/components/six-icon-button/test/six-icon-button.spec.js.map +1 -1
  245. package/dist/collection/components/six-input/six-input.css +15 -3
  246. package/dist/collection/components/six-input/six-input.js +970 -919
  247. package/dist/collection/components/six-input/six-input.js.map +1 -1
  248. package/dist/collection/components/six-input/test/six-input.spec.js +10 -8
  249. package/dist/collection/components/six-input/test/six-input.spec.js.map +1 -1
  250. package/dist/collection/components/six-item-picker/six-item-picker.css +8 -0
  251. package/dist/collection/components/six-item-picker/six-item-picker.js +727 -631
  252. package/dist/collection/components/six-item-picker/six-item-picker.js.map +1 -1
  253. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js +82 -82
  254. package/dist/collection/components/six-item-picker/test/six-item-picker.spec.js.map +1 -1
  255. package/dist/collection/components/six-item-picker/types.js +9 -7
  256. package/dist/collection/components/six-item-picker/types.js.map +1 -1
  257. package/dist/collection/components/six-language-switcher/six-language-switcher.js +124 -124
  258. package/dist/collection/components/six-language-switcher/six-language-switcher.js.map +1 -1
  259. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js +79 -79
  260. package/dist/collection/components/six-language-switcher/test/six-language-switcher.spec.js.map +1 -1
  261. package/dist/collection/components/six-layout-grid/six-layout-grid.js +54 -54
  262. package/dist/collection/components/six-layout-grid/six-layout-grid.js.map +1 -1
  263. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js +7 -7
  264. package/dist/collection/components/six-layout-grid/test/six-layout-grid.spec.js.map +1 -1
  265. package/dist/collection/components/six-main-container/six-main-container.js +41 -41
  266. package/dist/collection/components/six-main-container/six-main-container.js.map +1 -1
  267. package/dist/collection/components/six-main-container/test/six-main-container.spec.js +7 -7
  268. package/dist/collection/components/six-main-container/test/six-main-container.spec.js.map +1 -1
  269. package/dist/collection/components/six-menu/six-menu.css +8 -7
  270. package/dist/collection/components/six-menu/six-menu.js +388 -366
  271. package/dist/collection/components/six-menu/six-menu.js.map +1 -1
  272. package/dist/collection/components/six-menu/test/six-menu.spec.js +41 -41
  273. package/dist/collection/components/six-menu/test/six-menu.spec.js.map +1 -1
  274. package/dist/collection/components/six-menu-divider/six-menu-divider.css +3 -2
  275. package/dist/collection/components/six-menu-divider/six-menu-divider.js +15 -15
  276. package/dist/collection/components/six-menu-divider/six-menu-divider.js.map +1 -1
  277. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js +7 -7
  278. package/dist/collection/components/six-menu-divider/test/six-menu-divider.spec.js.map +1 -1
  279. package/dist/collection/components/six-menu-item/six-menu-item.css +13 -2
  280. package/dist/collection/components/six-menu-item/six-menu-item.js +209 -180
  281. package/dist/collection/components/six-menu-item/six-menu-item.js.map +1 -1
  282. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js +7 -7
  283. package/dist/collection/components/six-menu-item/test/six-menu-item.spec.js.map +1 -1
  284. package/dist/collection/components/six-menu-label/six-menu-label.css +1 -1
  285. package/dist/collection/components/six-menu-label/six-menu-label.js +15 -15
  286. package/dist/collection/components/six-menu-label/six-menu-label.js.map +1 -1
  287. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js +7 -7
  288. package/dist/collection/components/six-menu-label/test/six-menu-label.spec.js.map +1 -1
  289. package/dist/collection/components/six-picto/six-picto.js +46 -46
  290. package/dist/collection/components/six-picto/six-picto.js.map +1 -1
  291. package/dist/collection/components/six-picto/test/six-picto.spec.js +13 -13
  292. package/dist/collection/components/six-picto/test/six-picto.spec.js.map +1 -1
  293. package/dist/collection/components/six-progress-bar/six-progress-bar.css +1 -1
  294. package/dist/collection/components/six-progress-bar/six-progress-bar.js +64 -64
  295. package/dist/collection/components/six-progress-bar/six-progress-bar.js.map +1 -1
  296. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js +7 -7
  297. package/dist/collection/components/six-progress-bar/test/six-progress-bar.spec.js.map +1 -1
  298. package/dist/collection/components/six-progress-ring/six-progress-ring.css +1 -1
  299. package/dist/collection/components/six-progress-ring/six-progress-ring.js +100 -100
  300. package/dist/collection/components/six-progress-ring/six-progress-ring.js.map +1 -1
  301. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js +7 -7
  302. package/dist/collection/components/six-progress-ring/test/six-progress-ring.spec.js.map +1 -1
  303. package/dist/collection/components/six-radio/six-radio.css +1 -1
  304. package/dist/collection/components/six-radio/six-radio.js +321 -320
  305. package/dist/collection/components/six-radio/six-radio.js.map +1 -1
  306. package/dist/collection/components/six-radio/test/six-radio.spec.js +13 -13
  307. package/dist/collection/components/six-radio/test/six-radio.spec.js.map +1 -1
  308. package/dist/collection/components/six-range/six-range.css +5 -2
  309. package/dist/collection/components/six-range/six-range.js +564 -542
  310. package/dist/collection/components/six-range/six-range.js.map +1 -1
  311. package/dist/collection/components/six-range/test/six-range.spec.js +11 -9
  312. package/dist/collection/components/six-range/test/six-range.spec.js.map +1 -1
  313. package/dist/collection/components/six-root/six-root.js +84 -152
  314. package/dist/collection/components/six-root/six-root.js.map +1 -1
  315. package/dist/collection/components/six-root/test/six-root.spec.js +7 -14
  316. package/dist/collection/components/six-root/test/six-root.spec.js.map +1 -1
  317. package/dist/collection/components/six-search-field/six-search-field.css +1 -1
  318. package/dist/collection/components/six-search-field/six-search-field.js +169 -169
  319. package/dist/collection/components/six-search-field/six-search-field.js.map +1 -1
  320. package/dist/collection/components/six-search-field/test/six-search-field.spec.js +7 -7
  321. package/dist/collection/components/six-search-field/test/six-search-field.spec.js.map +1 -1
  322. package/dist/collection/components/six-select/six-select.css +61 -73
  323. package/dist/collection/components/six-select/six-select.js +1117 -921
  324. package/dist/collection/components/six-select/six-select.js.map +1 -1
  325. package/dist/collection/components/six-select/test/six-select.spec.js +51 -31
  326. package/dist/collection/components/six-select/test/six-select.spec.js.map +1 -1
  327. package/dist/collection/components/six-select/test/util.spec.js +73 -73
  328. package/dist/collection/components/six-select/test/util.spec.js.map +1 -1
  329. package/dist/collection/components/six-select/util.js +34 -34
  330. package/dist/collection/components/six-select/util.js.map +1 -1
  331. package/dist/collection/components/six-sidebar/six-sidebar.css +2 -2
  332. package/dist/collection/components/six-sidebar/six-sidebar.js +466 -464
  333. package/dist/collection/components/six-sidebar/six-sidebar.js.map +1 -1
  334. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js +7 -7
  335. package/dist/collection/components/six-sidebar/test/six-sidebar.spec.js.map +1 -1
  336. package/dist/collection/components/six-sidebar-item/six-sidebar-item.css +6 -1
  337. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js +101 -82
  338. package/dist/collection/components/six-sidebar-item/six-sidebar-item.js.map +1 -1
  339. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js +19 -19
  340. package/dist/collection/components/six-sidebar-item/test/six-sidebar-item.spec.js.map +1 -1
  341. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.css +12 -1
  342. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js +180 -152
  343. package/dist/collection/components/six-sidebar-item-group/six-sidebar-item-group.js.map +1 -1
  344. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js +16 -16
  345. package/dist/collection/components/six-sidebar-item-group/test/six-sidebar-item-group.spec.js.map +1 -1
  346. package/dist/collection/components/six-spinner/six-spinner.css +1 -1
  347. package/dist/collection/components/six-spinner/six-spinner.js +47 -46
  348. package/dist/collection/components/six-spinner/six-spinner.js.map +1 -1
  349. package/dist/collection/components/six-spinner/test/six-spinner.spec.js +14 -14
  350. package/dist/collection/components/six-spinner/test/six-spinner.spec.js.map +1 -1
  351. package/dist/collection/components/six-stage-indicator/six-stage-indicator.css +1 -1
  352. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js +45 -45
  353. package/dist/collection/components/six-stage-indicator/six-stage-indicator.js.map +1 -1
  354. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js +37 -37
  355. package/dist/collection/components/six-stage-indicator/test/six-stage-indicator.spec.js.map +1 -1
  356. package/dist/collection/components/six-switch/six-switch.css +5 -2
  357. package/dist/collection/components/six-switch/six-switch.js +386 -344
  358. package/dist/collection/components/six-switch/six-switch.js.map +1 -1
  359. package/dist/collection/components/six-switch/test/six-switch.spec.js +19 -15
  360. package/dist/collection/components/six-switch/test/six-switch.spec.js.map +1 -1
  361. package/dist/collection/components/six-tab/six-tab.css +55 -6
  362. package/dist/collection/components/six-tab/six-tab.js +206 -189
  363. package/dist/collection/components/six-tab/six-tab.js.map +1 -1
  364. package/dist/collection/components/six-tab-group/six-tab-group.css +1 -32
  365. package/dist/collection/components/six-tab-group/six-tab-group.js +318 -358
  366. package/dist/collection/components/six-tab-group/six-tab-group.js.map +1 -1
  367. package/dist/collection/components/six-tab-panel/six-tab-panel.css +1 -1
  368. package/dist/collection/components/six-tab-panel/six-tab-panel.js +63 -63
  369. package/dist/collection/components/six-tab-panel/six-tab-panel.js.map +1 -1
  370. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js +7 -7
  371. package/dist/collection/components/six-tab-panel/test/six-tab-panel.spec.js.map +1 -1
  372. package/dist/collection/components/six-tag/six-tag.css +7 -1
  373. package/dist/collection/components/six-tag/six-tag.js +161 -139
  374. package/dist/collection/components/six-tag/six-tag.js.map +1 -1
  375. package/dist/collection/components/six-tag/test/six-tag.spec.js +24 -12
  376. package/dist/collection/components/six-tag/test/six-tag.spec.js.map +1 -1
  377. package/dist/collection/components/six-textarea/six-textarea.css +5 -2
  378. package/dist/collection/components/six-textarea/six-textarea.js +792 -763
  379. package/dist/collection/components/six-textarea/six-textarea.js.map +1 -1
  380. package/dist/collection/components/six-textarea/test/six-textarea.spec.js +97 -95
  381. package/dist/collection/components/six-textarea/test/six-textarea.spec.js.map +1 -1
  382. package/dist/collection/components/six-tile/six-tile.css +2 -2
  383. package/dist/collection/components/six-tile/six-tile.js +298 -298
  384. package/dist/collection/components/six-tile/six-tile.js.map +1 -1
  385. package/dist/collection/components/six-tile/test/six-tile.spec.js +14 -14
  386. package/dist/collection/components/six-tile/test/six-tile.spec.js.map +1 -1
  387. package/dist/collection/components/six-timepicker/six-timepicker.css +1 -1
  388. package/dist/collection/components/six-timepicker/six-timepicker.js +825 -812
  389. package/dist/collection/components/six-timepicker/six-timepicker.js.map +1 -1
  390. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js +170 -170
  391. package/dist/collection/components/six-timepicker/test/six-timepicker.spec.js.map +1 -1
  392. package/dist/collection/components/six-tooltip/six-tooltip.css +2 -2
  393. package/dist/collection/components/six-tooltip/six-tooltip.js +407 -407
  394. package/dist/collection/components/six-tooltip/six-tooltip.js.map +1 -1
  395. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js +7 -7
  396. package/dist/collection/components/six-tooltip/test/six-tooltip.spec.js.map +1 -1
  397. package/dist/collection/functional-components/form-control/form-control.js +19 -17
  398. package/dist/collection/functional-components/form-control/form-control.js.map +1 -1
  399. package/dist/collection/index.js +1 -0
  400. package/dist/collection/index.js.map +1 -1
  401. package/dist/collection/testUtil/delay.js +1 -1
  402. package/dist/collection/testUtil/delay.js.map +1 -1
  403. package/dist/collection/utils/alert.js +54 -0
  404. package/dist/collection/utils/alert.js.map +1 -0
  405. package/dist/collection/utils/animation.js +34 -0
  406. package/dist/collection/utils/animation.js.map +1 -0
  407. package/dist/collection/utils/date-util.js +525 -500
  408. package/dist/collection/utils/date-util.js.map +1 -1
  409. package/dist/collection/utils/date-util.spec.js +984 -984
  410. package/dist/collection/utils/date-util.spec.js.map +1 -1
  411. package/dist/collection/utils/error-messages.js +102 -81
  412. package/dist/collection/utils/error-messages.js.map +1 -1
  413. package/dist/collection/utils/event-listeners.js +51 -51
  414. package/dist/collection/utils/event-listeners.js.map +1 -1
  415. package/dist/collection/utils/execution-control.js +14 -14
  416. package/dist/collection/utils/execution-control.js.map +1 -1
  417. package/dist/collection/utils/focus-visible.js +28 -28
  418. package/dist/collection/utils/focus-visible.js.map +1 -1
  419. package/dist/collection/utils/form.js +12 -12
  420. package/dist/collection/utils/form.js.map +1 -1
  421. package/dist/collection/utils/modal.js +25 -25
  422. package/dist/collection/utils/modal.js.map +1 -1
  423. package/dist/collection/utils/offset.js +4 -4
  424. package/dist/collection/utils/offset.js.map +1 -1
  425. package/dist/collection/utils/popover.js +99 -99
  426. package/dist/collection/utils/popover.js.map +1 -1
  427. package/dist/collection/utils/popup.js +71 -71
  428. package/dist/collection/utils/popup.js.map +1 -1
  429. package/dist/collection/utils/scroll.js +27 -27
  430. package/dist/collection/utils/scroll.js.map +1 -1
  431. package/dist/collection/utils/scroll.spec.js +116 -116
  432. package/dist/collection/utils/scroll.spec.js.map +1 -1
  433. package/dist/collection/utils/slot.js +28 -29
  434. package/dist/collection/utils/slot.js.map +1 -1
  435. package/dist/collection/utils/support.js +10 -10
  436. package/dist/collection/utils/support.js.map +1 -1
  437. package/dist/collection/utils/tabbable.js +17 -17
  438. package/dist/collection/utils/tabbable.js.map +1 -1
  439. package/dist/collection/utils/time.util.js +72 -72
  440. package/dist/collection/utils/time.util.js.map +1 -1
  441. package/dist/collection/utils/time.util.spec.js +353 -353
  442. package/dist/collection/utils/time.util.spec.js.map +1 -1
  443. package/dist/components/event-listeners.js +51 -51
  444. package/dist/components/event-listeners.js.map +1 -1
  445. package/dist/components/execution-control.js +14 -14
  446. package/dist/components/execution-control.js.map +1 -1
  447. package/dist/components/focus-visible.js +28 -28
  448. package/dist/components/focus-visible.js.map +1 -1
  449. package/dist/components/form-control.js +26 -23
  450. package/dist/components/form-control.js.map +1 -1
  451. package/dist/components/form.js +12 -12
  452. package/dist/components/form.js.map +1 -1
  453. package/dist/components/index.d.ts +6 -0
  454. package/dist/components/index.js +113 -149
  455. package/dist/components/index.js.map +1 -1
  456. package/dist/components/modal.js +35 -35
  457. package/dist/components/modal.js.map +1 -1
  458. package/dist/components/popover.js +98 -98
  459. package/dist/components/popover.js.map +1 -1
  460. package/dist/components/scroll.js +32 -32
  461. package/dist/components/scroll.js.map +1 -1
  462. package/dist/components/six-alert.d.ts +2 -2
  463. package/dist/components/six-alert.js +177 -142
  464. package/dist/components/six-alert.js.map +1 -1
  465. package/dist/components/six-avatar.d.ts +2 -2
  466. package/dist/components/six-avatar.js +45 -45
  467. package/dist/components/six-avatar.js.map +1 -1
  468. package/dist/components/six-badge.d.ts +2 -2
  469. package/dist/components/six-badge.js +40 -40
  470. package/dist/components/six-badge.js.map +1 -1
  471. package/dist/components/six-button.d.ts +2 -2
  472. package/dist/components/six-button.js +1 -142
  473. package/dist/components/six-button.js.map +1 -1
  474. package/dist/components/six-button2.js +146 -0
  475. package/dist/components/six-button2.js.map +1 -0
  476. package/dist/components/six-card.d.ts +2 -2
  477. package/dist/components/six-card.js +21 -21
  478. package/dist/components/six-card.js.map +1 -1
  479. package/dist/components/six-checkbox.d.ts +2 -2
  480. package/dist/components/six-checkbox.js +1 -145
  481. package/dist/components/six-checkbox.js.map +1 -1
  482. package/dist/components/six-checkbox2.js +165 -0
  483. package/dist/components/six-checkbox2.js.map +1 -0
  484. package/dist/components/six-datepicker.d.ts +2 -2
  485. package/dist/components/six-datepicker.js +931 -900
  486. package/dist/components/six-datepicker.js.map +1 -1
  487. package/dist/components/six-details.d.ts +2 -2
  488. package/dist/components/six-details2.js +158 -156
  489. package/dist/components/six-details2.js.map +1 -1
  490. package/dist/components/six-dialog.d.ts +2 -2
  491. package/dist/components/six-dialog.js +161 -157
  492. package/dist/components/six-dialog.js.map +1 -1
  493. package/dist/components/six-drawer.d.ts +2 -2
  494. package/dist/components/six-drawer.js +179 -177
  495. package/dist/components/six-drawer.js.map +1 -1
  496. package/dist/components/six-dropdown.d.ts +2 -2
  497. package/dist/components/six-dropdown2.js +553 -464
  498. package/dist/components/six-dropdown2.js.map +1 -1
  499. package/dist/components/six-error-page.d.ts +2 -2
  500. package/dist/components/six-error-page.js +106 -106
  501. package/dist/components/six-error-page.js.map +1 -1
  502. package/dist/components/{set-attributes.d.ts → six-error.d.ts} +4 -4
  503. package/dist/components/six-error.js +8 -0
  504. package/dist/components/six-error.js.map +1 -0
  505. package/dist/components/six-error2.js +32 -0
  506. package/dist/components/six-error2.js.map +1 -0
  507. package/dist/components/six-file-list-item.d.ts +2 -2
  508. package/dist/components/six-file-list-item.js +59 -59
  509. package/dist/components/six-file-list-item.js.map +1 -1
  510. package/dist/components/six-file-list.d.ts +2 -2
  511. package/dist/components/six-file-list.js +20 -20
  512. package/dist/components/six-file-list.js.map +1 -1
  513. package/dist/components/six-file-upload.d.ts +2 -2
  514. package/dist/components/six-file-upload.js +124 -124
  515. package/dist/components/six-file-upload.js.map +1 -1
  516. package/dist/components/six-footer.d.ts +2 -2
  517. package/dist/components/six-footer.js +21 -21
  518. package/dist/components/six-footer.js.map +1 -1
  519. package/dist/components/six-group-label.d.ts +2 -2
  520. package/dist/components/six-group-label.js +71 -62
  521. package/dist/components/six-group-label.js.map +1 -1
  522. package/dist/components/six-header.d.ts +2 -2
  523. package/dist/components/six-header.js +237 -207
  524. package/dist/components/six-header.js.map +1 -1
  525. package/dist/components/six-icon-button.d.ts +2 -2
  526. package/dist/components/six-icon-button2.js +55 -55
  527. package/dist/components/six-icon-button2.js.map +1 -1
  528. package/dist/components/six-icon.d.ts +2 -2
  529. package/dist/components/six-icon2.js +38 -38
  530. package/dist/components/six-icon2.js.map +1 -1
  531. package/dist/components/six-input.d.ts +2 -2
  532. package/dist/components/six-input2.js +258 -239
  533. package/dist/components/six-input2.js.map +1 -1
  534. package/dist/components/six-item-picker.d.ts +2 -2
  535. package/dist/components/six-item-picker2.js +450 -348
  536. package/dist/components/six-item-picker2.js.map +1 -1
  537. package/dist/components/six-language-switcher.d.ts +2 -2
  538. package/dist/components/six-language-switcher.js +64 -62
  539. package/dist/components/six-language-switcher.js.map +1 -1
  540. package/dist/components/six-layout-grid.d.ts +2 -2
  541. package/dist/components/six-layout-grid.js +37 -35
  542. package/dist/components/six-layout-grid.js.map +1 -1
  543. package/dist/components/six-main-container.d.ts +2 -2
  544. package/dist/components/six-main-container.js +24 -24
  545. package/dist/components/six-main-container.js.map +1 -1
  546. package/dist/components/six-menu-divider.d.ts +2 -2
  547. package/dist/components/six-menu-divider.js +21 -21
  548. package/dist/components/six-menu-divider.js.map +1 -1
  549. package/dist/components/six-menu-item.d.ts +2 -2
  550. package/dist/components/six-menu-item2.js +98 -75
  551. package/dist/components/six-menu-item2.js.map +1 -1
  552. package/dist/components/six-menu-label.d.ts +2 -2
  553. package/dist/components/six-menu-label.js +21 -21
  554. package/dist/components/six-menu-label.js.map +1 -1
  555. package/dist/components/six-menu.d.ts +2 -2
  556. package/dist/components/six-menu2.js +236 -220
  557. package/dist/components/six-menu2.js.map +1 -1
  558. package/dist/components/six-picto.d.ts +2 -2
  559. package/dist/components/six-picto2.js +29 -29
  560. package/dist/components/six-picto2.js.map +1 -1
  561. package/dist/components/six-progress-bar.d.ts +2 -2
  562. package/dist/components/six-progress-bar.js +31 -31
  563. package/dist/components/six-progress-bar.js.map +1 -1
  564. package/dist/components/six-progress-ring.d.ts +2 -2
  565. package/dist/components/six-progress-ring.js +49 -47
  566. package/dist/components/six-progress-ring.js.map +1 -1
  567. package/dist/components/six-radio.d.ts +2 -2
  568. package/dist/components/six-radio.js +128 -125
  569. package/dist/components/six-radio.js.map +1 -1
  570. package/dist/components/six-range.d.ts +2 -2
  571. package/dist/components/six-range.js +233 -215
  572. package/dist/components/six-range.js.map +1 -1
  573. package/dist/components/six-root.d.ts +2 -2
  574. package/dist/components/six-root.js +39 -66
  575. package/dist/components/six-root.js.map +1 -1
  576. package/dist/components/six-search-field.d.ts +2 -2
  577. package/dist/components/six-search-field.js +79 -71
  578. package/dist/components/six-search-field.js.map +1 -1
  579. package/dist/components/six-select.d.ts +2 -2
  580. package/dist/components/six-select.js +714 -440
  581. package/dist/components/six-select.js.map +1 -1
  582. package/dist/components/six-sidebar-item-group.d.ts +2 -2
  583. package/dist/components/six-sidebar-item-group.js +87 -75
  584. package/dist/components/six-sidebar-item-group.js.map +1 -1
  585. package/dist/components/six-sidebar-item.d.ts +2 -2
  586. package/dist/components/six-sidebar-item.js +35 -32
  587. package/dist/components/six-sidebar-item.js.map +1 -1
  588. package/dist/components/six-sidebar.d.ts +2 -2
  589. package/dist/components/six-sidebar.js +199 -197
  590. package/dist/components/six-sidebar.js.map +1 -1
  591. package/dist/components/six-spinner.d.ts +2 -2
  592. package/dist/components/six-spinner2.js +30 -30
  593. package/dist/components/six-spinner2.js.map +1 -1
  594. package/dist/components/six-stage-indicator.d.ts +2 -2
  595. package/dist/components/six-stage-indicator2.js +29 -29
  596. package/dist/components/six-stage-indicator2.js.map +1 -1
  597. package/dist/components/six-switch.d.ts +2 -2
  598. package/dist/components/six-switch.js +142 -112
  599. package/dist/components/six-switch.js.map +1 -1
  600. package/dist/components/six-tab-group.d.ts +2 -2
  601. package/dist/components/six-tab-group.js +260 -263
  602. package/dist/components/six-tab-group.js.map +1 -1
  603. package/dist/components/six-tab-panel.d.ts +2 -2
  604. package/dist/components/six-tab-panel.js +30 -30
  605. package/dist/components/six-tab-panel.js.map +1 -1
  606. package/dist/components/six-tab.d.ts +2 -2
  607. package/dist/components/six-tab.js +85 -69
  608. package/dist/components/six-tab.js.map +1 -1
  609. package/dist/components/six-tag.d.ts +2 -2
  610. package/dist/components/six-tag.js +98 -1
  611. package/dist/components/six-tag.js.map +1 -1
  612. package/dist/components/six-textarea.d.ts +2 -2
  613. package/dist/components/six-textarea.js +235 -218
  614. package/dist/components/six-textarea.js.map +1 -1
  615. package/dist/components/six-tile.d.ts +2 -2
  616. package/dist/components/six-tile.js +117 -117
  617. package/dist/components/six-tile.js.map +1 -1
  618. package/dist/components/six-timepicker.d.ts +2 -2
  619. package/dist/components/six-timepicker2.js +491 -487
  620. package/dist/components/six-timepicker2.js.map +1 -1
  621. package/dist/components/six-tooltip.d.ts +2 -2
  622. package/dist/components/six-tooltip2.js +172 -170
  623. package/dist/components/six-tooltip2.js.map +1 -1
  624. package/dist/components/slot.js +29 -30
  625. package/dist/components/slot.js.map +1 -1
  626. package/dist/components.d.ts +1 -21
  627. package/dist/components.json +1079 -288
  628. package/dist/esm/error-messages-1eaaad23.js +115 -0
  629. package/dist/esm/error-messages-1eaaad23.js.map +1 -0
  630. package/dist/esm/event-listeners-706d4309.js +59 -0
  631. package/dist/esm/event-listeners-706d4309.js.map +1 -0
  632. package/dist/esm/{execution-control-e0892a05.js → execution-control-2ebaf4ef.js} +15 -15
  633. package/dist/esm/{execution-control-e0892a05.js.map → execution-control-2ebaf4ef.js.map} +1 -1
  634. package/dist/esm/focus-visible-d9dbfeef.js +45 -0
  635. package/dist/esm/{focus-visible-fc6ac671.js.map → focus-visible-d9dbfeef.js.map} +1 -1
  636. package/dist/esm/form-4b145b7a.js +18 -0
  637. package/dist/esm/{form-81252534.js.map → form-4b145b7a.js.map} +1 -1
  638. package/dist/esm/form-control-d403a9cf.js +34 -0
  639. package/dist/esm/form-control-d403a9cf.js.map +1 -0
  640. package/dist/esm/{index-8a74f992.js → index-79d4ef67.js} +420 -446
  641. package/dist/esm/index-79d4ef67.js.map +1 -0
  642. package/dist/esm/index.js +52 -87
  643. package/dist/esm/index.js.map +1 -1
  644. package/dist/esm/loader.js +3 -3
  645. package/dist/esm/modal-96526245.js +49 -0
  646. package/dist/esm/modal-96526245.js.map +1 -0
  647. package/dist/esm/{popover-136d1f73.js → popover-25996e62.js} +99 -99
  648. package/dist/esm/popover-25996e62.js.map +1 -0
  649. package/dist/esm/popup-7209e9d5.js +98 -0
  650. package/dist/esm/popup-7209e9d5.js.map +1 -0
  651. package/dist/esm/scroll-3e16851e.js +64 -0
  652. package/dist/esm/{scroll-3fb087a2.js.map → scroll-3e16851e.js.map} +1 -1
  653. package/dist/esm/six-alert.entry.js +142 -110
  654. package/dist/esm/six-alert.entry.js.map +1 -1
  655. package/dist/esm/six-avatar.entry.js +21 -21
  656. package/dist/esm/six-avatar.entry.js.map +1 -1
  657. package/dist/esm/six-badge.entry.js +23 -23
  658. package/dist/esm/six-badge.entry.js.map +1 -1
  659. package/dist/esm/six-button.entry.js +95 -95
  660. package/dist/esm/six-button.entry.js.map +1 -1
  661. package/dist/esm/six-card.entry.js +8 -8
  662. package/dist/esm/six-card.entry.js.map +1 -1
  663. package/dist/esm/six-checkbox_2.entry.js +185 -0
  664. package/dist/esm/six-checkbox_2.entry.js.map +1 -0
  665. package/dist/esm/six-datepicker.entry.js +860 -839
  666. package/dist/esm/six-datepicker.entry.js.map +1 -1
  667. package/dist/esm/six-details.entry.js +127 -127
  668. package/dist/esm/six-details.entry.js.map +1 -1
  669. package/dist/esm/six-dialog.entry.js +131 -129
  670. package/dist/esm/six-dialog.entry.js.map +1 -1
  671. package/dist/esm/six-drawer.entry.js +147 -147
  672. package/dist/esm/six-drawer.entry.js.map +1 -1
  673. package/dist/esm/six-dropdown_2.entry.js +709 -637
  674. package/dist/esm/six-dropdown_2.entry.js.map +1 -1
  675. package/dist/esm/six-error-page.entry.js +82 -82
  676. package/dist/esm/six-error-page.entry.js.map +1 -1
  677. package/dist/esm/six-error.entry.js +17 -0
  678. package/dist/esm/six-error.entry.js.map +1 -0
  679. package/dist/esm/six-file-list-item.entry.js +34 -34
  680. package/dist/esm/six-file-list-item.entry.js.map +1 -1
  681. package/dist/esm/six-file-list.entry.js +7 -7
  682. package/dist/esm/six-file-list.entry.js.map +1 -1
  683. package/dist/esm/six-file-upload.entry.js +99 -99
  684. package/dist/esm/six-file-upload.entry.js.map +1 -1
  685. package/dist/esm/six-footer.entry.js +8 -8
  686. package/dist/esm/six-footer.entry.js.map +1 -1
  687. package/dist/esm/six-group-label.entry.js +43 -43
  688. package/dist/esm/six-group-label.entry.js.map +1 -1
  689. package/dist/esm/six-header.entry.js +171 -156
  690. package/dist/esm/six-header.entry.js.map +1 -1
  691. package/dist/esm/six-icon-button.entry.js +32 -32
  692. package/dist/esm/six-icon-button.entry.js.map +1 -1
  693. package/dist/esm/six-icon.entry.js +22 -22
  694. package/dist/esm/six-icon.entry.js.map +1 -1
  695. package/dist/esm/six-input.entry.js +192 -187
  696. package/dist/esm/six-input.entry.js.map +1 -1
  697. package/dist/esm/six-item-picker.entry.js +405 -309
  698. package/dist/esm/six-item-picker.entry.js.map +1 -1
  699. package/dist/esm/six-language-switcher.entry.js +46 -46
  700. package/dist/esm/six-language-switcher.entry.js.map +1 -1
  701. package/dist/esm/six-layout-grid.entry.js +20 -20
  702. package/dist/esm/six-layout-grid.entry.js.map +1 -1
  703. package/dist/esm/six-main-container.entry.js +9 -9
  704. package/dist/esm/six-main-container.entry.js.map +1 -1
  705. package/dist/esm/six-menu-divider.entry.js +8 -8
  706. package/dist/esm/six-menu-divider.entry.js.map +1 -1
  707. package/dist/esm/six-menu-label.entry.js +8 -8
  708. package/dist/esm/six-menu-label.entry.js.map +1 -1
  709. package/dist/esm/six-picto.entry.js +14 -14
  710. package/dist/esm/six-picto.entry.js.map +1 -1
  711. package/dist/esm/six-progress-bar.entry.js +15 -15
  712. package/dist/esm/six-progress-bar.entry.js.map +1 -1
  713. package/dist/esm/six-progress-ring.entry.js +30 -30
  714. package/dist/esm/six-progress-ring.entry.js.map +1 -1
  715. package/dist/esm/six-radio.entry.js +104 -104
  716. package/dist/esm/six-radio.entry.js.map +1 -1
  717. package/dist/esm/six-range.entry.js +180 -177
  718. package/dist/esm/six-range.entry.js.map +1 -1
  719. package/dist/esm/six-root.entry.js +11 -30
  720. package/dist/esm/six-root.entry.js.map +1 -1
  721. package/dist/esm/six-search-field.entry.js +44 -44
  722. package/dist/esm/six-search-field.entry.js.map +1 -1
  723. package/dist/esm/six-select.entry.js +497 -363
  724. package/dist/esm/six-select.entry.js.map +1 -1
  725. package/dist/esm/six-sidebar-item-group.entry.js +56 -45
  726. package/dist/esm/six-sidebar-item-group.entry.js.map +1 -1
  727. package/dist/esm/six-sidebar-item.entry.js +17 -15
  728. package/dist/esm/six-sidebar-item.entry.js.map +1 -1
  729. package/dist/esm/six-sidebar.entry.js +174 -174
  730. package/dist/esm/six-sidebar.entry.js.map +1 -1
  731. package/dist/esm/six-spinner.entry.js +15 -15
  732. package/dist/esm/six-spinner.entry.js.map +1 -1
  733. package/dist/esm/six-stage-indicator.entry.js +18 -0
  734. package/dist/esm/six-stage-indicator.entry.js.map +1 -0
  735. package/dist/esm/six-switch.entry.js +107 -89
  736. package/dist/esm/six-switch.entry.js.map +1 -1
  737. package/dist/esm/six-tab-group.entry.js +230 -235
  738. package/dist/esm/six-tab-group.entry.js.map +1 -1
  739. package/dist/esm/six-tab-panel.entry.js +14 -14
  740. package/dist/esm/six-tab-panel.entry.js.map +1 -1
  741. package/dist/esm/six-tab.entry.js +55 -39
  742. package/dist/esm/six-tab.entry.js.map +1 -1
  743. package/dist/esm/six-tag.entry.js +55 -33
  744. package/dist/esm/six-tag.entry.js.map +1 -1
  745. package/dist/esm/six-textarea.entry.js +181 -178
  746. package/dist/esm/six-textarea.entry.js.map +1 -1
  747. package/dist/esm/six-tile.entry.js +77 -77
  748. package/dist/esm/six-tile.entry.js.map +1 -1
  749. package/dist/esm/six-timepicker.entry.js +348 -353
  750. package/dist/esm/six-timepicker.entry.js.map +1 -1
  751. package/dist/esm/six-tooltip.entry.js +148 -148
  752. package/dist/esm/six-tooltip.entry.js.map +1 -1
  753. package/dist/esm/slot-56531341.js +47 -0
  754. package/dist/esm/slot-56531341.js.map +1 -0
  755. package/dist/esm/types-a07bb999.js +19 -0
  756. package/dist/esm/types-a07bb999.js.map +1 -0
  757. package/dist/esm/ui-library.js +4 -4
  758. package/dist/esm/ui-library.js.map +1 -1
  759. package/dist/types/components/six-alert/six-alert.d.ts +47 -40
  760. package/dist/types/components/six-avatar/six-avatar.d.ts +11 -11
  761. package/dist/types/components/six-badge/six-badge.d.ts +7 -7
  762. package/dist/types/components/six-button/six-button.d.ts +48 -48
  763. package/dist/types/components/six-card/six-card.d.ts +1 -1
  764. package/dist/types/components/six-checkbox/six-checkbox.d.ts +58 -55
  765. package/dist/types/components/six-datepicker/components/day-selection.d.ts +3 -3
  766. package/dist/types/components/six-datepicker/components/month-selection.d.ts +3 -3
  767. package/dist/types/components/six-datepicker/components/year-selection.d.ts +3 -3
  768. package/dist/types/components/six-datepicker/six-date-formats.d.ts +20 -20
  769. package/dist/types/components/six-datepicker/six-datepicker.d.ts +188 -186
  770. package/dist/types/components/six-details/six-details.d.ts +42 -42
  771. package/dist/types/components/six-dialog/six-dialog.d.ts +51 -50
  772. package/dist/types/components/six-drawer/six-drawer.d.ts +58 -58
  773. package/dist/types/components/six-dropdown/six-dropdown.d.ts +131 -112
  774. package/dist/types/components/six-error/six-error.d.ts +9 -0
  775. package/dist/types/components/six-error-page/six-error-page.d.ts +25 -25
  776. package/dist/types/components/six-file-list/six-file-list.d.ts +1 -1
  777. package/dist/types/components/six-file-list-item/six-file-list-item.d.ts +23 -23
  778. package/dist/types/components/six-file-upload/six-file-upload.d.ts +33 -33
  779. package/dist/types/components/six-footer/six-footer.d.ts +1 -1
  780. package/dist/types/components/six-group-label/six-group-label.d.ts +22 -22
  781. package/dist/types/components/six-header/six-header.d.ts +59 -55
  782. package/dist/types/components/six-icon/six-icon.d.ts +5 -5
  783. package/dist/types/components/six-icon-button/six-icon-button.d.ts +18 -18
  784. package/dist/types/components/six-input/six-input.d.ts +112 -103
  785. package/dist/types/components/six-item-picker/six-item-picker.d.ts +95 -88
  786. package/dist/types/components/six-item-picker/types.d.ts +7 -7
  787. package/dist/types/components/six-language-switcher/six-language-switcher.d.ts +15 -15
  788. package/dist/types/components/six-layout-grid/six-layout-grid.d.ts +6 -6
  789. package/dist/types/components/six-main-container/six-main-container.d.ts +4 -4
  790. package/dist/types/components/six-menu/six-menu.d.ts +67 -63
  791. package/dist/types/components/six-menu-divider/six-menu-divider.d.ts +1 -1
  792. package/dist/types/components/six-menu-item/six-menu-item.d.ts +27 -21
  793. package/dist/types/components/six-menu-label/six-menu-label.d.ts +1 -1
  794. package/dist/types/components/six-picto/six-picto.d.ts +6 -6
  795. package/dist/types/components/six-progress-bar/six-progress-bar.d.ts +5 -5
  796. package/dist/types/components/six-progress-ring/six-progress-ring.d.ts +11 -11
  797. package/dist/types/components/six-radio/six-radio.d.ts +38 -38
  798. package/dist/types/components/six-range/six-range.d.ts +75 -72
  799. package/dist/types/components/six-root/six-root.d.ts +8 -21
  800. package/dist/types/components/six-search-field/six-search-field.d.ts +20 -20
  801. package/dist/types/components/six-select/six-select.d.ts +137 -119
  802. package/dist/types/components/six-select/util.d.ts +1 -1
  803. package/dist/types/components/six-sidebar/six-sidebar.d.ts +45 -45
  804. package/dist/types/components/six-sidebar-item/six-sidebar-item.d.ts +12 -7
  805. package/dist/types/components/six-sidebar-item-group/six-sidebar-item-group.d.ts +25 -19
  806. package/dist/types/components/six-spinner/six-spinner.d.ts +6 -5
  807. package/dist/types/components/six-stage-indicator/six-stage-indicator.d.ts +3 -3
  808. package/dist/types/components/six-switch/six-switch.d.ts +49 -42
  809. package/dist/types/components/six-tab/six-tab.d.ts +20 -20
  810. package/dist/types/components/six-tab-group/six-tab-group.d.ts +35 -38
  811. package/dist/types/components/six-tab-panel/six-tab-panel.d.ts +7 -7
  812. package/dist/types/components/six-tag/six-tag.d.ts +20 -12
  813. package/dist/types/components/six-textarea/six-textarea.d.ts +89 -86
  814. package/dist/types/components/six-tile/six-tile.d.ts +31 -31
  815. package/dist/types/components/six-timepicker/six-timepicker.d.ts +154 -151
  816. package/dist/types/components/six-tooltip/six-tooltip.d.ts +55 -55
  817. package/dist/types/components.d.ts +565 -64
  818. package/dist/types/functional-components/form-control/form-control.d.ts +32 -28
  819. package/dist/types/index.d.ts +1 -0
  820. package/dist/types/stencil-public-runtime.d.ts +34 -3
  821. package/dist/types/types.d.ts +1 -0
  822. package/dist/types/utils/alert.d.ts +10 -0
  823. package/dist/types/utils/animation.d.ts +12 -0
  824. package/dist/types/utils/date-util.d.ts +58 -50
  825. package/dist/types/utils/error-messages.d.ts +27 -25
  826. package/dist/types/utils/event-listeners.d.ts +11 -11
  827. package/dist/types/utils/focus-visible.d.ts +2 -2
  828. package/dist/types/utils/modal.d.ts +8 -8
  829. package/dist/types/utils/offset.d.ts +2 -2
  830. package/dist/types/utils/popover.d.ts +21 -21
  831. package/dist/types/utils/slot.d.ts +0 -1
  832. package/dist/types/utils/time.util.d.ts +6 -6
  833. package/dist/types/utils/types.d.ts +1 -1
  834. package/dist/ui-library/index.esm.js +1 -1
  835. package/dist/ui-library/index.esm.js.map +1 -1
  836. package/dist/ui-library/{p-72254eef.entry.js → p-0440335d.entry.js} +2 -2
  837. package/dist/ui-library/p-0440335d.entry.js.map +1 -0
  838. package/dist/ui-library/p-04cc397c.entry.js +2 -0
  839. package/dist/ui-library/{p-a0f290d0.entry.js.map → p-04cc397c.entry.js.map} +1 -1
  840. package/dist/ui-library/{p-5654e4c7.js → p-06ba4450.js} +1 -1
  841. package/dist/ui-library/p-0cebf1d2.js +2 -0
  842. package/dist/ui-library/p-0cebf1d2.js.map +1 -0
  843. package/dist/ui-library/p-0edd3091.entry.js +2 -0
  844. package/dist/ui-library/p-0edd3091.entry.js.map +1 -0
  845. package/dist/ui-library/p-150b7664.entry.js +2 -0
  846. package/dist/ui-library/p-150b7664.entry.js.map +1 -0
  847. package/dist/ui-library/p-1f5840b5.entry.js +2 -0
  848. package/dist/ui-library/p-1f5840b5.entry.js.map +1 -0
  849. package/dist/ui-library/p-28cc013e.entry.js +2 -0
  850. package/dist/ui-library/p-28cc013e.entry.js.map +1 -0
  851. package/dist/ui-library/p-3424bbc0.entry.js +2 -0
  852. package/dist/ui-library/p-3424bbc0.entry.js.map +1 -0
  853. package/dist/ui-library/p-348c68a8.entry.js +2 -0
  854. package/dist/ui-library/p-348c68a8.entry.js.map +1 -0
  855. package/dist/ui-library/p-3723ca06.entry.js +2 -0
  856. package/dist/ui-library/p-3723ca06.entry.js.map +1 -0
  857. package/dist/ui-library/p-37aeac5e.entry.js +2 -0
  858. package/dist/ui-library/p-37aeac5e.entry.js.map +1 -0
  859. package/dist/ui-library/p-3d7fb086.entry.js +2 -0
  860. package/dist/ui-library/p-3d7fb086.entry.js.map +1 -0
  861. package/dist/ui-library/{p-5af44076.entry.js → p-457f7373.entry.js} +2 -2
  862. package/dist/ui-library/{p-5af44076.entry.js.map → p-457f7373.entry.js.map} +1 -1
  863. package/dist/ui-library/p-4a667f31.entry.js +2 -0
  864. package/dist/ui-library/p-4a667f31.entry.js.map +1 -0
  865. package/dist/ui-library/p-50dae789.entry.js +2 -0
  866. package/dist/ui-library/p-50dae789.entry.js.map +1 -0
  867. package/dist/ui-library/{p-b351f889.entry.js → p-546e33d9.entry.js} +2 -2
  868. package/dist/ui-library/{p-ac099e6b.entry.js → p-5db3a705.entry.js} +2 -2
  869. package/dist/ui-library/{p-ac099e6b.entry.js.map → p-5db3a705.entry.js.map} +1 -1
  870. package/dist/ui-library/p-61e66671.js +2 -0
  871. package/dist/ui-library/p-61e66671.js.map +1 -0
  872. package/dist/ui-library/p-6296779b.entry.js +2 -0
  873. package/dist/ui-library/p-6296779b.entry.js.map +1 -0
  874. package/dist/ui-library/p-64b4755d.entry.js +2 -0
  875. package/dist/ui-library/{p-ee950ce2.entry.js.map → p-64b4755d.entry.js.map} +1 -1
  876. package/dist/ui-library/p-6c1b046e.entry.js +2 -0
  877. package/dist/ui-library/p-6c1b046e.entry.js.map +1 -0
  878. package/dist/ui-library/p-7115316e.entry.js +2 -0
  879. package/dist/ui-library/p-7115316e.entry.js.map +1 -0
  880. package/dist/ui-library/p-73dd493f.entry.js +2 -0
  881. package/dist/ui-library/p-73dd493f.entry.js.map +1 -0
  882. package/dist/ui-library/{p-0fdb185d.js → p-7f856f00.js} +1 -1
  883. package/dist/ui-library/{p-1f18768a.js → p-8227aaed.js} +2 -2
  884. package/dist/ui-library/{p-8c0971e0.js → p-842b492e.js} +1 -1
  885. package/dist/ui-library/{p-0f510624.js → p-862d474e.js} +1 -1
  886. package/dist/ui-library/p-862d474e.js.map +1 -0
  887. package/dist/ui-library/p-870b988d.entry.js +2 -0
  888. package/dist/ui-library/p-870b988d.entry.js.map +1 -0
  889. package/dist/ui-library/{p-13b43e04.entry.js → p-884c5cf9.entry.js} +2 -2
  890. package/dist/ui-library/p-8888a367.entry.js +2 -0
  891. package/dist/ui-library/{p-878226a0.entry.js.map → p-8888a367.entry.js.map} +1 -1
  892. package/dist/ui-library/{p-7d95def3.js → p-8bfb4bfc.js} +1 -1
  893. package/dist/ui-library/p-8ced18d8.entry.js +2 -0
  894. package/dist/ui-library/p-8ced18d8.entry.js.map +1 -0
  895. package/dist/ui-library/{p-dfed33c5.entry.js → p-935c78a7.entry.js} +2 -2
  896. package/dist/ui-library/p-961bd001.entry.js +2 -0
  897. package/dist/ui-library/p-961bd001.entry.js.map +1 -0
  898. package/dist/ui-library/{p-9ace84c7.js → p-998de05d.js} +1 -1
  899. package/dist/ui-library/p-9b08068d.entry.js +2 -0
  900. package/dist/ui-library/p-9b08068d.entry.js.map +1 -0
  901. package/dist/ui-library/p-9c79341d.entry.js +2 -0
  902. package/dist/ui-library/{p-3cc5addb.entry.js.map → p-9c79341d.entry.js.map} +1 -1
  903. package/dist/ui-library/{p-698bb2c8.js → p-a1502802.js} +1 -1
  904. package/dist/ui-library/{p-91b51800.entry.js → p-a9c159f2.entry.js} +2 -2
  905. package/dist/ui-library/p-ac57ba5c.entry.js +2 -0
  906. package/dist/ui-library/{p-a6a9ee96.entry.js.map → p-ac57ba5c.entry.js.map} +1 -1
  907. package/dist/ui-library/p-af15381b.js +3 -0
  908. package/dist/ui-library/p-af15381b.js.map +1 -0
  909. package/dist/ui-library/p-b1a5f3cd.entry.js +2 -0
  910. package/dist/ui-library/p-b1a5f3cd.entry.js.map +1 -0
  911. package/dist/ui-library/p-b385a241.entry.js +2 -0
  912. package/dist/ui-library/{p-cd67da3d.entry.js.map → p-b385a241.entry.js.map} +1 -1
  913. package/dist/ui-library/p-b74c5d6b.entry.js +2 -0
  914. package/dist/ui-library/p-b74c5d6b.entry.js.map +1 -0
  915. package/dist/ui-library/p-bf2fb53f.entry.js +2 -0
  916. package/dist/ui-library/p-bf2fb53f.entry.js.map +1 -0
  917. package/dist/ui-library/p-c2c7370b.entry.js +2 -0
  918. package/dist/ui-library/p-c2c7370b.entry.js.map +1 -0
  919. package/dist/ui-library/p-caea1eb6.entry.js +2 -0
  920. package/dist/ui-library/{p-7e3ad38a.entry.js.map → p-caea1eb6.entry.js.map} +1 -1
  921. package/dist/ui-library/p-d3f5b9a8.entry.js +2 -0
  922. package/dist/ui-library/p-d3f5b9a8.entry.js.map +1 -0
  923. package/dist/ui-library/p-d42b18eb.entry.js +2 -0
  924. package/dist/ui-library/{p-264d4ea8.entry.js.map → p-d42b18eb.entry.js.map} +1 -1
  925. package/dist/ui-library/p-d95e292e.entry.js +2 -0
  926. package/dist/ui-library/{p-d367f4f9.entry.js.map → p-d95e292e.entry.js.map} +1 -1
  927. package/dist/ui-library/p-da7f3dbd.entry.js +2 -0
  928. package/dist/ui-library/p-da7f3dbd.entry.js.map +1 -0
  929. package/dist/ui-library/p-dfb89b6a.entry.js +2 -0
  930. package/dist/ui-library/p-dfb89b6a.entry.js.map +1 -0
  931. package/dist/ui-library/p-e080d5b6.js +2 -0
  932. package/dist/ui-library/p-e080d5b6.js.map +1 -0
  933. package/dist/ui-library/p-e6032375.entry.js +2 -0
  934. package/dist/ui-library/p-e6032375.entry.js.map +1 -0
  935. package/dist/ui-library/p-e60d2324.entry.js +2 -0
  936. package/dist/ui-library/p-e60d2324.entry.js.map +1 -0
  937. package/dist/ui-library/p-e8298c6e.entry.js +2 -0
  938. package/dist/ui-library/p-e8298c6e.entry.js.map +1 -0
  939. package/dist/ui-library/p-ed279165.entry.js +2 -0
  940. package/dist/ui-library/p-ed279165.entry.js.map +1 -0
  941. package/dist/ui-library/p-ed61b75c.entry.js +2 -0
  942. package/dist/ui-library/p-ed61b75c.entry.js.map +1 -0
  943. package/dist/ui-library/p-f136a6b2.js +2 -0
  944. package/dist/ui-library/p-f136a6b2.js.map +1 -0
  945. package/dist/ui-library/p-f1ab3384.entry.js +2 -0
  946. package/dist/ui-library/{p-37557787.entry.js.map → p-f1ab3384.entry.js.map} +1 -1
  947. package/dist/ui-library/p-f4ef481c.entry.js +2 -0
  948. package/dist/ui-library/p-f4ef481c.entry.js.map +1 -0
  949. package/dist/ui-library/{p-9b354f5d.entry.js → p-f8cbb8da.entry.js} +2 -2
  950. package/dist/ui-library/ui-library.css +1 -10
  951. package/dist/ui-library/ui-library.esm.js +1 -1
  952. package/dist/ui-library/ui-library.esm.js.map +1 -1
  953. package/package.json +18 -19
  954. package/dist/cjs/event-listeners-fdfe838c.js +0 -61
  955. package/dist/cjs/event-listeners-fdfe838c.js.map +0 -1
  956. package/dist/cjs/focus-visible-ae2470dd.js +0 -47
  957. package/dist/cjs/form-2df8c5bb.js +0 -20
  958. package/dist/cjs/form-control-d369af14.js +0 -33
  959. package/dist/cjs/form-control-d369af14.js.map +0 -1
  960. package/dist/cjs/index-900437fc.js.map +0 -1
  961. package/dist/cjs/modal-d5f074c7.js +0 -52
  962. package/dist/cjs/modal-d5f074c7.js.map +0 -1
  963. package/dist/cjs/popover-2df7e154.js.map +0 -1
  964. package/dist/cjs/popup-f1d9910f.js +0 -103
  965. package/dist/cjs/popup-f1d9910f.js.map +0 -1
  966. package/dist/cjs/scroll-03678de1.js +0 -69
  967. package/dist/cjs/scroll-03678de1.js.map +0 -1
  968. package/dist/cjs/set-attributes_2.cjs.entry.js +0 -73
  969. package/dist/cjs/set-attributes_2.cjs.entry.js.map +0 -1
  970. package/dist/cjs/six-checkbox.cjs.entry.js +0 -124
  971. package/dist/cjs/six-checkbox.cjs.entry.js.map +0 -1
  972. package/dist/cjs/six-menu-item.cjs.entry.js +0 -63
  973. package/dist/cjs/six-menu-item.cjs.entry.js.map +0 -1
  974. package/dist/cjs/slot-6e6a400f.js +0 -53
  975. package/dist/cjs/slot-6e6a400f.js.map +0 -1
  976. package/dist/cjs/types-47199040.js +0 -17
  977. package/dist/cjs/types-47199040.js.map +0 -1
  978. package/dist/collection/components/six-tab/test/six-tab.spec.js +0 -20
  979. package/dist/collection/components/six-tab/test/six-tab.spec.js.map +0 -1
  980. package/dist/collection/components/six-tab-group/test/six-tab-group.spec.js +0 -45
  981. package/dist/collection/components/six-tab-group/test/six-tab-group.spec.js.map +0 -1
  982. package/dist/collection/wrappers/set-attributes/set-attributes.js +0 -74
  983. package/dist/collection/wrappers/set-attributes/set-attributes.js.map +0 -1
  984. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js +0 -16
  985. package/dist/collection/wrappers/set-attributes/test/set-attributes.spec.js.map +0 -1
  986. package/dist/components/set-attributes.js +0 -8
  987. package/dist/components/set-attributes.js.map +0 -1
  988. package/dist/components/set-attributes2.js +0 -71
  989. package/dist/components/set-attributes2.js.map +0 -1
  990. package/dist/components/six-tag2.js +0 -74
  991. package/dist/components/six-tag2.js.map +0 -1
  992. package/dist/esm/event-listeners-f6e5b0ab.js +0 -59
  993. package/dist/esm/event-listeners-f6e5b0ab.js.map +0 -1
  994. package/dist/esm/focus-visible-fc6ac671.js +0 -45
  995. package/dist/esm/form-81252534.js +0 -18
  996. package/dist/esm/form-control-32cb533f.js +0 -31
  997. package/dist/esm/form-control-32cb533f.js.map +0 -1
  998. package/dist/esm/index-8a74f992.js.map +0 -1
  999. package/dist/esm/modal-7d32e141.js +0 -49
  1000. package/dist/esm/modal-7d32e141.js.map +0 -1
  1001. package/dist/esm/popover-136d1f73.js.map +0 -1
  1002. package/dist/esm/popup-7f89a001.js +0 -98
  1003. package/dist/esm/popup-7f89a001.js.map +0 -1
  1004. package/dist/esm/scroll-3fb087a2.js +0 -64
  1005. package/dist/esm/set-attributes_2.entry.js +0 -68
  1006. package/dist/esm/set-attributes_2.entry.js.map +0 -1
  1007. package/dist/esm/six-checkbox.entry.js +0 -120
  1008. package/dist/esm/six-checkbox.entry.js.map +0 -1
  1009. package/dist/esm/six-menu-item.entry.js +0 -59
  1010. package/dist/esm/six-menu-item.entry.js.map +0 -1
  1011. package/dist/esm/slot-ad36df3a.js +0 -48
  1012. package/dist/esm/slot-ad36df3a.js.map +0 -1
  1013. package/dist/esm/types-59b455aa.js +0 -17
  1014. package/dist/esm/types-59b455aa.js.map +0 -1
  1015. package/dist/types/wrappers/set-attributes/set-attributes.d.ts +0 -9
  1016. package/dist/ui-library/p-0f510624.js.map +0 -1
  1017. package/dist/ui-library/p-1256cc0a.entry.js +0 -2
  1018. package/dist/ui-library/p-1256cc0a.entry.js.map +0 -1
  1019. package/dist/ui-library/p-15559d38.js +0 -2
  1020. package/dist/ui-library/p-15559d38.js.map +0 -1
  1021. package/dist/ui-library/p-19ed7a4c.entry.js +0 -2
  1022. package/dist/ui-library/p-19ed7a4c.entry.js.map +0 -1
  1023. package/dist/ui-library/p-1d0bee53.entry.js +0 -2
  1024. package/dist/ui-library/p-1d0bee53.entry.js.map +0 -1
  1025. package/dist/ui-library/p-1d5ee1a0.entry.js +0 -2
  1026. package/dist/ui-library/p-1d5ee1a0.entry.js.map +0 -1
  1027. package/dist/ui-library/p-21b3b321.entry.js +0 -2
  1028. package/dist/ui-library/p-21b3b321.entry.js.map +0 -1
  1029. package/dist/ui-library/p-2451cfdc.entry.js +0 -2
  1030. package/dist/ui-library/p-2451cfdc.entry.js.map +0 -1
  1031. package/dist/ui-library/p-264d4ea8.entry.js +0 -2
  1032. package/dist/ui-library/p-29ac3d7d.entry.js +0 -2
  1033. package/dist/ui-library/p-29ac3d7d.entry.js.map +0 -1
  1034. package/dist/ui-library/p-314b2096.entry.js +0 -2
  1035. package/dist/ui-library/p-314b2096.entry.js.map +0 -1
  1036. package/dist/ui-library/p-330a4988.entry.js +0 -2
  1037. package/dist/ui-library/p-330a4988.entry.js.map +0 -1
  1038. package/dist/ui-library/p-346f9557.entry.js +0 -2
  1039. package/dist/ui-library/p-346f9557.entry.js.map +0 -1
  1040. package/dist/ui-library/p-37557787.entry.js +0 -2
  1041. package/dist/ui-library/p-3cc5addb.entry.js +0 -2
  1042. package/dist/ui-library/p-3d9de119.entry.js +0 -2
  1043. package/dist/ui-library/p-3d9de119.entry.js.map +0 -1
  1044. package/dist/ui-library/p-411ed539.entry.js +0 -2
  1045. package/dist/ui-library/p-411ed539.entry.js.map +0 -1
  1046. package/dist/ui-library/p-4705a51e.entry.js +0 -2
  1047. package/dist/ui-library/p-4705a51e.entry.js.map +0 -1
  1048. package/dist/ui-library/p-4abed9df.entry.js +0 -2
  1049. package/dist/ui-library/p-4abed9df.entry.js.map +0 -1
  1050. package/dist/ui-library/p-59210f0b.js +0 -2
  1051. package/dist/ui-library/p-59210f0b.js.map +0 -1
  1052. package/dist/ui-library/p-5d6b7353.entry.js +0 -2
  1053. package/dist/ui-library/p-5d6b7353.entry.js.map +0 -1
  1054. package/dist/ui-library/p-613283a7.entry.js +0 -2
  1055. package/dist/ui-library/p-613283a7.entry.js.map +0 -1
  1056. package/dist/ui-library/p-6153045b.js +0 -3
  1057. package/dist/ui-library/p-6153045b.js.map +0 -1
  1058. package/dist/ui-library/p-6197fe2f.entry.js +0 -2
  1059. package/dist/ui-library/p-6197fe2f.entry.js.map +0 -1
  1060. package/dist/ui-library/p-6eb24bcb.entry.js +0 -2
  1061. package/dist/ui-library/p-6eb24bcb.entry.js.map +0 -1
  1062. package/dist/ui-library/p-72254eef.entry.js.map +0 -1
  1063. package/dist/ui-library/p-724875b0.entry.js +0 -2
  1064. package/dist/ui-library/p-724875b0.entry.js.map +0 -1
  1065. package/dist/ui-library/p-7afafb9d.entry.js +0 -2
  1066. package/dist/ui-library/p-7afafb9d.entry.js.map +0 -1
  1067. package/dist/ui-library/p-7e3ad38a.entry.js +0 -2
  1068. package/dist/ui-library/p-83864cfe.entry.js +0 -2
  1069. package/dist/ui-library/p-83864cfe.entry.js.map +0 -1
  1070. package/dist/ui-library/p-878226a0.entry.js +0 -2
  1071. package/dist/ui-library/p-95fbdd0b.entry.js +0 -2
  1072. package/dist/ui-library/p-95fbdd0b.entry.js.map +0 -1
  1073. package/dist/ui-library/p-99e24daf.entry.js +0 -2
  1074. package/dist/ui-library/p-99e24daf.entry.js.map +0 -1
  1075. package/dist/ui-library/p-9c1be3fb.entry.js +0 -2
  1076. package/dist/ui-library/p-9c1be3fb.entry.js.map +0 -1
  1077. package/dist/ui-library/p-a0f290d0.entry.js +0 -2
  1078. package/dist/ui-library/p-a55c7258.entry.js +0 -2
  1079. package/dist/ui-library/p-a55c7258.entry.js.map +0 -1
  1080. package/dist/ui-library/p-a6a9ee96.entry.js +0 -2
  1081. package/dist/ui-library/p-ae601a0f.entry.js +0 -2
  1082. package/dist/ui-library/p-ae601a0f.entry.js.map +0 -1
  1083. package/dist/ui-library/p-bf87464b.entry.js +0 -2
  1084. package/dist/ui-library/p-bf87464b.entry.js.map +0 -1
  1085. package/dist/ui-library/p-c03ebf7d.entry.js +0 -2
  1086. package/dist/ui-library/p-c03ebf7d.entry.js.map +0 -1
  1087. package/dist/ui-library/p-cd67da3d.entry.js +0 -2
  1088. package/dist/ui-library/p-cdaed936.entry.js +0 -2
  1089. package/dist/ui-library/p-cdaed936.entry.js.map +0 -1
  1090. package/dist/ui-library/p-d367f4f9.entry.js +0 -2
  1091. package/dist/ui-library/p-d42c2025.js +0 -2
  1092. package/dist/ui-library/p-d42c2025.js.map +0 -1
  1093. package/dist/ui-library/p-ed381ad9.entry.js +0 -2
  1094. package/dist/ui-library/p-ed381ad9.entry.js.map +0 -1
  1095. package/dist/ui-library/p-ee8342e1.entry.js +0 -2
  1096. package/dist/ui-library/p-ee8342e1.entry.js.map +0 -1
  1097. package/dist/ui-library/p-ee950ce2.entry.js +0 -2
  1098. package/dist/ui-library/p-ff90ffd1.entry.js +0 -2
  1099. package/dist/ui-library/p-ff90ffd1.entry.js.map +0 -1
  1100. package/readme.md +0 -156
  1101. /package/dist/ui-library/{p-5654e4c7.js.map → p-06ba4450.js.map} +0 -0
  1102. /package/dist/ui-library/{p-b351f889.entry.js.map → p-546e33d9.entry.js.map} +0 -0
  1103. /package/dist/ui-library/{p-0fdb185d.js.map → p-7f856f00.js.map} +0 -0
  1104. /package/dist/ui-library/{p-1f18768a.js.map → p-8227aaed.js.map} +0 -0
  1105. /package/dist/ui-library/{p-8c0971e0.js.map → p-842b492e.js.map} +0 -0
  1106. /package/dist/ui-library/{p-13b43e04.entry.js.map → p-884c5cf9.entry.js.map} +0 -0
  1107. /package/dist/ui-library/{p-7d95def3.js.map → p-8bfb4bfc.js.map} +0 -0
  1108. /package/dist/ui-library/{p-dfed33c5.entry.js.map → p-935c78a7.entry.js.map} +0 -0
  1109. /package/dist/ui-library/{p-9ace84c7.js.map → p-998de05d.js.map} +0 -0
  1110. /package/dist/ui-library/{p-698bb2c8.js.map → p-a1502802.js.map} +0 -0
  1111. /package/dist/ui-library/{p-91b51800.entry.js.map → p-a9c159f2.entry.js.map} +0 -0
  1112. /package/dist/ui-library/{p-9b354f5d.entry.js.map → p-f8cbb8da.entry.js.map} +0 -0
@@ -1,68 +0,0 @@
1
- import { r as registerInstance, h, g as getElement } from './index-8a74f992.js';
2
-
3
- const SetAttributes = class {
4
- constructor(hostRef) {
5
- registerInstance(this, hostRef);
6
- this.value = {};
7
- }
8
- componentWillLoad() {
9
- this.injectAttrs();
10
- }
11
- attrsUpdated() {
12
- this.injectAttrs();
13
- }
14
- injectAttrs() {
15
- const slot = this.host.firstElementChild;
16
- if (typeof (slot === null || slot === void 0 ? void 0 : slot.assignedElements) !== 'function') {
17
- return;
18
- }
19
- const child = slot.assignedElements().pop();
20
- if (!child) {
21
- return;
22
- }
23
- const types = {
24
- // no need for function and bigint
25
- undefined: (key) => child.removeAttribute(key),
26
- boolean: (key, value) => {
27
- if (value != null) {
28
- child.setAttribute(key, '');
29
- }
30
- else {
31
- child.removeAttribute(key);
32
- }
33
- },
34
- number: (key, value) => child.setAttribute(key, value),
35
- string: (key, value) => child.setAttribute(key, value),
36
- object: (key, value) => child.setAttribute(key, JSON.stringify(value)),
37
- };
38
- for (const [key, value] of Object.entries(this.value)) {
39
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
40
- // @ts-ignore
41
- types[typeof value](key, value);
42
- }
43
- }
44
- render() {
45
- return h("slot", null);
46
- }
47
- get host() { return getElement(this); }
48
- static get watchers() { return {
49
- "value": ["attrsUpdated"]
50
- }; }
51
- };
52
-
53
- const sixStageIndicatorCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:grid}.center-content{display:grid;align-self:center;justify-self:center;grid-gap:5px;grid-auto-flow:column}.align-item{margin:auto}.indicator,.indicator--acceptance,.indicator--etu,.indicator--dev,.indicator--itu{font-family:var(--six-font-family);font-size:14px;font-weight:var(--six-font-weight-bold);display:grid;align-content:center;width:100%;height:24px}.indicator--itu{background-color:var(--six-color-success-600);color:var(--six-color-web-rock-900)}.indicator--dev{background-color:var(--six-color-web-rock-900);color:var(--six-color-white)}.indicator--etu{background-color:var(--six-color-action-600);color:var(--six-color-white)}.indicator--acceptance{background-color:var(--six-color-warning-800);color:var(--six-color-web-rock-900)}";
54
-
55
- const SixStageIndicator = class {
56
- constructor(hostRef) {
57
- registerInstance(this, hostRef);
58
- this.stage = null;
59
- }
60
- render() {
61
- return this.stage == null || this.stage == 'PROD' ? null : (h("div", { class: `indicator--${this.stage.toLowerCase()}` }, h("div", { class: "center-content" }, h("six-icon", { class: "align-item", size: "small" }, "error_outline"), h("span", { class: 'align-item' }, h("slot", null)))));
62
- }
63
- };
64
- SixStageIndicator.style = sixStageIndicatorCss;
65
-
66
- export { SetAttributes as set_attributes, SixStageIndicator as six_stage_indicator };
67
-
68
- //# sourceMappingURL=set-attributes_2.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"set-attributes.six-stage-indicator.entry.js","mappings":";;MAKa,aAAa;;;iBAIR,EAAE;;EAElB,iBAAiB;IACf,IAAI,CAAC,WAAW,EAAE,CAAC;GACpB;EAGD,YAAY;IACV,IAAI,CAAC,WAAW,EAAE,CAAC;GACpB;EAEO,WAAW;IACjB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,iBAAoC,CAAC;IAE5D,IAAI,QAAO,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,gBAAgB,CAAA,KAAK,UAAU,EAAE;MAChD,OAAO;KACR;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,CAAC;IAE5C,IAAI,CAAC,KAAK,EAAE;MACV,OAAO;KACR;IAED,MAAM,KAAK,GAAG;;MAEZ,SAAS,EAAE,CAAC,GAAW,KAAK,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC;MACtD,OAAO,EAAE,CAAC,GAAW,EAAE,KAAc;QACnC,IAAI,KAAK,IAAI,IAAI,EAAE;UACjB,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;SAC7B;aAAM;UACL,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;SAC5B;OACF;MACD,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC;MACtE,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,KAAK,CAAC;MACtE,MAAM,EAAE,CAAC,GAAW,EAAE,KAAa,KAAK,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;KACvF,CAAC;IAEF,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;;;MAGrD,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;KACjC;GACF;EAED,MAAM;IACJ,OAAO,eAAQ,CAAC;GACjB;;;;;;;ACzDH,MAAM,oBAAoB,GAAG,+1BAA+1B;;MCS/2B,iBAAiB;;;iBAED,IAAI;;EAE/B,MAAM;IACJ,OAAO,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,IAAI,MAAM,GAAG,IAAI,IACtD,WAAK,KAAK,EAAE,cAAc,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,IAClD,WAAK,KAAK,EAAC,gBAAgB,IACzB,gBAAU,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,OAAO,oBAE9B,EACX,YAAM,KAAK,EAAE,YAAY,IACvB,eAAQ,CACH,CACH,CACF,CACP,CAAC;GACH;;;;;;","names":[],"sources":["src/wrappers/set-attributes/set-attributes.tsx","src/components/six-stage-indicator/six-stage-indicator.scss?tag=six-stage-indicator&encapsulation=shadow","src/components/six-stage-indicator/six-stage-indicator.tsx"],"sourcesContent":["import { Component, Element, h, Prop, Watch } from '@stencil/core';\n\n@Component({\n tag: 'set-attributes',\n})\nexport class SetAttributes {\n @Element() host!: HTMLSetAttributesElement;\n\n /** Attributes map */\n @Prop() value = {};\n\n componentWillLoad() {\n this.injectAttrs();\n }\n\n @Watch('value')\n attrsUpdated() {\n this.injectAttrs();\n }\n\n private injectAttrs() {\n const slot = this.host.firstElementChild as HTMLSlotElement;\n\n if (typeof slot?.assignedElements !== 'function') {\n return;\n }\n\n const child = slot.assignedElements().pop();\n\n if (!child) {\n return;\n }\n\n const types = {\n // no need for function and bigint\n undefined: (key: string) => child.removeAttribute(key),\n boolean: (key: string, value: unknown) => {\n if (value != null) {\n child.setAttribute(key, '');\n } else {\n child.removeAttribute(key);\n }\n },\n number: (key: string, value: string) => child.setAttribute(key, value),\n string: (key: string, value: string) => child.setAttribute(key, value),\n object: (key: string, value: string) => child.setAttribute(key, JSON.stringify(value)),\n };\n\n for (const [key, value] of Object.entries(this.value)) {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n types[typeof value](key, value);\n }\n }\n\n render() {\n return <slot />;\n }\n}\n","@import 'src/global/component';\n\n:host {\n display: grid;\n}\n\n.center-content {\n display: grid;\n align-self: center;\n justify-self: center;\n grid-gap: 5px;\n grid-auto-flow: column;\n}\n\n.align-item {\n margin: auto;\n}\n\n.indicator {\n font-family: var(--six-font-family);\n font-size: 14px;\n font-weight: var(--six-font-weight-bold);\n display: grid;\n align-content: center;\n width: 100%;\n height: 24px;\n\n &--itu {\n @extend .indicator;\n background-color: var(--six-color-success-600);\n color: var(--six-color-web-rock-900);\n }\n\n &--dev {\n @extend .indicator;\n background-color: var(--six-color-web-rock-900);\n color: var(--six-color-white);\n }\n\n &--etu {\n @extend .indicator;\n background-color: var(--six-color-action-600);\n color: var(--six-color-white);\n }\n\n &--acceptance {\n @extend .indicator;\n background-color: var(--six-color-warning-800);\n color: var(--six-color-web-rock-900);\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\nexport type StageType = 'DEV' | 'ITU' | 'ETU' | 'ACCEPTANCE' | 'PROD' | null;\n\n@Component({\n tag: 'six-stage-indicator',\n styleUrl: 'six-stage-indicator.scss',\n shadow: true,\n})\nexport class SixStageIndicator {\n /** The indicators value attribute */\n @Prop() stage: StageType = null;\n\n render() {\n return this.stage == null || this.stage == 'PROD' ? null : (\n <div class={`indicator--${this.stage.toLowerCase()}`}>\n <div class=\"center-content\">\n <six-icon class=\"align-item\" size=\"small\">\n error_outline\n </six-icon>\n <span class={'align-item'}>\n <slot />\n </span>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,120 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-8a74f992.js';
2
- import { F as FormControl } from './form-control-32cb533f.js';
3
- import { h as hasSlot } from './slot-ad36df3a.js';
4
- import { E as EventListeners } from './event-listeners-f6e5b0ab.js';
5
-
6
- const sixCheckboxCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}.form-control .form-control__label{display:none}.form-control .form-control__help-text{display:none}.form-control .form-control__error-text{display:none}.form-control--has-label .form-control__label{display:inline-block;color:var(--six-input-label-color);font-weight:var(--six-font-weight-bold);margin-bottom:var(--six-spacing-x-small)}.form-control--has-label .form-control__label__required::after{color:var(--six-color-danger-800);content:\"*\"}.form-control--has-label.form-control--small .form-control__label{font-size:var(--six-input-label-font-size-small)}.form-control--has-label.form-control--medium .form-control__label{font-size:var(--six-input-label-font-size-medium)}.form-control--has-label.form-control--large .form-control_label{font-size:var(--six-input-label-font-size-large)}.form-control--has-help-text .form-control__help-text{display:block;color:var(--six-input-help-text-color);margin-top:var(--six-spacing-x-small)}.form-control--has-help-text .form-control__help-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-help-text.form-control--small .form-control__help-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-help-text.form-control--medium .form-control__help-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-help-text.form-control--large .form-control__help-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--has-error-text .form-control__error-text{display:block;color:var(--six-color-danger-800);margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text .form-control__error-text ::slotted(*){margin-top:var(--six-spacing-xxx-small)}.form-control--has-error-text.form-control--small .form-control__error-text{font-size:var(--six-input-help-text-font-size-small)}.form-control--has-error-text.form-control--medium .form-control__error-text{font-size:var(--six-input-help-text-font-size-medium)}.form-control--has-error-text.form-control--large .form-control__error-text{font-size:var(--six-input-help-text-font-size-large)}.form-control--disabled .form-control__help-text{color:var(--six-input-help-text-color-disabled)}.form-control--disabled .form-control__label{color:var(--six-input-label-color-disabled)}.form-control--invalid:not(.form-control--disabled) .form-control__label{color:var(--six-input-label-color)}:host{display:inline-block}.checkbox{display:inline-flex;align-items:center;font-family:var(--six-font-family);font-size:var(--six-input-font-size-medium);font-weight:var(--six-input-font-weight);color:var(--six-input-color);vertical-align:middle;cursor:pointer}.checkbox__control{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--six-selection-control-toggle-size);height:var(--six-selection-control-toggle-size);border:solid var(--six-border-width) var(--six-input-border-color);border-radius:0;background-color:var(--six-input-background-color);color:var(--six-checkbox-color);transition:var(--six-transition-fast) border-color, var(--six-transition-fast) background-color, var(--six-transition-fast) color, var(--six-transition-fast) box-shadow}.checkbox__control input[type=checkbox]{position:absolute;opacity:0;padding:0;margin:0;pointer-events:none}.checkbox__control .checkbox__icon{display:inline-flex;width:var(--six-selection-control-toggle-size);height:var(--six-selection-control-toggle-size)}.checkbox__control .checkbox__icon svg{width:100%;height:100%}.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--six-input-border-color-hover)}.checkbox--checked .checkbox__control,.checkbox--indeterminate .checkbox__control{border-color:var(--six-selection-control-color);background-color:var(--six-selection-control-color)}.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover{border-color:var(--six-input-border-color-focus);background-color:var(--six-input-border-color-focus)}.checkbox--disabled{cursor:not-allowed;color:var(--six-input-color-disabled)}.checkbox--disabled .checkbox__control{border-color:var(--six-input-border-color-disabled)}.checkbox--disabled.checkbox--checked .checkbox__control,.checkbox--disabled.checkbox--indeterminate .checkbox__control{background-color:var(--six-selection-control-color-disabled)}.checkbox--invalid:not(.checkbox--disabled) .checkbox__control{border-color:var(--six-input-border-color-danger)}.checkbox__text{line-height:var(--six-selection-control-toggle-size);margin-left:0.5em;user-select:none}";
7
-
8
- let id = 0;
9
- const SixCheckbox = class {
10
- constructor(hostRef) {
11
- registerInstance(this, hostRef);
12
- this.sixBlur = createEvent(this, "six-checkbox-blur", 7);
13
- this.sixChange = createEvent(this, "six-checkbox-change", 7);
14
- this.sixFocus = createEvent(this, "six-checkbox-focus", 7);
15
- this.inputId = `checkbox-${++id}`;
16
- this.labelId = `checkbox-label-${id}`;
17
- this.textId = `checkbox-text-${id}`;
18
- this.errorTextId = `input-error-text-${id}`;
19
- this.eventListeners = new EventListeners();
20
- this.handleChange = () => {
21
- if (this.nativeInput != null) {
22
- this.checked = this.nativeInput.checked;
23
- this.indeterminate = false;
24
- this.sixChange.emit();
25
- }
26
- };
27
- this.handleBlur = () => {
28
- this.hasFocus = false;
29
- this.sixBlur.emit();
30
- };
31
- this.handleFocus = () => {
32
- this.hasFocus = true;
33
- this.sixFocus.emit();
34
- };
35
- this.handleMouseDown = (event) => {
36
- var _a;
37
- // Prevent clicks on the label from briefly blurring the input
38
- event.preventDefault();
39
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.focus();
40
- };
41
- this.hasFocus = false;
42
- this.hasLabelSlot = false;
43
- this.name = '';
44
- this.value = 'on';
45
- this.disabled = false;
46
- this.required = false;
47
- this.label = '';
48
- this.errorText = '';
49
- this.invalid = false;
50
- this.checked = false;
51
- this.indeterminate = false;
52
- }
53
- handleCheckedChange() {
54
- if (this.nativeInput == null)
55
- return;
56
- this.nativeInput.checked = this.checked;
57
- this.checked = this.nativeInput.checked;
58
- this.nativeInput.indeterminate = this.indeterminate;
59
- }
60
- handleLabelChange() {
61
- this.handleSlotChange();
62
- }
63
- connectedCallback() {
64
- var _a;
65
- (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.addEventListener('slotchange', this.handleSlotChange);
66
- this.eventListeners.forward('six-checkbox-change', 'change', this.host);
67
- this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);
68
- this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);
69
- }
70
- disconnectedCallback() {
71
- var _a;
72
- (_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.removeEventListener('slotchange', this.handleSlotChange);
73
- this.eventListeners.removeAll();
74
- }
75
- componentWillLoad() {
76
- this.handleSlotChange();
77
- }
78
- componentDidLoad() {
79
- const nativeInput = this.nativeInput;
80
- if (nativeInput == null) {
81
- return;
82
- }
83
- nativeInput.indeterminate = this.indeterminate;
84
- }
85
- /** Sets focus on the checkbox. */
86
- async setFocus(options) {
87
- var _a;
88
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.focus(options);
89
- }
90
- /** Removes focus from the checkbox. */
91
- async removeFocus() {
92
- var _a;
93
- (_a = this.nativeInput) === null || _a === void 0 ? void 0 : _a.blur();
94
- }
95
- handleSlotChange() {
96
- this.hasLabelSlot = hasSlot(this.host, 'label');
97
- }
98
- render() {
99
- return (h(FormControl, { inputId: this.inputId, label: this.label, labelId: this.labelId, hasLabelSlot: this.hasLabelSlot, errorTextId: this.errorTextId, errorText: this.errorText, size: "medium", disabled: this.disabled, required: this.required, displayError: this.invalid }, h("label", { part: "base", class: {
100
- checkbox: true,
101
- 'checkbox--checked': this.checked,
102
- 'checkbox--disabled': this.disabled,
103
- 'checkbox--focused': this.hasFocus,
104
- 'checkbox--invalid': this.invalid,
105
- 'checkbox--indeterminate': this.indeterminate,
106
- }, htmlFor: this.inputId, onMouseDown: this.handleMouseDown }, h("span", { part: "control", class: "checkbox__control" }, this.checked && (h("span", { part: "checked-icon", class: "checkbox__icon" }, h("svg", { viewBox: "0 0 16 16" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { stroke: "currentColor", "stroke-width": "2" }, h("g", { transform: "translate(3.428571, 3.428571)" }, h("path", { d: "M0,5.71428571 L3.42857143,9.14285714" }), h("path", { d: "M9.14285714,0 L3.42857143,9.14285714" }))))))), !this.checked && this.indeterminate && (h("span", { part: "indeterminate-icon", class: "checkbox__icon" }, h("svg", { viewBox: "0 0 16 16" }, h("g", { stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd", "stroke-linecap": "round" }, h("g", { stroke: "currentColor", "stroke-width": "2" }, h("g", { transform: "translate(2.285714, 6.857143)" }, h("path", { d: "M10.2857143,1.14285714 L1.14285714,1.14285714" }))))))), h("input", { ref: (el) => (this.nativeInput = el), id: this.inputId, type: "checkbox", name: this.name, value: this.value, checked: this.checked, disabled: this.disabled, required: this.required, role: "checkbox", "aria-checked": this.checked ? 'true' : 'false', "aria-labelledby": this.labelId, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus })), h("span", { part: "text", id: this.textId, class: "checkbox__text" }, h("slot", null)))));
107
- }
108
- get host() { return getElement(this); }
109
- static get watchers() { return {
110
- "checked": ["handleCheckedChange"],
111
- "indeterminate": ["handleCheckedChange"],
112
- "errorText": ["handleLabelChange"],
113
- "label": ["handleLabelChange"]
114
- }; }
115
- };
116
- SixCheckbox.style = sixCheckboxCss;
117
-
118
- export { SixCheckbox as six_checkbox };
119
-
120
- //# sourceMappingURL=six-checkbox.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"six-checkbox.entry.js","mappings":";;;;;AAAA,MAAM,cAAc,GAAG,mnJAAmnJ;;ACM1oJ,IAAI,EAAE,GAAG,CAAC,CAAC;MAuBE,WAAW;;;;;;IACd,YAAO,GAAG,YAAY,EAAE,EAAE,EAAE,CAAC;IAC7B,YAAO,GAAG,kBAAkB,EAAE,EAAE,CAAC;IACjC,WAAM,GAAG,iBAAiB,EAAE,EAAE,CAAC;IAC/B,gBAAW,GAAG,oBAAoB,EAAE,EAAE,CAAC;IAEvC,mBAAc,GAAG,IAAI,cAAc,EAAE,CAAC;IAsGtC,iBAAY,GAAG;MACrB,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;QAC5B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;QACxC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;OACvB;KACF,CAAC;IAEM,eAAU,GAAG;MACnB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;MACtB,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;KACrB,CAAC;IAEM,gBAAW,GAAG;MACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;MACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;KACtB,CAAC;IAEM,oBAAe,GAAG,CAAC,KAAiB;;;MAE1C,KAAK,CAAC,cAAc,EAAE,CAAC;MACvB,MAAA,IAAI,CAAC,WAAW,0CAAE,KAAK,EAAE,CAAC;KAC3B,CAAC;oBAxHkB,KAAK;wBACD,KAAK;gBAGd,EAAE;iBASD,IAAI;oBAGD,KAAK;oBAGL,KAAK;iBAGR,EAAE;qBAGE,EAAE;mBAGa,KAAK;mBAGU,KAAK;yBAGC,KAAK;;EAa7D,mBAAmB;IACjB,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI;MAAE,OAAO;IAErC,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IACxC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;IACxC,IAAI,CAAC,WAAW,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;GACrD;EAID,iBAAiB;IACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;GACzB;EAED,iBAAiB;;IACf,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC5E,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,qBAAqB,EAAE,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACxE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpE,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,oBAAoB,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;GACvE;EAED,oBAAoB;;IAClB,MAAA,IAAI,CAAC,IAAI,CAAC,UAAU,0CAAE,mBAAmB,CAAC,YAAY,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAC/E,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC;GACjC;EAED,iBAAiB;IACf,IAAI,CAAC,gBAAgB,EAAE,CAAC;GACzB;EAED,gBAAgB;IACd,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;IACrC,IAAI,WAAW,IAAI,IAAI,EAAE;MACvB,OAAO;KACR;IAED,WAAW,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC;GAChD;;EAID,MAAM,QAAQ,CAAC,OAAsB;;IACnC,MAAA,IAAI,CAAC,WAAW,0CAAE,KAAK,CAAC,OAAO,CAAC,CAAC;GAClC;;EAID,MAAM,WAAW;;IACf,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,EAAE,CAAC;GAC1B;EA0BO,gBAAgB;IACtB,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;GACjD;EAED,MAAM;IACJ,QACE,EAAC,WAAW,IACV,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,YAAY,EAAE,IAAI,CAAC,OAAO,IAE1B,aACE,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;QACL,QAAQ,EAAE,IAAI;QACd,mBAAmB,EAAE,IAAI,CAAC,OAAO;QACjC,oBAAoB,EAAE,IAAI,CAAC,QAAQ;QACnC,mBAAmB,EAAE,IAAI,CAAC,QAAQ;QAClC,mBAAmB,EAAE,IAAI,CAAC,OAAO;QACjC,yBAAyB,EAAE,IAAI,CAAC,aAAa;OAC9C,EACD,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,WAAW,EAAE,IAAI,CAAC,eAAe,IAEjC,YAAM,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,mBAAmB,IAC3C,IAAI,CAAC,OAAO,KACX,YAAM,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,gBAAgB,IAC9C,WAAK,OAAO,EAAC,WAAW,IACtB,SAAG,MAAM,EAAC,MAAM,kBAAc,GAAG,EAAC,IAAI,EAAC,MAAM,eAAW,SAAS,oBAAgB,OAAO,IACtF,SAAG,MAAM,EAAC,cAAc,kBAAc,GAAG,IACvC,SAAG,SAAS,EAAC,+BAA+B,IAC1C,YAAM,CAAC,EAAC,sCAAsC,GAAQ,EACtD,YAAM,CAAC,EAAC,sCAAsC,GAAQ,CACpD,CACF,CACF,CACA,CACD,CACR,EAEA,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,aAAa,KAClC,YAAM,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAC,gBAAgB,IACpD,WAAK,OAAO,EAAC,WAAW,IACtB,SAAG,MAAM,EAAC,MAAM,kBAAc,GAAG,EAAC,IAAI,EAAC,MAAM,eAAW,SAAS,oBAAgB,OAAO,IACtF,SAAG,MAAM,EAAC,cAAc,kBAAc,GAAG,IACvC,SAAG,SAAS,EAAC,+BAA+B,IAC1C,YAAM,CAAC,EAAC,+CAA+C,GAAQ,CAC7D,CACF,CACF,CACA,CACD,CACR,EAED,aACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC,EACpC,EAAE,EAAE,IAAI,CAAC,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,UAAU,kBACD,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,qBAC5B,IAAI,CAAC,OAAO,EAC7B,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,GACzB,CACG,EAEP,YAAM,IAAI,EAAC,MAAM,EAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAC,gBAAgB,IACvD,eAAQ,CACH,CACD,CACI,EACd;GACH;;;;;;;;;;;;;","names":[],"sources":["src/components/six-checkbox/six-checkbox.scss?tag=six-checkbox&encapsulation=shadow","src/components/six-checkbox/six-checkbox.tsx"],"sourcesContent":["@import 'src/global/component';\n@import '../../functional-components/form-control/form-control';\n\n:host {\n display: inline-block;\n}\n\n.checkbox {\n display: inline-flex;\n align-items: center;\n font-family: var(--six-font-family);\n font-size: var(--six-input-font-size-medium);\n font-weight: var(--six-input-font-weight);\n color: var(--six-input-color);\n vertical-align: middle;\n cursor: pointer;\n}\n\n.checkbox__control {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--six-selection-control-toggle-size);\n height: var(--six-selection-control-toggle-size);\n border: solid var(--six-border-width) var(--six-input-border-color);\n border-radius: 0;\n background-color: var(--six-input-background-color);\n color: var(--six-checkbox-color);\n transition: var(--six-transition-fast) border-color, var(--six-transition-fast) background-color,\n var(--six-transition-fast) color, var(--six-transition-fast) box-shadow;\n\n input[type='checkbox'] {\n position: absolute;\n opacity: 0;\n padding: 0;\n margin: 0;\n pointer-events: none;\n }\n\n .checkbox__icon {\n display: inline-flex;\n width: var(--six-selection-control-toggle-size);\n height: var(--six-selection-control-toggle-size);\n\n svg {\n width: 100%;\n height: 100%;\n }\n }\n}\n\n// Hover\n.checkbox:not(.checkbox--checked):not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--six-input-border-color-hover);\n}\n\n// Checked/indeterminate\n.checkbox--checked .checkbox__control,\n.checkbox--indeterminate .checkbox__control {\n border-color: var(--six-selection-control-color);\n background-color: var(--six-selection-control-color);\n}\n\n// Checked/indeterminate + hover\n.checkbox.checkbox--checked:not(.checkbox--disabled) .checkbox__control:hover,\n.checkbox.checkbox--indeterminate:not(.checkbox--disabled) .checkbox__control:hover {\n border-color: var(--six-input-border-color-focus);\n background-color: var(--six-input-border-color-focus);\n}\n\n// Disabled\n.checkbox--disabled {\n cursor: not-allowed;\n color: var(--six-input-color-disabled);\n\n .checkbox__control {\n border-color: var(--six-input-border-color-disabled);\n }\n\n &.checkbox--checked .checkbox__control,\n &.checkbox--indeterminate .checkbox__control {\n background-color: var(--six-selection-control-color-disabled);\n }\n}\n\n// Invalid\n.checkbox--invalid:not(.checkbox--disabled) {\n .checkbox__control {\n border-color: var(--six-input-border-color-danger);\n }\n}\n\n.checkbox__text {\n line-height: var(--six-selection-control-toggle-size);\n margin-left: 0.5em;\n user-select: none;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport FormControl from '../../functional-components/form-control/form-control';\nimport { hasSlot } from '../../utils/slot';\nimport { EmptyPayload } from '../../utils/types';\nimport { EventListeners } from '../../utils/event-listeners';\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot label - The checkbox label.\n * @slot error-text - Error text that is shown for validation errors. Alternatively, you can use the error-text prop.\n *\n * @part base - The component's base wrapper.\n * @part control - The checkbox control.\n * @part checked-icon - The container the wraps the checked icon.\n * @part indeterminate-icon - The container that wraps the indeterminate icon.\n * @part text - The checkbox text rendered to the right.\n */\n\n@Component({\n tag: 'six-checkbox',\n styleUrl: 'six-checkbox.scss',\n shadow: true,\n})\nexport class SixCheckbox {\n private inputId = `checkbox-${++id}`;\n private labelId = `checkbox-label-${id}`;\n private textId = `checkbox-text-${id}`;\n private errorTextId = `input-error-text-${id}`;\n private nativeInput?: HTMLInputElement;\n private eventListeners = new EventListeners();\n\n @Element() host!: HTMLSixCheckboxElement;\n\n @State() hasFocus = false;\n @State() hasLabelSlot = false;\n\n /** The checkbox's name attribute. */\n @Prop() name = '';\n\n /**\n * The value of the checkbox does not mean if it's checked or not, use the `checked`\n * property for that.\n *\n * The value of a checkbox is analogous to the value of an `<input type=\"checkbox\">`,\n * it's only used when the checkbox participates in a native `<form>`.\n */\n @Prop() value = 'on';\n\n /** Set to true to disable the checkbox. */\n @Prop() disabled = false;\n\n /** Set to true to show an asterisk beneath the label. */\n @Prop() required = false;\n\n /** The label text. */\n @Prop() label = '';\n\n /** The error message shown, if `invalid` is set to true. */\n @Prop() errorText = '';\n\n /** If this property is set to true and an error message is provided by `errorText`, the error message is displayed. */\n @Prop({ reflect: true }) invalid = false;\n\n /** Set to true to draw the checkbox in a checked state. */\n @Prop({ mutable: true, reflect: true }) checked = false;\n\n /** Set to true to draw the checkbox in an indeterminate state. */\n @Prop({ mutable: true, reflect: true }) indeterminate = false;\n\n /** Emitted when the control loses focus. */\n @Event({ eventName: 'six-checkbox-blur' }) sixBlur!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control's checked state changes. */\n @Event({ eventName: 'six-checkbox-change' }) sixChange!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the control gains focus. */\n @Event({ eventName: 'six-checkbox-focus' }) sixFocus!: EventEmitter<EmptyPayload>;\n\n @Watch('checked')\n @Watch('indeterminate')\n handleCheckedChange() {\n if (this.nativeInput == null) return;\n\n this.nativeInput.checked = this.checked;\n this.checked = this.nativeInput.checked;\n this.nativeInput.indeterminate = this.indeterminate;\n }\n\n @Watch('errorText')\n @Watch('label')\n handleLabelChange() {\n this.handleSlotChange();\n }\n\n connectedCallback() {\n this.host.shadowRoot?.addEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.forward('six-checkbox-change', 'change', this.host);\n this.eventListeners.forward('six-checkbox-blur', 'blur', this.host);\n this.eventListeners.forward('six-checkbox-focus', 'focus', this.host);\n }\n\n disconnectedCallback() {\n this.host.shadowRoot?.removeEventListener('slotchange', this.handleSlotChange);\n this.eventListeners.removeAll();\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n }\n\n componentDidLoad() {\n const nativeInput = this.nativeInput;\n if (nativeInput == null) {\n return;\n }\n\n nativeInput.indeterminate = this.indeterminate;\n }\n\n /** Sets focus on the checkbox. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.nativeInput?.focus(options);\n }\n\n /** Removes focus from the checkbox. */\n @Method()\n async removeFocus() {\n this.nativeInput?.blur();\n }\n\n private handleChange = () => {\n if (this.nativeInput != null) {\n this.checked = this.nativeInput.checked;\n this.indeterminate = false;\n this.sixChange.emit();\n }\n };\n\n private handleBlur = () => {\n this.hasFocus = false;\n this.sixBlur.emit();\n };\n\n private handleFocus = () => {\n this.hasFocus = true;\n this.sixFocus.emit();\n };\n\n private handleMouseDown = (event: MouseEvent) => {\n // Prevent clicks on the label from briefly blurring the input\n event.preventDefault();\n this.nativeInput?.focus();\n };\n\n private handleSlotChange() {\n this.hasLabelSlot = hasSlot(this.host, 'label');\n }\n\n render() {\n return (\n <FormControl\n inputId={this.inputId}\n label={this.label}\n labelId={this.labelId}\n hasLabelSlot={this.hasLabelSlot}\n errorTextId={this.errorTextId}\n errorText={this.errorText}\n size=\"medium\"\n disabled={this.disabled}\n required={this.required}\n displayError={this.invalid}\n >\n <label\n part=\"base\"\n class={{\n checkbox: true,\n 'checkbox--checked': this.checked,\n 'checkbox--disabled': this.disabled,\n 'checkbox--focused': this.hasFocus,\n 'checkbox--invalid': this.invalid,\n 'checkbox--indeterminate': this.indeterminate,\n }}\n htmlFor={this.inputId}\n onMouseDown={this.handleMouseDown}\n >\n <span part=\"control\" class=\"checkbox__control\">\n {this.checked && (\n <span part=\"checked-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(3.428571, 3.428571)\">\n <path d=\"M0,5.71428571 L3.42857143,9.14285714\"></path>\n <path d=\"M9.14285714,0 L3.42857143,9.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n {!this.checked && this.indeterminate && (\n <span part=\"indeterminate-icon\" class=\"checkbox__icon\">\n <svg viewBox=\"0 0 16 16\">\n <g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\" stroke-linecap=\"round\">\n <g stroke=\"currentColor\" stroke-width=\"2\">\n <g transform=\"translate(2.285714, 6.857143)\">\n <path d=\"M10.2857143,1.14285714 L1.14285714,1.14285714\"></path>\n </g>\n </g>\n </g>\n </svg>\n </span>\n )}\n\n <input\n ref={(el) => (this.nativeInput = el)}\n id={this.inputId}\n type=\"checkbox\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n disabled={this.disabled}\n required={this.required}\n role=\"checkbox\"\n aria-checked={this.checked ? 'true' : 'false'}\n aria-labelledby={this.labelId}\n onChange={this.handleChange}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n />\n </span>\n\n <span part=\"text\" id={this.textId} class=\"checkbox__text\">\n <slot />\n </span>\n </label>\n </FormControl>\n );\n }\n}\n"],"version":3}
@@ -1,59 +0,0 @@
1
- import { r as registerInstance, h } from './index-8a74f992.js';
2
- import { a as getTextContent } from './slot-ad36df3a.js';
3
-
4
- const sixMenuItemCss = ":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}.menu-item{position:relative;display:flex;align-items:stretch;font-family:var(--six-font-sans);font-size:var(--six-font-size-small);font-weight:var(--six-font-weight-normal);line-height:var(--six-line-height-normal);letter-spacing:var(--six-letter-spacing-normal);text-align:left;color:var(--six-input-color);border-radius:var(--six-border-radius-medium);padding:var(--six-spacing-medium) var(--six-spacing-medium);transition:var(--six-transition-fast) fill;user-select:none;white-space:nowrap;cursor:pointer}.menu-item.menu-item--focused:not(.menu-item--disabled){outline:none;background-color:var(--six-menu-item-background-color)}.menu-item.menu-item--disabled{outline:none;color:var(--six-input-color-disabled);cursor:not-allowed}.menu-item .menu-item__label{flex:1 1 auto;align-self:center}.menu-item .menu-item__prefix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__prefix ::slotted(:last-child){margin-right:0.5em}.menu-item .menu-item__suffix{flex:0 0 auto;display:flex;align-items:center}.menu-item .menu-item__suffix ::slotted(:first-child){margin-left:0.5em}.menu-item .menu-item__check{flex:0 0 auto;display:flex;align-items:center;margin-left:var(--six-spacing-small);visibility:hidden;font-size:inherit}.menu-item--checked .menu-item__check{visibility:visible}";
5
-
6
- const SixMenuItem = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.hasFocus = false;
10
- this.checked = false;
11
- this.value = '';
12
- this.disabled = false;
13
- }
14
- connectedCallback() {
15
- this.handleBlur = this.handleBlur.bind(this);
16
- this.handleFocus = this.handleFocus.bind(this);
17
- this.handleMouseEnter = this.handleMouseEnter.bind(this);
18
- this.handleMouseLeave = this.handleMouseLeave.bind(this);
19
- }
20
- /** Sets focus on the button. */
21
- async setFocus(options) {
22
- var _a;
23
- (_a = this.menuItem) === null || _a === void 0 ? void 0 : _a.focus(options);
24
- }
25
- /** Removes focus from the button. */
26
- async removeFocus() {
27
- var _a;
28
- (_a = this.menuItem) === null || _a === void 0 ? void 0 : _a.blur();
29
- }
30
- /** Returns a text label based on the contents of the menu item's default slot. */
31
- getTextLabel() {
32
- return Promise.resolve(getTextContent(this.defaultSlot));
33
- }
34
- handleBlur() {
35
- this.hasFocus = false;
36
- }
37
- handleFocus() {
38
- this.hasFocus = true;
39
- }
40
- handleMouseEnter() {
41
- return this.setFocus();
42
- }
43
- handleMouseLeave() {
44
- return this.removeFocus();
45
- }
46
- render() {
47
- return (h("div", { ref: (el) => (this.menuItem = el), part: "base", class: {
48
- 'menu-item': true,
49
- 'menu-item--checked': this.checked,
50
- 'menu-item--disabled': this.disabled,
51
- 'menu-item--focused': this.hasFocus,
52
- }, role: "menuitem", "aria-disabled": this.disabled ? 'true' : 'false', "aria-checked": this.checked ? 'true' : 'false', tabIndex: !this.disabled ? 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave }, h("span", { part: "prefix", class: "menu-item__prefix" }, h("slot", { name: "prefix" })), h("span", { part: "label", class: "menu-item__label" }, h("slot", { ref: (el) => (this.defaultSlot = el) })), h("span", { part: "suffix", class: "menu-item__suffix" }, h("slot", { name: "suffix" })), h("span", { part: "checked-icon", class: "menu-item__check" }, h("six-icon", { size: "small", "aria-hidden": "true" }, "check"))));
53
- }
54
- };
55
- SixMenuItem.style = sixMenuItemCss;
56
-
57
- export { SixMenuItem as six_menu_item };
58
-
59
- //# sourceMappingURL=six-menu-item.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"six-menu-item.entry.js","mappings":";;;AAAA,MAAM,cAAc,GAAG,44CAA44C;;MCyBt5C,WAAW;;;oBAIF,KAAK;mBAGU,KAAK;iBAGP,EAAE;oBAGC,KAAK;;EAEzC,iBAAiB;IACf,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;GAC1D;;EAID,MAAM,QAAQ,CAAC,OAAsB;;IACnC,MAAA,IAAI,CAAC,QAAQ,0CAAE,KAAK,CAAC,OAAO,CAAC,CAAC;GAC/B;;EAID,MAAM,WAAW;;IACf,MAAA,IAAI,CAAC,QAAQ,0CAAE,IAAI,EAAE,CAAC;GACvB;;EAID,YAAY;IACV,OAAO,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;GAC1D;EAEO,UAAU;IAChB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;GACvB;EAEO,WAAW;IACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;GACtB;EAEO,gBAAgB;IACtB,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;GACxB;EAEO,gBAAgB;IACtB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;GAC3B;EAED,MAAM;IACJ,QACE,WACE,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC,EACjC,IAAI,EAAC,MAAM,EACX,KAAK,EAAE;QACL,WAAW,EAAE,IAAI;QACjB,oBAAoB,EAAE,IAAI,CAAC,OAAO;QAClC,qBAAqB,EAAE,IAAI,CAAC,QAAQ;QACpC,oBAAoB,EAAE,IAAI,CAAC,QAAQ;OACpC,EACD,IAAI,EAAC,UAAU,mBACA,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,kBACjC,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,EAC7C,QAAQ,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,GAAG,SAAS,EACxC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,YAAY,EAAE,IAAI,CAAC,gBAAgB,EACnC,YAAY,EAAE,IAAI,CAAC,gBAAgB,IAEnC,YAAM,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,IAC3C,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EAEP,YAAM,IAAI,EAAC,OAAO,EAAC,KAAK,EAAC,kBAAkB,IACzC,YAAM,GAAG,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,WAAW,GAAG,EAAqB,CAAC,GAAI,CAC5D,EAEP,YAAM,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,mBAAmB,IAC3C,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EAEP,YAAM,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,kBAAkB,IAChD,gBAAU,IAAI,EAAC,OAAO,iBAAa,MAAM,YAE9B,CACN,CACH,EACN;GACH;;;;;;","names":[],"sources":["src/components/six-menu-item/six-menu-item.scss?tag=six-menu-item&encapsulation=shadow","src/components/six-menu-item/six-menu-item.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.menu-item {\n position: relative;\n display: flex;\n align-items: stretch;\n font-family: var(--six-font-sans);\n font-size: var(--six-font-size-small);\n font-weight: var(--six-font-weight-normal);\n line-height: var(--six-line-height-normal);\n letter-spacing: var(--six-letter-spacing-normal);\n text-align: left;\n color: var(--six-input-color);\n border-radius: var(--six-border-radius-medium);\n padding: var(--six-spacing-medium) var(--six-spacing-medium);\n transition: var(--six-transition-fast) fill;\n user-select: none;\n white-space: nowrap;\n cursor: pointer;\n\n &.menu-item--focused:not(.menu-item--disabled) {\n outline: none;\n background-color: var(--six-menu-item-background-color);\n }\n\n &.menu-item--disabled {\n outline: none;\n color: var(--six-input-color-disabled);\n cursor: not-allowed;\n }\n\n .menu-item__label {\n flex: 1 1 auto;\n align-self: center;\n }\n\n .menu-item__prefix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:last-child) {\n margin-right: 0.5em;\n }\n }\n\n .menu-item__suffix {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n\n ::slotted(:first-child) {\n margin-left: 0.5em;\n }\n }\n\n .menu-item__check {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n margin-left: var(--six-spacing-small);\n visibility: hidden;\n font-size: inherit;\n }\n}\n\n.menu-item--checked .menu-item__check {\n visibility: visible;\n}\n","import { Component, h, Method, Prop, State } from '@stencil/core';\nimport { getTextContent } from '../../utils/slot';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The menu item's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n *\n * @part base - The component's base wrapper.\n * @part checked-icon - The container that wraps the checked icon.\n * @part prefix - The prefix container.\n * @part label - The menu item label.\n * @part suffix - The suffix container.\n */\n\n@Component({\n tag: 'six-menu-item',\n styleUrl: 'six-menu-item.scss',\n shadow: true,\n})\nexport class SixMenuItem {\n private menuItem?: HTMLElement;\n private defaultSlot?: HTMLSlotElement;\n\n @State() hasFocus = false;\n\n /** Set to true to draw the item in a checked state. */\n @Prop({ reflect: true }) checked = false;\n\n /** A unique value to store in the menu item. This can be used as a way to identify menu items when selected. */\n @Prop({ reflect: true }) value = '';\n\n /** Set to true to draw the menu item in a disabled state. */\n @Prop({ reflect: true }) disabled = false;\n\n connectedCallback() {\n this.handleBlur = this.handleBlur.bind(this);\n this.handleFocus = this.handleFocus.bind(this);\n this.handleMouseEnter = this.handleMouseEnter.bind(this);\n this.handleMouseLeave = this.handleMouseLeave.bind(this);\n }\n\n /** Sets focus on the button. */\n @Method()\n async setFocus(options?: FocusOptions) {\n this.menuItem?.focus(options);\n }\n\n /** Removes focus from the button. */\n @Method()\n async removeFocus() {\n this.menuItem?.blur();\n }\n\n /** Returns a text label based on the contents of the menu item's default slot. */\n @Method()\n getTextLabel() {\n return Promise.resolve(getTextContent(this.defaultSlot));\n }\n\n private handleBlur() {\n this.hasFocus = false;\n }\n\n private handleFocus() {\n this.hasFocus = true;\n }\n\n private handleMouseEnter() {\n return this.setFocus();\n }\n\n private handleMouseLeave() {\n return this.removeFocus();\n }\n\n render() {\n return (\n <div\n ref={(el) => (this.menuItem = el)}\n part=\"base\"\n class={{\n 'menu-item': true,\n 'menu-item--checked': this.checked,\n 'menu-item--disabled': this.disabled,\n 'menu-item--focused': this.hasFocus,\n }}\n role=\"menuitem\"\n aria-disabled={this.disabled ? 'true' : 'false'}\n aria-checked={this.checked ? 'true' : 'false'}\n tabIndex={!this.disabled ? 0 : undefined}\n onFocus={this.handleFocus}\n onBlur={this.handleBlur}\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n >\n <span part=\"prefix\" class=\"menu-item__prefix\">\n <slot name=\"prefix\" />\n </span>\n\n <span part=\"label\" class=\"menu-item__label\">\n <slot ref={(el) => (this.defaultSlot = el as HTMLSlotElement)} />\n </span>\n\n <span part=\"suffix\" class=\"menu-item__suffix\">\n <slot name=\"suffix\" />\n </span>\n\n <span part=\"checked-icon\" class=\"menu-item__check\">\n <six-icon size=\"small\" aria-hidden=\"true\">\n check\n </six-icon>\n </span>\n </div>\n );\n }\n}\n"],"version":3}
@@ -1,48 +0,0 @@
1
- //
2
- // Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a
3
- // string. This is useful because we can't use slot.textContent as an alternative.
4
- //
5
- function getTextContent(slot) {
6
- const nodes = slot != null ? slot.assignedNodes({ flatten: true }) : [];
7
- let text = '';
8
- [...nodes].map((node) => {
9
- if (node.nodeType === Node.TEXT_NODE) {
10
- text += node.textContent;
11
- }
12
- });
13
- return text;
14
- }
15
- //
16
- // Determines whether an element has a slot. If name is specified, the function will look for a corresponding named
17
- // slot, otherwise it will look for a "default" slot (e.g. a non-empty text node or an element with no slot attribute).
18
- //
19
- function hasSlot(el, name) {
20
- // Look for a named slot
21
- if (name != null && name !== '') {
22
- return el.querySelector(`[slot="${name}"]`) !== null;
23
- }
24
- // Look for a default slot
25
- return Array.from(el.childNodes).some((node) => {
26
- var _a;
27
- if (node.nodeType === node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== '') {
28
- return true;
29
- }
30
- if (node.nodeType === node.ELEMENT_NODE) {
31
- const el = node;
32
- if (!el.hasAttribute('slot')) {
33
- return true;
34
- }
35
- }
36
- return false;
37
- });
38
- }
39
- const getSlotChildren = (el) => { var _a; return (_a = el.querySelector('slot')) === null || _a === void 0 ? void 0 : _a.assignedElements({ flatten: true }); };
40
- function getSlot(element, slotName) {
41
- if (element == null)
42
- return null;
43
- return element.querySelector(`[slot="${slotName}"]`);
44
- }
45
-
46
- export { getTextContent as a, getSlotChildren as b, getSlot as g, hasSlot as h };
47
-
48
- //# sourceMappingURL=slot-ad36df3a.js.map
@@ -1 +0,0 @@
1
- {"file":"slot-ad36df3a.js","mappings":"AAAA;AACA;AACA;AACA;SACgB,cAAc,CAAC,IAAsB;EACnD,MAAM,KAAK,GAAG,IAAI,IAAI,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC;EACxE,IAAI,IAAI,GAAG,EAAE,CAAC;EAEd,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI;IAClB,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,EAAE;MACpC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC;KAC1B;GACF,CAAC,CAAC;EAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED;AACA;AACA;AACA;SACgB,OAAO,CAAC,EAAe,EAAE,IAAa;;EAEpD,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;IAC/B,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC;GACtD;;EAGD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI;;IACzC,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,EAAE,MAAK,EAAE,EAAE;MACvE,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY,EAAE;MACvC,MAAM,EAAE,GAAG,IAAmB,CAAC;MAC/B,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;QAC5B,OAAO,IAAI,CAAC;OACb;KACF;IAED,OAAO,KAAK,CAAC;GACd,CAAC,CAAC;AACL,CAAC;MAEY,eAAe,GAAG,CAAwB,EAAe,eACpE,OAAA,MAAA,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,0CAAE,gBAAgB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAQ,CAAA,GAAC;SAEvD,OAAO,CAAC,OAAsC,EAAE,QAAgB;EAC9E,IAAI,OAAO,IAAI,IAAI;IAAE,OAAO,IAAI,CAAC;EACjC,OAAO,OAAO,CAAC,aAAa,CAAC,UAAU,QAAQ,IAAI,CAAC,CAAC;AACvD;;;;","names":[],"sources":["src/utils/slot.ts"],"sourcesContent":["//\n// Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a\n// string. This is useful because we can't use slot.textContent as an alternative.\n//\nexport function getTextContent(slot?: HTMLSlotElement): string {\n const nodes = slot != null ? slot.assignedNodes({ flatten: true }) : [];\n let text = '';\n\n [...nodes].map((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n text += node.textContent;\n }\n });\n\n return text;\n}\n\n//\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\n//\nexport function hasSlot(el: HTMLElement, name?: string): boolean {\n // Look for a named slot\n if (name != null && name !== '') {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(el.childNodes).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent?.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport const getSlotChildren = <T extends HTMLElement>(el: HTMLElement) =>\n el.querySelector('slot')?.assignedElements({ flatten: true }) as T[];\n\nexport function getSlot(element: ParentNode | null | undefined, slotName: string): HTMLElement | null {\n if (element == null) return null;\n return element.querySelector(`[slot=\"${slotName}\"]`);\n}\n"],"version":3}
@@ -1,17 +0,0 @@
1
- var ItemPickerType;
2
- (function (ItemPickerType) {
3
- ItemPickerType["NUMBER"] = "number";
4
- ItemPickerType["LETTER"] = "letter";
5
- ItemPickerType["CAPITAL_LETTER"] = "capital-letter";
6
- ItemPickerType["LOWER_LETTER"] = "lower-letter";
7
- ItemPickerType["CUSTOM"] = "custom";
8
- })(ItemPickerType || (ItemPickerType = {}));
9
- var ItemPickerPaddingDirection;
10
- (function (ItemPickerPaddingDirection) {
11
- ItemPickerPaddingDirection["BEFORE"] = "before";
12
- ItemPickerPaddingDirection["AFTER"] = "after";
13
- })(ItemPickerPaddingDirection || (ItemPickerPaddingDirection = {}));
14
-
15
- export { ItemPickerType as I, ItemPickerPaddingDirection as a };
16
-
17
- //# sourceMappingURL=types-59b455aa.js.map
@@ -1 +0,0 @@
1
- {"file":"types-59b455aa.js","mappings":"IAAY;AAAZ,WAAY,cAAc;EACxB,mCAAiB,CAAA;EACjB,mCAAiB,CAAA;EACjB,mDAAiC,CAAA;EACjC,+CAA6B,CAAA;EAC7B,mCAAiB,CAAA;AACnB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;IAEW;AAAZ,WAAY,0BAA0B;EACpC,+CAAiB,CAAA;EACjB,6CAAe,CAAA;AACjB,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B;;;;","names":[],"sources":["src/components/six-item-picker/types.ts"],"sourcesContent":["export enum ItemPickerType {\n NUMBER = 'number',\n LETTER = 'letter',\n CAPITAL_LETTER = 'capital-letter',\n LOWER_LETTER = 'lower-letter',\n CUSTOM = 'custom',\n}\n\nexport enum ItemPickerPaddingDirection {\n BEFORE = 'before',\n AFTER = 'after',\n}\n"],"version":3}
@@ -1,9 +0,0 @@
1
- export declare class SetAttributes {
2
- host: HTMLSetAttributesElement;
3
- /** Attributes map */
4
- value: {};
5
- componentWillLoad(): void;
6
- attrsUpdated(): void;
7
- private injectAttrs;
8
- render(): any;
9
- }
@@ -1 +0,0 @@
1
- {"version":3,"names":["ItemPickerType","ItemPickerPaddingDirection"],"sources":["src/components/six-item-picker/types.ts"],"sourcesContent":["export enum ItemPickerType {\n NUMBER = 'number',\n LETTER = 'letter',\n CAPITAL_LETTER = 'capital-letter',\n LOWER_LETTER = 'lower-letter',\n CUSTOM = 'custom',\n}\n\nexport enum ItemPickerPaddingDirection {\n BEFORE = 'before',\n AFTER = 'after',\n}\n"],"mappings":"IAAYA,GAAZ,SAAYA,GACVA,EAAA,mBACAA,EAAA,mBACAA,EAAA,mCACAA,EAAA,+BACAA,EAAA,kBACD,EAND,CAAYA,MAAc,K,IAQdC,GAAZ,SAAYA,GACVA,EAAA,mBACAA,EAAA,gBACD,EAHD,CAAYA,MAA0B,Y"}
@@ -1,2 +0,0 @@
1
- import{r as t,h as o}from"./p-6153045b.js";import{f as i}from"./p-5654e4c7.js";const n=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:inline-block}.icon-button{flex:0 0 auto;display:flex;align-items:center;background:none;border:none;border-radius:var(--six-border-radius-medium);font-size:inherit;color:var(--six-input-icon-color);padding:var(--six-spacing-x-small);cursor:pointer;transition:var(--six-transition-medium) color;-webkit-appearance:none}.icon-button:hover:not(.icon-button--disabled),.icon-button:focus:not(.icon-button--disabled){color:var(--six-input-icon-color-hover)}.icon-button:active:not(.icon-button--disabled){color:var(--six-input-icon-color)}.icon-button:focus{outline:none}.icon-button--disabled{opacity:0.5;pointer-events:none}.icon-button-wrapper--disabled{cursor:not-allowed}.focus-visible.icon-button:focus{box-shadow:var(--six-button-focus-shadow)}.icon-button ::slotted(six-badge){position:absolute;top:0;right:0;pointer-events:none}.icon-button six-icon[size=xLarge]+::slotted(six-badge){transform:translateY(40%) translateX(-35%)}.icon-button six-icon[size=large]+::slotted(six-badge){transform:translateY(20%) translateX(-20%)}.icon-button six-icon[size=medium]+::slotted(six-badge){transform:translateY(10%) translateX(50%)}.icon-button six-icon[size=xSmall]+::slotted(six-badge){transform:translateY(-25%) translateX(25%)}";const s=class{constructor(o){t(this,o);this.handleClickEvent=t=>{if(this.disabled){t.preventDefault();t.stopPropagation()}};this.name=undefined;this.size="medium";this.label=undefined;this.disabled=false;this.html=undefined}componentDidLoad(){if(this.button!=null){i.observe(this.button)}}disconnectedCallback(){if(this.button!=null){i.unobserve(this.button)}}render(){const t=this.html&&o("span",{innerHTML:this.html});return o("div",{onClick:this.handleClickEvent,class:{"icon-button-wrapper--disabled":this.disabled}},o("button",{ref:t=>this.button=t,part:"base",disabled:this.disabled,class:{"icon-button":true,"icon-button--disabled":this.disabled},type:"button","aria-label":this.label},o("six-icon",{"aria-hidden":"true",size:this.size},this.name),o("slot",null),t))}};s.style=n;export{s as six_icon_button};
2
- //# sourceMappingURL=p-1256cc0a.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixIconButtonCss","SixIconButton","this","handleClickEvent","event","disabled","preventDefault","stopPropagation","componentDidLoad","button","focusVisible","observe","disconnectedCallback","unobserve","render","html","h","innerHTML","onClick","class","ref","el","part","type","label","size","name"],"sources":["src/components/six-icon-button/six-icon-button.scss?tag=six-icon-button&encapsulation=shadow","src/components/six-icon-button/six-icon-button.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n}\n\n.icon-button {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n background: none;\n border: none;\n border-radius: var(--six-border-radius-medium);\n font-size: inherit;\n color: var(--six-input-icon-color);\n padding: var(--six-spacing-x-small);\n cursor: pointer;\n transition: var(--six-transition-medium) color;\n -webkit-appearance: none;\n\n &:hover:not(.icon-button--disabled),\n &:focus:not(.icon-button--disabled) {\n color: var(--six-input-icon-color-hover);\n }\n\n &:active:not(.icon-button--disabled) {\n color: var(--six-input-icon-color);\n }\n\n &:focus {\n outline: none;\n }\n}\n\n.icon-button--disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n\n.icon-button-wrapper--disabled {\n cursor: not-allowed;\n}\n\n.focus-visible.icon-button:focus {\n box-shadow: var(--six-button-focus-shadow);\n}\n\n.icon-button ::slotted(six-badge) {\n position: absolute;\n top: 0;\n right: 0;\n pointer-events: none;\n}\n\n.icon-button six-icon[size='xLarge'] + ::slotted(six-badge) {\n transform: translateY(40%) translateX(-35%);\n}\n\n.icon-button six-icon[size='large'] + ::slotted(six-badge) {\n transform: translateY(20%) translateX(-20%);\n}\n\n// TODO: tx4u9 should be adjusted for all sizes after design team\n.icon-button six-icon[size='medium'] + ::slotted(six-badge) {\n transform: translateY(10%) translateX(50%);\n}\n\n.icon-button six-icon[size='small'] + ::slotted(six-badge) {\n // no translation necessary\n}\n\n.icon-button six-icon[size='xSmall'] + ::slotted(six-badge) {\n transform: translateY(-25%) translateX(25%);\n}\n","import { Component, h, Prop } from '@stencil/core';\nimport { focusVisible } from '../../utils/focus-visible';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @part base - The component's base wrapper.\n */\n\n@Component({\n tag: 'six-icon-button',\n styleUrl: 'six-icon-button.scss',\n shadow: true,\n})\nexport class SixIconButton {\n private button?: HTMLButtonElement;\n\n /** The name of the icon to draw. */\n @Prop({ reflect: true }) name?: string;\n\n /** The icon's size. */\n @Prop({ reflect: true }) size: 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge' = 'medium';\n\n /**\n * A description that gets read by screen readers and other assistive devices. For optimal accessibility, you should\n * always include a label that describes what the icon button does.\n */\n @Prop({ reflect: true }) label?: string;\n\n /** Set to true to disable the button. */\n @Prop({ reflect: true }) disabled = false;\n\n /** HTML symbol code or entity. */\n @Prop({ reflect: true }) html?: string;\n\n componentDidLoad() {\n if (this.button != null) {\n focusVisible.observe(this.button);\n }\n }\n\n disconnectedCallback() {\n if (this.button != null) {\n focusVisible.unobserve(this.button);\n }\n }\n\n render() {\n const html = this.html && <span innerHTML={this.html} />;\n\n return (\n <div onClick={this.handleClickEvent} class={{ 'icon-button-wrapper--disabled': this.disabled }}>\n <button\n ref={(el) => (this.button = el)}\n part=\"base\"\n disabled={this.disabled}\n class={{\n 'icon-button': true,\n 'icon-button--disabled': this.disabled,\n }}\n type=\"button\"\n aria-label={this.label}\n >\n <six-icon aria-hidden=\"true\" size={this.size}>\n {this.name}\n </six-icon>\n <slot />\n {html}\n </button>\n </div>\n );\n }\n\n private handleClickEvent = (event: Event) => {\n if (this.disabled) {\n event.preventDefault();\n event.stopPropagation();\n }\n };\n}\n"],"mappings":"+EAAA,MAAMA,EAAmB,i0C,MCiBZC,EAAa,M,yBA2DhBC,KAAAC,iBAAoBC,IAC1B,GAAIF,KAAKG,SAAU,CACjBD,EAAME,iBACNF,EAAMG,iB,iCAvDmG,S,mCASzE,M,oBAKpC,gBAAAC,GACE,GAAIN,KAAKO,QAAU,KAAM,CACvBC,EAAaC,QAAQT,KAAKO,O,EAI9B,oBAAAG,GACE,GAAIV,KAAKO,QAAU,KAAM,CACvBC,EAAaG,UAAUX,KAAKO,O,EAIhC,MAAAK,GACE,MAAMC,EAAOb,KAAKa,MAAQC,EAAA,QAAMC,UAAWf,KAAKa,OAEhD,OACEC,EAAA,OAAKE,QAAShB,KAAKC,iBAAkBgB,MAAO,CAAE,gCAAiCjB,KAAKG,WAClFW,EAAA,UACEI,IAAMC,GAAQnB,KAAKO,OAASY,EAC5BC,KAAK,OACLjB,SAAUH,KAAKG,SACfc,MAAO,CACL,cAAe,KACf,wBAAyBjB,KAAKG,UAEhCkB,KAAK,SAAQ,aACDrB,KAAKsB,OAEjBR,EAAA,0BAAsB,OAAOS,KAAMvB,KAAKuB,MACrCvB,KAAKwB,MAERV,EAAA,aACCD,G"}
@@ -1,2 +0,0 @@
1
- function t(t){const n=t!=null?t.assignedNodes({flatten:true}):[];let r="";[...n].map((t=>{if(t.nodeType===Node.TEXT_NODE){r+=t.textContent}}));return r}function n(t,n){if(n!=null&&n!==""){return t.querySelector(`[slot="${n}"]`)!==null}return Array.from(t.childNodes).some((t=>{var n;if(t.nodeType===t.TEXT_NODE&&((n=t.textContent)===null||n===void 0?void 0:n.trim())!==""){return true}if(t.nodeType===t.ELEMENT_NODE){const n=t;if(!n.hasAttribute("slot")){return true}}return false}))}const r=t=>{var n;return(n=t.querySelector("slot"))===null||n===void 0?void 0:n.assignedElements({flatten:true})};function u(t,n){if(t==null)return null;return t.querySelector(`[slot="${n}"]`)}export{t as a,r as b,u as g,n as h};
2
- //# sourceMappingURL=p-15559d38.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getTextContent","slot","nodes","assignedNodes","flatten","text","map","node","nodeType","Node","TEXT_NODE","textContent","hasSlot","el","name","querySelector","Array","from","childNodes","some","_a","trim","ELEMENT_NODE","hasAttribute","getSlotChildren","assignedElements","getSlot","element","slotName"],"sources":["src/utils/slot.ts"],"sourcesContent":["//\n// Given a slot, this function iterates over all of its assigned text nodes and returns the concatenated text as a\n// string. This is useful because we can't use slot.textContent as an alternative.\n//\nexport function getTextContent(slot?: HTMLSlotElement): string {\n const nodes = slot != null ? slot.assignedNodes({ flatten: true }) : [];\n let text = '';\n\n [...nodes].map((node) => {\n if (node.nodeType === Node.TEXT_NODE) {\n text += node.textContent;\n }\n });\n\n return text;\n}\n\n//\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\n//\nexport function hasSlot(el: HTMLElement, name?: string): boolean {\n // Look for a named slot\n if (name != null && name !== '') {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(el.childNodes).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent?.trim() !== '') {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute('slot')) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport const getSlotChildren = <T extends HTMLElement>(el: HTMLElement) =>\n el.querySelector('slot')?.assignedElements({ flatten: true }) as T[];\n\nexport function getSlot(element: ParentNode | null | undefined, slotName: string): HTMLElement | null {\n if (element == null) return null;\n return element.querySelector(`[slot=\"${slotName}\"]`);\n}\n"],"mappings":"SAIgBA,EAAeC,GAC7B,MAAMC,EAAQD,GAAQ,KAAOA,EAAKE,cAAc,CAAEC,QAAS,OAAU,GACrE,IAAIC,EAAO,GAEX,IAAIH,GAAOI,KAAKC,IACd,GAAIA,EAAKC,WAAaC,KAAKC,UAAW,CACpCL,GAAQE,EAAKI,W,KAIjB,OAAON,CACT,C,SAMgBO,EAAQC,EAAiBC,GAEvC,GAAIA,GAAQ,MAAQA,IAAS,GAAI,CAC/B,OAAOD,EAAGE,cAAc,UAAUD,SAAc,I,CAIlD,OAAOE,MAAMC,KAAKJ,EAAGK,YAAYC,MAAMZ,I,MACrC,GAAIA,EAAKC,WAAaD,EAAKG,aAAaU,EAAAb,EAAKI,eAAW,MAAAS,SAAA,SAAAA,EAAEC,UAAW,GAAI,CACvE,OAAO,I,CAGT,GAAId,EAAKC,WAAaD,EAAKe,aAAc,CACvC,MAAMT,EAAKN,EACX,IAAKM,EAAGU,aAAa,QAAS,CAC5B,OAAO,I,EAIX,OAAO,KAAK,GAEhB,C,MAEaC,EAA0CX,IAAe,IAAAO,EACpE,OAAAA,EAAAP,EAAGE,cAAc,WAAO,MAAAK,SAAA,SAAAA,EAAEK,iBAAiB,CAAErB,QAAS,MAAc,E,SAEtDsB,EAAQC,EAAwCC,GAC9D,GAAID,GAAW,KAAM,OAAO,KAC5B,OAAOA,EAAQZ,cAAc,UAAUa,MACzC,Q"}
@@ -1,2 +0,0 @@
1
- import{r as i,c as t,h as s,g as a}from"./p-6153045b.js";import{u as o,l as e}from"./p-1f18768a.js";import{h as l}from"./p-15559d38.js";import{i as r,M as n}from"./p-9ace84c7.js";const h=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--width:31rem;display:contents}.dialog{display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--six-z-index-dialog);color:var(--six-color-web-rock-900)}.dialog:not(.dialog--visible){position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;pointer-events:none;visibility:hidden}.dialog__panel{display:flex;flex-direction:column;z-index:2;width:var(--width);max-width:calc(100% - var(--six-spacing-xx-large));max-height:calc(100% - var(--six-spacing-xx-large));background-color:var(--six-panel-background-color);border-radius:var(--six-border-radius-medium);box-shadow:var(--six-shadow-x-large);opacity:0;transform:scale(0.8);transition:var(--six-transition-medium) opacity, var(--six-transition-medium) transform}.dialog__panel:focus{outline:none}@media screen and (max-width: 420px){.dialog__panel{max-height:80vh}}.dialog--open .dialog__panel{display:flex;opacity:1;transform:none}.dialog__header{flex:0 0 auto;display:flex}.dialog__title{flex:1 1 auto;font-size:var(--six-font-size-x-large);font-weight:var(--six-font-weight-bold);line-height:var(--six-line-height-dense);padding:var(--six-spacing-large) var(--six-spacing-large) var(--six-spacing-small)}.dialog__close{flex:0 0 auto;display:flex;align-items:center;font-size:var(--six-font-size-x-large);padding:0 var(--six-spacing-x-small)}.dialog__body{flex:1 1 auto;padding:var(--six-spacing-small) var(--six-spacing-large) var(--six-spacing-large);overflow:auto;-webkit-overflow-scrolling:touch}.dialog__footer{flex:0 0 auto;text-align:right;padding:var(--six-spacing-large)}.dialog__footer ::slotted(six-button:not(:first-of-type)){margin-left:var(--six-spacing-xx-small)}.dialog:not(.dialog--has-footer) .dialog__footer{display:none}.dialog__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--six-overlay-background-color);opacity:0;transition:var(--six-transition-medium) opacity}.dialog--open .dialog__overlay{opacity:0.8}";const d=r();let c=0;const g=class{constructor(s){i(this,s);this.sixShow=t(this,"six-dialog-show",7);this.sixAfterShow=t(this,"six-dialog-after-show",7);this.sixHide=t(this,"six-dialog-hide",7);this.sixAfterHide=t(this,"six-dialog-after-hide",7);this.sixInitialFocus=t(this,"six-dialog-initial-focus",7);this.sixOverlayDismiss=t(this,"six-dialog-overlay-dismiss",7);this.componentId=`dialog-${++c}`;this.willShow=false;this.willHide=false;this.handleCloseClick=()=>{this.hide()};this.handleKeyDown=i=>{if(i.key==="Escape"){this.hide()}};this.handleOverlayClick=()=>{const i=this.sixOverlayDismiss.emit();if(!i.defaultPrevented){this.hide()}};this.handleSlotChange=()=>{this.hasFooter=l(this.host,"footer")};this.handleTransitionEnd=i=>{const t=i.target;if(i.propertyName==="opacity"&&t.classList.contains("dialog__panel")){this.isVisible=this.open;this.willShow=false;this.willHide=false;this.open?this.sixAfterShow.emit():this.sixAfterHide.emit()}};this.hasFooter=false;this.isVisible=false;this.open=false;this.label="";this.noHeader=false}handleOpenChange(){this.open?this.show():this.hide()}connectedCallback(){this.modal=new n(this.host,{onFocusOut:()=>{var i;return(i=this.panel)===null||i===void 0?void 0:i.focus()}})}componentWillLoad(){this.handleSlotChange();if(this.open){this.show()}}disconnectedCallback(){o(this.host)}async show(){if(this.willShow||this.modal==null||this.panel==null||this.dialog==null){return}const i=this.panel;const t=this.sixShow.emit();if(t.defaultPrevented){this.open=false;return}this.willShow=true;this.isVisible=true;this.open=true;this.modal.activate();e(this.host);if(this.open){if(d){requestAnimationFrame((()=>{const t=this.sixInitialFocus.emit();if(!t.defaultPrevented){i.focus({preventScroll:true})}}))}else{this.dialog.addEventListener("transitionend",(()=>{const t=this.sixInitialFocus.emit();if(!t.defaultPrevented){i.focus()}}),{once:true})}}}async hide(){if(this.willHide||this.modal==null){return}const i=this.sixHide.emit();if(i.defaultPrevented){this.open=true;return}this.willHide=true;this.open=false;this.modal.deactivate();o(this.host)}render(){return s("div",{ref:i=>this.dialog=i,part:"base",class:{dialog:true,"dialog--open":this.open,"dialog--visible":this.isVisible,"dialog--has-footer":this.hasFooter},onKeyDown:this.handleKeyDown,onTransitionEnd:this.handleTransitionEnd},s("div",{part:"overlay",class:"dialog__overlay",onClick:this.handleOverlayClick}),s("div",{ref:i=>this.panel=i,part:"panel",class:"dialog__panel",role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-label":this.noHeader?this.label:null,"aria-labelledby":!this.noHeader?`${this.componentId}-title`:null,tabIndex:0},!this.noHeader&&s("header",{part:"header",class:"dialog__header"},s("span",{part:"title",class:"dialog__title",id:`${this.componentId}-title`},s("slot",{name:"label"},this.label||String.fromCharCode(65279))),s("six-icon-button",{exportparts:"base:close-button",class:"dialog__close",name:"close",onClick:this.handleCloseClick})),s("div",{part:"body",class:"dialog__body"},s("slot",null)),s("footer",{part:"footer",class:"dialog__footer"},s("slot",{name:"footer",onSlotchange:this.handleSlotChange}))))}get host(){return a(this)}static get watchers(){return{open:["handleOpenChange"]}}};g.style=h;export{g as six_dialog};
2
- //# sourceMappingURL=p-19ed7a4c.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixDialogCss","hasPreventScroll","isPreventScrollSupported","id","SixDialog","this","componentId","willShow","willHide","handleCloseClick","hide","handleKeyDown","event","key","handleOverlayClick","sixOverlayDismiss","emit","defaultPrevented","handleSlotChange","hasFooter","hasSlot","host","handleTransitionEnd","target","propertyName","classList","contains","isVisible","open","sixAfterShow","sixAfterHide","handleOpenChange","show","connectedCallback","modal","Modal","onFocusOut","_a","panel","focus","componentWillLoad","disconnectedCallback","unlockBodyScrolling","dialog","sixShow","activate","lockBodyScrolling","requestAnimationFrame","sixInitialFocus","preventScroll","addEventListener","once","sixHide","deactivate","render","h","ref","el","part","class","onKeyDown","onTransitionEnd","onClick","role","noHeader","label","tabIndex","name","String","fromCharCode","exportparts","onSlotchange"],"sources":["src/components/six-dialog/six-dialog.scss?tag=six-dialog&encapsulation=shadow","src/components/six-dialog/six-dialog.tsx"],"sourcesContent":["@import 'src/global/component';\n@import 'src/global/mixins/hidden';\n\n/**\n * @prop --width: The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.\n */\n:host {\n --width: 31rem;\n\n display: contents;\n}\n\n.dialog {\n display: flex;\n align-items: center;\n justify-content: center;\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: var(--six-z-index-dialog);\n color: var(--six-color-web-rock-900);\n\n &:not(.dialog--visible) {\n @include hidden;\n }\n}\n\n.dialog__panel {\n display: flex;\n flex-direction: column;\n z-index: 2;\n width: var(--width);\n max-width: calc(100% - var(--six-spacing-xx-large));\n max-height: calc(100% - var(--six-spacing-xx-large));\n background-color: var(--six-panel-background-color);\n border-radius: var(--six-border-radius-medium);\n box-shadow: var(--six-shadow-x-large);\n opacity: 0;\n transform: scale(0.8);\n transition: var(--six-transition-medium) opacity, var(--six-transition-medium) transform;\n\n &:focus {\n outline: none;\n }\n}\n\n// Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone)\n@media screen and (max-width: 420px) {\n .dialog__panel {\n max-height: 80vh;\n }\n}\n\n.dialog--open .dialog__panel {\n display: flex;\n opacity: 1;\n transform: none;\n}\n\n.dialog__header {\n flex: 0 0 auto;\n display: flex;\n}\n\n.dialog__title {\n flex: 1 1 auto;\n font-size: var(--six-font-size-x-large);\n font-weight: var(--six-font-weight-bold);\n line-height: var(--six-line-height-dense);\n padding: var(--six-spacing-large) var(--six-spacing-large) var(--six-spacing-small);\n}\n\n.dialog__close {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n font-size: var(--six-font-size-x-large);\n padding: 0 var(--six-spacing-x-small);\n}\n\n.dialog__body {\n flex: 1 1 auto;\n padding: var(--six-spacing-small) var(--six-spacing-large) var(--six-spacing-large);\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n\n.dialog__footer {\n flex: 0 0 auto;\n text-align: right;\n padding: var(--six-spacing-large);\n\n ::slotted(six-button:not(:first-of-type)) {\n margin-left: var(--six-spacing-xx-small);\n }\n}\n\n.dialog:not(.dialog--has-footer) .dialog__footer {\n display: none;\n}\n\n.dialog__overlay {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: var(--six-overlay-background-color);\n opacity: 0;\n transition: var(--six-transition-medium) opacity;\n}\n\n.dialog--open .dialog__overlay {\n opacity: 0.8;\n}\n","import { Component, Element, Event, EventEmitter, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { lockBodyScrolling, unlockBodyScrolling } from '../../utils/scroll';\nimport { hasSlot } from '../../utils/slot';\nimport { isPreventScrollSupported } from '../../utils/support';\nimport Modal from '../../utils/modal';\nimport { EmptyPayload } from '../../utils/types';\n\nconst hasPreventScroll = isPreventScrollSupported();\n\nlet id = 0;\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The dialog's content.\n * @slot label - The dialog's label. Alternatively, you can use the label prop.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @part base - The component's base wrapper.\n * @part overlay - The overlay.\n * @part panel - The dialog panel (where the dialog and its content is rendered).\n * @part header - The dialog header.\n * @part title - The dialog title.\n * @part close-button - The close button.\n * @part body - The dialog body.\n * @part footer - The dialog footer.\n *\n */\n@Component({\n tag: 'six-dialog',\n styleUrl: 'six-dialog.scss',\n shadow: true,\n})\nexport class SixDialog {\n private componentId = `dialog-${++id}`;\n private dialog?: HTMLElement;\n private modal?: Modal;\n private panel?: HTMLElement;\n private willShow = false;\n private willHide = false;\n\n @Element() host!: HTMLSixDialogElement;\n\n @State() hasFooter = false;\n @State() isVisible = false;\n\n /** Indicates whether the dialog is open. You can use this in lieu of the show/hide methods. */\n @Prop({ mutable: true, reflect: true }) open = false;\n\n /**\n * The dialog's label as displayed in the header. You should always include a relevant label even when using\n * `no-header`, as it is required for proper accessibility.\n */\n @Prop() label = '';\n\n /**\n * Set to true to disable the header. This will also remove the default close button, so please ensure you provide an\n * easy, accessible way for users to dismiss the dialog.\n */\n @Prop() noHeader = false;\n\n @Watch('open')\n handleOpenChange() {\n this.open ? this.show() : this.hide();\n }\n\n /** Emitted when the dialog opens. Calling `event.preventDefault()` will prevent it from being opened. */\n @Event({ eventName: 'six-dialog-show' }) sixShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog opens and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-show' }) sixAfterShow!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the dialog closes. Calling `event.preventDefault()` will prevent it from being closed. */\n @Event({ eventName: 'six-dialog-hide' }) sixHide!: EventEmitter<EmptyPayload>;\n\n /** Emitted after the dialog closes and all transitions are complete. */\n @Event({ eventName: 'six-dialog-after-hide' }) sixAfterHide!: EventEmitter<EmptyPayload>;\n\n /**\n * Emitted when the dialog opens and the panel gains focus. Calling `event.preventDefault()` will prevent focus and\n * allow you to set it on a different element in the dialog, such as an input or button.\n */\n @Event({ eventName: 'six-dialog-initial-focus' }) sixInitialFocus!: EventEmitter<EmptyPayload>;\n\n /** Emitted when the overlay is clicked. Calling `event.preventDefault()` will prevent the dialog from closing. */\n @Event({ eventName: 'six-dialog-overlay-dismiss' }) sixOverlayDismiss!: EventEmitter<EmptyPayload>;\n\n connectedCallback() {\n this.modal = new Modal(this.host, {\n onFocusOut: () => this.panel?.focus(),\n });\n }\n\n componentWillLoad() {\n this.handleSlotChange();\n\n // Show on init if open\n if (this.open) {\n this.show();\n }\n }\n\n disconnectedCallback() {\n unlockBodyScrolling(this.host);\n }\n\n /** Shows the dialog */\n @Method()\n async show() {\n if (this.willShow || this.modal == null || this.panel == null || this.dialog == null) {\n return;\n }\n const panel = this.panel;\n\n const sixShow = this.sixShow.emit();\n if (sixShow.defaultPrevented) {\n this.open = false;\n return;\n }\n\n this.willShow = true;\n this.isVisible = true;\n this.open = true;\n this.modal.activate();\n\n lockBodyScrolling(this.host);\n\n if (this.open) {\n if (hasPreventScroll) {\n // Wait for the next frame before setting initial focus so the dialog is technically visible\n requestAnimationFrame(() => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus({ preventScroll: true });\n }\n });\n } else {\n // Once Safari supports { preventScroll: true } we can remove this nasty little hack, but until then we need to\n // wait for the transition to complete before setting focus, otherwise the panel may render in a buggy way its\n // out of view initially.\n //\n // Fiddle: https://jsfiddle.net/g6buoafq/1/\n // Safari: https://bugs.webkit.org/show_bug.cgi?id=178583\n //\n this.dialog.addEventListener(\n 'transitionend',\n () => {\n const sixInitialFocus = this.sixInitialFocus.emit();\n if (!sixInitialFocus.defaultPrevented) {\n panel.focus();\n }\n },\n { once: true }\n );\n }\n }\n }\n\n /** Hides the dialog */\n @Method()\n async hide() {\n if (this.willHide || this.modal == null) {\n return;\n }\n\n const sixHide = this.sixHide.emit();\n if (sixHide.defaultPrevented) {\n this.open = true;\n return;\n }\n\n this.willHide = true;\n this.open = false;\n this.modal.deactivate();\n\n unlockBodyScrolling(this.host);\n }\n\n private handleCloseClick = () => {\n this.hide();\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape') {\n this.hide();\n }\n };\n\n private handleOverlayClick = () => {\n const sixOverlayDismiss = this.sixOverlayDismiss.emit();\n\n if (!sixOverlayDismiss.defaultPrevented) {\n this.hide();\n }\n };\n\n private handleSlotChange = () => {\n this.hasFooter = hasSlot(this.host, 'footer');\n };\n\n private handleTransitionEnd = (event: TransitionEvent) => {\n const target = event.target as HTMLElement;\n\n // Ensure we only emit one event when the target element is no longer visible\n if (event.propertyName === 'opacity' && target.classList.contains('dialog__panel')) {\n this.isVisible = this.open;\n this.willShow = false;\n this.willHide = false;\n this.open ? this.sixAfterShow.emit() : this.sixAfterHide.emit();\n }\n };\n\n render() {\n return (\n <div\n ref={(el) => (this.dialog = el)}\n part=\"base\"\n class={{\n dialog: true,\n 'dialog--open': this.open,\n 'dialog--visible': this.isVisible,\n 'dialog--has-footer': this.hasFooter,\n }}\n onKeyDown={this.handleKeyDown}\n onTransitionEnd={this.handleTransitionEnd}\n >\n <div part=\"overlay\" class=\"dialog__overlay\" onClick={this.handleOverlayClick} />\n\n <div\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n class=\"dialog__panel\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-hidden={this.open ? 'false' : 'true'}\n aria-label={this.noHeader ? this.label : null}\n aria-labelledby={!this.noHeader ? `${this.componentId}-title` : null}\n tabIndex={0}\n >\n {!this.noHeader && (\n <header part=\"header\" class=\"dialog__header\">\n <span part=\"title\" class=\"dialog__title\" id={`${this.componentId}-title`}>\n <slot name=\"label\">\n {/* If there's no label, use an invisible character to prevent the heading from collapsing */}\n {this.label || String.fromCharCode(65279)}\n </slot>\n </span>\n <six-icon-button\n exportparts=\"base:close-button\"\n class=\"dialog__close\"\n name=\"close\"\n onClick={this.handleCloseClick}\n />\n </header>\n )}\n\n <div part=\"body\" class=\"dialog__body\">\n <slot />\n </div>\n\n <footer part=\"footer\" class=\"dialog__footer\">\n <slot name=\"footer\" onSlotchange={this.handleSlotChange} />\n </footer>\n </div>\n </div>\n );\n }\n}\n"],"mappings":"mLAAA,MAAMA,EAAe,kkECOrB,MAAMC,EAAmBC,IAEzB,IAAIC,EAAK,E,MA2BIC,EAAS,M,2UACZC,KAAAC,YAAc,YAAYH,IAI1BE,KAAAE,SAAW,MACXF,KAAAG,SAAW,MA2IXH,KAAAI,iBAAmB,KACzBJ,KAAKK,MAAM,EAGLL,KAAAM,cAAiBC,IACvB,GAAIA,EAAMC,MAAQ,SAAU,CAC1BR,KAAKK,M,GAIDL,KAAAS,mBAAqB,KAC3B,MAAMC,EAAoBV,KAAKU,kBAAkBC,OAEjD,IAAKD,EAAkBE,iBAAkB,CACvCZ,KAAKK,M,GAIDL,KAAAa,iBAAmB,KACzBb,KAAKc,UAAYC,EAAQf,KAAKgB,KAAM,SAAS,EAGvChB,KAAAiB,oBAAuBV,IAC7B,MAAMW,EAASX,EAAMW,OAGrB,GAAIX,EAAMY,eAAiB,WAAaD,EAAOE,UAAUC,SAAS,iBAAkB,CAClFrB,KAAKsB,UAAYtB,KAAKuB,KACtBvB,KAAKE,SAAW,MAChBF,KAAKG,SAAW,MAChBH,KAAKuB,KAAOvB,KAAKwB,aAAab,OAASX,KAAKyB,aAAad,M,kBArKxC,M,eACA,M,UAG0B,M,WAM/B,G,cAMG,K,CAGnB,gBAAAe,GACE1B,KAAKuB,KAAOvB,KAAK2B,OAAS3B,KAAKK,M,CAwBjC,iBAAAuB,GACE5B,KAAK6B,MAAQ,IAAIC,EAAM9B,KAAKgB,KAAM,CAChCe,WAAY,SAAAC,EAAM,OAAAA,EAAAhC,KAAKiC,SAAK,MAAAD,SAAA,SAAAA,EAAEE,OAAO,G,CAIzC,iBAAAC,GACEnC,KAAKa,mBAGL,GAAIb,KAAKuB,KAAM,CACbvB,KAAK2B,M,EAIT,oBAAAS,GACEC,EAAoBrC,KAAKgB,K,CAK3B,UAAMW,GACJ,GAAI3B,KAAKE,UAAYF,KAAK6B,OAAS,MAAQ7B,KAAKiC,OAAS,MAAQjC,KAAKsC,QAAU,KAAM,CACpF,M,CAEF,MAAML,EAAQjC,KAAKiC,MAEnB,MAAMM,EAAUvC,KAAKuC,QAAQ5B,OAC7B,GAAI4B,EAAQ3B,iBAAkB,CAC5BZ,KAAKuB,KAAO,MACZ,M,CAGFvB,KAAKE,SAAW,KAChBF,KAAKsB,UAAY,KACjBtB,KAAKuB,KAAO,KACZvB,KAAK6B,MAAMW,WAEXC,EAAkBzC,KAAKgB,MAEvB,GAAIhB,KAAKuB,KAAM,CACb,GAAI3B,EAAkB,CAEpB8C,uBAAsB,KACpB,MAAMC,EAAkB3C,KAAK2C,gBAAgBhC,OAC7C,IAAKgC,EAAgB/B,iBAAkB,CACrCqB,EAAMC,MAAM,CAAEU,cAAe,M,SAG5B,CAQL5C,KAAKsC,OAAOO,iBACV,iBACA,KACE,MAAMF,EAAkB3C,KAAK2C,gBAAgBhC,OAC7C,IAAKgC,EAAgB/B,iBAAkB,CACrCqB,EAAMC,O,IAGV,CAAEY,KAAM,M,GAQhB,UAAMzC,GACJ,GAAIL,KAAKG,UAAYH,KAAK6B,OAAS,KAAM,CACvC,M,CAGF,MAAMkB,EAAU/C,KAAK+C,QAAQpC,OAC7B,GAAIoC,EAAQnC,iBAAkB,CAC5BZ,KAAKuB,KAAO,KACZ,M,CAGFvB,KAAKG,SAAW,KAChBH,KAAKuB,KAAO,MACZvB,KAAK6B,MAAMmB,aAEXX,EAAoBrC,KAAKgB,K,CAqC3B,MAAAiC,GACE,OACEC,EAAA,OACEC,IAAMC,GAAQpD,KAAKsC,OAASc,EAC5BC,KAAK,OACLC,MAAO,CACLhB,OAAQ,KACR,eAAgBtC,KAAKuB,KACrB,kBAAmBvB,KAAKsB,UACxB,qBAAsBtB,KAAKc,WAE7ByC,UAAWvD,KAAKM,cAChBkD,gBAAiBxD,KAAKiB,qBAEtBiC,EAAA,OAAKG,KAAK,UAAUC,MAAM,kBAAkBG,QAASzD,KAAKS,qBAE1DyC,EAAA,OACEC,IAAMC,GAAQpD,KAAKiC,MAAQmB,EAC3BC,KAAK,QACLC,MAAM,gBACNI,KAAK,SAAQ,aACF,OAAM,cACJ1D,KAAKuB,KAAO,QAAU,OAAM,aAC7BvB,KAAK2D,SAAW3D,KAAK4D,MAAQ,KAAI,mBAC3B5D,KAAK2D,SAAW,GAAG3D,KAAKC,oBAAsB,KAChE4D,SAAU,IAER7D,KAAK2D,UACLT,EAAA,UAAQG,KAAK,SAASC,MAAM,kBAC1BJ,EAAA,QAAMG,KAAK,QAAQC,MAAM,gBAAgBxD,GAAI,GAAGE,KAAKC,qBACnDiD,EAAA,QAAMY,KAAK,SAER9D,KAAK4D,OAASG,OAAOC,aAAa,SAGvCd,EAAA,mBACEe,YAAY,oBACZX,MAAM,gBACNQ,KAAK,QACLL,QAASzD,KAAKI,oBAKpB8C,EAAA,OAAKG,KAAK,OAAOC,MAAM,gBACrBJ,EAAA,cAGFA,EAAA,UAAQG,KAAK,SAASC,MAAM,kBAC1BJ,EAAA,QAAMY,KAAK,SAASI,aAAclE,KAAKa,qB"}
@@ -1,2 +0,0 @@
1
- import{r,c as a,h as i}from"./p-6153045b.js";const s=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:inline-block}.tag{display:flex;align-items:center;border:solid 1px;font-family:var(--six-font-family);line-height:1;white-space:nowrap;user-select:none;cursor:default}.tag__clear::part(base){color:inherit;padding:0}.tag--info{color:var(--six-color-white);background-color:var(--six-color-web-rock-900);border-color:var(--six-color-web-rock-900)}.tag--success{color:var(--six-color-web-rock-900);border-color:var(--six-color-success-500);background-color:var(--six-color-success-500)}.tag--primary{color:var(--six-color-web-rock-900);border-color:var(--six-color-clay-50);background-color:var(--six-color-clay-50)}.tag--warning{color:var(--six-color-web-rock-900);border-color:var(--six-color-warning-700);background-color:var(--six-color-warning-700)}.tag--danger{color:var(--six-color-white);border-color:var(--six-color-danger-800);background-color:var(--six-color-danger-800)}.tag--action{color:var(--six-color-white);border-color:var(--six-color-action-500);background-color:var(--six-color-action-500)}.tag--small{font-size:var(--six-button-font-size-small);height:calc(var(--six-height-small) * 0.8);line-height:calc(var(--six-height-small) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-small);padding:0 var(--six-spacing-x-small)}.tag--small .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-xxx-small))}.tag--medium{font-size:var(--six-button-font-size-medium);height:calc(var(--six-height-medium) * 0.8);line-height:calc(var(--six-height-medium) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-medium);padding:0 var(--six-spacing-small)}.tag--medium .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-xx-small))}.tag--large{font-size:var(--six-button-font-size-large);height:calc(var(--six-height-large) * 0.8);line-height:calc(var(--six-height-large) - var(--six-border-width) * 2);border-radius:var(--six-input-border-radius-large);padding:0 var(--six-spacing-medium)}.tag--large .tag__clear{margin-left:var(--six-spacing-xx-small);margin-right:calc(-1 * var(--six-spacing-x-small))}.tag--pill{border-radius:var(--six-border-radius-pill)}";const o=class{constructor(i){r(this,i);this.sixClear=a(this,"six-tag-clear",7);this.handleClearClick=()=>{this.sixClear.emit()};this.type="primary";this.size="medium";this.pill=false;this.clearable=false}render(){return i("span",{part:"base",class:{tag:true,"tag--primary":this.type==="primary","tag--success":this.type==="success","tag--info":this.type==="info","tag--warning":this.type==="warning","tag--danger":this.type==="danger","tag--action":this.type==="action","tag--text":this.type==="text","tag--small":this.size==="small","tag--medium":this.size==="medium","tag--large":this.size==="large","tag--pill":this.pill,"tag--clear":this.clearable}},i("span",{part:"content",class:"tag__content"},i("slot",null)),this.clearable&&i("six-icon-button",{exportparts:"base:clear-button",size:"xSmall",name:"clear",class:"tag__clear",onClick:this.handleClearClick}))}};o.style=s;export{o as six_tag};
2
- //# sourceMappingURL=p-1d0bee53.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixTagCss","SixTag","this","handleClearClick","sixClear","emit","render","h","part","class","tag","type","size","pill","clearable","exportparts","name","onClick"],"sources":["src/components/six-tag/six-tag.scss?tag=six-tag&encapsulation=shadow","src/components/six-tag/six-tag.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: inline-block;\n}\n\n.tag {\n display: flex;\n align-items: center;\n border: solid 1px;\n font-family: var(--six-font-family);\n line-height: 1;\n white-space: nowrap;\n user-select: none;\n cursor: default;\n}\n\n.tag__clear::part(base) {\n color: inherit;\n padding: 0;\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Type modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--info {\n color: var(--six-color-white);\n background-color: var(--six-color-web-rock-900);\n border-color: var(--six-color-web-rock-900);\n}\n\n.tag--success {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-success-500);\n background-color: var(--six-color-success-500);\n}\n\n.tag--primary {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-clay-50);\n background-color: var(--six-color-clay-50);\n}\n\n.tag--warning {\n color: var(--six-color-web-rock-900);\n border-color: var(--six-color-warning-700);\n background-color: var(--six-color-warning-700);\n}\n\n.tag--danger {\n color: var(--six-color-white);\n border-color: var(--six-color-danger-800);\n background-color: var(--six-color-danger-800);\n}\n\n.tag--action {\n color: var(--six-color-white);\n border-color: var(--six-color-action-500);\n background-color: var(--six-color-action-500);\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Size modifiers\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--small {\n font-size: var(--six-button-font-size-small);\n height: calc(var(--six-height-small) * 0.8);\n line-height: calc(var(--six-height-small) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-small);\n padding: 0 var(--six-spacing-x-small);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-xxx-small));\n }\n}\n\n.tag--medium {\n font-size: var(--six-button-font-size-medium);\n height: calc(var(--six-height-medium) * 0.8);\n line-height: calc(var(--six-height-medium) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-medium);\n padding: 0 var(--six-spacing-small);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-xx-small));\n }\n}\n\n.tag--large {\n font-size: var(--six-button-font-size-large);\n height: calc(var(--six-height-large) * 0.8);\n line-height: calc(var(--six-height-large) - var(--six-border-width) * 2);\n border-radius: var(--six-input-border-radius-large);\n padding: 0 var(--six-spacing-medium);\n\n .tag__clear {\n margin-left: var(--six-spacing-xx-small);\n margin-right: calc(-1 * var(--six-spacing-x-small));\n }\n}\n\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n// Pill modifier\n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n.tag--pill {\n border-radius: var(--six-border-radius-pill);\n}\n","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\nimport { EmptyPayload } from '../../utils/types';\n\n/**\n * @since 1.0\n * @status stable\n *\n * Forked from https://github.com/shoelace-style/shoelace version v2.0.0-beta27.\n *\n * @slot - The tag's content.\n *\n * @part base - The component's base wrapper.\n * @part content - The tag content.\n * @part clear-button - The clear button.\n */\n\n@Component({\n tag: 'six-tag',\n styleUrl: 'six-tag.scss',\n shadow: true,\n})\nexport class SixTag {\n /** The tag's type. */\n @Prop({ reflect: true }) type: 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'action' | 'text' = 'primary';\n\n /** The tag's size. */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'medium';\n\n /** Set to true to draw a pill-style tag with rounded edges. */\n @Prop({ reflect: true }) pill = false;\n\n /** Set to true to make the tag clearable. */\n @Prop({ reflect: true }) clearable = false;\n\n /** Emitted when the clear button is activated. */\n @Event({ eventName: 'six-tag-clear' }) sixClear!: EventEmitter<EmptyPayload>;\n\n private handleClearClick = () => {\n this.sixClear.emit();\n };\n\n render() {\n return (\n <span\n part=\"base\"\n class={{\n tag: true,\n\n // Types\n 'tag--primary': this.type === 'primary',\n 'tag--success': this.type === 'success',\n 'tag--info': this.type === 'info',\n 'tag--warning': this.type === 'warning',\n 'tag--danger': this.type === 'danger',\n 'tag--action': this.type === 'action',\n 'tag--text': this.type === 'text',\n\n // Sizes\n 'tag--small': this.size === 'small',\n 'tag--medium': this.size === 'medium',\n 'tag--large': this.size === 'large',\n\n // Modifers\n 'tag--pill': this.pill,\n 'tag--clear': this.clearable,\n }}\n >\n <span part=\"content\" class=\"tag__content\">\n <slot />\n </span>\n\n {this.clearable && (\n <six-icon-button\n exportparts=\"base:clear-button\"\n size=\"xSmall\"\n name=\"clear\"\n class=\"tag__clear\"\n onClick={this.handleClearClick}\n />\n )}\n </span>\n );\n }\n}\n"],"mappings":"6CAAA,MAAMA,EAAY,qwE,MCqBLC,EAAM,M,iEAgBTC,KAAAC,iBAAmB,KACzBD,KAAKE,SAASC,MAAM,E,UAfqF,U,UAG7C,S,UAG9B,M,eAGK,K,CASrC,MAAAC,GACE,OACEC,EAAA,QACEC,KAAK,OACLC,MAAO,CACLC,IAAK,KAGL,eAAgBR,KAAKS,OAAS,UAC9B,eAAgBT,KAAKS,OAAS,UAC9B,YAAaT,KAAKS,OAAS,OAC3B,eAAgBT,KAAKS,OAAS,UAC9B,cAAeT,KAAKS,OAAS,SAC7B,cAAeT,KAAKS,OAAS,SAC7B,YAAaT,KAAKS,OAAS,OAG3B,aAAcT,KAAKU,OAAS,QAC5B,cAAeV,KAAKU,OAAS,SAC7B,aAAcV,KAAKU,OAAS,QAG5B,YAAaV,KAAKW,KAClB,aAAcX,KAAKY,YAGrBP,EAAA,QAAMC,KAAK,UAAUC,MAAM,gBACzBF,EAAA,cAGDL,KAAKY,WACJP,EAAA,mBACEQ,YAAY,oBACZH,KAAK,SACLI,KAAK,QACLP,MAAM,aACNQ,QAASf,KAAKC,mB"}
@@ -1,2 +0,0 @@
1
- import{r as o,h as r}from"./p-6153045b.js";const s=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{display:block}.six-footer{color:var(--six-color-web-rock-900);padding:var(--six-spacing-x-small) 0;text-align:center;width:100%;background-color:var(--six-footer-background-color);box-shadow:var(--six-shadow-x-large-top)}";const t=class{constructor(r){o(this,r)}render(){return r("footer",{class:"six-footer"},r("slot",null))}};t.style=s;export{t as six_footer};
2
- //# sourceMappingURL=p-1d5ee1a0.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["sixFooterCss","SixFooter","render","h","class"],"sources":["src/components/six-footer/six-footer.scss?tag=six-footer&encapsulation=shadow","src/components/six-footer/six-footer.tsx"],"sourcesContent":["@import 'src/global/component';\n\n:host {\n display: block;\n}\n\n.six-footer {\n color: var(--six-color-web-rock-900);\n padding: var(--six-spacing-x-small) 0;\n text-align: center;\n width: 100%;\n background-color: var(--six-footer-background-color);\n box-shadow: var(--six-shadow-x-large-top);\n}\n","import { Component, h } from '@stencil/core';\n\n/**\n * @since 1.0\n * @status stable\n *\n * @slot - Used to define the content of the footer.\n */\n\n@Component({\n tag: 'six-footer',\n styleUrl: 'six-footer.scss',\n shadow: true,\n})\nexport class SixFooter {\n render() {\n return (\n <footer class=\"six-footer\">\n <slot />\n </footer>\n );\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAe,4U,MCcRC,EAAS,M,yBACpB,MAAAC,GACE,OACEC,EAAA,UAAQC,MAAM,cACZD,EAAA,a"}
@@ -1,2 +0,0 @@
1
- import{r as i,c as s,h as t,g as e}from"./p-6153045b.js";import{f as o}from"./p-5654e4c7.js";const r=":host{position:relative;box-sizing:border-box}:host *,:host *:before,:host *:after{box-sizing:inherit}:host{--hide-duration:var(--six-transition-medium);--hide-timing-function:ease;--show-duration:var(--six-transition-medium);--show-timing-function:ease;font-family:var(--six-font-family);display:block}.details{border:solid var(--six-border-width) var(--six-input-border-color);border-radius:var(--six-border-radius-medium);color:var(--six-details-color);overflow-anchor:none;font-size:var(--six-input-font-size-medium)}.details:hover:not(.details--disabled):not(.details--open){border-color:var(--six-input-border-color-hover)}.details.inline{border:none;color:var(--six-sidebar-color)}.details.inline:hover{background-color:var(--six-sidebar-hover-background-color)}.details.inline.details--open{background-color:var(--six-color-web-rock-50)}.details.inline.details--open:hover{border:none;box-shadow:none}.details.inline.details--open>.details__header{color:var(--six-sidebar-color);font-weight:var(--six-font-weight-bold);background-color:var(--six-sidebar-header-background-color)}.details--disabled{background-color:var(--six-input-background-color-disabled);border-color:var(--six-input-border-color-disabled);color:var(--six-input-color-disabled)}.details__header{display:flex;align-items:center;border-radius:inherit;padding:var(--six-spacing-medium);user-select:none;cursor:pointer}.details__header:focus{outline:none}.details--disabled .details__header{cursor:not-allowed;border-width:1px}.details--disabled .details__header:focus{outline:none;box-shadow:none}.details__summary{flex:1 1 auto;display:flex;align-items:center}.details__summary-icon{flex:0 0 auto;display:flex;align-items:center;font-size:1.2em;transition:var(--six-transition-medium) transform ease}.details--open .details__summary-icon--animate{transform:rotate(-180deg)}.details--open:hover{color:var(--six-input-color-focus)}.details__body{height:0;overflow:hidden;transition-property:height;transition-duration:var(--hide-duration);transition-timing-function:var(--hide-timing-function)}.details--open .details__body{transition-duration:var(--show-duration);transition-timing-function:var(--show-timing-function)}.details__content{padding:var(--six-spacing-medium)}";let a=0;const n=class{constructor(t){i(this,t);this.sixShow=s(this,"six-details-show",7);this.sixAfterShow=s(this,"six-details-after-show",7);this.sixHide=s(this,"six-details-hide",7);this.sixAfterHide=s(this,"six-details-after-hide",7);this.componentId=`details-${++a}`;this.isVisible=false;this.handleBodyTransitionEnd=i=>{if(this.body==null)return;const s=i.target;if(i.propertyName==="height"&&s.classList.contains("details__body")){this.body.style.overflow=this.open?"visible":"hidden";this.body.style.height=this.open?"auto":"0";this.open?this.sixAfterShow.emit():this.sixAfterHide.emit();this.body.hidden=!this.open}};this.handleSummaryClick=()=>{var i;if(!this.disabled&&(this.hasContent||this.selectableEmpty)){this.open?this.hide():this.show();(i=this.header)===null||i===void 0?void 0:i.focus()}};this.handleSummaryKeyDown=i=>{if(i.key==="Enter"||i.key===" "){i.preventDefault();this.open?this.hide():this.show()}if(i.key==="ArrowUp"||i.key==="ArrowLeft"){i.preventDefault();this.hide()}if(i.key==="ArrowDown"||i.key==="ArrowRight"){i.preventDefault();this.show()}};this.animateSummaryIcon=true;this.open=false;this.summary="";this.summaryIcon=undefined;this.summaryIconSize="inherit";this.disabled=false;this.inline=false;this.selectableEmpty=false;this.hasContent=true}handleOpenChange(){if(this.body!=null){this.open?this.show():this.hide()}}componentDidLoad(){if(this.details==null||this.body==null)return;o.observe(this.details);this.body.hidden=!this.open;if(this.open){this.show()}}disconnectedCallback(){if(this.details!=null){o.unobserve(this.details)}}async show(){if(this.isVisible||this.body==null)return;const i=this.sixShow.emit();if(i.defaultPrevented){this.open=false;return}this.body.hidden=false;if(this.body.scrollHeight===0){this.body.style.height="auto";this.body.style.overflow="visible"}else{this.body.style.height=`${this.body.scrollHeight}px`;this.body.style.overflow="hidden"}this.isVisible=true;this.open=true}async hide(){if(!this.isVisible||this.body==null)return;const i=this.body;const s=this.sixHide.emit();if(s.defaultPrevented){this.open=true;return}i.style.height=`${i.scrollHeight}px`;i.style.overflow="hidden";requestAnimationFrame((()=>{i.style.height="0"}));this.isVisible=false;this.open=false}render(){const i=this.hasContent&&(this.summaryIcon||"expand_more");return t("div",{ref:i=>this.details=i,part:"base",class:{details:true,"details--open":this.open,"details--disabled":this.disabled,inline:this.inline}},t("header",{ref:i=>this.header=i,part:"header",id:`${this.componentId}-header`,class:"details__header",role:"button","aria-expanded":this.open?"true":"false","aria-controls":`${this.componentId}-content`,"aria-disabled":this.disabled?"true":"false",tabIndex:this.disabled?-1:0,onClick:this.handleSummaryClick,onKeyDown:this.handleSummaryKeyDown},t("div",{part:"summary",class:"details__summary"},t("slot",{name:"summary"},this.summary)),t("span",{part:"summary-icon",class:{"details__summary-icon":true,"details__summary-icon--animate":this.animateSummaryIcon}},t("slot",{name:"summary-icon",onSlotchange:()=>this.animateSummaryIcon=false},i&&t("six-icon",{size:this.summaryIconSize},i)))),t("div",{ref:i=>this.body=i,class:"details__body",onTransitionEnd:this.handleBodyTransitionEnd},t("div",{part:"content",id:`${this.componentId}-content`,class:"details__content",role:"region","aria-labelledby":`${this.componentId}-header`},t("slot",null))))}get host(){return e(this)}static get watchers(){return{open:["handleOpenChange"]}}};n.style=r;export{n as six_details};
2
- //# sourceMappingURL=p-21b3b321.entry.js.map